PageSourceSearch

https://www.babysits.de/inc/assets/static/js/623.63bb6de03f.js

js babysits.de collected 2026-09-25 03:13:13 UTC 1,884,079 bytes, 1,181 lines download raw bytes

1/*! LICENSE: 623.63bb6de03f.js.LICENSE.txt */
2export const __rspack_esm_id=623;export const __rspack_esm_ids=[623];export const __webpack_modules__={81239(t,i,r){r.r(i);var a=r(68945),n=r(46342),o=r(99005),s=r(87811),l=r(37205),c=r(99058);r.d(i,{afterMain:()=>a.EP,afterRead:()=>a.v5,afterWrite:()=>a.SE,applyStyles:()=>n.ZM,arrow:()=>n.UE,auto:()=>a.qZ,basePlacements:()=>a.OM,beforeMain:()=>a.LG,beforeRead:()=>a.ci,beforeWrite:()=>a.pA,bottom:()=>a.sQ,clippingParents:()=>a.WY,computeStyles:()=>n.KC,createPopper:()=>l.n,createPopperBase:()=>o.n4,createPopperLite:()=>c.n,detectOverflow:()=>s.A,end:()=>a._N,eventListeners:()=>n.Gc,flip:()=>n.UU,hide:()=>n.jD,left:()=>a.kb,main:()=>a.iW,modifierPhases:()=>a.GM,offset:()=>n.cY,placements:()=>a.DD,popper:()=>a.xf,popperGenerator:()=>o.UD,popperOffsets:()=>n.Zo,preventOverflow:()=>n.V7,read:()=>a.LF,reference:()=>a.ir,right:()=>a.pG,start:()=>a.ni,top:()=>a.Mn,variationPlacements:()=>a.Ol,viewport:()=>a.R9,write:()=>a.M9})},41712(t,i,r){var a=r(98355),n=r(94264);i.A={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var i=t.state;Object.keys(i.elements).forEach(function(t){var r=i.styles[t]||{},o=i.attributes[t]||{},s=i.elements[t];(0,n.sb)(s)&&(0,a.A)(s)&&(Object.assign(s.style,r),Object.keys(o).forEach(function(t){var i=o[t];!1===i?s.removeAttribute(t):s.setAttribute(t,!0===i?"":i)}))})},effect:function(t){var i=t.state,r={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(i.elements.popper.style,r.popper),i.styles=r,i.elements.arrow&&Object.assign(i.elements.arrow.style,r.arrow),function(){Object.keys(i.elements).forEach(function(t){var o=i.elements[t],s=i.attributes[t]||{},l=Object.keys(i.styles.hasOwnProperty(t)?i.styles[t]:r[t]).reduce(function(t,i){return t[i]="",t},{});(0,n.sb)(o)&&(0,a.A)(o)&&(Object.assign(o.style,l),Object.keys(s).forEach(function(t){o.removeAttribute(t)}))})}},requires:["computeStyles"]}},46342(t,i,r){var a=r(41712),n=r(47611),o=r(81669),s=r(12153),l=r(68253),c=r(16508),u=r(67075),h=r(65380),d=r(86710);r.d(i,{Gc:()=>s.A,KC:()=>o.A,UE:()=>n.A,UU:()=>l.A,V7:()=>d.A,ZM:()=>a.A,Zo:()=>h.A,cY:()=>u.A,jD:()=>c.A})},99058(t,i,r){var a=r(99005),n=r(12153),o=r(65380),s=r(81669),l=r(41712),c=[n.A,o.A,s.A,l.A],u=(0,a.UD)({defaultModifiers:c});r.d(i,{n:()=>u})},37205(t,i,r){var a=r(99005),n=r(12153),o=r(65380),s=r(81669),l=r(41712),c=r(67075),u=r(68253),h=r(86710),d=r(47611),f=r(16508),p=[n.A,o.A,s.A,l.A,c.A,u.A,h.A,d.A,f.A],m=(0,a.UD)({defaultModifiers:p});r.d(i,{n:()=>m})},41390(t){t.exports=(()=>{"use strict";var t,i,r,a,n,o,s,l,c,u,h,d,f,p,m,g,y,_,v,b,x,w,k,T,S,A,C,E,M,P,D,I,z,F,R,O,B,j,N,$,V,U,G,q,Z,H,W,X,Y,K,J,Q,ee,et,ei,er,ea,en,eo,es,el,ec,eu,eh,ed,ef,ep,em,eg,ey,e_,ev,eb,ex,ew,ek=[,(t,i,r)=>{r.r(i),r.d(i,{Animation:()=>a.Animation});var a=r(2)},(t,i,r)=>{r.r(i),r.d(i,{Animation:()=>a});var a=function(){function t(t,i,r,a){this.animation=t,this.artboard=i,this.playing=a,this.loopCount=0,this.scrubTo=null,this.instance=new r.LinearAnimationInstance(t,i)}return Object.defineProperty(t.prototype,"name",{get:function(){return this.animation.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"time",{get:function(){return this.instance.time},set:function(t){this.instance.time=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loopValue",{get:function(){return this.animation.loopValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"needsScrub",{get:function(){return null!==this.scrubTo},enumerable:!1,configurable:!0}),t.prototype.advance=function(t){null===this.scrubTo?this.instance.advance(t):(this.instance.time=0,this.instance.advance(this.scrubTo),this.scrubTo=null)},t.prototype.apply=function(t){this.instance.apply(t)},t.prototype.cleanup=function(){this.instance.delete()},t}()},(t,i,r)=>{r.r(i),r.d(i,{RuntimeLoader:()=>s});var a=r(4),n=r(5),o=function(){return(o=Object.assign||function(t){for(var i,r=1,a=arguments.length;r<a;r++)for(var n in i=arguments[r])Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n]);return t}).apply(this,arguments)},s=function(){function t(){}return t.notifyError=function(i){var r;for(t.isLoading=!1;t.errorCallbackQueue.length>0;)null==(r=t.errorCallbackQueue.shift())||r(i);t.callBackQueue=[]},t.loadRuntime=function(){var i=t.wasmURL,r=t.wasmBinary;t.enablePerfMarks&&performance.mark("rive:wasm-init:start"),a.default(o({locateFile:function(){return i}},r?{wasmBinary:r}:{})).then(function(i){var r;for(t.enablePerfMarks&&(performance.mark("rive:wasm-init:end"),performance.measure("rive:wasm-init","rive:wasm-init:start","rive:wasm-init:end")),t.runtime=i,t.errorCallbackQueue=[];t.callBackQueue.length>0;)null==(r=t.callBackQueue.shift())||r(t.runtime)}).catch(function(r){var a={message:(null==r?void 0:r.message)||"Unknown error",type:(null==r?void 0:r.name)||"Error",wasmError:r instanceof WebAssembly.CompileError||r instanceof WebAssembly.RuntimeError,originalError:r};
2console.debug("Rive WASM load error details:",a);var n=t.wasmFallbackURL,o=null!==n&&i.toLowerCase()===n.toLowerCase();if(null===n||o){var s=o?"the configured WASM URL or its fallback (".concat(n,")"):i,l=["Could not load Rive WASM file from ".concat(s,"."),"Possible reasons:\n- Network connection is down\n- WebAssembly is not supported in this environment\n- The WASM file is corrupted or incompatible\n\nError details:","- Type: ".concat(a.type),"- Message: ".concat(a.message),"- WebAssembly-specific error: ".concat(a.wasmError),"\nTo resolve, you may need to:\n1. Check your network connection\n2. Set a new WASM source via RuntimeLoader.setWasmUrl()\n3. Call RuntimeLoader.awaitInstance() again"].join("\n");console.error(l),t.notifyError(Error(l))}else console.warn("Failed to load WASM from ".concat(i," (").concat(a.message,"), trying fallback URL: ").concat(n)),t.wasmBinary=null,t.setWasmUrl(n),t.loadRuntime()})},t.getInstance=function(i,r){t.isLoading||(t.isLoading=!0,t.loadRuntime()),t.runtime?i(t.runtime):(t.callBackQueue.push(i),r&&t.errorCallbackQueue.push(r))},t.awaitInstance=function(){return new Promise(function(i,r){return t.getInstance(i,r)})},t.setWasmUrl=function(i){t.wasmURL=i},t.getWasmUrl=function(){return t.wasmURL},t.setWasmFallbackUrl=function(i){t.wasmFallbackURL=i},t.getWasmFallbackUrl=function(){return t.wasmFallbackURL},t.setWasmBinary=function(i){if(i instanceof ArrayBuffer||null===i){t.wasmBinary=i;return}console.error("setWasmBinary expects an ArrayBuffer or null")},t.getWasmBinary=function(){return t.wasmBinary},t.isLoading=!1,t.callBackQueue=[],t.wasmURL="https://unpkg.com/".concat(n.name,"@").concat(n.version,"/rive.wasm"),t.wasmFallbackURL="https://cdn.jsdelivr.net/npm/".concat(n.name,"@").concat(n.version,"/rive_fallback.wasm"),t.wasmBinary=null,t.errorCallbackQueue=[],t.enablePerfMarks=!1,t}()},(t,i,r)=>{var a;r.r(i),r.d(i,{default:()=>n});let n=(a=globalThis.document?.currentScript?.src,async function(t={}){let i,r;var n,o=!!globalThis.window,s=!!globalThis.WorkerGlobalScope;function l(){function t(t){let o=a;r=i=0,a=new Map,o.forEach(i=>{try{i(t)}catch(t){console.error(t)}}),this.Bc(),n&&n.fd()}let i=0,r=0,a=new Map,n=null,o=null;this.requestAnimationFrame=function(n){i||=requestAnimationFrame(t.bind(this));let o=++r;return a.set(o,n),o},this.cancelAnimationFrame=function(t){a.delete(t),i&&0==a.size&&(cancelAnimationFrame(i),i=0)},this.dd=function(t){o&&(document.body.remove(o),o=null),t||((o=document.createElement("div")).style.backgroundColor="black",o.style.position="fixed",o.style.right=0,o.style.top=0,o.style.color="white",o.style.padding="4px",o.innerHTML="RIVE FPS",t=function(t){o.innerHTML="RIVE FPS "+t.toFixed(1)},document.body.appendChild(o)),n=new function(){let i=0,r=0;this.fd=function(){var a=performance.now();r?(++i,1e3<(a-=r)&&(t(1e3*i/a),i=r=0)):(r=a,i=0)}}},this.ad=function(){o&&(document.body.remove(o),o=null),n=null},this.Bc=function(){}}function c(t){console.assert(!0);let i=new Map,r=-1/0;this.push=function(a){return a=a+((1<<t)-1)>>t,i.has(a)&&clearTimeout(i.get(a)),i.set(a,setTimeout(function(){i.delete(a),0==i.length?r=-1/0:a==r&&console.assert((r=Math.max(...i.keys()))<a)},1e3)),(r=Math.max(a,r))<<t}}let u=t.onRuntimeInitialized;t.onRuntimeInitialized=function(){u&&u();let i=t.decodeAudio;t.decodeAudio=function(t,r,a=null){r(t=i(t,a??null))};let r=t.decodeFont;t.decodeFont=function(t,i,a=null){i(t=r(t,a??null))};let a=t.FileAsset.prototype.decode;t.FileAsset.prototype.decode=function(t,i){return a.call(this,t,i??null)};let n=t.setFallbackFontCb;t.setFallbackFontCallback="function"==typeof n?function(t){n(t)}:function(){console.warn("Module.setFallbackFontCallback called, but text support is not enabled in this build.")};let o=t.FileAssetLoader;t.ptrToAsset=i=>{let r=t.ptrToFileAsset(i);return r.isImage?t.ptrToImageAsset(i):r.isFont?t.ptrToFontAsset(i):r.isAudio?t.ptrToAudioAsset(i):r},t.CustomFileAssetLoader=o.extend("CustomFileAssetLoader",{__construct:function({loadContents:t}){this.__parent.__construct.call(this),this.Tc=t},loadContents:function(i,r){return i=t.ptrToAsset(i),this.Tc(i,r)}}),t.CDNFileAssetLoader=o.extend("CDNFileAssetLoader",{__construct:function(t){this.__parent.__construct.call(this),this.Vc=t??null},loadContents:function(i){var r,a,n;let o=t.ptrToAsset(i);if(""===(i=o.cdnUuid))return!1;let s=this.Vc??null;return r=o.cdnBaseUrl+"/"+i,a=t=>{o.decode(new Uint8Array(t.response),s)},(n=new XMLHttpRequest).responseType="arraybuffer",n.onreadystatechange=function(){4==n.readyState&&200==n.status&&a(n)},n.open("GET",r,!0),n.send(null),!0}}),t.FallbackFileAssetLoader=o.extend("FallbackFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this),this.wc=[]},addLoader:function(t){this.wc.push(t)},loadContents:function(t,i){for(let r of this.wc)if(r.loadContents(t,i))return!0;return!1}});let s=t.computeAlignment;t.computeAlignment=function(t,i,r,a,n=1){return s.call(this,t,i,r,a,n)}};let h="createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "),d=new function(){function t(){if(!i){let c;var t=document.createElement("canvas"),s={alpha:1,depth:0,stencil:0,antialias:0,premultipliedAlpha:1,preserveDrawingBuffer:0,powerPreference:"high-performance",failIfMajorPerformanceCaveat:0,enableExtensionsByDefault:1,explicitSwapControl:1,renderViaOffscreenBackBuffer:1};if(/iPhone|iPad|iPod/i.test(navigator.userAgent)){if(c=t.getContext("webgl",s),r=1,
2!c)return console.log("No WebGL support. Image mesh will not be drawn."),!1}else if(c=t.getContext("webgl2",s))r=2;else{if(!(c=t.getContext("webgl",s)))return console.log("No WebGL support. Image mesh will not be drawn."),!1;r=1}function l(t,i,r){if(i=c.createShader(i),c.shaderSource(i,r),c.compileShader(i),0<((r=c.getShaderInfoLog(i))||"").length)throw r;c.attachShader(t,i)}if(a=Math.min((c=new Proxy(c,{get:(t,i)=>t.isContextLost()?(u||(console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ",i),u=!0),"function"==typeof t[i])?function(){}:void 0:"function"==typeof t[i]?function(...r){return t[i].apply(t,r)}:t[i],set(t,i,r){if(!t.isContextLost())return t[i]=r,!0;u||(console.error("Cannot render the mesh because the GL Context was lost. Tried to set property "+i),u=!0)}})).getParameter(c.MAX_RENDERBUFFER_SIZE),c.getParameter(c.MAX_TEXTURE_SIZE)),l(t=c.createProgram(),c.VERTEX_SHADER,"attribute vec2 vertex;\n                attribute vec2 uv;\n                uniform vec4 mat;\n                uniform vec2 translate;\n                varying vec2 st;\n                void main() {\n                    st = uv;\n                    gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1);\n                }"),l(t,c.FRAGMENT_SHADER,"precision highp float;\n                uniform sampler2D image;\n                varying vec2 st;\n                void main() {\n                    gl_FragColor = texture2D(image, st);\n                }"),c.bindAttribLocation(t,0,"vertex"),c.bindAttribLocation(t,1,"uv"),c.linkProgram(t),0<((s=c.getProgramInfoLog(t))||"").trim().length)throw s;n=c.getUniformLocation(t,"mat"),o=c.getUniformLocation(t,"translate"),c.useProgram(t),c.bindBuffer(c.ARRAY_BUFFER,c.createBuffer()),c.enableVertexAttribArray(0),c.enableVertexAttribArray(1),c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,c.createBuffer()),c.uniform1i(c.getUniformLocation(t,"image"),0),c.pixelStorei(c.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),i=c}return!0}let i=null,r=0,a=0,n=null,o=null,s=0,l=0,u=!1;t(),this.td=function(){return t(),a},this.$c=function(t){i&&i.deleteTexture&&i.deleteTexture(t)},this.Zc=function(a){if(!t())return null;let n=i.createTexture();return n?(i.bindTexture(i.TEXTURE_2D,n),i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,a),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),2==r?(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR_MIPMAP_LINEAR),i.generateMipmap(i.TEXTURE_2D)):i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),n):null};let h=new c(8),d=new c(8),f=new c(10),p=new c(10);this.cd=function(r,a,c,u,m){if(t()){var g=h.push(r),y=d.push(a);if(i.canvas){for(var _ of((i.canvas.width!=g||i.canvas.height!=y)&&(i.canvas.width=g,i.canvas.height=y),i.viewport(0,y-a,r,a),i.disable(i.SCISSOR_TEST),i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT),i.enable(i.SCISSOR_TEST),c.sort((t,i)=>i.Ic-t.Ic),g=f.push(u),s!=g&&(i.bufferData(i.ARRAY_BUFFER,8*g,i.DYNAMIC_DRAW),s=g),g=0,c))i.bufferSubData(i.ARRAY_BUFFER,g,_.ec),g+=4*_.ec.length;for(var v of(console.assert(g==4*u),c))i.bufferSubData(i.ARRAY_BUFFER,g,v.Mc),g+=4*v.Mc.length;for(var b of(console.assert(g==8*u),g=p.push(m),l!=g&&(i.bufferData(i.ELEMENT_ARRAY_BUFFER,2*g,i.DYNAMIC_DRAW),l=g),_=0,c))i.bufferSubData(i.ELEMENT_ARRAY_BUFFER,_,b.indices),_+=2*b.indices.length;for(let t of(console.assert(_==2*m),b=0,v=!0,g=_=0,c)){t.image.Tb!=b&&(i.bindTexture(i.TEXTURE_2D,t.image.Rb||null),b=t.image.Tb),t.xd?(i.scissor(t.mc,y-t.nc-t.vc,t.Gd,t.vc),v=!0):v&&(i.scissor(0,y-a,r,a),v=!1),c=2/r;let s=-2/a;i.uniform4f(n,t.lb[0]*c*t.Gb,t.lb[1]*s*t.Hb,t.lb[2]*c*t.Gb,t.lb[3]*s*t.Hb),i.uniform2f(o,t.lb[4]*c*t.Gb+c*(t.mc-t.ud*t.Gb)-1,t.lb[5]*s*t.Hb+s*(t.nc-t.vd*t.Hb)+1),i.vertexAttribPointer(0,2,i.FLOAT,!1,0,g),i.vertexAttribPointer(1,2,i.FLOAT,!1,0,g+4*u),i.drawElements(i.TRIANGLES,t.indices.length,i.UNSIGNED_SHORT,_),g+=4*t.ec.length,_+=2*t.indices.length}console.assert(g==4*u),console.assert(_==2*m)}}},this.canvas=function(){return t()&&i.canvas}},f=t.onRuntimeInitialized;t.onRuntimeInitialized=function(){function i(t){switch(t){case m.srcOver:return"source-over";case m.screen:return"screen";case m.overlay:return"overlay";case m.darken:return"darken";case m.lighten:return"lighten";case m.colorDodge:return"color-dodge";case m.colorBurn:return"color-burn";case m.hardLight:return"hard-light";case m.softLight:return"soft-light";case m.difference:return"difference";case m.exclusion:return"exclusion";case m.multiply:return"multiply";case m.hue:return"hue";case m.saturation:return"saturation";case m.color:return"color";case m.luminosity:return"luminosity"}}function r(t){return"rgba("+((0xff0000&t)>>>16)+","+((65280&t)>>>8)+","+((255&t)>>>0)+","+((0xff000000&t)>>>24)/255+")"}function a(){for(let t of(0<C.length&&(d.cd(A.drawWidth(),A.drawHeight(),C,E,M),C=[],M=E=0,A.reset(512,512)),T)){for(let i of t.Oa)i();t.Oa=[]}T.clear()}f&&f();var n=t.RenderPaintStyle;
2let o=t.RenderPath,s=t.RenderPaint,c=t.Renderer,u=t.StrokeCap,p=t.StrokeJoin,m=t.BlendMode,g=n.fill,y=n.stroke,_=t.FillRule.evenOdd,v=1;var b=t.RenderImage.extend("CanvasRenderImage",{__construct:function({sb:t,Eb:i}={}){this.__parent.__construct.call(this),this.Tb=v,v=v+1&0x7fffffff||1,this.sb=t,this.Eb=i},__destruct:function(){this.Rb&&(d.$c(this.Rb),URL.revokeObjectURL(this.kc)),this.__parent.__destruct.call(this)},decode:function(t){var i=this;i.Eb&&i.Eb(i);var r=new Image;i.kc=URL.createObjectURL(new Blob([t],{type:"image/png"})),r.onload=function(){i.Sc=r,i.Rb=d.Zc(r),i.size(r.width,r.height),i.sb&&i.sb(i)},r.src=i.kc}});class x{constructor(){this.cb=this.Kb=0,this.Za=new Path2D}clear(){this.cb=this.Kb=0,this.Za=new Path2D}Wc(t){for(0<this.Kb&&this.cb<t.length&&this.clear();this.cb<t.length;)t[this.cb++](this.Za);return this.Kb++,this.Za}release(t){t===this.Za&&this.Kb--}}var w=o.extend("CanvasRenderPath",{__construct:function(){this.__parent.__construct.call(this),this.Pb=[],this.Za=new x,this.Ob=!1,this.pb=null},rewind:function(){this.Pb.length=0,this.Za.clear(),this.Ob=!1,this.pb=null},addPath:function(t,i,r,a,n,o,s){let l=t.Oc();this.ob(t=>{let c=new DOMMatrix;c.a=i,c.b=r,c.c=a,c.d=n,c.e=o,c.f=s,t.addPath(l,c)})},fillRule:function(t){this.jc=t},moveTo:function(t,i){this.Ob=!0;let r={pc:!0};this.pb=r,this.ob(a=>{a.moveTo(t,i),r.pc&&a.lineTo(t,i)})},lineTo:function(t,i){this.ic(),this.Mb(),this.ob(r=>{r.lineTo(t,i)})},cubicTo:function(t,i,r,a,n,o){this.ic(),this.Mb(),this.ob(s=>{s.bezierCurveTo(t,i,r,a,n,o)})},close:function(){this.Mb(),this.ob(t=>{t.closePath()})},ic:function(){this.Ob||this.moveTo(0,0)},Mb:function(){null!==this.pb&&(this.pb.pc=!1,this.pb=null)},ob:function(t){this.Pb.push(t)},Lb:function(){return this.Za.Wc(this.Pb)},lc:function(t){this.Za.release(t)},Oc:function(){let t=this.Lb();return this.Za.clear(),t}}),k=s.extend("CanvasRenderPaint",{__construct:function(){this.__parent.__construct.call(this),this.Ma=[],this.Nb=0,this.Qb=g,this.Ub=r(0xff000000),this.Sb=1,this.xb="miter",this.wb="butt",this.fc=i(m.srcOver),this.kb=null},color:function(t){this.Ma.push(()=>{this.Ub=r(t)})},thickness:function(t){this.Ma.push(()=>{this.Sb=Math.abs(t)})},join:function(t){this.Ma.push(()=>{switch(t){case p.miter:this.xb="miter";break;case p.round:this.xb="round";break;case p.bevel:this.xb="bevel"}})},cap:function(t){this.Ma.push(()=>{switch(t){case u.butt:this.wb="butt";break;case u.round:this.wb="round";break;case u.square:this.wb="square"}})},style:function(t){this.Ma.push(()=>{this.Qb=t})},blendMode:function(t){this.Ma.push(()=>{this.fc=i(t)})},clearGradient:function(){this.Ma.push(()=>{this.kb=null})},linearGradient:function(t,i,r,a){this.Ma.push(()=>{this.kb={Jc:t,Kc:i,rc:r,sc:a,dc:[]}})},radialGradient:function(t,i,r,a){this.Ma.push(()=>{this.kb={Jc:t,Kc:i,rc:r,sc:a,dc:[],rd:!0}})},addStop:function(t,i){this.Ma.push(()=>{this.kb.dc.push({color:t,stop:i})})},completeGradient:function(){},Pc:function(t,i,a,n){if(this.Qb!==y||0<this.Sb){var o=this.Qb,s=this.Ub,l=this.kb,c=t.globalCompositeOperation,u=t.globalAlpha;if(t.globalCompositeOperation=this.fc,t.globalAlpha=n,null!=l){s=l.Jc;let i=l.Kc,a=l.rc;var h=l.sc;n=l.dc,l.rd?(l=a-s,h-=i,s=t.createRadialGradient(s,i,0,s,i,Math.sqrt(l*l+h*h))):s=t.createLinearGradient(s,i,a,h);for(let t=0,i=n.length;t<i;t++)l=n[t],s.addColorStop(l.stop,r(l.color));this.Ub=s,this.kb=null}switch(o){case y:t.strokeStyle=s,t.lineWidth=this.Sb,t.lineCap=this.wb,t.lineJoin=this.xb,t.stroke(i);break;case g:t.fillStyle=s,t.fill(i,a)}t.globalCompositeOperation=c,t.globalAlpha=u}},Rc:function(){return this.Nb+this.Ma.length},Qc:function(t){let i=t-this.Nb;for(let t=0;t<i;t++)this.Ma[t]();this.Ma.splice(0,i),this.Nb=t}});let T=new Set,S=Object.prototype.hasOwnProperty,A=null,C=[],E=0,M=0;var P=t.CanvasRenderer=c.extend("Renderer",{__construct:function(t){this.__parent.__construct.call(this),this.Ya=[1,0,0,1,0,0],this.Ka=[1],this.Ia=t.getContext("2d"),this.hc=t,this.Oa=[]},save:function(){this.Ya.push(...this.Ya.slice(this.Ya.length-6)),this.Ka.push(this.Ka[this.Ka.length-1]),this.Oa.push(this.Ia.save.bind(this.Ia))},restore:function(){let t=this.Ya.length-6;if(6>
2t)throw"restore() called without matching save().";this.Ya.splice(t),this.Ka.pop(),this.Oa.push(this.Ia.restore.bind(this.Ia))},transform:function(t,i,r,a,n,o){let s=this.Ya,l=s.length-6;s.splice(l,6,s[l]*t+s[l+2]*i,s[l+1]*t+s[l+3]*i,s[l]*r+s[l+2]*a,s[l+1]*r+s[l+3]*a,s[l]*n+s[l+2]*o+s[l+4],s[l+1]*n+s[l+3]*o+s[l+5]),this.Oa.push(this.Ia.transform.bind(this.Ia,t,i,r,a,n,o))},rotate:function(t){let i=Math.sin(t);t=Math.cos(t),this.transform(t,i,-i,t,0,0)},modulateOpacity:function(t){this.Ka[this.Ka.length-1]*=t},_drawPath:function(t,i){let r=t.jc===_?"evenodd":"nonzero",a=Math.max(0,this.Ka[this.Ka.length-1]),n=t.Lb(),o=i.Rc();this.Oa.push(()=>{i.Qc(o),i.Pc(this.Ia,n,r,a),t.lc(n)})},_drawRiveImage:function(t,r,a){var n=t.Sc;if(n){var o=this.Ia,s=i(r),l=Math.max(0,a*this.Ka[this.Ka.length-1]);this.Oa.push(function(){o.globalCompositeOperation=s,o.globalAlpha=l,o.drawImage(n,0,0),o.globalAlpha=1})}},_getMatrix:function(t){let i=this.Ya,r=i.length-6;for(let a=0;6>a;++a)t[a]=i[r+a]},_drawImageMesh:function(r,n,o,s,l,c,u,h,f,p,m,g,y){let _,v,b;try{_=t.HEAPF32.slice(s>>2,(s>>2)+l),v=t.HEAPF32.slice(c>>2,(c>>2)+u),b=t.HEAPU16.slice(h>>1,(h>>1)+f)}catch(t){console.error("[Rive] _drawImageMesh: failed to read mesh data from WASM heap. Mesh skipped for this frame.");return}s=this.Ia.canvas.width,c=this.Ia.canvas.height,u=g-p,h=y-m,p=Math.max(p,0),m=Math.max(m,0);let x=(g=Math.min(g,s))-p,w=(y=Math.min(y,c))-m;if(console.assert(x<=Math.min(u,s)),console.assert(w<=Math.min(h,c)),!(0>=x||0>=w)){g=x<u||w<h,s=y=1;var k=Math.ceil(x*y),S=Math.ceil(w*s);c=d.td(),k>c&&(y*=c/k,k=c),S>c&&(s*=c/S,S=c),A||(A=new t.DynamicRectanizer(c)).reset(512,512),0>(c=A.addRect(k,S))&&(a(),T.add(this),console.assert(0<=(c=A.addRect(k,S))));var P=65535&c,D=c>>16;C.push({lb:this.Ya.slice(this.Ya.length-6),image:r,mc:P,nc:D,ud:p,vd:m,Gd:k,vc:S,Gb:y,Hb:s,ec:_,Mc:v,indices:b,xd:g,Ic:r.Tb<<1|!!g}),E+=l,M+=f;var I=this.Ia,z=i(n),F=Math.max(0,o*this.Ka[this.Ka.length-1]);this.Oa.push(function(){I.save(),I.resetTransform(),I.globalCompositeOperation=z,I.globalAlpha=F;let t=d.canvas();t&&I.drawImage(t,P,D,k,S,p,m,x,w),I.restore()})}},_clipPath:function(t){let i=t.jc===_?"evenodd":"nonzero",r=t.Lb();this.Oa.push(()=>{this.Ia.clip(r,i),t.lc(r)})},beginFrame:function(t=!0){T.add(this),t&&this.Oa.push(this.Ia.clearRect.bind(this.Ia,0,0,this.hc.width,this.hc.height))},clear:function(){this.beginFrame(!0)},flush:function(){},translate:function(t,i){this.transform(1,0,0,1,t,i)}});t.makeRenderer=function(i){let r=new P(i),a=r.Ia,n=null,o=null,s={attachSession:function(i){if(i&&n===i)return!0;if(!i||n||"function"!=typeof t.c2dDeferredClaim||"function"!=typeof t.c2dDeferredRenderer||!t.c2dDeferredClaim(i))return!1;let r=t.c2dDeferredRenderer(i);return!!r&&(n=i,o=r,!0)},detachSession:function(){n&&t.c2dDeferredDetach(n),o=n=null},deferredActive:function(){return null!==o}},l={save:function(){t.c2dDeferredSave(n)},restore:function(){t.c2dDeferredRestore(n)},transform:function(i,r,a,o,s,l){t.c2dDeferredTransform(n,i,r,a,o,s,l)},translate:function(i,r){t.c2dDeferredTransform(n,1,0,0,1,i,r)},rotate:function(i){let r=Math.sin(i);i=Math.cos(i),t.c2dDeferredTransform(n,i,r,-r,i,0,0)},align:function(i,r,a,o,s){t.c2dDeferredAlign(n,i,r,a.minX,a.minY,a.maxX,a.maxY,o.minX,o.minY,o.maxX,o.maxY,void 0===s?1:s)},beginFrame:function(i=!0){r.beginFrame(i),t.c2dDeferredBeginFrame(n)},clear:function(){r.beginFrame(!0),t.c2dDeferredBeginFrame(n)},flush:function(){t.c2dDeferredReplay(n,r)}};return new Proxy(r,{get(t,i){if(S.call(s,i))return s[i];if("_deferredRecorder"===i)return o;if(null!==o&&S.call(l,i))return l[i];if("function"==typeof t[i])return function(...r){return t[i].apply(t,r)};if("function"==typeof a[i]){if(-1<h.indexOf(i))throw Error("RiveException: Method call to '"+i+"()' is not allowed, as the renderer cannot immediately pass through the return                 values of any canvas 2d context methods.");return function(...t){r.Oa.push(a[i].bind(a,...t))}}return t[i]},set(t,i,n){if(i in a)return r.Oa.push(()=>{a[i]=n}),!0}})},t.decodeImage=function(t,i){new b({sb:i}).decode(t)},t.renderFactory={makeRenderPaint:function(){return new k},makeRenderPath:function(){return new w},makeRenderImage:function(){let t=I;return new b({Eb:()=>{t.total++},sb:()=>{if(t.loaded++,t.loaded===t.total){let i=t.ready;i&&(i(),t.ready=null)}}})}};let D=t.load,I=null;t.load=function(i,r,a=!0,n=null){let o=new t.FallbackFileAssetLoader;return void 0!==r&&o.addLoader(r),a&&(r=new t.CDNFileAssetLoader(n),o.addLoader(r)),new Promise(function(t){let r=null;I={total:0,loaded:0,ready:function(){t(r)}},r=D(i,o,n??null),0==I.total&&t(r)})};let z=t.Artboard.prototype.draw;t.Artboard.prototype.draw=function(t){z.call(this,t._deferredRecorder||t)};let F=t.RendererWrapper.prototype.align;t.RendererWrapper.prototype.align=function(t,i,r,a,n=1){F.call(this,t,i,r,a,n)},t.requestAnimationFrame=(n=new l).requestAnimationFrame.bind(n),t.cancelAnimationFrame=n.cancelAnimationFrame.bind(n),t.enableFPSCounter=n.dd.bind(n),t.disableFPSCounter=n.ad,n.Bc=a,t.resolveAnimationFrame=a,t.cleanup=function(){A&&A.delete()}};var p="./this.program";s&&(a=self.location.href);var m,g,y="";if(o||s){try{y=new URL(".",a).href}catch{}s&&(g=t=>{var i=new XMLHttpRequest;return i.open("GET",t,!1),i.responseType="arraybuffer",i.send(null),new Uint8Array(i.response)}),m=async t=>{if(R(t))return new Promise((i,r)=>{var a=new XMLHttpRequest;a.open("GET",t,!0),a.responseType="arraybuffer",a.onload=()=>{200==a.status||0==a.status&&a.response?i(a.response):r(a.status)},a.onerror=r,a.send(null)});var i=await fetch(t,{credentials:"same-origin"});if(i.ok)return i.arrayBuffer();throw Error(i.status+" : "+i.url)}}var _,v,b,x,w,k,T,S,A,C,E,M,P,D,I=console.log.bind(console),z=console.error.bind(console),F=!1,R=t=>t.startsWith("file://"),O=!1;function B(){var i=it.buffer;t.HEAP8=w=new Int8Array(i),T=new Int16Array(i),t.HEAPU8=k=new Uint8Array(i),t.HEAPU16=S=new Uint16Array(i),t.HEAP32=A=new Int32Array(i),t.HEAPU32
2=C=new Uint32Array(i),t.HEAPF32=E=new Float32Array(i),M=new Float64Array(i),P=new BigInt64Array(i),D=new BigUint64Array(i)}function j(i){throw t.onAbort?.(i),z(i="Aborted("+i+")"),F=!0,i=new WebAssembly.RuntimeError(i+". Build with -sASSERTIONS for more info."),x?.(i),i}async function N(t){if(!_)try{var i=await m(t);return new Uint8Array(i)}catch{}if(t==tT&&_)t=new Uint8Array(_);else if(g)t=g(t);else throw"both async and sync fetching of the wasm failed";return t}async function $(t,i){try{var r=await N(t);return await WebAssembly.instantiate(r,i)}catch(t){z(`failed to asynchronously prepare wasm: ${t}`),j(t)}}async function V(t){if(!_&&!R(tT))try{var i=fetch(tT,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(i,t)}catch(t){z(`wasm streaming compile failed: ${t}`),z("falling back to ArrayBuffer instantiation")}return $(tT,t)}class U{name="ExitStatus";constructor(t){this.message=`Program terminated with exit(${t})`,this.status=t}}var G=i=>{for(;0<i.length;)i.shift()(t)},q=[],Z=[],H=()=>{var i=t.preRun.shift();Z.push(i)},W=!0,X=()=>{var t=A[eV>>2];return eV+=4,t},Y=(t,i)=>{for(var r=0,a=t.length-1;0<=a;a--){var n=t[a];"."===n?t.splice(a,1):".."===n?(t.splice(a,1),r++):r&&(t.splice(a,1),r--)}if(i)for(;r;r--)t.unshift("..");return t},K=t=>{var i="/"===t.charAt(0),r="/"===t.slice(-1);return(t=Y(t.split("/").filter(t=>!!t),!i).join("/"))||i||(t="."),t&&r&&(t+="/"),(i?"/":"")+t},J=t=>{var i=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(t).slice(1);return(t=i[0],i=i[1],t||i)?t+(i&&=i.slice(0,-1)):"."},Q=t=>{(Q=t=>crypto.getRandomValues(t))(t)},ee=globalThis.TextDecoder&&new TextDecoder,et=(t,i,r,a)=>{if(r=i+r,a)return r;for(;t[i]&&!(i>=r);)++i;return i},ei=(t,i=0,r,a)=>{if(16<(r=et(t,i,r,a))-i&&t.buffer&&ee)return ee.decode(t.subarray(i,r));for(a="";i<r;){var n=t[i++];if(128&n){var o=63&t[i++];if(192==(224&n))a+=String.fromCharCode((31&n)<<6|o);else{var s=63&t[i++];65536>(n=224==(240&n)?(15&n)<<12|o<<6|s:(7&n)<<18|o<<12|s<<6|63&t[i++])?a+=String.fromCharCode(n):(n-=65536,a+=String.fromCharCode(55296|n>>10,56320|1023&n))}}else a+=String.fromCharCode(n)}return a},er=[],ea=t=>{for(var i=0,r=0;r<t.length;++r){var a=t.charCodeAt(r);127>=a?i++:2047>=a?i+=2:55296<=a&&57343>=a?(i+=4,++r):i+=3}return i},en=(t,i,r,a)=>{if(!(0<a))return 0;var n=r;a=r+a-1;for(var o=0;o<t.length;++o){var s=t.codePointAt(o);if(127>=s){if(r>=a)break;i[r++]=s}else if(2047>=s){if(r+1>=a)break;i[r++]=192|s>>6,i[r++]=128|63&s}else if(65535>=s){if(r+2>=a)break;i[r++]=224|s>>12,i[r++]=128|s>>6&63,i[r++]=128|63&s}else{if(r+3>=a)break;i[r++]=240|s>>18,i[r++]=128|s>>12&63,i[r++]=128|s>>6&63,i[r++]=128|63&s,o++}}return i[r]=0,r-n},eo=[];function es(t,i){eo[t]={input:[],output:[],bb:i},eI(t,el)}var el={open(t){var i=eo[t.node.Fb];if(!i)throw new e_(43);t.Ca=i,t.seekable=!1},close(t){t.Ca.bb.yb(t.Ca)},yb(t){t.Ca.bb.yb(t.Ca)},read(t,i,r,a){if(!t.Ca||!t.Ca.bb.uc)throw new e_(60);for(var n=0,o=0;o<a;o++){try{var s=t.Ca.bb.uc(t.Ca)}catch(t){throw new e_(29)}if(void 0===s&&0===n)throw new e_(6);if(null==s)break;n++,i[r+o]=s}return n&&(t.node.ib=Date.now()),n},write(t,i,r,a){if(!t.Ca||!t.Ca.bb.ac)throw new e_(60);try{for(var n=0;n<a;n++)t.Ca.bb.ac(t.Ca,i[r+n])}catch(t){throw new e_(29)}return a&&(t.node.Sa=t.node.Pa=Date.now()),n}},ec={Va:null,ab:()=>ec.createNode(null,"/",16895,0),createNode(t,i,r,a){if(24576==(61440&r)||4096==(61440&r))throw new e_(63);return ec.Va||(ec.Va={dir:{node:{gb:ec.za.gb,Xa:ec.za.Xa,rb:ec.za.rb,Cb:ec.za.Cb,Fc:ec.za.Fc,Lc:ec.za.Lc,Hc:ec.za.Hc,cc:ec.za.cc,Jb:ec.za.Jb},stream:{Ua:ec.xa.Ua}},file:{node:{gb:ec.za.gb,Xa:ec.za.Xa},stream:{Ua:ec.xa.Ua,read:ec.xa.read,write:ec.xa.write,yc:ec.xa.yc,Ac:ec.xa.Ac}},link:{node:{gb:ec.za.gb,Xa:ec.za.Xa,tb:ec.za.tb},stream:{}},oc:{node:{gb:ec.za.gb,Xa:ec.za.Xa},stream:eD}}),16384==(61440&(r=eT(t,i,r,a)).mode)?(r.za=ec.Va.dir.node,r.xa=ec.Va.dir.stream,r.ya={}):32768==(61440&r.mode)?(r.za=ec.Va.file.node,r.xa=ec.Va.file.stream,r.Ga=0,r.ya=null):40960==(61440&r.mode)?(r.za=ec.Va.link.node,r.xa=ec.Va.link.stream):8192==(61440&r.mode)&&(r.za=ec.Va.oc.node,r.xa=ec.Va.oc.stream),r.ib=r.Sa=r.Pa=Date.now(),t&&(t.ya[i]=r,t.ib=t.Sa=t.Pa=r.ib),r},Ud:t=>t.ya?t.ya.subarray?t.ya.subarray(0,t.Ga):new Uint8Array(t.ya):new Uint8Array(0),za:{gb(t){var i={};return i.Rd=8192==(61440&t.mode)?t.id:1,i.Wd=t.id,i.mode=t.mode,i.Yd=1,i.uid=0,i.Vd=0,i.Fb=t.Fb,16384==(61440&t.mode)?i.size=4096:32768==(61440&t.mode)?i.size=t.Ga:40960==(61440&t.mode)?i.size=t.link.length:i.size=0,i.ib=new Date(t.ib),i.Sa=new Date(t.Sa),i.Pa=new Date(t.Pa),i.Xc=4096,i.Ld=Math.ceil(i.size/i.Xc),i},Xa(t,i){for(var r of["mode","atime","mtime","ctime"])null!=i[r]&&(t[r]=i[r]);void 0!==i.size&&(i=i.size,t.Ga!=i&&(0==i?(t.ya=null,t.Ga=0):(r=t.ya,t.ya=new Uint8Array(i),r&&t.ya.set(r.subarray(0,Math.min(i,t.Ga))),t.Ga=i)))}
2,rb(){throw ec.Vb||(ec.Vb=new e_(44),ec.Vb.stack="<generic error, no stack>"),ec.Vb},Cb:(t,i,r,a)=>ec.createNode(t,i,r,a),Fc(t,i,r){try{var a=ek(i,r)}catch(t){}if(a){if(16384==(61440&t.mode))for(var n in a.ya)throw new e_(55);if(ep[n=ew(a.parent.id,a.name)]===a)ep[n]=a.mb;else for(n=ep[n];n;){if(n.mb===a){n.mb=a.mb;break}n=n.mb}}delete t.parent.ya[t.name],i.ya[r]=t,t.name=r,i.Pa=i.Sa=t.parent.Pa=t.parent.Sa=Date.now()},Lc(t,i){delete t.ya[i],t.Pa=t.Sa=Date.now()},Hc(t,i){var r,a=ek(t,i);for(r in a.ya)throw new e_(55);delete t.ya[i],t.Pa=t.Sa=Date.now()},cc:t=>[".","..",...Object.keys(t.ya)],Jb:(t,i,r)=>((t=ec.createNode(t,i,41471,0)).link=r,t),tb(t){if(40960!=(61440&t.mode))throw new e_(28);return t.link}},xa:{read(t,i,r,a,n){var o=t.node.ya;if(n>=t.node.Ga)return 0;if(8<(t=Math.min(t.node.Ga-n,a))&&o.subarray)i.set(o.subarray(n,n+t),r);else for(a=0;a<t;a++)i[r+a]=o[n+a];return t},write(t,i,r,a,n,o){if(i.buffer===w.buffer&&(o=!1),!a)return 0;if((t=t.node).Sa=t.Pa=Date.now(),i.subarray&&(!t.ya||t.ya.subarray)){if(o)return t.ya=i.subarray(r,r+a),t.Ga=a;if(0===t.Ga&&0===n)return t.ya=i.slice(r,r+a),t.Ga=a;if(n+a<=t.Ga)return t.ya.set(i.subarray(r,r+a),n),a}o=n+a;var s=t.ya?t.ya.length:0;if(s>=o||(o=Math.max(o,s*(1048576>s?2:1.125)>>>0),0!=s&&(o=Math.max(o,256)),s=t.ya,t.ya=new Uint8Array(o),0<t.Ga&&t.ya.set(s.subarray(0,t.Ga),0)),t.ya.subarray&&i.subarray)t.ya.set(i.subarray(r,r+a),n);else for(o=0;o<a;o++)t.ya[n+o]=i[r+o];return t.Ga=Math.max(t.Ga,n+a),a},Ua(t,i,r){if(1===r?i+=t.position:2===r&&32768==(61440&t.node.mode)&&(i+=t.node.Ga),0>i)throw new e_(28);return i},yc(t,i,r,a,n){if(32768!=(61440&t.node.mode))throw new e_(43);if(t=t.node.ya,2&n||!t||t.buffer!==w.buffer)throw a=!0,j(),n=void 0,new e_(48);return a=!1,n=t.byteOffset,{Ba:n,Kd:a}},Ac:(t,i,r,a)=>(ec.xa.write(t,i,0,a,r,!1),0)}},eu=null,eh={},ed=[],ef=1,ep=null,em=!1,eg=!0,ey={},e_=class{name="ErrnoError";constructor(t){this.eb=t}},ev=class{cb={};node=null;get flags(){return this.cb.flags}set flags(t){this.cb.flags=t}get position(){return this.cb.position}set position(t){this.cb.position=t}},eb=class{za={};xa={};Db=null;constructor(t,i,r,a){t||=this,this.parent=t,this.ab=t.ab,this.id=ef++,this.name=i,this.mode=r,this.Fb=a,this.ib=this.Sa=this.Pa=Date.now()}get read(){return 365==(365&this.mode)}set read(t){t?this.mode|=365:this.mode&=-366}get write(){return 146==(146&this.mode)}set write(t){t?this.mode|=146:this.mode&=-147}};function ex(t,i={}){if(!t)throw new e_(44);i.Xb??(i.Xb=!0),"/"===t.charAt(0)||(t="//"+t);var r=0;e:for(;40>r;r++){t=t.split("/").filter(t=>!!t);for(var a=eu,n="/",o=0;o<t.length;o++){var s=o===t.length-1;if(s&&i.parent)break;if("."!==t[o])if(".."===t[o])if(n=J(n),a===a.parent){t=n+"/"+t.slice(o+1).join("/"),r--;continue e}else a=a.parent;else{n=K(n+"/"+t[o]);try{a=ek(a,t[o])}catch(t){if(44===t?.eb&&s&&i.yd)return{path:n};throw t}if(a.Db&&(!s||i.Xb)&&(a=a.Db.root),40960==(61440&a.mode)&&(!s||i.Wb)){if(!a.za.tb)throw new e_(52);"/"===(a=a.za.tb(a)).charAt(0)||(a=J(n)+"/"+a),t=a+"/"+t.slice(o+1).join("/");continue e}}}return{path:n,node:a}}throw new e_(32)}function ew(t,i){for(var r=0,a=0;a<i.length;a++)r=(r<<5)-r+i.charCodeAt(a)|0;return(t+r>>>0)%ep.length}function ek(t,i){var r=16384==(61440&t.mode)?(r=eA(t,"x"))?r:2*!t.za.rb:54;if(r)throw new e_(r);for(r=ep[ew(t.id,i)];r;r=r.mb){var a=r.name;if(r.parent.id===t.id&&a===i)return r}return t.za.rb(t,i)}function eT(t,i,r,a){return i=ew((t=new eb(t,i,r,a)).parent.id,t.name),t.mb=ep[i],ep[i]=t}function eS(t){var i=["r","w","rw"][3&t];return 512&t&&(i+="w"),i}function eA(t,i){return eg?0:i.includes("r")&&!(292&t.mode)||i.includes("w")&&!(146&t.mode)||i.includes("x")&&!(73&t.mode)?2:0}function eC(t,i){if(16384!=(61440&t.mode))return 54;try{return ek(t,i),20}catch(t){}return eA(t,"wx")}function eE(t){if(!(t=ed[t]))throw new e_(8);return t}function eM(t,i=-1){if(t=Object.assign(new ev,t),-1==i)e:{for(i=0;4096>=i;i++)if(!ed[i])break e;throw new e_(33)}return t.fb=i,ed[i]=t}function eP(t,i){var r=void 0,a=r?null:t;if(!(r??=t.za.Xa))throw new e_(63);r(a,i)}var eD={open(t){t.xa=eh[t.node.Fb].xa,t.xa.open?.(t)},Ua(){throw new e_(70)}};function eI(t,i){eh[t]={xa:i}}function ez(t,i){var r="/"===i;if(r&&eu)throw new e_(10);if(!r&&i){var a=ex(i,{Xb:!1});if(i=a.path,(a=a.node).Db)throw new e_(10);if(16384!=(61440&a.mode))throw new e_(54)}i={type:t,Zd:{},zc:i,wd:[]},(t=t.ab(i)).ab=i,i.root=t,r?eu=t:a&&(a.Db=i,a.ab&&a.ab.wd.push(i))}function eL(t,i,r){var a=ex(t,{parent:!0}).node;if(!(t=t&&t.match(/([^\/]+|\/)\/*$/)[1]))throw new e_(28);
2if("."===t||".."===t)throw new e_(20);var n=eC(a,t);if(n)throw new e_(n);if(!a.za.Cb)throw new e_(63);return a.za.Cb(a,t,i,r)}function eF(t){return eL(t,16895,0)}function eR(t,i,r){void 0===r&&(r=i,i=438),eL(t,8192|i,r)}function eO(t,i){if(!((...t)=>{for(var i="",r=!1,a=t.length-1;-1<=a&&!r;a--){if("string"!=typeof(r=0<=a?t[a]:"/"))throw TypeError("Arguments to path.resolve must be strings");if(!r)return"";i=r+"/"+i,r="/"===r.charAt(0)}return i=Y(i.split("/").filter(t=>!!t),!r).join("/"),(r?"/":"")+i||"."})(t))throw new e_(44);var r=ex(i,{parent:!0}).node;if(!r)throw new e_(44);var a=eC(r,i=i&&i.match(/([^\/]+|\/)\/*$/)[1]);if(a)throw new e_(a);if(!r.za.Jb)throw new e_(63);r.za.Jb(r,i,t)}function eB(i,r,a=438){if(""===i)throw new e_(44);if("string"==typeof r){var n={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[r];if(void 0===n)throw Error(`Unknown file open mode: ${r}`);r=n}if(a=64&r?4095&a|32768:0,"object"==typeof i)n=i;else{var o=i.endsWith("/");n=(i=ex(i,{Wb:!(131072&r),yd:!0})).node,i=i.path}var s=!1;if(64&r)if(n){if(128&r)throw new e_(20)}else{if(o)throw new e_(31);n=eL(i,511|a,0),s=!0}if(!n)throw new e_(44);if(8192==(61440&n.mode)&&(r&=-513),65536&r&&16384!=(61440&n.mode))throw new e_(54);if(!s&&(o=n?40960==(61440&n.mode)?32:16384==(61440&n.mode)&&("r"!==eS(r)||576&r)?31:eA(n,eS(r)):44))throw new e_(o);if(512&r&&!s){if(16384==(61440&(o="string"==typeof(o=n)?ex(o,{Wb:!0}).node:o).mode))throw new e_(31);if(32768!=(61440&o.mode))throw new e_(28);var l=eA(o,"w");if(l)throw new e_(l);eP(o,{size:0,timestamp:Date.now()})}for(r&=-131713,o=n;;){if(o===o.parent){o=o.ab.zc;var c=c?"/"!==o[o.length-1]?`${o}/${c}`:o+c:o;break}c=c?`${o.name}/${c}`:o.name,o=o.parent}return(c=eM({node:n,path:c,flags:r,seekable:!0,position:0,xa:n.xa,Fd:[],error:!1})).xa.open&&c.xa.open(c),s&&(a&=511,eP(n="string"==typeof n?ex(n,{Wb:!0}).node:n,{mode:4095&a|-4096&n.mode,Pa:Date.now(),Sd:void 0})),!t.logReadFiles||1&r||i in ey||(ey[i]=1),c}function ej(t,i,r){if(null===t.fb)throw new e_(8);if(!t.seekable||!t.xa.Ua)throw new e_(70);if(0!=r&&1!=r&&2!=r)throw new e_(28);t.position=t.xa.Ua(t,i,r),t.Fd=[]}function eN(t,i,r){t=K("/dev/"+t);var a,n=(a=0,i&&(a|=365),r&&(a|=146),a);eN.xc??(eN.xc=64);var o=eN.xc++<<8;eI(o,{open(t){t.seekable=!1},close(){r?.buffer?.length&&r(10)},read(t,r,a,n){for(var o=0,s=0;s<n;s++){try{var l=i()}catch(t){throw new e_(29)}if(void 0===l&&0===o)throw new e_(6);if(null==l)break;o++,r[a+s]=l}return o&&(t.node.ib=Date.now()),o},write(t,i,a,n){for(var o=0;o<n;o++)try{r(i[a+o])}catch(t){throw new e_(29)}return n&&(t.node.Sa=t.node.Pa=Date.now()),o}}),eR(t,n,o)}var e$={},eV=void 0,eU=(t,i)=>Object.defineProperty(i,"name",{value:t}),eG=[],eq=[0,1,,1,null,1,!0,1,!1,1],eZ=class extends Error{constructor(t){super(t),this.name="BindingError"}},eH=t=>{if(!t)throw new eZ(`Cannot use deleted val. handle = ${t}`);return eq[t]},eW=t=>{switch(t){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:let i=eG.pop()||eq.length;return eq[i]=t,eq[i+1]=1,i}};class eX extends Error{}var eY=t=>{for(var i="";;){var r=k[t++];if(!r)return i;i+=String.fromCharCode(r)}},eK={},eJ=(t,i)=>{if(void 0===i)throw new eZ("ptr should not be undefined");for(;t.Ha;)i=t.ub(i),t=t.Ha;return i},eQ={},e1=t=>{var i=eY(t=t3(t));return t0(t),i},e0=(t,i)=>{var r=eQ[t];if(void 0===r)throw new eZ(t=`${i} has unknown type ${e1(t)}`);return r},e2=()=>{},e3=!1,e5=t=>globalThis.FinalizationRegistry?(e3=new FinalizationRegistry(t=>{t=t.va,--t.count.value,0===t.count.value&&(t.Ja?t.Qa.Wa(t.Ja):t.Da.wa.Wa(t.Ba))}),e5=t=>{var i=t.va;return i.Ja&&e3.register(t,{va:i},t),t},e2=t=>{e3.unregister(t)},e5(t)):(e5=t=>t,t),e4={},e6=t=>{for(;t.length;){var i=t.pop();t.pop()(i)}};function e8(t){return this.Aa(C[t>>2])}var e7={},e9={},te=class extends Error{constructor(t){super(t),this.name="InternalError"}},tt=(t,i,r)=>{function a(i){if((i=r(i)).length!==t.length)throw new te("Mismatched type converter count");for(var a=0;a<t.length;++a)ti(t[a],i[a])}t.forEach(t=>e9[t]=i);var n=Array(i.length),o=[],s=0;for(let[t,r]of i.entries())eQ.hasOwnProperty(r)?n[t]=eQ[r]:(o.push(r),e7.hasOwnProperty(r)||(e7[r]=[]),e7[r].push(()=>{n[t]=eQ[r],++s===o.length&&a(n)}));0===o.length&&a(n)};function ti(t,i,r={}){return function(t,i,r={}){var a=i.name;if(!t)throw new eZ(`type "${a}" must have a positive integer typeid pointer`);if(eQ.hasOwnProperty(t)){if(r.md)return;throw new eZ(`Cannot register type '${a}' twice`)}eQ[t]=i,delete e9[t],e7.hasOwnProperty(t)&&(i=e7[t],delete e7[t],i.forEac
2h(t=>t()))}(t,i,r)}var tr=(t,i,r)=>{switch(i){case 1:return r?t=>w[t]:t=>k[t];case 2:return r?t=>T[t>>1]:t=>S[t>>1];case 4:return r?t=>A[t>>2]:t=>C[t>>2];case 8:return r?t=>P[t>>3]:t=>D[t>>3];default:throw TypeError(`invalid integer width (${i}): ${t}`)}},ta=t=>{throw new eZ(t.va.Da.wa.name+" instance already deleted")},tn=[];function to(){}var ts={},tl=(t,i,r)=>{if(void 0===t[i].Fa){var a=t[i];t[i]=function(...a){if(!t[i].Fa.hasOwnProperty(a.length))throw new eZ(`Function '${r}' called with an invalid number of arguments (${a.length}) - expects one of (${t[i].Fa})!`);return t[i].Fa[a.length].apply(this,a)},t[i].Fa=[],t[i].Fa[a.$a]=a}},tc=(i,r,a)=>{if(t.hasOwnProperty(i)){if(void 0===a||void 0!==t[i].Fa&&void 0!==t[i].Fa[a])throw new eZ(`Cannot register public name '${i}' twice`);if(tl(t,i,i),t[i].Fa.hasOwnProperty(a))throw new eZ(`Cannot register multiple overloads of a function with the same number of arguments (${a})!`);t[i].Fa[a]=r}else t[i]=r,t[i].$a=a};function tu(t,i,r,a,n,o,s,l){this.name=t,this.constructor=i,this.Ta=r,this.Wa=a,this.Ha=n,this.gd=o,this.ub=s,this.bd=l,this.Dc=[]}var th=(t,i,r)=>{for(;i!==r;){if(!i.ub)throw new eZ(`Expected null or instance of ${r.name}, got an instance of ${i.name}`);t=i.ub(t),i=i.Ha}return t},td=t=>{if(null===t)return"null";var i=typeof t;return"object"===i||"array"===i||"function"===i?t.toString():""+t};function tf(t,i){if(null===i){if(this.Zb)throw new eZ(`null is not a valid ${this.name}`);return 0}if(!i.va)throw new eZ(`Cannot pass "${td(i)}" as a ${this.name}`);if(!i.va.Ba)throw new eZ(`Cannot pass deleted object as a pointer of type ${this.name}`);return th(i.va.Ba,i.va.Da.wa,this.wa)}function tp(t,i){if(null===i){if(this.Zb)throw new eZ(`null is not a valid ${this.name}`);if(this.Bb){var r=this.bc();return null!==t&&t.push(this.Wa,r),r}return 0}if(!i||!i.va)throw new eZ(`Cannot pass "${td(i)}" as a ${this.name}`);if(!i.va.Ba)throw new eZ(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.Ab&&i.va.Da.Ab)throw new eZ(`Cannot convert argument of type ${i.va.Qa?i.va.Qa.name:i.va.Da.name} to parameter type ${this.name}`);if(r=th(i.va.Ba,i.va.Da.wa,this.wa),this.Bb){if(void 0===i.va.Ja)throw new eZ("Passing raw pointer to smart pointer is illegal");switch(this.Ed){case 0:if(i.va.Qa===this)r=i.va.Ja;else throw new eZ(`Cannot convert argument of type ${i.va.Qa?i.va.Qa.name:i.va.Da.name} to parameter type ${this.name}`);break;case 1:r=i.va.Ja;break;case 2:if(i.va.Qa===this)r=i.va.Ja;else{var a=i.clone();r=this.Ad(r,eW(()=>a.delete())),null!==t&&t.push(this.Wa,r)}break;default:throw new eZ("Unsupported sharing policy")}}return r}function tm(t,i){if(null===i){if(this.Zb)throw new eZ(`null is not a valid ${this.name}`);return 0}if(!i.va)throw new eZ(`Cannot pass "${td(i)}" as a ${this.name}`);if(!i.va.Ba)throw new eZ(`Cannot pass deleted object as a pointer of type ${this.name}`);if(i.va.Da.Ab)throw new eZ(`Cannot convert argument of type ${i.va.Da.name} to parameter type ${this.name}`);return th(i.va.Ba,i.va.Da.wa,this.wa)}var tg=(t,i,r)=>i===r?t:void 0===r.Ha||null===(t=tg(t,i,r.Ha))?null:r.bd(t),ty=(t,i)=>{if(!i.Da||!i.Ba)throw new te("makeClassHandle requires ptr and ptrType");if(!!i.Qa!=!!i.Ja)throw new te("Both smartPtrType and smartPtr must be specified");return i.count={value:1},e5(Object.create(t,{va:{value:i,writable:!0}}))};function t_(t,i,r,a,n,o,s,l,c,u,h){this.name=t,this.wa=i,this.Zb=r,this.Ab=a,this.Bb=n,this.zd=o,this.Ed=s,this.Ec=l,this.bc=c,this.Ad=u,this.Wa=h,n||void 0!==i.Ha?this.Ea=tp:(this.Ea=a?tf:tm,this.La=null)}var tv=(i,r,a)=>{if(!t.hasOwnProperty(i))throw new te("Replacing nonexistent public symbol");void 0!==t[i].Fa&&void 0!==a?t[i].Fa[a]=r:(t[i]=r,t[i].$a=a)},tb=(t,i)=>{t=eY(t);var r=ii.get(i);if("function"!=typeof r)throw new eZ(`unknown function pointer with signature ${t}: ${i}`);return r};class tx extends Error{}var tw=(t,i)=>{var r=[],a={};throw i.forEach(function t(i){a[i]||eQ[i]||(e9[i]?e9[i].forEach(t):(r.push(i),a[i]=!0))}),new tx(`${t}: `+r.map(e1).join([", "]))};function tk(t,i,r,a,n){var o=i.length;if(2>o)throw new eZ("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=null!==i[1]&&null!==r,l=function(t){for(var i=1;i<t.length;++i)if(null!==t[i]&&void 0===t[i].La)return!0;return!1}(i),c=!i[0].sd,u=o-2,h=Array(u),d=[],f=[];return eU(t,function(...t){if(f.length=0,d.length=s?2:1,d[0]=n,s){var r=i[1].Ea(f,this);d[1]=r}for(var o=0;o<u;++o)h[o]=i[o+2].Ea(f,t[o]),d.push(h[o]);if(t=a(...d),l)e6(f);else for(o=s?1:2;o<i.length;o++){var p=1===o?r:h[o-2];null!==i[o].La&&i[o].La(p)}return c?i[0].Aa(t):void 0})}var tT,tS,tA=(t,i)=>{for(var r=[],a=0;a<t;a++)r.push(C[i+4*a>>2]);return r},tC=t=>{let i=(t=t.trim()).indexOf("(");return -1===i?t:t.slice(0,i)},tE=(t,i,r)=>{if(!(t instanceof Object))throw new eZ(`${r}
2 with invalid "this": ${t}`);if(!(t instanceof i.wa.constructor))throw new eZ(`${r} incompatible with "this" of type ${t.constructor.name}`);if(!t.va.Ba)throw new eZ(`cannot call emscripten binding method ${r} on deleted object`);return th(t.va.Ba,t.va.Da.wa,i.wa)},tM=t=>{9<t&&0==--eq[t+1]&&(eq[t]=void 0,eG.push(t))},tP={name:"emscripten::val",Aa:t=>{var i=eH(t);return tM(t),i},Ea:(t,i)=>eW(i),Na:e8,La:null},tD=(t,i,r)=>{switch(i){case 1:return r?function(t){return this.Aa(w[t])}:function(t){return this.Aa(k[t])};case 2:return r?function(t){return this.Aa(T[t>>1])}:function(t){return this.Aa(S[t>>1])};case 4:return r?function(t){return this.Aa(A[t>>2])}:function(t){return this.Aa(C[t>>2])};default:throw TypeError(`invalid integer width (${i}): ${t}`)}},tI=globalThis.TextDecoder?new TextDecoder("utf-16le"):void 0,tz=(t,i,r)=>{if(t>>=1,16<(i=et(S,t,i/2,r))-t&&tI)return tI.decode(S.subarray(t,i));for(r="";t<i;++t)r+=String.fromCharCode(S[t]);return r},tL=(t,i,r)=>{if(2>(r??=0x7fffffff))return 0;r-=2;var a=i;r=r<2*t.length?r/2:t.length;for(var n=0;n<r;++n)T[i>>1]=t.charCodeAt(n),i+=2;return T[i>>1]=0,i-a},tF=t=>2*t.length,tR=(t,i,r)=>{var a="";t>>=2;for(var n=0;!(n>=i/4);n++){var o=C[t+n];if(!o&&!r)break;a+=String.fromCodePoint(o)}return a},tO=(t,i,r)=>{if(4>(r??=0x7fffffff))return 0;var a=i;r=a+r-4;for(var n=0;n<t.length;++n){var o=t.codePointAt(n);if(65535<o&&n++,A[i>>2]=o,(i+=4)+4>r)break}return A[i>>2]=0,i-a},tB=t=>{for(var i=0,r=0;r<t.length;++r)65535<t.codePointAt(r)&&r++,i+=4;return i},tj=0,tN=[],t$={},tV=t=>{var i=t$[t];return void 0===i?eY(t):i},tU=[0,31,60,91,121,152,182,213,244,274,305,335],tG=[0,31,59,90,120,151,181,212,243,273,304,334],tq={},tZ=t=>{if(!(t instanceof U||"unwind"==t))throw t},tH=i=>{throw v=i,W||0<tj||(t.onExit?.(i),F=!0),new U(i)},tW=[],tX={},tY=()=>{if(!tS){var t,i={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(globalThis.navigator?.language??"C").replace("-","_")+".UTF-8",_:p||"./this.program"};for(t in tX)void 0===tX[t]?delete i[t]:i[t]=tX[t];var r=[];for(t in i)r.push(`${t}=${i[t]}`);tS=r}return tS};if(ep=Array(4096),ez(ec,"/"),eF("/tmp"),eF("/home"),eF("/home/web_user"),eF("/dev"),eI(259,{read:()=>0,write:(t,i,r,a)=>a,Ua:()=>0}),eR("/dev/null",259),es(1280,{uc(){e:{if(!er.length){var t=null;if(globalThis.window?.prompt&&null!==(t=window.prompt("Input: "))&&(t+="\n"),!t){var i=null;break e}i=Array(ea(t)+1),t=en(t,i,0,i.length),i.length=t,er=i}i=er.shift()}return i},ac(t,i){null===i||10===i?(I(ei(t.output)),t.output=[]):0!=i&&t.output.push(i)},yb(t){0<t.output?.length&&(I(ei(t.output)),t.output=[])},od:()=>({Od:25856,Qd:5,Nd:191,Pd:35387,Md:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),pd:()=>0,qd:()=>[24,80]}),es(1536,{ac(t,i){null===i||10===i?(z(ei(t.output)),t.output=[]):0!=i&&t.output.push(i)},yb(t){0<t.output?.length&&(z(ei(t.output)),t.output=[])}}),eR("/dev/tty",1280),eR("/dev/tty1",1536),tK=new Uint8Array(1024),tJ=0,eN("random",tQ=()=>(0===tJ&&(Q(tK),tJ=tK.byteLength),tK[--tJ])),eN("urandom",tQ),eF("/dev/shm"),eF("/dev/shm/tmp"),eF("/proc"),t1=eF("/proc/self"),eF("/proc/self/fd"),ez({ab(){var t=eT(t1,"fd",16895,73);return t.xa={Ua:ec.xa.Ua},t.za={rb(t,i){var r=eE(t=+i);return(t={parent:null,ab:{zc:"fake"},za:{tb:()=>r.path},id:t+1}).parent=t},cc:()=>Array.from(ed.entries()).filter(([,t])=>t).map(([t])=>t.toString())},t}},"/proc/self/fd"),Object.assign(i=to.prototype,{isAliasOf:function(t){if(!(this instanceof to&&t instanceof to))return!1;var i=this.va.Da.wa,r=this.va.Ba;t.va=t.va;var a=t.va.Da.wa;for(t=t.va.Ba;i.Ha;)r=i.ub(r),i=i.Ha;for(;a.Ha;)t=a.ub(t),a=a.Ha;return i===a&&r===t},clone:function(){if(this.va.Ba||ta(this),this.va.nb)return this.va.count.value+=1,this;var t=e5,i=Object,r=i.create,a=Object.getPrototypeOf(this),n=this.va;return t=t(r.call(i,a,{va:{value:{count:n.count,qb:n.qb,nb:n.nb,Ba:n.Ba,Da:n.Da,Ja:n.Ja,Qa:n.Qa}}})),t.va.count.value+=1,t.va.qb=!1,t},delete(){if(this.va.Ba||ta(this),this.va.qb&&!this.va.nb)throw new eZ("Object already scheduled for deletion");e2(this);var t=this.va;--t.count.value,0===t.count.value&&(t.Ja?t.Qa.Wa(t.Ja):t.Da.wa.Wa(t.Ba)),this.va.nb||(this.va.Ja=void 0,this.va.Ba=void 0)},isDeleted:function(){return!this.va.Ba},deleteLater:function(){if(this.va.Ba||ta(this),this.va.qb&&!this.va.nb)throw new eZ("Object already scheduled for deleti
2on");return tn.push(this),this.va.qb=!0,this}}),(r=Symbol.dispose)&&(i[r]=i.delete),Object.assign(t_.prototype,{hd(t){return this.Ec&&(t=this.Ec(t)),t},qc(t){this.Wa?.(t)},Na:e8,Aa:function(t){function i(){return this.Bb?ty(this.wa.Ta,{Da:this.zd,Ba:r,Qa:this,Ja:t}):ty(this.wa.Ta,{Da:this,Ba:t})}var r=this.hd(t);if(!r)return this.qc(t),null;var a=eK[eJ(this.wa,r)];if(void 0!==a)return 0===a.va.count.value?(a.va.Ba=r,a.va.Ja=t,a.clone()):(a=a.clone(),this.qc(t),a);if(!(a=ts[a=this.wa.gd(r)]))return i.call(this);a=this.Ab?a.Yc:a.pointerType;var n=tg(r,this.wa,a.wa);return null===n?i.call(this):this.Bb?ty(a.wa.Ta,{Da:a,Ba:n,Qa:this,Ja:t}):ty(a.wa.Ta,{Da:a,Ba:n})}}),t.noExitRuntime&&(W=t.noExitRuntime),t.print&&(I=t.print),t.printErr&&(z=t.printErr),t.wasmBinary&&(_=t.wasmBinary),t.thisProgram&&(p=t.thisProgram),t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);0<t.preInit.length;)t.preInit.shift()();var tK,tJ,tQ,t1,t0,t2,t3,t5,t4,t6,t8,t7,t9,ie,it,ii,ir={241150:(t,i,r,a,n)=>{if("u"<typeof window||void 0===(window.AudioContext||window.webkitAudioContext))return 0;if(void 0===window.miniaudio){window.miniaudio={referenceCount:0},window.miniaudio.device_type={},window.miniaudio.device_type.playback=t,window.miniaudio.device_type.capture=i,window.miniaudio.device_type.duplex=r,window.miniaudio.device_state={},window.miniaudio.device_state.stopped=a,window.miniaudio.device_state.started=n;let o=window.miniaudio;o.devices=[],o.track_device=function(t){for(var i=0;i<o.devices.length;++i)if(null==o.devices[i])return o.devices[i]=t,i;return o.devices.push(t),o.devices.length-1},o.untrack_device_by_index=function(t){for(o.devices[t]=null;0<o.devices.length;)if(null==o.devices[o.devices.length-1])o.devices.pop();else break},o.untrack_device=function(t){for(var i=0;i<o.devices.length;++i)if(o.devices[i]==t)return o.untrack_device_by_index(i)},o.get_device_by_index=function(t){return o.devices[t]},o.unlock_event_types=["touchend","click"],o.unlock=function(){for(var t=0;t<o.devices.length;++t){var i=o.devices[t];null!=i&&null!=i.Ra&&i.state===o.device_state.started&&i.Ra.resume().then(()=>{t5(i.Cc)},t=>{console.error("Failed to resume audiocontext",t)})}o.unlock_event_types.map(function(t){document.removeEventListener(t,o.unlock,!0)})},o.unlock_event_types.map(function(t){document.addEventListener(t,o.unlock,!0)})}return window.miniaudio.referenceCount+=1,1},243328:()=>{void 0!==window.miniaudio&&(window.miniaudio.unlock_event_types.map(function(t){document.removeEventListener(t,window.miniaudio.unlock,!0)}),--window.miniaudio.referenceCount,0===window.miniaudio.referenceCount&&delete window.miniaudio)},243632:()=>void 0!==navigator.mediaDevices&&void 0!==navigator.mediaDevices.getUserMedia,243736:()=>{try{var t=new(window.AudioContext||window.webkitAudioContext),i=t.sampleRate;return t.close(),i}catch(t){return 0}},243907:(t,i,r,a,n,o)=>{if(void 0===window.miniaudio)return -1;var s={},l={};return t==window.miniaudio.device_type.playback&&0!=r&&(l.sampleRate=r),s.Ra=new(window.AudioContext||window.webkitAudioContext)(l),s.Ra.suspend(),s.state=window.miniaudio.device_state.stopped,r=0,t!=window.miniaudio.device_type.playback&&(r=i),s.hb=s.Ra.createScriptProcessor(a,r,i),s.hb.onaudioprocess=function(r){if((null==s.zb||0==s.zb.length)&&(s.zb=new Float32Array(E.buffer,n,a*i)),t==window.miniaudio.device_type.capture||t==window.miniaudio.device_type.duplex){for(var l=0;l<i;l+=1)for(var c=r.inputBuffer.getChannelData(l),u=s.zb,h=0;h<a;h+=1)u[h*i+l]=c[h];t4(o,a,n)}if(t==window.miniaudio.device_type.playback||t==window.miniaudio.device_type.duplex)for(t6(o,a,n),l=0;l<r.outputBuffer.numberOfChannels;++l)for(c=r.outputBuffer.getChannelData(l),u=s.zb,h=0;h<a;h+=1)c[h]=u[h*i+l];else for(l=0;l<r.outputBuffer.numberOfChannels;++l)r.outputBuffer.getChannelData(l).fill(0)},t!=window.miniaudio.device_type.capture&&t!=window.miniaudio.device_type.duplex||navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(function(t){s.Ib=s.Ra.createMediaStreamSource(t),s.Ib.connect(s.hb),s.hb.connect(s.Ra.destination)}).catch(function(t){console.log("Failed to get user media: "+t)}),t==window.miniaudio.device_type.playback&&s.hb.connect(s.Ra.destination),s.Cc=o,window.miniaudio.track_device(s)},246784:t=>window.miniaudio.get_device_by_index(t).Ra.sampleRate,246857:t=>{void 0!==(t=window.miniaudio.get_device_by_index(t)).hb&&(t.hb.onaudioprocess=function(){},t.hb.disconnect(),t.hb=void 0),void 0!==t.Ib&&(t.Ib.disconnect(),t.Ib=void 0),t.Ra.close(),t.Ra=void 0,t.Cc=void 0},247257:t=>{window.miniaudio.untrack_device_by_index(t)},247307:t=>{(t=window.miniaudio.get_device_by_index(t)).Ra.resume(),t.state=window.miniaudio.device_state.started},247446:t=>{(t=window.miniaudio.get_device_by_index(t)).Ra.suspend(),t.state=window.miniaudio.device_state.stopped}},ia={s:function(t,i,r){eV=r;try{var a=eE(t);switch(i){case 0:var n=X();if(0>n)break;for(;ed[n];)n++;return function(t,i=-1){return t=eM(t,i),t.xa?.Td?.(t),t}(a,n).fb;case 1:case 2:case 13:case 14:return 0;case 3:return a.flags;case 4:return n=X(),a.flags|=n,0;case 12:return T[(n=X())+0>>1]=2,0}return -28}catch(t){if(void 0===e$||"ErrnoError"!==t.name)throw t;return-t.eb}},L:function(t,i,r){eV=r;try{var a=eE(t);switch(i){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return a.Ca?0:-59;case 21505:if(!a.Ca)return -59;if(a.Ca.bb.od){t=[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];var n=X();A[n>>2]=25856,A[n+4>>2]=5,A[n+8>>2]=191,A[n+12>>2]=35387;for(var o=0;32>o;o++)w[n+o+17]=t[o]||0}return 0;case 21506:case 21507:case 21508:if(!a.Ca)return -59;if(a.Ca.bb.pd)for(n=X(),t=[],o=0;32>o;o++)t.push(w[n+o+17]);return 0;case 21519:if(!a.Ca)return -59;return A[(n=X())>>2]=0;case 21520:return a.Ca?-28:-59;case 21537:case 21531:if(n=X(),!a.xa.nd)throw new e_(59);return a.xa.nd(a,i,n);case 21523:if(!a.Ca)return -59;return a.Ca.bb.qd&&(o=[24,80],T[(n=X())>>1]=o[0],T[n+2>>1]=o[1]),0;default:return -28}}catch(t){if(void 0===e$||"ErrnoError"!==t.name)throw t;return-t.eb}},M:function(t,i,r,a){eV=a;try{var n=i=i?ei(k,i):"";if("/"===n.charAt(0))i=n;else{var o=-100===t?"/":eE(t).path;if(0==n.length)throw new e_(44);i=o+"/"+n}
2var s=a?X():0;return eB(i,r,s).fb}catch(t){if(void 0===e$||"ErrnoError"!==t.name)throw t;return-t.eb}},P:()=>j(""),o:(t,i,r)=>{t=eY(t),i=e0(i,"wrapper"),r=eH(r);var a=i.wa,n=a.Ta,o=a.Ha.Ta,s=a.Ha.constructor;return t=eU(t,function(...t){for(var i of a.Ha.Dc)if(this[i]===o[i])throw new eX(`Pure virtual function ${i} must be implemented in JavaScript`);Object.defineProperty(this,"__parent",{value:n}),this.__construct(...t)}),n.__construct=function(...t){if(this===n)throw new eZ("Pass correct 'this' to __construct");t=s.implement(this,...t),e2(t);var i=t.va;if(t.notifyOnDestruction(),i.nb=!0,Object.defineProperties(this,{va:{value:i}}),e5(this),t=eJ(a,t=i.Ba),eK.hasOwnProperty(t))throw new eZ(`Tried to register registered instance: ${t}`);eK[t]=this},n.__destruct=function(){if(this===n)throw new eZ("Pass correct 'this' to __destruct");e2(this);var t=this.va.Ba;if(t=eJ(a,t),eK.hasOwnProperty(t))delete eK[t];else throw new eZ(`Tried to unregister unregistered instance: ${t}`)},t.prototype=Object.create(n),Object.assign(t.prototype,r),eW(t)},_:t=>{var i=e4[t];delete e4[t];var r=i.bc,a=i.Wa,n=i.tc;tt([t],n.map(t=>t.ld).concat(n.map(t=>t.Cd)),t=>{var o,s,l={};for([o,s]of n.entries()){let i=t[o],r=s.jd,a=s.kd,c=t[o+n.length],u=s.Bd,h=s.Dd;l[s.ed]={read:t=>i.Aa(r(a,t)),write:(t,i)=>{var r=[];u(h,t,c.Ea(r,i)),e6(r)},optional:i.optional}}return[{name:i.name,Aa:t=>{var i,r={};for(i in l)r[i]=l[i].read(t);return a(t),r},Ea:(t,i)=>{for(var n in l)if(!(n in i||l[n].optional))throw TypeError(`Missing field: "${n}"`);var o=r();for(n in l)l[n].write(o,i[n]);return null!==t&&t.push(a,o),o},Na:e8,La:a}]})},u:(t,i,r,a,n)=>{i=eY(i);let o=t=>t;if(a=0n===a){let t=8*r;n=(o=i=>BigInt.asUintN(t,i))(n)}ti(t,{name:i,Aa:o,Ea:(t,i)=>("number"==typeof i&&(i=BigInt(i)),i),Na:tr(i,r,!a),La:null})},V:(t,i,r,a)=>{ti(t,{name:i=eY(i),Aa:function(t){return!!t},Ea:function(t,i){return i?r:a},Na:function(t){return this.Aa(k[t])},La:null})},c:(t,i,r,a,n,o,s,l,c,u,h,d,f)=>{h=eY(h),o=tb(n,o),l&&=tb(s,l),u&&=tb(c,u),f=tb(d,f);var p,m,g=48<=(m=(p=(p=h).replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0))&&57>=m?`_${p}`:p;tc(g,function(){tw(`Cannot construct ${h} due to unbound types`,[a])}),tt([t,i,r],a?[a]:[],i=>{if(i=i[0],a)var r,n=i.wa,s=n.Ta;else s=to.prototype;var c=Object.create(s,{constructor:{value:i=eU(h,function(...t){if(Object.getPrototypeOf(this)!==c)throw new eZ(`Use 'new' to construct ${h}`);if(void 0===d.jb)throw new eZ(`${h} has no accessible constructor`);var i=d.jb[t.length];if(void 0===i)throw new eZ(`Tried to invoke ctor of ${h} with invalid number of parameters (${t.length}) - expected (${Object.keys(d.jb).toString()}) parameters instead!`);return i.apply(this,t)})}});i.prototype=c;var d=new tu(h,i,c,f,n,o,l,u);return d.Ha&&((r=d.Ha).vb??(r.vb=[]),d.Ha.vb.push(d)),n=new t_(h,d,!0,!1,!1),r=new t_(h+"*",d,!1,!1,!1),s=new t_(h+" const*",d,!1,!0,!1),ts[t]={pointerType:r,Yc:s},tv(g,i),[n,r,s]})},k:(t,i,r,a,n,o,s)=>{var l=tA(r,a);i=tC(i=eY(i)),o=tb(n,o),tt([],[t],t=>{function a(){tw(`Cannot call ${n} due to unbound types`,l)}t=t[0];var n=`${t.name}.${i}`;i.startsWith("@@")&&(i=Symbol[i.substring(2)]);var c=t.wa.constructor;return void 0===c[i]?(a.$a=r-1,c[i]=a):(tl(c,i,n),c[i].Fa[r-1]=a),tt([],l,a=>{if(a=tk(n,[a[0],null].concat(a.slice(1)),null,o,s),void 0===c[i].Fa?(a.$a=r-1,c[i]=a):c[i].Fa[r-1]=a,t.wa.vb)for(let r of t.wa.vb)r.constructor.hasOwnProperty(i)||(r.constructor[i]=a);return[]}),[]})},q:(t,i,r,a,n,o,s,l)=>{i=eY(i),o=tb(n,o),tt([],[t],t=>{t=t[0];var n=`${t.name}.${i}`,c={get(){tw(`Cannot access ${n} due to unbound types`,[r])},enumerable:!0,configurable:!0};return c.set=l?()=>{tw(`Cannot access ${n} due to unbound types`,[r])}:()=>{throw new eZ(`${n} is a read-only property`)},Object.defineProperty(t.wa.constructor,i,c),tt([],[r],r=>{r=r[0];var n={get:()=>r.Aa(o(a)),enumerable:!0};return l&&(l=tb(s,l),n.set=t=>{var i=[];l(a,r.Ea(i,t)),e6(i)}),Object.defineProperty(t.wa.constructor,i,n),[]}),[]})},n:(t,i,r,a,n,o)=>{var s=tA(i,r);n=tb(a,n),tt([],[t],t=>{t=t[0];var r=`constructor ${t.name}`;if(void 0===t.wa.jb&&(t.wa.jb=[]),void 0!==t.wa.jb[i-1])throw new eZ(`Cannot register multiple constructors with identical number of parameters (${i-1}) for class '${t.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return t.wa.jb[i-1]=()=>{tw(`Cannot construct ${t.name} due to unbound types`,s)},tt([],s,a=>(a.splice(1,0,null),t.wa.jb[i-1]=tk(r,a,null,n,o),[])),[]})},a:(t,i,r,a,n,o,s,l)=>{var c=tA(r,a);i=tC(i=eY(i)),o=tb(n,o),tt([],[t],t=>{function a(){tw(`Cannot call ${n} due to unbound types`,c)}t=t[0];var n=`${t.name}.${i}`;
2i.startsWith("@@")&&(i=Symbol[i.substring(2)]),l&&t.wa.Dc.push(i);var u=t.wa.Ta,h=u[i];return void 0===h||void 0===h.Fa&&h.className!==t.name&&h.$a===r-2?(a.$a=r-2,a.className=t.name,u[i]=a):(tl(u,i,n),u[i].Fa[r-2]=a),tt([],c,a=>(a=tk(n,a,t,o,s),void 0===u[i].Fa?(a.$a=r-2,u[i]=a):u[i].Fa[r-2]=a,[])),[]})},b:(t,i,r,a,n,o,s,l,c,u)=>{i=eY(i),n=tb(a,n),tt([],[t],t=>{t=t[0];var a=`${t.name}.${i}`,h={get(){tw(`Cannot access ${a} due to unbound types`,[r,s])},enumerable:!0,configurable:!0};return h.set=c?()=>tw(`Cannot access ${a} due to unbound types`,[r,s]):()=>{throw new eZ(a+" is a read-only property")},Object.defineProperty(t.wa.Ta,i,h),tt([],c?[r,s]:[r],r=>{var s=r[0],h={get(){var i=tE(this,t,a+" getter");return s.Aa(n(o,i))},enumerable:!0};if(c){c=tb(l,c);var d=r[1];h.set=function(i){var r=tE(this,t,a+" setter"),n=[];c(u,r,d.Ea(n,i)),e6(n)}}return Object.defineProperty(t.wa.Ta,i,h),[]}),[]})},T:t=>ti(t,tP),m:(i,r,a,n,o)=>{switch(r=eY(r),o=0===o?"object":1===o?"number":"string"){case"object":function s(){}s.values={},ti(i,{name:r,constructor:s,valueType:o,Aa:function(t){return this.constructor.values[t]},Ea:(t,i)=>i.value,Na:tD(r,a,n),La:null}),tc(r,s);break;case"number":var l={};ti(i,{name:r,$b:l,valueType:o,Aa:t=>t,Ea:(t,i)=>i,Na:tD(r,a,n),La:null}),tc(r,l),delete t[r].$a;break;case"string":ti(i,{name:r,Nc:{},Gc:{},$b:l={},valueType:o,Aa:function(t){return this.Gc[t]},Ea:function(t,i){return this.Nc[i]},Na:tD(r,a,n),La:null}),tc(r,l),delete t[r].$a}},d:(t,i,r)=>{var a=e0(t,"enum");switch(i=eY(i),a.valueType){case"object":t=a.constructor,a=Object.create(a.constructor.prototype,{value:{value:r},constructor:{value:eU(`${a.name}_${i}`,function(){})}}),t.values[r]=a,t[i]=a;break;case"number":a.$b[i]=r;break;case"string":a.Nc[i]=r,a.Gc[r]=i,a.$b[i]=i}},t:(t,i,r)=>{ti(t,{name:i=eY(i),Aa:t=>t,Ea:(t,i)=>i,Na:((t,i)=>{switch(i){case 4:return function(t){return this.Aa(E[t>>2])};case 8:return function(t){return this.Aa(M[t>>3])};default:throw TypeError(`invalid float width (${i}): ${t}`)}})(i,r),La:null})},g:(t,i,r,a,n,o)=>{var s=tA(i,r);t=tC(t=eY(t)),n=tb(a,n),tc(t,function(){tw(`Cannot call ${t} due to unbound types`,s)},i-1),tt([],s,r=>(tv(t,tk(t,[r[0],null].concat(r.slice(1)),null,n,o),i-1),[]))},l:(t,i,r,a,n)=>{i=eY(i);let o=t=>t;if(0===a){var s=32-8*r;n=(o=t=>t<<s>>>s)(n)}ti(t,{name:i,Aa:o,Ea:(t,i)=>i,Na:tr(i,r,0!==a),La:null})},i:(t,i,r)=>{function a(t){return new n(w.buffer,C[t+4>>2],C[t>>2])}var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array][i];ti(t,{name:r=eY(r),Aa:a,Na:a},{md:!0})},U:(t,i)=>{ti(t,{name:i=eY(i),Aa(t){var i=(i=t+4)?ei(k,i,C[t>>2],!0):"";return t0(t),i},Ea(t,i){i instanceof ArrayBuffer&&(i=new Uint8Array(i));var r="string"==typeof i;if(!(r||ArrayBuffer.isView(i)&&1==i.BYTES_PER_ELEMENT))throw new eZ("Cannot pass non-string to std::string");var a=r?ea(i):i.length,n=t2(4+a+1),o=n+4;return C[n>>2]=a,r?en(i,k,o,a+1):k.set(i,o),null!==t&&t.push(t0,n),n},Na:e8,La(t){t0(t)}})},p:(t,i,r)=>{if(r=eY(r),2===i)var a=tz,n=tL,o=tF;else a=tR,n=tO,o=tB;ti(t,{name:r,Aa:t=>{var r=a(t+4,C[t>>2]*i,!0);return t0(t),r},Ea:(t,a)=>{if("string"!=typeof a)throw new eZ(`Cannot pass non-string to C++ string type ${r}`);var s=o(a),l=t2(4+s+i);return C[l>>2]=s/i,n(a,l+4,s+i),null!==t&&t.push(t0,l),l},Na:e8,La(t){t0(t)}})},aa:(t,i,r,a,n,o)=>{e4[t]={name:eY(i),bc:tb(r,a),Wa:tb(n,o),tc:[]}},$:(t,i,r,a,n,o,s,l,c,u)=>{e4[t].tc.push({ed:eY(i),ld:r,jd:tb(a,n),kd:o,Cd:s,Bd:tb(l,c),Dd:u})},W:(t,i)=>{ti(t,{sd:!0,name:i=eY(i),Aa:()=>{},Ea:()=>{}})},A:()=>{W=!1,tj=0},y:()=>{throw 1/0},f:(t,i,r)=>{var a,n,[o,...s]=((t,i)=>{for(var r=Array(t),a=0;a<t;++a)r[a]=e0(C[i+4*a>>2],`parameter ${a}`);return r})(t,i),l=o.Ea.bind(o),c=s.map(t=>t.Na.bind(t)),u=Array(--t);return a=eU(i=`methodCaller<(${s.map(t=>t.name)}) => ${o.name}>`,(i,a,n,o)=>{for(var s=0,h=0;h<t;++h)u[h]=c[h](o+s),s+=8;switch(r){case 0:var d=eH(i).apply(null,u);break;case 2:d=Reflect.construct(eH(i),u);break;case 3:d=u[0];break;case 1:d=eH(i)[tV(a)](...u)}return d=l(i=[],d),i.length&&(C[n>>2]=eW(i)),d}),n=tN.length,tN.push(a),n},ca:tM,X:i=>eW(t[i=tV(i)]),Y:(t,i)=>eW((t=eH(t))[i=eH(i)]),v:t=>
2{9<t&&(eq[t+1]+=1)},e:(t,i,r,a,n)=>tN[t](i,r,a,n),Z:()=>eW([]),ba:t=>eW(tV(t)),da:()=>eW({}),w:t=>{e6(eH(t)),tM(t)},h:(t,i,r)=>{t=eH(t),i=eH(i),r=eH(r),t[i]=r},D:function(t,i){t=new Date(1e3*(t=-0x20000000000000>t||0x20000000000000<t?0/0:Number(t))),A[i>>2]=t.getUTCSeconds(),A[i+4>>2]=t.getUTCMinutes(),A[i+8>>2]=t.getUTCHours(),A[i+12>>2]=t.getUTCDate(),A[i+16>>2]=t.getUTCMonth(),A[i+20>>2]=t.getUTCFullYear()-1900,A[i+24>>2]=t.getUTCDay(),A[i+28>>2]=(t.getTime()-Date.UTC(t.getUTCFullYear(),0,1,0,0,0,0))/864e5|0},E:function(t,i){t=new Date(1e3*(t=-0x20000000000000>t||0x20000000000000<t?0/0:Number(t))),A[i>>2]=t.getSeconds(),A[i+4>>2]=t.getMinutes(),A[i+8>>2]=t.getHours(),A[i+12>>2]=t.getDate(),A[i+16>>2]=t.getMonth(),A[i+20>>2]=t.getFullYear()-1900,A[i+24>>2]=t.getDay();var r=t.getFullYear();A[i+28>>2]=(0!=r%4||0==r%100&&0!=r%400?tG:tU)[t.getMonth()]+t.getDate()-1|0,A[i+36>>2]=-(60*t.getTimezoneOffset()),r=new Date(t.getFullYear(),6,1).getTimezoneOffset();var a=new Date(t.getFullYear(),0,1).getTimezoneOffset();A[i+32>>2]=0|(r!=a&&t.getTimezoneOffset()==Math.min(a,r))},B:(t,i)=>{if(tq[t]&&(clearTimeout(tq[t].id),delete tq[t]),!i)return 0;var r=setTimeout(()=>{delete tq[t];var i=()=>t8(t,performance.now());if(!F)try{if(i(),!(W||0<tj))try{v=i=v,tH(i)}catch(t){tZ(t)}}catch(t){tZ(t)}},i);return tq[t]={id:r,ae:i},0},F:(t,i,r,a)=>{var n=(new Date).getFullYear(),o=new Date(n,0,1).getTimezoneOffset();n=new Date(n,6,1).getTimezoneOffset(),C[t>>2]=60*Math.max(o,n),A[i>>2]=Number(o!=n),t=(i=t=>{var i=Math.abs(t);return`UTC${0<=t?"-":"+"}${String(Math.floor(i/60)).padStart(2,"0")}${String(i%60).padStart(2,"0")}`})(o),i=i(n),n<o?(en(t,k,r,17),en(i,k,a,17)):(en(t,k,a,17),en(i,k,r,17))},O:function(t,i,r){return 0<=t&&3>=t?(P[r>>3]=BigInt(Math.round(1e6*(0===t?Date.now():performance.now()))),0):28},j:(t,i,r)=>{tW.length=0;for(var a;a=k[i++];){var n=105!=a;n&=112!=a,r+=n&&r%8?4:0,tW.push(112==a?C[r>>2]:106==a?P[r>>3]:105==a?A[r>>2]:M[r>>3]),r+=n?8:4}return ir[t](...tW)},N:()=>Date.now(),Q:()=>performance.now(),C:t=>{var i=k.length;if(0x80000000<(t>>>=0))return!1;for(var r=1;4>=r;r*=2){var a=i*(1+.2/r);a=Math.min(a,t+0x6000000);e:{a=(Math.min(0x80000000,65536*Math.ceil(Math.max(t,a)/65536))-it.buffer.byteLength+65535)/65536|0;try{it.grow(a),B();var n=1;break e}catch(t){}n=void 0}if(n)return!0}return!1},H:(t,i)=>{var r,a=0,n=0;for(r of tY()){var o=i+a;C[t+n>>2]=o,a+=en(r,k,o,1/0)+1,n+=4}return 0},I:(t,i)=>{var r=tY();for(var a of(C[t>>2]=r.length,t=0,r))t+=ea(a)+1;return C[i>>2]=t,0},r:function(t){try{var i=eE(t);if(null===i.fb)throw new e_(8);i.Yb&&(i.Yb=null);try{i.xa.close&&i.xa.close(i)}catch(t){throw t}finally{ed[i.fb]=null}return i.fb=null,0}catch(t){if(void 0===e$||"ErrnoError"!==t.name)throw t;return t.eb}},K:function(t,i,r,a){try{e:{var n=eE(t);t=i;for(var o,s=i=0;s<r;s++){var l=C[t>>2],c=C[t+4>>2];t+=8;var u=o,h=w;if(0>c||0>u)throw new e_(28);if(null===n.fb||1==(2097155&n.flags))throw new e_(8);if(16384==(61440&n.node.mode))throw new e_(31);if(!n.xa.read)throw new e_(28);var d=void 0!==u;if(d){if(!n.seekable)throw new e_(70)}else u=n.position;var f=n.xa.read(n,h,l,c,u);if(d||(n.position+=f),0>f){var p=-1;break e}if(i+=f,f<c)break;void 0!==o&&(o+=f)}p=i}return C[a>>2]=p,0}catch(t){if(void 0===e$||"ErrnoError"!==t.name)throw t;return t.eb}},G:function(t,i,r,a){i=-0x20000000000000>i||0x20000000000000<i?0/0:Number(i);try{if(isNaN(i))return 61;var n=eE(t);return ej(n,i,r),P[a>>3]=BigInt(n.position),n.Yb&&0===i&&0===r&&(n.Yb=null),0}catch(t){if(void 0===e$||"ErrnoError"!==t.name)throw t;return t.eb}},J:function(t,i,r,a){try{e:{var n=eE(t);t=i;for(var o,s=i=0;s<r;s++){var l=C[t>>2],c=C[t+4>>2];t+=8;var u=o,h=w;if(0>c||0>u)throw new e_(28);if(null===n.fb||0==(2097155&n.flags))throw new e_(8);if(16384==(61440&n.node.mode))throw new e_(31);if(!n.xa.write)throw new e_(28);n.seekable&&1024&n.flags&&ej(n,0,2);var d=void 0!==u;if(d){if(!n.seekable)throw new e_(70)}else u=n.position;var f=n.xa.write(n,h,l,c,u,void 0);if(d||(n.position+=f),0>f){var p=-1;break e}if(i+=f,f<c)break;void 0!==o&&(o+=f)}p=i}return C[a>>2]=p,0}catch(t){if(void 0===e$||"ErrnoError"!==t.name)throw t;return t.eb}},x:function(t,i,r){var a=ie();try{ii.get(t)(i,r)}catch(t){if(t9(a),t!==t+0)throw t;t7(1,0)}},R:function(){return -1<navigator.platform.indexOf("Win")},z:tH,S:function(i,r,a){r=new Uint8Array(it.buffer,r,a),(a=new Uint8Array(a)).set(r),createImageBitmap(new Blob([a])).then(function(r){var a=new OffscreenCanvas(r.width,r.height).getContext("2d");a.drawImage(r,0,0);var n=(a=a.getImageData(0,0,r.width,r.height)).data.length,o=t.Uc(n);new Uint8Array(it.buffer,o,n).set(a.data),t.Id(i,r.width,r.height,o,n)}).catch(function(r){r=r.message||"decode failed";var a=t.Xd(r)+1,n=t.Uc(a);t.$d(r,n,a),t.Jd(i,n),t.Hd(n)})}};function io(){if(t.calledRun=!0,!F){if(O=!0,!t.noFSInit&&!em){var i,r;em=!0,i??=t.stdin,r??=t.stdout,a??=t.stderr,i?eN("stdin",i):eO("/dev/tty","/dev/stdin"),r?eN("stdout",null,r):eO("/dev/tty","/dev/stdout"),a?eN("stderr",null,a):eO("/dev/tty1","/dev/stderr"),eB("/dev/stdin",0),eB("/dev/stdout",1),eB("/dev/stderr",1)}if(n.fa(),eg=!1,b?.(t),t.onRuntimeInitialized?.(),t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;){var a=t.postRun.shift();q.push(a)}G(q)}}if(n=await async function(){function i(i){return t0=(i=n=i.exports
2).ga,t2=i.ha,t3=i.ia,t._wasm_image_decode_complete=i.ja,t._wasm_image_decode_error=i.ka,t5=t._ma_device__on_notification_unlocked=i.la,t._ma_malloc_emscripten=i.ma,t._ma_free_emscripten=i.na,t4=t._ma_device_process_pcm_frames_capture__webaudio=i.oa,t6=t._ma_device_process_pcm_frames_playback__webaudio=i.pa,t8=i.ra,t7=i.sa,t9=i.ta,ie=i.ua,it=i.ea,ii=i.qa,B(),n}var r={a:ia};return t.instantiateWasm?new Promise(a=>{t.instantiateWasm(r,(t,r)=>{a(i(t))})}):(tT??=t.locateFile?t.locateFile("canvas_advanced.wasm",y):y+"canvas_advanced.wasm",i((await V(r)).instance))}(),t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)H();return G(Z),t.setStatus?(t.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>t.setStatus(""),1),io()},1)):io(),O?t:new Promise((t,i)=>{b=t,x=i})})},t=>{t.exports=JSON.parse('{"name":"@rive-app/canvas","version":"2.42.1","description":"Rive\'s canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <[email protected]> (https://rive.app)","Maxwell Talbot <[email protected]> (https://rive.app)","Arthur Vivian <[email protected]> (https://rive.app)","Umberto Sonnino <[email protected]> (https://rive.app)","Matthew Sullivan <[email protected]> (mailto:[email protected])"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts","runtimeLoader.d.ts","utils","semantics"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}')},(t,i,r)=>{r.r(i),r.d(i,{AccessibilityOverlay:()=>n.AccessibilityOverlay,CHECK_STATE_MASK:()=>o.CHECK_STATE_MASK,CHECK_STATE_OFFSET:()=>o.CHECK_STATE_OFFSET,SemanticActionType:()=>o.SemanticActionType,SemanticCheckState:()=>o.SemanticCheckState,SemanticMode:()=>o.SemanticMode,SemanticRole:()=>o.SemanticRole,SemanticState:()=>o.SemanticState,SemanticTrait:()=>o.SemanticTrait,SemanticTreeModel:()=>a.SemanticTreeModel,checkStateOf:()=>o.checkStateOf,hasState:()=>o.hasState,hasTrait:()=>o.hasTrait,roleName:()=>o.roleName,stateNames:()=>o.stateNames,traitNames:()=>o.traitNames});var a=r(7),n=r(9),o=r(8)},(t,i,r)=>{r.r(i),r.d(i,{SemanticTreeModel:()=>o});var a=r(8),n=function(t,i,r){if(r||2==arguments.length)for(var a,n=0,o=i.length;n<o;n++)!a&&n in i||(a||(a=Array.prototype.slice.call(i,0,n)),a[n]=i[n]);return t.concat(a||Array.prototype.slice.call(i))},o=function(){function t(){this._nodesById=new Map,this._roots=[],this._semanticVersion=0,this._geometryVersion=0,this._geometryChangedIds=new Set,this._semanticChangedIds=new Set,this._debug=!1}return Object.defineProperty(t.prototype,"nodeCount",{get:function(){return this._nodesById.size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"semanticVersion",{get:function(){return this._semanticVersion},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"geometryVersion",{get:function(){return this._geometryVersion},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"geometryChangedIds",{get:function(){return this._geometryChangedIds},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"semanticChangedIds",{get:function(){return this._semanticChangedIds},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"roots",{get:function(){return this._roots},enumerable:!1,configurable:!0}),t.prototype.nodeById=function(t){return this._nodesById.get(t)},t.prototype.siblingIndexOf=function(t){var i=this._nodesById.get(t);if(!i)return -1;if(i.parentId<0)return this._roots.indexOf(t);var r=this._nodesById.get(i.parentId);return r?r.children.indexOf(t):-1},t.prototype.detach=function(t){var i=this._nodesById.get(t);if(i)if(i.parentId<0){var r=this._roots.indexOf(t);-1!==r&&this._roots.splice(r,1)}else{var a=this._nodesById.get(i.parentId);if(a){var r=a.children.indexOf(t);-1!==r&&a.children.splice(r,1)}}},t.prototype.attach=function(t,i,r){var a=this._nodesById.get(t);if(a)if(i<0){a.parentId=-1;var n,o,s=(n=r,o=this._roots.length,n<0?0:n>o?o:n);this._roots.splice(s,0,t)}else{var l=this._nodesById.get(i);if(l){a.parentId=i;var c,u,s=(c=r,u=l.children.length,c<0?0:c>u?u:c);l.children.splice(s,0,t)}else a.parentId=-1,this._roots.push(t)}},t.prototype.removeSubtree=function(t){var i=this._nodesById.get(t);if(i){for(var r=n([],i.children,!0),a=0;a<r.length;a++){var o=r[a];this.removeSubtree(o)}this.detach(t),this._nodesById.delete(t)}},t.prototype.applyDiff=function(t){var i,r,a=this;this._geometryChangedIds.clear(),this._semanticChangedIds.clear();for(var n=!1,o=!1,d=function(){n=!0},f=function(t){n=!0,a._semanticChangedIds.add(t)},p=function(t){o=!0,a._geometryChangedIds.add(t)},m=0,g=t.removed;m<g.length;m++){var y=g[m];this._nodesById.has(y)&&(this.removeSubtree(y),d())}for(var _=0,v=t.added;_<v.length;_++){var b,x=v[_],w=this._nodesById.get(x.id);w?(l(w,x)&&(u(w,x),f(x.id)),c(w,x)&&(h(w,x),p(x.id))):(this._nodesById.set(
2x.id,{id:(b=x).id,parentId:-1,role:b.role,label:b.label,value:b.value,hint:b.hint,stateFlags:b.stateFlags,traitFlags:b.traitFlags,headingLevel:b.headingLevel,minX:b.minX,minY:b.minY,maxX:b.maxX,maxY:b.maxY,children:[]}),f(x.id),p(x.id)),this.detach(x.id),this.attach(x.id,x.parentId,x.siblingIndex)}for(var k=0,T=t.moved;k<T.length;k++){var x=T[k],w=this._nodesById.get(x.id);if(w){var S=w.parentId!==x.parentId,A=this.siblingIndexOf(x.id);c(w,x)&&(h(w,x),p(x.id)),this.detach(x.id),this.attach(x.id,x.parentId,x.siblingIndex),(S||this.siblingIndexOf(x.id)!==A)&&d()}}for(var C=0,E=t.childrenUpdated;C<E.length;C++){var M=E[C];if(M.parentId<0){var P=M.childIds.filter(function(t){return a._nodesById.has(t)});if(!s(this._roots,P)){this._roots.length=0,(i=this._roots).push.apply(i,P);for(var D=0,I=this._roots;D<I.length;D++){var y=I[D],z=this._nodesById.get(y);z&&(z.parentId=-1)}d()}}else{var F=this._nodesById.get(M.parentId);if(!F)continue;var P=M.childIds.filter(function(t){return a._nodesById.has(t)});if(!s(F.children,P)){F.children.length=0,(r=F.children).push.apply(r,P);for(var R=0,O=F.children;R<O.length;R++){var y=O[R],z=this._nodesById.get(y);z&&(z.parentId=M.parentId)}d()}}}for(var B=0,j=t.updatedSemantic;B<j.length;B++){var x=j[B],w=this._nodesById.get(x.id);w&&l(w,x)&&(u(w,x),f(x.id))}for(var N=0,$=t.updatedGeometry;N<$.length;N++){var x=$[N],w=this._nodesById.get(x.id);w&&c(w,x)&&(h(w,x),p(x.id))}(n||o)&&(n&&this._semanticVersion++,o&&this._geometryVersion++,this._debug&&this.logDiff(t,n,o))},Object.defineProperty(t.prototype,"debug",{set:function(t){this._debug=t},enumerable:!1,configurable:!0}),t.prototype.logDiff=function(t,i,r){for(var n=["[rive:semantics] semantic v".concat(this._semanticVersion)+(r?" geometry v".concat(this._geometryVersion):"")+(i?"":" (geometry-only)")],o=0,s=t.removed;o<s.length;o++){var l=s[o];n.push("  - removed #".concat(l))}for(var c=0,u=t.added;c<u.length;c++){var h=u[c];n.push("  + added #".concat(h.id," ").concat((0,a.roleName)(h.role))+(h.label?' "'.concat(h.label,'"'):"")+" bounds:(".concat(h.minX.toFixed(1),",").concat(h.minY.toFixed(1),")-(").concat(h.maxX.toFixed(1),",").concat(h.maxY.toFixed(1),")")+" states=[".concat((0,a.stateNames)(h.stateFlags),"]")+" traits=[".concat((0,a.traitNames)(h.traitFlags),"]"))}for(var d=0,f=t.moved;d<f.length;d++){var h=f[d];n.push("  ~ moved #".concat(h.id," → parent=").concat(h.parentId," idx=").concat(h.siblingIndex)+" bounds:(".concat(h.minX.toFixed(1),",").concat(h.minY.toFixed(1),")-(").concat(h.maxX.toFixed(1),",").concat(h.maxY.toFixed(1),")"))}for(var p=0,m=t.childrenUpdated;p<m.length;p++){var g=m[p];n.push("  ↕ children of ".concat(g.parentId<0?"root":"#"+g.parentId,": [").concat(g.childIds.join(", "),"]"))}for(var y=0,_=t.updatedSemantic;y<_.length;y++){var h=_[y];n.push("  ✎ semantic #".concat(h.id," ").concat((0,a.roleName)(h.role))+(h.label?' "'.concat(h.label,'"'):"")+" states=[".concat((0,a.stateNames)(h.stateFlags),"]")+" traits=[".concat((0,a.traitNames)(h.traitFlags),"]"))}for(var v=0,b=t.updatedGeometry;v<b.length;v++){var h=b[v];n.push("  ⊞ geometry #".concat(h.id," (").concat(h.minX.toFixed(1),",").concat(h.minY.toFixed(1),")-(").concat(h.maxX.toFixed(1),",").concat(h.maxY.toFixed(1),")"))}console.log(n.join("\n"))},t.prototype.flattened=function(){for(var t=this,i=[],r=function(a,n){var o=t._nodesById.get(a);if(o){i.push({depth:n,node:o});for(var s=0,l=o.children;s<l.length;s++)r(l[s],n+1)}},a=0,n=this._roots;a<n.length;a++)r(n[a],0);return i},t}();function s(t,i){if(t.length!==i.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==i[r])return!1;return!0}function l(t,i){return t.role!==i.role||t.label!==i.label||t.value!==i.value||t.hint!==i.hint||t.stateFlags!==i.stateFlags||t.traitFlags!==i.traitFlags||t.headingLevel!==i.headingLevel}function c(t,i){return t.minX!==i.minX||t.minY!==i.minY||t.maxX!==i.maxX||t.maxY!==i.maxY}function u(t,i){t.role=i.role,t.label=i.label,t.value=i.value,t.hint=i.hint,t.stateFlags=i.stateFlags,t.traitFlags=i.traitFlags,t.headingLevel=i.headingLevel}function h(t,i){t.minX=i.minX,t.minY=i.minY,t.maxX=i.maxX,t.maxY=i.maxY}},(t,i,r)=>{r.r(i),r.d(i,{CHECK_STATE_MASK:()=>c,CHECK_STATE_OFFSET:()=>l,SemanticActionType:()=>p,SemanticCheckState:()=>s,SemanticMode:()=>h,SemanticRole:()=>a,SemanticState:()=>n,SemanticTrait:()=>d,checkStateOf:()=>u,hasState:()=>o,hasTrait:()=>f,roleName:()=>w,stateNames:()=>k,traitNames:()=>T});var a={none:0,button:1,link:2,checkbox:3,switchControl:4,slider:5,textField:6,text:7,image:8,group:9,list:10,listItem:11,tab:12,tabList:13,dialog:14,alertDialog:15,radioGroup:16,radioButton:17},n={None:0,Expanded:1,Selected:2,Toggled:16,Required:32,Disabled:64,Focused:128,Hidden:256,LiveRegion:512,ReadOnly:1024,Modal:2048,Obscured:4096,Multiline:8192};function o(t,i){return(t&i)!=0}var s={Unchecked:0,Checked:1,Mixed:2},l=2,c=12;function u(t){var i=(t&c)>>l;return i>=s.Mixed?s.Mixed:i}var h={Disabled:"disabled",Enabled:"enabled"},d={None:0,Expandable:1,Selectable:2,Checkable:4,Toggleable:8,Requirable:16,Enablable:32,Focusable:64};function f(t,i){return(t&i)!=0}for(var p={tap:0,increase:1,decrease:2},m={},g=0,y=Object.entries(a);g<y.length;g++){var _=y[g],v=_[0];m[_[1]]=v}var b=Object.entries(n).filter(function(t){return 0!==t[1]}),x=Object.entries(d).filter(function(t){return 0!==t[1]});function w(t){var i;return null!=(i=m[t])?i:"unknown(".concat(t,")")}function k(t){if(0===t)return"none";for(var i=[],r=0;r<b.length;r++){var a=b[r],n=a[0];t&a[1]&&i.push(n)}switch(u(t)){case s.Checked:i.push("Checked");break;case s.Mixed:i.push("Mixed")}return i.join(", ")||"none"}function T(t){if(0===t)return"none";for(var i=[],r=0;r<x.length;r++){var a=x[r],n=a[0];t&a[1]&&i.push(n)}return i.join(", ")||"none"}},(t,i,r)=>{r.r(i),r.d(i,{AccessibilityOverlay:()=>n});var a=r(8),n=function(){function t(t){var i,r=this;this.elements=new Map,this.descElements=new Map,this.lastSemanticVersion=-1,this.lastGeometryVersion=-1,this.pendingTextGeometry=[],this.textGeometryKeys=new WeakMap,this.lastCanvasPositioning={width:-1,height:-1,offsetTop:-1,offsetLeft:-1},this._geometryDirty=!0,this.isUpdating=!1,this.transformContainer=null,this._artboardBounds={minX:0,minY:0,maxX:0,maxY:0},this.repositionTimer=null,this.canvasResizeObserver=null,this.parentResizeObserver=null,this.positionObserver=null,this._onWindowResize=function(){return r.scheduleReposition()},this.instanceId=t.instanceId,this.fireAction=t.fireAction,this.requestFocus=t.requestFocus,this.clearFocus=t.clearFocus,this.canvas=t.canvas,this.semanticsOptions=t.semanticsOptions,this.allowFocusInterrupt=null!=(i=t.allowFocusInterrupt)&&i,this.container=this.createContainer(t.canvas),this.attachPositionObservers()}return t.prototype.getSemanticOverlayContainer=function(){return this.container},t.prototype.attachPositionObservers=function(){var t=this;this.canvasResizeObserver=new ResizeObserver(function(){return t.scheduleReposition()}),this.canvasResizeObserver.observe(this.canvas);var i=this.canvas.parentElement;i&&(this.parentResizeObserver=new ResizeObserver(function(){return t.scheduleReposition()}),this.parentResizeObserver.observe(i)),window.addEventListener("resize",this._onWindowResize),this.observePosition()},t.prototype.observePosition=function(){var t,i=this;if(!("u"<typeof IntersectionObserver)){null==(t=this.positionObserver)||t.disconnect(),this.positionObserver=null;var r=this.canvas.getBoundingClientRect();if(r.width&&r.height){var a=[r.top,window.innerWidth-r.right,window.innerHeight-r.bottom,r.left].map(function(t){return"".concat(-Math.round(t),"px")}).join(" "),n=!1;this.positionObserver=new IntersectionObserver(function(){if(!n){n=!0;return}i.scheduleReposition()},{threshold:1,rootMargin:a}),this.positionObserver.observe(this.canvas)}}},t.prototype.scheduleReposition=function(){var t=this;this._geometryDirty=!0,null===this.repositionTimer&&(this.repositionTimer=setTimeout(function(){t.repositionTimer=null,t.syncContainerGeometry(),t.observePosition()},500))},t.prototype.syncContainerGeometry=function(){var t=this.canvas.getBoundingClientRect(),i=this.canvas.offsetTop,r=this.canvas.offsetLeft;(t.width!==this.lastCanvasPositioning.width||t.height!==this.lastCanvasPositioning.height||i!==this.lastCanvasPositioning.offsetTop||r!==this.lastCanvasPositioning.offsetLeft)&&(this.container.style.top=i+"px",this.container.style.left=r+"px",this.container.style.width=t.width+"px",this.container.style.height=t.height+"px",this.container.tabIndex=-1,this.lastCanvasPositioning.width=t.width,this.lastCanvasPositioning.height=t.height,this.lastCanvasPositioning.offsetTop=i,this.lastCanvasPositioning.offsetLeft=r)},t.prototype.createContainer=function(t){var i,r,a=document.createElement("div");a.id="rive-a11y-".concat(this.instanceId),a.setAttribute("role","regi
2on"),a.setAttribute("aria-label",null!=(r=null==(i=this.semanticsOptions)?void 0:i.riveCanvasLabel)?r:"Rive animation");var n=t.getBoundingClientRect();return a.style.cssText=["position:absolute","top:".concat(t.offsetTop,"px"),"left:".concat(t.offsetLeft,"px"),"width:".concat(n.width,"px"),"height:".concat(n.height,"px"),"overflow:hidden;pointer-events:none;opacity:0"].join(";"),t.insertAdjacentElement("afterend",a),a},t.prototype.needsUpdate=function(t){var i=t.semanticVersion!==this.lastSemanticVersion,r=t.geometryVersion!==this.lastGeometryVersion,a=this._geometryDirty||!this.transformContainer;return i||r||a?{semanticChanged:i,nodeGeometryChanged:r,layoutChanged:a}:null},t.prototype.update=function(t,i,r,a,n){var o=null!=n?n:this.needsUpdate(t);!o&&i&&(o={semanticChanged:!1,nodeGeometryChanged:!1,layoutChanged:!0}),o&&this.performUpdate(t,i,r,a,o)},t.prototype.performUpdate=function(t,i,r,a,n){var o,s=n.semanticChanged,l=n.nodeGeometryChanged,c=t.semanticVersion-this.lastSemanticVersion>1;if(this.lastSemanticVersion=t.semanticVersion,this.lastGeometryVersion=t.geometryVersion,this.isUpdating=!0,this._artboardBounds=a,i&&(this.syncContainerGeometry(),this.syncTransformContainer(i,r,a),this._geometryDirty=!1),s){var u=null!=(o=this.transformContainer)?o:this.container,h=new Set;this.rebuildChildren(u,t.roots,t,0,0,h,c);var d=[];this.elements.forEach(function(t,i){h.has(i)||d.push(i)});for(var f=0;f<d.length;f++){var p=d[f],m=this.elements.get(p);m&&m.parentNode&&m.parentNode.removeChild(m),this.elements.delete(p);var g=this.descElements.get(p);g&&g.parentNode&&g.parentNode.removeChild(g),this.descElements.delete(p)}}else l&&this.updateGeometryForChangedNodes(t);this.flushTextGeometry(),this.isUpdating=!1},t.prototype.destroy=function(){var t,i,r;null!==this.repositionTimer&&(clearTimeout(this.repositionTimer),this.repositionTimer=null),window.removeEventListener("resize",this._onWindowResize),null==(t=this.canvasResizeObserver)||t.disconnect(),null==(i=this.parentResizeObserver)||i.disconnect(),null==(r=this.positionObserver)||r.disconnect(),this.container.parentNode&&this.container.parentNode.removeChild(this.container),this.elements.clear(),this.descElements.clear(),this.pendingTextGeometry.length=0},t.prototype.rebuildChildren=function(t,i,r,n,o,s,l){for(var c=0;c<i.length;c++){var u=i[c],h=r.nodeById(u);if(h){s.add(u);var d=this.elements.get(u),f=!d;d||(d=this.createElement(h),this.elements.set(u,d)),(f||l||r.semanticChangedIds.has(u))&&this.applyAttributes(d,h),this.applyPosition(d,h,n,o);var p=t.children[c];if(p!==d&&(p?t.insertBefore(d,p):t.appendChild(d)),(0,a.hasTrait)(h.traitFlags,a.SemanticTrait.Focusable)&&(0,a.hasState)(h.stateFlags,a.SemanticState.Focused)){var m=document.activeElement,g=null==m?void 0:m.closest('[aria-modal="true"]'),y=!!g&&this.container.contains(g)&&!g.contains(d);m!==d&&!y&&this.canMoveFocus()&&d.focus()}h.children.length>0&&this.rebuildChildren(d,h.children,r,h.minX,h.minY,s,l),f&&this.autoFocusDialogOnAppear(d,h,r)}}},t.prototype.updateGeometryForChangedNodes=function(t){for(var i,r,a=0,n=Array.from(t.geometryChangedIds);a<n.length;a++){var o=n[a],s=t.nodeById(o);if(s){var l=0,c=0,u=null!=(i=this.transformContainer)?i:this.container;if(s.parentId>=0){var h=t.nodeById(s.parentId);h&&(l=h.minX,c=h.minY,u=null!=(r=this.elements.get(s.parentId))?r:u)}this.updateNodeGeometrySubtree(t,o,l,c,u)}}},t.prototype.updateNodeGeometrySubtree=function(t,i,r,a,n){var o=t.nodeById(i);if(o){var s=this.elements.get(i);if(s){this.applyPosition(s,o,r,a);for(var l=0,c=o.children;l<c.length;l++){var u=c[l];this.updateNodeGeometrySubtree(t,u,o.minX,o.minY,s)}}}},t.prototype.canMoveFocus=function(){var t=document.activeElement;return t===this.canvas||this.container.contains(t)||this.allowFocusInterrupt},t.prototype.autoFocusDialogOnAppear=function(t,i,r){if(v(i.role,i.stateFlags)&&this.canMoveFocus()){var a,n=document.activeElement;if(!(n&&n!==t&&t.contains(n))){var o=null!=(a=this.routeDefaultFocusTarget(i,r))?a:t;o.hasAttribute("tabindex")||o.setAttribute("tabindex","-1"),document.activeElement!==o&&o.focus({preventScroll:!0})}}},t.prototype.routeDefaultFocusTarget=function(t,i){for(var r,n=0,o=t.children;n<o.length;n++){var s=o[n],l=i.nodeById(s);if(l){var c,u=this.elements.get(s);if(u&&(_((c=l).role)||(0,a.hasTrait)(c.traitFlags,a.SemanticTrait.Focusable)))return u;if(l.children.length>0||!l.label){var h=this.routeDefaultFocusTarget(l,i);if(h)return h;continue}if(u)return null!=(r=u.querySelector(":scope > span"))?r:u}}return null},Object.defineProperty(t.prototype,"nodeIdPrefix",{get:function(){return"rive-".concat(this.instanceId,"-sem-")}
2,enumerable:!1,configurable:!0}),t.prototype.nodeIdFromElement=function(t){if(!t.id.startsWith(this.nodeIdPrefix))return null;var i=t.id.slice(this.nodeIdPrefix.length);if(!i)return null;var r=Number(i);return Number.isNaN(r)?null:r},t.prototype.createElement=function(t){var i=function(t){switch(t){case a.SemanticRole.link:return"a";case a.SemanticRole.text:default:return"div"}}(t.role),r=document.createElement(i);if(r.id="".concat(this.nodeIdPrefix).concat(t.id),r.style.cssText=f,t.role===a.SemanticRole.text){var n=document.createElement("span");n.style.cssText=p,r.appendChild(n)}return this.attachActionHandlers(r,t),r},t.prototype.attachRovingNav=function(t,i){var r=this;t.addEventListener("keydown",function(n){var o=null;if("ArrowRight"===n.key||"ArrowDown"===n.key?o="next":"ArrowLeft"===n.key||"ArrowUp"===n.key?o="prev":i.includeHomeEnd&&"Home"===n.key?o="first":i.includeHomeEnd&&"End"===n.key&&(o="last"),o){n.preventDefault();var s=i.members(),l=s.indexOf(t);if(!(l<0)){var c=s.length,u="next"===o?s[(l+1)%c]:"prev"===o?s[(l-1+c)%c]:"first"===o?s[0]:s[c-1];if(u&&u!==t){u.focus();var h=r.nodeIdFromElement(u);null!==h&&r.fireAction(h,a.SemanticActionType.tap)}}}})},t.prototype.attachActionHandlers=function(t,i){var r=this,n=i.role,o=i.id;if(function(t){switch(t){case a.SemanticRole.button:case a.SemanticRole.link:case a.SemanticRole.checkbox:case a.SemanticRole.switchControl:case a.SemanticRole.tab:case a.SemanticRole.radioButton:return!0;default:return!1}}(n)){t.addEventListener("click",function(){r.fireAction(o,a.SemanticActionType.tap)});var s=n===a.SemanticRole.link?["Enter"]:["Enter"," "];t.addEventListener("keydown",function(t){s.includes(t.key)&&(t.preventDefault(),r.fireAction(o,a.SemanticActionType.tap))})}n===a.SemanticRole.slider&&t.addEventListener("keydown",function(t){"ArrowRight"===t.key||"ArrowUp"===t.key?(t.preventDefault(),r.fireAction(o,a.SemanticActionType.increase)):("ArrowLeft"===t.key||"ArrowDown"===t.key)&&(t.preventDefault(),r.fireAction(o,a.SemanticActionType.decrease))}),n===a.SemanticRole.tab&&this.attachRovingNav(t,{includeHomeEnd:!0,members:function(){var i=t.parentElement;return i?Array.from(i.children).filter(function(t){return t instanceof HTMLElement&&"tab"===t.getAttribute("role")}):[]}}),n===a.SemanticRole.radioButton&&this.attachRovingNav(t,{includeHomeEnd:!1,members:function(){var i,r=null!=(i=t.closest('[role="radiogroup"]'))?i:t.parentElement;return r?Array.from(r.querySelectorAll('[role="radio"]')):[]}}),(0,a.hasTrait)(i.traitFlags,a.SemanticTrait.Focusable)&&t.addEventListener("focus",function(){r.requestFocus(o)})},t.prototype.applyAttributes=function(t,i){var r,n,f,p=i.role,b=i.stateFlags,x=i.traitFlags,w=function(t){switch(t){case a.SemanticRole.none:return"group";case a.SemanticRole.button:return"button";case a.SemanticRole.link:return null;case a.SemanticRole.checkbox:return"checkbox";case a.SemanticRole.switchControl:return"switch";case a.SemanticRole.slider:return"slider";case a.SemanticRole.textField:return"textbox";case a.SemanticRole.image:return"img";case a.SemanticRole.group:return"group";case a.SemanticRole.list:return"list";case a.SemanticRole.listItem:return"listitem";case a.SemanticRole.tab:return"tab";case a.SemanticRole.tabList:return"tablist";case a.SemanticRole.dialog:return"dialog";case a.SemanticRole.alertDialog:return"alertdialog";case a.SemanticRole.radioGroup:return"radiogroup";case a.SemanticRole.radioButton:return"radio";case a.SemanticRole.text:default:return null}}(p);if(w?m(t,"role",w):g(t,"role"),p===a.SemanticRole.link&&m(t,"role","link"),_(p)||(0,a.hasTrait)(x,a.SemanticTrait.Focusable)||p===a.SemanticRole.listItem?m(t,"tabindex","-1"):g(t,"tabindex"),i.label?m(t,"aria-label",i.label):g(t,"aria-label"),p===a.SemanticRole.slider){if(i.value){var k=parseFloat(i.value);Number.isFinite(k)?m(t,"aria-valuenow",String(k)):g(t,"aria-valuenow"),m(t,"aria-valuetext",i.value)}else g(t,"aria-valuenow"),g(t,"aria-valuetext");m(t,"aria-orientation","horizontal"),y(t,"aria-readonly",(0,a.hasState)(b,a.SemanticState.ReadOnly))}else g(t,"aria-valuenow"),g(t,"aria-valuetext"),g(t,"aria-orientation"),g(t,"aria-readonly");if(i.hint){var T="rive-".concat(this.instanceId,"-desc-").concat(i.id),S=this.descElements.get(i.id);S||((S=document.createElement("span")).id=T,S.style.cssText=d,this.container.appendChild(S),this.descElements.set(i.id,S)),S.textContent!==i.hint&&(S.textContent=i.hint),m(t,"aria-describedby",T)}
2else{g(t,"aria-describedby");var A=this.descElements.get(i.id);A&&(A.parentNode&&A.parentNode.removeChild(A),this.descElements.delete(i.id))}if(p===a.SemanticRole.text){var C=null!=(r=t.querySelector(":scope > span"))?r:t,E=null!=(n=i.label)?n:"";C.textContent!==E&&(C.textContent=E),g(t,"aria-label"),i.headingLevel>0?(m(t,"role","heading"),m(t,"aria-level",String(i.headingLevel))):g(t,"aria-level")}if((0,a.hasTrait)(x,a.SemanticTrait.Expandable)&&o.has(p)?y(t,"aria-expanded",(0,a.hasState)(b,a.SemanticState.Expanded)):g(t,"aria-expanded"),p===a.SemanticRole.tab||(0,a.hasTrait)(x,a.SemanticTrait.Selectable)&&s.has(p)?y(t,"aria-selected",(0,a.hasState)(b,a.SemanticState.Selected)):g(t,"aria-selected"),(0,a.hasTrait)(x,a.SemanticTrait.Checkable)&&l.has(p)){var M=(0,a.checkStateOf)(b);M===a.SemanticCheckState.Mixed&&c.has(p)?m(t,"aria-checked","mixed"):y(t,"aria-checked",M===a.SemanticCheckState.Checked)}else g(t,"aria-checked");(0,a.hasTrait)(x,a.SemanticTrait.Toggleable)?(u.has(p)?y(t,"aria-pressed",(0,a.hasState)(b,a.SemanticState.Toggled)):g(t,"aria-pressed"),p===a.SemanticRole.switchControl&&y(t,"aria-checked",(0,a.hasState)(b,a.SemanticState.Toggled))):g(t,"aria-pressed"),(0,a.hasTrait)(x,a.SemanticTrait.Requirable)&&h.has(p)?y(t,"aria-required",(0,a.hasState)(b,a.SemanticState.Required)):g(t,"aria-required"),(0,a.hasTrait)(x,a.SemanticTrait.Enablable)?y(t,"aria-disabled",(0,a.hasState)(b,a.SemanticState.Disabled)):g(t,"aria-disabled");var P=p===a.SemanticRole.image&&!i.label;if((0,a.hasState)(b,a.SemanticState.Hidden)||(0,a.hasState)(b,a.SemanticState.Obscured)||P?m(t,"aria-hidden","true"):g(t,"aria-hidden"),(0,a.hasState)(b,a.SemanticState.LiveRegion)?m(t,"aria-live","polite"):g(t,"aria-live"),p===a.SemanticRole.textField){if(y(t,"aria-readonly",(0,a.hasState)(b,a.SemanticState.ReadOnly)),y(t,"aria-multiline",(0,a.hasState)(b,a.SemanticState.Multiline)),0===i.children.length){var D=null!=(f=i.value)?f:"";t.textContent!==D&&(t.textContent=D)}}else g(t,"aria-multiline");v(p,b)?m(t,"aria-modal","true"):g(t,"aria-modal")},t.prototype.applyPosition=function(t,i,r,n){var o=this._artboardBounds,s=Math.max(i.minX,o.minX),l=Math.max(i.minY,o.minY),c=Math.min(i.maxX,o.maxX),u=Math.min(i.maxY,o.maxY),h=Math.round(Math.max(0,c-s))+"px",d=Math.round(Math.max(0,u-l))+"px",f=Math.round(s-r)+"px",p=Math.round(l-n)+"px";t.style.left!==f&&(t.style.left=f),t.style.top!==p&&(t.style.top=p),t.style.width!==h&&(t.style.width=h),t.style.height!==d&&(t.style.height=d),t.style.transform&&(t.style.transform=""),i.role===a.SemanticRole.text&&this.pendingTextGeometry.push(t)},t.prototype.flushTextGeometry=function(){if(0!==this.pendingTextGeometry.length){for(var t,i=[],r=0,a=this.pendingTextGeometry;r<a.length;r++){var n=a[r],o=null!=(t=n.querySelector(":scope > span"))?t:n,s="".concat(n.style.width,"|").concat(n.style.height,"|").concat(o.textContent);this.textGeometryKeys.get(n)!==s&&(o.style.width="auto",o.style.height="auto",o.style.transformOrigin="0 0",o.style.transform="",i.push({host:n,span:o,key:s}))}this.pendingTextGeometry.length=0;for(var l=i.map(function(t){var i=t.host,r=t.span,a=i.getBoundingClientRect(),n=r.getBoundingClientRect();if(n.width>0&&n.height>0){var o=a.width/n.width,s=a.height/n.height;return"scale(".concat(o,", ").concat(s,")")}return"none"}),c=0;c<i.length;c++){var u=i[c],n=u.host,o=u.span,s=u.key;o.style.transform=l[c],this.textGeometryKeys.set(n,s)}}},t.prototype.syncTransformContainer=function(t,i,r){if(!this.transformContainer){var a=document.createElement("div");a.style.cssText="position:absolute;top:0;left:0;overflow:visible;pointer-events:none;transform-origin:0 0",this.container.appendChild(a),this.transformContainer=a}var n=r.maxX-r.minX,o=r.maxY-r.minY;this.transformContainer.style.width=Math.round(n)+"px",this.transformContainer.style.height=Math.round(o)+"px";var s=1/(i||1),l=t.xx*s,c=t.xy*s,u=t.yx*s,h=t.yy*s,d=t.tx*s,f=t.ty*s;this.transformContainer.style.transform="matrix(".concat(l,",").concat(c,",").concat(u,",").concat(h,",").concat(d,",").concat(f,")")},t}(),o=new Set([a.SemanticRole.button,a.SemanticRole.link,a.SemanticRole.checkbox,a.SemanticRole.switchControl,a.SemanticRole.tab]),s=new Set([a.SemanticRole.tab]),l=new Set([a.SemanticRole.checkbox,a.SemanticRole.radioButton,a.SemanticRole.switchControl]),c=new Set([a.SemanticRole.checkbox]),u=new Set([a.SemanticRole.button]),h=new Set([a.SemanticRole.checkbox,a.SemanticRole.textField,a.SemanticRole.radioGroup]),d="position:absolute;width:1px;height:1px;overflow:hidden;pointer-events:none;left:-9999px",f="position:absolute;pointer-events:none;box-sizing:border-box;overflow:visible;margin:0;padding:0;transform-origin: 0px 0px 0px;border:none;background:transparent;color:transparent",p="display:inline-block;white-space:nowrap;pointer-events:none";function m(t,i,r){t.getAttribute(i)!==r&&t.setAttribute(i,r)}function g(t,i){t.hasAttribute(i)&&t.removeAttribute(i)}function y(t,i,r){m(t,i,r?"true":"false")}function _(t){switch(t){case a.SemanticRole.button:case a.SemanticRole.link:case a.SemanticRole.checkbox:case a.SemanticRole.switchControl:case a.SemanticRole.slider:case a.SemanticRole.tab:case a.SemanticRole.radioButton:case a.SemanticRole.textField:return!0;default:return!1}}function v(t,i){return t===a.SemanticRole.alertDialog||t===a.SemanticRole.dialog&&(0,a.hasState)(i,a.SemanticState.Modal)}},(t,i,r)=>{r.r(i),r.d(i,{AudioAssetWrapper:()=>s.AudioAssetWrapper,AudioWrapper:()=>s.AudioWrapper,BLANK_URL:()=>o.BLANK_URL,CustomFileAssetLoaderWrapper:()=>s.CustomFileAssetLoaderWrapper,FileAssetWrapper:()=>s.FileAssetWrapper,FileFinalizer:()=>s.FileFinalizer,FocusSessionState:()=>n.FocusSessionState,FontAssetWrapper:()=>s.FontAssetWrapper,FontWrapper:()=>s.FontWrapper,ImageAssetWrapper:()=>s.ImageAssetWrapper,ImageWrapper:()=>s.ImageWrapper,KeyboardInteractions:()=>n.KeyboardInteractions,RiveFont:()=>l.RiveFont,createFinalization:()=>s.createFinalization,finalizationRegistry:()=>s.finalizationRegistry,registerTouchInteractions:()=>a.registerTouchInteractions,sanitizeUrl:()=>o.sanitizeUrl});var a=r(11),n=r(12),o=r(13),s=r(14),l=r(15)},(t,i,r)=>{r.r(i),r.d(i,{registerTouchInteractions:()=>s});var a=void 0,n=function(t,i,r){var a,n=[];if(i)for(var o=0;o<t.length;o++){var s=t[o];
2n.push({clientX:s.clientX,clientY:s.clientY,identifier:s.identifier})}else{var l=null!==r?null!=(a=Array.from(t).find(function(t){return t.identifier===r}))?a:null:t[0];l&&n.push({clientX:l.clientX,clientY:l.clientY,identifier:l.identifier})}return n},o=function(t,i,r,a){var o;return(null==(o=t.changedTouches)?void 0:o.length)?(!i&&["touchstart","touchmove"].includes(t.type)&&t.preventDefault(),n(t.changedTouches,r,a)):[{clientX:t.clientX,clientY:t.clientY,identifier:0}]},s=function(t){var i=t.canvas,r=t.artboard,n=t.stateMachines,s=void 0===n?[]:n,l=t.renderer,c=t.rive,u=t.fit,h=t.alignment,d=t.isTouchScrollEnabled,f=void 0!==d&&d,p=t.dispatchPointerExit,m=void 0===p||p,g=t.enableMultiTouch,y=void 0!==g&&g,_=t.layoutScaleFactor,v=void 0===_?1:_,b=t.advanceAndDrain;if(!i||!s.length||!l||!c||!r||"u"<typeof window)return null;var x=null,w=!1,k=null,T=function(){k=null},S=(function(t){if(w&&t instanceof MouseEvent){"mouseup"==t.type&&(w=!1);return}w=f&&"touchend"===t.type&&"touchstart"===x,x=t.type;var i,a=t.currentTarget.getBoundingClientRect();if(!y&&"touchstart"===t.type&&null===k){var n=null==(i=t.changedTouches)?void 0:i[0];n&&(k=n.identifier)}var l=o(t,f,y,y?null:k),d=c.computeAlignment(u,h,{minX:0,minY:0,maxX:a.width,maxY:a.height},r.bounds,v),p=new c.Mat2D;switch(d.invert(p),l.forEach(function(t){var i=t.clientX,r=t.clientY;if(i||r){var n=i-a.left,o=r-a.top,s=new c.Vec2D(n,o),l=c.mapXY(p,s),u=l.x(),h=l.y();t.transformedX=u,t.transformedY=h,l.delete(),s.delete()}}),p.delete(),d.delete(),t.type){case"mouseout":for(var g=function(t){m?l.forEach(function(i){t.pointerExit(i.transformedX,i.transformedY,i.identifier)}):l.forEach(function(i){t.pointerMove(i.transformedX,i.transformedY,i.identifier)})},_=0;_<s.length;_++){var T=s[_];g(T)}break;case"touchmove":case"mouseover":case"mousemove":for(var S=function(t){l.forEach(function(i){t.pointerMove(i.transformedX,i.transformedY,i.identifier)})},A=0;A<s.length;A++){var T=s[A];S(T)}break;case"touchstart":case"mousedown":for(var C=function(t){l.forEach(function(i){t.pointerDown(i.transformedX,i.transformedY,i.identifier)})},E=0;E<s.length;E++){var T=s[E];C(T)}b(0);break;case"touchend":for(var M=function(t){l.forEach(function(i){t.pointerUp(i.transformedX,i.transformedY,i.identifier),t.pointerExit(i.transformedX,i.transformedY,i.identifier)})},P=0;P<s.length;P++){var T=s[P];M(T)}b(0),!y&&l.some(function(t){return t.identifier===k})&&(k=null);break;case"mouseup":for(var D=function(t){l.forEach(function(i){t.pointerUp(i.transformedX,i.transformedY,i.identifier)})},I=0;I<s.length;I++){var T=s[I];D(T)}b(0)}}).bind(a);return i.addEventListener("mouseover",S),i.addEventListener("mouseout",S),i.addEventListener("mousemove",S),i.addEventListener("mousedown",S),i.addEventListener("mouseup",S),i.addEventListener("touchmove",S,{passive:f}),i.addEventListener("touchstart",S,{passive:f}),i.addEventListener("touchend",S),i.addEventListener("touchcancel",T),function(){i.removeEventListener("mouseover",S),i.removeEventListener("mouseout",S),i.removeEventListener("mousemove",S),i.removeEventListener("mousedown",S),i.removeEventListener("mouseup",S),i.removeEventListener("touchmove",S),i.removeEventListener("touchstart",S),i.removeEventListener("touchend",S),i.removeEventListener("touchcancel",T)}}},(t,i,r)=>{r.r(i),r.d(i,{FocusSessionState:()=>n,KeyboardInteractions:()=>o}),(a=n||(n={})).NotFocused="notFocused",a.EntryPending="entryPending",a.RiveFocused="riveFocused";var a,n,o=function(){function t(t){var i,r=t.canvas,a=t.stateMachine,o=t.hasFocusNodes,s=t.getOverlayElement,l=this;this.focusSessionState=n.NotFocused,this.canvasHasFocus=!1,this.focusDomainReleased=!1,this.currentOverlayElement=null,this.onCanvasFocus=function(t){l.syncOverlayListener(),l.canvasHasFocus=!0,l.focusDomainReleased=!1,!l.hasFocusNodes||l.mainSm.focusState().hasFocus||(l.focusSessionState=n.EntryPending,l.isKeyboardDrivenFocus()&&(l.cameFromBeforeCanvas(t.relatedTarget)?l.mainSm.focusNext():l.mainSm.focusPrevious())&&(l.focusSessionState=n.RiveFocused))},this.onCanvasBlur=function(t){l.focusSessionState=n.NotFocused,l.canvasHasFocus=!1;var i=l.isInFocusDomain(t.relatedTarget),r=null===t.relatedTarget&&!document.hasFocus();i||r||l.mainSm.clearFocus()},this.onOverlayFocusIn=function(t){!l.isInOverlay(t.target)||(l.focusDomainReleased=!1,l.hasFocusNodes&&l.focusSessionState===n.NotFocused&&(l.focusSessionState=l.mainSm.focusState().hasFocus?n.RiveFocused:n.EntryPending))},this.onFocusDomainHostFocusIn=function(t){l.syncOverlayListener(),l.onOverlayFocusIn(t)},this.onKeyDown=function(t){l.syncOverlayListener(),l.focusDomainReleased||l.shouldRiveHandleKeyEvent(t)&&"Tab"===t.code&&l.hasFocusNodes&&((t.shiftKey?l.mainSm.focusPrevious():l.mainSm.focusNext())?(l.focu
2sSessionState=n.RiveFocused,t.preventDefault()):(l.focusSessionState=n.NotFocused,l.focusDomainReleased=!0,l.canvasHasFocus=!1),l.syncOverlayListener())},this.canvas=r,this.mainSm=a,this.hasFocusNodes=o,this.getOverlayElement=s,this.focusDomainHost=null!=(i=r.parentElement)?i:document,r.addEventListener("focus",this.onCanvasFocus),r.addEventListener("blur",this.onCanvasBlur),r.addEventListener("keydown",this.onKeyDown),this.focusDomainHost.addEventListener("focusin",this.onFocusDomainHostFocusIn),this.syncOverlayListener()}return t.prototype.setFocusSessionState=function(t){this.focusSessionState=t},t.prototype.notifyRiveFocused=function(){this.focusSessionState=n.RiveFocused},t.prototype.shouldRiveHandleKeyEvent=function(t){if(this.focusSessionState===n.NotFocused)return!1;var i=this.isInFocusDomain(document.activeElement)||this.isInOverlay(t.target),r=t.target===this.canvas;return i||this.canvasHasFocus||r},t.prototype.isInFocusDomain=function(t){return t===this.canvas||this.isInOverlay(t)},t.prototype.isInOverlay=function(t){var i,r,a;return t instanceof Node&&null!=(a=null==(r=null==(i=this.getOverlayElement)?void 0:i.call(this))?void 0:r.contains(t))&&a},t.prototype.syncOverlayListener=function(){var t,i,r,a,n,o,s=null!=(i=null==(t=this.getOverlayElement)?void 0:t.call(this))?i:null;s!==this.currentOverlayElement&&(null==(r=this.currentOverlayElement)||r.removeEventListener("focusin",this.onOverlayFocusIn),null==(a=this.currentOverlayElement)||a.removeEventListener("keydown",this.onKeyDown,!0),this.currentOverlayElement=s,null==(n=this.currentOverlayElement)||n.addEventListener("focusin",this.onOverlayFocusIn),null==(o=this.currentOverlayElement)||o.addEventListener("keydown",this.onKeyDown,!0))},t.prototype.isKeyboardDrivenFocus=function(){try{return this.canvas.matches(":focus-visible")}catch(t){return!1}},t.prototype.cameFromBeforeCanvas=function(t){if(!t)return!0;var i=this.canvas.compareDocumentPosition(t);return!!(i&Node.DOCUMENT_POSITION_PRECEDING)||!(i&Node.DOCUMENT_POSITION_FOLLOWING)},t.prototype.cleanup=function(){var t,i;this.canvas.removeEventListener("focus",this.onCanvasFocus),this.canvas.removeEventListener("blur",this.onCanvasBlur),this.canvas.removeEventListener("keydown",this.onKeyDown),this.focusDomainHost.removeEventListener("focusin",this.onFocusDomainHostFocusIn),null==(t=this.currentOverlayElement)||t.removeEventListener("focusin",this.onOverlayFocusIn),null==(i=this.currentOverlayElement)||i.removeEventListener("keydown",this.onKeyDown,!0)},t}()},(t,i,r)=>{r.r(i),r.d(i,{BLANK_URL:()=>u,sanitizeUrl:()=>h});var a=/^([^\w]*)(javascript|data|vbscript)/im,n=/&#(\w+)(^\w|;)?/g,o=/&(newline|tab);/gi,s=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,l=/^.+(:|&colon;)/gim,c=[".","/"],u="about:blank";function h(t){if(!t)return u;var i=t.replace(s,"").replace(n,function(t,i){return String.fromCharCode(i)}).replace(o,"").replace(s,"").trim();if(!i)return u;if(c.indexOf(i[0])>-1)return i;var r=i.match(l);if(!r)return i;var h=r[0];return a.test(h)?u:i}},(t,i,r)=>{r.r(i),r.d(i,{AudioAssetWrapper:()=>m,AudioWrapper:()=>u,CustomFileAssetLoaderWrapper:()=>d,FileAssetWrapper:()=>f,FileFinalizer:()=>o,FontAssetWrapper:()=>g,FontWrapper:()=>h,ImageAssetWrapper:()=>p,ImageWrapper:()=>c,createFinalization:()=>v,finalizationRegistry:()=>_});var a,n=(a=function(t,i){return(a=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=t}a(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}),o=function(){function t(t,i){void 0===i&&(i=null),this.selfUnref=!1,this._file=t,this._session=i}return t.prototype.unref=function(){this._file&&this._file.unref(),this._session&&(this._session.delete(),this._session=null)},t.prototype.release=function(){this._file=null,this._session=null},t}(),s=function(){function t(t){this._finalizableObject=t}return t.prototype.unref=function(){this._finalizableObject.unref()},t}(),l=function(){function t(){this.selfUnref=!1}return t.prototype.unref=function(){},t}(),c=function(t){function i(i){var r=t.call(this)||this;return r._nativeImage=i,r}return n(i,t),Object.defineProperty(i.prototype,"nativeImage",{get:function(){return this._nativeImage}
2,enumerable:!1,configurable:!0}),i.prototype.unref=function(){this.selfUnref&&this._nativeImage.unref()},i}(l),u=function(t){function i(i){var r=t.call(this)||this;return r._nativeAudio=i,r}return n(i,t),Object.defineProperty(i.prototype,"nativeAudio",{get:function(){return this._nativeAudio},enumerable:!1,configurable:!0}),i.prototype.unref=function(){this.selfUnref&&this._nativeAudio.unref()},i}(l),h=function(t){function i(i){var r=t.call(this)||this;return r._nativeFont=i,r}return n(i,t),Object.defineProperty(i.prototype,"nativeFont",{get:function(){return this._nativeFont},enumerable:!1,configurable:!0}),i.prototype.unref=function(){this.selfUnref&&this._nativeFont.unref()},i}(l),d=function(){function t(t,i,r){void 0===r&&(r=null),this._assetLoaderCallback=i,this._session=r,this.assetLoader=new t.CustomFileAssetLoader({loadContents:this.loadContents.bind(this)})}return t.prototype.loadContents=function(t,i){var r;if(t.isImage)r=new p(t,this._session);else if(t.isAudio)r=new m(t,this._session);else{if(!t.isFont)return!1;r=new g(t,this._session)}return this._assetLoaderCallback(r,i)},t}(),f=function(){function t(t,i){void 0===i&&(i=null),this._nativeFileAsset=t,this._session=i}return t.prototype.decode=function(t){this._nativeFileAsset.decode(t,this._session)},Object.defineProperty(t.prototype,"name",{get:function(){return this._nativeFileAsset.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fileExtension",{get:function(){return this._nativeFileAsset.fileExtension},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uniqueFilename",{get:function(){return this._nativeFileAsset.uniqueFilename},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAudio",{get:function(){return this._nativeFileAsset.isAudio},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isImage",{get:function(){return this._nativeFileAsset.isImage},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFont",{get:function(){return this._nativeFileAsset.isFont},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cdnUuid",{get:function(){return this._nativeFileAsset.cdnUuid},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nativeFileAsset",{get:function(){return this._nativeFileAsset},enumerable:!1,configurable:!0}),t}(),p=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return n(i,t),i.prototype.setRenderImage=function(t){this._nativeFileAsset.setRenderImage(t.nativeImage)},i}(f),m=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return n(i,t),i.prototype.setAudioSource=function(t){this._nativeFileAsset.setAudioSource(t.nativeAudio)},i}(f),g=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return n(i,t),i.prototype.setFont=function(t){this._nativeFileAsset.setFont(t.nativeFont)},i}(f),y=function(){function t(t){}return t.prototype.register=function(t){t.selfUnref=!0},t.prototype.unregister=function(t){},t}(),_=new("u">typeof FinalizationRegistry?FinalizationRegistry:y)(function(t){null==t||t.unref()}),v=function(t,i){var r=new s(i);_.register(t,r)}},(t,i,r)=>{r.r(i),r.d(i,{RiveFont:()=>n});var a=r(3),n=function(){function t(){}return t.setFallbackFontCallback=function(i){t._fallbackFontCallback=null!=i?i:null,t._wireFallbackProc()},t._fontToPtr=function(t){if(null==t)return null;var i,r=t.nativeFont,a=null==(i=null==r?void 0:r.ptr)?void 0:i.call(r);return null!=a?a:null},t._getFallbackPtr=function(i,r){return r<0||r>=i.length?null:t._fontToPtr(i[r])},t._wireFallbackProc=function(){a.RuntimeLoader.getInstance(function(i){var r=t._fallbackFontCallback;r?i.setFallbackFontCallback(function(i,a,n){var o=r(i,n);return o?Array.isArray(o)?t._getFallbackPtr(o,a):0===a?t._fontToPtr(o):null:null}):i.setFallbackFontCallback(null)})},t._fallbackFontCallback=null,t}()}],eT={};function eS(t){var i=eT[t];if(void 0!==i)return i.exports;var r=eT[t]={exports:{}};return ek[t](r,r.exports,eS),r.exports}eS.d=(t,i)=>{for(var r in i)eS.o(i,r)&&!eS.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:i[r]})},eS.o=(t,i)=>Object.prototype.hasOwnProperty.call(t,i),eS.r=t=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
2),Object.defineProperty(t,"__esModule",{value:!0})};var eA={};return eS.r(eA),eS.d(eA,{Alignment:()=>i,DataEnum:()=>er,DataType:()=>c,DrawOptimizationOptions:()=>r,EventType:()=>o,Fit:()=>t,Layout:()=>S,LoopType:()=>s,Rive:()=>ee,RiveEventType:()=>n,RiveFile:()=>Q,RiveFont:()=>p.RiveFont,RuntimeLoader:()=>d.RuntimeLoader,SemanticMode:()=>f.SemanticMode,StateMachineInput:()=>C,StateMachineInputType:()=>a,Testing:()=>ev,ViewModel:()=>ei,ViewModelInstance:()=>en,ViewModelInstanceArtboard:()=>eg,ViewModelInstanceAssetFont:()=>em,ViewModelInstanceAssetImage:()=>ep,ViewModelInstanceBoolean:()=>ec,ViewModelInstanceColor:()=>ef,ViewModelInstanceEnum:()=>eh,ViewModelInstanceList:()=>ed,ViewModelInstanceNumber:()=>el,ViewModelInstanceString:()=>es,ViewModelInstanceTrigger:()=>eu,ViewModelInstanceValue:()=>eo,decodeAudio:()=>eb,decodeFont:()=>ew,decodeImage:()=>ex}),h=eS(1),d=eS(3),f=eS(6),p=eS(10),m=function(t,i){return(m=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])})(t,i)},g=function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=t}m(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)},y=function(){return(y=Object.assign||function(t){for(var i,r=1,a=arguments.length;r<a;r++)for(var n in i=arguments[r])Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n]);return t}).apply(this,arguments)},_=function(t,i,r,a){return new(r||(r=Promise))(function(n,o){function s(t){try{c(a.next(t))}catch(t){o(t)}}function l(t){try{c(a.throw(t))}catch(t){o(t)}}function c(t){var i;t.done?n(t.value):((i=t.value)instanceof r?i:new r(function(t){t(i)})).then(s,l)}c((a=a.apply(t,i||[])).next())})},v=function(t,i){var r,a,n,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=l(0),s.throw=l(1),s.return=l(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function l(l){return function(c){var u=[l,c];if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(r=1,a&&(n=2&u[0]?a.return:u[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,u[1])).done)return n;switch(a=0,n&&(u=[2&u[0],n.value]),u[0]){case 0:case 1:n=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(n=(n=o.trys).length>0&&n[n.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!n||u[1]>n[0]&&u[1]<n[3])){o.label=u[1];break}if(6===u[0]&&o.label<n[1]){o.label=n[1],n=u;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(u);break}n[2]&&o.ops.pop(),o.trys.pop();continue}u=i.call(t,o)}catch(t){u=[6,t],a=0}finally{r=n=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},b=function(t,i,r){if(r||2==arguments.length)for(var a,n=0,o=i.length;n<o;n++)!a&&n in i||(a||(a=Array.prototype.slice.call(i,0,n)),a[n]=i[n]);return t.concat(a||Array.prototype.slice.call(i))},x=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.isHandledError=!0,i}return g(i,t),i}(Error),(w=t||(t={})).Cover="cover",w.Contain="contain",w.Fill="fill",w.FitWidth="fitWidth",w.FitHeight="fitHeight",w.None="none",w.ScaleDown="scaleDown",w.Layout="layout",(k=i||(i={})).Center="center",k.TopLeft="topLeft",k.TopCenter="topCenter",k.TopRight="topRight",k.CenterLeft="centerLeft",k.CenterRight="centerRight",k.BottomLeft="bottomLeft",k.BottomCenter="bottomCenter",k.BottomRight="bottomRight",(T=r||(r={})).AlwaysDraw="alwaysDraw",T.DrawOnChanged="drawOnChanged",S=function(){function r(r){var a,n,o,s,l,c,u;this.fit=null!=(a=null==r?void 0:r.fit)?a:t.Contain,this.alignment=null!=(n=null==r?void 0:r.alignment)?n:i.Center,this.layoutScaleFactor=null!=(o=null==r?void 0:r.layoutScaleFactor)?o:1,this.minX=null!=(s=null==r?void 0:r.minX)?s:0,this.minY=null!=(l=null==r?void 0:r.minY)?l:0,this.maxX=null!=(c=null==r?void 0:r.maxX)?c:0,this.maxY=null!=(u=null==r?void 0:r.maxY)?u:0}return r.new=function(t){var i=t.fit,a=t.alignment,n=t.minX,o=t.minY,s=t.maxX,l=t.maxY;return console.warn("This function is deprecated: please use `new Layout({})` instead"),new r({fit:i,alignment:a,minX:n,minY:o,maxX:s,maxY:l})},r.prototype.copyWith=function(t){var i=t.fit,a=t.alignment,n=t.layoutScaleFactor,o=t.minX,s=t.minY,l=t.maxX,c=t.maxY;return new r({fit:null!=i?i:this.fit,alignment:null!=a?a:this.alignment,layoutScaleFactor:null!=n?n:this.layoutScaleFactor,minX:null!=o?o:this.minX,minY:null!=s?s:this.minY,maxX:null!=l?l:this.maxX,maxY:null!=c?c:this.maxY})},r.prototype.runtimeFit=function(i){var r;return this.cachedRuntimeFit?this.cachedRuntimeFit:(r=this.fit===t.Cover?i.Fit.cover:this.fit===t.Contain?i.Fit.contain:this.fit===t.Fill?i.Fit.fill:this.fit===t.FitWidth?i.Fit.fitWidth:this.fit===t.FitHeight?i.Fit.fitHeight:this.fit===t.ScaleDown?i.Fit.scaleDown:this.fit===t.Layout?i.Fit.layout:i.Fit.none,this.cachedRuntimeFit=r,r)},r.prototype.runtimeAlignment=function(t){var r;return this.cachedRuntimeAlignment?this.cachedRuntimeAlignment:(r=this.alignment===i.TopLeft?t.Alignment.topLeft:this.alignment===i.TopCenter?t.Alignment.topCenter:this.alignment===i.TopRight?t.Alignment.topRight:this.alignment===i.CenterLeft?t.Alignment.centerLeft:this.alignment===i.CenterRight?t.Alignment.centerRight:this.alignment===i.BottomLeft?t.Alignment.bottomLeft:this.alignment===i.BottomCenter?t.Alignment.bottomCenter:this.alignment===i.BottomRight?t.Alignment.bottomRight:t.Alignment.center,this.cachedRuntimeAlignment=r,r)},r}(),(A=a||(a={}))[A.Number=56]="Number",A[A.Trigger=58]="Trigger",A[A.Boolean=59]="Boolean",C=function(){function t(t,i){this.type=t,this.runtimeInput=i}return Object.defineProperty(t.prototype,"name",{get:function(){return this.runtimeInput.name}
2,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.runtimeInput.value},set:function(t){this.runtimeInput.value=t},enumerable:!1,configurable:!0}),t.prototype.fire=function(){this.type===a.Trigger&&this.runtimeInput.fire()},t.prototype.delete=function(){this.runtimeInput=null},t}(),(E=n||(n={}))[E.General=128]="General",E[E.OpenUrl=131]="OpenUrl",P=function(t){function i(i,r){var a=t.call(this,!1)||this;return a.nativeArtboard=i,a.file=r,a}return g(i,t),i}(M=function(t){this.isBindableArtboard=!1,this.isBindableArtboard=t}),D=function(t){function i(i){var r=t.call(this,!0)||this;return r.selfUnref=!1,r.nativeArtboard=i,r}return g(i,t),Object.defineProperty(i.prototype,"viewModel",{set:function(t){this.nativeViewModel=t.nativeInstance},enumerable:!1,configurable:!0}),i.prototype.destroy=function(){var t;this.selfUnref&&(this.nativeArtboard.unref(),null==(t=this.nativeViewModel)||t.unref())},i}(M),I=function(){function t(t,i,r,a){this.stateMachine=t,this.playing=r,this.artboard=a,this.inputs=[],this.instance=new i.StateMachineInstance(t,a),this.initInputs(i)}return Object.defineProperty(t.prototype,"hasFocusNodes",{get:function(){return this.instance.hasFocusNodes()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.stateMachine.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"statesChanged",{get:function(){for(var t=[],i=0;i<this.instance.stateChangedCount();i++)t.push(this.instance.stateChangedNameByIndex(i));return t},enumerable:!1,configurable:!0}),t.prototype.advance=function(t){this.instance.advance(t)},t.prototype.advanceAndApply=function(t){this.instance.advanceAndApply(t)},t.prototype.enableSemantics=function(){this.instance.enableSemantics()},t.prototype.drainSemanticsDiff=function(){return this.instance.drainSemanticsDiff()},t.prototype.fireSemanticAction=function(t,i){this.instance.fireSemanticAction(t,i)},t.prototype.focusSemanticNode=function(t){return this.instance.focusSemanticNode(t)},t.prototype.reportedEventCount=function(){return this.instance.reportedEventCount()},t.prototype.reportedEventAt=function(t){return this.instance.reportedEventAt(t)},t.prototype.initInputs=function(t){for(var i=0;i<this.instance.inputCount();i++){var r=this.instance.input(i);this.inputs.push(this.mapRuntimeInput(r,t))}},t.prototype.mapRuntimeInput=function(t,i){return t.type===i.SMIInput.bool?new C(a.Boolean,t.asBool()):t.type===i.SMIInput.number?new C(a.Number,t.asNumber()):t.type===i.SMIInput.trigger?new C(a.Trigger,t.asTrigger()):void 0},t.prototype.cleanup=function(){this.inputs.forEach(function(t){t.delete()}),this.inputs.length=0,this.instance.delete()},t.prototype.bindViewModelInstance=function(t){null!=t.runtimeInstance&&this.instance.bindViewModelInstance(t.runtimeInstance)},t.prototype.focusState=function(){return this.instance.focusState()},t.prototype.clearFocus=function(){this.instance.clearFocus()},t}(),z=function(){function t(t,i,r,a,n){void 0===a&&(a=[]),void 0===n&&(n=[]),this.runtime=t,this.artboard=i,this.eventManager=r,this.animations=a,this.stateMachines=n}return t.prototype.add=function(t,i,r,a){if(void 0===r&&(r=!0),void 0===a&&(a=!1),0===(t=e_(t)).length)this.animations.forEach(function(t){return t.playing=i}),this.stateMachines.forEach(function(t){return t.playing=i});else for(var n=this.animations.map(function(t){return t.name}),s=this.stateMachines.map(function(t){return t.name}),l=0;l<t.length;l++){var c=n.indexOf(t[l]),u=s.indexOf(t[l]);if(c>=0||u>=0)c>=0?this.animations[c].playing=i:this.stateMachines[u].playing=i;else{var d=this.artboard.animationByName(t[l]);if(d){var f=new h.Animation(d,this.artboard,this.runtime,i);f.advance(0),f.apply(1),this.animations.push(f)}else{var p=this.artboard.stateMachineByName(t[l]);if(p){var m=new I(p,this.runtime,i,this.artboard);a&&m.enableSemantics(),this.stateMachines.push(m)}}}}return r&&(i?this.eventManager.fire({type:o.Play,data:this.playing}):this.eventManager.fire({type:o.Pause,data:this.paused})),i?this.playing:this.paused},t.prototype.initLinearAnimations=function(t,i,r){void 0===r&&(r=!1);for(var a=this.animations.map(function(t){return t.name}),n=0;n<t.length;n++){var o=a.indexOf(t[n]);if(o>=0)this.animations[o].playing=i;else{var s=this.artboard.animationByName(t[n]);if(s){var l=new h.Animation(s,this.artboard,this.runtime,i);l.advance(0),l.apply(1),this.animations.push(l)}else if(r)throw new x("State Machine with name ".concat(t[n]," not found"));else console.error("Animation with name ".concat(t[n]," not found."))}}},t.prototype.initStateMachines=function(t,i,r){for(var a=this.stateMachines.map(function(t){return t.name}),n=0;n<t.length;n++){var o=a.indexOf(t[n]);if(o>=0)this.stateMachines[o].playing=i;else{var s=this.artboard.stateMachineByName(t[n]);if(s){var l=new I(s,this.runtime,i,this.artboard);r&&l.enableSemantics(),this.stateMachines.push(l)}else console.warn("State Machine with name ".concat(t[n]," not found. Falling back to find an animation with the same name.")),this.initLinearAnimations([t[n]],i,!0)}}},t.prototype.play=function(t){return this.add(t,!0)},t.prototype.advanceIfPaused=function(){this.stateMachines.forEac
2h(function(t){t.playing||t.advanceAndApply(0)})},t.prototype.pause=function(t){return this.add(t,!1)},t.prototype.scrub=function(t,i){var r=this.animations.filter(function(i){return t.includes(i.name)});return r.forEach(function(t){return t.scrubTo=i}),r.map(function(t){return t.name})},Object.defineProperty(t.prototype,"playing",{get:function(){return this.animations.filter(function(t){return t.playing}).map(function(t){return t.name}).concat(this.stateMachines.filter(function(t){return t.playing}).map(function(t){return t.name}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paused",{get:function(){return this.animations.filter(function(t){return!t.playing}).map(function(t){return t.name}).concat(this.stateMachines.filter(function(t){return!t.playing}).map(function(t){return t.name}))},enumerable:!1,configurable:!0}),t.prototype.stop=function(t){var i=this;t=e_(t);var r=[];if(0===t.length)r=this.animations.map(function(t){return t.name}).concat(this.stateMachines.map(function(t){return t.name})),this.animations.forEach(function(t){return t.cleanup()}),this.stateMachines.forEach(function(t){return t.cleanup()}),this.animations.splice(0,this.animations.length),this.stateMachines.splice(0,this.stateMachines.length);else{var a=this.animations.filter(function(i){return t.includes(i.name)});a.forEach(function(t){t.cleanup(),i.animations.splice(i.animations.indexOf(t),1)});var n=this.stateMachines.filter(function(i){return t.includes(i.name)});n.forEach(function(t){t.cleanup(),i.stateMachines.splice(i.stateMachines.indexOf(t),1)}),r=a.map(function(t){return t.name}).concat(n.map(function(t){return t.name}))}return this.eventManager.fire({type:o.Stop,data:r}),r},Object.defineProperty(t.prototype,"isPlaying",{get:function(){return this.animations.reduce(function(t,i){return t||i.playing},!1)||this.stateMachines.reduce(function(t,i){return t||i.playing},!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPaused",{get:function(){return!this.isPlaying&&(this.animations.length>0||this.stateMachines.length>0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStopped",{get:function(){return 0===this.animations.length&&0===this.stateMachines.length},enumerable:!1,configurable:!0}),t.prototype.atLeastOne=function(t,i,r){var a;return void 0===i&&(i=!0),void 0===r&&(r=!1),0===this.animations.length&&0===this.stateMachines.length&&(this.artboard.animationCount()>0?(this.artboard.stateMachineCount()>0&&N("No `stateMachine` was specified, so the artboard's first linear animation is playing by default. In the next major version, the artboard's state machine will be played by default instead when one exists. Pass the `stateMachine` parameter to adopt that behavior now."),this.add([a=this.artboard.animationByIndex(0).name],t,i)):this.artboard.stateMachineCount()>0&&this.add([a=this.artboard.stateMachineByIndex(0).name],t,i,r)),a},t.prototype.handleLooping=function(){for(var t=0,i=this.animations.filter(function(t){return t.playing});t<i.length;t++){var r=i[t];0===r.loopValue&&r.loopCount?(r.loopCount=0,this.stop(r.name)):1===r.loopValue&&r.loopCount?(this.eventManager.fire({type:o.Loop,data:{animation:r.name,type:s.Loop}}),r.loopCount=0):2===r.loopValue&&r.loopCount>1&&(this.eventManager.fire({type:o.Loop,data:{animation:r.name,type:s.PingPong}}),r.loopCount=0)}},t.prototype.handleStateChanges=function(){for(var t=[],i=0,r=this.stateMachines.filter(function(t){return t.playing});i<r.length;i++){var a=r[i];t.push.apply(t,a.statesChanged)}t.length>0&&this.eventManager.fire({type:o.StateChange,data:t})},t.prototype.handleAdvancing=function(t){this.eventManager.fire({type:o.Advance,data:t})},t}(),(F=o||(o={})).Load="load",F.LoadError="loaderror",F.Play="play",F.Pause="pause",F.Stop="stop",F.Loop="loop",F.Draw="draw",F.Advance="advance",F.StateChange="statechange",F.RiveEvent="riveevent",F.AudioStatusChange="audiostatuschange",R="Rive Events are deprecated and will be removed in a future major version: please use data binding instead. See https://rive.app/docs/runtimes/web/rive-events for how to migrate.",O="State machine inputs are deprecated and will be removed in a future major version: please use data binding properties instead. See https://rive.app/docs/editor/data-binding/migration-guide#state-machine-inputs for how to migrate.",B="Text run APIs are deprecated and will be removed in a future major version: please use data binding instead. See https://rive.app/docs/editor/data-binding/migration-guide#updating-text-runs-at-runtime for how to migrate.",j=new Set,
2N=function(t){j.has(t)||(j.add(t),console.warn("[Rive] ".concat(t)))},$=function(t,i){Array.isArray(t)&&N("Passing an array of names to `".concat(i,"()` is deprecated: in the next major version this parameter will be a single string, and playing multiple animations or state machines at once will not be supported."))},V=function(t){N("Passing linear animation names to `".concat(t,"()` is deprecated and will be removed in a future major version: ")+"Pass a single state machine name to control playback instead.")},(U=s||(s={})).OneShot="oneshot",U.Loop="loop",U.PingPong="pingpong",G=function(){function t(t){void 0===t&&(t=[]),this.listeners=t}return t.prototype.getListeners=function(t){return this.listeners.filter(function(i){return i.type===t})},t.prototype.add=function(t){this.listeners.includes(t)||this.listeners.push(t)},t.prototype.remove=function(t){for(var i=0;i<this.listeners.length;i++){var r=this.listeners[i];if(r.type===t.type&&r.callback===t.callback){this.listeners.splice(i,1);break}}},t.prototype.removeAll=function(t){var i=this;t?this.listeners.filter(function(i){return i.type===t}).forEach(function(t){return i.remove(t)}):this.listeners.splice(0,this.listeners.length)},t.prototype.fire=function(t){this.getListeners(t.type).forEach(function(i){return i.callback(t)})},t}(),q=function(){function t(t){this.eventManager=t,this.queue=[]}return t.prototype.add=function(t){this.queue.push(t)},t.prototype.process=function(){for(;this.queue.length>0;){var t=this.queue.shift();(null==t?void 0:t.action)&&t.action(),(null==t?void 0:t.event)&&this.eventManager.fire(t.event)}},t}(),(Z=l||(l={}))[Z.AVAILABLE=0]="AVAILABLE",Z[Z.UNAVAILABLE=1]="UNAVAILABLE",H=new(function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i._started=!1,i._enabled=!1,i._status=l.UNAVAILABLE,i}return g(i,t),i.prototype.delay=function(t){return _(this,void 0,void 0,function(){return v(this,function(i){return[2,new Promise(function(i){return setTimeout(i,t)})]})})},i.prototype.timeout=function(){return _(this,void 0,void 0,function(){return v(this,function(t){return[2,new Promise(function(t,i){return setTimeout(i,50)})]})})},i.prototype.reportToListeners=function(){this.fire({type:o.AudioStatusChange}),this.removeAll()},i.prototype.enableAudio=function(){return _(this,void 0,void 0,function(){return v(this,function(t){return this._enabled||(this._enabled=!0,this._status=l.AVAILABLE,this.reportToListeners()),[2]})})},i.prototype.testAudio=function(){return _(this,void 0,void 0,function(){return v(this,function(t){switch(t.label){case 0:if(this._status!==l.UNAVAILABLE||null===this._audioContext)return[3,4];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,Promise.race([this._audioContext.resume(),this.timeout()])];case 2:return t.sent(),this.enableAudio(),[3,4];case 3:return t.sent(),[3,4];case 4:return[2]}})})},i.prototype._establishAudio=function(){return _(this,void 0,void 0,function(){return v(this,function(t){switch(t.label){case 0:if(this._started)return[3,5];if(this._started=!0,"u">typeof window)return[3,1];return this.enableAudio(),[3,5];case 1:this._audioContext=new AudioContext,this.listenForUserAction(),t.label=2;case 2:if(this._status!==l.UNAVAILABLE)return[3,5];return[4,this.testAudio()];case 3:return t.sent(),[4,this.delay(1e3)];case 4:return t.sent(),[3,2];case 5:return[2]}})})},i.prototype.listenForUserAction=function(){var t=this;document.addEventListener("pointerdown",function(){return _(t,void 0,void 0,function(){return v(this,function(t){return this.enableAudio(),[2]})})},{once:!0})},i.prototype.establishAudio=function(){return _(this,void 0,void 0,function(){return v(this,function(t){return this._establishAudio(),[2]})})},Object.defineProperty(i.prototype,"systemVolume",{get:function(){return this._status===l.UNAVAILABLE?(this.testAudio(),0):1},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),i}(G)),W=function(){function t(){}return t.prototype.observe=function(){},t.prototype.unobserve=function(){},t.prototype.disconnect=function(){},t}(),X=globalThis.ResizeObserver||W,Y=new(function(){function t(){var t=this;this._elementsMap=new Map,this._onObservedEntry=function(i){var r=t._elementsMap.get(i.target);null!==r?r.onResize(0==i.target.clientWidth||0==i.target.clientHeight):t._resizeObserver.unobserve(i.target)}
2,this._onObserved=function(i){i.forEach(t._onObservedEntry)},this._resizeObserver=new X(this._onObserved)}return t.prototype.add=function(t,i){var r={onResize:i,element:t};return this._elementsMap.set(t,r),this._resizeObserver.observe(t),r},t.prototype.remove=function(t){this._resizeObserver.unobserve(t.element),this._elementsMap.delete(t.element)},t}()),K=0,J=function(t){var i=t.stateMachine,r=t.animations,a=t.stateMachines;return(void 0!==r&&N("The `animations` parameter is deprecated and will be removed in a future major version: please use the `stateMachine` parameter to play a state machine instead."),void 0!==a&&N("The `stateMachines` parameter is deprecated: please use `stateMachine` with a single state machine name instead."),i)?{startingAnimationNames:[],startingStateMachineNames:[i]}:{startingAnimationNames:e_(r),startingStateMachineNames:e_(a)}},Q=function(){function t(t){this.enableRiveAssetCDN=!0,this.enablePerfMarks=!1,this.referenceCount=0,this.destroyed=!1,this.selfUnref=!1,this.bindableArtboards=[],this.deferred=!1,this.session=null,this._sessionClaimed=!1,this.fileFinalizer=null,this.boundElsewhereWarned=!1,this.src=t.src,this.buffer=t.buffer,this.deferred=!!t.enableGPUCanvas,t.assetLoader&&(this.assetLoader=t.assetLoader),this.enableRiveAssetCDN="boolean"!=typeof t.enableRiveAssetCDN||t.enableRiveAssetCDN,this.enablePerfMarks=!!t.enablePerfMarks,this.enablePerfMarks&&(d.RuntimeLoader.enablePerfMarks=!0),this.eventManager=new G,t.onLoad&&this.on(o.Load,t.onLoad),t.onLoadError&&this.on(o.LoadError,t.onLoadError)}return t.prototype.releaseFile=function(){var t,i;null==(t=this.fileFinalizer)||t.release(),null==(i=this.file)||i.unref(),this.fileFinalizer=null,this.file=null},t.prototype.releaseSession=function(){var t;null==(t=this.session)||t.delete(),this.session=null},t.prototype.releaseBindableArtboards=function(){this.bindableArtboards.forEach(function(t){return t.destroy()})},t.prototype.initData=function(){return _(this,void 0,void 0,function(){var i,r,a,n,s,l;return v(this,function(c){switch(c.label){case 0:if(!(this.src&&!this.buffer))return[3,4];c.label=1;case 1:return c.trys.push([1,3,,4]),i=this,[4,ey(this.src)];case 2:return i.buffer=c.sent(),[3,4];case 3:if((r=c.sent())instanceof Error)throw r;throw new x(t.fileLoadErrorMessage);case 4:if(this.destroyed)return[2];this.deferred&&null===this.session&&(this.session=t.makeDeferredSession(this.runtime)),this.assetLoader&&(a=new p.CustomFileAssetLoaderWrapper(this.runtime,this.assetLoader,this.session).assetLoader),this.enablePerfMarks&&performance.mark("rive:file-load:start"),c.label=5;case 5:return c.trys.push([5,7,,8]),n=this,[4,this.runtime.load(new Uint8Array(this.buffer),a,this.enableRiveAssetCDN,this.session)];case 6:return n.file=c.sent(),[3,8];case 7:throw s=c.sent(),this.releaseSession(),s;case 8:if(this.enablePerfMarks&&(performance.mark("rive:file-load:end"),performance.measure("rive:file-load","rive:file-load:start","rive:file-load:end")),this.destroyed)return this.releaseFile(),this.releaseSession(),[2];if(null===this.file)return this.releaseSession(),this.fireLoadError(t.fileLoadErrorMessage),[2];return l=new p.FileFinalizer(this.file,this.session),this.fileFinalizer=l,p.finalizationRegistry.register(this,l),this.eventManager.fire({type:o.Load,data:this}),[2]}})})},t.prototype.loadRiveFileBytes=function(){return _(this,void 0,void 0,function(){var t;return v(this,function(i){return this.enablePerfMarks&&performance.mark("rive:fetch-riv:start"),t=this.src?ey(this.src):Promise.resolve(this.buffer),this.enablePerfMarks&&this.src&&t.then(function(){performance.mark("rive:fetch-riv:end"),performance.measure("rive:fetch-riv","rive:fetch-riv:start","rive:fetch-riv:end")}),[2,t]})})},t.prototype.loadRuntime=function(){return _(this,void 0,void 0,function(){var t;return v(this,function(i){return this.enablePerfMarks&&performance.mark("rive:await-wasm:start"),t=d.RuntimeLoader.awaitInstance(),this.enablePerfMarks&&t.then(function(){performance.mark("rive:await-wasm:end"),performance.measure("rive:await-wasm","rive:await-wasm:start","rive:await-wasm:end")}),[2,t]})})},t.prototype.init=function(){return _(this,void 0,void 0,function(){var i,r,a,n;return v(this,function(o){switch(o.label){case 0:if(!this.src&&!this.buffer)return this.fireLoadError(t.missingErrorMessage),[2];o.label=1;case 1:return o.trys.push([1,4,,5]),[4,Promise.all([this.loadRiveFileBytes(),this.loadRuntime()])];case 2:if(r=(i=o.sent())[0],a=i[1],this.destroyed)return[2];return this.buffer=r,this.runtime=a,this.enablePerfMarks&&performance.mark("rive:init-d
2ata:start"),[4,this.initData()];case 3:return o.sent(),this.enablePerfMarks&&(performance.mark("rive:init-data:end"),performance.measure("rive:init-data","rive:init-data:start","rive:init-data:end")),[3,5];case 4:return n=o.sent(),this.fireLoadError(n instanceof Error?n.message:t.fileLoadErrorMessage),[3,5];case 5:return[2]}})})},t.prototype.fireLoadError=function(t){throw this.eventManager.fire({type:o.LoadError,data:t}),new x(t)},t.prototype.on=function(t,i){this.eventManager.add({type:t,callback:i})},t.prototype.off=function(t,i){this.eventManager.remove({type:t,callback:i})},t.prototype.cleanup=function(){this.referenceCount-=1,this.referenceCount<=0&&(this.removeAllRiveEventListeners(),this.releaseFile(),this.releaseBindableArtboards(),this.releaseSession(),this.destroyed=!0)},t.makeDeferredSession=function(i){var r,a,n=null!=(a=null==(r=i.makeDeferredSession)?void 0:r.call(i))?a:null;return null!==n||t.deferredUnsupportedWarned||(t.deferredUnsupportedWarned=!0,console.warn("Rive: `enableGPUCanvas: true` was ignored because this runtime build has no GPU Canvas support; importing in immediate mode. Use a @rive-app/webgl2 or @rive-app/canvas build with deferred rendering compiled in.")),n},Object.defineProperty(t.prototype,"deferredSession",{get:function(){return this.session},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deferredRequested",{get:function(){return this.deferred},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionClaimed",{get:function(){return this._sessionClaimed},enumerable:!1,configurable:!0}),t.prototype.claimSession=function(){this._sessionClaimed=!0},t.prototype.warnBoundElsewhereOnce=function(){this.boundElsewhereWarned||(this.boundElsewhereWarned=!0,console.warn("Rive: this deferred RiveFile is already bound to another Rive instance's canvas, and a deferred session cannot span canvases. Re-importing the file for this instance (an extra parse of the retained buffer, no extra network request)."))},t.prototype.reimport=function(i){return _(this,void 0,void 0,function(){var r;return v(this,function(a){switch(a.label){case 0:return[4,(r=new t({buffer:this.buffer,assetLoader:this.assetLoader,enableRiveAssetCDN:this.enableRiveAssetCDN,enablePerfMarks:this.enablePerfMarks,enableGPUCanvas:i})).init()];case 1:return a.sent(),[2,r]}})})},t.prototype.removeAllRiveEventListeners=function(t){this.eventManager.removeAll(t)},t.prototype.getInstance=function(){if(null!==this.file)return this.referenceCount+=1,this.file},t.prototype.destroyIfUnused=function(){this.referenceCount<=0&&this.cleanup()},t.prototype.createBindableArtboard=function(t){if(null!=t){var i=new D(t);return(0,p.createFinalization)(i,i.nativeArtboard),this.bindableArtboards.push(i),i}return null},t.prototype.getArtboard=function(t){var i=this.file.artboardByName(t);if(null!=i)return new P(i,this)},t.prototype.getBindableArtboard=function(t){var i=this.file.bindableArtboardByName(t);return this.createBindableArtboard(i)},t.prototype.getDefaultBindableArtboard=function(){var t=this.file.bindableArtboardDefault();return this.createBindableArtboard(t)},t.prototype.internalBindableArtboardFromArtboard=function(t){var i=this.file.internalBindableArtboardFromArtboard(t);return this.createBindableArtboard(i)},t.prototype.viewModelByName=function(t){var i=this.file.viewModelByName(t);return null!==i?new ei(i):null},t.prototype.globalViewModelNames=function(){return this.file.globalViewModelNames()},t.missingErrorMessage="Rive source file or data buffer required",t.fileLoadErrorMessage="The file failed to load",t.deferredUnsupportedWarned=!1,t}(),ee=function(){function i(t){var i,a,n,s,l=this;this.loaded=!1,this.destroyed=!1,this._observed=null,this.readyForPlaying=!1,this.deferredRenderer=!1,this.ownsRiveFile=!1,this.artboard=null,this.eventCleanup=null,this._keyboardInteractions=null,this.shouldDisableRiveListeners=!1,this.automaticallyHandleEvents=!1,this.dispatchPointerExit=!0,this.enableMultiTouch=!1,this.enableRiveAssetCDN=!0,this.semanticsMode=f.SemanticMode.Disabled,this.semanticsOptions={riveCanvasLabel:"Rive animation"},this._semanticsActive=!1,this._volume=1,this._artboardWidth=void 0,this._artboardHeight=void 0,this._devicePixelRatioUsed=1,this._hasZeroSize=!1,this._needsRedraw=!1,this._currentCanvasWidth=0,this._currentCanvasHeight=0,this._audioEventListener=null,this._boundDraw=null,this._pageVisibilityHandler=null,this._explicitlyStoppedRendering=!1,this._viewModelInstance=null,this._globalViewModelInstances=new Map,this._dataEnums=null,this._tabIndex=null,this._prevHasFocus=!1,this._focusOptions={allowFocusInterrupt:!1},this._semanticTree=null,this._accessibilityOverlay=null,this._overlayTransformDirty=!0,this._instanceId="".concat(K++),this.drawOptimization=r.DrawOnChanged,this.enablePerfMarks=!1,this.durations=[],this.frameTimes=[],this.frameCount=0,this.isTouchScrollEnabled=!1,this.onCanvasResize=function(t){var i=l._hasZeroSize!==t;l._hasZeroSize=t,t?l._layout.maxX&&l._layout.maxY||l.resizeToCanvas():i&&l.resizeDrawingSurfaceToCanvas()},this.frameRequestId=null,this.renderSecondTimer=0,this._boundDraw=this.draw.bind(this),"u">typeof document&&(this._pageVisibilityHandler=this._onPageVisibilityChange.bind(this),document.addEventListener("visibilitychange",this._pageVisibilityHandler)),this.canvas=t.canvas,t.canvas.constructor===HTMLCanvasElement&&(this._observed=Y.add(this.canvas,this.onCanvasResize)),this._currentCanvasWidth=this.canvas.width,this._currentCanvasHeight=this.canvas.height,this.src=t.src,this.buffer=t.buffer,this.riveFile=t.riveFile,this.layout=null!=(i=t.layout)?i:new S,this.shouldDisableRiveListeners=!!t.shouldDisableRiveListeners,this.isTouchScrollEnabled=!!t.isTouchScrollEnabled,t.automaticallyHandleEvents&&N("The `automaticallyHandleEvents` parameter is deprecated. "+R),this.automaticallyHandleEvents=!!t.automaticallyHandleEvents,this.dispatchPointerExit=!1===t.dispatchPointerExit?t.dispatchPointerExit:this.dispatchPointerExit,this.enableMultiTouch=!!t.enableMultiTouch,this.drawOptimization=null!=(a=t.drawingOptions)?a:this.drawOptimization,this.enableRiveAssetCDN=void 0===t.enableRiveAssetCDN||t.enableRiveAssetCDN,this.enablePerfMarks=!!t.enablePerfMarks,this.enablePerfMarks&&(d.RuntimeLoader.enablePerfMarks=!0),this._focusOptions=null!=(n=t.focusOptions)?n:this._focusOptions,this._tabIndex=null!=(s=t.tabIndex)?s:null,this.deferredRenderer=!!t.enableGPUCanvas,this.eventManager=new G,t.onLoad&&this.on(o.Load,t.onLoad),t.onLoadError&&this.on(o.LoadError,t.onLoadError),t.onPlay&&this.on(o.Play,t.onPlay),t.onPause&&this.on(o.Pause,t.onPause),t.onStop&&this.on(o.Stop,t.onStop),t.onLoop&&this.on(o.Loop,t.onLoop),t.onStateChange&&this.on(o.StateChange,t.onStateChange),t.onAdvance&&this.on(o.Advance,t.onAdvance),t.onload&&!t.onLoad&&this.on(o.Load,t.onload),t.onloaderror&&!t.onLoadError&&this.on(o.LoadError,t.onloaderror),t.onplay&&!t.onPlay&&this.on(o.Play,t.onplay),t.onpause&&!t.onPause&&this.on(o.Pause,t.onpause),t.onstop&&!t.onStop&&this.on(o.Stop,t.onstop),t.onloop&&!t.onLoop&&this.on(o.Loop,t.onloop),t.onstatechange&&!t.onStateChange&&this.on(o.StateChange,t.onstatechange),t.assetLoader&&(this.assetLoader=t.assetLoader),this.taskQueue=new q(this.eventManager),this.init({src:this.src,buffer:this.buffer,riveFile:this.riveFile,autoplay:t.autoplay,autoBind:t.autoBind,stateMachine:t.stateMachine,animations:t.animations,stateMachines:t.stateMachines,artboard:t.artboard,useOffscreenRenderer:t.useOffscreenRenderer,tabIndex:t.tabIndex,semanticsMode:t.semanticsMode,semanticsOptions:t.semanticsOptions,enableGPUCanvas:this.deferredRenderer})}return Object.defineProperty(i.prototype,"viewModelCount",{get:function(){return this.file.viewModelCount()}
2,enumerable:!1,configurable:!0}),i.new=function(t){return console.warn("This function is deprecated: please use `new Rive({})` instead"),new i(t)},i.prototype.enableSemantics=function(){this.semanticsMode=f.SemanticMode.Enabled,this.activateSemantics()},i.prototype.activateSemantics=function(){this._semanticsActive||this.semanticsMode===f.SemanticMode.Disabled||(this._semanticsActive=!0,this.syncSemanticsOnStateMachines())},i.prototype.syncSemanticsOnStateMachines=function(){if(this._semanticsActive&&this.animator)for(var t=0,i=this.animator.stateMachines;t<i.length;t++)i[t].enableSemantics()},i.prototype.cleanupSemantics=function(){this._semanticTree=null,this._accessibilityOverlay&&(this._accessibilityOverlay.destroy(),this._accessibilityOverlay=null)},i.prototype.onSystemAudioChanged=function(){this.volume=this._volume},i.prototype.init=function(t){var r,a,n,s,l,c=this,u=t.src,h=t.buffer,p=t.riveFile,m=t.stateMachine,g=t.animations,y=t.stateMachines,_=t.artboard,v=t.autoplay,b=void 0!==v&&v,w=t.useOffscreenRenderer,k=void 0!==w&&w,T=t.autoBind,S=void 0!==T&&T,A=t.tabIndex,C=t.semanticsMode,E=t.semanticsOptions,M=t.enableGPUCanvas;if(!this.destroyed){if(!u&&!h&&!p)throw new x(i.missingErrorMessage);this.artboard&&(null==(a=null==(r=this.renderer)?void 0:r.bindContext)||a.call(r),null==(n=this.animator)||n.stop(),this.artboard.delete(),this.artboard=null),this.renderer&&(null==(l=(s=this.renderer).detachSession)||l.call(s)),this.releaseCurrentRiveFile(!1),this.src=u,this.buffer=h,this.riveFile=p,this.ownsRiveFile=!1,this.deferredRenderer=null!=M?M:this.deferredRenderer,this._tabIndex=null!=A?A:null,this.semanticsMode=null!=C?C:f.SemanticMode.Disabled,this.semanticsOptions=null!=E?E:this.semanticsOptions;var P=J({stateMachine:m,animations:g,stateMachines:y}),D=P.startingAnimationNames,I=P.startingStateMachineNames;this.loaded=!1,this.readyForPlaying=!1,d.RuntimeLoader.awaitInstance().then(function(t){if(!c.destroyed){c.runtime=t,c.removeRiveListeners(),c.cleanupSemantics(),c.deleteRiveRenderer(),c.enablePerfMarks&&performance.mark("rive:make-renderer:start");try{if(c.renderer=c.runtime.makeRenderer(c.canvas,k),!c.renderer)throw Error("Renderer is null, cannot render Rive on the canvas.")}catch(t){throw console.error(t),new x("Unable to create the renderer, your environment may not support WebGL. Try the @rive-app/canvas runtime as an alternative.")}c.enablePerfMarks&&(performance.mark("rive:make-renderer:end"),performance.measure("rive:make-renderer","rive:make-renderer:start","rive:make-renderer:end")),c.canvas.width||c.canvas.height||c.resizeDrawingSurfaceToCanvas(),c.initData(_,D,I,b,S).then(function(t){if(t)return c.setupRiveListeners()}).catch(function(t){console.error(t)})}}).catch(function(t){c.eventManager.fire({type:o.LoadError,data:t.message})})}},i.prototype.setupRiveListeners=function(t){var i=this;if(this.eventCleanup&&this.eventCleanup(),this.cleanupKeyboardInteractions(),!this.shouldDisableRiveListeners){var r=this.animator.stateMachines.filter(function(t){return t.playing}).filter(function(t){return i.runtime.hasListeners(t.instance)}).map(function(t){return t.instance}),a=this.isTouchScrollEnabled,n=this.dispatchPointerExit,o=this.enableMultiTouch;t&&"isTouchScrollEnabled"in t&&(a=t.isTouchScrollEnabled),this.eventCleanup=(0,p.registerTouchInteractions)({canvas:this.canvas,artboard:this.artboard,stateMachines:r,renderer:this.renderer,rive:this.runtime,fit:this._layout.runtimeFit(this.runtime),alignment:this._layout.runtimeAlignment(this.runtime),isTouchScrollEnabled:a,dispatchPointerExit:n,enableMultiTouch:o,layoutScaleFactor:this._layout.layoutScaleFactor,advanceAndDrain:this.advanceAndReportChanges.bind(this)}),this.ensureKeyboardInteractions()}},i.prototype.ensureKeyboardInteractions=function(){var t=this;if(!(this._keyboardInteractions||this.shouldDisableRiveListeners||"u"<typeof window)&&this.canvas instanceof HTMLCanvasElement){var i=this.animator.stateMachines.find(function(t){return t.playing&&t.hasFocusNodes});if(i){var r=this.canvas.tabIndex;(-1===r||isNaN(r))&&(this.canvas.tabIndex=null!==this._tabIndex?this._tabIndex:0),this._keyboardInteractions=new p.KeyboardInteractions({canvas:this.canvas,stateMachine:i.instance,hasFocusNodes:!0,getOverlayElement:function(){var i,r;return null!=(r=null==(i=t._accessibilityOverlay)?void 0:i.getSemanticOverlayContainer())?r:null}})}}},i.prototype.cleanupKeyboardInteractions=function(){this._keyboardInteractions&&(this._keyboardInteractions.cleanup(),this._keyboardInteractions=null)},i.prototype.removeRiveListeners=function(){this.eventCleanup&&(this.eventCleanup(),this.eventCleanup=null),this.cleanupKeyboardInteractions()},i.prototype.initializeAudio=function(){var t,i=this;H.status==l.UNAVAILABLE&&(this.file.hasAudio||(null==(t=this.artboard)?void 0:t.hasAudio)&&null===this._audioEventListener)&&(this._audioEventListener={type:o.AudioStatusChange,callback:function(){return i.onSystemAudioChanged()}},H.add(this._audioEventListener),H.establishAudio())},i.prototype.initArtboardSize=function(){this.artboard&&(this._artboardWidth=this.artboard.width=this._artboardWidth||this.artboard.width,this._artboardHeight=this.artboard.height=this._artboardHeight||this.artboard.height)},i.prototype.initData=function(t,i,r,a,n){return _(this,void 0,void 0,function(){var s,l,c,u;return v(this,function(h){switch(h.label){case 0:if(h.trys.push([0,5,,6]),this.ownsRiveFile=null==this.riveFile,!this.ownsRiveFile)return[3,2];return s=new Q({src:this.src,buffer:this.buffer,enableRiveAssetCDN:this.enableRiveAssetCDN,assetLoader:this.assetLoader,enablePerfMarks:this.enablePerfMarks,enableGPUCanvas:this.deferredRenderer}),this.riveFile=s,[4,s.init()];case 1:if(h.sent(),this.destroyed)return s.destroyIfUnused(),[2,!1];h.label=2;case 2:if(!(null!==this.riveFile.deferredSession||this.deferredRenderer))return[3,4];return[4,this.resolveDeferredRendering()];case 3:if(h.sent(),this.destroyed)return this.ownsRiveFile&&(null==(c=this.riveFile)||c.destroyIfUnused()),[2,!1];h.label=4;case 4:this.file=this.riveFile.getInstance(),this.initArtboard(t,i,r,a,n),this.initArtboardSize(),this.initializeAudio(),this.semanticsMode===f.SemanticMode.Enabled?this.activateSemantics():this._semanticsActive&&this.syncSemanticsOnStateMachines();try{this.loaded=!0,this.eventManager.fire({type:o.Load,data:null!=(u=this.src)?u:"buffer"})}catch(t){console.error(t)}return this.animator.advanceIfPaused(),this.readyForPlaying=!0,this.taskQueue.process(),this.drawFrame(),[2,!0];case 5:var d;return l=(d=h.sent())&&d.isHandledError?d.message:"Problem loading file; may be corrupt!",this.eventManager.fire({type:o.LoadError,data:l}),[2,Promise.reject(l)];case 6:return[2]}})})},i.prototype.resolveDeferredRendering=function(){return _(this,void 0,void 0,function(){var t,i,r,a,n,o,s,l,c,u;return v(this,function(h){switch(h.label){case 0:if(t=this.riveFile,i=this.ownsRiveFile,r=this.renderer,null===(a=t.deferredSession))return this.deferredRenderer&&!t.deferredRequested&&console.warn("Rive: `enableGPUCanvas: true` was ignored because this RiveFile was imported without it. The mode is fixed at import: construct the RiveFile with `enableGPUCanvas: true` to opt in."),[2];if(this.deferredRenderer||console.warn("Rive: this RiveFile was imported with `enableGPUCanvas: true`, so this instance renders deferred even though `enableGPUCanvas` is false on the instance. An immediate renderer would drop the file's deferred resources and draw nothing."),"function"==typeof(n=null==r?void 0:r.attachSession))return[3,2];return console.warn("Rive: this renderer cannot replay a deferred session (`useOffscreenRenderer` is not supported with deferred rendering). Re-importing the file in immediate mode for this instance."),[4,t.reimport(!1)];case 1:if(o=h.sent(),this.destroyed)return o.destroyIfUnused(),[2];return this.riveFile=o,this.ownsRiveFile=!0,i&&t.destroyIfUnused(),[2];case 2:if(!t.sessionClaimed&&n.call(r,a))return t.claimSession(),[2];return t.warnBoundElsewhereOnce(),[4,t.reimport(!0)];case 3:if(s=h.sent(),this.destroyed)return s.destroyIfUnused(),[2];if(this.riveFile=s,this.ownsRiveFile=!0,null!==(l=s.deferredSession)&&n.call(r,l))return s.claimSession(),[2];return console.warn("Rive: could not attach the re-imported file's deferred session to this canvas; falling back to immediate rendering for this instance."),null==(u=r.detachSession)||u.call(r),[4,t.reimport(!1)];case 4:if(c=h.sent(),s.destroyIfUnused(),this.destroyed)return c.destroyIfUnused(),[2];return this.riveFile=c,this.ownsRiveFile=!0,i&&t.destroyIfUnused(),[2]}})})},i.prototype.initArtboard=function(t,i,r,a,n){if(this.file){var s,l=t?this.file.artboardByName(t):this.file.defaultArtboard();if(!l)throw new x("Invalid artboard name or no default artboard");if(this.artboard=l,l.volume=this._volume*H.systemVolume,this.animator=new z(this.runtime,this.artboard,this.eventManager),i.length>0||r.length>0?(s=i.concat(r),this.animator.initLinearAnimations(i,a),this.animator.initStateMachines(r,a,this._semanticsActive)):s=[this.animator.atLeastOne(a,!1,this._semanticsActive)],this.taskQueue.add({event:{type:a?o.Play:o.Pause,data:s}}),n){var c=this.file.defaultArtboardViewModel(l);
2if(null!==c){var u=c.defaultInstance();if(null!==u){var h=new en(u,null);(0,p.createFinalization)(h,h.runtimeInstance),this.setViewModelInstance(h)}}for(var d=0,f=this.file.globalViewModelNames();d<f.length;d++){var m=f[d],g=this.file.viewModelByName(m);if(null!==g){var y=new ei(g).defaultInstance();null!==y&&this.setGlobalViewModelInstance(m,y)}}this.bind()}}},i.prototype.drawFrame=function(){var t,i;(null==(t=null==document?void 0:document.timeline)?void 0:t.currentTime)?this.loaded&&this.artboard&&!this.frameRequestId&&(this._boundDraw(document.timeline.currentTime),null==(i=this.runtime)||i.resolveAnimationFrame()):this.scheduleRendering()},i.prototype._canvasSizeChanged=function(){var t=!1;return this.canvas&&(this.canvas.width!==this._currentCanvasWidth&&(this._currentCanvasWidth=this.canvas.width,t=!0),this.canvas.height!==this._currentCanvasHeight&&(this._currentCanvasHeight=this.canvas.height,t=!0)),t},i.prototype._deferredWorkPending=function(){var t,i,r;return null!=(r=null==(i=null==(t=this.riveFile)?void 0:t.deferredSession)?void 0:i.recordedThisFrame())&&r},i.prototype.pollFocusState=function(){if(this.ensureKeyboardInteractions(),!this._keyboardInteractions){this._prevHasFocus=!1;return}var t,i,r=this.animator.stateMachines.find(function(t){return t.playing&&t.hasFocusNodes});if(!r){this._prevHasFocus=!1;return}if(this.canvas instanceof HTMLCanvasElement){if(r.focusState().hasFocus){if(this._keyboardInteractions.notifyRiveFocused(),!this._prevHasFocus){var a=null==(t=this._accessibilityOverlay)?void 0:t.getSemanticOverlayContainer();!(document.activeElement===this.canvas||null!=(i=null==a?void 0:a.contains(document.activeElement))&&i)&&this._focusOptions.allowFocusInterrupt&&this.canvas.focus(),this._prevHasFocus=!0}return}this._prevHasFocus=!1,this._keyboardInteractions.focusSessionState===p.FocusSessionState.RiveFocused&&this._keyboardInteractions.setFocusSessionState(p.FocusSessionState.NotFocused)}},i.prototype.advanceAndReportChanges=function(t){for(var i,r,a=this.animator.animations.filter(function(t){return t.playing||t.needsScrub}).sort(function(t){return t.needsScrub?-1:1}),s=0;s<a.length;s++){var l=a[s];l.advance(t),l.instance.didLoop&&(l.loopCount+=1),l.apply(1)}for(var c=this.animator.stateMachines.filter(function(t){return t.playing}),u=this.enablePerfMarks&&this.frameCount<3?this.frameCount:-1,h=0;h<c.length;h++){var d=c[h],m=d.reportedEventCount();if(m)for(var g=0;g<m;g++){var y=d.reportedEventAt(g);if(y)if(y.type===n.OpenUrl){if(this.eventManager.fire({type:o.RiveEvent,data:y}),this.automaticallyHandleEvents){var _=document.createElement("a"),v=y.url,b=y.target,x=(0,p.sanitizeUrl)(v);v&&_.setAttribute("href",x),b&&_.setAttribute("target",b),x&&x!==p.BLANK_URL&&_.click()}}else this.eventManager.fire({type:o.RiveEvent,data:y})}if(u>=0&&performance.mark("rive:sm-advance:start:f".concat(u)),d.advanceAndApply(t),u>=0&&(performance.mark("rive:sm-advance:end:f".concat(u)),performance.measure("rive:sm-advance:f".concat(u),"rive:sm-advance:start:f".concat(u),"rive:sm-advance:end:f".concat(u))),this._semanticsActive){var w=d.drainSemanticsDiff();w&&(this._semanticTree||(this._semanticTree=new f.SemanticTreeModel),this._semanticTree.applyDiff(w))}}if(this._semanticsActive&&this._semanticTree&&c.length>0&&this.canvas instanceof HTMLCanvasElement){if(!this._accessibilityOverlay){var k=c[0];this._accessibilityOverlay=new f.AccessibilityOverlay({canvas:this.canvas,instanceId:this._instanceId,semanticsOptions:this.semanticsOptions,allowFocusInterrupt:this._focusOptions.allowFocusInterrupt,fireAction:function(t,i){k.fireSemanticAction(t,i)},requestFocus:function(t){return k.focusSemanticNode(t)},clearFocus:function(){return k.instance.clearFocus()}})}var T=null==(i=this._accessibilityOverlay)?void 0:i.needsUpdate(this._semanticTree);if(T||this._overlayTransformDirty){var S=null;if((null==T?void 0:T.layoutChanged)||this._overlayTransformDirty){var A=this._layout.runtimeFit(this.runtime),C=this._layout.runtimeAlignment(this.runtime);S=this.runtime.computeAlignment(A,C,{minX:this._layout.minX,minY:this._layout.minY,maxX:this._layout.maxX,maxY:this._layout.maxY},this.artboard.bounds,this._devicePixelRatioUsed*this._layout.layoutScaleFactor),this._overlayTransformDirty=!1}this._accessibilityOverlay.update(this._semanticTree,S,this._devicePixelRatioUsed,this.artboard.bounds,T),null==S||S.delete()}}0==this.animator.stateMachines.length&&this.artboard.advance(t),this.animator.handleLooping(),this.animator.handleStateChanges(),this.animator.handleAdvancing(t),this.pollFocusState(),null==(r=this._viewModelInstance)||r.handleCallbacks(),this._globalViewModelInstances.forEac
2h(function(t){t&&t.handleCallbacks()})},i.prototype.draw=function(t,i){if(this.frameRequestId=null,this.artboard){var a=performance.now(),n=this.enablePerfMarks&&this.frameCount<3?this.frameCount:-1;this.lastRenderTime||(this.lastRenderTime=t),this.renderSecondTimer+=t-this.lastRenderTime,this.renderSecondTimer>5e3&&(this.renderSecondTimer=0,null==i||i());var o=(t-this.lastRenderTime)/1e3;this.lastRenderTime=t,this.advanceAndReportChanges(o);var s=this.renderer;!this._hasZeroSize&&(this.drawOptimization==r.AlwaysDraw||this.artboard.didChange()||this._deferredWorkPending()||this._needsRedraw||this._canvasSizeChanged())&&(s.clear(),s.save(),n>=0&&performance.mark("rive:align-renderer:start:f".concat(n)),this.alignRenderer(),n>=0&&(performance.mark("rive:align-renderer:end:f".concat(n)),performance.measure("rive:align-renderer:f".concat(n),"rive:align-renderer:start:f".concat(n),"rive:align-renderer:end:f".concat(n))),n>=0&&performance.mark("rive:artboard-draw:start:f".concat(n)),this.artboard.draw(s),n>=0&&(performance.mark("rive:artboard-draw:end:f".concat(n)),performance.measure("rive:artboard-draw:f".concat(n),"rive:artboard-draw:start:f".concat(n),"rive:artboard-draw:end:f".concat(n))),s.restore(),n>=0&&performance.mark("rive:renderer-flush:start:f".concat(n)),s.flush(),n>=0&&(performance.mark("rive:renderer-flush:end:f".concat(n)),performance.measure("rive:renderer-flush:f".concat(n),"rive:renderer-flush:start:f".concat(n),"rive:renderer-flush:end:f".concat(n))),this._needsRedraw=!1),this.frameCount++;var l=performance.now();for(this.frameTimes.push(l),this.durations.push(l-a);this.frameTimes[0]<=l-1e3;)this.frameTimes.shift(),this.durations.shift();this.animator.isPlaying?this.scheduleRendering():this.animator.isPaused?this.lastRenderTime=0:this.animator.isStopped&&(this.lastRenderTime=0)}},i.prototype.alignRenderer=function(){var t=this.renderer,i=this.runtime,r=this._layout,a=this.artboard;t.align(r.runtimeFit(i),r.runtimeAlignment(i),{minX:r.minX,minY:r.minY,maxX:r.maxX,maxY:r.maxY},a.bounds,this._devicePixelRatioUsed*r.layoutScaleFactor)},Object.defineProperty(i.prototype,"fps",{get:function(){return this.durations.length},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"frameTime",{get:function(){return 0===this.durations.length?0:(this.durations.reduce(function(t,i){return t+i},0)/this.durations.length).toFixed(4)},enumerable:!1,configurable:!0}),i.prototype.cleanup=function(){var t,i,r,a,n;this.destroyed=!0,this.stopRendering(),null==(i=null==(t=this.renderer)?void 0:t.bindContext)||i.call(t),this.cleanupInstances(),null!==this._observed&&Y.remove(this._observed),this.removeRiveListeners(),this.renderer&&(null==(a=(r=this.renderer).detachSession)||a.call(r)),this.releaseCurrentRiveFile(!0),this.riveFile=null,this.deleteRiveRenderer(),null!==this._audioEventListener&&(H.remove(this._audioEventListener),this._audioEventListener=null),this._pageVisibilityHandler&&(document.removeEventListener("visibilitychange",this._pageVisibilityHandler),this._pageVisibilityHandler=null),null==(n=this._viewModelInstance)||n.cleanup(),this._viewModelInstance=null,this._globalViewModelInstances.forEach(function(t){return t.cleanup()}),this._globalViewModelInstances.clear(),this._dataEnums=null},i.prototype.releaseCurrentRiveFile=function(t){var i,r;this.file?((t||this.ownsRiveFile)&&(null==(i=this.riveFile)||i.cleanup()),this.file=null):this.ownsRiveFile&&(null==(r=this.riveFile)||r.destroyIfUnused())},i.prototype.deleteRiveRenderer=function(){var t,i;this.renderer&&(null==(i=(t=this.renderer).detachSession)||i.call(t),this.renderer.delete()),this.renderer=null},Object.defineProperty(i.prototype,"deferredRendererActive",{get:function(){var t,i,r;return null!=(r=null==(i=null==(t=this.renderer)?void 0:t.deferredActive)?void 0:i.call(t))&&r},enumerable:!1,configurable:!0}),i.prototype.cleanupInstances=function(){var t;null!==this.eventCleanup&&this.eventCleanup(),this.cleanupKeyboardInteractions(),this.cleanupSemantics(),null==(t=this.animator)||t.stop(),this.artboard&&(this.artboard.delete(),this.artboard=null)},i.prototype.retrieveTextRun=function(t){if(!t)return void console.warn("No text run name provided");
2if(!this.artboard)return void console.warn("Tried to access text run, but the Artboard is null");var i,r=this.artboard.textRun(t);return r||void console.warn("Could not access a text run with name '".concat(t,"' in the '").concat(null==(i=this.artboard)?void 0:i.name,"' Artboard. Note that you must rename a text run node in the Rive editor to make it queryable at runtime."))},i.prototype.getTextRunValue=function(t){N(B);var i=this.retrieveTextRun(t);return i?i.text:void 0},i.prototype.setTextRunValue=function(t,i){N(B);var r=this.retrieveTextRun(t);r&&(r.text=i)},i.prototype.warnIfLinearAnimationNames=function(t,i){this.animator&&this.animator.animations.some(function(i){return t.includes(i.name)})&&V(i)},i.prototype.play=function(t,i){var r=this;$(t,"play");var a=e_(t);this.readyForPlaying?(this.animator.play(a),this.warnIfLinearAnimationNames(a,"play"),this.syncSemanticsOnStateMachines(),this.eventCleanup&&this.eventCleanup(),this.cleanupKeyboardInteractions(),this.setupRiveListeners(),this.startRendering()):this.taskQueue.add({action:function(){return r.play(t,i)}})},i.prototype.pause=function(t){var i=this;$(t,"pause");var r=e_(t);this.readyForPlaying?(this.eventCleanup&&this.eventCleanup(),this.cleanupKeyboardInteractions(),this.animator.pause(r),this.warnIfLinearAnimationNames(r,"pause")):this.taskQueue.add({action:function(){return i.pause(t)}})},i.prototype.scrub=function(t,i){var r=this;N("`scrub()` is deprecated and will be removed in a future major version: use a state machine to control playback instead.");var a=e_(t);this.readyForPlaying?(this.animator.scrub(a,i||0),this.drawFrame()):this.taskQueue.add({action:function(){return r.scrub(t,i)}})},i.prototype.stop=function(t){var i=this;$(t,"stop");var r=e_(t);this.readyForPlaying?(this.warnIfLinearAnimationNames(r,"stop"),this.animator&&this.animator.stop(r),this.eventCleanup&&this.eventCleanup(),this.cleanupKeyboardInteractions(),this.cleanupSemantics()):this.taskQueue.add({action:function(){return i.stop(t)}})},i.prototype.reset=function(t){var i,r,a=null==t?void 0:t.artboard,n=J({stateMachine:null==t?void 0:t.stateMachine,animations:null==t?void 0:t.animations,stateMachines:null==t?void 0:t.stateMachines}),o=n.startingAnimationNames,s=n.startingStateMachineNames,l=null!=(i=null==t?void 0:t.autoplay)&&i,c=null!=(r=null==t?void 0:t.autoBind)&&r;this.cleanupInstances(),this.initArtboard(a,o,s,l,c),this.readyForPlaying&&this.taskQueue.process()},i.prototype.load=function(t){if(!t.src&&!t.buffer&&!t.riveFile)throw new x(i.missingErrorMessage);this.stop(),this.init(t)},Object.defineProperty(i.prototype,"layout",{get:function(){return this._layout},set:function(t){this._layout=t,this._overlayTransformDirty=!0,t.maxX&&t.maxY||this.resizeToCanvas(),this.loaded&&!this.animator.isPlaying&&this.drawFrame()},enumerable:!1,configurable:!0}),i.prototype.resizeToCanvas=function(){this._layout=this.layout.copyWith({minX:0,minY:0,maxX:this.canvas.width,maxY:this.canvas.height}),this._overlayTransformDirty=!0},i.prototype.resizeDrawingSurfaceToCanvas=function(i){if(this.canvas instanceof HTMLCanvasElement&&window){var r=this.canvas.getBoundingClientRect(),a=r.width,n=r.height,o=i||window.devicePixelRatio||1;if(this.devicePixelRatioUsed=o,this.canvas.width=o*a,this.canvas.height=o*n,this._needsRedraw=!0,this.resizeToCanvas(),this.layout.fit===t.Layout){var s=this._layout.layoutScaleFactor;this.artboard.width=a/s,this.artboard.height=n/s}this.drawFrame()}},Object.defineProperty(i.prototype,"source",{get:function(){return this.src},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"activeArtboard",{get:function(){return this.artboard?this.artboard.name:""},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"semanticTree",{get:function(){return this._semanticTree},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"accessibilityOverlay",{get:function(){return this._accessibilityOverlay},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"animationNames",{get:function(){if(!this.loaded||!this.artboard)return[];for(var t=[],i=0;i<this.artboard.animationCount();i++)t.push(this.artboard.animationByIndex(i).name);return t}
2,enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"stateMachineNames",{get:function(){if(!this.loaded||!this.artboard)return[];for(var t=[],i=0;i<this.artboard.stateMachineCount();i++)t.push(this.artboard.stateMachineByIndex(i).name);return t},enumerable:!1,configurable:!0}),i.prototype.stateMachineInputs=function(t){if(N(O),this.loaded){var i=this.animator.stateMachines.find(function(i){return i.name===t});return null==i?void 0:i.inputs}},i.prototype.retrieveInputAtPath=function(t,i){if(!t)return void console.warn("No input name provided for path '".concat(i,"'"));if(!this.artboard)return void console.warn("Tried to access input: '".concat(t,"', at path: '").concat(i,"', but the Artboard is null"));var r=this.artboard.inputByPath(t,i);return r||void console.warn("Could not access an input with name: '".concat(t,"', at path:'").concat(i,"'"))},i.prototype.setBooleanStateAtPath=function(t,i,r){N(O);var n=this.retrieveInputAtPath(t,r);n&&(n.type===a.Boolean?n.asBool().value=i:console.warn("Input with name: '".concat(t,"', at path:'").concat(r,"' is not a boolean")))},i.prototype.setNumberStateAtPath=function(t,i,r){N(O);var n=this.retrieveInputAtPath(t,r);n&&(n.type===a.Number?n.asNumber().value=i:console.warn("Input with name: '".concat(t,"', at path:'").concat(r,"' is not a number")))},i.prototype.fireStateAtPath=function(t,i){N(O);var r=this.retrieveInputAtPath(t,i);r&&(r.type===a.Trigger?r.asTrigger().fire():console.warn("Input with name: '".concat(t,"', at path:'").concat(i,"' is not a trigger")))},i.prototype.retrieveTextAtPath=function(t,i){if(!t)return void console.warn("No text name provided for path '".concat(i,"'"));if(!i)return void console.warn("No path provided for text '".concat(t,"'"));if(!this.artboard)return void console.warn("Tried to access text: '".concat(t,"', at path: '").concat(i,"', but the Artboard is null"));var r=this.artboard.textByPath(t,i);return r||void console.warn("Could not access text with name: '".concat(t,"', at path:'").concat(i,"'"))},i.prototype.getTextRunValueAtPath=function(t,i){N(B);var r=this.retrieveTextAtPath(t,i);return r?r.text:void console.warn("Could not get text with name: '".concat(t,"', at path:'").concat(i,"'"))},i.prototype.setTextRunValueAtPath=function(t,i,r){N(B);var a=this.retrieveTextAtPath(t,r);a?a.text=i:console.warn("Could not set text with name: '".concat(t,"', at path:'").concat(r,"'"))},Object.defineProperty(i.prototype,"playingStateMachineNames",{get:function(){return this.loaded?this.animator.stateMachines.filter(function(t){return t.playing}).map(function(t){return t.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"playingAnimationNames",{get:function(){return this.loaded?this.animator.animations.filter(function(t){return t.playing}).map(function(t){return t.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"pausedAnimationNames",{get:function(){return this.loaded?this.animator.animations.filter(function(t){return!t.playing}).map(function(t){return t.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"pausedStateMachineNames",{get:function(){return this.loaded?this.animator.stateMachines.filter(function(t){return!t.playing}).map(function(t){return t.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isPlaying",{get:function(){return this.animator.isPlaying},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isPaused",{get:function(){return this.animator.isPaused},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isStopped",{get:function(){var t,i;return null==(i=null==(t=this.animator)?void 0:t.isStopped)||i},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"bounds",{get:function(){return this.artboard?this.artboard.bounds:void 0},enumerable:!1,configurable:!0}),i.prototype.on=function(t,i){t===o.RiveEvent?N(R):t===o.StateChange?N("State change events are deprecated and will be removed in a future major version: use data binding (view model property observers) or state machine actions to react to changes from your graphic instead. See https://rive.app/docs/editor/state-machine/states#actions for how to migrate."):t===o.Loop&&N("Loop events are deprecated and will be removed in a future major version: they are only reported for linear animation playback, which is deprecated. Use a state machine to control playback and data binding to react to changes instead. See https://rive.app/docs/editor/data-binding/migration-guide for how to migrate."),this.eventManager.add({type:t,callback:i})},i.prototype.off=function(t,i){this.eventManager.remove({type:t,callback:i})},i.prototype.unsubscribe=function(t,i){console.warn("This function is deprecated: please use `off()` instead."),this.off(t,i)},i.prototype.removeAllRiveEventListeners=function(t){this.eventManager.removeAll(t)},i.prototype.unsubscribeAll=function(t){console.warn("This function is deprecated: please use `removeAllRiveEventListeners()` instead."),this.removeAllRiveEventListeners(t)},i.prototype.stopRendering=function(){this._explicitlyStoppedRendering=!0,this.loaded&&this.frameRequestId&&(this.runtime.cancelAnimationFrame?this.runtime.cancelAnimationFrame(this.frameRequestId):cancelAnimationFrame(this.frameRequestId),this.frameRequestId=null)},i.prototype.startRendering=function(){this._explicitlyStoppedRendering=!1,this.drawFrame()},i.prototype.scheduleRendering=function(){this.loaded&&this.artboard&&!this.frameRequestId&&(this.runtime.requestAnimationFrame?this.frameRequestId=this.runtime.requestAnimationFrame(this._boundDraw):this.frameRequestId=requestAnimationFrame(this._boundDraw))},i.prototype._onPageVisibilityChange=function(){var t,i;document.hidden?(null!==this.frameRequestId&&((null==(t=this.runtime)?void 0:t.cancelAnimationFrame)?this.runtime.cancelAnimationFrame(this.frameRequestId):cancelAnimationFrame(this.frameRequestId),this.frameRequestId=null),this.lastRenderTime=0):(null==(i=this.animator)?void 0:i.isPlaying)&&!this._explicitlyStoppedRendering&&this.scheduleRendering()},i.prototype.enableFPSCounter=function(t){this.runtime.enableFPSCounter(t)},i.prototype.disableFPSCounter=function(){this.runtime.disableFPSCounter()},Object.defineProperty(i.prototype,"contents",{get:function(){if(this.loaded){for(var t={artboards:[]},i=0;i<this.file.artboardCount();i++){for(var r=this.file.artboardByIndex(i),a={name:r.name,animations:[],stateMachines:[]},n=0;n<r.animationCount();n++){var o=r.animationByIndex(n);a.animations.push(o.name)}for(var s=0;s<r.stateMachineCount();s++){for(var l=r.stateMachineByIndex(s),c=l.name,u=new this.runtime.StateMachineInstance(l,r),h=[],d=0;d<u.inputCount();d++){var f=u.input(d);h.push({name:f.name,type:f.type})}a.stateMachines.push({name:c,inputs:h})}t.artboards.push(a)}return t}}
2,enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"volume",{get:function(){return this.artboard&&this.artboard.volume!==this._volume&&(this._volume=this.artboard.volume),this._volume},set:function(t){this._volume=t,this.artboard&&(this.artboard.volume=t*H.systemVolume)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"artboardWidth",{get:function(){var t;return this.artboard?this.artboard.width:null!=(t=this._artboardWidth)?t:0},set:function(t){this._artboardWidth=t,this.artboard&&(this.artboard.width=t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"artboardHeight",{get:function(){var t;return this.artboard?this.artboard.height:null!=(t=this._artboardHeight)?t:0},set:function(t){this._artboardHeight=t,this.artboard&&(this.artboard.height=t)},enumerable:!1,configurable:!0}),i.prototype.resetArtboardSize=function(){this.artboard?(this.artboard.resetArtboardSize(),this._artboardWidth=this.artboard.width,this._artboardHeight=this.artboard.height):(this._artboardWidth=void 0,this._artboardHeight=void 0)},Object.defineProperty(i.prototype,"devicePixelRatioUsed",{get:function(){return this._devicePixelRatioUsed},set:function(t){t!==this._devicePixelRatioUsed&&(this._overlayTransformDirty=!0),this._devicePixelRatioUsed=t},enumerable:!1,configurable:!0}),i.prototype.bindViewModelInstance=function(t){t&&(this.setViewModelInstance(t),this.bind())},i.prototype.setViewModelInstance=function(t){var i,r=null==t?void 0:t.runtimeInstance;this.artboard&&!this.destroyed&&t&&r&&(t.internalIncrementReferenceCount(),null==(i=this._viewModelInstance)||i.cleanup(),this._viewModelInstance=t,this.animator.stateMachines.length>0?this.animator.stateMachines.forEach(function(t){return t.instance.setViewModelInstance(r)}):this.artboard.setViewModelInstance(r))},i.prototype.bind=function(){this.artboard&&!this.destroyed&&(this.animator.stateMachines.length>0?this.animator.stateMachines.forEach(function(t){return t.instance.bind()}):this.artboard.bind())},Object.defineProperty(i.prototype,"viewModelInstance",{get:function(){return this._viewModelInstance},enumerable:!1,configurable:!0}),i.prototype.setGlobalViewModelInstance=function(t,i){var r,a=null==i?void 0:i.runtimeInstance;if(!this.artboard||this.destroyed||!a)return!1;var n=!1;return this.animator.stateMachines.length>0?this.animator.stateMachines.forEach(function(i){i.instance.setGlobalViewModelInstance(t,a)&&(n=!0)}):n=this.artboard.setGlobalViewModelInstance(t,a),n&&(i.internalIncrementReferenceCount(),null==(r=this._globalViewModelInstances.get(t))||r.cleanup(),this._globalViewModelInstances.set(t,i)),n},i.prototype.globalViewModelInstance=function(t){var i=this._globalViewModelInstances.get(t);if(i)return i;if(!this.artboard||this.destroyed)return null;var r=this.animator.stateMachines.length>0?this.animator.stateMachines[0].instance.globalViewModelInstance(t):this.artboard.globalViewModelInstance(t);if(null===r)return null;var a=new en(r,null);return(0,p.createFinalization)(a,r),a.internalIncrementReferenceCount(),this._globalViewModelInstances.set(t,a),a},i.prototype.globalViewModelNames=function(){var t,i;return null!=(i=null==(t=this.file)?void 0:t.globalViewModelNames())?i:[]},i.prototype.viewModelByIndex=function(t){var i=this.file.viewModelByIndex(t);return null!==i?new ei(i):null},i.prototype.viewModelByName=function(t){var i;return null==(i=this.riveFile)?void 0:i.viewModelByName(t)},i.prototype.enums=function(){if(null===this._dataEnums){var t=this.file.enums();this._dataEnums=t.map(function(t){return new er(t)})}return this._dataEnums},i.prototype.defaultViewModel=function(){if(this.artboard){var t=this.file.defaultArtboardViewModel(this.artboard);if(t)return new ei(t)}return null},i.prototype.getArtboard=function(t){var i,r;return null!=(r=null==(i=this.riveFile)?void 0:i.getArtboard(t))?r:null},i.prototype.getBindableArtboard=function(t){var i,r;return null!=(r=null==(i=this.riveFile)?void 0:i.getBindableArtboard(t))?r:null},i.prototype.getDefaultBindableArtboard=function(){var t,i;return null!=(i=null==(t=this.riveFile)?void 0:t.getDefaultBindableArtboard())?i:null},i.prototype.clearFocus=function(){this.animator.stateMachines.filter(function(t){return t.playing&&t.hasFocusNodes}
2).forEach(function(t){return t.clearFocus()})},i.missingErrorMessage="Rive source file or data buffer required",i.cleanupErrorMessage="Attempt to use file after calling cleanup.",i}(),(et=c||(c={})).none="none",et.string="string",et.number="number",et.boolean="boolean",et.color="color",et.list="list",et.enumType="enumType",et.trigger="trigger",et.viewModel="viewModel",et.integer="integer",et.listIndex="listIndex",et.image="image",et.artboard="artboard",ei=function(){function t(t){this._viewModel=t}return Object.defineProperty(t.prototype,"instanceCount",{get:function(){return this._viewModel.instanceCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._viewModel.name},enumerable:!1,configurable:!0}),t.prototype.instanceByIndex=function(t){var i=this._viewModel.instanceByIndex(t);if(null!==i){var r=new en(i,null);return(0,p.createFinalization)(r,i),r}return null},t.prototype.instanceByName=function(t){var i=this._viewModel.instanceByName(t);if(null!==i){var r=new en(i,null);return(0,p.createFinalization)(r,i),r}return null},t.prototype.defaultInstance=function(){var t=this._viewModel.defaultInstance();if(null!==t){var i=new en(t,null);return(0,p.createFinalization)(i,t),i}return null},t.prototype.instance=function(){var t=this._viewModel.instance();if(null!==t){var i=new en(t,null);return(0,p.createFinalization)(i,t),i}return null},Object.defineProperty(t.prototype,"properties",{get:function(){return this._viewModel.getProperties()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"instanceNames",{get:function(){return this._viewModel.getInstanceNames()},enumerable:!1,configurable:!0}),t}(),er=function(){function t(t){this._dataEnum=t}return Object.defineProperty(t.prototype,"name",{get:function(){return this._dataEnum.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"values",{get:function(){return this._dataEnum.values},enumerable:!1,configurable:!0}),t}(),(ea=u||(u={})).Number="number",ea.String="string",ea.Boolean="boolean",ea.Color="color",ea.Trigger="trigger",ea.Enum="enum",ea.List="list",ea.Image="image",ea.Font="font",ea.Artboard="artboard",en=function(){function t(t,i){this._parents=[],this._children=[],this._viewModelInstances=new Map,this._propertiesWithCallbacks=[],this._referenceCount=0,this.selfUnref=!1,this._runtimeInstance=t,null!==i&&this._parents.push(i)}return Object.defineProperty(t.prototype,"runtimeInstance",{get:function(){return this._runtimeInstance},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nativeInstance",{get:function(){return this._runtimeInstance},enumerable:!1,configurable:!0}),t.prototype.handleCallbacks=function(){0!==this._propertiesWithCallbacks.length&&(this._propertiesWithCallbacks.forEach(function(t){t.handleCallbacks()}),this._propertiesWithCallbacks.forEach(function(t){t.clearChanges()})),this._children.forEach(function(t){return t.handleCallbacks()})},t.prototype.addParent=function(t){!this._parents.includes(t)&&(this._parents.push(t),(this._propertiesWithCallbacks.length>0||this._children.length>0)&&t.addToViewModelCallbacks(this))},t.prototype.removeParent=function(t){var i=this._parents.indexOf(t);-1!==i&&(this._parents[i].removeFromViewModelCallbacks(this),this._parents.splice(i,1))},t.prototype.addToPropertyCallbacks=function(t){var i=this;!this._propertiesWithCallbacks.includes(t)&&(this._propertiesWithCallbacks.push(t),this._propertiesWithCallbacks.length>0&&this._parents.forEach(function(t){t.addToViewModelCallbacks(i)}))},t.prototype.removeFromPropertyCallbacks=function(t){var i=this;this._propertiesWithCallbacks.includes(t)&&(this._propertiesWithCallbacks=this._propertiesWithCallbacks.filter(function(i){return i!==t}),0===this._children.length&&0===this._propertiesWithCallbacks.length&&this._parents.forEach(function(t){t.removeFromViewModelCallbacks(i)}))},t.prototype.addToViewModelCallbacks=function(t){var i=this;this._children.includes(t)||(this._children.push(t),this._parents.forEach(function(t){t.addToViewModelCallbacks(i)}))}
2,t.prototype.removeFromViewModelCallbacks=function(t){var i=this;this._children.includes(t)&&(this._children=this._children.filter(function(i){return i!==t}),0===this._children.length&&0===this._propertiesWithCallbacks.length&&this._parents.forEach(function(t){t.removeFromViewModelCallbacks(i)}))},t.prototype.clearCallbacks=function(){this._propertiesWithCallbacks.forEach(function(t){t.clearCallbacks()})},t.prototype.propertyFromPath=function(t,i){var r=t.split("/");return this.propertyFromPathSegments(r,0,i)},t.prototype.viewModelFromPathSegments=function(t,i){var r=this.internalViewModelInstance(t[i]);if(null!==r)if(i==t.length-1)return r;else return r.viewModelFromPathSegments(t,i++);return null},t.prototype.propertyFromPathSegments=function(t,i,r){if(i<t.length-1){var a,n,o,s,l,c,h,d,f,p,m,g,y,_,v,b,x,w,k,T,S=this.internalViewModelInstance(t[i]);return null!==S?S.propertyFromPathSegments(t,i+1,r):null}var A=null;switch(r){case u.Number:if(null!==(A=null!=(n=null==(a=this._runtimeInstance)?void 0:a.number(t[i]))?n:null))return new el(A,this);break;case u.String:if(null!==(A=null!=(s=null==(o=this._runtimeInstance)?void 0:o.string(t[i]))?s:null))return new es(A,this);break;case u.Boolean:if(null!==(A=null!=(c=null==(l=this._runtimeInstance)?void 0:l.boolean(t[i]))?c:null))return new ec(A,this);break;case u.Color:if(null!==(A=null!=(d=null==(h=this._runtimeInstance)?void 0:h.color(t[i]))?d:null))return new ef(A,this);break;case u.Trigger:if(null!==(A=null!=(p=null==(f=this._runtimeInstance)?void 0:f.trigger(t[i]))?p:null))return new eu(A,this);break;case u.Enum:if(null!==(A=null!=(g=null==(m=this._runtimeInstance)?void 0:m.enum(t[i]))?g:null))return new eh(A,this);break;case u.List:if(null!==(A=null!=(_=null==(y=this._runtimeInstance)?void 0:y.list(t[i]))?_:null))return new ed(A,this);break;case u.Image:if(null!==(A=null!=(b=null==(v=this._runtimeInstance)?void 0:v.image(t[i]))?b:null))return new ep(A,this);break;case u.Font:if(null!==(A=null!=(w=null==(x=this._runtimeInstance)?void 0:x.font(t[i]))?w:null))return new em(A,this);break;case u.Artboard:if(null!==(A=null!=(T=null==(k=this._runtimeInstance)?void 0:k.artboard(t[i]))?T:null))return new eg(A,this)}return null},t.prototype.internalViewModelInstance=function(i){if(this._viewModelInstances.has(i))return this._viewModelInstances.get(i);var r,a=null==(r=this._runtimeInstance)?void 0:r.viewModel(i);if(null!==a){var n=new t(a,this);return(0,p.createFinalization)(n,a),n.internalIncrementReferenceCount(),this._viewModelInstances.set(i,n),n}return null},t.prototype.number=function(t){return this.propertyFromPath(t,u.Number)},t.prototype.string=function(t){return this.propertyFromPath(t,u.String)},t.prototype.boolean=function(t){return this.propertyFromPath(t,u.Boolean)},t.prototype.color=function(t){return this.propertyFromPath(t,u.Color)},t.prototype.trigger=function(t){return this.propertyFromPath(t,u.Trigger)},t.prototype.enum=function(t){return this.propertyFromPath(t,u.Enum)},t.prototype.list=function(t){return this.propertyFromPath(t,u.List)},t.prototype.image=function(t){return this.propertyFromPath(t,u.Image)},t.prototype.font=function(t){return this.propertyFromPath(t,u.Font)},t.prototype.artboard=function(t){return this.propertyFromPath(t,u.Artboard)},t.prototype.viewModel=function(t){var i=t.split("/"),r=i.length>1?this.viewModelFromPathSegments(i.slice(0,i.length-1),0):this;return null!=r?r.internalViewModelInstance(i[i.length-1]):null},t.prototype.internalReplaceViewModel=function(t,i){var r;if(null!==i.runtimeInstance){var a=(null==(r=this._runtimeInstance)?void 0:r.replaceViewModel(t,i.runtimeInstance))||!1;if(a){i.internalIncrementReferenceCount();var n=this.internalViewModelInstance(t);null!==n&&(n.removeParent(this),this._children.includes(n)&&(this._children=this._children.filter(function(t){return t!==n})),n.cleanup()),this._viewModelInstances.set(t,i),i.addParent(this)}return a}return!1},t.prototype.replaceViewModel=function(t,i){var r,a=t.split("/"),n=a.length>1?this.viewModelFromPathSegments(a.slice(0,a.length-1),0):this;return null!=(r=null==n?void 0:n.internalReplaceViewModel(a[a.length-1],i))&&r},t.prototype.incrementReferenceCount=function(){var t;this._referenceCount++,null==(t=this._runtimeInstance)||t.incrementReferenceCount()},t.prototype.decrementReferenceCount=function(){var t;this._referenceCount--,null==(t=this._runtimeInstance)||t.decrementReferenceCount()},Object.defineProperty(t.prototype,"properties",{get:function(){var t;return(null==(t=this._runtimeInstance)?void 0:t.getProperties().map(function(t){return y({},t)}))||[]}
2,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewModelName",{get:function(){var t,i;return null!=(i=null==(t=this._runtimeInstance)?void 0:t.getViewModelName())?i:""},enumerable:!1,configurable:!0}),t.prototype.internalIncrementReferenceCount=function(){this._referenceCount++},t.prototype.cleanup=function(){var t,i=this;if(this._referenceCount--,this._referenceCount<=0){this.selfUnref&&(null==(t=this._runtimeInstance)||t.unref()),this._runtimeInstance=null,this.clearCallbacks(),this._propertiesWithCallbacks=[],this._viewModelInstances.forEach(function(t){t.cleanup()}),this._viewModelInstances.clear();var r=b([],this._children,!0);this._children.length=0;var a=b([],this._parents,!0);this._parents.length=0,r.forEach(function(t){t.removeParent(i)}),a.forEach(function(t){t.removeFromViewModelCallbacks(i)})}},t}(),es=function(t){function i(i,r){return t.call(this,i,r)||this}return g(i,t),Object.defineProperty(i.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(t){this._viewModelInstanceValue.value=t},enumerable:!1,configurable:!0}),i.prototype.internalHandleCallback=function(t){t(this.value)},i}(eo=function(){function t(t,i){this.callbacks=[],this._viewModelInstanceValue=t,this._parentViewModel=i}return t.prototype.on=function(t){0===this.callbacks.length&&this._viewModelInstanceValue.clearChanges(),this.callbacks.includes(t)||(this.callbacks.push(t),this._parentViewModel.addToPropertyCallbacks(this))},t.prototype.off=function(t){t?this.callbacks=this.callbacks.filter(function(i){return i!==t}):this.callbacks.length=0,0===this.callbacks.length&&this._parentViewModel.removeFromPropertyCallbacks(this)},t.prototype.internalHandleCallback=function(t){},t.prototype.handleCallbacks=function(){var t=this;this._viewModelInstanceValue.hasChanged&&this.callbacks.forEach(function(i){t.internalHandleCallback(i)})},t.prototype.clearChanges=function(){this._viewModelInstanceValue.clearChanges()},t.prototype.clearCallbacks=function(){this.callbacks.length=0},Object.defineProperty(t.prototype,"name",{get:function(){return this._viewModelInstanceValue.name},enumerable:!1,configurable:!0}),t}()),el=function(t){function i(i,r){return t.call(this,i,r)||this}return g(i,t),Object.defineProperty(i.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(t){this._viewModelInstanceValue.value=t},enumerable:!1,configurable:!0}),i.prototype.internalHandleCallback=function(t){t(this.value)},i}(eo),ec=function(t){function i(i,r){return t.call(this,i,r)||this}return g(i,t),Object.defineProperty(i.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(t){this._viewModelInstanceValue.value=t},enumerable:!1,configurable:!0}),i.prototype.internalHandleCallback=function(t){t(this.value)},i}(eo),eu=function(t){function i(i,r){return t.call(this,i,r)||this}return g(i,t),i.prototype.trigger=function(){return this._viewModelInstanceValue.trigger()},i.prototype.internalHandleCallback=function(t){t()},i}(eo),eh=function(t){function i(i,r){return t.call(this,i,r)||this}return g(i,t),Object.defineProperty(i.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(t){this._viewModelInstanceValue.value=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"valueIndex",{get:function(){return this._viewModelInstanceValue.valueIndex},set:function(t){this._viewModelInstanceValue.valueIndex=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"values",{get:function(){return this._viewModelInstanceValue.values},enumerable:!1,configurable:!0}),i.prototype.internalHandleCallback=function(t){t(this.value)},i}(eo),ed=function(t){function i(i,r){return t.call(this,i,r)||this}return g(i,t),Object.defineProperty(i.prototype,"length",{get:function(){return this._viewModelInstanceValue.size},enumerable:!1,configurable:!0}),i.prototype.addInstance=function(t){null!=t.runtimeInstance&&(this._viewModelInstanceValue.addInstance(t.runtimeInstance),t.addParent(this._parentViewModel))},i.prototype.addInstanceAt=function(t,i){return!!(null!=t.runtimeInstance&&this._viewModelInstanceValue.addInstanceAt(t.runtimeInstance,i))&&(t.addParent(this._parentViewModel),!0)},i.prototype.removeInstance=function(t){null!=t.runtimeInstance&&(this._viewModelInstanceValue.removeInstance(t.runtimeInstance),t.removeParent(this._parentViewModel))},i.prototype.removeInstanceAt=function(t){this._viewModelInstanceValue.removeInstanceAt(t)},i.prototype.instanceAt=function(t){var i=this._viewModelInstanceValue.instanceAt(t);if(null!=i){var r=new en(i,this._parentViewModel);return(0,p.createFinalization)(r,i),r}return null},i.prototype.swap=function(t,i){this._viewModelInstanceValue.swap(t,i)},i.prototype.internalHandleCallback=function(t){t()},i}(eo),ef=function(t){function i(i,r){return t.call(this,i,r)||this}return g(i,t),Object.defineProperty(i.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(t){this._viewModelInstanceValue.value=t}
2,enumerable:!1,configurable:!0}),i.prototype.rgb=function(t,i,r){this._viewModelInstanceValue.rgb(t,i,r)},i.prototype.rgba=function(t,i,r,a){this._viewModelInstanceValue.argb(a,t,i,r)},i.prototype.argb=function(t,i,r,a){this._viewModelInstanceValue.argb(t,i,r,a)},i.prototype.alpha=function(t){this._viewModelInstanceValue.alpha(t)},i.prototype.opacity=function(t){this._viewModelInstanceValue.alpha(Math.round(255*Math.max(0,Math.min(1,t))))},i.prototype.internalHandleCallback=function(t){t(this.value)},i}(eo),ep=function(t){function i(i,r){return t.call(this,i,r)||this}return g(i,t),Object.defineProperty(i.prototype,"value",{set:function(t){var i;this._viewModelInstanceValue.value(null!=(i=null==t?void 0:t.nativeImage)?i:null)},enumerable:!1,configurable:!0}),i.prototype.internalHandleCallback=function(t){t()},i}(eo),em=function(t){function i(i,r){return t.call(this,i,r)||this}return g(i,t),Object.defineProperty(i.prototype,"value",{set:function(t){var i;this._viewModelInstanceValue.value(null!=(i=null==t?void 0:t.nativeFont)?i:null)},enumerable:!1,configurable:!0}),i.prototype.internalHandleCallback=function(t){t()},i}(eo),eg=function(t){function i(i,r){return t.call(this,i,r)||this}return g(i,t),Object.defineProperty(i.prototype,"value",{set:function(t){var i,r,a;a=t.isBindableArtboard?t:t.file.internalBindableArtboardFromArtboard(t.nativeArtboard),this._viewModelInstanceValue.value(null!=(i=null==a?void 0:a.nativeArtboard)?i:null),(null==a?void 0:a.nativeViewModel)&&this._viewModelInstanceValue.viewModelInstance(null!=(r=null==a?void 0:a.nativeViewModel)?r:null)},enumerable:!1,configurable:!0}),i.prototype.internalHandleCallback=function(t){t()},i}(eo),ey=function(t){return _(void 0,void 0,void 0,function(){var i;return v(this,function(r){switch(r.label){case 0:return[4,fetch(new Request(t))];case 1:if(!(i=r.sent()).ok)throw Error("Failed to fetch the Rive file: HTTP ".concat(i.status));return[4,i.arrayBuffer()];case 2:return[2,r.sent()]}})})},e_=function(t){return"string"==typeof t?[t]:t instanceof Array?t:[]},ev={EventManager:G,TaskQueueManager:q},eb=function(t){return _(void 0,void 0,void 0,function(){var i,r;return v(this,function(a){switch(a.label){case 0:return[4,new Promise(function(i){return d.RuntimeLoader.getInstance(function(r){r.decodeAudio(t,i,null)})})];case 1:return i=a.sent(),r=new p.AudioWrapper(i),p.finalizationRegistry.register(r,i),[2,r]}})})},ex=function(t){return _(void 0,void 0,void 0,function(){var i,r;return v(this,function(a){switch(a.label){case 0:return[4,new Promise(function(i){return d.RuntimeLoader.getInstance(function(r){r.decodeImage(t,i,null)})})];case 1:return i=a.sent(),r=new p.ImageWrapper(i),p.finalizationRegistry.register(r,i),[2,r]}})})},ew=function(t){return _(void 0,void 0,void 0,function(){var i,r;return v(this,function(a){switch(a.label){case 0:return[4,new Promise(function(i){return d.RuntimeLoader.getInstance(function(r){r.decodeFont(t,i,null)})})];case 1:return i=a.sent(),r=new p.FontWrapper(i),p.finalizationRegistry.register(r,i),[2,r]}})})},eA})()},67900(t,i){var r=new Map;function a(t){var i=r.get(t);i&&i.destroy()}function n(t){var i=r.get(t);i&&i.update()}var o=null;"u"<typeof window?((o=function(t){return t}).destroy=function(t){return t},o.update=function(t){return t}):((o=function(t,i){return t&&Array.prototype.forEach.call(t.length?t:[t],function(t){return function(t){if(t&&t.nodeName&&"TEXTAREA"===t.nodeName&&!r.has(t)){var i,a=null,n=window.getComputedStyle(t),o=(i=t.value,function(){l({testForHeightReduction:""===i||!t.value.startsWith(i),restoreTextAlign:null}),i=t.value}),s=(function(i){t.removeEventListener("autosize:destroy",s),t.removeEventListener("autosize:update",c),t.removeEventListener("input",o),window.removeEventListener("resize",c),Object.keys(i).forEac
2h(function(r){return t.style[r]=i[r]}),r.delete(t)}).bind(t,{height:t.style.height,resize:t.style.resize,textAlign:t.style.textAlign,overflowY:t.style.overflowY,overflowX:t.style.overflowX,wordWrap:t.style.wordWrap});t.addEventListener("autosize:destroy",s),t.addEventListener("autosize:update",c),t.addEventListener("input",o),window.addEventListener("resize",c),t.style.overflowX="hidden",t.style.wordWrap="break-word",r.set(t,{destroy:s,update:c}),c()}function l(i){var r,o,s=i.restoreTextAlign,c=void 0===s?null:s,u=i.testForHeightReduction,h=n.overflowY;if(0!==t.scrollHeight&&("vertical"===n.resize?t.style.resize="none":"both"===n.resize&&(t.style.resize="horizontal"),(void 0===u||u)&&(r=function(t){for(var i=[];t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&i.push([t.parentNode,t.parentNode.scrollTop]),t=t.parentNode;return function(){return i.forEach(function(t){var i=t[0],r=t[1];i.style.scrollBehavior="auto",i.scrollTop=r,i.style.scrollBehavior=null})}}(t),t.style.height=""),o="content-box"===n.boxSizing?t.scrollHeight-(parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)):t.scrollHeight+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),"none"!==n.maxHeight&&o>parseFloat(n.maxHeight)?("hidden"===n.overflowY&&(t.style.overflow="scroll"),o=parseFloat(n.maxHeight)):"hidden"!==n.overflowY&&(t.style.overflow="hidden"),t.style.height=o+"px",c&&(t.style.textAlign=c),r&&r(),a!==o&&(t.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),a=o),h!==n.overflow&&!c)){var d=n.textAlign;"hidden"===n.overflow&&(t.style.textAlign="start"===d?"end":"start"),l({restoreTextAlign:d,testForHeightReduction:!0})}}function c(){l({testForHeightReduction:!0,restoreTextAlign:null})}}(t)}),t}).destroy=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],a),t},o.update=function(t){return t&&Array.prototype.forEach.call(t.length?t:[t],n),t}),i.A=o},6104(t,i,r){t.exports=function(t,i,r,a){"use strict";let n=".bs.alert",o=`close${n}`,s=`closed${n}`;class l extends t{static get NAME(){return"alert"}close(){if(i.trigger(this._element,o).defaultPrevented)return;this._element.classList.remove("show");let t=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),i.trigger(this._element,s),this.dispose()}static jQueryInterface(t){return this.each(function(){let i=l.getOrCreateInstance(this);if("string"==typeof t){if(void 0===i[t]||t.startsWith("_")||"constructor"===t)throw TypeError(`No method named "${t}"`);i[t](this)}})}}return r.enableDismissTrigger(l,"close"),a.defineJQueryPlugin(l),l}(r(42255),r(37728),r(36844),r(74607))},42255(t,i,r){var a,n,o,s;a=r(39049),n=r(37728),o=r(64613),s=r(74607),t.exports=class extends o{constructor(t,i){if(super(),!(t=s.getElement(t)))return;this._element=t,this._config=this._getConfig(i),a.set(this._element,this.constructor.DATA_KEY,this)}dispose(){for(let t of(a.remove(this._element,this.constructor.DATA_KEY),n.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this)))this[t]=null}_queueCallback(t,i,r=!0){s.executeAfterTransition(t,i,r)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return a.get(s.getElement(t),this.DATA_KEY)}static getOrCreateInstance(t,i={}){return this.getInstance(t)||new this(t,"object"==typeof i?i:null)}static get VERSION(){return"5.3.8"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}},10260(t,i,r){t.exports=function(t,i,r){"use strict";let a='[data-bs-toggle="button"]',n="click.bs.button.data-api";class o extends t{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){let i=o.getOrCreateInstance(this);"toggle"===t&&i[t]()})}}return i.on(document,n,a,t=>{t.preventDefault();let i=t.target.closest(a);o.getOrCreateInstance(i).toggle()}),r.defineJQueryPlugin(o),o}(r(42255),r(37728),r(74607))},10326(t,i,r){t.exports=function(t,i,r,a,n,o){"use strict";let s=".bs.carousel",l=".data-api",c="next",u="prev",h="left",d="right",f=`slide${s}`,p=`slid${s}`,m=`keydown${s}`,g=`mouseenter${s}`,y=`mouseleave${s}`,_=`dragstart${s}`,v=`load${s}${l}`,b=`click${s}${l}
2`,x="carousel",w="active",k=".active",T=".carousel-item",S=k+T,A={ArrowLeft:d,ArrowRight:h},C={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},E={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class M extends t{constructor(t,i){super(t,i),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=a.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===x&&this.cycle()}static get Default(){return C}static get DefaultType(){return E}static get NAME(){return"carousel"}next(){this._slide(c)}nextWhenVisible(){!document.hidden&&n.isVisible(this._element)&&this.next()}prev(){this._slide(u)}pause(){this._isSliding&&n.triggerTransitionEnd(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding)return void i.one(this._element,p,()=>this.cycle());this.cycle()}}to(t){let r=this._getItems();if(t>r.length-1||t<0)return;if(this._isSliding)return void i.one(this._element,p,()=>this.to(t));let a=this._getItemIndex(this._getActive());a===t||this._slide(t>a?c:u,r[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&i.on(this._element,m,t=>this._keydown(t)),"hover"===this._config.pause&&(i.on(this._element,g,()=>this.pause()),i.on(this._element,y,()=>this._maybeEnableCycle())),this._config.touch&&o.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let t of a.find(".carousel-item img",this._element))i.on(t,_,t=>t.preventDefault());let t=()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))};this._swipeHelper=new o(this._element,{leftCallback:()=>this._slide(this._directionToOrder(h)),rightCallback:()=>this._slide(this._directionToOrder(d)),endCallback:t})}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;let i=A[t.key];i&&(t.preventDefault(),this._slide(this._directionToOrder(i)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;let i=a.findOne(k,this._indicatorsElement);i.classList.remove(w),i.removeAttribute("aria-current");let r=a.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);r&&(r.classList.add(w),r.setAttribute("aria-current","true"))}_updateInterval(){let t=this._activeElement||this._getActive();if(!t)return;let i=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=i||this._config.defaultInterval}_slide(t,r=null){if(this._isSliding)return;let a=this._getActive(),o=t===c,s=r||n.getNextActiveElement(this._getItems(),a,o,this._config.wrap);if(s===a)return;let l=this._getItemIndex(s),u=r=>i.trigger(this._element,r,{relatedTarget:s,direction:this._orderToDirection(t),from:this._getItemIndex(a),to:l});if(u(f).defaultPrevented||!a||!s)return;let h=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(l),this._activeElement=s;let d=o?"carousel-item-start":"carousel-item-end",m=o?"carousel-item-next":"carousel-item-prev";s.classList.add(m),n.reflow(s),a.classList.add(d),s.classList.add(d);let g=()=>{s.classList.remove(d,m),s.classList.add(w),a.classList.remove(w,m,d),this._isSliding=!1,u(p)};this._queueCallback(g,a,this._isAnimated()),h&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return a.findOne(S,this._element)}_getItems(){return a.find(T,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return n.isRTL()?t===h?u:c:t===h?c:u}_orderToDirection(t){return n.isRTL()?t===u?h:d:t===u?d:h}static jQueryInterface(t){return this.each(function(){let i=M.getOrCreateInstance(this,t);if("number"==typeof t)return void i.to(t);if("string"==typeof t){if(void 0===i[t]||t.startsWith("_")||"constructor"===t)throw TypeError(`No method n
2amed "${t}"`);i[t]()}})}}return i.on(document,b,"[data-bs-slide], [data-bs-slide-to]",function(t){let i=a.getElementFromSelector(this);if(!i||!i.classList.contains(x))return;t.preventDefault();let n=M.getOrCreateInstance(i),o=this.getAttribute("data-bs-slide-to");if(o){n.to(o),n._maybeEnableCycle();return}if("next"===r.getDataAttribute(this,"slide")){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()}),i.on(window,v,()=>{for(let t of a.find('[data-bs-ride="carousel"]'))M.getOrCreateInstance(t)}),n.defineJQueryPlugin(M),M}(r(42255),r(37728),r(83481),r(91047),r(74607),r(7241))},45547(t,i,r){t.exports=function(t,i,r,a){"use strict";let n=".bs.collapse",o=`show${n}`,s=`shown${n}`,l=`hide${n}`,c=`hidden${n}`,u=`click${n}.data-api`,h="show",d="collapse",f="collapsing",p=`:scope .${d} .${d}`,m='[data-bs-toggle="collapse"]',g={parent:null,toggle:!0},y={parent:"(null|element)",toggle:"boolean"};class _ extends t{constructor(t,i){for(let a of(super(t,i),this._isTransitioning=!1,this._triggerArray=[],r.find(m))){let t=r.getSelectorFromElement(a),i=r.find(t).filter(t=>t===this._element);null!==t&&i.length&&this._triggerArray.push(a)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return g}static get DefaultType(){return y}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(t=>t!==this._element).map(t=>_.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning||i.trigger(this._element,o).defaultPrevented)return;for(let i of t)i.hide();let r=this._getDimension();this._element.classList.remove(d),this._element.classList.add(f),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let a=()=>{this._isTransitioning=!1,this._element.classList.remove(f),this._element.classList.add(d,h),this._element.style[r]="",i.trigger(this._element,s)},n=r[0].toUpperCase()+r.slice(1),l=`scroll${n}`;this._queueCallback(a,this._element,!0),this._element.style[r]=`${this._element[l]}px`}hide(){if(this._isTransitioning||!this._isShown()||i.trigger(this._element,l).defaultPrevented)return;let t=this._getDimension();for(let i of(this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,a.reflow(this._element),this._element.classList.add(f),this._element.classList.remove(d,h),this._triggerArray)){let t=r.getElementFromSelector(i);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;let n=()=>{this._isTransitioning=!1,this._element.classList.remove(f),this._element.classList.add(d),i.trigger(this._element,c)};this._element.style[t]="",this._queueCallback(n,this._element,!0)}_isShown(t=this._element){return t.classList.contains(h)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=a.getElement(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(this._config.parent)for(let t of this._getFirstLevelChildren(m)){let i=r.getElementFromSelector(t);i&&this._addAriaAndCollapsedClass([t],this._isShown(i))}}_getFirstLevelChildren(t){let i=r.find(p,this._config.parent);return r.find(t,this._config.parent).filter(t=>!i.includes(t))}_addAriaAndCollapsedClass(t,i){if(t.length)for(let r of t)r.classList.toggle("collapsed",!i),r.setAttribute("aria-expanded",i)}static jQueryInterface(t){let i={};return"string"==typeof t&&/show|hide/.test(t)&&(i.toggle=!1),this.each(function(){let r=_.getOrCreateInstance(this,i);if("string"==typeof t){if(void 0===r[t])throw TypeError(`No method named "${t}"`);r[t]()}})}}return i.on(document,u,m,function(t){for(let i of(("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault(),r.getMultipleElementsFromSelector(this)))_.getOrCreateInstance(i,{toggle:!1}).toggle()}),a.defineJQueryPlugin(_),_}(r(42255),r(37728),r(91047),r(74607))},39049(t){t.exports=function(){"use strict";let t=new Map;return{set(i,r,a){t.has(i)||t.set(i,new Map);let n=t.get(i);n.has(r)||0===n.size?n.set(r,a):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(i,r)=>t.has(i)&&t.get(i).get(r)||null,remove(i,r){if(!t.has(i))return;let a=t.get(i);a.delete(r),0===a.size&&t.delete(i)}}}()},37728(t,i,r){t.exports=function(t){"use strict";let i=/[^.]*(?=\..*)\.|.*/,r=/\..*/,a=/::\d+$/,n={}
2,o=1,s={mouseenter:"mouseover",mouseleave:"mouseout"},l=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function c(t,i){return i&&`${i}::${o++}`||t.uidEvent||o++}function u(t){let i=c(t);return t.uidEvent=i,n[i]=n[i]||{},n[i]}function h(t,i,r=null){return Object.values(t).find(t=>t.callable===i&&t.delegationSelector===r)}function d(t,i,r){let a="string"==typeof i,n=m(t);return l.has(n)||(n=t),[a,a?r:i||r,n]}function f(t,r,a,n,o){var l,f;if("string"!=typeof r||!t)return;let[p,m,_]=d(r,a,n);if(r in s){let t;t=m,m=function(i){if(!i.relatedTarget||i.relatedTarget!==i.delegateTarget&&!i.delegateTarget.contains(i.relatedTarget))return t.call(this,i)}}let v=u(t),b=v[_]||(v[_]={}),x=h(b,m,p?a:null);if(x){x.oneOff=x.oneOff&&o;return}let w=c(m,r.replace(i,"")),k=p?(l=m,function i(r){let n=t.querySelectorAll(a);for(let{target:o}=r;o&&o!==this;o=o.parentNode)for(let s of n)if(s===o)return y(r,{delegateTarget:o}),i.oneOff&&g.off(t,r.type,a,l),l.apply(o,[r])}):(f=m,function i(r){return y(r,{delegateTarget:t}),i.oneOff&&g.off(t,r.type,f),f.apply(t,[r])});k.delegationSelector=p?a:null,k.callable=m,k.oneOff=o,k.uidEvent=w,b[w]=k,t.addEventListener(_,k,p)}function p(t,i,r,a,n){let o=h(i[r],a,n);o&&(t.removeEventListener(r,o,!!n),delete i[r][o.uidEvent])}function m(t){return s[t=t.replace(r,"")]||t}let g={on(t,i,r,a){f(t,i,r,a,!1)},one(t,i,r,a){f(t,i,r,a,!0)},off(t,i,r,n){if("string"!=typeof i||!t)return;let[o,s,l]=d(i,r,n),c=l!==i,h=u(t),f=h[l]||{},m=i.startsWith(".");if(void 0!==s){if(!Object.keys(f).length)return;p(t,h,l,s,o?r:null);return}if(m)for(let r of Object.keys(h)){var g=i.slice(1);for(let[i,a]of Object.entries(h[r]||{}))i.includes(g)&&p(t,h,r,a.callable,a.delegationSelector)}for(let[r,n]of Object.entries(f)){let o=r.replace(a,"");(!c||i.includes(o))&&p(t,h,l,n.callable,n.delegationSelector)}},trigger(i,r,a){if("string"!=typeof r||!i)return null;let n=t.getjQuery(),o=m(r),s=null,l=!0,c=!0,u=!1;r!==o&&n&&(s=n.Event(r,a),n(i).trigger(s),l=!s.isPropagationStopped(),c=!s.isImmediatePropagationStopped(),u=s.isDefaultPrevented());let h=y(new Event(r,{bubbles:l,cancelable:!0}),a);return u&&h.preventDefault(),c&&i.dispatchEvent(h),h.defaultPrevented&&s&&s.preventDefault(),h}};function y(t,i={}){for(let[r,a]of Object.entries(i))try{t[r]=a}catch(i){Object.defineProperty(t,r,{configurable:!0,get:()=>a})}return t}return g}(r(74607))},83481(t){t.exports=function(){"use strict";function t(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(i){return t}}function i(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}return{setDataAttribute(t,r,a){t.setAttribute(`data-bs-${i(r)}`,a)},removeDataAttribute(t,r){t.removeAttribute(`data-bs-${i(r)}`)},getDataAttributes(i){if(!i)return{};let r={};for(let a of Object.keys(i.dataset).filter(t=>t.startsWith("bs")&&!t.startsWith("bsConfig"))){let n=a.replace(/^bs/,"");r[n=n.charAt(0).toLowerCase()+n.slice(1)]=t(i.dataset[a])}return r},getDataAttribute:(r,a)=>t(r.getAttribute(`data-bs-${i(a)}`))}}()},91047(t,i,r){t.exports=function(t){"use strict";let i=i=>{let r=i.getAttribute("data-bs-target");if(!r||"#"===r){let t=i.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),r=t&&"#"!==t?t.trim():null}return r?r.split(",").map(i=>t.parseSelector(i)).join(","):null},r={find:(t,i=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(i,t)),findOne:(t,i=document.documentElement)=>Element.prototype.querySelector.call(i,t),children:(t,i)=>[].concat(...t.children).filter(t=>t.matches(i)),parents(t,i){let r=[],a=t.parentNode.closest(i);for(;a;)r.push(a),a=a.parentNode.closest(i);return r},prev(t,i){let r=t.previousElementSibling;for(;r;){if(r.matches(i))return[r];r=r.previousElementSibling}return[]},next(t,i){let r=t.nextElementSibling;for(;r;){if(r.matches(i))return[r];r=r.nextElementSibling}return[]},focusableChildren(i){let r=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(r,i).filter(i=>!t.isDisabled(i)&&t.isVisible(i))},getSelectorFromElement(t){let a=i(t);return a&&r.findOne(a)?a:null},getElementFromSelector(t){let a=i(t);return a?r.findOne(a):null},getMultipleElementsFromSelector(t){let a=i(t);return a?r.find(a):[]}};return r}(r(74607))},30265(t,i,r){t.exports=function(t,i,r,a,n,o){"use strict";let s=function(t){let i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(let r in t)if("default"!==r){let a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(i,r,a.get?a:{enumerable:!0,get:()=>t[r]})}}return i.default=t,Object.freeze(i)}(t),l="dropdown",c=".bs.dropdown",u=".data-api",h="ArrowDown",d=`hide${c}`,f=`hidden${c}`,p=`show${c}`,m=`shown${c}`,g=`click${c}${u}`,y=`keydown${c}${u}
2`,_=`keyup${c}${u}`,v="show",b='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',x=`${b}.${v}`,w=".dropdown-menu",k=o.isRTL()?"top-end":"top-start",T=o.isRTL()?"top-start":"top-end",S=o.isRTL()?"bottom-end":"bottom-start",A=o.isRTL()?"bottom-start":"bottom-end",C=o.isRTL()?"left-start":"right-start",E=o.isRTL()?"right-start":"left-start",M={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},P={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class D extends i{constructor(t,i){super(t,i),this._popper=null,this._parent=this._element.parentNode,this._menu=n.next(this._element,w)[0]||n.prev(this._element,w)[0]||n.findOne(w,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return M}static get DefaultType(){return P}static get NAME(){return l}toggle(){return this._isShown()?this.hide():this.show()}show(){if(o.isDisabled(this._element)||this._isShown())return;let t={relatedTarget:this._element};if(!r.trigger(this._element,p,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".
2navbar-nav"))for(let t of[].concat(...document.body.children))r.on(t,"mouseover",o.noop);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(v),this._element.classList.add(v),r.trigger(this._element,m,t)}}hide(){if(o.isDisabled(this._element)||!this._isShown())return;let t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!r.trigger(this._element,d,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(let t of[].concat(...document.body.children))r.off(t,"mouseover",o.noop);this._popper&&this._popper.destroy(),this._menu.classList.remove(v),this._element.classList.remove(v),this._element.setAttribute("aria-expanded","false"),a.removeDataAttribute(this._menu,"popper"),r.trigger(this._element,f,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!o.isElement(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw TypeError(`${l.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===s)throw TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;"parent"===this._config.reference?t=this._parent:o.isElement(this._config.reference)?t=o.getElement(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);let i=this._getPopperConfig();this._popper=s.createPopper(t,this._menu,i)}_isShown(){return this._menu.classList.contains(v)}_getPlacement(){let t=this._parent;if(t.classList.contains("dropend"))return C;if(t.classList.contains("dropstart"))return E;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";let i="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?i?T:k:i?A:S}
2_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){let{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?i=>t(i,this._element):t}_getPopperConfig(){let t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(a.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...o.execute(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:i}){let r=n.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(t=>o.isVisible(t));r.length&&o.getNextActiveElement(r,i,t===h,!r.includes(i)).focus()}static jQueryInterface(t){return this.each(function(){let i=D.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw TypeError(`No method named "${t}"`);i[t]()}})}static clearMenus(t){if(2!==t.button&&("keyup"!==t.type||"Tab"===t.key))for(let i of n.find(x)){let r=D.getInstance(i);if(!r||!1===r._config.autoClose)continue;let a=t.composedPath(),n=a.includes(r._menu);if(a.includes(r._element)||"inside"===r._config.autoClose&&!n||"outside"===r._config.autoClose&&n||r._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;let o={relatedTarget:r._element};"click"===t.type&&(o.clickEvent=t),r._completeHide(o)}}static dataApiKeydownHandler(t){let i=/input|textarea/i.test(t.target.tagName),r="Escape"===t.key,a=["ArrowUp",h].includes(t.key);if(!a&&!r||i&&!r)return;t.preventDefault();let o=this.matches(b)?this:n.prev(this,b)[0]||n.next(this,b)[0]||n.findOne(b,t.delegateTarget.parentNode),s=D.getOrCreateInstance(o);if(a){t.stopPropagation(),s.show(),s._selectMenuItem(t);return}s._isShown()&&(t.stopPropagation(),s.hide(),o.focus())}}return r.on(document,y,b,D.dataApiKeydownHandler),r.on(document,y,w,D.dataApiKeydownHandler),r.on(document,g,D.clearMenus),r.on(document,_,D.clearMenus),r.on(document,g,b,function(t){t.preventDefault(),D.getOrCreateInstance(this).toggle()}),o.defineJQueryPlugin(D),D}(r(81239),r(42255),r(37728),r(83481),r(91047),r(74607))},11841(t,i,r){t.exports=function(t,i,r,a){"use strict";let n=".bs.tab",o=`hide${n}`,s=`hidden${n}`,l=`show${n}`,c=`shown${n}`,u=`click${n}`,h=`keydown${n}`,d=`load${n}`,f="ArrowRight",p="ArrowDown",m="Home",g="active",y="fade",_="show",v=".dropdown-toggle",b=`:not(${v})`,x=`.nav-link${b}, .list-group-item${b}, [role="tab"]${b}`,w='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',k=`${x}, ${w}`,T=`.${g}[data-bs-toggle="tab"], .${g}[data-bs-toggle="pill"], .${g}[data-bs-toggle="list"]`;class S extends t{constructor(t){if(super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),!this._parent)return;this._setInitialAttributes(this._parent,this._getChildren()),i.on(this._element,h,t=>this._keydown(t))}static get NAME(){return"tab"}show(){let t=this._element;if(this._elemIsActive(t))return;let r=this._getActiveElem(),a=r?i.trigger(r,o,{relatedTarget:t}):null;i.trigger(t,l,{relatedTarget:r}).defaultPrevented||a&&a.defaultPrevented||(this._deactivate(r,t),this._activate(t,r))}_activate(t,a){if(!t)return;t.classList.add(g),this._activate(r.getElementFromSelector(t));let n=()=>{"tab"!==t.getAttribute("role")?t.classList.add(_):(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),i.trigger(t,c,{relatedTarget:a}))};this._queueCallback(n,t,t.classList.contains(y))}_deactivate(t,a){if(!t)return;t.classList.remove(g),t.blur(),this._deactivate(r.getElementFromSelector(t));let n=()=>{"tab"!==t.getAttribute("role")?t.classList.remove(_):(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),i.trigger(t,s,{relatedTarget:a}))};this._queueCallback(n,t,t.classList.contains(y))}_keydown(t){let i;if(!["ArrowLeft",f,"ArrowUp",p,m,"End"].includes(t.key))return;t.stopPropagation(),t.preventDefault();let r=this._getChildren().filter(t=>!a.isDisabled(t));
2if([m,"End"].includes(t.key))i=r[t.key===m?0:r.length-1];else{let n=[f,p].includes(t.key);i=a.getNextActiveElement(r,t.target,n,!0)}i&&(i.focus({preventScroll:!0}),S.getOrCreateInstance(i).show())}_getChildren(){return r.find(k,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,i){for(let r of(this._setAttributeIfNotExists(t,"role","tablist"),i))this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);let i=this._elemIsActive(t),r=this._getOuterElement(t);t.setAttribute("aria-selected",i),r!==t&&this._setAttributeIfNotExists(r,"role","presentation"),i||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){let i=r.getElementFromSelector(t);i&&(this._setAttributeIfNotExists(i,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(i,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,i){let a=this._getOuterElement(t);if(!a.classList.contains("dropdown"))return;let n=(t,n)=>{let o=r.findOne(t,a);o&&o.classList.toggle(n,i)};n(v,g),n(".dropdown-menu",_),a.setAttribute("aria-expanded",i)}_setAttributeIfNotExists(t,i,r){t.hasAttribute(i)||t.setAttribute(i,r)}_elemIsActive(t){return t.classList.contains(g)}_getInnerElement(t){return t.matches(k)?t:r.findOne(k,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each(function(){let i=S.getOrCreateInstance(this);if("string"==typeof t){if(void 0===i[t]||t.startsWith("_")||"constructor"===t)throw TypeError(`No method named "${t}"`);i[t]()}})}}return i.on(document,u,w,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),a.isDisabled(this)||S.getOrCreateInstance(this).show()}),i.on(window,d,()=>{for(let t of r.find(T))S.getOrCreateInstance(t)}),a.defineJQueryPlugin(S),S}(r(42255),r(37728),r(91047),r(74607))},67673(t,i,r){t.exports=function(t,i,r,a,n,o,s){"use strict";let l=function(t){let i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(let r in t)if("default"!==r){let a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(i,r,a.get?a:{enumerable:!0,get:()=>t[r]})}}return i.default=t,Object.freeze(i)}(t),c=new Set(["sanitize","allowList","sanitizeFn"]),u="fade",h="show",d=".modal",f="hide.bs.modal",p="hover",m="focus",g="click",y={AUTO:"auto",TOP:"top",RIGHT:n.isRTL()?"left":"right",BOTTOM:"bottom",LEFT:n.isRTL()?"right":"left"},_={allowList:o.DefaultAllowlist,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},v={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class b extends i{constructor(t,i){if(void 0===l)throw TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,i),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return _}static get DefaultType(){return v}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown())return void this._leave();this._enter()}}dispose(){clearTimeout(this._timeout),r.off(this._element.closest(d),f,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;let t=r.trigger(this._element,this.constructor.eventName("show")),i=(n.findShadowRoot(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!i)return;this._disposePopper();let a=this._getTipElement();this._element.setAttribute("aria-describedby",a.getAttribute("id"));
2let{container:o}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(a),r.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(a),a.classList.add(h),"ontouchstart"in document.documentElement)for(let t of[].concat(...document.body.children))r.on(t,"mouseover",n.noop);let s=()=>{r.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||r.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(h),"ontouchstart"in document.documentElement)for(let t of[].concat(...document.body.children))r.off(t,"mouseover",n.noop);this._activeTrigger[g]=!1,this._activeTrigger[m]=!1,this._activeTrigger[p]=!1,this._isHovered=null;let t=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),r.trigger(this._element,this.constructor.eventName("hidden")))};this._queueCallback(t,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){let i=this._getTemplateFactory(t).toHtml();if(!i)return null;i.classList.remove(u,h),i.classList.add(`bs-${this.constructor.NAME}-auto`);let r=n.getUID(this.constructor.NAME).toString();return i.setAttribute("id",r),this._isAnimated()&&i.classList.add(u),i}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new s({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(u)}_isShown(){return this.tip&&this.tip.classList.contains(h)}_createPopper(t){let i=y[n.execute(this._config.placement,[this,t,this._element]).toUpperCase()];return l.createPopper(this._element,t,this._getPopperConfig(i))}_getOffset(){let{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?i=>t(i,this._element):t}_resolvePossibleFunction(t){return n.execute(t,[this._element,this._element])}_getPopperConfig(t){let i={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...i,...n.execute(this._config.popperConfig,[void 0,i])}}_setListeners(){for(let t of this._config.trigger.split(" "))if("click"===t)r.on(this._element,this.constructor.eventName("click"),this._config.selector,t=>{let i=this._initializeOnDelegatedTarget(t);i._activeTrigger[g]=!(i._isShown()&&i._activeTrigger[g]),i.toggle()});else if("manual"!==t){let i=t===p?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),a=t===p?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");r.on(this._element,i,this._config.selector,t=>{let i=this._initializeOnDelegatedTarget(t);i._activeTrigger["focusin"===t.type?m:p]=!0,i._enter()}),r.on(this._element,a,this._config.selector,t=>{let i=this._initializeOnDelegatedTarget(t);i._activeTrigger["focusout"===t.type?m:p]=i._element.contains(t.relatedTarget),i._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},r.on(this._element.closest(d),f,this._hideModalHandler)}_fixTitle(){let t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,i){clearTimeout(this._timeout),this._timeout=setTimeout(t,i)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){let i=a.getDataAttributes(this._element);for(let t of Object.keys(i))c.has(t)&&delete i[t];return t={...i,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:n.getElement(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){let t={};for(let[i,r]of Object.entries(this._config))this.constructor.Default[i]!==r&&(t[i]=r);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){let i=b.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw TypeError(`No method n
2amed "${t}"`);i[t]()}})}}return n.defineJQueryPlugin(b),b}(r(81239),r(42255),r(37728),r(83481),r(74607),r(27272),r(88058))},36844(t,i,r){!function(t,i,r,a){"use strict";t.enableDismissTrigger=(t,n="hide")=>{let o=`click.dismiss${t.EVENT_KEY}`,s=t.NAME;i.on(document,o,`[data-bs-dismiss="${s}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),a.isDisabled(this))return;let o=r.getElementFromSelector(this)||this.closest(`.${s}`);t.getOrCreateInstance(o)[n]()})},Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}(i,r(37728),r(91047),r(74607))},64613(t,i,r){var a,n;a=r(83481),n=r(74607),t.exports=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,i){let r=n.isElement(i)?a.getDataAttribute(i,"config"):{};return{...this.constructor.Default,..."object"==typeof r?r:{},...n.isElement(i)?a.getDataAttributes(i):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,i=this.constructor.DefaultType){for(let[r,a]of Object.entries(i)){let i=t[r],o=n.isElement(i)?"element":n.toType(i);if(!new RegExp(a).test(o))throw TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${o}" but expected type "${a}".`)}}}},74607(t,i){!function(t){"use strict";let i="transitionend",r=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(t,i)=>`#${CSS.escape(i)}`)),t),a=t=>{if(!t)return 0;let{transitionDuration:i,transitionDelay:r}=window.getComputedStyle(t),a=Number.parseFloat(i),n=Number.parseFloat(r);return a||n?(i=i.split(",")[0],r=r.split(",")[0],(Number.parseFloat(i)+Number.parseFloat(r))*1e3):0},n=t=>{t.dispatchEvent(new Event(i))},o=t=>!!t&&"object"==typeof t&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),s=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){let i=t.getRootNode();return i instanceof ShadowRoot?i:null}return t instanceof ShadowRoot?t:t.parentNode?s(t.parentNode):null},l=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,c=[],u=t=>{"loading"===document.readyState?(c.length||document.addEventListener("DOMContentLoaded",()=>{for(let t of c)t()}),c.push(t)):t()},h=(t,i=[],r=t)=>"function"==typeof t?t.call(...i):r;t.defineJQueryPlugin=t=>{u(()=>{let i=l();if(i){let r=t.NAME,a=i.fn[r];i.fn[r]=t.jQueryInterface,i.fn[r].Constructor=t,i.fn[r].noConflict=()=>(i.fn[r]=a,t.jQueryInterface)}})},t.execute=h,t.executeAfterTransition=(t,r,o=!0)=>{if(!o)return void h(t);let s=a(r)+5,l=!1,c=({target:a})=>{a===r&&(l=!0,r.removeEventListener(i,c),h(t))};r.addEventListener(i,c),setTimeout(()=>{l||n(r)},s)},t.findShadowRoot=s,t.getElement=t=>o(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(r(t)):null,t.getNextActiveElement=(t,i,r,a)=>{let n=t.length,o=t.indexOf(i);return -1===o?!r&&a?t[n-1]:t[0]:(o+=r?1:-1,a&&(o=(o+n)%n),t[Math.max(0,Math.min(o,n-1))])},t.getTransitionDurationFromElement=a,t.getUID=t=>{do t+=Math.floor(1e6*Math.random());while(document.getElementById(t))return t},t.getjQuery=l,t.isDisabled=t=>!!(!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled"))||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),t.isElement=o,t.isRTL=()=>"rtl"===document.documentElement.dir,t.isVisible=t=>{if(!o(t)||0===t.getClientRects().length)return!1;let i="visible"===getComputedStyle(t).getPropertyValue("visibility"),r=t.closest("details:not([open])");if(!r)return i;if(r!==t){let i=t.closest("summary");if(i&&i.parentNode!==r||null===i)return!1}return i},t.noop=()=>{},t.onDOMContentLoaded=u,t.parseSelector=r,t.reflow=t=>{t.offsetHeight},t.toType=t=>null==t?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),t.triggerTransitionEnd=n,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}(i)},27272(t,i){!function(t){"use strict";let i=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),r=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,a=(t,a)=>{let n=t.nodeName.toLowerCase();
2return a.includes(n)?!i.has(n)||!!r.test(t.nodeValue):a.filter(t=>t instanceof RegExp).some(t=>t.test(n))};t.DefaultAllowlist={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},t.sanitizeHtml=function(t,i,r){if(!t.length)return t;if(r&&"function"==typeof r)return r(t);let n=new window.DOMParser().parseFromString(t,"text/html");for(let t of[].concat(...n.body.querySelectorAll("*"))){let r=t.nodeName.toLowerCase();if(!Object.keys(i).includes(r)){t.remove();continue}let n=[].concat(...t.attributes),o=[].concat(i["*"]||[],i[r]||[]);for(let i of n)a(i,o)||t.removeAttribute(i.nodeName)}return n.body.innerHTML},Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}(i)},7241(t,i,r){t.exports=function(t,i,r){"use strict";let a=".bs.swipe",n=`touchstart${a}`,o=`touchmove${a}`,s=`touchend${a}`,l=`pointerdown${a}`,c=`pointerup${a}`,u={endCallback:null,leftCallback:null,rightCallback:null},h={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};return class d extends i{constructor(t,i){if(super(),this._element=t,!t||!d.isSupported())return;this._config=this._getConfig(i),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents()}static get Default(){return u}static get DefaultType(){return h}static get NAME(){return"swipe"}dispose(){t.off(this._element,a)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),r.execute(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){let t=Math.abs(this._deltaX);if(t<=40)return;let i=t/this._deltaX;this._deltaX=0,i&&r.execute(i>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(t.on(this._element,l,t=>this._start(t)),t.on(this._element,c,t=>this._end(t)),this._element.classList.add("pointer-event")):(t.on(this._element,n,t=>this._start(t)),t.on(this._element,o,t=>this._move(t)),t.on(this._element,s,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}}(r(37728),r(64613),r(74607))},88058(t,i,r){t.exports=function(t,i,r,a){"use strict";let n={allowList:r.DefaultAllowlist,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},o={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},s={entry:"(string|element|function|null)",selector:"(string|element)"};return class extends i{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return n}static get DefaultType(){return o}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){let t=document.createElement("div");for(let[i,r]of(t.innerHTML=this._maybeSanitize(this._config.template),Object.entries(this._config.content)))this._setContent(t,r,i);let i=t.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&i.classList.add(...r.split(" ")),i}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(let[i,r]of Object.entries(t))super._typeCheckConfig({selector:i,entry:r},s)}_setContent(i,r,n){let o=t.findOne(n,i);if(o){if(!(r=this._resolvePossibleFunction(r)))return void o.remove();if(a.isElement(r))return void this._putElementInTemplate(a.getElement(r),o);if(this._config.html){o.innerHTML=this._maybeSanitize(r);return}o.textContent=r}}_maybeSanitize(t){return this._config.sanitize?r.sanitizeHtml(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return a.execute(t,[void 0,this])}_putElementInTemplate(t,i){if(this._config.html){i.innerHTML="",i.append(t);return}i.textContent=t.textContent}}}(r(91047),r(64613),r(27272),r(74607))},21344(t){t.exports=function(){"use strict";var t="millisecond",i="second",r="minute",a="hour",n="week",o="month",s="quarter",l="year",c="date",u="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}
vendor: 6,448 bytes, line 2
2|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f=function(t,i,r){var a=String(t);return!a||a.length>=i?t:""+Array(i+1-a.length).join(r)+t},p="en",m={};m[p]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var i=["th","st","nd","rd"],r=t%100;return"["+t+(i[(r-20)%10]||i[r]||i[0])+"]"}};var g="$isDayjsObject",y=function(t){return t instanceof x||!(!t||!t[g])},_=function t(i,r,a){var n;if(!i)return p;if("string"==typeof i){var o=i.toLowerCase();m[o]&&(n=o),r&&(m[o]=r,n=o);var s=i.split("-");if(!n&&s.length>1)return t(s[0])}else{var l=i.name;m[l]=i,n=l}return!a&&n&&(p=n),n||!a&&p},v=function(t,i){if(y(t))return t.clone();var r="object"==typeof i?i:{};return r.date=t,r.args=arguments,new x(r)},b={s:f,z:function(t){var i=-t.utcOffset(),r=Math.abs(i);return(i<=0?"+":"-")+f(Math.floor(r/60),2,"0")+":"+f(r%60,2,"0")},m:function t(i,r){if(i.date()<r.date())return-t(r,i);var a=12*(r.year()-i.year())+(r.month()-i.month()),n=i.clone().add(a,o),s=r-n<0,l=i.clone().add(a+(s?-1:1),o);return+(-(a+(r-n)/(s?n-l:l-n))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(u){return({M:o,y:l,w:n,d:"day",D:c,h:a,m:r,s:i,ms:t,Q:s})[u]||String(u||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}};b.l=_,b.i=y,b.w=function(t,i){return v(t,{locale:i.$L,utc:i.$u,x:i.$x,$offset:i.$offset})};var x=function(){function f(t){this.$L=_(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[g]=!0}var p=f.prototype;return p.parse=function(t){this.$d=function(t){var i=t.date,r=t.utc;if(null===i)return new Date(0/0);if(b.u(i))return new Date;if(i instanceof Date)return new Date(i);if("string"==typeof i&&!/Z$/i.test(i)){var a=i.match(h);if(a){var n=a[2]-1||0,o=(a[7]||"0").substring(0,3);return r?new Date(Date.UTC(a[1],n,a[3]||1,a[4]||0,a[5]||0,a[6]||0,o)):new Date(a[1],n,a[3]||1,a[4]||0,a[5]||0,a[6]||0,o)}}return new Date(i)}(t),this.init()},p.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},p.$utils=function(){return b},p.isValid=function(){return this.$d.toString()!==u},p.isSame=function(t,i){var r=v(t);return this.startOf(i)<=r&&r<=this.endOf(i)},p.isAfter=function(t,i){return v(t)<this.startOf(i)},p.isBefore=function(t,i){return this.endOf(i)<v(t)},p.$g=function(t,i,r){return b.u(t)?this[i]:this.set(r,t)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(t,s){var u=this,h=!!b.u(s)||s,d=b.p(t),f=function(t,i){var r=b.w(u.$u?Date.UTC(u.$y,i,t):new Date(u.$y,i,t),u);return h?r:r.endOf("day")},p=function(t,i){return b.w(u.toDate()[t].apply(u.toDate("s"),(h?[0,0,0,0]:[23,59,59,999]).slice(i)),u)},m=this.$W,g=this.$M,y=this.$D,_="set"+(this.$u?"UTC":"");switch(d){case l:return h?f(1,0):f(31,11);case o:return h?f(1,g):f(0,g+1);case n:var v=this.$locale().weekStart||0,x=(m<v?m+7:m)-v;return f(h?y-x:y+(6-x),g);case"day":case c:return p(_+"Hours",0);case a:return p(_+"Minutes",1);case r:return p(_+"Seconds",2);case i:return p(_+"Milliseconds",3);default:return this.clone()}},p.endOf=function(t){return this.startOf(t,!1)},p.$set=function(n,s){var u,h=b.p(n),d="set"+(this.$u?"UTC":""),f=((u={}).day=d+"Date",u[c]=d+"Date",u[o]=d+"Month",u[l]=d+"FullYear",u[a]=d+"Hours",u[r]=d+"Minutes",u[i]=d+"Seconds",u[t]=d+"Milliseconds",u)[h],p="day"===h?this.$D+(s-this.$W):s;if(h===o||h===l){var m=this.clone().set(c,1);m.$d[f](p),m.init(),this.$d=m.set(c,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},p.set=function(t,i){return this.clone().$set(t,i)},p.get=function(t){return this[b.p(t)]()},p.add=function(t,s){var c,u=this;t=Number(t);var h=b.p(s),d=function(i){var r=v(u);return b.w(r.date(r.date()+Math.round(i*t)),u)};if(h===o)return this.set(o,this.$M+t);if(h===l)return this.set(l,this.$y+t);if("day"===h)return d(1);if(h===n)return d(7);var f=((c={})[r]=6e4,c[a]=36e5,c[i]=1e3,c)[h]||1,p=this.$d.getTime()+t*f;return b.w(p,this)},p.subtract=function(t,i){return this.add(-1*t,i)},p.format=function(t){var i=this,r=this.$locale();if(!this.isValid())return r.invalidDate||u;var a=t||"YYYY-MM-DDTHH:mm:ssZ",n=b.z(this),o=this.$H,s=this.$m,l=this.$M,c=r.weekdays,h=r.months,f=r.meridiem,p=function(t,r,n,o){return t&&(t[r]||t(i,a))||n[r].slice(0,o)},m=function(t){return b.s(o%12||12,t,"0")},g=f||function(t,i,r){var a=t<12?"AM":"PM";return r?a.toLowerCase():a};return a.replace(d,function(t,a){return a||function(t){switch(t){case"YY":return String(i.$y).slice(-2);case"YYYY":return b.s(i.$y,4,"0");case"M":return l+1;case"MM":return b.s(l+1,2,"0");case"MMM":return p(r.monthsShort,l,h,3);case"MMMM":return p(h,l);case"D":return i.$D;case"DD":return b.s(i.$D,2,"0");case"d":return String(i.$W);case"dd":return p(r.weekdaysMin,i.$W,c,2);case"ddd":return p(r.weekdaysShort,i.$W,c,3);case"dddd":return c[i.$W];case"H":return String(o);case"HH":return b.s(o,2,"0");case"h":return m(1);case"hh":return m(2);case"a":return g(o,s,!0);case"A":return g(o,s,!1);case"m":return String(s);case"mm":return b.s(s,2,"0");case"s":return String(i.$s);case"ss":return b.s(i.$s,2,"0");case"SSS":return b.s(i.$ms,3,"0");case"Z":return n}return null}(t)||n.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(t,c,u){var h,d=this,f=b.p(c),p=v(t),m=(p.utcOffset()-this.utcOffset())*6e4,g=this-p,y=function(){return b.m(d,p)};switch(f){case l:h=y()/12;break;case o:h=y();break;case s:h=y()/3;break;case n:h=(g-m)/6048e5;break;case"day":h=(g-m)/864e5;break;case a:h=g/36e5;break;case r:h=g/6e4;break;case i:h=g/1e3;break;default:h=g}return u?h:b.a(h)},p.daysInMonth=function(){return this.endOf(o).$D},p.$locale=function(){return m[this.$L]},p.locale=function(t,i){if(!t)return this.$L;var r=this.clone(),a=_(t,i,!0);return a&&(r.$L=a),r},p.clone=function(){return b.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},f}(),w=x.prototype;return v.prototype=w,[["$ms",t],["$s",i],["$m",r],["$H",a],["$W","day"],["$M",o],["$y",l],["$D",c]].forEac
2h(function(t){w[t[1]]=function(i){return this.$g(i,t[0],t[1])}}),v.extend=function(t,i){return t.$i||(t(i,x,v),t.$i=!0),v},v.locale=_,v.isDayjs=y,v.unix=function(t){return v(1e3*t)},v.en=m[p],v.Ls=m,v.p={},v}()},33696(t){t.exports=function(){"use strict";var t={year:0,month:1,day:2,hour:3,minute:4,second:5},i={};return function(r,a,n){var o,s=function(t,r,a){void 0===a&&(a={});var n,o,s,l,c=new Date(t);return(void 0===(n=a)&&(n={}),(l=i[s=r+"|"+(o=n.timeZoneName||"short")])||(l=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:o}),i[s]=l),l).formatToParts(c)},l=function(i,r){for(var a=s(i,r),o=[],l=0;l<a.length;l+=1){var c=a[l],u=c.type,h=c.value,d=t[u];d>=0&&(o[d]=parseInt(h,10))}var f=o[3],p=o[0]+"-"+o[1]+"-"+o[2]+" "+(24===f?0:f)+":"+o[4]+":"+o[5]+":000",m=+i;return(n.utc(p).valueOf()-(m-=m%1e3))/6e4},c=a.prototype;c.tz=function(t,i){if(void 0===t&&(t=o),!this.isValid())return this;var r,a=this.utcOffset(),s=this.toDate(),c=s.toLocaleString("en-US",{timeZone:t}),u=l(+s,t);if(Number(u)){if(r=n(c,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(u,!0),i){var h=r.utcOffset();r=r.add(a-h,"minute")}}else r=this.utcOffset(0,i);return r.$x.$timezone=t,r},c.offsetName=function(t){var i=this.$x.$timezone||n.tz.guess(),r=s(this.valueOf(),i,{timeZoneName:t}).find(function(t){return"timezonename"===t.type.toLowerCase()});return r&&r.value};var u=c.startOf;c.startOf=function(t,i){if(!this.$x||!this.$x.$timezone)return u.call(this,t,i);var r=n(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(r,t,i).tz(this.$x.$timezone,!0)},n.tz=function(t,i,r){var a=r&&i,s=r||i||o,c=l(+n(),s);if("string"!=typeof t)return n(t).tz(s);var u=n.utc(t,a).valueOf();if(Number.isNaN(u)){var h=n(0/0);return h.$x.$timezone=s,h}var d=function(t,i,r){var a=t-60*i*1e3,n=l(a,r);if(i===n)return[a,i];var o=l(a-=60*(n-i)*1e3,r);return n===o?[a,n]:[t-60*Math.min(n,o)*1e3,Math.max(n,o)]}(u,c,s),f=d[0],p=d[1],m=n(f).utcOffset(p);return m.$x.$timezone=s,m},n.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},n.tz.setDefault=function(t){o=t}}}()},83086(t,i){!function(r){"use strict";var a=r.setTimeout,n=r.clearTimeout,o=r.XMLHttpRequest,s=r.XDomainRequest,l=r.ActiveXObject,c=r.EventSource,u=r.document,h=r.Promise,d=r.fetch,f=r.Response,p=r.TextDecoder,m=r.TextEncoder,g=r.AbortController;if(!("u">typeof window)||void 0===u||"readyState"in u||null!=u.body||(u.readyState="loading",window.addEventListener("load",function(t){u.readyState="complete"},!1)),null==o&&null!=l&&(o=function(){return new l("Microsoft.XMLHTTP")}),void 0==Object.create&&(Object.create=function(t){function i(){}return i.prototype=t,new i}),Date.now||(Date.now=function(){return new Date().getTime()}),void 0==g){var y=d;d=function(t,i){var r=i.signal;return y(t,{headers:i.headers,credentials:i.credentials,cache:i.cache}).then(function(t){var i=t.body.getReader();return r._reader=i,r._aborted&&r._reader.cancel(),{status:t.status,statusText:t.statusText,headers:t.headers,body:{getReader:function(){return i}}}})},g=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function _(){this.bitsNeeded=0,this.codePoint=0}_.prototype.decode=function(t){function i(t,i,r){if(1===r)return t>=128>>i&&t<<i<=2047;if(2===r)return t>=2048>>i&&t<<i<=55295||t>=57344>>i&&t<<i<=65535;if(3===r)return t>=65536>>i&&t<<i<=1114111;throw Error()}function r(t,i){if(6===t)return i>>6>15?3:i>31?2:1;if(12===t)return i>15?3:2;if(18===t)return 3;throw Error()}for(var a="",n=this.bitsNeeded,o=this.codePoint,s=0;s<t.length;s+=1){var l=t[s];0!==n&&(l<128||l>191||!i(o<<6|63&l,n-6,r(n,o)))&&(n=0,a+=String.fromCharCode(o=65533)),0===n?(l>=0&&l<=127?(n=0,o=l):l>=192&&l<=223?(n=6,o=31&l):l>=224&&l<=239?(n=12,o=15&l):l>=240&&l<=247?(n=18,o=7&l):(n=0,o=65533),0===n||i(o,n,r(n,o))||(n=0,o=65533)):(n-=6,o=o<<6|63&l),0===n&&(o<=65535?a+=String.fromCharCode(o):(a+=String.fromCharCode(55296+(o-65535-1>>10)),a+=String.fromCharCode(56320+(o-65535-1&1023))))}return this.bitsNeeded=n,this.codePoint=o,a},(void 0==p||void 0==m||!function(){try{return"test"===new p().decode(new m().encode("test"),{stream:!0})}catch(t){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+t)}return!1}())&&(p=_);var v=function(){};function b(t){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=v,this.onload=v,this.onerror=v,this.onreadystatechange=v,this._contentType="",this._xhr=t,this._sendTimeout=0,this._abort=v}function x(t){return t.replace(/[A-Z]/g,function(t){return String.fromCharCode(t.charCodeAt(0)+32)})}function w(t){for(var i=Object.create(null),r=t.split("\r\n"),a=0;a<r.length;a+=1){var n=r[a].split(": "),o=n.shift(),s=n.join(": ");i[x(o)]=s}this._map=i}function k(){}function T(t){this._headers=t}function S(){}function A(){this._listeners=Object.create(null)}function C(t){a(function(){throw t},0)}function E(t){this.type=t,this.target=void 0}function M(t,i){E.call(this,t),this.data=i.data,this.lastEventId=i.lastEventId}function P(t,i){E.call(this,t),this.status=i.status,this.statusText=i.statusText,this.headers=i.headers}function D(t,i){E.call(this,t),this.error=i.error}b.prototype.open=function(t,i){this._abort(!0);var r=this,s=this._xhr,l=1,c=0;this._abort=function(t){0!==r._sendTimeout&&(n(r._sendTimeout),r._sendTimeout=0),(1===l||2===l||3===l)&&(l=4,s.onload=v,s.onerror=v,s.onabort=v,s.onprogress=v,s.onreadystatechange=v,s.abort(),0!==c&&(n(c),c=0),t||(r.readyState=4,r.onabort(null),r.onreadystatechange())),l=0};var u=function(){if(1===l){var t=0,i="",a=void 0;if("contentType"in s)t=200,i="OK",a=s.contentType;else try{t=s.status,i=s.statusText,a=s.getResponseHeader("Content-Type")}catch(r){t=0,i="",a=void 0}0!==t&&(l=2,r.readyState=2,r.status=t,r.statusText=i,r._contentType=a,r.onreadystatechange())}},h=function(){if(u(),2===l||3===l){l=3;var t="";try{t=s.responseText}catch(t){}r.readyState=3,r.responseText=t,r.onprogress()}},d=function(t,i){if((null==i||null==i.preventDefault)&&(i={preventDefault:v}),h(),1===l||2===l||3===l){if(l=4,0!==c&&(n(c),c=0),r.readyState=4,"load"===t)r.onload(i);else if("error"===t)r.onerror(i);else if("abort"===t)r.onabort(i);else throw TypeError();r.onreadystatechange()}},f=function(t){void 0!=s&&(4===s.readyState?"onload"in s&&"onerror"in s&&"onabort"in s||d(""===s.responseText?"error":"load",t):3
2===s.readyState?"onprogress"in s||h():2===s.readyState&&u())},p=function(){c=a(function(){p()},500),3===s.readyState&&h()};"onload"in s&&(s.onload=function(t){d("load",t)}),"onerror"in s&&(s.onerror=function(t){d("error",t)}),"onabort"in s&&(s.onabort=function(t){d("abort",t)}),"onprogress"in s&&(s.onprogress=h),"onreadystatechange"in s&&(s.onreadystatechange=function(t){f(t)}),("contentType"in s||!("ontimeout"in o.prototype))&&(i+=(-1===i.indexOf("?")?"?":"&")+"padding=true"),s.open(t,i,!0),"readyState"in s&&(c=a(function(){p()},0))},b.prototype.abort=function(){this._abort(!1)},b.prototype.getResponseHeader=function(t){return this._contentType},b.prototype.setRequestHeader=function(t,i){var r=this._xhr;"setRequestHeader"in r&&r.setRequestHeader(t,i)},b.prototype.getAllResponseHeaders=function(){return void 0!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},b.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&void 0!=u&&void 0!=u.readyState&&"complete"!==u.readyState){var t=this;t._sendTimeout=a(function(){t._sendTimeout=0,t.send()},4);return}var i=this._xhr;"withCredentials"in i&&(i.withCredentials=this.withCredentials);try{i.send(void 0)}catch(t){throw t}},w.prototype.get=function(t){return this._map[x(t)]},null!=o&&null==o.HEADERS_RECEIVED&&(o.HEADERS_RECEIVED=2),k.prototype.open=function(t,i,r,a,n,s,l){t.open("GET",n);var c=0;for(var u in t.onprogress=function(){var i=t.responseText.slice(c);c+=i.length,r(i)},t.onerror=function(t){t.preventDefault(),a(Error("NetworkError"))},t.onload=function(){a(null)},t.onabort=function(){a(null)},t.onreadystatechange=function(){t.readyState===o.HEADERS_RECEIVED&&i(t.status,t.statusText,t.getResponseHeader("Content-Type"),new w(t.getAllResponseHeaders()))},t.withCredentials=s,l)Object.prototype.hasOwnProperty.call(l,u)&&t.setRequestHeader(u,l[u]);return t.send(),t},T.prototype.get=function(t){return this._headers.get(t)},S.prototype.open=function(t,i,r,a,n,o,s){var l=null,c=new g,u=c.signal,f=new p;return d(n,{headers:s,credentials:o?"include":"same-origin",signal:u,cache:"no-store"}).then(function(t){return l=t.body.getReader(),i(t.status,t.statusText,t.headers.get("Content-Type"),new T(t.headers)),new h(function(t,i){var a=function(){l.read().then(function(i){i.done?t(void 0):(r(f.decode(i.value,{stream:!0})),a())}).catch(function(t){i(t)})};a()})}).catch(function(t){if("AbortError"!==t.name)return t}).then(function(t){a(t)}),{abort:function(){null!=l&&l.cancel(),c.abort()}}},A.prototype.dispatchEvent=function(t){t.target=this;var i=this._listeners[t.type];if(void 0!=i)for(var r=i.length,a=0;a<r;a+=1){var n=i[a];try{"function"==typeof n.handleEvent?n.handleEvent(t):n.call(this,t)}catch(t){C(t)}}},A.prototype.addEventListener=function(t,i){t=String(t);var r=this._listeners,a=r[t];void 0==a&&(a=[],r[t]=a);for(var n=!1,o=0;o<a.length;o+=1)a[o]===i&&(n=!0);n||a.push(i)},A.prototype.removeEventListener=function(t,i){t=String(t);var r=this._listeners,a=r[t];if(void 0!=a){for(var n=[],o=0;o<a.length;o+=1)a[o]!==i&&n.push(a[o]);0===n.length?delete r[t]:r[t]=n}},M.prototype=Object.create(E.prototype),P.prototype=Object.create(E.prototype),D.prototype=Object.create(E.prototype);var I=/^text\/event\-stream(;.*)?$/i,z=function(t,i){var r=null==t?i:parseInt(t,10);return r!=r&&(r=i),F(r)},F=function(t){return Math.min(Math.max(t,1e3),18e6)},R=function(t,i,r){try{"function"==typeof i&&i.call(t,r)}catch(t){C(t)}};function O(t,i){var r,l,c,u,h,d,f,p,m,g,y,_,v,x,w,T,C,E,O,j,N,$,V,U,G,q,Z,H,W,X;A.call(this),i=i||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,r=this,l=t,c=i,l=String(l),u=!!c.withCredentials,h=c.lastEventIdQueryParameterName||"lastEventId",d=F(1e3),f=z(c.heartbeatTimeout,45e3),p="",m=d,g=!1,y=0,_=c.headers||{},v=c.Transport,x=B&&void 0==v?void 0:new b(void 0!=v?new v:void 0!=o&&"withCredentials"in o.prototype||void 0==s?new o:new s),w=null!=v&&"string"!=typeof v?new v:void 0==x?new S:new k,T=void 0,C=0,E=-1,O="",j="",N="",$="",V=0,U=0,G=0,q=function(t,i,a,n){if
2(0===E)if(200===t&&void 0!=a&&I.test(a)){E=1,g=Date.now(),m=d,r.readyState=1;var o=new P("open",{status:t,statusText:i,headers:n});r.dispatchEvent(o),R(r,r.onopen,o)}else{var s="";200!==t?(i&&(i=i.replace(/\s+/g," ")),s="EventSource's response has a status "+t+" "+i+" that is not 200. Aborting the connection."):s="EventSource's response has a Content-Type specifying an unsupported type: "+(void 0==a?"-":a.replace(/\s+/g," "))+". Aborting the connection.",W();var o=new P("error",{status:t,statusText:i,headers:n});r.dispatchEvent(o),R(r,r.onerror,o),console.error(s)}},Z=function(t){if(1===E){for(var i=-1,o=0;o<t.length;o+=1){var s=t.charCodeAt(o);(10===s||13===s)&&(i=o)}var l=(-1!==i?$:"")+t.slice(0,i+1);$=(-1===i?$:"")+t.slice(i+1),""!==t&&(g=Date.now(),y+=t.length);for(var c=0;c<l.length;c+=1){var s=l.charCodeAt(c);if(-1===V&&10===s)V=0;else if(-1===V&&(V=0),13===s||10===s){if(0!==V){1===V&&(G=c+1);var u=l.slice(U,G-1),h=l.slice(G+ +(G<c&&32===l.charCodeAt(G)),c);"data"===u?(O+="\n",O+=h):"id"===u?j=h:"event"===u?N=h:"retry"===u?m=d=z(h,d):"heartbeatTimeout"===u&&(f=z(h,f),0!==C&&(n(C),C=a(function(){X()},f)))}if(0===V){if(""!==O){p=j,""===N&&(N="message");var _=new M(N,{data:O.slice(1),lastEventId:j});if(r.dispatchEvent(_),"open"===N?R(r,r.onopen,_):"message"===N?R(r,r.onmessage,_):"error"===N&&R(r,r.onerror,_),2===E)return}O="",N=""}V=13===s?-1:0}else 0===V&&(U=c,V=1),1===V?58===s&&(G=c+1,V=2):2===V&&(V=3)}}},H=function(t){if(1===E||0===E){E=-1,0!==C&&(n(C),C=0),C=a(function(){X()},m),m=F(Math.min(16*d,2*m)),r.readyState=0;var i=new D("error",{error:t});r.dispatchEvent(i),R(r,r.onerror,i),void 0!=t&&console.error(t)}},W=function(){E=2,void 0!=T&&(T.abort(),T=void 0),0!==C&&(n(C),C=0),r.readyState=2},X=function(){if(C=0,-1!==E){if(g||void 0==T){var t=Math.max((g||Date.now())+f-Date.now(),1);g=!1,C=a(function(){X()},t)}else H(Error("No activity within "+f+" milliseconds. "+(0===E?"No response received.":y+" chars received.")+" Reconnecting.")),void 0!=T&&(T.abort(),T=void 0);return}g=!1,y=0,C=a(function(){X()},f),E=0,O="",N="",j=p,$="",U=0,G=0,V=0;var i=l;if("data:"!==l.slice(0,5)&&"blob:"!==l.slice(0,5)&&""!==p){var n=l.indexOf("?");i=(-1===n?l:l.slice(0,n+1)+l.slice(n+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(t,i){return i===h?"":t}))+((-1===l.indexOf("?")?"?":"&")+h+"=")+encodeURIComponent(p)}var o=r.withCredentials,s={};s.Accept="text/event-stream";var c=r.headers;if(void 0!=c)for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&(s[u]=c[u]);try{T=w.open(x,q,Z,H,i,o,s)}catch(t){throw W(),t}},r.url=l,r.readyState=0,r.withCredentials=u,r.headers=_,r._close=W,X()}var B=void 0!=d&&void 0!=f&&"body"in f.prototype;O.prototype=Object.create(A.prototype),O.prototype.CONNECTING=0,O.prototype.OPEN=1,O.prototype.CLOSED=2,O.prototype.close=function(){this._close()},O.CONNECTING=0,O.OPEN=1,O.CLOSED=2,O.prototype.withCredentials=void 0;var j=c;void 0==o||void 0!=c&&"withCredentials"in c.prototype||(j=O);var N=function(t){t.EventSourcePolyfill=O,t.NativeEventSource=c,t.EventSource=j};if("object"==typeof t.exports){var $=N(i);void 0!==$&&(t.exports=$)}else"function"==typeof define&&define.amd?define(["exports"],N):N(r)}("u"<typeof globalThis?"u">typeof window?window:"u">typeof self?self:this:globalThis)},39158(t){"u">typeof self&&self,t.exports=function(){"use strict";var t,i=[,function(){"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"==typeof"test".__proto__?function(t){return t.__proto__}:function(t){return t.constructor.prototype})},function(){Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(t,i){if(this==null)throw TypeError('"this" is null or not defined');let r=Object(this),a=r.length>>>0;if(0===a)return!1;let n=0|i,o=Math.max(n>=0?n:a-Math.abs(n),0);for(;o<a;){if(r[o]===t)return!0;o++}return!1}})},function(){let t=Function.bind.call(Function.call,Array.prototype.reduce),i=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),r=Function.bind.call(Function.call,Array.prototype.concat),a=Object.keys;Object.entries||(Object.entries=function(n){return t(a(n),(t,a)=>r(t,"string"==typeof a&&i(n,a)?[[a,n[a]]]:[]),[])})},function(){String.prototype.includes||(String.prototype.includes=function(t,i){return"number"!=typeof i&&(i=0),!(i+t.length>this.length)&&-1!==this.indexOf(t,i)})},function(){if(void 0===FormData.Inputmask){class t extends FormData{constructor(t,i){let r;super(t,i);let a=this.entries();for(;!1===(r=a.next()).done;){let i=r.value[0],a=r.value[1],n=t[i];!n||void 0===n.inputmask||a instanceof File||this.set(i,n.value)}return this}}t.Inputmask=!0,FormData=t}},function(t,i,r){var a,n=(a=r(7))&&a.__esModule?a:{default:a},o=r(20),s=r(22);n.default.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"up
2per"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});let l=/25[0-5]|2[0-4][0-9]|[01][0-9][0-9]/;function c(t,i,r,a,n){if(r-1>-1&&"."!==i.buffer[r-1]?(t=i.buffer[r-1]+t,t=r-2>-1&&"."!==i.buffer[r-2]?i.buffer[r-2]+t:"0"+t):t="00"+t,n.greedy&&parseInt(t)>255&&l.test("00"+t.charAt(2))){let a=[...i.buffer.slice(0,r),".",t.charAt(2)];if(a.join("").match(/\./g).length<4)return{refreshFromBuffer:!0,buffer:a,caret:r+2}}return l.test(t)}n.default.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)://.*",autoUnmask:!1,keepStatic:!1,tabThrough:!0},ip:{mask:"i{1,3}.j{1,3}.k{1,3}.l{1,3}",definitions:{i:{validator:c},j:{validator:c},k:{validator:c},l:{validator:c}},onUnMask:function(t,i,r){return t},inputmode:"decimal",substitutes:{",":"."}},email:{mask:function({separator:t,quantifier:i}){let r="*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",a=r;if(t)for(let n=0;n<i;n++)a+=`[${t}${r}]`;return a},greedy:!1,casing:"lower",separator:null,quantifier:5,skipOptionalPartCharacter:"",onBeforePaste:function(t,i){return(t=t.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(t,i,r){return t},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:!0,autoUnmask:!0},ssn:{mask:"999-99-9999",postValidation:function(t,i,r,a,n,l,c){let u=s.getMaskTemplate.call(this,!0,o.getLastValidPosition.call(this),!0,!0);return/^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(u.join(""))}}})},function(t,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=m(r(8)),n=m(r(9)),o=m(r(10)),s=r(15),l=m(r(11)),c=r(16),u=r(23),h=r(24),d=r(20),f=r(21),p=r(22);function m(t){return t&&t.__esModule?t:{default:t}}let g=l.default.document,y="_inputmask_opts";function _(t,i,r){if(!(this instanceof _))return new _(t,i,r);this.dependencyLib=o.default,this.el=void 0,this.events={},this.maskset=void 0,!0!==r&&("[object Object]"===Object.prototype.toString.call(t)?i=t:(i=i||{},t&&(i.alias=t)),this.opts=o.default.extend(!0,{},this.defaults,i),this.noMasksCache=i&&void 0!==i.definitions,this.userOptions=i||{},v(this.opts.alias,i,this.opts)),this.refreshValue=!1,this.undoValue=void 0,this.$el=void 0,this.skipInputEvent=!1,this.validationEvent=!1,this.ignorable=!1,this.maxLength,this.mouseEnter=!1,this.clicked=0,this.originalPlaceholder=void 0,this.isComposing=!1,this.lastInputEvent=null,this.hasAlternator=!1}function v(t,i,r){let a=_.prototype.aliases[t];return a?(a.alias&&v(a.alias,void 0,r),o.default.extend(!0,r,a),o.default.extend(!0,r,i),!0):(null===r.mask&&(r.mask=t),!1)}_.prototype={dataAttribute:"data-inputmask",defaults:a.default,definitions:n.default,aliases:{},masksCache:{},i18n:{},get isRTL(){return this.opts.isRTL||this.opts.numericInput},mask:function(t){let i=this;return"string"==typeof t&&(t=g.getElementById(t)||g.querySelectorAll(t)),(t=t.nodeName?[t]:Array.isArray(t)?t:[].slice.call(t)).forEach(function(t,r){let a=o.default.extend(!0,{},i.opts);if(function(t,i,r,a){function n(i,n){let o=""===a?i:a+"-"+i;null!==(n=void 0!==n?n:t.getAttribute(o))&&("string"==typeof n&&(i.startsWith("on")?n=l.default[n]:"false"===n?n=!1:"true"===n?n=!0:"mask"===i&&(n=n.replace(/\\\\/g,"\\"))),r[i]=n)}if(!0===i.importDataAttributes){let o=t.getAttribute(a),s,l,c,u;if(o&&""!==o&&(l=JSON.parse("{"+(o=o.replace(/'/g,'"'))+"}")),l){for(u in c=void 0,l)if("alias"===u.toLowerCase()){c=l[u];break}}for(s in n("alias",c),r.alias&&v(r.alias,r,i),i){if(l){for(u in c=void 0,l)if(u.toLowerCase()===s.toLowerCase()){c=l[u];break}}n(s,c)}}return o.default.extend(!0,i,r),("rtl"===t.dir||i.rightAlign)&&(t.style.textAlign="right"),("rtl"===t.dir||i.numericInput)&&(t.dir="ltr",t.removeAttribute("dir"),i.isRTL=!0),Object.keys(r).length}(t,a,o.default.extend(!0,{},i.userOptions),i.dataAttribute)){let r=(0,h.generateMaskSet)(a,i.noMasksCache);void 0!==r&&(void 0!==t.inputmask&&(t.inputmask.opts.autoUnmask=!0,t.inputmask.remove()),t.inputmask=new _(void 0,void 0,!0),t.inputmask.opts=a,t.inputmask.noMasksCache=i.noMasksCache,t.inputmask.userOptions=o.default.extend(!0,{},i.userOptions),t.inputmask.el=t,t.inputmask.$el=(0,o.default)(t),t.inputmask.maskset=r,o.default.data(t,y,i.userOptions),u.mask.call(t.inputmask))}}),t&&t[0]&&t[0].inputmask||this},option:function(t,i){return"string"==typeof t?this.opts[t]:"object"==typeof t?(o.default.extend(this.userOptions,t),this.el&&!0!==i&&this.mask(this.el),this):void 0},unmaskedvalue:function(t){if(this.maskset=this.maskset||(0,h.generateMaskSet)(this.opts,this.noMasksCache),void 0===this.el||void 0!==t){let i=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,t,this.opts)||t).split("");c.checkVal.call(this,void 0,!1,!1,i),"function"==typeof this.opts.onBeforeWrite&&this.opts.onBeforeWrite.call(this,void 0,d.getBuffer.call(this),0,this.opts)}return c.unmaskedvalue.call(this,this.el)},remove:function(){if(this.el){o.default.data(this.el,y,null);let t=this.opts.autoUnmask?(0,c.unmaskedvalue)(this.el):this._valueGet(this.opts.autoUnmask);t!==d.getBufferTemplate.call(this).join("")?this._valueSet(t,this.opts.autoUnmask):this._valueSet(""),s.EventRuler.off(this.el),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(this.el),"value")&&this.__valueGet&&Object.defineProperty(this.el,"value",{get:this.__valueGet,set:this.__valueSet,configurable:!0}):g.__lookupGetter__&&this.el.__lookupGetter__("value")&&this.__valueGet&&(this.el.__defineGetter__("value",this.__valueGet),this.el.__defineSetter__("value",this.__valueSet)),this.el.inputmask=void 0}return this.el},getemptymask:function(){return this.maskset=this.maskset||(0,h.generateMaskSet)(this.opts,this.noMasksCache),(this.isRTL?d.getBufferTemplate.call(this).reverse():d.getBufferTemplate.call(this)).join("")},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||(0,h.generateMaskSet)(this.opts,this.noMasksCache),f.isComplete.call(this,d.getBuffer.call(this))},getmetadata:function(){if(this.maskset=this.maskset||(0,h.generateMaskSet)(this.opts,this.noMasksCache),Array.isArray(this.maskset.metadata)){let t=p.getMaskTemplate.call(this,!0,0,!1).join("");return this.maskset.metadata.forEach(function(i){return i.mask!==t||(t=i,!1)}),t}return this.maskset.metadata},isValid:function(t){if(this.maskset=this.maskset||(0,h.generateMaskSet)(this.opts,this.noMasksCache),t){let i=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,t,this.opts)||t).split("");c.checkVal.call(this,void 0,!0,!1,i)}let i=c.clearOptionalTail.call(this,[]),r=f.isComplete.call(this,i),a=t===(this.isRTL?i.reverse().join(""):i.join(""));return r&&(void 0===t||a)},format:function(t,i){this.maskset=this.maskset||(0,h.generateMaskSet)(this.opts,this.noMasksCache);let r=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,t,this.opts)||t).split("");c.checkVal.call(this,void 0,!0,!1,r);let a=this.isRTL?d.getBuffer.call(this).slice().reverse().join(""):d.getBuffer.call(this).join("");return i?{value:a,metadata:this.getmetadata()}:a},setValue:function(t){this.el&&(0,o.default)(this.el).trigger("setvalue",[t])},analyseMask:h.analyseMask},_.extendDefaults=function(t){o.default.extend(!0,_.prototype.defaults,t)},_.extendDefinitions=function(t){o.default.extend(!0,_.prototype.definitions,t)},_.extendAliases=function(t){o.default.extend(!0,_.prototype.aliases,t)},_.format=function(t,i,r){return _(i).format(t,r)},_.unmask=function(t,i){return _(i).unmaskedvalue(t)},_.isValid=function(t,i){return _(i).isValid(t)},_.remove=function(t){"string"==typeof t&&(t=g.getElementById(t)||g.querySelectorAll(t)),t=t.nodeName?[t]:t;for(let i=0;i<t.length;i++)t[i].inputmask&&t[i].inputmask.remove()},_.setValue=function(t,i){"string"==typeof t&&(t=g.getElementById(t)||g.querySelectorAll(t)),(t=t.nodeName?[t]:t).forEach(function(t){t.inputmask?t.inputmask.setValue(i):(0,o.default)(t).trigger("setvalue",[i])})},_.dependencyLib=o.default,l.default.Inputmask=_,i.default=_},function(t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,i.default={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:()=>{},onincomplete:()=>{},oncleared:()=>{},repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:()=>{},onBeforeMask:null,onBeforePaste:function(t,i){return"function"==typeof i.onBeforeMask?
2i.onBeforeMask.call(this,t,i):t},onBeforeWrite:null,onUnMask:null,outputMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:()=>{},skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}}},function(t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,i.default={9:{validator:"\\p{N}",definitionSymbol:"*"},a:{validator:"\\p{L}",definitionSymbol:"*"},"*":{validator:"[\\p{L}\\p{N}]"}}},function(t,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=l(r(11)),n=l(r(12)),o=r(13),s=l(r(14));function l(t){return t&&t.__esModule?t:{default:t}}let c=a.default.document;function u(t){return t instanceof u?t:this instanceof u?void(null!=t&&t!==a.default&&(this[0]=t.nodeName?t:void 0!==t[0]&&t[0].nodeName?t[0]:c.querySelector(t),void 0!==this[0]&&null!==this[0]&&(0,n.default)(this[0],"events",(0,n.default)(this[0],"events")||{}))):new u(t)}u.prototype={on:o.on,off:o.off,trigger:o.trigger},u.extend=s.default,u.data=n.default,u.Event=o.Event,i.default=u},function(t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,i.default="u">typeof window&&window.document&&window.document.createElement?window:{}},function(t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,i,r){if(void 0===r)return t.__data?t.__data[i]:null;t.__data=t.__data||{},t.__data[i]=r}},function(t,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.Event=void 0,i.off=function(t,i){let r,a;return u(this[0])&&(r=(0,n.default)(this[0],"events"),a=this[0],""!==(t=t||Object.keys(r).join(" "))&&t.split(" ").forEach(t=>{let[n,o]=t.split(".");(function(t,a){let n,o,s=[];if(t.length>0){let l=a?[a]:Object.keys(r[t]);for(let c=0;c<l.length;c++)if(a=l[c],void 0===i)for(n=0,o=r[t][a]?.length||0;n<o;n++)s.push({ev:t,namespace:a,handler:r[t][a][n]});else s.push({ev:t,namespace:a,handler:i})}else if(a.length>0){for(let t in r)if(r[t][a])if(void 0===i)for(n=0,o=r[t][a].length;n<o;n++)s.push({ev:t,namespace:a,handler:r[t][a][n]});else s.push({ev:t,namespace:a,handler:i})}return s})(n,o).forEach(({ev:t,handler:i,namespace:n})=>{if(t in r==!0)if(a.removeEventListener?a.removeEventListener(t,i,!1):a.detachEvent&&a.detachEvent(`on${t}`,i),"global"===n)for(let a in r[t])r[t][a].splice(r[t][a].indexOf(i),1);else r[t][n].splice(r[t][n].indexOf(i),1)})})),this},i.on=function(t,i){if(!this[0]||!u(this[0]))return this;let r=this[0],a=(0,n.default)(r,"events");return t.split(" ").forEach(t=>{let[n,o="global"]=t.split(".");r.addEventListener?r.addEventListener(n,i,!1):r.attachEvent&&r.attachEvent(`on${n}`,i),a[n]=a[n]||{},a[n][o]=a[n][o]||[],a[n][o].push(i)}),this},i.trigger=function(t){if(u(this[0])){let i=(0,n.default)(this[0],"events"),r=this[0],a="string"==typeof t?t.split(" "):[t.type];for(let n=0;n<a.length;n++){let l=a[n].split("."),u=l[0],h=l[1]||"global";if(void 0!==c){let i,a={bubbles:!0,cancelable:!0,composed:!0,detail:arguments[1]};if(c.createEvent){try{"input"===u?(a.inputType="insertText",i=new InputEvent(u,a)):i=new CustomEvent(u,a)}catch(t){(i=c.createEvent("CustomEvent")).initCustomEvent(u,a.bubbles,a.cancelable,a.detail)}t.type&&(0,o.default)(i,t),r.dispatchEvent(i)}else(i=c.createEventObject()).eventType=u,i.detail=arguments[1],t.type&&(0,o.default)(i,t),r.fireEvent("on"+i.eventType,i)}else if(void 0!==i[u]){arguments[0]=arguments[0].type?arguments[0]:s.default.Event(arguments[0]),arguments[0].detail=arguments.slice(1);let t=i[u];("global"===h?Object.values(t).flat():t[h]).forEach(t=>t.apply(r,arguments))}}}return this};var a=l(r(11)),n=l(r(12)),o=l(r(14)),s=l(r(10));function l(t){return t&&t.__esModule?t:{default:t}}let c=a.default.document;function u(t){return t instanceof Element&&(0,n.default)(t,"events")}let h=i.Event=void 0;"function"==typeof a.default.CustomEvent?i.Event=h=a.default.CustomEvent:a.default.Event&&c&&c.createEvent?(i.Event=h=function(t,i){i=i||{bubbles:!1,cancelable:!1,
2composed:!0,detail:void 0};let r=c.createEvent("CustomEvent");return r.initCustomEvent(t,i.bubbles,i.cancelable,i.detail),r},h.prototype=a.default.Event.prototype):"u">typeof Event&&(i.Event=h=Event)},function(t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function t(){let i,r,a,n,o,s,l=arguments[0]||{},c=1,u=arguments.length,h=!1;for("boolean"==typeof l&&(h=l,l=arguments[c]||{},c++),"object"!=typeof l&&"function"!=typeof l&&(l={});c<u;c++)if(null!=(i=arguments[c]))for(r in i)a=l[r],l!==(n=i[r])&&(h&&n&&("[object Object]"===Object.prototype.toString.call(n)||(o=Array.isArray(n)))?(o?(o=!1,s=a&&Array.isArray(a)?a:[]):s=a&&"[object Object]"===Object.prototype.toString.call(a)?a:{},l[r]=t(h,s,n)):void 0!==n&&(l[r]=n));return l}},function(t,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.EventRuler=void 0;var a,n=r(16),o=(a=r(7))&&a.__esModule?a:{default:a},s=r(19),l=r(20);i.EventRuler={on:function(t,i,r){let a=t.inputmask.dependencyLib,c=function(i){let c;i.originalEvent&&(i=i.originalEvent||i,arguments[0]=i);let u=this,h=u.inputmask,d=h?h.opts:void 0;if(void 0===h&&"FORM"!==this.nodeName){let t=a.data(u,"_inputmask_opts");a(u).off(),t&&new o.default(t).mask(u)}else if(!["submit","reset","setvalue"].includes(i.type)&&"FORM"!==this.nodeName&&(u.disabled||u.readOnly&&!("keydown"===i.type&&i.ctrlKey&&i.key===s.keys.c||!1===d.tabThrough&&i.key===s.keys.Tab)))i.preventDefault();else{switch(i.type){case"input":if(!0===h.skipInputEvent)return h.skipInputEvent=!1,i.preventDefault();h.lastInputEvent={time:Date.now(),data:i.data};break;case"keydown":if(h.lastInputEvent&&Date.now()-h.lastInputEvent.time<10&&h.lastInputEvent.data===i.key)return!1;break;case"click":case"focus":if(h.validationEvent)return h.validationEvent=!1,t.blur(),(0,n.HandleNativePlaceholder)(t,(h.isRTL?l.getBufferTemplate.call(h).slice().reverse():l.getBufferTemplate.call(h)).join("")),setTimeout(function(){t.focus()},d.validationEventTimeOut),!1;c=arguments,setTimeout(function(){t.inputmask&&r.apply(u,c)},0);return}let a=r.apply(u,arguments);return!1===a&&(i.preventDefault(),i.stopPropagation()),a}};["submit.inputmask","reset.inputmask"].includes(i=`${i}.inputmask`)?(c=c.bind(t),null!==t.form&&a(t.form).on(i,c)):a(t).on(i,c)},off:function(t,i){t.inputmask&&(0,t.inputmask.dependencyLib)(t).off(i||".inputmask")}}},function(t,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.HandleNativePlaceholder=function(t,i){let r=t?t.inputmask:this;if(n.ie){if(t.inputmask._valueGet()!==i&&(t.placeholder!==i||""===t.placeholder)){let a=c.getBuffer.call(r).slice(),n=t.inputmask._valueGet();if(n!==i){let i=c.getLastValidPosition.call(r);-1===i&&n===c.getBufferTemplate.call(r).join("")?a=[]:-1!==i&&f.call(r,a),m(t,a)}}}else t.placeholder!==i&&(t.placeholder=i,""===t.placeholder&&t.removeAttribute("placeholder"))},i.applyInputValue=d,i.checkVal=p,i.clearOptionalTail=f,i.unmaskedvalue=function(t){let i=t?t.inputmask:this,r=i.opts,a=i.maskset;if(t){if(void 0===t.inputmask)return t.value;t.inputmask&&t.inputmask.refreshValue&&d(t,t.inputmask._valueGet(!0))}let n=[],o=a.validPositions;for(let t=0,i=o.length;t<i;t++)o[t]&&o[t].match&&(!0!=o[t].match.static||!0!==r.keepStatic&&Array.isArray(a.metadata)&&!0!==o[t].generatedInput)&&n.push(o[t].input);let l=0===n.length?"":(i.isRTL?n.reverse():n).join("");if("function"==typeof r.onUnMask){let t=(i.isRTL?c.getBuffer.call(i).slice().reverse():c.getBuffer.call(i)).join("");l=r.onUnMask.call(i,t,l,r)}return r.outputMask&&l.length>0?s.default.format(l,{...r,mask:r.outputMask,alias:null}):l},i.writeBuffer=m;var a,n=r(17),o=r(18),s=(a=r(7))&&a.__esModule?a:{default:a},l=r(19),c=r(20),u=r(21),h=r(22);function d(t,i,r,a){let n=t?t.inputmask:this,o=n.opts;t.inputmask.refreshValue=!1,!0!==a&&"function"==typeof o.onBeforeMask&&(i=o.onBeforeMask.call(n,i,o)||i),p(t,!0,!1,i=(i||"").toString().split(""),r),n.undoValue=n._valueGet(!0),(o.clearMaskOnLostFocus||o.clearIncomplete)&&t.inputmask._valueGet()===c.getBufferTemplate.call(n).join("")&&-1===c.getLastValidPosition.call(n)&&t.inputmask._valueSet("")}function f(t){t.length=0;let i=h.getMaskTemplate.call(this,!0,0,!0,void 0,!0),r;for(;void 0!==(r=i.shift());)t.push(r);return t}function p(t,i,r,a,n){let s=t?t.inputmask:this,l=s.maskset,d=s.opts,f=s.dependencyLib,p=a.slice(),g="",y=-1,_,v=d.skipOptionalPartCharacter;d.skipOptionalPartCharacter="",c.resetMaskSet.call(s,!1),s.clicked=0,l.p=y=d.radixPoint?c.determineNewCaretPosition.call(s,{begin:0,end:0},!1,!1===d.__financeInput?"radixFocus":void 0).begin:0,s.caretPos={begin:y};let b=[],x=s.caretPos;
2if(p.forEach(function(t,i){if(void 0!==t){let a=new f.Event("_checkval");a.key=t,g+=t;let n=c.getLastValidPosition.call(s,void 0,!0);!function(t,i){let r=h.getMaskTemplate.call(s,!0,0).slice(t,c.seekNext.call(s,t,!1,!1)).join("").replace(/'/g,""),a=r.indexOf(i);for(;a>0&&" "===r[a-1];)a--;let n=0===a&&!c.isMask.call(s,t)&&(h.getTest.call(s,t).match.nativeDef===i.charAt(0)||!0===h.getTest.call(s,t).match.static&&h.getTest.call(s,t).match.nativeDef==="'"+i.charAt(0)||" "===h.getTest.call(s,t).match.nativeDef&&(h.getTest.call(s,t+1).match.nativeDef===i.charAt(0)||!0===h.getTest.call(s,t+1).match.static&&h.getTest.call(s,t+1).match.nativeDef==="'"+i.charAt(0)));if(!n&&a>0&&!c.isMask.call(s,t,!1,!0)){let i=c.seekNext.call(s,t);s.caretPos.begin<i&&(s.caretPos={begin:i})}return n}(y,g)?(_=o.EventHandlers.keypressEvent.call(s,a,!0,!1,r,s.caretPos.begin))&&(y=s.caretPos.begin+1,g=""):_=!0===h.getTest.call(s,i).match.static&&o.EventHandlers.keypressEvent.call(s,a,!0,!1,r,n+1),_?(void 0!==_.pos&&l.validPositions[_.pos]&&!0===l.validPositions[_.pos].match.static&&void 0===l.validPositions[_.pos].alternation&&(b.push(_.pos),s.isRTL||(_.forwardPosition=_.pos+1)),m.call(s,void 0,c.getBuffer.call(s),_.forwardPosition,a,!1),s.caretPos={begin:_.forwardPosition,end:_.forwardPosition},x=s.caretPos):void 0===l.validPositions[i]&&p[i]===h.getPlaceholder.call(s,i)&&c.isMask.call(s,i,!0)?s.caretPos.begin++:s.caretPos=x}}),b.length>0){let t,i,a=c.seekNext.call(s,-1,void 0,!1);if(!u.isComplete.call(s,c.getBuffer.call(s))&&b.length<=a||u.isComplete.call(s,c.getBuffer.call(s))&&b.length>0&&b.length!==a&&0===b[0]){let n=a;for(;void 0!==(t=b.shift());)if(t<n){let a=new f.Event("_checkval");if((i=l.validPositions[t]).generatedInput=!0,a.key=i.input,(_=o.EventHandlers.keypressEvent.call(s,a,!0,!1,r,n))&&void 0!==_.pos&&_.pos!==t&&l.validPositions[_.pos]&&!0===l.validPositions[_.pos].match.static)b.push(_.pos);else if(!_)break;n++}}else for(;t=b.pop();)(i=l.validPositions[t])&&void 0===l.validPositions[t+1]&&delete l.validPositions[t]}i&&m.call(s,t,c.getBuffer.call(s),_?_.forwardPosition:s.caretPos.begin,n||new f.Event("checkval"),n&&("input"===n.type&&s.undoValue!==c.getBuffer.call(s).join("")||"paste"===n.type)),d.skipOptionalPartCharacter=v}function m(t,i,r,a,n){let o=t?t.inputmask:this,s=o.opts,h=o.dependencyLib;if(a&&"function"==typeof s.onBeforeWrite){let t=s.onBeforeWrite.call(o,a,i,r,s);if(t){if(t.refreshFromBuffer){let r=t.refreshFromBuffer;u.refreshFromBuffer.call(o,!0===r?r:r.start,r.end,t.buffer||i),i=c.getBuffer.call(o,!0)}void 0!==r&&(r=void 0!==t.caret?t.caret:r)}}if(void 0!==t&&(t.inputmask._valueSet(i.join("")),void 0!==r&&(void 0===a||"blur"!==a.type)&&c.caret.call(o,t,r,void 0,void 0,void 0!==a&&"keydown"===a.type&&(a.key===l.keys.Delete||a.key===l.ke
2ys.Backspace)),void 0===t.inputmask.writeBufferHook||t.inputmask.writeBufferHook(r),!0===n)){let r=h(t),a=t.inputmask._valueGet();t.inputmask.skipInputEvent=!0,r.trigger("input"),setTimeout(function(){a===c.getBufferTemplate.call(o).join("")?r.trigger("cleared"):!0===u.isComplete.call(o,i)&&r.trigger("complete")},0)}}},function(t,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.mobile=i.iphone=i.ie=void 0;var a,n=(a=r(11))&&a.__esModule?a:{default:a};let o=n.default.navigator&&n.default.navigator.userAgent||"";i.ie=o.indexOf("MSIE ")>0||o.indexOf("Trident/")>0,i.mobile=!!(navigator.userAgentData?.mobile??((matchMedia("(pointer:coarse)").matches||navigator.maxTouchPoints)&&innerWidth<=1024||/Mobi|Android|iPhone/i.test(o))),i.iphone=/iphone/i.test(o)},function(t,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.EventHandlers=void 0;var a,n=r(17),o=(a=r(11))&&a.__esModule?a:{default:a},s=r(16),l=r(19),c=r(20),u=r(21),h=r(22);let d=i.EventHandlers={keyEvent:function(t,i,r,a,o){let f=this.inputmask,p=f.opts,m=f.dependencyLib,g=f.maskset,y=this,_=m(y),v=t.key,b=c.caret.call(f,y),x=p.onKeyDown.call(this,t,c.getBuffer.call(f),b,p);if(void 0!==x)return x;if(v!==l.keys.Backspace&&v!==l.keys.Delete&&(!n.iphone||v!==l.keys.BACKSPACE_SAFARI)&&(!t.ctrlKey||v!==l.keys.x||"oncut"in y))if(v===l.keys.End||v===l.keys.PageDown){t.preventDefault();let i=c.seekNext.call(f,c.getLastValidPosition.call(f));c.caret.call(f,y,t.shiftKey?b.begin:i,i,!0)}else(v!==l.keys.Home||t.shiftKey)&&v!==l.keys.PageUp?p.undoOnEscape&&v===l.keys.Escape&&!0!==t.altKey?((0,s.checkVal)(y,!0,!1,f.undoValue.split("")),_.trigger("click")):v!==l.keys.Insert||t.shiftKey||t.ctrlKey||void 0!==f.userOptions.insertMode?!0===p.tabThrough&&v===l.keys.Tab?!0===t.shiftKey?(b.end=c.seekPrevious.call(f,b.end,!0),!0===h.getTest.call(f,b.end-1).match.static&&b.end--,b.begin=c.seekPrevious.call(f,b.end,!0),b.begin>=0&&b.end>0&&(t.preventDefault(),c.caret.call(f,y,b.begin,b.end))):(b.begin=c.seekNext.call(f,b.begin,!0),b.end=c.seekNext.call(f,b.begin,!0),b.end<g.maskLength&&b.end--,b.begin<=g.maskLength&&(t.preventDefault(),c.caret.call(f,y,b.begin,b.end))):t.shiftKey||(p.insertModeVisual&&!1===p.insertMode?v===l.keys.ArrowRight?setTimeout(function(){let t=c.caret.call(f,y);c.caret.call(f,y,t.begin)},0):v===l.keys.ArrowLeft&&setTimeout(function(){let t={begin:c.translatePosition.call(f,y.inputmask.caretPos.begin),end:c.translatePosition.call(f,y.inputmask.caretPos.end)};f.isRTL?c.caret.call(f,y,t.begin+ +(t.begin!==g.maskLength)):c.caret.call(f,y,t.begin-(0!==t.begin))},0):void 0===f.keyEventHook||f.keyEventHook(t)):u.isSelection.call(f,b)?p.insertMode=!p.insertMode:(p.insertMode=!p.insertMode,c.caret.call(f,y,b.begin,b.begin)):(t.preventDefault(),c.caret.call(f,y,0,t.shiftKey?b.begin:0,!0));else t.preventDefault(),u.handleRemove.call(f,y,v,b),(0,s.writeBuffer)(y,c.getBuffer.call(f,!0),g.p,t,y.inputmask._valueGet()!==c.getBuffer.call(f).join(""));return f.isComposing=v===l.keys.Process||v===l.keys.Unidentified,f.ignorable=void 0===v||v.length>1,d.keypressEvent.call(f,t,i,r,a,o)},keypressEvent:function(t,i,r,a,n){let o=this.inputmask||this,h=o.opts,d=o.dependencyLib,f=o.maskset,p=o.el,m=d(p),g=t.key;if(!0!==i&&!(t.ctrlKey&&t.altKey&&!o.ignorable)&&(t.ctrlKey||t.metaKey||o.ignorable))g===l.keys.Enter&&o.undoValue!==o._valueGet(!0)&&(o.undoValue=o._valueGet(!0),setTimeout(function(){m.trigger("change")},0));else if(g){let l=i?{begin:n,end:n}:c.caret.call(o,p),d;i||(g=h.substitutes[g]||g),f.writeOutBuffer=!0;let m=u.isValid.call(o,l,g,a,void 0,void 0,void 0,i);if(!1!==m&&(c.resetMaskSet.call(o,!0),f.p=d=void 0!==m.caret?m.caret:c.seekNext.call(o,m.pos.begin?m.pos.begin:m.pos)),d=h.numericInput&&void 0===m.caret?c.seekPrevious.call(o,d):d,!1!==r&&(setTimeout(function(){h.onKeyValidation.call(p,g,m)},0),f.writeOutBuffer&&!1!==m)){let r=c.getBuffer.call(o);(0,s.writeBuffer)(p,r,d,t,!0!==i)}if(t.preventDefault(),i)return!1!==m&&(m.forwardPosition=d),m}},pasteEvent:async function(t){let i=this.inputmask,r=i.opts,a=i._valueGet(!0),n;i.skipInputEvent=!0,t.clipboardData&&t.clipboardData.getData?n=t.clipboardData.getData("text/plain"):o.default.clipboardData&&o.default.clipboardData.getData&&(n=o.default.clipboardData.getData("Text")),function(i,a,n,o,l){let u=c.caret.call(i,a,void 0,void 0,!0),h=n.substr(0,u.begin),d=n.substr(u.end,n.length);if(h==(i.isRTL?c.getBufferTemplate.call(i).slice().reverse():c.getBufferTemplate.call(i)).slice(0,u.begin).join("")&&(h=""),d==(i.isRTL?c.getBufferTemplate.call(i).slice().reverse():c.getBufferTemplate.call(i)).slice(u.end).join("")&&(d=""),o=h+o+d,i.isRTL&&!0!==r.numericInput){for(let t of(o=o.split(""),c.getBufferTemplate.call(i)))o[0]===t&&o.shift();o=o.reverse().join("")}let f=o;if("function"==typeof l){if(!1===(f=l.call(i,f,r)))return;f||(f=n)}(0,s.checkVal)(a,!0,!1,f.toString().split(""),t)}(i,this,a,n,r.onBeforePaste),t.preventDefault()},inputFallBackEvent:function(t){let i=this.inputmask,r=i.opts,a=i.dependencyLib,o=this,u=o.inputmask._valueGet(!0),f=(i.isRTL?c.getBuffer.call(i).slice().reverse():c.getBuffer.call(i)).join(""),p=c.caret.call(i,o,void 0,void 0,!0),m;if(f!==u){if(m=function(t,a,n){let o=t.substr(0,n.begin).split(""),s=t.substr(n.begin).split(""),l=a.substr(0,n.begin).split(""),u=a.substr(n.begin).split(""),d=o.length>=l.length?o.length:l.length,f=s.length>=u.length?s.length:u.length,p,m,g="",y=[],_;for(;o.length<d;)o.push("~");for(;l.length<d;)l.push("~");for(;s.length<f;)s.unshift("~");for(;u.length<f;)u.unshift("~");let v=o.concat(s),b=l.concat(u);for(m=0,p=v.length;m<p;m++)switch(_=h.getPlaceholder.call(i,c.translatePosition.call(i,m)),g){case"insertText":b[m-1]===v[m]&&n.begin==v.length-1&&y.push(v[m]),m=p;break;case"insertReplacementText":case"deleteContentBackward":"~"===v[m]?n.end++:m=p;break;default:v[m]!==b[m]&&(("~"===v[m+1]||v[m+1]===_||void 0===v[m+1])&&(b[m]===_&&"~"===b[m+1]||"~"===b[m])||"~"===b[m+1]&&b[m]===v[m+1]?(g="insertText",y.push(v[m]),n.begin--,n.end--):v[m]!==_&&"~"!==v[m]&&("~"===v[m+1]||b[m]!==v[m]&&b[m+1]===v[m+1])?(g="insertReplacementText",y.push(v[m]),n.begin--):"~"===v[m]?(g="deleteContentBackward",(c.isMask.call(i,c.translatePosition.call(i,m),!0)||b[m]===r.radixPoint)&&n.end++):m=p)}return{action:g,data:y,caret:n}}(u,f,p),o.getRootNode().activeElement!==o&&o.focus(),(0,s.writeBuffer)(o,c.getBuffer.call(i)),c.caret.call(i,o,p.begin,p.end,!0),!n.mobile&&i.skipNextInsert&&"insertText"===t.inputType&&"insertText"===m.action&&i.isComposing)return!1;switch("insertCompositionText"===t.inputType&&"insertText"===m.action&&i.isComposing?i.skipNextInsert=!0:i.skipNextInsert=!1,m.action){case"insertText":case"insertReplacementText":m.data.forEach(function(t,r){let n=new a.Event("keypress");n.key=t,i.ignorable=!1,d.keypressEvent.call(o,n)}),setTimeout(function(){i.$el.trigger("keyup")},0);break;case"deleteContentBackward":var g=new a.Event("keydown");g.key=l.keys.Backspace,d.keyEvent.call(o,g);break;
2default:(0,s.applyInputValue)(o,u,t),c.caret.call(i,o,p.begin,p.end,!0)}t.preventDefault()}},setValueEvent:function(t){let i=this.inputmask,r=i.dependencyLib,a=t&&t.detail?t.detail[0]:arguments[1];void 0===a&&(a=this.inputmask._valueGet(!0)),(0,s.applyInputValue)(this,a,new r.Event("input"),(t&&t.detail?t.detail[0]:arguments[1])!==void 0),(t.detail&&void 0!==t.detail[1]||void 0!==arguments[2])&&c.caret.call(i,this,t.detail?t.detail[1]:arguments[2])},focusEvent:function(t){let i=this.inputmask,r=i.opts,a=i&&i._valueGet();r.showMaskOnFocus&&a!==c.getBuffer.call(i).join("")&&(0,s.writeBuffer)(this,c.getBuffer.call(i),c.seekNext.call(i,c.getLastValidPosition.call(i))),!0!==r.positionCaretOnTab||!1!==i.mouseEnter||u.isComplete.call(i,c.getBuffer.call(i))&&-1!==c.getLastValidPosition.call(i)||d.clickEvent.apply(this,[t,!0]),i.undoValue=i&&i._valueGet(!0)},invalidEvent:function(t){this.inputmask.validationEvent=!0},mouseleaveEvent:function(){let t=this.inputmask,i=t.opts;t.mouseEnter=!1,i.clearMaskOnLostFocus&&this.getRootNode().activeElement!==this&&(0,s.HandleNativePlaceholder)(this,t.originalPlaceholder)},clickEvent:function(t,i){let r=this.inputmask;if(r.clicked++,this.getRootNode().activeElement===this){let t=c.determineNewCaretPosition.call(r,c.caret.call(r,this),i);void 0!==t&&c.caret.call(r,this,t)}},cutEvent:function(t){let i=this.inputmask,r=i.maskset,a=c.caret.call(i,this),n=i.isRTL?c.getBuffer.call(i).slice(a.end,a.begin):c.getBuffer.call(i).slice(a.begin,a.end),h=i.isRTL?n.reverse().join(""):n.join("");o.default.navigator&&o.default.navigator.clipboard?o.default.navigator.clipboard.writeText(h):o.default.clipboardData&&o.default.clipboardData.getData&&o.default.clipboardData.setData("Text",h),u.handleRemove.call(i,this,l.keys.Delete,a),(0,s.writeBuffer)(this,c.getBuffer.call(i),r.p,t,i.undoValue!==i._valueGet(!0))},blurEvent:function(t){let i=this.inputmask,r=i.opts,a=i.dependencyLib;i.clicked=0;let n=a(this);if(this.inputmask){(0,s.HandleNativePlaceholder)(this,i.originalPlaceholder);let a=this.inputmask._valueGet(),o=c.getBuffer.call(i).slice();if(""!==a&&(r.clearMaskOnLostFocus&&(-1===c.getLastValidPosition.call(i)&&a===c.getBufferTemplate.call(i).join("")?o=[]:s.clearOptionalTail.call(i,o)),!1===u.isComplete.call(i,o)&&(setTimeout(function(){n.trigger("incomplete")},0),r.clearIncomplete&&(c.resetMaskSet.call(i,!1),o=r.clearMaskOnLostFocus?[]:c.getBufferTemplate.call(i).slice())),(0,s.writeBuffer)(this,o,void 0,t)),a=i._valueGet(!0),i.undoValue!==a){let t=(i.isRTL?c.getBufferTemplate.call(i).slice().reverse():c.getBufferTemplate.call(i)).join("");(""!==a||i.undoValue!==t||i.undoValue===t&&i.maskset.validPositions.length>0)&&(i.undoValue=a,n.trigger("change"))}}},mouseenterEvent:function(){let t=this.inputmask,{showMaskOnHover:i}=t.opts;if(t.mouseEnter=!0,this.getRootNode().activeElement!==this){let r=(t.isRTL?c.getBufferTemplate.call(t).slice().reverse():c.getBufferTemplate.call(t)).join("");i&&(0,s.HandleNativePlaceholder)(this,r)}},submitEvent:function(){let t=this.inputmask,i=t.opts;t.undoValue!==t._valueGet(!0)&&t.$el.trigger("change"),-1===c.getLastValidPosition.call(t)&&t._valueGet&&t._valueGet()===c.getBufferTemplate.call(t).join("")&&t._valueSet(""),i.clearIncomplete&&!1===u.isComplete.call(t,c.getBuffer.call(t))&&t._valueSet(""),i.removeMaskOnSubmit&&(t._valueSet(t.unmaskedvalue(),!0),setTimeout(function(){(0,s.writeBuffer)(t.el,c.getBuffer.call(t))},0))},resetEvent:function(){let t=this.inputmask;t.refreshValue=!0,setTimeout(function(){(0,s.applyInputValue)(t.el,t._valueGet(!0))},0)}}},function(t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.keys=i.keyCode=void 0,i.toKey=function(t,i){return a[t]||(i?String.fromCharCode(t):String.fromCharCode(t).toLowerCase())},i.toKeyCode=function(t){return r[t]};let r=i.keyCode={c:67,x:88,z:90,BACKSPACE_SAFARI:127,Enter:13,Meta_LEFT:91,Meta_RIGHT:92,Space:32,Alt:18,AltGraph:18,ArrowDown:40,ArrowLeft:37,ArrowRight:39,ArrowUp:38,Backspace:8,CapsLock:20,Control:17,ContextMenu:93,Dead:221,Delete:46,End:35,Escape:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,Home:36,Insert:45,NumLock:144,PageDown:34,PageUp:33,Pause:19,PrintScreen:44,Process:229,Shift:16,ScrollLock:145,Tab:9,Unidentified:229},a=Object.entries(r).reduce((t,[i,r])=>(t[r]=void 0===t[r]?i:t[r],t),{});i.keys=Object.entries(r).reduce((t,[i,r])=>
2(t[i]="Space"===i?" ":i,t),{})},function(t,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.caret=function(t,i,r,a,o){let s,l=this.opts;if(void 0===i)return"selectionStart"in t&&"selectionEnd"in t?(i=t.selectionStart,r=t.selectionEnd):n.default.getSelection?((s=n.default.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode===t||s.commonAncestorContainer===t)&&(i=s.startOffset,r=s.endOffset):document.selection&&document.selection.createRange&&(r=(i=0-(s=document.selection.createRange()).duplicate().moveStart("character",-t.inputmask._valueGet().length))+s.text.length),{begin:a?i:d.call(this,i),end:a?r:d.call(this,r)};if(Array.isArray(i)&&(r=this.isRTL?i[0]:i[1],i=this.isRTL?i[1]:i[0]),void 0!==i.begin&&(r=this.isRTL?i.begin:i.end,i=this.isRTL?i.end:i.begin),"number"==typeof i){i=a?i:d.call(this,i),r="number"==typeof(r=a?r:d.call(this,r))?r:i;let c=parseInt(((t.ownerDocument.defaultView||n.default).getComputedStyle?(t.ownerDocument.defaultView||n.default).getComputedStyle(t,null):t.currentStyle).fontSize)*r;if(t.scrollLeft=c>t.scrollWidth?c:0,t.inputmask.caretPos={begin:i,end:r},l.insertModeVisual&&!1===l.insertMode&&i===r&&!o&&r++,t===t.getRootNode().activeElement){if("setSelectionRange"in t)t.setSelectionRange(i,r);else if(n.default.getSelection){if(s=document.createRange(),void 0===t.firstChild||null===t.firstChild){let i=document.createTextNode("");t.appendChild(i)}s.setStart(t.firstChild,i<t.inputmask._valueGet().length?i:t.inputmask._valueGet().length),s.setEnd(t.firstChild,r<t.inputmask._valueGet().length?r:t.inputmask._valueGet().length),s.collapse(!0);let a=n.default.getSelection();a.removeAllRanges(),a.addRange(s)}else t.createTextRange&&((s=t.createTextRange()).collapse(!0),s.moveEnd("character",r),s.moveStart("character",i),s.select());void 0===t.inputmask.caretHook||t.inputmask.caretHook.call(this,{begin:i,end:r})}}},i.determineLastRequiredPosition=function(t){let{maskset:i,dependencyLib:r}=this,a=c.call(this),n={},l=i.validPositions[a],u=s.getMaskTemplate.call(this,!0,c.call(this),!0,!0),h=u.length,d,f=void 0!==l?l.locator.slice():void 0,p;for(d=a+1;d<u.length;d++)f=(p=s.getTestTemplate.call(this,d,f,d-1)).locator.slice(),n[d]=r.extend(!0,{},p);let m=l&&void 0!==l.alternation?l.locator[l.alternation]:void 0;for(d=h-1;d>a;d--)if(((p=n[d]).match.optionality||p.match.optionalQuantifier&&p.match.newBlockMarker||m&&(m!==n[d].locator[l.alternation]&&!0!==p.match.static||!0===p.match.static&&p.locator[l.alternation]&&o.checkAlternationMatch.call(this,p.locator[l.alternation].toString().split(","),m.toString().split(","))&&""!==s.getTests.call(this,d)[0].def))&&u[d]===s.getPlaceholder.call(this,d,p.match)){if(h--,p.match.optionality){let t=d;for(;t>0;){let i=s.getTest.call(this,t);if("master"===i.match.newBlockMarker||!0===i.match.newBlockMarker)break;t--}if(void 0!==i.validPositions[t])break}}else break;return d===a&&(h=d),t?{l:h,def:n[h]?n[h].match:void 0}:h},i.determineNewCaretPosition=function(t,i,r){let a,n,o,d=this,{maskset:f,opts:p}=d;if(i&&(d.isRTL?t.end=t.begin:t.begin=t.end),t.begin===t.end){switch(r=r||p.positionCaretOnClick){case"none":break;case"select":t={begin:0,end:l.call(d).length};break;case"ignore":t.end=t.begin=h.call(d,c.call(d));break;case"radixFocus":if(d.clicked>1&&0===f.validPositions.length)break;if(function(t){if(""!==p.radixPoint&&0!==p.digits){let i=f.validPositions;if(void 0===i[t]||void 0===i[t].input){if(t<h.call(d,-1))return!0;let r=l.call(d).indexOf(p.radixPoint);if(-1!==r){for(let t in i){let a=Number(t);if(r<a&&i[t].input!==s.getPlaceholder.call(d,a))return!1}return!0}}}return!1}(t.begin)){let i=l.call(d).join("").indexOf(p.radixPoint);t.end=t.begin=p.numericInput?h.call(d,i):i;break}default:if(a=t.begin,n=c.call(d,a,!0),a<=(o=h.call(d,-1!==n||u.call(d,0)?n:-1)))t.end=t.begin=u.call(d,a,!1,!0)?a:h.call(d,a);else{let i=f.validPositions[n],r=s.getTestTemplate.call(d,o,i?i.match.locator:void 0,i),c=s.getPlaceholder.call(d,o,r.match);if(""!==c&&l.call(d)[o]!==c&&!0!==r.match.optionalQuantifier&&!0!==r.match.newBlockMarker||!u.call(d,o,p.keepStatic,!0)&&r.match.def===c){let t=h.call(d,o);(a>=t||a===o)&&(o=t)}t.end=t.begin=o}}return t}},i.getBuffer=l,i.getBufferTemplate=function(){let t=this.maskset;return void 0===t._buffer&&(t._buffer=s.getMaskTemplate.call(this,!1,1),void 0===t.buffer&&(t.buffer=t._buffer.slice())),t._buffer},i.getLastValidPosition=c,i.isMask=u,i.resetMaskSet=function(t){let i=this.maskset;i.buffer=void 0,!0!==t&&(i.validPositions=[],i.p=0),!1===t&&(i.tests={},i.jitOffset={})},i.seekNext=h,i.seekPrevious=function(t,i){let r=t-1;if(t<=0)return 0;for(;r>0&&(!0===i&&(!0!==s.getTest.call(this,r).match.newBlockMarker||!u.call(this,r,void 0,!0))||!0!==i&&!u.call(this,r,void 0,!0));)r--;return r},i.translatePosition=d;var a,n=(a=r(11))&&a.__esModule?a:{default:a},o=r(21),s=r(22);function l(t){let{maskset:i}=this;return(void 0===i.buffer||!0===t)&&(i.buffer=s.getMaskTemplate.call(this,!0,c.call(this),!0),void 0===i._buffer&&(i._buffer=i.buffer.slice())),i.buffer}function c(t,i,r){let a=this.maskset,n=-1,o=-1,s=r||a.validPositions;void 0===t&&(t=-1);for(let r=0,a=s.length;r<a;r++)s[r]&&(i||!0!==s[r].generatedInput)&&(r<=t&&(n=r),r>=t&&(o=r));return -1===n||n===t?o:-1===o||t-n<o-t?n:o}function u(t,i,r){let a=this.maskset,n=s.getTestTemplate.call(this,t).match;if(""===n.def&&(n=s.getTest.call(this,t).match),!0!==n.static)return n.fn;
2if(!0===r&&void 0!==a.validPositions[t]&&!0!==a.validPositions[t].generatedInput)return!0;if(!0!==i&&t>-1){if(r){let i=s.getTests.call(this,t);return i.length>1+ +(""===i[i.length-1].match.def)}let i=s.determineTestTemplate.call(this,t,s.getTests.call(this,t)),a=s.getPlaceholder.call(this,t,i.match);return i.match.def!==a}return!1}function h(t,i,r){void 0===r&&(r=!0);let a=t+1;for(;""!==s.getTest.call(this,a).match.def&&(!0===i&&(!0!==s.getTest.call(this,a).match.newBlockMarker||!u.call(this,a,void 0,!0))||!0!==i&&!u.call(this,a,void 0,r));)a++;return a}function d(t){let i=this.opts,r=this.el;return this.isRTL&&"number"==typeof t&&(!i.greedy||""!==i.placeholder)&&r&&(t=this._valueGet().length-t)<0&&(t=0),t}},function(t,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.alternate=l,i.casing=c,i.checkAlternationMatch=function(t,i,r){let a=this.opts.greedy?i:i.slice(0,1),n=!1,o=void 0!==r?r.split(","):[],s;for(let i=0;i<o.length;i++)-1!==(s=t.indexOf(o[i]))&&t.splice(s,1);for(let i=0;i<t.length;i++)if(a.includes(t[i])){n=!0;break}return n},i.handleRemove=function(t,i,r,a,c){let u,h=this.maskset,d=this.opts;if((d.numericInput||this.isRTL)&&(i===n.keys.Backspace?i=n.keys.Delete:i===n.keys.Delete&&(i=n.keys.Backspace),this.isRTL)){let t=r.end;r.end=r.begin,r.begin=t}let f=o.getLastValidPosition.call(this,void 0,!0);r.end>=o.getBuffer.call(this).length&&f>=r.end&&(r.end=f+1),i===n.keys.Backspace?r.end-r.begin<1&&(r.begin=o.seekPrevious.call(this,r.begin)):i===n.keys.Delete&&r.begin===r.end&&(r.end=o.isMask.call(this,r.end,!0,!0)?r.end+1:o.seekNext.call(this,r.end)+1),!1!==(u=m.call(this,r))&&((!0!==a&&!1!==d.keepStatic||null!==d.regex&&-1!==s.getTest.call(this,r.begin).match.def.indexOf("|"))&&l.call(this,!0),!0!==a&&(h.p=i===n.keys.Delete?r.begin+u:r.begin,h.p=o.determineNewCaretPosition.call(this,{begin:h.p,end:h.p},!1,!1===d.insertMode&&i===n.keys.Backspace?"none":void 0).begin))},i.isComplete=function(t){let i=this.opts,r=this.maskset;if("function"==typeof i.isComplete)return i.isComplete(t,i);if("*"===i.repeat)return;let a=!1,n=o.determineLastRequiredPosition.call(this,!0),l=n.l;if(void 0===n.def||n.def.newBlockMarker||n.def.optionality||n.def.optionalQuantifier){a=!0;for(let i=0;i<=l;i++){let n=s.getTestTemplate.call(this,i).match;if(!0!==n.static&&void 0===r.validPositions[i]&&(!1===n.optionality||void 0===n.optionality||n.optionality&&!1==n.newBlockMarker)&&(!1===n.optionalQuantifier||void 0===n.optionalQuantifier)||!0===n.static&&""!=n.def&&t[i]!==s.getPlaceholder.call(this,i,n)){a=!1;break}}}return a},i.isSelection=u,i.isValid=h,i.refreshFromBuffer=f,i.revalidateMask=m;var a=r(18),n=r(19),o=r(20),s=r(22);function l(t,i,r,a,n,c){let u=this.dependencyLib,d=this.opts,f=this.maskset;if(!this.hasAlternator)return!1;let p=u.extend(!0,[],f.validPositions),m=u.extend(!0,{},f.tests),g,y,_=!1,v=!1,b,x,w,k,T,S=void 0!==n?n:o.getLastValidPosition.call(this),A,C,E,M;if(c&&(E=c.begin,M=c.end,c.begin>c.end&&(E=c.end,M=c.begin)),-1===S&&void 0===n)g=0,y=(x=s.getTest.call(this,g)).alternation;else for(;S>=0;S--)if((b=0===S?s.getTest.call(this,0):f.validPositions[S])&&void 0!==b.alternation){if(S<=(t||0)&&x&&x.locator[b.alternation]!==b.locator[b.alternation])break;g=S,y=b.alternation,x=b}if(void 0!==y){T=parseInt(g),f.excludes[T]=f.excludes[T]||[],!0!==t&&f.excludes[T].push((0,s.getDecisionTaker)(x)+":"+x.alternation);let n=[],y=-1;for(w=T;T<o.getLastValidPosition.call(this,void 0,!0)+1;w++)-1===y&&t<=w&&void 0!==i&&(n.push(i),y=n.length-1),(k=f.validPositions[T])&&!0!==k.generatedInput&&(0!==T||k.input!==d.skipOptionalPartCharacter)&&(void 0===c||w<E||w>=M)&&n.push(k.input),f.validPositions.splice(T,1);for(-1===y&&void 0!==i&&(n.push(i),y=n.length-1);void 0!==f.excludes[T]&&f.excludes[T].length<10;){f.tests={},o.resetMaskSet.call(this,!0),_=!0,A=T-1;let g=s.getMaskTemplate.call(this,!0,0);for(w=0;w<n.length&&(C=n[w],g[A+1]===C&&!0!==d.numericInput?A++:A=0===w||void 0!==v.caretPos||!1===d.insertMode?o.seekNext.call(this,A):o.getLastValidPosition.call(this,A,!0)+1,_=h.call(this,A,C,!1,a,!0));w++)w===y&&(v=_),!0===t&&_&&(v={caretPos:w});if(_)break;if(o.resetMaskSet.call(this),x=s.getTest.call(this,T),f.validPositions=u.extend(!0,[],p),f.tests=u.extend(!0,{},m),v=!1,f.excludes[T])if(void 0!=x.alternation){let n=(0,s.getDecisionTaker)(x);if(-1!==f.excludes[T].indexOf(n+":"+x.alternation)){v=l.call(this,t,i,r,a,T-1,c);break}for(f.excludes[T].push(n+":"+x.alternation),w=T;w<o.getLastValidPosition.call(this,void 0,!0)+1;w++)f.validPositions.splice(T)}else delete f.excludes[T];else{v=l.call(this,t,i,r,a,T-1,c);break}}}return v&&!1===d.keepStatic||delete f.excludes[T],v||(f.validPositions=u.extend(!0,[],p),f.tests=u.extend(!0,{},m)),v}function c(t,i,r){let a=this.opts,o=this.maskset;switch(a.casing||i.casing){case"upper":t=t.toLocaleUpperCase();break;case"lower":t=t.toLocaleLowerCase();break;case"title":var s=o.validPositions[r-1];t=0===r||s&&s.input===String.fromCharCode(n.keyCode.Space)?t.toLocaleUpperCase():t.toLocaleLowerCase();break;case"follow":i.def&&i.def!==i.def.toLocaleLowerCase()?t=t.toLocaleUpperCase():i.def&&i.def!==i.def.toLocaleUpperCase()&&(t=t.toLocaleLowerCase());break;default:if("function"==typeof a.casing){let i=Array.prototype.slice.call(arguments);i.push(o.validPositions),t=a.casing.apply(this,i)}}return t}function u(t){let i=+!this.opts.insertMode;return this.isRTL?t.begin-t.end>i:t.end-t.begin>i}function h(t,i,r,a,n,d,g){let y=this,_=this.dependencyLib,v=this.opts,b=y.maskset;r=!0===r;let x=t;function w(t){if(void 0!==t){if(void 0!==t.remove&&(Array.isArray(t.remove)||(t.remove=[t.remove]),t.remove.sort(function(t,i){return y.isRTL?t.pos-i.pos:i.pos-t.pos}
2).forEach(function(t){m.call(y,{begin:t,end:t+1})}),t.remove=void 0),void 0!==t.insert&&(Array.isArray(t.insert)||(t.insert=[t.insert]),t.insert.sort(function(t,i){return y.isRTL?i.pos-t.pos:t.pos-i.pos}).forEach(function(t){""!==t.c&&h.call(y,t.pos,t.c,void 0===t.strict||t.strict,void 0!==t.fromIsValid?t.fromIsValid:a)}),t.insert=void 0),t.refreshFromBuffer&&t.buffer){let i=t.refreshFromBuffer;f.call(y,!0===i?i:i.start,i.end,t.buffer),t.refreshFromBuffer=void 0}void 0!==t.rewritePosition&&(x=t.rewritePosition,t=!0)}return t}function k(i,r,n){let l=!1;return s.getTests.call(y,i).every(function(h,d){let f=h.match;if(o.getBuffer.call(y,!0),!1!==(l=(!f.jit||void 0!==b.validPositions[o.seekPrevious.call(y,i)])&&(null!=f.fn?f.fn.test(r,b,i,n,v,u.call(y,t)):(r===f.def||r===v.skipOptionalPartCharacter)&&""!==f.def&&{c:s.getPlaceholder.call(y,i,f,!0)||f.def,pos:i}))){let n=void 0!==l.c?l.c:r,o=i;return n=n===v.skipOptionalPartCharacter&&!0===f.static?s.getPlaceholder.call(y,i,f,!0)||f.def:n,!0!==(l=w(l))&&void 0!==l.pos&&l.pos!==i&&(o=l.pos),(!0===l||void 0!==l.pos||void 0!==l.c)&&(!1===m.call(y,t,_.extend({},h,{input:c.call(y,n,f,o)}),a,o)&&(l=!1),!1)}return!0}),l}void 0!==t.begin&&(x=y.isRTL?t.end:t.begin);let T=!0,S=_.extend(!0,[],b.validPositions);if(!1===v.keepStatic&&void 0!==b.excludes[x]&&!0!==n&&!0!==a)for(let i=x;i<(y.isRTL?t.begin:t.end);i++)void 0!==b.excludes[i]&&(b.excludes[i]=void 0,delete b.tests[i]);if("function"==typeof v.preValidation&&!0!==a&&!0!==d&&(T=w(T=v.preValidation.call(y,o.getBuffer.call(y),x,i,u.call(y,t),v,b,t,r||n))),!0===T){if(T=k(x,i,r),(!r||!0===a)&&!1===T&&!0!==d){let a=b.validPositions[x];if(a&&!0===a.match.static&&(a.match.def===i||i===v.skipOptionalPartCharacter))T={caret:o.seekNext.call(y,x)};else if(v.insertMode||void 0===b.validPositions[o.seekNext.call(y,x)]||t.end>x){let a=!1;if(b.jitOffset[x]&&void 0===b.validPositions[o.seekNext.call(y,x)]&&!1!==(T=h.call(y,x+b.jitOffset[x],i,!0,!0))&&(!0!==n&&(T.caret=x),a=!0),t.end>x&&(b.validPositions[x]=void 0),!a&&!o.isMask.call(y,x,v.keepStatic&&0===x)){for(let t=x+1,a=o.seekNext.call(y,x,!1,0!==x);t<=a;t++)if(!1!==(T=k(t,i,r))){T=p.call(y,x,void 0!==T.pos?T.pos:t)||T,x=t;break}}}}if(y.hasAlternator&&!0!==n&&!r&&(n=!0,!1===T?(!0===v.keepStatic||isFinite(parseInt(v.keepStatic))&&x>=v.keepStatic)&&(T=l.call(y,x,i,r,a,void 0,t)):!0===T&&(u.call(y,t)&&b.tests[x]&&b.tests[x].length>1&&v.keepStatic?T=l.call(y,!0)||T:!0!==v.numericInput&&b.tests[x]&&b.tests[x].length>1&&o.getLastValidPosition.call(y,void 0,!0)>x&&(T=l.call(y,!0)||T))),!0===T&&(T={pos:x}),"function"==typeof v.postValidation&&!0!==a&&!0!==d){let a=v.postValidation.call(y,o.getBuffer.call(y,!0),void 0!==t.begin?y.isRTL?t.end:t.begin:t,i,T,v,b,r,g,n);void 0!==a&&(T=!0===a?T:a)}}T&&void 0===T.pos&&(T.pos=x),!1===T||!0===d?(o.resetMaskSet.call(y,!0),b.validPositions=_.extend(!0,[],S)):p.call(y,void 0,x,!0);let A=w(T);return void 0!==y.maxLength&&o.getBuffer.call(y).length>y.maxLength&&!a&&(o.resetMaskSet.call(y,!0),b.validPositions=_.extend(!0,[],S),A=!1),A}function d(t,i,r){let a=this.maskset,n=!1,o=s.getTests.call(this,t);for(let s=0;s<o.length;s++)if(o[s].match&&(o[s].match.nativeDef===i.match[r.shiftPositions?"def":"nativeDef"]&&(!r.shiftPositions||!i.match.static)||o[s].match.nativeDef===i.match.nativeDef||r.regex&&!o[s].match.static&&o[s].match.fn.test(i.input,a,t,!1,r))){n=!0;break}else if(o[s].match&&o[s].match.def===i.match.nativeDef){n=void 0;break}return!1===n&&void 0!==a.jitOffset[t]&&(n=d.call(this,t+a.jitOffset[t],i,r)),n}function f(t,i,r){let n=this.maskset,s=this.opts,l=this.dependencyLib,c,u,h=s.skipOptionalPartCharacter,d=this.isRTL?r.slice().reverse():r;if(s.skipOptionalPartCharacter="",!0===t)o.resetMaskSet.call(this,!1),t=0,i=r.length,u=o.determineNewCaretPosition.call(this,{begin:0,end:0},!1).begin;else{for(c=t;c<i;
2c++)delete n.validPositions[c];u=t}let f=new l.Event("keypress");for(c=t;c<i;c++){f.key=d[c].toString(),this.ignorable=!1;let t=a.EventHandlers.keypressEvent.call(this,f,!0,!1,!1,u);!1!==t&&void 0!==t&&(u=t.forwardPosition)}s.skipOptionalPartCharacter=h}function p(t,i,r){let a=this.maskset,n=this.dependencyLib;if(void 0===t)for(t=i-1;t>0&&!a.validPositions[t];t--);for(let u=t;u<i;u++)if(void 0===a.validPositions[u]&&!o.isMask.call(this,u,!1)&&(0==u?s.getTest.call(this,u):a.validPositions[u-1])){let t=s.getTests.call(this,u).slice();""===t[t.length-1].match.def&&t.pop();var l,c=s.determineTestTemplate.call(this,u,t);if(c&&(!0!==c.match.jit||"master"===c.match.newBlockMarker&&(l=a.validPositions[u+1])&&!0===l.match.optionalQuantifier)&&((c=n.extend({},c,{input:s.getPlaceholder.call(this,u,c.match,!0)||c.match.def})).generatedInput=!0,m.call(this,u,c,!0),!0!==r)){let t=a.validPositions[i].input;return a.validPositions[i]=void 0,h.call(this,i,t,!0,!0)}}}function m(t,i,r,a){let n=this.maskset,l=this.opts,c=this.dependencyLib,f=0,p=void 0!==t.begin?t.begin:t,m=void 0!==t.end?t.end:t,g=!0;if(t.begin>t.end&&(p=t.end,m=t.begin),a=void 0!==a?a:p,void 0===r&&(p!==m||l.insertMode&&void 0!==n.validPositions[a]||void 0===i||i.match.optionalQuantifier||i.match.optionality)){let r=c.extend(!0,[],n.validPositions),y=o.getLastValidPosition.call(this,void 0,!0),_;n.p=p;let v=u.call(this,t)?p:a;for(_=y;_>=v;_--)n.validPositions.splice(_,1),void 0===i&&delete n.tests[_+1];let b=a,x=b,w,k;for(i&&(n.validPositions[a]=c.extend(!0,{},i),x++,b++),void 0==r[m]&&n.jitOffset[m]&&(m+=n.jitOffset[m]+ +!!i),_=i?m:m-1;_<=y;_++){if(void 0!==(w=r[_])&&(!0!==l.shiftPositions||!0!==w.generatedInput)&&(_>=m||_>=p&&function(t,i,r){let a=i[t];if(void 0!==a&&!0===a.match.static&&!0!==a.match.optionality&&(void 0===i[0]||void 0===i[0].alternation)){let a=r.begin<=t-1?i[t-1]&&!0===i[t-1].match.static&&i[t-1]:i[t-1],n=r.end>t+1?i[t+1]&&!0===i[t+1].match.static&&i[t+1]:i[t+1];return a&&n}return!1}(_,r,{begin:p,end:m}))){for(;""!==s.getTest.call(this,x).match.def;){if(!1!==(k=d.call(this,x,w,l))||"+"===w.match.def){"+"===w.match.def&&o.getBuffer.call(this,!0);let t=h.call(this,x,w.input,"+"!==w.match.def,!0);if(g=!1!==t,b=(t.pos||x)+1,!g&&k)break}else g=!1;if(g){void 0===i&&w.match.static&&_===t.begin&&f++;break}if(g||o.getBuffer.call(this),x>n.maskLength)break;x++}""==s.getTest.call(this,x).match.def&&(g=!1),x=b}if(!g)break}if(!g)return n.validPositions=c.extend(!0,[],r),o.resetMaskSet.call(this,!0),!1}else i&&s.getTest.call(this,a).match.cd===i.match.cd&&(n.validPositions[a]=c.extend(!0,{},i));return o.resetMaskSet.call(this,!0),f}},function(t,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.determineTestTemplate=d,i.getDecisionTaker=c,i.getMaskTemplate=function(t,i,r,a,n){let o=this.opts,s=this.maskset,l=o.greedy,c=[];n&&o.greedy&&(o.greedy=!1,this.maskset.tests={}),i=i||0;let f,p=0,g,y,_;
2do{if(!0===t&&s.validPositions[p])g=(y=n&&s.validPositions[p].match.optionality&&void 0===s.validPositions[p+1]&&(!0===s.validPositions[p].generatedInput||s.validPositions[p].input==o.skipOptionalPartCharacter&&p>0)?d.call(this,p,m.call(this,p,f,p-1)):s.validPositions[p]).match,f=y.locator.slice(),c.push(!0===r?y.input:!1===r?g.nativeDef:u.call(this,p,g));else{g=(y=h.call(this,p,f,p-1)).match,f=y.locator.slice();let t=!0!==a&&(!1!==o.jitMasking?o.jitMasking:g.jit);(_=(_||s.validPositions[p-1])&&g.static&&g.def!==o.groupSeparator&&null===g.fn)||!1===t||void 0===t||"number"==typeof t&&isFinite(t)&&t>p?c.push(!1===r?g.nativeDef:u.call(this,c.length,g)):_=!1}p++}while(!0!==g.static||""!==g.def||i>p)return""===c[c.length-1]&&c.pop(),(!1!==r||void 0===s.maskLength)&&(s.maskLength=p-1),o.greedy=l,c},i.getPlaceholder=u,i.getTest=f,i.getTestTemplate=h,i.getTests=m,i.isSubsetOf=p;var a,n=(a=r(7))&&a.__esModule?a:{default:a},o=r(20),s=r(21);function l(t,i){let r=(void 0!=t.alternation&&t.mloc[`${c(t)}:${t.alternation}`]||t.locator).join("");if(""!==r)for(r=r.split(":")[0];r.length<i;)r+="0";return r}function c(t){let i=t.locator[t.alternation];return"string"==typeof i&&i.length>0&&(i=i.split(",").sort((t,i)=>t-i)[0]),void 0!==i?i.toString():""}function u(t,i,r){let a=this.opts,n=this.maskset;if(void 0!==(i=i||f.call(this,t).match).placeholder||!0===r)if(""===i.placeholder||!0!==i.static||!0===i.generated)return"function"==typeof i.placeholder?i.placeholder(a):i.placeholder;else{let n=o.getLastValidPosition.call(this,t),l=o.seekNext.call(this,n);return(r?t<=l:t<l)?s.casing.call(this,a.staticDefinitionSymbol&&i.static?i.nativeDef:i.def,i,t):"function"==typeof i.placeholder?i.placeholder(a):i.placeholder}if(!0===i.static){if(t>-1&&void 0===n.validPositions[t]){let i=m.call(this,t),r=[],o;if("string"==typeof a.placeholder&&i.length>1+ +(""===i[i.length-1].match.def)){for(let s=0;s<i.length;s++)if(""!==i[s].match.def&&!0!==i[s].match.optionality&&!0!==i[s].match.optionalQuantifier&&(!0===i[s].match.static||void 0===o||!1!==i[s].match.fn.test(o.match.def,n,t,!0,a))&&(r.push(i[s]),!0===i[s].match.static&&(o=i[s]),r.length>1&&/[0-9a-zA-Z]/.test(r[0].match.def)))return a.placeholder.charAt(t%a.placeholder.length)}}return i.def}return"object"==typeof a.placeholder?i.def:a.placeholder.charAt(t%a.placeholder.length)}function h(t,i,r){return this.maskset.validPositions[t]||d.call(this,t,m.call(this,t,i?i.slice():i,r))}function d(t,i){var r,a;
2let n,o,s=this.opts,c=(r=t,n=0,o=!1,(a=i).forEach(t=>{t.match.optionality&&(0!==n&&n!==t.match.optionality&&(o=!0),(0===n||n>t.match.optionality)&&(n=t.match.optionality))}),n&&(0==r||1==a.length?n=0:o||(n=0)),n);t=t>0?t-1:0;let u=Math.max(...i.map(t=>void 0===t.locator?0:t.locator.length)),h=l(f.call(this,t),u),d=0,p,m,g;s.greedy&&i.length>1&&""===i[i.length-1].match.def&&(d=1);for(let t=0;t<i.length-d;t++){let r=i[t],a=Number(p=l(r,u))-Number(h);(!0!==r.unMatchedAlternationStopped||i.filter(t=>!0!==t.unMatchedAlternationStopped).length<=1)&&(void 0===m||""!==p&&a<m||g&&!s.greedy&&g.match.optionality&&g.match.optionality-c>0&&"master"===g.match.newBlockMarker&&(!r.match.optionality||r.match.optionality-c<1||!r.match.newBlockMarker)||g&&!s.greedy&&g.match.optionalQuantifier&&!r.match.optionalQuantifier)&&(m=a,g=r)}return g}function f(t,i){let r=this.maskset;return r.validPositions[t]?r.validPositions[t]:(i||m.call(this,t))[0]}function p(t,i,r){function a(t){let i=[],r=-1,a;for(let n=0,o=t.length;n<o;n++)if("-"===t.charAt(n))for(a=t.charCodeAt(n+1);++r<a;)i.push(String.fromCharCode(r));else r=t.charCodeAt(n),i.push(t.charAt(n));return i.join("")}return t.match.def===i.match.nativeDef||(!!r.regex||t.match.fn instanceof RegExp&&i.match.fn instanceof RegExp)&&!0!==t.match.static&&!0!==i.match.static&&("."===i.match.fn.source||-1!==a(i.match.fn.source.replace(/[[\]/]/g,"")).indexOf(a(t.match.fn.source.replace(/[[\]/]/g,""))))}function m(t,i,r){let a,o=this,s=this.dependencyLib,l=this.maskset,c=this.opts,u=this.el,h=l.maskToken,f=i?r:0,m=i?i.slice():[0],g=[],y=!1,_=!1,v,b=i?i.join(""):"",x=!1;function w(t,i){let r=[];return Array.isArray(i)||(i=[i]),i.length>0&&(void 0===i[0].alternation||!0===c.keepStatic||isFinite(parseInt(c.keepStatic))&&t>=c.keepStatic?0===(r=d.call(o,t,i.slice()).locator.slice()).length&&(r=i[0].locator.slice()):i.forEach(t=>{Object.values(t.mloc).forEach(t=>{t.forEach((t,i)=>{let a=r[i];!(t.toString().includes(":")||a&&a.toString().includes(":"))&&(void 0===a?r[i]=t:a.toString().includes(t)||(r[i]=r[i]+","+t))})})})),r}if(t>-1){if(void 0===i){let i=t-1,r;for(;void 0===(r=l.validPositions[i]||l.tests[i])&&i>-1;)i--;void 0!==r&&i>-1&&(b=(m=w(i,r)).join(""),f=i)}if(l.tests[t]&&l.tests[t][0].cd===b)return l.tests[t];for(let i=m.shift();i<h.length&&(!function i(r,a,s,h){for(let d=a.length>0?a.shift():0;d<r.matches.length;d++)if(!0!==r.matches[d].isQuantifier){let m=function s(h,d,m){function k(t,i){let r=0===i.matches.indexOf(t);return r||i.matches.every(function(a,n){return!0===a.isQuantifier?r=k(t,i.matches[n-1]):Object.prototype.hasOwnProperty.call(a,"matches")&&(r=k(t,a)),!r||(i.matches[n+1]&&i.matches[n+1].isQuantifier&&(r=0===n),!1)}),r}function T(i,r){return!0===i.match.static&&!0!==r.match.static&&r.match.fn.test(i.match.def,l,t,!1,c,!1)}function S(t,i){let r=t.alternation,a=void 0===i||r<=i.alternation&&-1===t.locator[r].toString().indexOf(i.locator[r]);if(!a&&r>i.alternation){for(let n=0;n<r;n++)if(t.locator[n]!==i.locator[n]){r=n,a=!0;break}}if(a){var n=r;t.mloc=t.mloc||{};let a=t.locator[n];if(void 0===a)t.alternation=void 0;else{if(void 0===i)"string"==typeof a&&(a=a.split(",")[0]),a=`${a}:${n}`,void 0===t.mloc[a]&&(t.mloc[a]=t.locator.slice(),t.mloc[a].push(`:${n}`));else{let r=0;for(let a in i.mloc)if(void 0===t.mloc[a])t.mloc[a]=i.mloc[a];else do if(void 0===t.mloc[a+r]){t.mloc[a+r]=i.mloc[a];break}while(void 0!==t.mloc[a+r++])t.locator=w(f,[t,i])}return t.alternation>n&&(t.alternation=n),!0}}return!1}if(f>t+c._maxTestPos)throw Error(`Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. ${l.mask}`);if(f===t&&void 0===h.matches){if(g.push({match:h,locator:d.reverse(),cd:b,mloc:{}}),!h.optionality||void 0!==m||(!c.definitions||!c.definitions[h.nativeDef]||!c.definitions[h.nativeDef].optional)&&(!n.default.prototype.definitions[h.nativeDef]||!n.default.prototype.definitions[h.nativeDef].optional))return!0;y=!0,f=t}else if(void 0!==h.matches)if(h.isGroup&&m!==h)return!!(h=s(r.matches[r.matches.indexOf(h)+1],d,m))||void 0;else{if(h.isOptional){let r=h,n=g.length;if(h=i(h,a,d,m),g.length>0){if(g.forEach(function(t,i){i>=n&&(t.match.optionality=t.match.optionality?t.match.optionality+1:1)}),v=g[g.length-1].match,!(void 0===m&&k(v,r)))return h;y=!0,f=t}return}if(h.isAlternator)return function(){let i;function n(t){let i=0;for(let r=0;r<t.length;r++){let a=t[r];a.isQuantifier&&!isNaN(a.quantifier.max)?i+=a.quantifier.max:i++}return i}o.hasAlternator=!0;let v=h,b=[],w=g.slice(),k=d.length,A=a.length>0?a.shift():-1;if(-1===A||"string"==typeof A){let r=f,o=a.slice(),C=[],E;if("string"==typeof A)C=A.split(",");else for(E=0;E<v.matches.length;E++)C.push(E.toString());if(void 0!==l.excludes[t]){let i=C.slice();for(let i=0,r=l.excludes[t].length;i<r;i++){let r=l.excludes[t][i].toString().split(":");d.length==r[1]&&C.splice(C.indexOf(r[0]),1)}0===C.length&&(delete l.excludes[t],C=i)}(!0===c.keepStatic||isFinite(parseInt(c.keepStatic))&&r>=c.keepStatic)&&(C=C.slice(0,1));for(let t=0;t<C.length;t++){E=parseInt(C[t]),g=[],a="string"==typeof A&&function t(i,r,a){let n,o,s,c,u=`${r}:${a}`;if((l.tests[i]||l.validPositions[i])&&(l.validPositions[i]?[l.validPositions[i]]:l.tests[i]).every(function(t,i){return t.mloc[u]?(n=t,!1):(Object.values(t.mloc).filter(t=>t[a]==r).every(i=>{let r=i.join("").split(":")[0];for(s=s||r;r.length<s.length;)r+="0";let a=Number(r);return(void 0===n||a<o)&&(o=a,n=t,c=Object.entries(t.mloc).find(t=>t[1].toString()===i.toString())[0]),!0}),!0)}),!n)return void 0!==a?t(i,r):void 0;{void 0===a&&(u=`${r}:${n.alternation}`);let t=`${n.locator[n.alternation]}:${n.alternation}`,i=n.mloc[c||u]||n.mloc[t]||n.locator;-1!==i[i.length-1].toString().indexOf(":")&&i.pop();let o=parseInt(n.alternation)+1;return i.slice(o)}}(f,E,k)||o.slice();let y=v.matches[E];if(y&&s(y,[E].concat(d),m))h=!0;else if(x=function(t){let i,r=t.matches[0].matches?n(t.matches[0].matches):1;for(let a=0;a<t.matches.length&&r===(i=t.matches[a].matches?n(t.matches[a].matches):1);a++);return r!==i}(v),y&&y.matches&&y.matches.length>v.matches[0].matches.length)break;i=g.slice(),f=r,g=[];for(let t=0;t<i.length;t++){let a=i[t],n=!1;a.alternation=a.alternation||k,S(a);for(let t=0;t<b.length;t++){let i=b[t];if("string"!=typeof A||void 0!==a.alternation&&-1!==A.indexOf(a.locator[a.alternation].toString())){if(a.match.nativeDef===i.match.nativeDef){n=!0,S(i,a);break}else if(p(a,i,c)){S(a,i)&&(n=!0,b.splice(b.indexOf(i),0,a));break}else if(p(i,a,c)){S(i,a);break}
2else if(T(a,i)){S(a,i)&&(n=!0,b.splice(b.indexOf(i),0,a));break}else if(T(i,a)){S(i,a),i.match.optionality&&void 0===u.inputmask.userOptions.keepStatic&&(c.keepStatic=r);break}}}n||b.push(a)}}g=w.concat(b),f=t,y=y||g.length>0&&x,!x&&y&&(_=!0),h=b.length>0&&!x,x&&y&&!h&&g.forEach(function(t,i){t.unMatchedAlternationStopped=!0}),a=o.slice()}else h=s(v.matches[A]||r.matches[A],[A].concat(d),m);if(h)return!0}();if(h.isQuantifier&&m!==r.matches[r.matches.indexOf(h)-1]){let i=h,n=!1;for(let o=a.length>0?a.shift():0;o<(isNaN(i.quantifier.max)?o+1:i.quantifier.max)&&f<=t;o++){let a=r.matches[r.matches.indexOf(i)-1];if(h=s(a,[o].concat(d),a)){if(g.forEach(function(r,s){(v=!function t(i,r){let a=-1!=i.matches.indexOf(r);return a||i.matches.forEach((i,n)=>{void 0===i.matches||a||(a=t(i,r))}),a}(a,r.match)?g[g.length-1].match:r.match).optionalQuantifier=o>=i.quantifier.min,v.jit=(o+1)*(a.matches.indexOf(v)+1)>i.quantifier.jit,(v.optionalQuantifier||v.optionality)&&k(v,a)&&(y=!0,f=t,c.greedy&&void 0==l.validPositions[t-1]&&o>i.quantifier.min&&-1!=["*","+"].indexOf(i.quantifier.max)&&(g.pop(),b=void 0),n=!0,h=!1),!n&&v.jit&&(l.jitOffset[t]=a.matches.length-a.matches.indexOf(v))}),n)break;return!0}}return}if(h=i(h,a,d,m))return!0}else f++}(r.matches[d],[d].concat(s),h);if(m&&f===t)return m;if(f>t)break}}(h[i],m,[i])||f!==t)&&!(f>t);i++);}return(0===g.length||y)&&g.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:x&&0===g.filter(t=>!0!==t.unMatchedAlternationStopped).length||_&&g.length>0&&g.filter(t=>!t.match.static).every(t=>t.match.optionalQuantifier)?[0]:[],mloc:{},cd:b}),void 0!==i&&l.tests[t]?a=s.extend(!0,[],g):(l.tests[t]=s.extend(!0,[],g),a=l.tests[t]),g.forEach(t=>{t.match.optionality=t.match.defOptionality||!1}),a}},function(t,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.mask=function(){let t=this,i=this.opts,r=this.el,u=this.dependencyLib;o.EventRuler.off(r);let h=function(i,r){let a=i.getAttribute("type"),n="input"===i.tagName.toLowerCase()&&r.supportsInputType.includes(a)||i.isContentEditable||"textarea"===i.tagName.toLowerCase();if(!n)if("input"===i.tagName.toLowerCase()){let t=document.createElement("input");t.setAttribute("type",a),n="text"===t.type,t=null}else n="partial";return!1!==n?!function(i){let a,n;function c(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():-1!==l.getLastValidPosition.call(t)||!0!==r.nullable?this.getRootNode().activeElement===this&&r.clearMaskOnLostFocus?(t.isRTL?s.clearOptionalTail.call(t,l.getBuffer.call(t).slice()).reverse():s.clearOptionalTail.call(t,l.getBuffer.call(t).slice())).join(""):a.call(this):"":a.call(this)}function h(t){n.call(this,t),this.inputmask&&(0,s.applyInputValue)(this,t)}if(!i.inputmask.__valueGet){if(!0!==r.noValuePatching){if(Object.getOwnPropertyDescriptor){let t=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(i),"value"):void 0;t&&t.get&&t.set?(a=t.get,n=t.set,Object.defineProperty(i,"value",{get:c,set:h,configurable:!0})):"input"!==i.tagName.toLowerCase()&&(a=function(){return this.textContent},n=function(t){this.textContent=t},Object.defineProperty(i,"value",{get:c,set:h,configurable:!0}))}else document.__lookupGetter__&&i.__lookupGetter__("value")&&(a=i.__lookupGetter__("value"),n=i.__lookupSetter__("value"),i.__defineGetter__("value",c),i.__defineSetter__("value",h));i.inputmask.__valueGet=a,i.inputmask.__valueSet=n}if(i.inputmask._valueGet=function(i){return t.isRTL&&!0!==i?a.call(this.el).split("").reverse().join(""):a.call(this.el)},i.inputmask._valueSet=function(i,r){n.call(this.el,null==i?"":!0!==r&&t.isRTL?i.split("").reverse().join(""):i)},void 0===a){a=function(){return this.value},n=function(t){this.value=t};var d=i.type;if(u.valHooks&&(void 0===u.valHooks[d]||!0!==u.valHooks[d].inputmaskpatch)){let i=u.valHooks[d]&&u.valHooks[d].get?u.valHooks[d].get:function(t){return t.value},a=u.valHooks[d]&&u.valHooks[d].set?u.valHooks[d].set:function(t,i){return t.value=i,t};u.valHooks[d]={get:function(a){if(!a.inputmask)return i(a);if(a.inputmask.opts.autoUnmask)return a.inputmask.unmaskedvalue();{let n=i(a);return -1!==l.getLastValidPosition.call(t,void 0,void 0,a.inputmask.maskset.validPositions)||!0!==r.nullable?n:""}},set:function(t,i){let r=a(t,i);return t.inputmask&&(0,s.applyInputValue)(t,i),r},inputmaskpatch:!0}}o.EventRuler.on(i,"mouseenter",function(){let t=this.inputmask._valueGet(!0);t!=(this.inputmask.isRTL?l.getBuffer.call(this.inputmask).slice().reverse():l.getBuffer.call(this.inputmask)).join("")&&(0,s.applyInputValue)(this,t)})}}}(i):i.inputmask=void 0,n}(r,i);if(!1!==h){t.originalPlaceholder=r.placeholder,t.maxLength=void 0!==r?r.maxLength:void 0,-1===t.maxLength&&(t.maxLength=void 0),"inputMode"in r&&null===r.getAttribute("inputmode")&&(r.inputMode=i.inputmode,r.setAttribute("inputmode",i.inputmode)),!0===h&&(i.showMaskOnFocus=i.showMaskOnFocus&&-1===["cc-number","cc-exp"].indexOf(r.autocomplete),a.iphone&&(i.insertModeVisual=!1,r.setAttribute("autocorrect","off")),o.EventRuler.on(r,"submit",n.EventHandlers.submitEvent),o.EventRuler.on(r,"reset",n.EventHandlers.resetEvent),o.EventRuler.on(r,"blur",n.EventHandlers.blurEvent),o.EventRuler.on(r,"focus",n.EventHandlers.focusEvent),o.EventRuler.on(r,"invali
2d",n.EventHandlers.invalidEvent),o.EventRuler.on(r,"click",n.EventHandlers.clickEvent),o.EventRuler.on(r,"mouseleave",n.EventHandlers.mouseleaveEvent),o.EventRuler.on(r,"mouseenter",n.EventHandlers.mouseenterEvent),o.EventRuler.on(r,"paste",n.EventHandlers.pasteEvent),o.EventRuler.on(r,"cut",n.EventHandlers.cutEvent),o.EventRuler.on(r,"complete",i.oncomplete),o.EventRuler.on(r,"incomplete",i.onincomplete),o.EventRuler.on(r,"cleared",i.oncleared),!0!==i.inputEventOnly&&o.EventRuler.on(r,"keydown",n.EventHandlers.keyEvent),(a.mobile||i.inputEventOnly)&&r.removeAttribute("maxLength"),o.EventRuler.on(r,"input",n.EventHandlers.inputFallBackEvent)),o.EventRuler.on(r,"setvalue",n.EventHandlers.setValueEvent),void 0===t.applyMaskHook||t.applyMaskHook(),l.getBufferTemplate.call(t).join(""),t.undoValue=t._valueGet(!0);let u=r.getRootNode().activeElement;if(""!==r.inputmask._valueGet(!0)||!1===i.clearMaskOnLostFocus||u===r){(0,s.applyInputValue)(r,r.inputmask._valueGet(!0));let a=l.getBuffer.call(t).slice();!1===c.isComplete.call(t,a)&&i.clearIncomplete&&l.resetMaskSet.call(t,!1),i.clearMaskOnLostFocus&&u!==r&&(-1===l.getLastValidPosition.call(t)?a=[]:s.clearOptionalTail.call(t,a)),(!1===i.clearMaskOnLostFocus||i.showMaskOnFocus&&u===r||""!==r.inputmask._valueGet(!0))&&(0,s.writeBuffer)(r,a),u===r?l.caret.call(t,r,l.seekNext.call(t,l.getLastValidPosition.call(t))):l.caret.call(t,r,0)}}};var a=r(17),n=r(18),o=r(15),s=r(16),l=r(20),c=r(21)},function(t,i,r){Object.defineProperty(i,"__esModule",{value:!0}),i.analyseMask=function(t,i,r){let a=/(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g,n=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,l=new s.default,c=[],u=[],h=!1,d,f,p,m,g,y,_=!1;function v(t,a,n){n=void 0!==n?n:t.matches.length;let s=t.matches[n-1],c=r.casing?"i":"";if(i)0===a.indexOf("[")||h&&/\\d|\\s|\\w|\\p/i.test(a)||"."===a?(/\\p\{.*}/i.test(a)&&(c+="u"),t.matches.splice(n++,0,{fn:new RegExp(a,c),static:!1,optionality:!1,newBlockMarker:void 0===s?"master":s.def!==a,casing:null,def:a,placeholder:"object"==typeof r.placeholder?r.placeholder[l.matches.length]:void 0,nativeDef:a})):(h&&(a=a[a.length-1]),a.split("").forEach(function(i,a){s=t.matches[n-1],t.matches.splice(n++,0,{fn:/[a-z]/i.test(r.staticDefinitionSymbol||i)?RegExp("["+(r.staticDefinitionSymbol||i)+"]",c):null,static:!0,optionality:!1,newBlockMarker:void 0===s?"master":s.def!==i&&!0!==s.static,casing:null,def:r.staticDefinitionSymbol||i,placeholder:void 0!==r.staticDefinitionSymbol?i:"object"==typeof r.placeholder?r.placeholder[l.matches.length]:void 0,nativeDef:(h?"'":"")+i})})),h=!1;else{let i=r.definitions&&r.definitions[a]||r.usePrototypeDefinitions&&o.default.prototype.definitions[a];i&&!h?("string"==typeof i.validator&&/\\p\{.*}/i.test(i.validator)&&(c+="u"),t.matches.splice(n++,0,{fn:i.validator?"string"==typeof i.validator?new RegExp(i.validator,c):new function(){this.test=i.validator}:/./,static:i.static||!1,optionality:i.optional||!1,defOptionality:i.optional||!1,newBlockMarker:void 0===s||i.optional?"master":s.def!==(i.definitionSymbol||a),casing:i.casing,def:i.definitionSymbol||a,placeholder:i.placeholder,nativeDef:a,generated:i.generated})):(t.matches.splice(n++,0,{fn:/[a-z]/i.test(r.staticDefinitionSymbol||a)?RegExp("["+(r.staticDefinitionSymbol||a)+"]",c):null,static:!0,optionality:!1,newBlockMarker:void 0===s?"master":s.def!==a&&!0!==s.static,casing:null,def:r.staticDefinitionSymbol||a,placeholder:void 0!==r.staticDefinitionSymbol?a:void 0,nativeDef:(h?"'":"")+a}),h=!1)}}function b(){if(c.length>0){if(v(m=c[c.length-1],f),m.isAlternator){g=c.pop();for(let t=0;t<g.matches.length;t++)g.matches[t].isGroup&&(g.matches[t].isGroup=!1);c.length>0?(m=c[c.length-1]).matches.push(g):l.matches.push(g)}}else v(l,f)}function x(t){let i=new s.default(!0);return i.openGroup=!1,i.matches=t,i}function w(){if((p=c.pop()).openGroup=!1,void 0!==p)if(c.length>0){if((m=c[c.length-1]).matches.push(p),m.isAlternator){g=c.pop();for(let t=0;t<g.matches.length;t++)g.matches[t].isGroup=!1,g.matches[t].alternatorGroup=!1;c.length>0?(m=c[c.length-1]).matches.push(g):l.matches.push(g)}}else l.matches.push(p);else b()}function k(t){let i=t.pop();return i.isQuantifier&&(i=x([t.pop(),i])),i}for(i&&(r.optionalmarker[0]=void 0,r.optionalmarker[1]=void 0);d=i?n.exec(t):a.exec(t);){if(f=d[0],i){switch(f.charAt(0)){case"?":f="{0,1}";break;case"+":case"*":f="{"+f+"}";break;case"|":if(0===c.length){let t=x(l.matches);t.openGroup=!0,c.push(t),l.matches=[],_=!0}}switch(f){case"\\d":f="[0-9]";break;case"\\p":f+=n.exec(t)[0],f+=n.exec(t)[0]}}if(h){b();continue}switch(f.charAt(0)){case"$":case"^":i||b();break;case r.escapeChar:h=!0,i&&b();break;case r.optionalmarker[1]:case r.groupmarker[1]:w();break;case r.optionalmarker[0]:c.push(new s.default(!1,!0));break;case r.groupmarker[0]:c.push(new s.default(!0));break;case r.quantifiermarker[0]:{let t=new s.default(!1,!1,!0),i=(f=f.replace(/[{}?]/g,"")).split("|"),r=i[0].split(","),a=isNaN(r[0])?r[0]:parseInt(r[0]),n=1===r.length?a:isNaN(r[1])?r[1]:parseInt(r[1]),o=isNaN(i[1])?i[1]:parseInt(i[1]);("*"===a||"+"===a)&&(a=+("*"!==n)),t.quantifier={min:a,max:n,jit:o};let u=c.length>0?c[c.length-1].matches:l.matches;(d=u.pop()).isGroup||(d=x([d])),u.push(d),u.push(t)}break;case r.alternatormarker:if(c.length>0){let t=(m=c[c.length-1]).matches[m.matches.length-1];y=m.openGroup&&(void 0===t.matches||!1===t.isGroup&&!1===t.isAlternator)?c.pop():k(m.matches)}else y=k(l.matches);if(y.isAlternator)c.push(y);else if(y.alternatorGroup?(g=c.pop(),y.alternatorGroup=!1):g=new s.default(!1,!1,!1,!0),g.matches.push(y),c.push(g),y.openGroup){y.openGroup=!1;let t=new s.default(!0);t.alternatorGroup=!0,c.push(t)}break;default:b()}}for(_&&w();c.length>0;)p=c.pop(),l.matches.push(p);return l.matches.length>
20&&(!function t(a){a&&a.matches&&a.matches.forEach(function(n,o){let s=a.matches[o+1];(void 0===s||void 0===s.matches||!1===s.isQuantifier)&&n&&n.isGroup&&(n.isGroup=!1,i||(v(n,r.groupmarker[0],0),!0!==n.openGroup&&v(n,r.groupmarker[1]))),t(n)})}(l),u.push(l)),(r.numericInput||r.isRTL)&&function t(i){for(let n in i.matches=i.matches.reverse(),i.matches)if(Object.prototype.hasOwnProperty.call(i.matches,n)){let o=parseInt(n);if(i.matches[n].isQuantifier&&i.matches[o+1]&&i.matches[o+1].isGroup){let t=i.matches[n];i.matches.splice(n,1),i.matches.splice(o+1,0,t)}if(void 0!==i.matches[n].matches)i.matches[n]=t(i.matches[n]);else{var a;i.matches[n]=((a=i.matches[n])===r.optionalmarker[0]?a=r.optionalmarker[1]:a===r.optionalmarker[1]?a=r.optionalmarker[0]:a===r.groupmarker[0]?a=r.groupmarker[1]:a===r.groupmarker[1]&&(a=r.groupmarker[0]),a)}}return i}(u[0]),u},i.generateMaskSet=function(t,i){let r;function s(t,r,s){let l,c,u=!1;return(null===t||""===t)&&((u=null!==s.regex)?t=(t=s.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(u=!0,t=".*")),1===t.length&&!1===s.greedy&&0!==s.repeat&&(s.placeholder=""),t=function(t,{repeat:i,groupmarker:r,quantifiermarker:a,keepStatic:o}){if(i>0||"*"===i||"+"===i){let n="*"===i?0:"+"===i?1:i;if(n!==i)t=r[0]+t+r[1]+a[0]+n+","+i+a[1];else{let i=t;for(let r=1;r<n;r++)t+=i}}if(!0===o){let i=t.match(RegExp("(.)\\[([^\\]]*)\\]","g"));i&&i.forEach((i,r)=>{let[a,o]=i.split("[");o=o.replace("]",""),t=t.replace(RegExp(`${(0,n.escapeRegex)(a)}\\[${(0,n.escapeRegex)(o)}\\]`),a.charAt(0)===o.charAt(0)?`(${a}|${a}${o})`:`${a}[${o}]`)})}return t}(t,s),c=u?"regex_"+s.regex:s.numericInput?t.split("").reverse().join(""):t,null!==s.keepStatic&&(c="ks_"+s.keepStatic+c),"object"==typeof s.placeholder&&(c="ph_"+JSON.stringify(s.placeholder)+c),void 0===o.default.prototype.masksCache[c]||!0===i?(l={mask:t,maskToken:o.default.prototype.analyseMask(t,u,s),validPositions:[],_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:r,maskLength:void 0,jitOffset:{}},!0!==i&&(o.default.prototype.masksCache[c]=l,l=a.default.extend(!0,{},o.default.prototype.masksCache[c]))):l=a.default.extend(!0,{},o.default.prototype.masksCache[c]),l}if("function"==typeof t.mask&&(t.mask=t.mask(t)),Array.isArray(t.mask))if(t.mask.length>1){null===t.keepStatic&&(t.keepStatic=!0);let i=t.groupmarker[0];return(t.isRTL?t.mask.reverse():t.mask).forEach(function(r){i.length>1&&(i+=t.alternatormarker),void 0!==r.mask&&"function"!=typeof r.mask?i+=r.mask:i+=r}),s(i+=t.groupmarker[1],t.mask,t)}else t.mask=t.mask.pop();return r=t.mask&&void 0!==t.mask.mask&&"function"!=typeof t.mask.mask?s(t.mask.mask,t.mask,t):s(t.mask,t.mask,t),null===t.keepStatic&&(t.keepStatic=!1),r};var a=l(r(10)),n=r(25),o=l(r(7)),s=l(r(26));function l(t){return t&&t.__esModule?t:{default:t}}},function(t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.escapeRegex=function(t){return t.replace(r,"\\$1")};let r=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^)","gim")},function(t,i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,i,r,a){this.matches=[],this.openGroup=t||!1,this.alternatorGroup=!1,this.isGroup=t||!1,this.isOptional=i||!1,this.isQuantifier=r||!1,this.isAlternator=a||!1,this.quantifier={min:1,max:1}}},function(t,i,r){var a,n=r(25),o=(a=r(7))&&a.__esModule?a:{default:a},s=r(19),l=r(20),c=r(22);r(28);let u=o.default.dependencyLib;class h{constructor(t,i,r,a){this.mask=t,this.format=i,this.opts=r,this.inputmask=a,this._date=new Date(1,0,1),this.initDateObject(t,this.opts,this.inputmask)}get date(){return void 0===this._date&&(this._date=new Date(1,0,1),this.initDateObject(void 0,this.opts,this.inputmask)),this._date}initDateObject(t,i,r){let a,n=-1;for(x(i).lastIndex=0;a=x(i).exec(this.format);)if(a.index>=n){let o=/\d+$/.exec(a[0]),s=o?a[0][0]+"x":a[0],l;if(void 0!==t){if(o){let n=x(i).lastIndex,o=C.call(r,a.index,i,r&&r.maskset);x(i).lastIndex=n,l=t.slice(0,t.indexOf(o.nextMatch[0]))}else{let o=a[0][0],u=a.index;for(;r&&(i.placeholder[`${a.index}'${c.getTest.call(r,u).match.placeholder}`]||c.getTest.call(r,u).match.placeholder)===o;)u++;n=u;let h=u-a.index;l=t.slice(0,h||b(s)&&b(s)[4]||s.length)}t=t.slice(l.length)}Object.prototype.hasOwnProperty.call(m,s)&&this.setValue(this,l,s,b(s)[2],b(s)[1])}}setValue(t,i,r,a,n){if(void 0!==i)switch(a){case"ampm":t[a]=i,t["raw"+a]=i.replace(/\s/g,"_");break;case"month":if("MMM"===r||"MMMM"===r){"MMM"===r?t[a]=T(p.monthNames.slice(0,12).findIndex(t=>
2i.toLowerCase()===t.toLowerCase())+1,2):t[a]=T(p.monthNames.slice(12,24).findIndex(t=>i.toLowerCase()===t.toLowerCase())+1,2),t[a]="00"===t[a]?"":t[a].toString(),t["raw"+a]=t[a];break}default:t[a]=i.replace(/[^0-9]/g,"0"),t["raw"+a]=i.replace(/\s/g,"_")}if(void 0!==n){let i=t[a];("day"===a&&29===parseInt(i)||"month"===a&&2===parseInt(i))&&29===parseInt(t.day)&&2===parseInt(t.month)&&(""===t.year||void 0===t.year)&&t._date.setFullYear(2012,1,29),"day"===a&&(d=!0,0===parseInt(i)&&(i=1)),"month"===a&&(d=!0),"year"===a&&(d=!0,i.length<b(r)[4]&&(i=T(i,b(r)[4],!0))),(""===i||isNaN(i))&&"ampm"!==a||n.call(t._date,i)}}reset(){this._date=new Date(1,0,1)}reInit(){this._date=void 0,this.date}}let d=!1,f=new Date().getFullYear(),p=o.default.prototype.i18n,m={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return T(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],M:["[1-9]|1[012]",function(t){let i=t?parseInt(t):0;return i>0&&i--,Date.prototype.setMonth.call(this,i)},"month",function(){return Date.prototype.getMonth.call(this)+1}],MM:["0[1-9]|1[012]",function(t){let i=t?parseInt(t):0;return i>0&&i--,Date.prototype.setMonth.call(this,i)},"month",function(){return T(Date.prototype.getMonth.call(this)+1,2)}],MMM:[p.monthNames.slice(0,12).join("|"),function(t){let i=p.monthNames.slice(0,12).findIndex(i=>t.toLowerCase()===i.toLowerCase());return -1!==i&&Date.prototype.setMonth.call(this,i)},"month",function(){return p.monthNames.slice(0,12)[Date.prototype.getMonth.call(this)]}],MMMM:[p.monthNames.slice(12,24).join("|"),function(t){let i=p.monthNames.slice(12,24).findIndex(i=>t.toLowerCase()===i.toLowerCase());return -1!==i&&Date.prototype.setMonth.call(this,i)},"month",function(){return p.monthNames.slice(12,24)[Date.prototype.getMonth.call(this)]}],yy:["[0-9]{2}",function(t){let i=new Date().getFullYear().toString().slice(0,2);Date.prototype.setFullYear.call(this,`${i}${t}`)},"year",function(){return T(Date.prototype.getFullYear.call(this),2)},2],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return T(Date.prototype.getFullYear.call(this),4)},4],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return T(Date.prototype.getHours.call(this),2)}],hx:[function(t){return`[0-9]{${t}}`},Date.prototype.setHours,"hours",function(t){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return T(Date.prototype.getHours.call(this),2)}],Hx:[function(t){return`[0-9]{${t}}`},Date.prototype.setHours,"hours",function(t){return function(){return T(Date.prototype.getHours.call(this),t)}}],m:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],mm:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return T(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return T(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return T(Date.prototype.getMilliseconds.call(this),3)},3],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return T(Date.prototype.getMilliseconds.call(this),2)},2],t:["[ap]",_,"ampm",v,1],tt:["[ap]m",_,"ampm",v,2],T:["[AP]",_,"ampm",v,1],TT:["[AP]M",_,"ampm",v,2],Z:[".*",void 0,"Z",function(){let{1:t}=this.toString().match(/\((.+)\)/);return t.includes(" ")&&(t=(t=t.replace("-"," ").toUpperCase()).split(" ").map(([t])=>t).join("")),t}],o:[""],S:[""]},g={D:"d",DD:"dd",DDD:"ddd",DDDD:"dddd",mmm:"MMM",mmmm:"MMMM",YY:"yy",YYYY:"yyyy",sss:"L"},y={isoDate:"yyyy-MM-dd",isoTime:"HH:mm:ss",isoDateTime:"yyyy-MM-dd\\THH:mm:ss",isoUtcDateTime:"UTC:yyyy-MM-dd\\THH:mm:ss\\Z"};function _(t){let i=this.getHours();t.toLowerCase().includes("p")?this.setHours(i+12):t.toLowerCase().includes("a")&&i>=12&&this.setHours(i-12)}function v(){let t=this.getHours();return(t=t||12)>=12?"PM":"AM"}function b(t){let i=g[t]||t,r=/\d+$/.exec(i);if(r&&void 0!==r[0]){let t=m[i[0]+"x"].slice("");return t[0]=t[0](r[0]),t[3]=t[3](r[0]),t}if(m[i])return m[i]}function x(t){if(!t.tokenizer){let i=[],r=[];for(let t of Object.keys(m).concat(Object.keys(g)))if(/\.*x$/.test(t)){let i=t[0]+"\\d+";-1===r.indexOf(i)&&r.push(i)}else -1===i.indexOf(t[0])&&i.push(t[0]);
2t.tokenizer="("+(r.length>0?r.join("|")+"|":"")+i.join("+|")+"+)+?|.",t.tokenizer=RegExp(t.tokenizer,"g")}return t.tokenizer}function w(t,i,r){if(!d)return!0;if(void 0===t.rawday||!isFinite(t.rawday)&&new Date(t.date.getFullYear(),isFinite(t.rawmonth)?t.month:t.date.getMonth()+1,0).getDate()>=t.day||"29"==t.day&&(!isFinite(t.rawyear)||void 0===t.rawyear||""===t.rawyear)||new Date(t.date.getFullYear(),isFinite(t.rawmonth)?t.month:t.date.getMonth()+1,0).getDate()>=t.day)return i;if("29"==t.day){let t=C.call(this,i.pos,r,this.maskset);if(t.targetMatch&&["yyyy","YYYY"].includes(t.targetMatch[0])&&i.pos-t.targetMatchIndex==2)return i.remove=i.pos+1,i}else if(2==t.date.getMonth()&&"30"==t.day&&void 0!==i.c)return t.day="03",t.date.setDate(3),t.date.setMonth(1),i.insert=[{pos:i.pos,c:"0"},{pos:i.pos+1,c:i.c}],i.caret=l.seekNext.call(this,i.pos+1),i;return!1}function k(t,i,r){let a="",o,s,l=0,c=!1,u={};for(x(r).lastIndex=0;o=x(r).exec(t);)if(o[0]===r.escapeChar)c=!0;else{if(void 0===i)if(!c&&(s=b(o[0])))a+="("+s[0]+")",r.placeholder&&""!==r.placeholder?(u[l]=r.placeholder[o.index%r.placeholder.length],u[`${o.index}'${r.placeholder[o.index%r.placeholder.length]}`]=o[0].charAt(0)):u[l]=o[0].charAt(0);else switch(o[0]){case"[":a+="(";break;case"]":a+=")?";break;default:a+=(0,n.escapeRegex)(o[0]),u[l]=o[0].charAt(0)}else!c&&(s=b(o[0]))?s[3]?a+=s[3].call(i.date):s[2]&&void 0!==i["raw"+s[2]]?a+=i["raw"+s[2]]:a+=o[0]:a+=o[0];l++,c=!1}return void 0===i&&(r.placeholder=u),a}function T(t,i,r){for(t=String(t),i=i||2;t.length<i;)t=r?t+"0":"0"+t;return t}function S(t,i,r){return"string"==typeof t?new h(t,i,r,this):t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"date")?t:void 0}function A(t,i){return k(i.inputFormat,{date:t},i)}function C(t,i,r){let a=0,n,o,s=0;for(x(i).lastIndex=0;o=x(i).exec(i.inputFormat);){let l=/\d+$/.exec(o[0]);if(l)s=parseInt(l[0]);else{let t=o[0][0],r=a;for(;this&&(i.placeholder[`${o.index}'${c.getTest.call(this,r).match.placeholder}`]||c.getTest.call(this,r).match.placeholder)===t;)r++;0==(s=r-a)&&(s=o[0].length)}if((a+=s)>=t+1){let s="";if(r&&r.tests[t]){let n=Object.keys(i.placeholder).filter(i=>{for(let n=o.index-1;n<a;n++)if(i===`${n}'${r.tests[t][0].match.placeholder}`)return!0;return!1});s=n.length>0?i.placeholder[n[0]]:r.tests[t][0].match.placeholder}if(-1!==o[0].indexOf(s)){n=o,o=x(i).exec(i.inputFormat);break}}}return{targetMatchIndex:a-s,nextMatch:o,targetMatch:n}}o.default.extendAliases({datetime:{mask:function(t){if(t.numericInput=!1,m.S=p.ordinalSuffix.join("|"),t.inputFormat=y[t.inputFormat]||t.inputFormat,t.repeat&&(t.repeat=parseInt(t.repeat.toString()),t.repeat>0)){let i="";for(let r=0;r<t.repeat;r++)i+=t.inputFormat;t.inputFormat=i,t.repeat=0}return t.displayFormat=y[t.displayFormat]||t.displayFormat||t.inputFormat,t.outputFormat=y[t.outputFormat]||t.outputFormat||t.inputFormat,t.regex=k(t.inputFormat,void 0,t),t.min=S(t.min,t.inputFormat,t),t.max=S(t.max,t.inputFormat,t),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",preValidation:function(t,i,r,a,n,o,s,l){if(l)return!0;if(isNaN(r)&&t[i]!==r){let a=C.call(this,i,n,o);if(a.nextMatch&&a.nextMatch[0]===r&&a.targetMatch[0].length>1&&new RegExp(b(a.targetMatch[0])[0]).test("0"+t[i-1]))return t[i]=t[i-1],t[i-1]="0",{fuzzy:!0,buffer:t,refreshFromBuffer:{start:i-1,end:i+1},pos:i+1}}return!0},postValidation:function(t,i,r,a,n,o,s,l){let u,h;if(s)return!0;if(!1===a&&((u=C.call(this,i+1,n,o)).targetMatch&&u.targetMatchIndex===i&&u.targetMatch[0].length>1&&void 0!==b(u.targetMatch[0])?h=b(u.targetMatch[0])[0]:(u=C.call(this,i+2,n,o)).targetMatch&&u.targetMatchIndex===i+1&&u.targetMatch[0].length>1&&void 0!==b(u.targetMatch[0])&&(h=b(u.targetMatch[0])),void 0!==h&&(i=u.targetMatchIndex,void 0!==o.validPositions[i+1]&&new RegExp(h).test(r+"0")?(t[i]=r,t[i+1]="0",a={pos:i+2,caret:i+1}):new RegExp(h).test("0"+r)&&(t[i]="0",t[i+1]=r,a={pos:i+2})),!1===a))return a;if(a.fuzzy&&(t=a.buffer,i=a.pos),(u=C.call(this,i,n,o)).targetMatch&&u.targetMatch[0]&&void 0!==b(u.targetMatch[0])){let r=b
2(u.targetMatch[0]);h=r[0];let a=t.slice(u.targetMatchIndex,u.targetMatchIndex+u.targetMatch[0].length);if(!1===new RegExp(h).test(a.join(""))&&2===u.targetMatch[0].length&&o.validPositions[u.targetMatchIndex]&&o.validPositions[u.targetMatchIndex+1]&&(o.validPositions[u.targetMatchIndex+1].input="0"),"year"==r[2]){let r=c.getMaskTemplate.call(this,!1,1,void 0,!0);for(let a=i+1;a<t.length;a++)t[a]=r[a],o.validPositions.splice(i+1,1)}}let d=a,p=S.call(this,t.join(""),n.inputFormat,n);return(d&&!isNaN(p.date.getTime())&&(n.prefillYear&&(d=function(t,i,r){if(t.year!==t.rawyear){let a=f.toString(),n=t.rawyear.replace(/[^0-9]/g,""),o=a.slice(0,n.length),s=a.slice(n.length);if(2===n.length&&n===o){let n=new Date(f,t.month-1,t.day);t.day==n.getDate()&&(!r.max||r.max.date.getTime()>=n.getTime())&&(t.date.setFullYear(f),t.year=a,i.insert=[{pos:i.pos+1,c:s[0]},{pos:i.pos+2,c:s[1]}])}}return i}(p,d,n)),d=w.call(this,p,d,n),d=function(t,i,r,a){if(!i)return i;if(i&&r.min&&!isNaN(r.min.date.getTime())){let o;for(t.reset(),x(r).lastIndex=0;o=x(r).exec(r.inputFormat);){var n;if((n=b(o[0]))&&n[3]){let i=n[1],s=t[n[2]],l=r.min[n[2]],c=r.max?r.max[n[2]]:l+1,u=[],h=!1;for(let i=0;i<l.length;i++)void 0!==a.validPositions[i+o.index]||h?(u[i]=s[i],h=h||s[i]>l[i]):(i+o.index==0&&s[i]<l[i]?(u[i]=s[i],h=!0):u[i]=l[i],"year"===n[2]&&s.length-1==i&&l!=c&&(u=(parseInt(u.join(""))+1).toString().split("")),"ampm"===n[2]&&l!=c&&r.min.date.getTime()>t.date.getTime()&&(u[i]=c[i]));i.call(t._date,u.join(""))}}i=r.min.date.getTime()<=t.date.getTime(),t.reInit()}return i&&r.max&&!isNaN(r.max.date.getTime())&&(i=r.max.date.getTime()>=t.date.getTime()),i}(p,d,n,o)),void 0!==i&&d&&a.pos!==i)?{buffer:k(n.inputFormat,p,n).split(""),refreshFromBuffer:{start:i,end:a.pos},pos:void 0!==a.caret?a.caret:a.pos}:d},onKeyDown:function(t,i,r,a){t.ctrlKey&&t.key===s.keys.ArrowRight&&(this.inputmask._valueSet(A(new Date,a)),u(this).trigger("setvalue"))},onUnMask:function(t,i,r){return i?k(r.outputFormat,S.call(this,t,r.inputFormat,r),r):i},casing:"follow",onBeforeMask:function(t,i){return"[object Date]"===Object.prototype.toString.call(t)&&(t=A(t,i)),t},insertMode:!1,insertModeVisual:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},function(t,i,r){var a,n=(a=r(7))&&a.__esModule?a:{default:a};n.default.dependencyLib.extend(!0,n.default.prototype.i18n,{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]})},function(t,i,r){var a,n=r(25),o=(a=r(7))&&a.__esModule?a:{default:a},s=r(19),l=r(20);let c=o.default.dependencyLib;function u(t,i){let r="";for(let a=0;a<t.length;a++)o.default.prototype.definitions[t.charAt(a)]||i.definitions[t.charAt(a)]||i.optionalmarker[0]===t.charAt(a)||i.optionalmarker[1]===t.charAt(a)||i.quantifiermarker[0]===t.charAt(a)||i.quantifiermarker[1]===t.charAt(a)||i.groupmarker[0]===t.charAt(a)||i.groupmarker[1]===t.charAt(a)||i.alternatormarker===t.charAt(a)?r+="\\"+t.charAt(a):r+=t.charAt(a);return r}function h(t,i,r,a){if(t.length>0&&i>0&&(!r.digitsOptional||a)){var n=t.indexOf(r.radixPoint),o=!1;r.negationSymbol.back===t[t.length-1]&&(o=!0,t.length--),-1===n&&(t.push(r.radixPoint),n=t.length-1);for(let r=1;r<=i;r++)isFinite(t[n+r])||(t[n+r]="0")}return o&&t.push(r.negationSymbol.back),t}function d(t,i){let r=0;for(let a in"+"===t&&(r=l.seekNext.call(this,i.validPositions.length-1)),i.tests)if((a=parseInt(a))>=r){for(let r=0,n=i.tests[a].length;r<n;r++)if((void 0===i.validPositions[a]||"-"===t)&&i.tests[a][r].match.def===t)return a+ +(void 0!==i.validPositions[a]&&"-"!==t)}return r}function f(t,i){let r=-1;for(let a=0,n=i.validPositions.length;a<n;a++){let n=i.validPositions[a];if(n&&n.match.def===t){r=a;break}}return r}function p(t,i,r,a,n){let o=i.buffer?i.buffer.indexOf(n.radixPoint):-1,s=(-1!==o||a&&n.jitMasking)&&new RegExp(n.definitions["9"].validator).test(t);return!a&&n._radixDance&&-1!==o&&s&&void 0==i.validPositions[o]?{insert:{pos:o===r?o+1:o,c:n.radixPoint},pos:r}:s}o.default.extendAliases({numeric:{mask:function(t){t.repeat=0,t.groupSeparator===t.radixPoint&&t.digits&&"0"!==t.digits&&("."===t.radixPoint?t.groupSeparator=",":","===t.radixPoint?t.groupSeparator=".":t.groupSeparator="")," "===t.groupSeparator&&(t.skipOptionalPartCharacter=void 0),t.placeholder.length>1&&(t.placeholder=t.placeholder.charAt(0)),"radixFocus"===t.positionCaretOnClick&&""===t.placeholder&&(t.positionCaretOnClick="lvp");let i="0",r=t.radixPoint;!0===t.numericInput&&void 0===t.__financeInput?(i="1",t.positionCaretOnClick="radixFocus"===t.positionCaretOnClick?"lvp":t.positionCaretOnClick,t.digitsOptional=!1,isNaN(t.digits)&&(t.digits=-1!==t.digits.indexOf(",")?t.digits.split(",")[0]:2),t._radixDance=!1,r=","===t.radixPoint?"?":"!",""!==t.radixPoint&&void 0===t.definitions[r]&&(t.definitions[r]={},t.definitions[r].validator="["+t.radixPoint+"]",t.definitions[r].placeholder=t.radixPoint,t.definitions[r].static=!0,t.definitions[r].generated=!0)):(t.__financeInput=!1,t.numericInput=!0);let a="[+]",o;if(a+=u(t.prefix,t),""!==t.groupSeparator?(void 0===t.definitions[t.groupSeparator]&&(t.definitions[t.groupSeparator]={},t.definitions[t.groupSeparator].validator="["+t.groupSeparator+"]",t.definitions[t.groupSeparator].placeholder=t.groupSeparator,t.definitions[t.groupSeparator].static=!0,t.definitions[t.groupSeparator].generated=!0),a+=t._mask(t)):a+="9{+}",void 0!==t.digits&&0!==t.digits){let n=t.digits.toString().split(",");isFinite(n[0])&&n[1]&&isFinite(n[1])?a+=r+i+"{"+t.digits+"}":(isNaN(t.digits)||parseInt(t.digits)>0)&&(t.digitsOptional||t.jitMasking?(o=a+r+i+"{0,"+t.digits+"}",t.keepStatic=!0):a+=r+i+"{"+t.digits+"}")}else t.inputmode="numeric";return a+=u(t.suffix,t),a+="[-]",o&&(a=[o+u(t.suffix,t)+"[-]",a]),t.greedy=!1,void 0===t.parseMinMaxOptions&&(null!==t.min&&(t.min=t.min.toString().replace(RegExp((0,n.escapeRegex)(t.groupSeparator),"g"),""),","===t.radixPoint&&(t.min=t.min.replace(t.radixPoint,".")),t.min=isFinite(t.min)?parseFloat(t.min):0/0,isNaN(t.min)&&(t.min=5e-324)),null!==t.max&&(t.max=t.max.toString().replace(RegExp((0,n.escapeRegex)(t.groupSeparator),"g"),""),","===t.radixPoint&&(t.max=t.max.replace(t.radixPoint,".")),t.max=isFinite(t.max)?parseFloat(t.max):0/0,isNaN(t.max)&&(t.max=Number.MAX_VALUE)),t.parseMinMaxOptions="done"),""!==t.radixPoint&&t.substituteRadixPoint&&(t.substitutes["."==t.radixPoint?",":"."]=t.radixPoint),a},_mask:function(t){return"("+t.groupSeparator+"999){+|1}"},digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",_radixDance:!0,groupSeparator:"",allowMinus:!0,negationSymbol:{front:"-",back:""},prefix:"",suffix:"",min:null,max:null,SetMaxOnOverflow:!1,step:1,inputType:"text",unmaskAsNumber:!1,roundingFN:Math.round,inputmode:"decimal",shortcuts:{k:"1000",m:"1000000"},placeholder:"0",greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:"",usePrototypeDefinitions:!1,stripLeadingZeroes:!0,substituteRadixPoint:!0,definitions:{0:{validator:p},1:{validator:p,definitionSymbol:"9"},9:{validator:"[0-90-9٠-٩۰-۹]",definitionSymbol:"*"}
2,"+":{validator:function(t,i,r,a,n){return n.allowMinus&&("-"===t||t===n.negationSymbol.front)}},"-":{validator:function(t,i,r,a,n){return n.allowMinus&&t===n.negationSymbol.back}}},preValidation:function(t,i,r,a,n,o,s,l){var c;if(!1!==n.__financeInput&&r===n.radixPoint)return!1;let u=t.indexOf(n.radixPoint),h=i;if(c=i,n._radixDance&&n.numericInput&&r!==n.negationSymbol.back&&c<=u&&(u>0||r==n.radixPoint)&&(void 0===o.validPositions[c-1]||o.validPositions[c-1].input!==n.negationSymbol.back)&&(c-=1),i=c,"-"===r||r===n.negationSymbol.front){if(!0!==n.allowMinus)return!1;let t=!1,i=f("+",o),r=f("-",o);return -1!==i&&(t=[i],-1!==r&&t.push(r)),!1!==t?{remove:t,caret:h-n.negationSymbol.back.length}:{insert:[{pos:d.call(this,"+",o),c:n.negationSymbol.front,fromIsValid:!0},{pos:d.call(this,"-",o),c:n.negationSymbol.back,fromIsValid:void 0}],caret:h+n.negationSymbol.back.length}}if(r===n.groupSeparator)return{caret:h};if(l)return!0;if(-1!==u&&!0===n._radixDance&&!1===a&&r===n.radixPoint&&void 0!==n.digits&&(isNaN(n.digits)||parseInt(n.digits)>0)&&u!==i){let t=d.call(this,n.radixPoint,o);return o.validPositions[t]&&(o.validPositions[t].generatedInput=o.validPositions[t].generated||!1),{caret:n._radixDance&&i===u-1?u+1:u}}if(!1===n.__financeInput)if(a){if(n.digitsOptional)return{rewritePosition:s.end};else if(!n.digitsOptional){if(s.begin>u&&s.end<=u)if(r===n.radixPoint)return{insert:{pos:u+1,c:"0",fromIsValid:!0},rewritePosition:u};else return{rewritePosition:u+1};else if(s.begin<u)return{rewritePosition:s.begin-1}}}else{if(!n.showMaskOnHover&&!n.showMaskOnFocus&&!n.digitsOptional&&n.digits>0&&""===this.__valueGet.call(this.el))return{rewritePosition:u};if(i>=t.length-n.prefix.length&&""!==n.radixPoint){let t=new RegExp(n.definitions["9"].validator);if(!o.validPositions.some(i=>i&&!i.generatedInput&&t.test(i.input)))return{rewritePosition:-1!==u?u:0}}}return{rewritePosition:i}},postValidation:function(t,i,r,a,n,o,s,l,u){if(!1===a)return a;if(s)return!0;if(null!==n.min||null!==n.max){let i=n.onUnMask(t.slice().reverse().join(""),void 0,c.extend({},n,{unmaskAsNumber:!0}));if(null!==n.min&&i<n.min&&!0!==u&&(i.toString().length>n.min.toString().length||t[0]===n.radixPoint||i<0))return!1;if(null!==n.max&&n.max>=0&&i>n.max)return!!n.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:h(n.max.toString().replace(".",n.radixPoint).split(""),n.digits,n).reverse()}}return a},onUnMask:function(t,i,r){if(""===i&&!0===r.nullable)return i;let a=t.replace(r.prefix,"");return(a=(a=a.replace(r.suffix,"")).replace(RegExp((0,n.escapeRegex)(r.groupSeparator),"g"),""),""!==r.placeholder.charAt(0)&&(a=a.replace(RegExp(r.placeholder.charAt(0),"g"),"0")),r.unmaskAsNumber)?(""!==r.radixPoint&&-1!==a.indexOf(r.radixPoint)&&(a=a.replace(n.escapeRegex.call(this,r.radixPoint),".")),Number(a=(a=a.replace(RegExp("^"+(0,n.escapeRegex)(r.negationSymbol.front)),"-")).replace(RegExp((0,n.escapeRegex)(r.negationSymbol.back)+"$"),""))):a},isComplete:function(t,i){let r=(i.numericInput?t.slice().reverse():t).join("");return r=(r=(r=(r=(r=r.replace(RegExp("^"+(0,n.escapeRegex)(i.negationSymbol.front)),"-")).replace(RegExp((0,n.escapeRegex)(i.negationSymbol.back)+"$"),"")).replace(i.prefix,"")).replace(i.suffix,"")).replace(RegExp((0,n.escapeRegex)(i.groupSeparator)+"([0-9]{3})","g"),"$1"),","===i.radixPoint&&(r=r.replace((0,n.escapeRegex)(i.radixPoint),".")),isFinite(r)},onBeforeMask:function(t,i){t=t??"";let r=i.radixPoint||",";isFinite(i.digits)&&(i.digits=parseInt(i.digits)),("number"==typeof t||"number"===i.inputType)&&""!==r&&(t=t.toString().replace(".",r));let a="-"===t.charAt(0)||t.charAt(0)===i.negationSymbol.front,o=t.split(r),s=o[0].replace(/[^\-0-9]/g,""),l=o.length>1?o[1].replace(/[^0-9]/g,""):"",c=o.length>1;t=s+(""!==l?r+l:l);let u=0;if(""!==r&&(u=i.digitsOptional?i.digits<l.length?i.digits:l.length:i.digits,""!==l||!i.digitsOptional)){let a=Math.pow(10,u||1);isNaN(parseFloat(t=t.replace((0,n.escapeRegex)(r),".")))||(t=(i.roundingFN(parseFloat(t)*a)/a).toFixed(u)),t=t.toString().replace(".",r)}if(0===i.digits&&-1!==t.indexOf(r)&&(t=t.substring(0,t.indexOf(r))),""!==t&&(null!==i.min||null!==i.max)){let a=t.toString().replace(r,".");null!==i.min&&a<i.min?t=i.min.toString().replace(".",r):null!==i.max&&a>i.max&&(t=i.max.toString().replace(".",r))}return a&&"-"!==t.charAt(0)&&(t="-"+t),h(t.toString().split(""),u,i,c).join("")},onBeforeWrite:function(t,i,r,a){let o,s,l,u,d;function f(t,i){if(!1!==a.__financeInput||i){var r=t.indexOf(a.radixPoint);-1!==r&&t.splice(r,1)}if(""!==a.groupSeparator)for(;-1!==(r=t.indexOf(a.groupSeparator));)t.splice(r,1);return t}
2if(a.stripLeadingZeroes&&(u=(l=RegExp("(^"+(""!==a.negationSymbol.front?(0,n.escapeRegex)(a.negationSymbol.front)+"?":"")+(0,n.escapeRegex)(a.prefix)+")(.*)("+(0,n.escapeRegex)(a.suffix)+(""!=a.negationSymbol.back?(0,n.escapeRegex)(a.negationSymbol.back)+"?":"")+"$)").exec(i.slice().reverse().join("")))?l[2]:"",d=!1,u&&(u=u.split(a.radixPoint.charAt(0))[0],d=RegExp("^[0"+a.groupSeparator+"]*").exec(u)),s=!!d&&(d[0].length>1||d[0].length>0&&d[0].length<u.length)&&d)){let t=i.join("").lastIndexOf(s[0].split("").reverse().join(""))-(s[0]!=s.input),r=+(s[0]==s.input);for(let a=s[0].length-r;a>0;a--)this.maskset.validPositions.splice(t+a,1),delete i[t+a]}if(t)switch(t.type){case"blur":case"checkval":if(null!==a.min||null!==a.max){let t=a.onUnMask(i.slice().reverse().join(""),void 0,c.extend({},a,{unmaskAsNumber:!0}));if(null!==a.min&&t<a.min&&""!==i.join())return{refreshFromBuffer:!0,buffer:h(a.min.toString().replace(".",a.radixPoint).split(""),a.digits,a).reverse()};if(null!==a.max&&t>a.max)return{refreshFromBuffer:!0,buffer:h(a.max.toString().replace(".",a.radixPoint).split(""),a.digits,a).reverse()}}if(i[i.length-1]===a.negationSymbol.front){let t=RegExp("(^"+(""!=a.negationSymbol.front?(0,n.escapeRegex)(a.negationSymbol.front)+"?":"")+(0,n.escapeRegex)(a.prefix)+")(.*)("+(0,n.escapeRegex)(a.suffix)+(""!=a.negationSymbol.back?(0,n.escapeRegex)(a.negationSymbol.back)+"?":"")+"$)").exec(f(i.slice(),!0).reverse().join(""));0==(t?t[2]:"")&&(o={refreshFromBuffer:!0,buffer:[0]})}else""!==a.radixPoint&&i.indexOf(a.radixPoint)===a.suffix.length&&(o&&o.buffer?o.buffer.splice(0,1+a.suffix.length):(i.splice(0,1+a.suffix.length),o={refreshFromBuffer:!0,buffer:f(i)}));if(a.enforceDigitsOnBlur){let t=((o=o||{}).buffer||i).slice().reverse();o.refreshFromBuffer=!0,o.buffer=h(t,a.digits,a,!0).reverse()}}return o},onKeyDown:function(t,i,r,a){let n=c(this),o;if(3!=t.location){let i,r=t.key;if((i=a.shortcuts&&a.shortcuts[r])&&i.length>1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(i)),n.trigger("setvalue"),!1}if(t.ctrlKey)switch(t.key){case s.keys.ArrowUp:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(a.step)),n.trigger("setvalue"),!1;case s.keys.ArrowDown:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(a.step)),n.trigger("setvalue"),!1}if(!t.shiftKey&&(t.key===s.keys.Delete||t.key===s.keys.Backspace||t.key===s.keys.BACKSPACE_SAFARI)&&r.begin!==i.length){if(i[t.key===s.keys.Delete?r.begin-1:r.end]===a.negationSymbol.front)return o=i.slice().reverse(),""!==a.negationSymbol.front&&o.shift(),""!==a.negationSymbol.back&&o.pop(),n.trigger("setvalue",[o.join(""),r.begin]),!1;else if(!0===a._radixDance){let l=i.indexOf(a.radixPoint);if(a.digitsOptional){if(0===l)return(o=i.slice().reverse()).pop(),n.trigger("setvalue",[o.join(""),r.begin>=o.length?o.length:r.begin]),!1}else if(-1!==l&&(r.begin<l||r.end<l||t.key===s.keys.Delete&&(r.begin===l||r.begin-1===l))){let u;return r.begin===r.end&&(t.key===s.keys.Backspace||t.key===s.keys.BACKSPACE_SAFARI?r.begin++:t.key===s.keys.Delete&&r.begin-1===l&&(u=c.extend({},r),r.begin--,r.end--)),(o=i.slice().reverse()).splice(o.length-r.begin,r.begin-r.end||1),(t.key===s.keys.Backspace||t.key===s.keys.BACKSPACE_SAFARI)&&o.splice(o.length-r.end+1,0,"0"),o=h(o,a.digits,a).join(""),u&&(r=u),n.trigger("setvalue",[o,r.begin>=o.length?l+1:r.begin]),!1}}}}},currency:{prefix:"",groupSeparator:",",alias:"numeric",digits:2,digitsOptional:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",inputmode:"numeric",digits:0},percentage:{alias:"numeric",min:0,max:100,suffix:" %",digits:0,allowMinus:!1},indianns:{alias:"numeric",_mask:function(t){return"("+t.groupSeparator+"99){*|1}("+t.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}})},function(t,i,r){var a=o(r(11)),n=o(r(7));function o(t){return t&&t.__esModule?t:{default:t}}let s=a.default.document;if(s&&s.head&&s.head.attachShadow&&a.default.customElements&&void 0===a.default.customElements.get("input-mask")){class t extends HTMLElement{constructor(){super();let t=this.getAttributeNames(),i=this.attachShadow({mode:"closed"});for(let r in this.input=s.createElement("input"),this.input.type="text",i.appendChild(this.input),t)Object.prototype.hasOwnProperty.call(t,r)&&this.input.setAttribute(t[r],this.getAttribute(t[r]));let r=new n.default;r.dataAttribute="",r.mask(this.input)}attributeChangedCallback(t,i,r){this.input.setAttribute(t,r)}get value(){return this.input.value}set value(t){this.input.value=t}}a.default.customElements.define("input-mask",t)}}],r={};function a(t){var n=r[t];if(void 0!==n)return n.exports;var o=r[t]={exports:{}};return i[t](o,o.exports,a),o.exports}var n={};return Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,a(1),a(2),a(3),a(4),a(5),a(6),a(27),a(29),a(30),n.default=((t=a(7))&&t.__esModule?t:{default:t}).default,n}()},11120(t,i,r){t.exports=r(98388).Symbol},4085(t,i,r){var a=r(11120),n=r(86340),o=r(78835),s=a?a.toStringTag:void 0;
2t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?n(t):o(t)}},64321(t,i,r){var a=r(6515),n=/^\s+/;t.exports=function(t){return t?t.slice(0,a(t)+1).replace(n,""):t}},46429(t,i,r){t.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},86340(t,i,r){var a=r(11120),n=Object.prototype,o=n.hasOwnProperty,s=n.toString,l=a?a.toStringTag:void 0;t.exports=function(t){var i=o.call(t,l),r=t[l];try{t[l]=void 0;var a=!0}catch(t){}var n=s.call(t);return a&&(i?t[l]=r:delete t[l]),n}},78835(t){var i=Object.prototype.toString;t.exports=function(t){return i.call(t)}},98388(t,i,r){var a=r(46429),n="object"==typeof self&&self&&self.Object===Object&&self;t.exports=a||n||Function("return this")()},6515(t){var i=/\s/;t.exports=function(t){for(var r=t.length;r--&&i.test(t.charAt(r)););return r}},30306(t,i,r){var a=r(88458),n=r(56665),o=r(85253),s=Math.max,l=Math.min;t.exports=function(t,i,r){var c,u,h,d,f,p,m=0,g=!1,y=!1,_=!0;if("function"!=typeof t)throw TypeError("Expected a function");function v(i){var r=c,a=u;return c=u=void 0,m=i,d=t.apply(a,r)}function b(t){var r=t-p,a=t-m;return void 0===p||r>=i||r<0||y&&a>=h}function x(){var t,r,a,o=n();if(b(o))return w(o);f=setTimeout(x,(t=o-p,r=o-m,a=i-t,y?l(a,h-r):a))}function w(t){return(f=void 0,_&&c)?v(t):(c=u=void 0,d)}function k(){var t,r=n(),a=b(r);if(c=arguments,u=this,p=r,a){if(void 0===f)return m=t=p,f=setTimeout(x,i),g?v(t):d;if(y)return clearTimeout(f),f=setTimeout(x,i),v(p)}return void 0===f&&(f=setTimeout(x,i)),d}return i=o(i)||0,a(r)&&(g=!!r.leading,h=(y="maxWait"in r)?s(o(r.maxWait)||0,i):h,_="trailing"in r?!!r.trailing:_),k.cancel=function(){void 0!==f&&clearTimeout(f),m=0,c=p=u=f=void 0},k.flush=function(){return void 0===f?d:w(n())},k}},88458(t){t.exports=function(t){var i=typeof t;return null!=t&&("object"==i||"function"==i)}},67125(t){t.exports=function(t){return null!=t&&"object"==typeof t}},16909(t,i,r){var a=r(4085),n=r(67125);t.exports=function(t){return"symbol"==typeof t||n(t)&&"[object Symbol]"==a(t)}},56665(t,i,r){var a=r(98388);t.exports=function(){return a.Date.now()}},85253(t,i,r){var a=r(64321),n=r(88458),o=r(16909),s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return 0/0;if(n(t)){var i="function"==typeof t.valueOf?t.valueOf():t;t=n(i)?i+"":i}if("string"!=typeof t)return 0===t?t:+t;t=a(t);var r=l.test(t);return r||c.test(t)?u(t.slice(2),r?2:8):s.test(t)?0/0:+t}},7728(t,i,r){r.d(i,{Q7:()=>rl});var a={};r.r(a),r.d(a,{faApple:()=>d,faCcStripe:()=>f,faFacebook:()=>p,faFacebookF:()=>m,faFacebookMessenger:()=>g,faGooglePlay:()=>y,faInstagram:()=>_,faLine:()=>v,faLinkedin:()=>b,faLinkedinIn:()=>x,faPinterest:()=>w,faRedditSquare:()=>T,faSquareReddit:()=>k,faSquareWhatsapp:()=>S,faSquareXTwitter:()=>C,faStripe:()=>E,faTiktok:()=>M,faWhatsappSquare:()=>A,faYoutube:()=>P});var n={};r.r(n),r.d(n,{faArrowTurnLeft:()=>D,faBars:()=>I,faBooks:()=>F,faBroom:()=>R,faChevronRight:()=>O,faChildren:()=>B,faCopy:()=>j,faDice:()=>N,faGraduationCap:()=>$,faMortarBoard:()=>V,faNavicon:()=>z,faPartyHorn:()=>U,faSackDollar:()=>G,faSmoking:()=>q,faSpinner:()=>Z});var o={};r.r(o),r.d(o,{faAdd:()=>ep,faArrowsAltH:()=>ed,faArrowsAltV:()=>eT,faBan:()=>H,faBars:()=>X,faCancel:()=>W,faCaretDown:()=>K,faCaretLeft:()=>J,faCaretRight:()=>Q,faCaretUp:()=>ee,faCheck:()=>et,faChevronDown:()=>ei,faChevronLeft:()=>er,faChevronRight:()=>ea,faCircleHalf:()=>en,faCircleQuestion:()=>eo,faClose:()=>eE,faEllipsisV:()=>ec,faEllipsisVertical:()=>el,faFilePdf:()=>eu,faLeftRight:()=>eh,faMultiply:()=>eM,faNavicon:()=>Y,faPlus:()=>ef,faQuestionCircle:()=>es,faRemove:()=>eP,faSort:()=>em,faSortAsc:()=>eb,faSortDesc:()=>e_,faSortDown:()=>ey,faSortUp:()=>ev,faTableList:()=>ex,faThList:()=>ew,faTimes:()=>eD,faUnsorted:()=>eg,faUpDown:()=>ek,faUpload:()=>eS,faWreathLaurel:()=>eA,faXmark:()=>eC});var s={};r.r(s),r.d(s,{faAddressCard:()=>tR,faArchive:()=>ej,faArrowDownToLine:()=>t3,faArrowLeftRotate:()=>eY,faArrowRightFromBracket:()=>te,faArrowRotateBack:()=>eK,faArrowRotateBackward:()=>eJ,faArrowRotateLeft:()=>eX,faArrowToBottom:()=>t5,faArrowUpFromBracket:()=>tI,faArrowUpRightFromSquare:()=>eH,faArrowsRotate:()=>e$,faAutomobile:()=>i_,faBell:()=>ip,faBirthdayCake:()=>eF,faBolt:()=>e1,faBook:()=>t7,faBookOpen:()=>eN,faBoxArchive:()=>eB,faBuilding:()=>tE,faCake:()=>eR,faCakeCandles:()=>eL,faCalendar:()=>tk,faCamera:()=>ir,faCameraAlt:()=>ia,faCar:()=>iy,faChain:()=>tD,faCircleInfo:()=>eI,faCircleXmark:()=>tG,faClock:()=>t9,faClockFour:()=>ie,faClone:()=>t4,faCog:()=>tC,faComment:()=>t1,faCommentDots:()=>tc,faCommenting:()=>tu,faComments:()=>tf,faContactCard:()=>tO,faCreditCard:()=>ts,faCreditCardAlt:()=>tl,faCrown:()=>tU,faCut:()=>tr,faCutlery:()=>tW,faEnvelope:()=>im,faExternalLink:()=>eW,faEye:()=>ii,faEyeSlash:()=>e3,faFaceFrown:()=>ty,faFile:()=>tS,faFilter:()=>ig,faFlag:()=>tn,faFolder:()=>tz,faFolderBlank:()=>tL,faFrown:()=>t_,faGear:()=>tA,faGift:()=>il,faGlobe:()=>
2e6,faHeart:()=>t6,faHome:()=>tb,faHomeAlt:()=>tx,faHomeLgAlt:()=>tw,faHouse:()=>tv,faImage:()=>tV,faInfoCircle:()=>ez,faLanguage:()=>e9,faLink:()=>tP,faList:()=>th,faListSquares:()=>td,faLocationArrow:()=>t0,faLocationDot:()=>eq,faLock:()=>ta,faMagnifyingGlass:()=>io,faMap:()=>tF,faMapMarkerAlt:()=>eZ,faMobile:()=>iu,faMobileAndroid:()=>ih,faMobilePhone:()=>id,faMoneyBill:()=>eO,faMugHot:()=>e2,faMusic:()=>e5,faPaperPlane:()=>t8,faPaw:()=>e4,faPencil:()=>tN,faPencilAlt:()=>t$,faPrint:()=>t2,faRefresh:()=>eV,faScissors:()=>ti,faSearch:()=>is,faShieldAlt:()=>e7,faShieldHalved:()=>e8,faSignOut:()=>tt,faSparkles:()=>tj,faStar:()=>to,faStopwatch:()=>eG,faSuitcase:()=>tT,faSync:()=>eU,faThumbsDown:()=>tX,faThumbsUp:()=>tM,faTimesCircle:()=>tq,faTrash:()=>it,faTrophy:()=>ic,faUndo:()=>eQ,faUser:()=>tp,faUserAlt:()=>tm,faUserLarge:()=>tg,faUtensils:()=>tH,faVcard:()=>tB,faVideo:()=>tJ,faVideoCamera:()=>tQ,faWheelchairAlt:()=>tK,faWheelchairMove:()=>tY,faXmarkCircle:()=>tZ,faZap:()=>e0});var l={};r.r(l),r.d(l,{faCheckCircle:()=>ib,faCircleCheck:()=>iv,faCircleInfo:()=>ix,faExclamationTriangle:()=>iS,faInfoCircle:()=>iw,faLightbulb:()=>ik,faTriangleExclamation:()=>iT,faWarning:()=>iA});var c={};r.r(c),r.d(c,{faCalendar:()=>iC,faCheckCircle:()=>iP,faCircle:()=>iE,faCircleCheck:()=>iM,faCircleQuestion:()=>iD,faCircleXmark:()=>iz,faComment:()=>iR,faHeart:()=>iO,faHome:()=>ij,faHomeAlt:()=>iN,faHomeLgAlt:()=>i$,faHouse:()=>iB,faMagnifyingGlass:()=>iV,faPause:()=>iG,faPlay:()=>iq,faQuestionCircle:()=>iI,faQuoteLeft:()=>iZ,faQuoteLeftAlt:()=>iH,faSearch:()=>iU,faStar:()=>iW,faTimesCircle:()=>iL,faXmarkCircle:()=>iF});var u={};r.r(u),r.d(u,{faArrowDown:()=>iX,faArrowLeft:()=>iY,faArrowRight:()=>iK,faArrowUp:()=>iJ,faBabysits:()=>iQ,faBadgeCheck:()=>i1,faBriefcaseMedical:()=>i0,faCalendarCircleCheck:()=>i2,faCalendarCirclePlus:()=>i3,faCheck:()=>i5,faCheckDouble:()=>i4,faCircleExclamation:()=>i6,faCreditCardClock:()=>i8,faDocumentCheck:()=>i7,faExpired:()=>i9,faFileCirclePlus:()=>re,faHourglassClock:()=>rt,faRocket:()=>ri,faShieldCheck:()=>rr,faStarHalf:()=>ra,faUserPen:()=>rn});var h={};r.r(h),r.d(h,{faEnvelope:()=>ro});var d={prefix:"fab",iconName:"apple",icon:[384,512,[],"f179","M319.1 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7-55.8 .9-115.1 44.5-115.1 133.2 0 26.2 4.8 53.3 14.4 81.2 12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zM262.5 104.5c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"]},f={prefix:"fab",iconName:"cc-stripe",icon:[576,512,[],"f1f5","M492.4 220.8c-8.9 0-18.7 6.7-18.7 22.7l36.7 0c0-16-9.3-22.7-18-22.7zM375 223.4c-8.2 0-13.3 2.9-17 7l.2 52.8c3.5 3.7 8.5 6.7 16.8 6.7 13.1 0 21.9-14.3 21.9-33.4 0-18.6-9-33.2-21.9-33.1zM528 32L48 32C21.5 32 0 53.5 0 80L0 432c0 26.5 21.5 48 48 48l480 0c26.5 0 48-21.5 48-48l0-352c0-26.5-21.5-48-48-48zM122.2 281.1c0 25.6-20.3 40.1-49.9 40.3-12.2 0-25.6-2.4-38.8-8.1l0-33.9c12 6.4 27.1 11.3 38.9 11.3 7.9 0 13.6-2.1 13.6-8.7 0-17-54-10.6-54-49.9 0-25.2 19.2-40.2 48-40.2 11.8 0 23.5 1.8 35.3 6.5l0 33.4c-10.8-5.8-24.5-9.1-35.3-9.1-7.5 0-12.1 2.2-12.1 7.7 0 16 54.3 8.4 54.3 50.7zM191 224.5l-27 0 0 50.5c0 20.9 22.5 14.4 27 12.6l0 28.9c-4.7 2.6-13.3 4.7-24.9 4.7-21.1 0-36.9-15.5-36.9-36.5l.2-113.9 34.7-7.4 0 30.8 26.9 0 0 30.3zm74 2.4c-4.5-1.5-18.7-3.6-27.1 7.4l0 84.4-35.5 0 0-124.5 30.7 0 2.2 10.5c8.3-15.3 24.9-12.2 29.6-10.5l.1 0 0 32.7zm44.1 91.8l-35.7 0 0-124.5 35.7 0 0 124.5zm0-142.9l-35.7 7.6 0-28.9 35.7-7.6 0 28.9zm74.1 145.5c-12.4 0-20-5.3-25.1-9l-.1 40.2-35.5 7.5 0-165.8 31.3 0 1.8 8.8c4.9-4.5 13.9-11.1 27.8-11.1 24.9 0 48.4 22.5 48.4 63.8 0 45.1-23.2 65.5-48.6 65.6zm160.4-51.5l-69.5 0c1.6 16.6 13.8 21.5 27.6 21.5 14.1 0 25.2-3 34.9-7.9l0 28.6c-9.7 5.3-22.4 9.2-39.4 9.2-34.6 0-58.8-21.7-58.8-64.5 0-36.2 20.5-64.9 54.3-64.9 33.7 0 51.3 28.7 51.3 65.1 0 3.5-.3 10.9-.4 12.9z"]},p={prefix:"fab",iconName:"facebook",icon:[512,512,[62e3],"f09a","M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256C0 376 82.7 476.8 194.2 504.5l0-170.3-52.8 0 0-78.2 52.8 0 0-33.7c0-87.1 39.4-127.5 125-127.5 16.2 0 44.2 3.2 55.7 6.4l0 70.8c-6-.6-16.5-1-29.6-1-42 0-58.2 15.9-58.2 57.2l0 27.8 83.6 0-14.4 78.2-69.3 0 0 175.9C413.8 494.8 512 386.9 512 256z"]},m={prefix:"fab",iconName:"facebook-f",icon:[320,512,[],"f39e","M80 299.3l0 212.7 116 0 0-212.7 86.5 0 18-97.8-104.5 0 0-34.6c0-51.7 20.3-71.5 72.7-71.5 16.3 0 29.4 .4 37 1.2l0-88.7C291.4 4 256.4 0 236.2 0 129.3 0 80 50.5 80 159.4l0 42.1-66 0 0 97.8 66 0z"]},g={prefix:"fab",iconName:"facebook-messenger",icon:[512,512,[],"f39f","M256.6 8c-140 0-248.6 102.3-248.6 240.6 0 72.3 29.7 134.8 78.1 177.9 8.3 7.5 6.6 11.9 8 58.2 .1 3.2 1 6.4 2.6 9.2s3.9 5.2 6.7 6.9 5.9 2.8 9.1 3 6.5-.3 9.5-1.6C174.9 479 175.6 477.2 
2184.6 479.6 337.8 521.8 504 423.7 504 248.6 504 110.3 396.6 8 256.6 8zM405.8 193.1l-73 115.6c-2.8 4.3-6.4 8.1-10.6 11s-9.1 4.8-14.1 5.8-10.3 .8-15.3-.4-9.7-3.4-13.8-6.4l-58.1-43.5c-2.6-1.9-5.8-3-9-3s-6.4 1.1-9 3l-78.4 59.4c-10.5 7.9-24.2-4.6-17.1-15.7l73-115.6c2.8-4.3 6.4-8.1 10.6-11s9.1-4.8 14.1-5.8 10.3-.8 15.3 .4 9.7 3.4 13.9 6.4l58.1 43.5c2.6 1.9 5.8 3 9 3s6.4-1.1 9-3l78.4-59.4c10.4-8 24.1 4.5 17.1 15.6z"]},y={prefix:"fab",iconName:"google-play",icon:[448,512,[],"f3ab","M293.6 234.3L72.9 13 353.7 174.2 293.6 234.3zM15.3 0C2.3 6.8-6.4 19.2-6.4 35.3l0 441.3c0 16.1 8.7 28.5 21.7 35.3L271.9 255.9 15.3 0zM440.5 225.6l-58.9-34.1-65.7 64.5 65.7 64.5 60.1-34.1c18-14.3 18-46.5-1.2-60.8zM72.9 499L353.7 337.8 293.6 277.7 72.9 499z"]},_={prefix:"fab",iconName:"instagram",icon:[448,512,[],"f16d","M224.3 141a115 115 0 1 0 -.6 230 115 115 0 1 0 .6-230zm-.6 40.4a74.6 74.6 0 1 1 .6 149.2 74.6 74.6 0 1 1 -.6-149.2zm93.4-45.1a26.8 26.8 0 1 1 53.6 0 26.8 26.8 0 1 1 -53.6 0zm129.7 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM399 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"]},v={prefix:"fab",iconName:"line",icon:[512,512,[],"f3c0","M311 196.8l0 81.3c0 2.1-1.6 3.7-3.7 3.7l-13 0c-1.3 0-2.4-.7-3-1.5L254 230 254 278.2c0 2.1-1.6 3.7-3.7 3.7l-13 0c-2.1 0-3.7-1.6-3.7-3.7l0-81.3c0-2.1 1.6-3.7 3.7-3.7l12.9 0c1.1 0 2.4 .6 3 1.6l37.3 50.3 0-48.2c0-2.1 1.6-3.7 3.7-3.7l13 0c2.1-.1 3.8 1.6 3.8 3.5l0 .1zm-93.7-3.7l-13 0c-2.1 0-3.7 1.6-3.7 3.7l0 81.3c0 2.1 1.6 3.7 3.7 3.7l13 0c2.1 0 3.7-1.6 3.7-3.7l0-81.3c0-1.9-1.6-3.7-3.7-3.7zm-31.4 68.1l-35.6 0 0-64.4c0-2.1-1.6-3.7-3.7-3.7l-13 0c-2.1 0-3.7 1.6-3.7 3.7l0 81.3c0 1 .3 1.8 1 2.5 .7 .6 1.5 1 2.5 1l52.2 0c2.1 0 3.7-1.6 3.7-3.7l0-13c0-1.9-1.6-3.7-3.5-3.7l.1 0zm193.7-68.1l-52.3 0c-1.9 0-3.7 1.6-3.7 3.7l0 81.3c0 1.9 1.6 3.7 3.7 3.7l52.2 0c2.1 0 3.7-1.6 3.7-3.7l0-13.1c0-2.1-1.6-3.7-3.7-3.7l-35.5 0 0-13.6 35.5 0c2.1 0 3.7-1.6 3.7-3.7l0-13.1c0-2.1-1.6-3.7-3.7-3.7l-35.5 0 0-13.7 35.5 0c2.1 0 3.7-1.6 3.7-3.7l0-13c-.1-1.9-1.7-3.7-3.7-3.7l.1 0zM512 93.4l0 326c-.1 51.2-42.1 92.7-93.4 92.6l-326 0C41.4 511.9-.1 469.8 0 418.6l0-326C.1 41.4 42.2-.1 93.4 0l326 0c51.2 .1 92.7 42.1 92.6 93.4zM441.6 233.5c0-83.4-83.7-151.3-186.4-151.3S68.8 150.1 68.8 233.5c0 74.7 66.3 137.4 155.9 149.3 21.8 4.7 19.3 12.7 14.4 42.1-.8 4.7-3.8 18.4 16.1 10.1s107.3-63.2 146.5-108.2c27-29.7 39.9-59.8 39.9-93.1l0-.2z"]},b={prefix:"fab",iconName:"linkedin",icon:[448,512,[],"f08c","M416 32L31.9 32C14.3 32 0 46.5 0 64.3L0 447.7C0 465.5 14.3 480 31.9 480L416 480c17.6 0 32-14.5 32-32.3l0-383.4C448 46.5 433.6 32 416 32zM135.4 416l-66.4 0 0-213.8 66.5 0 0 213.8-.1 0zM102.2 96a38.5 38.5 0 1 1 0 77 38.5 38.5 0 1 1 0-77zM384.3 416l-66.4 0 0-104c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9l0 105.8-66.4 0 0-213.8 63.7 0 0 29.2 .9 0c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9l0 117.2z"]},x={prefix:"fab",iconName:"linkedin-in",icon:[448,512,[],"f0e1","M100.3 448l-92.9 0 0-299.1 92.9 0 0 299.1zM53.8 108.1C24.1 108.1 0 83.5 0 53.8 0 39.5 5.7 25.9 15.8 15.8s23.8-15.8 38-15.8 27.9 5.7 38 15.8 15.8 23.8 15.8 38c0 29.7-24.1 54.3-53.8 54.3zM447.9 448l-92.7 0 0-145.6c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7l0 148.1-92.8 0 0-299.1 89.1 0 0 40.8 1.3 0c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3l0 164.3-.1 0z"]},w={prefix:"fab",iconName:"pinterest",icon:[512,512,[],"f0d2","M504 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3 .8-3.4 5-20.3 6.9-28.1 .6-2.5 .3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2C161.5 437.2 163.5 467.4 165.6 487 73.4 450.9 8 361.1 8 256 8 119 119 8 256 8S504 119 504 256z"]},k={prefix:"fab",iconName:"square-reddit",icon:[448,512,["reddit-square"],"f1a2","M64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96C0 60.7 28.7 32 64 32zM305.9 166.4c20.6 0 37.3-16.7 37.3-37.3s-16.7-37.3-37.3-37.3c-18 0-33.1 12.8-36.6 29.8-30.2 3.2-53.8 28.8-53.8 59.9l0 .2c-32.8 1.4-62.8 10.7-86.6 25.5-8.8-6.8-19.9-10.9-32-10.9-28.9 0-52.3 23.4-52.3 52.3 0 21 12.3 39 30.1 47.4 1.7 60.7 67.9 109.6 149.3 109.6s147.6-48.9 149.3-109.7c17.7-8.4 29.9-26.4 29.9-47.3 0-28.9-23.4-52.3-52.3-52.3-12 0-23 4-31.9 10.8-24-14.9-54.3-24.2-87.5-25.4l0-.1c0-22.2 16.5-40.7 37.9-43.7 3.9 16.5 18.7 28.7 36.3 28.7l.2-.2zM155 248.1c14.6 0 25.8 15.4 25 34.4s-11.8 25.9-26.5 25.9-27.5-7.7-26.6-26.7 13.5-33.5 28.1-33.5l0-.1zm166.4 33.5c.9 19-12 26.7-26.6 26.7s-25.6-6.9-26.5-25.9 10.3-34.4 25-34.4 27.3 14.6 28.1 33.5l0 .1zm-42.1 49.6c-9 21.5-30.3 36.7-55.1 36.7s-46.1-15.1-55.1-36.7c-1.1-2.6 .7-5.4 3.4-5.7 16.1-1.6 33.5-2.5 51.7-2.5s35.6 .9 51.7 2.5c2.7 .3 4.5 3.1 3.4 5.7z"]},T=k,S={prefix:"fab",iconName:"square-whatsapp",icon:[448,512,["whatsapp-square"],"f40c","M92.1 254.6c0 24.9 7 49.2 20.2 70.1l3.1 5-13.3 48.6 49.9-13.1 4.8 2.9c20.2 12 43.4 18.4 67.1 18.4l.1 0c72.6 0 133.3-59.1 133.3-131.8 0-35.2-15.2-68.3-40.1-93.2-25-25-58-38.7-93.2-38.7-72.7 0-131.8 59.1-131.9 131.8zM274.8 330c-12.6 1.9-22.4 .9-47.5-9.9-36.8-15.9-61.8-51.5-66.9-58.7-.4-.6-.7-.9-.8-1.1-2-2.6-16.2-21.5-16.2-41 0-18.4 9-27.9 13.2-32.3 .3-.3 .5-.5 .7-.8 3.6-4 7.9-5 10.6-5 2.6 0 5.3 0 7.6 .1l.8 0c2.3 0 5.2 0 8.1 6.8 1.2 2.9 3 7.3 4.9 11.8 3.3 8 6.7 16.3 7.3 17.6 1 2 1.7 4.3 .3 6.9-3.4 6.8-6.9 10.4-9.3 13-3.1 3.2-4.5 4.7-2.3 8.6 15.3 26.3 30.6 35.4 53.9 47.1 4 2 6.3 1.7 8.6-1 2.3-2.6 9.9-11.6 12.5-15.5 2.6-4 5.3-3.3 8.9-2s23.1 10.9 27.1 12.9c.8 .4 1.5 .7 2.1 1 2.8 1.4 4.7 2.3 5.5 3.6 .9 1.9 .9 9.9-2.4 19.1-3.3 9.3-19.1 17.7-26.7 18.8zM448 96c0-35.3-28.7-64-64-64L64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320zM148.1 393.9L64 416 86.5 333.8c-13.9-24-21.2
2-51.3-21.2-79.3 .1-87.4 71.2-158.5 158.6-158.5 42.4 0 82.2 16.5 112.2 46.5 29.9 30 47.9 69.8 47.9 112.2 0 87.4-72.7 158.5-160.1 158.5-26.6 0-52.7-6.7-75.8-19.3z"]},A=S,C={prefix:"fab",iconName:"square-x-twitter",icon:[448,512,[],"e61a","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm297.1 84l-103.8 118.6 122.1 161.4-95.6 0-74.8-97.9-85.7 97.9-47.5 0 111-126.9-117.1-153.1 98 0 67.7 89.5 78.2-89.5 47.5 0zM323.3 367.6l-169.9-224.7-28.3 0 171.8 224.7 26.4 0z"]},E={prefix:"fab",iconName:"stripe",icon:[640,512,[],"f429","M165 144.7l-43.3 9.2-.2 142.4c0 26.3 19.8 43.3 46.1 43.3 14.6 0 25.3-2.7 31.2-5.9l0-33.8c-5.7 2.3-33.7 10.5-33.7-15.7l0-63.2 33.7 0 0-37.8-33.7 0-.1-38.5zm89.1 51.6l-2.7-13.1-38.4 0 0 153.2 44.3 0 0-103.1c10.5-13.8 28.2-11.1 33.9-9.3l0-40.8c-6-2.1-26.7-6-37.1 13.1zM346.4 124l-44.6 9.5 0 36.2 44.6-9.5 0-36.2zM44.9 228.3c0-6.9 5.8-9.6 15.1-9.7 13.5 0 30.7 4.1 44.2 11.4l0-41.8c-14.7-5.8-29.4-8.1-44.1-8.1-36 0-60 18.8-60 50.2 0 49.2 67.5 41.2 67.5 62.4 0 8.2-7.1 10.9-17 10.9-14.7 0-33.7-6.1-48.6-14.2l0 40c16.5 7.1 33.2 10.1 48.5 10.1 36.9 0 62.3-15.8 62.3-47.8 0-52.9-67.9-43.4-67.9-63.4zM640 261.6c0-45.5-22-81.4-64.2-81.4s-67.9 35.9-67.9 81.1c0 53.5 30.3 78.2 73.5 78.2 21.2 0 37.1-4.8 49.2-11.5l0-33.4c-12.1 6.1-26 9.8-43.6 9.8-17.3 0-32.5-6.1-34.5-26.9l86.9 0c.2-2.3 .6-11.6 .6-15.9zm-87.9-16.8c0-20 12.3-28.4 23.4-28.4 10.9 0 22.5 8.4 22.5 28.4l-45.9 0zM439.2 180.2c-17.4 0-28.6 8.2-34.8 13.9l-2.3-11-39.1 0 0 204.8 44.4-9.4 .1-50.2c6.4 4.7 15.9 11.2 31.4 11.2 31.8 0 60.8-23.2 60.8-79.6 .1-51.6-29.3-79.7-60.5-79.7zM428.6 302.7c-10.4 0-16.6-3.8-20.9-8.4l-.3-66c4.6-5.1 11-8.8 21.2-8.8 16.2 0 27.4 18.2 27.4 41.4 .1 23.9-10.9 41.8-27.4 41.8zM301.9 336.4l44.6 0 0-153.2-44.6 0 0 153.2z"]},M={prefix:"fab",iconName:"tiktok",icon:[448,512,[],"e07b","M448.5 209.9c-44 .1-87-13.6-122.8-39.2l0 178.7c0 33.1-10.1 65.4-29 92.6s-45.6 48-76.6 59.6-64.8 13.5-96.9 5.3-60.9-25.9-82.7-50.8-35.3-56-39-88.9 2.9-66.1 18.6-95.2 40-52.7 69.6-67.7 62.9-20.5 95.7-16l0 89.9c-15-4.7-31.1-4.6-46 .4s-27.9 14.6-37 27.3-14 28.1-13.9 43.9 5.2 31 14.5 43.7 22.4 22.1 37.4 26.9 31.1 4.8 46-.1 28-14.4 37.2-27.1 14.2-28.1 14.2-43.8l0-349.4 88 0c-.1 7.4 .6 14.9 1.9 22.2 3.1 16.3 9.4 31.9 18.7 45.7s21.3 25.6 35.2 34.6c19.9 13.1 43.2 20.1 67 20.1l0 87.4z"]},P={prefix:"fab",iconName:"youtube",icon:[576,512,[61802],"f167","M549.7 124.1C543.5 100.4 524.9 81.8 501.4 75.5 458.9 64 288.1 64 288.1 64S117.3 64 74.7 75.5C51.2 81.8 32.7 100.4 26.4 124.1 15 167 15 256.4 15 256.4s0 89.4 11.4 132.3c6.3 23.6 24.8 41.5 48.3 47.8 42.6 11.5 213.4 11.5 213.4 11.5s170.8 0 213.4-11.5c23.5-6.3 42-24.2 48.3-47.8 11.4-42.9 11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zM232.2 337.6l0-162.4 142.7 81.2-142.7 81.2z"]},D={prefix:"far",iconName:"arrow-turn-left",icon:[512,512,[],"e632","M464 424c0 13.3 10.7 24 24 24s24-10.7 24-24l0-96c0-53-43-96-96-96l-334.1 0 95-95c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0L7 239c-4.5 4.5-7 10.6-7 17s2.5 12.5 7 17L143 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-95-95 334.1 0c26.5 0 48 21.5 48 48l0 96z"]},I={prefix:"far",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 88C0 74.7 10.7 64 24 64l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 112C10.7 112 0 101.3 0 88zM0 256c0-13.3 10.7-24 24-24l400 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L24 280c-13.3 0-24-10.7-24-24zM448 424c0 13.3-10.7 24-24 24L24 448c-13.3 0-24-10.7-24-24s10.7-24 24-24l400 0c13.3 0 24 10.7 24 24z"]},z=I,F={prefix:"far",iconName:"books",icon:[576,512,[128218],"f5db","M96.3 48l48 0c8.8 0 16 7.2 16 16l0 32-80 0 0-32c0-8.8 7.2-16 16-16zm-16 96l80 0 0 224-80 0 0-224zm128-78l0-2c0-35.3-28.7-64-64-64l-48 0c-35.3 0-64 28.7-64 64l0 384c0 35.3 28.7 64 64 64l48 0c15.1 0 29-5.3 40-14 11 8.8 24.9 14 40 14l48 0c35.3 0 64-28.7 64-64l0-164.4 48.6 181.2c9.1 34.1 44.2 54.4 78.4 45.3l46.4-12.4c34.1-9.1 54.4-44.2 45.3-78.4L455.4 48.3C446.3 14.2 411.2-6.1 377 3.1L330.7 15.5c-24.4 6.5-41.8 26.4-46.3 49.7-3.9-.8-8-1.1-12.1-1.1l-48 0c-5.5 0-10.9 .7-16 2zm0 62c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16l0 320c0 8.8-7.2 16-16 16l-48 0c-8.8 0-16-7.2-16-16l0-320zm-48 320c0 8.8-7.2 16-16 16l-48 0c-8.8 0-16-7.2-16-16l0-32 80 0 0 32zM389.5 49.4c8.5-2.3 17.3 2.8 19.6 11.3l8.3 30.9-77.3 20.7-8.3-30.9c-2.3-8.5 2.8-17.3 11.3-19.6l46.4-12.4zm21 325.7l-58-216.4 77.3-20.7 58 216.4-77.3 20.7zm12.4 46.4l77.3-20.7 8.3 30.9c2.3 8.5-2.8 17.3-11.3 19.6l-46.4 12.4c-8.5 2.3-17.3-2.8-19.6-11.3l-8.3-30.9z"]}
2,R={prefix:"far",iconName:"broom",icon:[576,512,[129529],"f51a","M569 41c9.4-9.4 9.4-24.6 0-33.9S544.4-2.3 535 7l-200 200-39-39c-5.1-5.1-12.1-8-19.4-8-12.2 0-23 8.1-26.3 19.9l-15.9 55.6-.6-.1c-46.4-7.1-93.5 8.3-126.7 41.5L97 287c-18.4 18.4-29.7 42.4-32.4 68-.4 3.8-.6 7.7-.6 11.6 0 9.6 7.8 17.3 17.3 17.3l22.7 0C74.8 411 40.1 443 7.2 473.4 2.6 477.6 0 483.5 0 489.7 0 502 10 512 22.3 512l172.7 0c39.1 0 76.6-15.5 104.2-43.2 33.2-33.2 48.6-80.2 41.5-126.7l-.1-.6 55.6-15.9c11.8-3.4 19.9-14.1 19.9-26.3 0-7.3-2.9-14.2-8-19.4L369 241 569 41zM278.8 254.8l8-28.1 62.4 62.4-28.1 8-42.3-42.3zm-52.3 28l9.8 1.5 55.4 55.4 1.5 9.8c4.8 31.3-5.6 63-28 85.4-18.6 18.6-43.9 29.1-70.3 29.1l-106.8 0 48.5-44.7c14.5-13.4 19.3-34.3 12.1-52.7-5.4-13.7-16.6-23.9-30.1-28.3 3.1-6.4 7.3-12.2 12.4-17.3l10.2-10.2c22.4-22.4 54.1-32.8 85.4-28z"]},O={prefix:"far",iconName:"chevron-right",icon:[320,512,[9002],"f054","M313.5 239c9.4 9.4 9.4 24.6 0 33.9l-200 200c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l183-183-183-183c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l200 200z"]},B={prefix:"far",iconName:"children",icon:[640,512,[],"e4e1","M160.5 48a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm0 96a72 72 0 1 0 0-144 72 72 0 1 0 0 144zm0 16c-34.6 0-67.3 16.2-88.2 43.8L13.4 281.5c-8 10.6-5.9 25.6 4.6 33.6s25.6 5.9 33.6-4.6L97 250.7 57.7 368.4c-2.4 7.3-1.2 15.4 3.3 21.6s11.8 10 19.5 10l16 0 0 88c0 13.3 10.7 24 24 24s24-10.7 24-24l0-88 32 0 0 88c0 13.3 10.7 24 24 24s24-10.7 24-24l0-88 16 0c7.7 0 15-3.7 19.5-10s5.7-14.3 3.3-21.6L224 250.7 269.4 310.5c8 10.6 23.1 12.6 33.6 4.6s12.6-23.1 4.6-33.6l-58.9-77.7c-20.9-27.6-53.6-43.8-88.2-43.8zM113.8 352l46.7-140.1 46.7 140.1-93.4 0zM456.5 72a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zm96 0a72 72 0 1 0 -144 0 72 72 0 1 0 144 0zm-72 136c5.5 0 10.9 .9 16 2.6l0 125.4-32 0 0-125.4c5.1-1.7 10.5-2.6 16-2.6zm-16 280l0-104 32 0 0 104c0 13.3 10.7 24 24 24s24-10.7 24-24l0-223.2 27.7 44c7.1 11.2 21.9 14.6 33.1 7.5s14.6-21.9 7.5-33.1l-48.4-76.9c-18.2-28.8-49.8-46.3-83.9-46.3s-65.8 17.5-83.9 46.3l-48.4 76.9c-7.1 11.2-3.7 26 7.5 33.1s26 3.7 33.1-7.5l27.7-44 0 223.2c0 13.3 10.7 24 24 24s24-10.7 24-24z"]},j={prefix:"far",iconName:"copy",icon:[448,512,[],"f0c5","M384 336l-192 0c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l133.5 0c4.2 0 8.3 1.7 11.3 4.7l58.5 58.5c3 3 4.7 7.1 4.7 11.3L400 320c0 8.8-7.2 16-16 16zM192 384l192 0c35.3 0 64-28.7 64-64l0-197.5c0-17-6.7-33.3-18.7-45.3L370.7 18.7C358.7 6.7 342.5 0 325.5 0L192 0c-35.3 0-64 28.7-64 64l0 256c0 35.3 28.7 64 64 64zM64 128c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l192 0c35.3 0 64-28.7 64-64l0-16-48 0 0 16c0 8.8-7.2 16-16 16L64 464c-8.8 0-16-7.2-16-16l0-256c0-8.8 7.2-16 16-16l16 0 0-48-16 0z"]},N={prefix:"far",iconName:"dice",icon:[512,512,[127922],"f522","M454.6 192.4c32.3 3.3 57.5 30.5 57.5 63.7l0 192-.3 6.5c-3.1 30.1-27 54.1-57.1 57.1l-6.5 .3-192 0-6.5-.3c-30.1-3.1-54.1-27-57.1-57.1l-.3-6.5 0-30.2 38.3 10.3 6 1.4c1.2 .3 2.4 .5 3.7 .7l0 17.8c0 8.8 7.2 16 16 16l192 0c8.8 0 16-7.2 16-16l0-192c0-8.8-7.2-16-16-16l-43.1 0 12.9-48 30.2 0 6.5 .3zM55.5 46.2C67.6 14.4 100.6-4.7 134.2 .8l7.2 1.6 189.5 50.8 7 2.2c34.1 13 53.5 49.9 43.9 85.9l-50.8 189.6-2.3 7c-12.1 31.8-45.
21 50.9-78.7 45.4l-7.2-1.5-189.5-50.8c-36-9.7-58.3-45-52.4-81l1.5-7.2 50.8-189.5 2.3-7zM126 48.1c-10.8-1.5-21.4 4.7-25.4 14.8l-1.3 3.9-50.4 188.4c-3.4 12.8 4.2 26 17 29.4l189.5 50.8 0 0c12 3.2 24.3-3.2 28.6-14.6l.8-2.4 50.8-189.5 .8-4.5c.7-10.3-5.3-20.1-15-24l-3.8-1.2-186.9-50.1-4.5-1zM246.1 297.3a28 28 0 1 1 -28-48.5 28 28 0 1 1 28 48.5zm-121-41a28 28 0 1 1 -28-48.5 28 28 0 1 1 28 48.5zm81-40a28 28 0 1 1 -28-48.5 28 28 0 1 1 28 48.5zm81-40a28 28 0 1 1 -28-48.5 28 28 0 1 1 28 48.5zm-121-41a28 28 0 1 1 -28-48.5 28 28 0 1 1 28 48.5z"]},$={prefix:"far",iconName:"graduation-cap",icon:[576,512,[127891,"mortar-board"],"f19d","M318.8 38.1C309 34.1 298.6 32 288 32s-21 2.1-30.8 6.1L14.8 137.9C5.8 141.6 0 150.3 0 160L0 456c0 13.3 10.7 24 24 24s24-10.7 24-24l0-260.2 48 19.8 0 168.5c0 53 86 96 192 96s192-43 192-96l0-168.5 81.2-33.4c9-3.7 14.8-12.4 14.8-22.1s-5.8-18.4-14.8-22.1L318.8 38.1zM144 384l0-148.7 113.2 46.6c9.8 4 20.2 6.1 30.8 6.1s21-2.1 30.8-6.1L432 235.3 432 384c0 .1 0 .1 0 .3s-.1 .4-.3 .9c-.4 .9-1.3 2.7-3.4 5.2-4.4 5.2-12.6 11.9-26 18.6-26.8 13.4-67.1 23-114.3 23s-87.5-9.7-114.3-23c-13.4-6.7-21.6-13.4-26-18.6-2.1-2.5-3-4.3-3.4-5.2-.2-.5-.3-.8-.3-.9s0-.2 0-.3zM87.2 160L275.5 82.5c4-1.6 8.2-2.5 12.5-2.5s8.5 .8 12.5 2.5L488.8 160 300.5 237.5c-4 1.6-8.2 2.5-12.5 2.5s-8.5-.8-12.5-2.5L87.2 160z"]}
2,V=$,U={prefix:"far",iconName:"party-horn",icon:[512,512,[],"e31b","M32 32a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zM448 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm32 256a32 32 0 1 1 0 64 32 32 0 1 1 0-64zM167 153c-9.4-9.4-9.4-24.6 0-33.9l8.3-8.3c16.7-16.7 27.2-38.6 29.8-62.1l3-27.4C209.6 8.2 221.5-1.3 234.7 .1s22.7 13.3 21.2 26.5l-3 27.4c-3.8 34.3-19.2 66.3-43.6 90.7L201 153c-9.4 9.4-24.6 9.4-33.9 0zM359 311l8.2-8.2c24.4-24.4 56.4-39.8 90.7-43.6l27.4-3c13.2-1.5 25 8 26.5 21.2s-8 25-21.2 26.5l-27.4 3c-23.5 2.6-45.4 13.1-62.1 29.8L393 345c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9zM506.3 8.5c8.6 10.1 7.3 25.3-2.8 33.8l-10 8.5c-14.8 12.5-33.7 19.1-53 18.6-16.6-.4-30.6 12.4-31.6 29l-1.8 30c-2.5 42.5-38.3 75.3-80.8 74.2-7.6-.2-15 2.4-20.7 7.3l-10 8.5c-10.1 8.6-25.3 7.3-33.8-2.8s-7.3-25.3 2.8-33.8l10-8.5c14.8-12.5 33.7-19.1 53-18.6 16.6 .4 30.6-12.4 31.6-29l1.8-30c2.5-42.5 38.3-75.3 80.8-74.2 7.6 .2 15-2.4 20.7-7.3l10-8.5c10.1-8.6 25.3-7.3 33.8 2.8zM59.3 452.7l86.9-32.6-54.3-54.3-32.6 86.9zm200.1-75l-125-125-23.9 63.8 85.1 85.1 63.8-23.9zM98.1 212.6c8-21.4 36.4-27.6 52.6-11.4L310.9 361.3c16.2 16.2 10 44.6-11.4 52.6L43.3 510C18.1 519.4-7.4 494 2 468.8L98.1 212.6z"]},G={prefix:"far",iconName:"sack-dollar",icon:[512,512,[128176],"f81d","M379 56.7L332.6 138c83.9 76.5 163.4 153.7 163.4 278.8 0 52.6-42.6 95.2-95.2 95.2l-289.6 0C58.6 512 16 469.4 16 416.8 16 291.7 95.5 214.5 179.4 138L133 56.7C129.7 51 128 44.5 128 37.9 128 17 145 0 165.9 0L346.1 0c20.9 0 37.9 17 37.9 37.9 0 6.6-1.7 13.1-5 18.8zM226.6 160l-.9 .9C134.2 244.4 64 308.6 64 416.8 64 442.9 85.1 464 111.2 464l289.6 0c26.1 0 47.2-21.1 47.2-47.2 0-108.3-70.2-172.4-161.7-256l-.9-.9-58.7 0zm-6.8-48l72.3 0 36.6-64-145.4 0 36.6 64zM260 208c11 0 20 9 20 20l0 4 8 0c11 0 20 9 20 20s-9 20-20 20l-47.5 0c-6.9 0-12.5 5.6-12.5 12.5 0 6.1 4.4 11.3 10.4 12.3l41.7 7c25.3 4.2 43.9 26.1 43.9 51.8 0 26.1-19 47.7-44 51.8l0 4.7c0 11-9 20-20 20s-20-9-20-20l0-4-24 0c-11 0-20-9-20-20s9-20 20-20l55.5 0c6.9 0 12.5-5.6 12.5-12.5 0-6.1-4.4-11.3-10.4-12.3l-41.7-7c-25.3-4.2-43.9-26.1-43.9-51.8 0-28.8 23.2-52.2 52-52.5l0-4c0-11 9-20 20-20z"]},q={prefix:"far",iconName:"smoking",icon:[576,512,[128684],"f48d","M360 0c13.3 0 24 10.7 24 24l0 19c0 40.3 16 79 44.5 107.5l21 21C469 191 480 217.4 480 245l0 19c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-19c0-14.9-5.9-29.1-16.4-39.6l-21-21C357.1 146.9 336 96 336 43l0-19c0-13.3 10.7-24 24-24zM552 288c-13.3 0-24-10.7-24-24l0-19c0-40.3-16-79-44.5-107.5l-21-21C443 97 432 70.6 432 43l0-19c0-13.3 10.7-24 24-24s24 10.7 24 24l0 19c0 14.9 5.9 29.1 16.4 39.6l21 21C554.9 141.1 576 192 576 245l0 19c0 13.3-10.7 24-24 24zM64 400c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l208 0 0-64-208 0zm256 64l112 0 0-64-112 0 0 64zM0 416c0-35.3 28.7-64 64-64l384 0c17.7 0 32 14.3 32 32l0 96c0 17.7-14.3 32-32 32L64 512c-35.3 0-64-28.7-64-64l0-32zm576-40l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},Z={prefix:"far",iconName:"spinner",icon:[512,512,[],"f110","M288 32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0 448a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM448 256a32 32 0 1 0 64 0 32 32 0 1 0 -64 0zM32 288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM75 437A32 32 0 1 0 120.2 391.8 32 32 0 1 0 75 437zm316.8 0A32 32 0 1 0 437 391.8 32 32 0 1 0 391.8 437zM75 75A32 32 0 1 0 120.2 120.2 32 32 0 1 0 75 75z"]},H={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8c-22.4 31.4-35.5 69.8-35.5 111.2 0 106 86 192 192 192 41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3c22.4-31.4 35.5-69.8 35.5-111.2 0-106-86-192-192-192-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z"]},W=H,X={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},Y=X,K={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M140.3 376.8c12.6 10.2 31.1 9.5 42.8-2.2l128-128c9.2-9.2 11.9-22.9 6.9-34.9S301.4 192 288.5 192l-256 0c-12.9 0-24.6 7.8-29.6 19.8S.7 237.5 9.9 246.6l128 128 2.4 2.2z"]}
vendor: 7,053 bytes, line 2
2,J={prefix:"fas",iconName:"caret-left",icon:[256,512,[],"f0d9","M7.7 235.8c-10.3 12.6-9.5 31.1 2.2 42.8l128 128c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-256c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9l-128 128-2.2 2.4z"]},Q={prefix:"fas",iconName:"caret-right",icon:[256,512,[],"f0da","M249.3 235.8c10.2 12.6 9.5 31.1-2.2 42.8l-128 128c-9.2 9.2-22.9 11.9-34.9 6.9S64.5 396.9 64.5 384l0-256c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l128 128 2.2 2.4z"]},ee={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M140.3 135.2c12.6-10.3 31.1-9.5 42.8 2.2l128 128c9.2 9.2 11.9 22.9 6.9 34.9S301.4 320 288.5 320l-256 0c-12.9 0-24.6-7.8-29.6-19.8S.7 274.5 9.9 265.4l128-128 2.4-2.2z"]},et={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"]},ei={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},er={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},ea={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},en={prefix:"fas",iconName:"circle-half",icon:[512,512,[],"e110","M256 32C256 14.3 241.6-.2 224.1 2 97.8 17.7 0 125.4 0 256S97.8 494.3 224.1 510c17.5 2.2 31.9-12.4 31.9-30l0-448z"]},eo={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm0-336c-17.7 0-32 14.3-32 32 0 13.3-10.7 24-24 24s-24-10.7-24-24c0-44.2 35.8-80 80-80s80 35.8 80 80c0 47.2-36 67.2-56 74.5l0 3.8c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-8.1c0-20.5 14.8-35.2 30.1-40.2 6.4-2.1 13.2-5.5 18.2-10.3 4.3-4.2 7.7-10 7.7-19.6 0-17.7-14.3-32-32-32zM224 368a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},es=eo,el={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 144a56 56 0 1 1 0-112 56 56 0 1 1 0 112zm0 224c30.9 0 56 25.1 56 56s-25.1 56-56 56-56-25.1-56-56 25.1-56 56-56zm56-112c0 30.9-25.1 56-56 56s-56-25.1-56-56 25.1-56 56-56 56 25.1 56 56z"]},ec=el,eu={prefix:"fas",iconName:"file-pdf",icon:[576,512,[],"f1c1","M96 0C60.7 0 32 28.7 32 64l0 384c0 35.3 28.7 64 64 64l80 0 0-112c0-35.3 28.7-64 64-64l176 0 0-165.5c0-17-6.7-33.3-18.7-45.3L290.7 18.7C278.7 6.7 262.5 0 245.5 0L96 0zM357.5 176L264 176c-13.3 0-24-10.7-24-24L240 58.5 357.5 176zM240 380c-11 0-20 9-20 20l0 128c0 11 9 20 20 20s20-9 20-20l0-28 12 0c33.1 0 60-26.9 60-60s-26.9-60-60-60l-32 0zm32 80l-12 0 0-40 12 0c11 0 20 9 20 20s-9 20-20 20zm96-80c-11 0-20 9-20 20l0 128c0 11 9 20 20 20l32 0c28.7 0 52-23.3 52-52l0-64c0-28.7-23.3-52-52-52l-32 0zm20 128l0-88 12 0c6.6 0 12 5.4 12 12l0 64c0 6.6-5.4 12-12 12l-12 0zm88-108l0 128c0 11 9 20 20 20s20-9 20-20l0-44 28 0c11 0 20-9 20-20s-9-20-20-20l-28 0 0-24 28 0c11 0 20-9 20-20s-9-20-20-20l-48 0c-11 0-20 9-20 20z"]},eh={prefix:"fas",iconName:"left-right",icon:[512,512,[8596,"arrows-alt-h"],"f337","M502.6 406.6l-96 96c-9.2 9.2-22.9 11.9-34.9 6.9S352 492.9 352 480l0-64-320 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l320 0 0-64c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l96 96c12.5 12.5 12.5 32.8 0 45.3zM9.4 150.6c-12.5-12.5-12.5-32.8 0-45.3l96-96c9.2-9.2 22.9-11.9 34.9-6.9S160 19.1 160 32l0 64 320 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-320 0 0 64c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9l-96-96z"]},ed=eh,ef={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z"]},ep=ef,em={prefix:"fas",iconName:"sort",icon:[384,512,["unsorted"],"f0dc","M2.4 204.2c5 12 16.6 19.8 29.6 19.8l320 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-160-160c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-9.2 9.2-11.9 22.9-6.9 34.9zm0 103.5c-5 12-2.2 25.7 6.9 34.9l160 160c12.5 12.5 32.8 12.5 45.3 0l160-160c9.2-9.2 11.9-22.9 6.9-34.9S364.9 288 352 288L32 288c-12.9 0-24.6 7.8-29.6 19.8z"]},eg=em,ey={prefix:"fas",iconName:"sort-down",icon:[384,512,["sort-desc"],"f0dd","M32 288c-12.9 0-24.6 7.8-29.6 19.8S.2 333.5 9.4 342.6l160 160c12.5 12.5 32.8 12.5 45.3 0l160-160c9.2-9.2 11.9-22.9 6.9-34.9S364.9 288 352 288L32 288z"]},e_=ey,ev={prefix:"fas",iconName:"sort-up",icon:[384,512,["sort-asc"],"f0de","M32 224c-12.9 0-24.6-7.8-29.6-19.8S.2 178.5 9.4 169.4l160-160c12.5-12.5 32.8-12.5 45.3 0l160 160c9.2 9.2 11.9 22.9 6.9 34.9S364.9 224 352 224L32 224z"]},eb=ev,ex={prefix:"fas",iconName:"table-list",icon:[448,512,["th-list"],"f00b","M0 96C0 60.7 28.7 32 64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zm64 0l0 64 64 0 0-64-64 0zm320 0l-192 0 0 64 192 0 0-64zM64 224l0 64 64 0 0-64-64 0zm320 0l-192 0 0 64 192 0 0-64zM64 352l0 64 64 0 0-64-64 0zm320 0l-192 0 0 64 192 0 0-64z"]},ew=ex,ek={prefix:"fas",iconName:"up-down",icon:[512,512,[8597,11021,"arrows-alt-v"],"f338","M406.6 502.6l96-96c9.2-9.2 11.9-22.9 6.9-34.9S492.9 352 480 352l-64 0 0-320c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 320-64 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l96 96c12.5 12.5 32.8 12.5 45.3 0zM150.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-9.2 9.2-11.9 22.9-6.9 34.9S19.1 160 32 160l64 0 0 320c0 17.7 14.3 32 32 32s32-14.3 32-32l0-320 64 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-96-96z"]},eT=ek,eS={prefix:"fas",iconName:"upload",icon:[448,512,[],"f093","M256 109.3L256 320c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-210.7-41.4 41.4c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l96-96c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 109.3zM224 400c44.2 0 80-35.8 80-80l80 0c35.3 0 64 28.7 64 64l0 32c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64l0-32c0-35.3 28.7-64 64-64l80 0c0 44.2 35.8 80 80 80zm144 24a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},eA={prefix:"fas",iconName:"wreath-laurel",icon:[640,512,[],"e5d2","M144 112C144 50.1 194.1 0 256 0l16 0c8.8 0 16 7.2 16 16l0 16c0 60.2-47.5 109.3-107 111.9-23.9 32.2-37 71.5-37 112.1 0 97.2 78.8 176 176 176l0 0c68.7 0 121.4 22.7 141.3 36 11 7.4 14 22.3 6.7 33.3s-22.3 14-33.3 6.7c-12.1-8-55.4-28-114.7-28s-102.6 19.9-114.7 28c-11 7.4-25.9 4.4-33.3-6.7s-4.4-25.9 6.7-33.3c7-4.7 18.1-10.5 32.5-16.2-6.5-3.6-12.8-7.6-18.9-11.8-59.6 28.2-131.9 6.3-165.4-51.8l-8-13.9c-4.4-7.7-1.8-17.4 5.9-21.9 13.8-8 28.4-13.1 43.3-15.5-40.4-21.5-68-64.1-68-113.1l0-16c0-8.8 7.2-16 16-16 15.9 0 31.1 2.9 45.2 8.2-24.3-38.8-26.8-89.5-2.3-131.9l8-13.9c4.4-7.7 14.2-10.3 21.9-5.9 26.2 15.1 45.1 38.2 55.3 64.4l
20-1zM384 0c61.9 0 112 50.1 112 112l0 1c10.2-26.2 29-49.2 55.3-64.4 7.7-4.4 17.4-1.8 21.9 5.9l8 13.9c24.5 42.4 21.9 93.1-2.3 131.9 14.1-5.3 29.3-8.2 45.2-8.2 8.8 0 16 7.2 16 16l0 16c0 49-27.5 91.6-68 113.1 14.8 2.4 29.5 7.5 43.2 15.5 7.7 4.4 10.3 14.2 5.9 21.9l-8 13.9c-22.2 38.5-61.5 61.1-102.7 63.8-5.4-9.3-12.9-17.6-22.5-23.9-13.9-9.3-36.5-20.4-65.3-29.1 44.4-31.9 73.4-84.1 73.4-143 0-40.6-13.1-79.9-37-112.1-59.5-2.6-107-51.7-107-111.9l0-16c0-8.8 7.2-16 16-16l16 0z"]},eC={prefix:"fas",iconName:"xmark",icon:[384,512,[215,10005,10006,10060,128473,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},eE=eC,eM=eC,eP=eC,eD=eC,eI={prefix:"fajr",iconName:"circle-info",icon:[560,560,["info-circle"],"f05a","M238 154a42 42 0 1 1 84 0 42 42 0 1 1 -84 0zm-14 70c-15.5 0-28 12.5-28 28s12.5 28 28 28l28 0 0 112-28 0c-15.5 0-28 12.5-28 28s12.5 28 28 28l112 0c15.5 0 28-12.5 28-28s-12.5-28-28-28l-28 0 0-112c0-30.9-25.1-56-56-56l-28 0zM76.5 76.5C126.4 26.5 197 0 280 0S433.6 26.5 483.5 76.5 560 197 560 280 533.5 433.6 483.5 483.5 363 560 280 560 126.4 533.5 76.5 483.5 0 363 0 280 26.5 126.4 76.5 76.5zM116 116c-37.6 37.6-60 93-60 164s22.5 126.4 60 164 93 60 164 60 126.4-22.5 164-60 60-93 60-164-22.5-126.4-60-164-93-60-164-60-126.4 22.5-164 60z"]},ez=eI,eL={prefix:"fajr",iconName:"cake-candles",icon:[560,560,[127874,"birthday-cake","cake"],"f1fd","M140.5 0c15.5 0 28 12.5 28 28l0 84.5c9.1-.4 18.4-.5 28-.5l56 0 0-84c0-15.5 12.5-28 28-28s28 12.5 28 28l0 84 56 0c9.6 0 18.9 .1 28 .5l0-84.5c0-15.5 12.5-28 28-28s28 12.5 28 28l0 90.7c23.3 4.9 43.6 13.2 60.4 26.7 36.2 29.2 48.4 76.4 51 138.1 1.3 30.2-24.5 61.3-60.7 54.1-18.7-3.7-35.9-10.7-50.7-20.9-23.3 16-52.2 24-84 24s-60.7-8.1-84-24c-23.3 16-52.2 24-84 24s-60.7-8.1-84-24c-14.8 10.1-32 17.2-50.7 20.9-36.2 7.2-62-23.9-60.7-54.1 2.7-61.7 14.8-108.9 51-138.1 16.8-13.5 37.1-21.8 60.4-26.7l0-90.7c0-15.5 12.5-28 28-28zm56 168c-60.4 0-91.5 6.7-109.2 21-15.8 12.7-27.1 36.9-30 92.2 14.7-4 26.2-11.1 34.7-20.2 5.3-5.7 12.7-8.9 20.5-8.9s15.2 3.2 20.5 8.9c13.3 14.3 34.2 23.8 63.5 23.8s50.2-9.6 63.5-23.8c5.3-5.7 12.7-8.9 20.5-8.9s15.2 3.2 20.5 8.9c13.3 14.3 34.2 23.8 63.5 23.8s50.2-9.6 63.5-23.8c5.3-5.7 12.7-8.9 20.5-8.9s15.2 3.2 20.5 8.9c8.5 9.2 20 16.3 34.7 20.2-2.9-55.3-14.2-79.5-30-92.2-17.7-14.3-48.8-21-109.2-21l-168 0zM60 402c-2.2-15.3-16.4-25.9-31.7-23.8S2.4 394.7 4.6 410c6.3 44.3 21.9 78.8 58 99.3 32.7 18.6 77.9 22.7 133.8 22.7l168 0c56 0 101.2-4.1 133.8-22.7 36.1-20.5 51.7-55.1 58-99.3 2.2-15.3-8.5-29.5-23.8-31.7s-29.5 8.5-31.7 23.8c-5.1 35.6-15.3 50.1-30.3 58.6-18.4 10.5-49.6 15.4-106.2 15.4l-168 0c-56.6 0-87.8-4.9-106.2-15.4-14.9-8.5-25.2-23-30.3-58.6z"]},eF=eL,eR=eL,eO={prefix:"fajr",iconName:"money-bill",icon:[560,560,[],"f0d6","M185.1 252c7.1 0 13-5.3 14.3-12.3 3-15.5 8.3-29.2 16.3-40.6 15.9-22.4 39.4-31.1 64.2-31.1s48.2 8.7 64.2 31.1c8.1 11.4 13.3 25.1 16.3 40.6 1.4 7 7.3 12.3 14.3 12.3l45.1 0c15.5 0 28 12.5 28 28s-12.5 28-28 28l-45.1 0c-7.1 0-13 5.3-14.3 12.3-3 15.5-8.3 29.2-16.3 40.6-15.9 22.4-39.4 31.1-64.2 31.1s-48.2-8.7-64.2-31.1c-8.1-11.4-13.3-25.1-16.3-40.6-1.4-7-7.3-12.3-14.3-12.3L140 308c-15.5 0-28-12.5-28-28s12.5-28 28-28l45.1 0zm76.3-20.4C256.9 238 252 252 252 280s4.9 42 9.5 48.4c3.2 4.5 7.7 7.6 18.5 7.6s15.3-3.1 18.5-7.6C303.1 322 308 308 308 280s-4.9-42-9.5-48.4c-3.2-4.5-7.7-7.6-18.5-7.6s-15.3 3.1-18.5 7.6zM0 308c0 35.6 1.7 65.9 7.2 91.2 5.5 25.6 15.2 47.8 32.5 65.1s39.5 27 65.1 32.5c25.3 5.5 55.7 7.2 91.2 7.2l168 0c35.6 0 65.9-1.7 91.2-7.2 25.6-5.5 47.8-15.2 65.1-32.5s27-39.5 32.5-65.1c5.5-25.3 7.2-55.7 7.2-91.2l0-56c0-35.6-1.7-65.9-7.2-91.2-5.5-25.6-15.2-47.8-32.5-65.1s-39.5-27-65.1-32.5C429.9 57.7 399.6 56 364 56L196 56c-35.6 0-65.9 1.7-91.2 7.2-25.6 5.5-47.8 15.2-65.1 32.5s-27 39.5-32.5 65.1C1.7 186.1 0 216.4 0 252l0 56zM196 448c-34.4 0-60.1-1.8-79.4-5.9-19-4.1-30.1-10.1-37.3-17.4S66 406.4 61.9 387.4c-4.2-19.3-5.9-45-5.9-79.4l0-56c0-34.4 1.8-60.1 5.9-79.4 4.1-19 10.1-30.1 17.4-37.3s18.3-13.3 37.3-17.4c19.3-4.2 45-5.9 79.4-5.9l168 0c34.4 0 60.1 1.8 79.4 5.9 19 4.1 30.1 10.1 37.3 17.4s13.3 18.3 17.4 37.3c4.2 19.3 5.9 45 5.9 79.4l0 56c0 34.4-1.8 60.1-5.9 79.4-4.1 19-10.1 30.1-17.4 37.3s-18.3 13.3-37.3 17.4c-19.3 4.2-45 5.9-79.4 5.9l-168 0z"]},eB={prefix:"fajr",iconName:"box-archive",icon:[560,560,["archive"],"f187","M0 136c0 24.5 5 49.2 23.9 66.7 18.3 16.9 43.6 21.3 69.5 21.3l373.3 0c25.8 0 51.2-4.4 69.5-21.3 18.9-17.5 23.9-42.2 23.9-66.7l0-20c0-24.5-5-49.2-23.9-66.7-18.3-16.9-43.6-21.3-69.5-21.3L93.3 28C67.5 28 42.2 32.4 23.9 49.3 5 66.8 0 91.5 0 116l0 20zm93.3 32c-21.6 0-29-4.1-31.4-6.4-1.9-1.8-5.9-7.1-5.9-25.6l0-20c0-18.5 4-23.8 5.9-25.6 2.5-2.3 9.8-6.4 31.4-6.4l373.3 0c21.6 0 29 4.1 31.4 6.4 1.9 1.8 5.9 7.1 5.9 25.6l0 20c0 18.5-4 23.8-5.9 25.6-2.5 2.3-9.8 6.4-31.4 6.4L93.3 168zM35.2 427.2C29.7 401.9 28 371.6 28 336l0-42c0-15.5 12.5-28 28-28s28 12.5 28 28l0 42c0 34.4 1.8 60.1 5.9 79.4 4.1 19 10.1 30.1 17.4 37.3s18.3 13.3 37.3 17.4c19.3 4.2 45 5.9 79.4 5.9l112 0c34.4 0 60.1-1.8 79.4-5.9 19-4.1 30.1-10.1 37.3-17.4s13.3-18.3 17.4-37.3c4.2-19.3 5.9-45 5.9-79.4l0-42c0-15.5 12.5-28 28-28s28 12.5 28 28l0 42c0 35.6-1.7 65.9-7.2 91.2-5.5 25.6-15.2 47.8-32.5 65.1s-39.5 27-65.1 32.5c-25.3 5.5-55.7 7.2-91.2 7.2l-112 0c-35.6 0-65.9-1.7-91.2-7.2-25.6-5.5-47.8-15.2-65.1-32.5s-27-39.5-32.5-65.1zM196 308c0-15.5 12.5-28 28-28l112 0c15.5 0 28 12.5 28 28s-12.5 28-28 28l-112 0c-15.5 0-28-12.5-28-28z"]},ej=eB,eN={prefix:"fajr",iconName:"book-open",icon:[560,560,[128214,128366],"f518","M272 65c2.9 2.5 5.6 5.1 8.1 7.7 2.5-2.7 5.1-5.2 8.1-7.7 31.1-26.6 82.5-37 159.9-37 28.6 0 54.8 18.3 63 47 14.6 50.8 44.2 166.7 48.4 288.1 1.1 31.9-24.8 57-55.5 57-75.2 0-125.8 10.8-156.7 27.1-16.1 8.5-26.4 18.2-32.4 28.9L504 476c15.5 0 28 12.5 28 28s-12.5 28-28 28L56 532c-15.5 0-28-12.5-28-28s12.5-28 28-28l189.1 0c-6-10.7-16.3-20.4-32.4-28.9-30.9-16.3-81.5-27.1-156.7-27.1-30.7 0-56.6-25.1-55.5-57 4.3-121.3 33.8-237.2 48.4-288.1 8.2-28.6 34.4-47 63-47 77.4 0 128.8 10.5 159.9 37zM102.8 90.5c-14.1 49-42.1 159.3-46.3 273.5 78.6 0 139.8 11.1 182.3 33.6 16.5 8.8 30.3 19.3 41.2 31.5 10.8-12.2 24.6-22.8 41.2-31.5 42.6-22.5 103.7-33.5 182.3-33.6-4.2-114.3-32.2-224.6-46.3-273.5-1-3.5-4.4-6.5-9.2-6.5-76.6 0-109.2 11.3-123.6 23.6-12.3 10.5-16.4 26.2-16.4 60.3L308 336c0 15.5-12.5 28-28 28s-28-12.5-28-28l0-168c0-34.1-4.2-49.9-16.4-60.4-14.4-12.3-47-23.6-123.6-23.6-4.8 0-8.2 2.9-9.2 6.5z"]},e$={prefix:"fajr",iconName:"arrows-rotate",icon:[560,560,[128472,"refresh","sync"],"f021","M482.5 36.8c8.4-5.9 18.2-8.8 28-8.8 27.3 0 49.5 22.1 49.5 49.5L560 196c0 30.9-25.1 56-56 56l-118.5 0c-27.3 0-49.5-22.1-49.5-49.5 0-9.8 2.9-19.6 8.8-28 6.9-9.7 22.5-31.3 42.2-53.7-27.8-21.8-62.1-36.8-107-36.8-53.5 0-96.6 14.5-128.3 39.1-31.6 24.5-53.7 60.3-62.9 106.4-3 
215.2-17.8 25-32.9 22s-25-17.8-22-32.9c11.6-58.1 40.3-106.2 83.5-139.7 43.1-33.4 98.9-50.8 162.6-50.8 62.7 0 110.1 22.7 146.7 52.9 23.1-20.6 45.8-37 55.8-44.1zm-35.7 102c-19.6 19.6-37.4 42.3-48.4 57.2l105.6 0 0-105.6c-14.9 11-37.6 28.8-57.2 48.4zM76.6 524c-8.3 5.5-17.7 8-26.7 8-27.6 0-49.9-22.3-49.9-49.9L0 364c0-30.9 25.1-56 56-56l118.1 0c27.6 0 49.9 22.3 49.9 49.9 0 9.1-2.5 18.4-8 26.7-6.4 9.7-20.8 30.1-42.9 54.7 27.8 21.8 62 36.7 106.8 36.7 53.5 0 96.6-14.5 128.3-39.1 31.6-24.5 53.7-60.3 62.9-106.4 3-15.2 17.8-25 32.9-22s25 17.8 22 32.9c-11.6 58.1-40.3 106.2-83.5 139.7-43.1 33.4-98.9 50.8-162.6 50.8-62.6 0-110-22.6-146.6-52.8-25.5 23.2-46.9 38.2-56.8 44.8zm36.6-102.8c22.9-22.9 39.4-43.9 49-57.2L56 364 56 470.2c13.3-9.6 34.3-26 57.2-49z"]},eV=e$,eU=e$,eG={prefix:"fajr",iconName:"stopwatch",icon:[504,560,[9201],"f2f2","M252 196c15.5 0 28 12.5 28 28l0 98c0 15.5-12.5 28-28 28s-28-12.5-28-28l0-98c0-15.5 12.5-28 28-28zM161.6 55.3c-15.1-3.5-24.4-18.6-20.9-33.7S159.3-2.8 174.3 .7C199.7 6.1 226.2 7 252 7s52.3-.9 77.6-6.3c15-3.5 30.1 5.8 33.6 20.9s-5.8 30.1-20.9 33.7C322 60 300.9 61.4 280 62.4l0 22.9c47.7 4.3 89.8 19.7 123.8 45.4l24.4-24.4c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-24.4 24.4c30.6 40.4 46.6 92.5 46.6 151.8 0 70.2-22.5 130.3-65.1 172.9S322.2 560 252 560 121.7 537.5 79.1 494.9 14 392.2 14 322 36.5 191.7 79.1 149.1c36.8-36.8 86.7-58.6 144.9-63.8l0-22.9c-20.9-.9-42-2.4-62.4-7.1zm-43 133.4C88.4 219 70 263.9 70 322S88.4 425 118.7 455.3 193.9 504 252 504 355 485.6 385.3 455.3 434 380.1 434 322 415.6 219 385.3 188.7 310.1 140 252 140 149 158.4 118.7 188.7zM252 196c15.5 0 28 12.5 28 28l0 98c0 15.5-12.5 28-28 28s-28-12.5-28-28l0-98c0-15.5 12.5-28 28-28z"]},eq={prefix:"fajr",iconName:"location-dot",icon:[448,560,["map-marker-alt"],"f3c5","M224 126c-27.4 0-52.5 8.8-70.8 27.2s-27.2 43.4-27.2 70.8 8.8 52.5 27.2 70.8 43.4 27.2 70.8 27.2 52.5-8.8 70.8-27.2 27.2-43.4 27.2-70.8-8.8-52.5-27.2-70.8-43.4-27.2-70.8-27.2zm-42 98c0-15.4 4.8-25.3 10.8-31.2s15.9-10.8 31.2-10.8 25.3 4.8 31.2 10.8 10.8 15.9 10.8 31.2-4.8 25.3-10.8 31.2-15.9 10.8-31.2 10.8-25.3-4.8-31.2-10.8-10.8-15.9-10.8-31.2zM224 0C158.1 0 101.5 21.1 61.3 61.3S0 158.1 0 224c0 72.8 28.3 139.3 61.1 192.1 32.9 53 71.4 94.3 94.8 117 18.8 18.3 43.6 26.9 68.1 26.9s49.4-8.6 68.1-26.9c23.4-22.8 61.9-64 94.8-117 32.7-52.8 61.1-119.4 61.1-192.1 0-65.9-21.1-122.5-61.3-162.7S289.9 0 224 0zM56 224c0-53.9 17-95.3 44.9-123.1S170.1 56 224 56 319.3 73 347.1 100.9 392 170.1 392 224c0 58.5-22.9 114.6-52.7 162.6-29.6 47.8-64.8 85.5-86.2 106.4-7.1 6.9-17.4 11-29.1 11s-21.9-4.1-29.1-11c-21.5-20.9-56.6-58.6-86.2-106.4-29.7-48-52.7-104.1-52.7-162.6z"]},eZ=eq,eH={prefix:"fajr",iconName:"arrow-up-right-from-square",icon:[560,560,["external-link"],"f08e","M260.2 260.2c-10.9 10.9-10.9 28.7 0 39.6s28.7 10.9 39.6 0L427.6 172c22.8 20.2 45 36.3 54.9 43.2 8.4 5.9 18.2 8.8 28 8.8 27.3 0 49.5-22.1 49.5-49.5L560 56c0-30.9-25.1-56-56-56L385.5 0c-27.3 0-49.5 22.1-49.5 49.5 0 9.8 2.9 19.6 8.8 28 7 9.9 23.1 32.1 43.2 54.9L260.2 260.2zm186.6-147C427.2 93.6 409.4 70.9 398.4 56l105.6 0 0 105.6c-14.9-11-37.6-28.8-57.2-48.4zM28 336c0 35.6 1.7 65.9 7.2 91.2 5.5 25.6 15.2 47.8 32.5 65.1s39.5 27 65.1 32.5c25.3 5.5 55.7 7.2 91.2 7.2l112 0c35.6 0 65.9-1.7 91.2-7.2 25.6-5.5 47.8-15.2 65.1-32.5s27-39.5 32.5-65.1c5.5-25.3 7.2-55.7 7.2-91.2 0-15.5-12.5-28-28-28s-28 12.5-28 28c0 34.4-1.8 60.1-5.9 79.4-4.1 19-10.1 30.1-17.4 37.3s-18.3 13.3-37.3 17.4c-19.3 4.2-45 5.9-79.4 5.9l-112 0c-34.4 0-60.1-1.8-79.4-5.9-19-4.1-30.1-10.1-37.3-17.4S94 434.4 89.9 415.4c-4.2-19.3-5.9-45-5.9-79.4l0-112c0-34.4 1.8-60.1 5.9-79.4 4.1-19 10.1-30.1 17.4-37.3S125.6 94 144.6 89.9c19.3-4.2 45-5.9 79.4-5.9 15.5 0 28-12.5 28-28s-12.5-28-28-28c-35.6 0-65.9 1.7-91.2 7.2-25.6 5.5-47.8 15.2-65.1 32.5s-27 39.5-32.5 65.1C29.7 158.1 28 188.4 28 224l0 112z"]},eW=eH,eX={prefix:"fajr",iconName:"arrow-rotate-left",icon:[560,560,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M476 280c0-62.4-19.7-110.8-52.5-143.5S342.4 84 280 84c-45.8 0-84 10.6-113.9 29.1 22.9 25 41.5 50.6 49.1 61.4 5.9 8.4 8.8 18.2 8.8 28 0 27.3-22.1 49.5-49.5 49.5L56 252c-30.9 0-56-25.1-56-56L0 77.5c0-27.3 22.1-49.5 49.5-49.5 9.8 0 19.6 2.9 28 8.8 8.8 6.2 27.2 19.6 47.2 36.6 42-29.9 95.1-45.4 155.3-45.4 74.5 0 138.1 23.8 183.1 68.9S532 205.5 532 280 508.2 418.1 463.1 463.1 354.5 532 280 532c-103.2 0-184.7-45.9-225-127.6-6.8-13.9-1.1-30.7 12.7-37.5s30.7-1.1 37.5 12.7c29.3 59.5 89.2 96.4 174.8 96.4 62.4 0 110.8-19.7 143.5-52.5S476 342.4 476 280zM113.2 138.8C93.6 119.2 70.9 101.4 56 90.4l0 105.6 105.6 0c-11-14.9-28.8-37.6-48.4-57.2z"]},eY=eX,eK=eX,eJ=eX,eQ=eX,e1={prefix:"fajr",iconName:"bolt",icon:[448,560,[9889,"zap"],"f0e7","M280 0c32.6 0 56.2 31.2 47.2 62.6L287.5 201.5 397 219.8c29.4 4.9 51 30.4 51 60.2 0 14.3-6.2 28.7-12.5 40.3-6.8 12.5-16.2 26.1-26.8 39.9-21.4 27.6-50 58.4-79.4 86.9-29.5 28.6-60.6 55.7-87.3 75.8-13.3 10-26.1 18.7-37.4 25-11.1 6.2-23.6 12.1-36.6 12.1-32.6 0-56.2-31.2-47.2-62.6L160.5 358.5 51 340.2c-29.4-4.9-51-30.4-51-60.2 0-14.3 6.2-28.7 12.5-40.3 6.8-12.5 16.2-26.1 26.8-39.9 21.4-27.6 50-58.4 79.4-86.9 29.5-28.6 60.6-55.7 87.3-75.8 13.3-10 26.1-18.7 37.4-25 11.1-6.2 23.6-12.1 36.6-12.1zM61.7 266.5c-1.9 3.5-10.6 17-1.5 18.5l109.4 18.2c33 5.5 53.8 38.5 44.6 70.6L178.8 498.1c8-4.6 18-11.4 29.5-20 24.4-18.4 53.7-43.8 82-71.2 28.3-27.4 54.9-56.2 74.1-81.1 9.7-12.5 17.1-23.4 21.9-32.3 1.6-3 10.9-17 1.5-18.5L278.3 256.8c-33-5.5-53.8-38.5-44.6-70.6L269.2 61.9c-8 4.6-18 11.4-29.5 20-24.4 18.4-53.7 43.8-82 71.2-28.3 27.4-54.9 56.2-74.1 81.1-9.7 12.5-17.1 23.4-21.9 32.3z"]},e0=e1,e2={prefix:"fajr",iconName:"mug-hot",icon:[560,560,[9749],"f7b6","M138.9-7.7c-4.2-14.9-19.7-23.5-34.6-19.2S80.8-7.2 85.1 7.7l7.4 25.9c2.9 10.1 2.9 20.7 0 30.8L85.1 90.3c-4.2 14.9 4.4 30.4 19.2 34.6s30.4-4.4 34.6-19.2l7.4-25.9c5.7-20.1 5.7-41.4 0-61.5L138.9-7.7zm112 0c-4.2-14.9-19.7-23.5-34.6-19.2S192.8-7.2 197.1 7.7l7.4 25.9c2.9 10.1 2.9 20.7 0 30.8l-7.4 25.9c-4.2 14.9 4.4 30.4 19.2 34.6s30.4-4.4 34.6-19.2l7.4-25.9c5.7-20.1 5.7-41.4 0-61.5L250.9-7.7zm112 0c-4.2-14.9-19.7-23.5-34.6-19.2S304.8-7.2 309.1 7.7l7.4 25.9c2.9 10.1 2.9 20.7 0 30.8l-7.4 25.9c-4.2 14.9 4.4 30.4 19.2 34.6s30.4-4.4 34.6-19.2l7.4-25.9c5.7-20.1 5.7-41.4 0-61.5L362.9-7.7zM420 360l0-136 42 0c24.7 0 32.3 4.5 34.9 7.1S504 241.3 504 266l0 28c0 19.3-2.7 28.3-5.3 32.6-1.5 2.5-4.2 5.6-14.3 7.6-15.2 3.1-24.9 17.9-21.9 33s17.9 24.9 33 21.9c20.9-4.2 39.2-14.1 50.9-33.4 10.7-17.6 13.5-39.2 13.5-61.7l0-28c0-27.8-4.3-55.2-23.5-74.5S489.8 168 462 168L84 168c-30.9 0-56 25.1-
256 56l0 136c0 30.6 1.5 56.9 6.3 79 4.8 22.4 13.4 42.2 28.9 57.8s35.4 24.1 57.8 28.9c22.1 4.8 48.5 6.3 79 6.3l48 0c30.6 0 56.9-1.5 79-6.3 22.4-4.8 42.2-13.4 57.8-28.9s24.1-35.4 28.9-57.8c4.8-22.1 6.3-48.5 6.3-79zM84 224l279.8 0 .2 138.4c0 29.4-1.5 48.7-5 64.9-3.4 15.8-8.3 24.5-13.8 30s-14.1 10.4-30 13.8c-16.2 3.5-37.8 5-67.2 5l-48 0c-29.4 0-51.1-1.5-67.2-5-15.8-3.4-24.5-8.3-30-13.8s-10.4-14.1-13.8-30c-3.5-16.2-5-37.8-5-67.2l0-136z"]},e3={prefix:"fajr",iconName:"eye-slash",icon:[616,560,[],"f070","M75.8 8.2C64.9-2.7 47.1-2.7 36.2 8.2s-10.9 28.7 0 39.6c168 168 336 336 504 504 10.9 10.9 28.7 10.9 39.6 0s10.9-28.7 0-39.6l-67.4-67.4c44.1-35.8 72.7-76.2 87.6-100.8 11.7-19.2 15.9-40.6 15.9-60.6l0-6.8c0-20-4.2-41.4-15.9-60.6-30.7-50.5-122.9-174-292.1-174-62.6 0-114.9 17-157.4 41L75.8 8.2zM192.1 124.5c32.4-15.9 70.8-26.5 115.9-26.5 138.8 0 216.4 101.2 244.2 147.1 5.1 8.5 7.8 19.1 7.8 31.5l0 6.8c0 12.4-2.6 23.1-7.8 31.5-13.5 22.2-39.7 58.9-79.7 90L192.1 124.5zM94.8 202c10-11.8 8.5-29.5-3.3-39.5S62 154.1 52 165.9C35.9 185 24 202.7 15.9 216 4.2 235.2 0 256.6 0 276.6l0 6.8c0 20 4.2 41.4 15.9 60.6 30.7 50.5 122.9 174 292.1 174 25.1 0 48.6-2.7 70.5-7.6 15.1-3.3 24.6-18.3 21.3-33.4s-18.3-24.6-33.4-21.3c-18 4-37.4 6.3-58.4 6.3-138.8 0-216.4-101.2-244.2-147.1-5.1-8.5-7.8-19.1-7.8-31.5l0-6.8c0-12.4 2.6-23.1 7.8-31.5 6.9-11.3 17.2-26.6 31-43z"]},e5={prefix:"fajr",iconName:"music",icon:[560,560,[127925],"f001","M504 0c30.9 0 56 25.1 56 56l0 322c0 29.1-11.4 54.7-32.8 72.6-20.9 17.4-48.8 25.4-79.2 25.4s-58.3-8.1-79.2-25.4C347.4 432.7 336 407.1 336 378s11.4-54.7 32.8-72.6c20.9-17.4 48.8-25.4 79.2-25.4 20.2 0 39.3 3.6 56 11.1l0-95c-144.4 10.5-241.7 36.4-280 48.2L224 434c0 29.1-11.4 54.7-32.8 72.6-20.9 17.4-48.8 25.4-79.2 25.4s-58.3-8.1-79.2-25.4C11.4 488.7 0 463.1 0 434s11.4-54.7 32.8-72.6c20.9-17.4 48.8-25.4 79.2-25.4 20.2 0 39.3 3.6 56 11.1l0-243.7c0-23.2 14.5-44.9 38-52.2 95-29.5 198.7-47.6 298-51.2zm0 56.1C359.5 66.6 262.3 92.4 224 104.2l0 81.6c49.1-13.9 146.6-36.3 280-45.8l0-83.9zM504 378c0-13.7-4.9-23.1-12.7-29.5-8.3-6.9-22.4-12.5-43.3-12.5s-35 5.6-43.3 12.5c-7.8 6.5-12.7 15.9-12.7 29.5s4.9 23.1 12.7 29.5C413 414.4 427 420 448 420s35-5.6 43.3-12.5c7.8-6.5 12.7-15.9 12.7-29.5zM168 434c0-13.7-4.9-23.1-12.7-29.5-8.3-6.9-22.4-12.5-43.3-12.5s-35 5.6-43.3 12.5C60.9 410.9 56 420.3 56 434s4.9 23.1 12.7 29.5C77 470.4 91 476 112 476s35-5.6 43.3-12.5c7.8-6.5 12.7-15.9 12.7-29.5z"]},e4={prefix:"fajr",iconName:"paw",icon:[616,560,[],"f1b0","M149.4 23.4C165.3 7.5 186.9 0 210 0s44.7 7.5 60.6 23.4 23.4 37.5 23.4 60.6-7.5 44.7-23.4 60.6-37.5 23.4-60.6 23.4-44.7-7.5-60.6-23.4-23.4-37.5-23.4-60.6 7.5-44.7 23.4-60.6zM189 63c-3.6 3.6-7 10-7 21s3.4 17.5 7 21 10 7 21 7 17.5-3.4 21-7 7-10 7-21-3.4-17.5-7-21-10-7-21-7-17.5 3.4-21 7zM181 299.6c22.1-48.8 69.2-75.6 127-75.6s104.9 26.8 127 75.6c6.3 14 17.2 27.4 30.6 39.6 25.6 23.3 38.5 56.9 38.5 94.8 0 36-11.6 68.1-34.7 91.3S414 560 378 560c-9.6 0-18.9-.8-27.9-2.5-26-4.8-58.2-4.8-84.2 0-9 1.7-18.3 2.5-27.9 2.5-36 0-68.1-11.6-91.3-34.7S112 470 112 434c0-37.9 12.9-71.5 38.5-94.8 13.4-12.2 24.2-25.6 30.6-39.6zM308 280c-39.4 0-64.3 17.1-75.9 42.7-10.5 23.2-27.1 42.6-43.9 57.9-11.9 10.8-20.2 28.3-20.2 53.4 0 23.9 7.5 40.8 18.3 51.7S214.1 504 238 504c6.4 0 12.3-.5 17.8-1.5 32.7-6 71.8-6 104.5 0 5.4 1 11.3 1.5 17.8 1.5 23.9 0 40.8-7.5 51.7-18.3S448 457.9 448 434c0-25.1-8.3-42.6-20.2-53.4-16.8-15.3-33.4-34.7-43.9-57.9-11.6-25.6-36.5-42.7-75.9-42.7zM406 0c-23.1 0-44.7 7.5-60.6 23.4S322 60.9 322 84 329.5 128.7 345.4 144.6 382.9 168 406 168 450.7 160.5 466.6 144.6 490 107.1 490 84 482.5 39.3 466.6 23.4 429.1 0 406 0zM378 84c0-11.1 3.4-17.5 7-21s10-7 21-7 17.5 3.4 21 7 7 10 7 21-3.4 17.5-7 21-10 7-21 7-17.5-3.4-21-7-7-10-7-21zm93.4 93.4C487.3 161.5 508.9 154 532 154s44.7 7.5 60.6 23.4 23.4 37.5 23.4 60.6-7.5 44.7-23.4 60.6-37.5 23.4-60.6 23.4-44.7-7.5-60.6-23.4-23.4-37.5-23.4-60.6 7.5-44.7 23.4-60.6zM511 217c-3.6 3.6-7 10-7 21s3.4 17.5 7 21 10 7 21 7 17.5-3.4 21-7 7-10 7-21-3.4-17.5-7-21-10-7-21-7-17.5 3.4-21 7zM84 154c-23.1 0-44.7 7.5-60.6 23.4S0 214.9 0 238 7.5 282.7 23.4 298.6 60.9 322 84 322 128.7 314.5 144.6 298.6 168 261.1 168 238 160.5 193.3 144.6 177.4 107.1 154 84 154zM56 238c0-11.1 3.4-17.5 7-21s10-
27 21-7 17.5 3.4 21 7 7 10 7 21-3.4 17.5-7 21-10 7-21 7-17.5-3.4-21-7-7-10-7-21z"]},e6={prefix:"fajr",iconName:"globe",icon:[560,560,[127760],"f0ac","M69.6 192.2c21.5-63.1 68.3-108.2 136.1-126.8-37.3 60.9-51.5 136.6-52.2 209.2-25.5-2.4-46.3-5.3-62.9-8.2-17.6-3.1-35.5-6.2-52.3-12.5-14.3-5.6-30.5 1.3-36.2 15.7-5.7 14.4 1.2 30.7 15.6 36.4 20.3 8 42 11.9 63.4 15.6 19.7 3.4 44.5 6.8 74.8 9.5 5.3 57.9 20.4 115.4 49.9 163.6-64.8-17.7-110.4-59.7-133-118.2-5.6-14.4-21.8-21.6-36.2-16s-21.6 21.8-16 36.2C60.5 500.2 155.6 560 280 560s219.6-59.8 259.6-163.5c5.6-14.4-1.6-30.6-16-36.2s-30.6 1.6-36.2 16c-22.6 58.6-68.1 100.5-133 118.2 29.5-48.2 44.6-105.7 49.9-163.6 30.3-2.6 55-6 74.8-9.5 21.4-3.7 43.1-7.5 63.4-15.6 14.4-5.7 21.3-22 15.6-36.4-5.7-14.3-21.9-21.3-36.2-15.7-16.8 6.3-34.7 9.4-52.3 12.5-16.6 2.9-37.4 5.8-62.9 8.2-.7-72.7-14.8-148.3-52.2-209.2 67.8 18.5 114.6 63.6 136.1 126.8 5 14.6 20.9 22.5 35.5 17.5s22.5-20.9 17.5-35.5C506.1 64.2 408.8 0 280 0S53.9 64.2 16.5 174.1c-5 14.6 2.9 30.5 17.5 35.5s30.5-2.9 35.5-17.5zM212.4 334.6c20.7 .9 43.2 1.4 67.6 1.4s47-.5 67.6-1.4c-7.3 65.5-28.7 124.4-67.6 165.1-38.9-40.7-60.4-99.6-67.6-165.1zM280 60.3c49.2 51.5 70.3 131.9 70.6 218.2-21.3 1-44.7 1.5-70.6 1.5s-49.3-.6-70.6-1.5c.2-86.3 21.3-166.7 70.6-218.2z"]},e8={prefix:"fajr",iconName:"shield-halved",icon:[504,560,["shield-alt"],"f3ed","M255.7 .2c-2.4-.3-4.9-.3-7.3 0-23.2 2.8-46.1 7.8-68.6 13.7-40 10.5-92.9 28.5-142.8 58.7-24.3 14.8-36.9 41.1-36.9 67.3 0 148.9 42.5 247.6 93.5 311.8 50.7 63.9 108.2 91.7 135.4 102 15 5.7 31.2 5.7 46.2 0 27.2-10.3 84.7-38.1 135.4-102 51-64.2 93.5-162.9 93.5-311.8 0-26.2-12.5-52.6-36.9-67.3-49.9-30.2-102.8-48.2-142.8-58.7-22.5-5.9-45.5-10.9-68.6-13.7zM224 61.1L224 420c0 15.5 12.5 28 28 28s28-12.5 28-28l0-358.9c55.2 11.3 109.8 30.2 158.1 59.5 5.7 3.5 9.9 10.5 9.9 19.5 0 137.5-38.9 223.6-81.3 277-42.7 53.8-90.6 76.6-111.4 84.5-2.2 .8-4.3 .8-6.5 0-20.8-7.9-68.7-30.7-111.4-84.5-42.4-53.4-81.3-139.4-81.3-277 0-9 4.2-16 9.9-19.5 48.3-29.3 102.9-48.2 158.1-59.5z"]},e7=e8,e9={prefix:"fajr",iconName:"language",icon:[616,560,[],"f1ab","M168 28c15.5 0 28 12.5 28 28l0 41.3c36.9-1.8 71.2-6.7 90.7-9.9 24.9-4.1 50.5 15.1 48.8 43.5-5.2 84.2-44.9 151.2-104 196.3 29 6.9 58.3 8.8 87.9 8.8 13.6-38.7 30.6-79.9 50.6-111.3 9.2-14.4 19.7-27.9 31.8-38.1s27.7-18.6 46.2-18.6 34.1 8.4 46.2 18.6 22.6 23.7 31.8 38.1c18.4 28.8 34.3 66.1 47.2 101.8 17 46.8 31.1 94.9 42.1 143.4 3.4 15.1-6.1 30.1-21.2 33.5s-30.1-6.1-33.5-21.2c-6.9-30.4-15.3-60.4-24.6-90.1L448 392c-15.5 0-28-12.5-28-28s12.5-28 28-28l69 0c-11.6-30.8-24.6-59.7-38.3-81.2-7.6-11.9-14.6-20.2-20.7-25.4-7.8-6.6-12.4-6.6-20.2 0-6.1 5.1-13.1 13.5-20.7 25.4-15.1 23.7-29.4 56.4-41.8 90.7-16.1 44.5-29.5 90.3-40.1 136.5-3.4 15.1-18.4 24.7-33.5 21.3s-24.5-18.6-21.1-33.7c6-26.1 13-52 20.6-77.6-46.4-.8-93.1-10-135.1-27.1-42 17.8-89.1 27.2-138.2 27.2-15.5 0-28-12.5-28-28s12.5-28 28-28c25.1 0 49.1-2.8 71.7-8-37.8-27.8-67.3-64.2-82.7-108.8-5-14.6 2.7-30.6 17.3-35.6s30.6 2.7 35.6 17.3c14.8 43 49.7 78.5 96 102.3 60.3-32.6 101.9-87.7 111.8-157.8-27.7 4-68.6 8.6-109.7 8.6-48.5 0-97.8-5.1-145.5-14.5-15.2-3-25-17.8-22-32.9s17.8-25 33-22c35 6.9 70.9 11 106.5 12.7L140 56c0-15.5 12.5-28 28-28z"]},te={prefix:"fajr",iconName:"arrow-right-from-bracket",icon:[560,560,["sign-out"],"f08b","M224 476c15.5 0 28 12.5 28 28s-12.5 28-28 28c-35.6 0-65.9-1.7-91.2-7.2-25.6-5.5-47.8-15.2-65.1-32.5s-27-39.5-32.5-65.1C29.7 401.9 28 371.6 28 336l0-112c0-35.6 1.7-65.9 7.2-91.2 5.5-25.6 15.2-47.8 32.5-65.1s39.5-27 65.1-32.5c25.3-5.5 55.7-7.2 91.2-7.2 15.5 0 28 12.5 28 28s-12.5 28-28 28c-34.4 0-60.1 1.8-79.4 5.9-19 4.1-30.1 10.1-37.3 17.4S94 125.6 89.9 144.6c-4.2 19.3-5.9 45-5.9 79.4l0 112c0 34.4 1.8 60.1 5.9 79.4 4.1 19 10.1 30.1 17.4 37.3s18.3 13.3 37.3 17.4c19.3 4.2 45 5.9 79.4 5.9zM398.1 98c12.4 0 24.7 4.3 34.6 13 20.8 18.5 86.9 79.7 122 147 3.7 7.1 5.4 14.7 5.4 22.1s-1.7 15-5.4 22.1c-35.1 67.3-101.2 128.5-122 147-9.8 8.7-22.2 13-34.6 13-24.3 0-46.6-16.8-51.1-42.5-3.8-22-9.1-60.3-10.6-111.5L196 308c-15.5 0-28-12.5-28-28s12.5-28 28-28l140.4 0c1.5-51.2 6.7-89.6 10.6-111.5 4.5-25.7 26.8-42.5 51.1-42.5zM502.9 280c-28.1-51.6-78.6-100.9-102.1-122.3-3.9 24.7-8.9 66.8-8.9 122.3s4.9 97.6 8.9 122.3c23.5-21.4 73.9-70.7 102.1-122.3z"]},tt=te,ti={prefix:"fajr",iconName:"scissors",icon:[560,560,[9984,9986,9988,"cut"],"f0c4","M31 59c20.7-20.7 49.3-31 81-31s60.3 10.2 81 31 31 49.3 31 81c0 3.1-.1 6.2-.3 9.3L394.1 65c76.4-37.8 165.9 17.8 165.9 103 0 10.6-6 20.3-15.5 25l-112 56c-13.8 6.9-30.6 1.3-37.6-12.5s-1.3-30.6 12.5-37.6l94.3-47.2c-9.6-34.1-48.8-53.5-82.9-36.6l-190 94 315.6 157.8c9.5 4.7 15.5 14.4 15.5 25 0 85.2-89.5 140.8-165.9 103L223.7 410.7c.2 3 .3 6.1 .3 9.3 0 31.7-10.2 60.3-31 81s-49.3 31-81 31c-20.9 0-40.5-4.4-57.5-13.5-35.7-19.1-54.5-55.6-54.5-98.5 0-31.7 10.2-60.3 31-81s49.3-31 81-31c20 0 38.8 4 55.3 12.4L418.9 444.8c34.1 16.9 73.3-2.5 82.9-36.6L166 240.3c-16.1 7.8-34.4 11.7-54 11.7-20.9 0-40.5-4.4-57.5-13.5-35.7-19.1-54.5-55.6-54.5-98.5 0-31.7 10.2-60.3 31-81zM70.5 98.5c-8.4 8.4-14.5 21.8-14.5 41.5 0 25.9 10.5 41.4 24.9 49.1 7.8 4.2 18 6.9 31.1 6.9 19.6 0 33-6.1 41.5-14.5S168 159.6 168 140 161.9 107 153.5 98.5 131.6 84 112 84 79 9
20.1 70.5 98.5zm0 280c-8.4 8.4-14.5 21.8-14.5 41.5 0 25.9 10.5 41.4 24.9 49.1 7.8 4.2 18 6.9 31.1 6.9 19.6 0 33-6.1 41.5-14.5S168 439.6 168 420c0-26.3-10.8-42-25.9-49.6-7.6-3.9-17.6-6.4-30.1-6.4-19.6 0-33 6.1-41.5 14.5z"]},tr=ti,ta={prefix:"fajr",iconName:"lock",icon:[448,560,[128274],"f023","M258.8 380c-3.9 3.1-6.7 7.6-6.7 12.6l0 27.4c0 15.5-12.5 28-28 28s-28-12.5-28-28l0-27.4c0-5-2.8-9.5-6.7-12.6-13-10.3-21.3-26.1-21.3-44 0-30.9 25.1-56 56-56s56 25.1 56 56c0 17.8-8.3 33.7-21.3 44zM84.2 140l0 40.9c-16.9 5.9-31.9 14.4-44.3 26.8-17.3 17.3-27 39.5-32.5 65.1-9.8 45.4-9.8 137 0 182.4 5.5 25.6 15.2 47.8 32.5 65.1s39.5 27 65.1 32.5c25.3 5.5 55.7 7.2 91.2 7.2l56 0c35.6 0 65.9-1.7 91.2-7.2 25.6-5.5 47.8-15.2 65.1-32.5s27-39.5 32.5-65.1c9.8-45.4 9.8-137 0-182.4-5.5-25.6-15.2-47.8-32.5-65.1-12.4-12.4-27.4-20.9-44.3-26.8l0-40.9c0-40.3-12.9-75.9-38.5-101.5S264.4 0 224.2 0 148.3 12.9 122.7 38.5 84.2 99.7 84.2 140zm78.1-61.9C175.6 64.8 196 56 224.2 56s48.6 8.8 61.9 22.1 22.1 33.7 22.1 61.9l0 30.1c-17-1.5-35.6-2.1-56-2.1l-56 0c-20.4 0-39 .6-56 2.1l0-30.1c0-28.2 8.8-48.6 22.1-61.9zM62.1 284.6c4.1-19 10.1-30.1 17.4-37.3s18.3-13.3 37.3-17.4c19.3-4.2 45-5.9 79.4-5.9l56 0c34.4 0 60.1 1.8 79.4 5.9 19 4.1 30.1 10.1 37.3 17.4s13.3 18.3 17.4 37.3c4.2 19.3 5.9 45 5.9 79.4s-1.8 60.1-5.9 79.4c-4.1 19-10.1 30.1-17.4 37.3s-18.3 13.3-37.3 17.4c-19.3 4.2-45 5.9-79.4 5.9l-56 0c-34.4 0-60.1-1.8-79.4-5.9-19-4.1-30.1-10.1-37.3-17.4s-13.3-18.3-17.4-37.3c-4.2-19.3-5.9-45-5.9-79.4s1.8-60.1 5.9-79.4z"]},tn={prefix:"fajr",iconName:"flag",icon:[504,560,[61725,127988],"f024","M168 56C140.4 56 103 64 73.9 71.7 63.7 74.4 56 84.1 56 96.4L56 532c0 15.5-12.5 28-28 28S0 547.5 0 532L0 96.4C0 60.4 23.1 27.2 59.6 17.6 89.1 9.8 132.5 0 168 0 202.7 0 235.9 16.6 261.9 29.6 293 45.2 315.3 56 336 56 353 56 374.1 52.9 395.3 48.6 447.9 37.7 504 75.6 504 133.7l0 189.9c0 35.9-23.1 69.1-59.6 78.8-29.5 7.8-73 17.6-108.4 17.6-35.9 0-70.1-17.8-96.5-31-29.6-14.8-51.4-25-71.5-25-11 0-23.9 1.3-37.6 3.5-15.3 2.4-29.6-8-32-23.3s8-29.6 23.3-32c15.4-2.4 31.4-4.1 46.4-4.1 34.7 0 67.9 16.6 93.9 29.6 31.1 15.6 53.4 26.4 74.1 26.4 27.6 0 65-8 94.1-15.7 10.2-2.7 17.9-12.4 17.9-24.6l0-189.9c0-18.3-19.1-34.9-41.4-30.3-22.6 4.7-48 8.6-70.6 8.6-35.9 0-70.1-17.8-96.5-31-29.6-14.8-51.4-25-71.5-25z"]},to={prefix:"fajr",iconName:"star",icon:[616,560,[11088,61446],"f005","M252.1 4.1C263.9-16.6 285.7-28 308.2-28s44.3 11.4 56.1 32.1c13.5 23.6 38.3 68.8 56.8 122.3 56.7 1.1 105.6 9.5 132.2 15 23.3 4.9 40.9 22.1 47.8 43.4s2.8 45.6-13.2 63.3c-18.3 20.1-52.9 55.7-98.1 89.9 16.5 54.2 23 105.3 25.9 132.3 2.6 23.7-8.4 45.7-26.5 58.9s-42.5 16.8-64.2 7c-24.8-11.2-70.3-33.1-116.8-65.6-46.5 32.4-92 54.4-116.8 65.6-21.7 9.8-46.1 6.2-64.2-7S98 493.9 100.6 470.3c3-27 9.5-78.1 25.9-132.3-45.2-34.2-79.9-69.7-98.1-89.9-16-17.6-20.1-41.9-13.2-63.3s24.5-38.6 47.8-43.4c26.6-5.5 75.5-13.9 132.2-15 18.5-53.5 43.3-98.7 56.8-122.3zm48.6 27.8c-12.4 21.7-33.8 62.4-50.8 111.6-7.9 22.9-29.3 38.4-53.5 38.9-52.1 1-97.3 8.7-121.8 13.9-5.9 1.2-8.6 9.8-4.6 14.2 16.8 18.5 48.9 51.4 90.4 82.8 19.3 14.6 27.5 39.8 20.4 62.9-15.1 49.8-21.8 95.3-24.5 120.2-.7 6 6.6 11.2 12.1 8.8 22.8-10.3 64-30.6 106.7-60.4 19.9-13.9 46.3-13.9 66.2 0 42.7 29.8 83.9 50.1 106.7 60.4 5.5 2.5 12.7-2.8 12.1-8.8-2.7-24.9-9.3-70.4-24.5-120.2-7-23.2 1.1-48.3 20.4-62.9 41.5-31.4 73.6-64.3 90.4-82.8 4-4.4 1.2-13-4.6-14.2-24.5-5.1-69.8-12.9-121.9-13.9-24.2-.5-45.6-16-53.5-38.9-17-49.2-38.4-89.9-50.8-111.6-3-5.2-12-5.2-14.9 0z"]},ts={prefix:"fajr",iconName:"credit-card",icon:[560,560,[62083,128179,"credit-card-alt"],"f09d","M308 336c-15.5 0-28 12.5-28 28s12.5 28 28 28l112 0c15.5 0 28-12.5 28-28s-12.5-28-28-28l-112 0zM7.2 399.2C1.7 373.9 0 343.6 0 308l0-56c0-35.6 1.7-65.9 7.2-91.2 5.5-25.6 15.2-47.8 32.5-65.1s39.5-27 65.1-32.5C130.1 57.7 160.4 56 196 56l168 0c35.6 0 65.9 1.7 91.2 7.2 25.6 5.5 47.8 15.2 65.1 32.5s27 39.5 32.5 65.1c5.5 25.3 7.2 55.7 7.2 91.2l0 56c0 35.6-1.7 65.9-7.2 91.2-5.5 25.6-15.2 47.8-32.5 65.1s-39.5 27-65.1 32.5c-25.3 5.5-55.7 7.2-91.2 7.2l-168 0c-35.6 0-65.9-1.7-91.2-7.2-25.6-5.5-47.8-15.2-65.1-32.5s-27-39.5-32.5-65.1zm109.4 42.9c19.3 4.2 45 5.9 79.4 5.9l168 0c34.4 0 60.1-1.8 79.4-5.9 19-4.1 30.1-10.1 37.3-17.4s13.3-18.3 17.4-37.3c4.2-19.3 5.9-45 5.9-79.4 0-22.7-.1-68-.1-68-34.9 4-117.5 12-223.9 12S91 244 56.1 240c0 0-.1 45.3-.1 68 0 34.4 1.8 60.1 5.9 79.4 4.1 19 10.1 30.1 17.4 37.3s18.3 13.3 37.3 17.4zM500.1 184c-.6-4-1.3-7.9-2.1-11.4-4.1-19-10.1-30.1-17.4-37.3s-18.3-13.3-37.3-17.4c-19.3-4.2-45-5.9-79.4-5.9l-168 0c-34.4 0-60.1 1.8-79.4 5.9-19 4.1-30.1 10.
21-37.3 17.4S66 153.6 61.9 172.6c-.8 3.6-1.5 7.4-2.1 11.4 73 8.5 146.7 12 220.1 12s147.1-3.4 220.1-12z"]},tl=ts,tc={prefix:"fajr",iconName:"comment-dots",icon:[560,560,[62075,128172,"commenting"],"f4ad","M280 266a28 28 0 1 0 0-56 28 28 0 1 0 0 56zm70-28a28 28 0 1 1 56 0 28 28 0 1 1 -56 0zM182 266a28 28 0 1 0 0-56 28 28 0 1 0 0 56zM280 0c-92 0-162.8 21.3-210.8 64-48.5 43.2-69.2 104.3-69.2 174 0 47.2 9.4 90.5 30.9 127.2 21.2 36.2 53.1 64.3 95.5 83.1-7.2 11.1-14.4 26.3-14.4 44.1 0 37.3 30.3 67.6 67.6 67.6 16.7 0 32.8-5.2 45.8-16l82.9-68.7c82.8-4.2 146.7-27.5 189.8-70.1 43.4-42.8 62-101.2 62-167.2 0-69.7-20.7-130.8-69.2-174-48-42.7-118.7-64-210.8-64zM56 238C56 179.4 73.1 135.5 106.5 105.8 140.4 75.6 195.6 56 280 56s139.6 19.6 173.5 49.8c33.4 29.7 50.5 73.6 50.5 132.2 0 55.6-15.4 97.9-45.3 127.3-30.1 29.7-78.9 50.2-153.3 54-11.9 .6-23.9 4.9-33.6 13L189.5 501c-2.9 2.4-6.3 3-9.9 3-6.4 0-11.6-5.2-11.6-11.6 0-2.9 1.3-7.4 5.5-13.8 2.1-3.1 4.2-6.7 6.3-10.6 8.1-15.4 6.4-31.6-.2-44.2-6.3-11.9-16.8-20.8-28.4-25.8-33.7-14.4-56.9-35.3-72-61.1-15.3-26.1-23.2-59.1-23.2-99z"]},tu=tc,th={prefix:"fajr",iconName:"list",icon:[448,560,["list-squares"],"f03a","M0 84A56 56 0 1 1 112 84 56 56 0 1 1 0 84zM56 336a56 56 0 1 0 0-112 56 56 0 1 0 0 112zm0 196c34.2 0 56-21.8 56-56s-21.8-56-56-56-56 21.8-56 56 21.8 56 56 56zM224 56c-15.5 0-28 12.5-28 28s12.5 28 28 28l196 0c15.5 0 28-12.5 28-28s-12.5-28-28-28L224 56zm0 196c-15.5 0-28 12.5-28 28s12.5 28 28 28l196 0c15.5 0 28-12.5 28-28s-12.5-28-28-28l-196 0zm0 196c-15.5 0-28 12.5-28 28s12.5 28 28 28l196 0c15.5 0 28-12.5 28-28s-12.5-28-28-28l-196 0z"]},td=th,tf={prefix:"fajr",iconName:"comments",icon:[560,560,[61670,128490],"f086","M56 182c0-41.6 11.9-71.6 34-91.5 22.6-20.4 60.2-34.5 120-34.5 78.5 0 118.9 24 137.9 56.6 7.8 13.4 24.9 17.9 38.3 10.1s17.9-24.9 10.1-38.3C363.4 27.9 299.2 0 210 0 142.4 0 89 15.9 52.4 48.9 15.4 82.4 0 129.5 0 182 0 236.4 16.6 285 56.5 318.6 68.3 328.5 85.9 327 95.9 315.2s8.4-29.5-3.4-39.5C68.7 255.7 56 225.1 56 182zm294-14c-67.6 0-121 15.9-157.6 48.9-37.1 33.5-52.4 80.6-52.4 133.1 0 50.7 14.4 96.4 48.9 129.8 33.4 32.2 81.8 49.1 143 51.8l46.8 41.6c10.7 9.5 24.2 14.8 38.5 14.8 31.5 0 58.8-25.5 58.8-57 0-8.2-2.3-15.8-4.2-23.7 28.2-14.3 50-34.7 64.8-60.4 16.3-28.3 23.3-61.5 23.3-97 0-52.5-15.4-99.6-52.4-133.1-36.6-33.1-89.9-48.9-157.6-48.9zM196 350c0-41.6 11.9-71.6 34-91.5 22.6-20.4 60.2-34.5 120-34.5s97.4 14.1 120 34.5c22.1 20 34 49.9 34 91.5 0 28.4-5.6 51.2-15.8 69-10.1 17.5-25.6 31.7-48.5 41.6-15.5 6.7-28.6 23.8-25.2 44.8 1.6 10.2 3.8 18.9 5.3 24.1 .7 2.5-1.9 3.5-3.8 1.9l-50.6-44.9c-7.6-6.8-17.2-10.3-26.8-10.6-55.1-1.8-89.9-16.2-110.8-36.4-20.6-19.9-31.8-49.2-31.8-89.5z"]},tp={prefix:"fajr",iconName:"user",icon:[448,560,[62144,62470,128100,"user-alt","user-large"],"f007","M224 0c-40.3 0-75.9 12.9-101.5 38.5S84 99.7 84 140 96.9 215.9 122.5 241.5 183.7 280 224 280 299.9 267.1 325.5 241.5 364 180.3 364 140 351.1 64.1 325.5 38.5 264.3 0 224 0zM140 140c0-28.2 8.8-48.6 22.1-61.9s33.7-22.1 61.9-22.1 48.6 8.8 61.9 22.1 22.1 33.7 22.1 61.9-8.8 48.6-22.1 61.9-33.7 22.1-61.9 22.1-48.6-8.8-61.9-22.1-22.1-33.7-22.1-61.9zm56 196c-35.6 0-65.9 1.7-91.2 7.2-25.6 5.5-47.8 15.2-65.1 32.5s-27 39.5-32.5 65.1C1.7 466.1 0 496.4 0 532 0 547.5 12.5 560 28 560s28-12.5 28-28c0-34.4 1.8-60.1 5.9-79.4 4.1-19 10.1-30.1 17.4-37.3s18.3-13.3 37.3-17.4c19.3-4.2 45-5.9 79.4-5.9l56 0c34.4 0 60.1 1.8 79.4 5.9 19 4.1 30.1 10.1 37.3 17.4s13.3 18.3 17.4 37.3c4.2 19.3 5.9 45 5.9 79.4 0 15.5 12.5 28 28 28s28-12.5 28-28c0-35.6-1.7-65.9-7.2-91.2-5.5-25.6-15.2-47.8-32.5-65.1s-39.5-27-65.1-32.5c-25.3-5.5-55.7-7.2-91.2-7.2l-56 0z"]},tm=tp,tg=tp,ty={prefix:"fajr",iconName:"face-frown",icon:[560,560,[9785,"frown"],"f119","M168 168c15.5 0 28 12.5 28 28l0 56c0 15.5-12.5 28-28 28s-28-12.5-28-28l0-56c0-15.5 12.5-28 28-28zm140 0c15.5 0 28 12.5 28 28l0 56c0 15.5-12.5 28-28 28s-28-12.5-28-28l0-56c0-15.5 12.5-28 28-28zm70.7 205.2c10.4 11.4 9.5 29.2-1.9 39.6s-29.2 9.5-39.6-1.9c-18.2-20-46.5-32.8-85.2-32.8-17.7 0-33.3 2.7-46.5 7.5-14.6 5.2-30.6-2.3-35.8-16.9s2.3-30.6 16.9-35.8c20-7.2 42-10.8 65.5-10.8 51.5 0 96.1 17.4 126.7 51.2zM76.5 76.5C126.4 26.5 197 0 280 0S433.6 26.5 483.5 76.5 560 197 560 280 533.5 433.6 483.5 483.5 363 560 280 560 126.4 533.5 76.5 483.5 0 363 0 280 26.5 126.4 76.5 76.5zM116 116c-37.6 37.6-60 93-60 164s22.5 12
26.4 60 164 93 60 164 60 126.4-22.5 164-60 60-93 60-164-22.5-126.4-60-164-93-60-164-60-126.4 22.5-164 60z"]},t_=ty,tv={prefix:"fajr",iconName:"house",icon:[560,560,[63498,63500,127968,"home","home-alt","home-lg-alt"],"f015","M280 56c-2.4 0-4.8 .8-7 2.6-29.6 24.3-116.3 92.8-230.6 161.4-13.3 8-30.5 3.7-38.4-9.6S.3 179.9 13.6 172C124.8 105.3 209.2 38.5 237.5 15.3 249.4 5.6 264.3 0 280 0s30.6 5.6 42.5 15.3c28.4 23.3 112.8 90 223.9 156.7 13.3 8 17.6 25.2 9.6 38.4S530.9 228 517.6 220c-114.3-68.6-201-137.2-230.6-161.4-2.1-1.7-4.6-2.6-7-2.6zM63.2 427.2C57.7 401.9 56 371.6 56 336l0-70c0-15.5 12.5-28 28-28s28 12.5 28 28l0 70c0 34.4 1.8 60.1 5.9 79.4 4.1 19 10.1 30.1 17.4 37.3s18.3 13.3 37.3 17.4c7 1.5 14.7 2.7 23.4 3.6L196 364c0-46.4 37.6-84 84-84s84 37.6 84 84l0 109.7c8.7-.9 16.5-2.1 23.4-3.6 19-4.1 30.1-10.1 37.3-17.4s13.3-18.3 17.4-37.3c4.2-19.3 5.9-45 5.9-79.4l0-70c0-15.5 12.5-28 28-28s28 12.5 28 28l0 70c0 35.6-1.7 65.9-7.2 91.2-5.5 25.6-15.2 47.8-32.5 65.1s-39.5 27-65.1 32.5c-25.3 5.5-55.7 7.2-91.2 7.2l-56 0c-35.6 0-65.9-1.7-91.2-7.2-25.6-5.5-47.8-15.2-65.1-32.5s-27-39.5-32.5-65.1zM308 476l0-112c0-15.5-12.5-28-28-28s-28 12.5-28 28l0 112 56 0z"]},tb=tv,tx=tv,tw=tv,tk={prefix:"fajr",iconName:"calendar",icon:[504,560,[128197,128198],"f133","M196 28c0-15.5-12.5-28-28-28s-28 12.5-28 28l0 30.1c-36.5 3.3-66.7 11.1-89.5 28.3-36 27.1-46.6 71.1-49.5 125.7-1.6 29.7 20.6 54.5 49.4 57.4 41.5 4.2 118 10.5 201.7 10.5s160.1-6.3 201.7-10.5c28.8-2.9 51-27.7 49.4-57.4-2.9-54.6-13.5-98.6-49.5-125.7-22.9-17.2-53-25-89.5-28.3L364 28c0-15.5-12.5-28-28-28s-28 12.5-28 28l0 28-112 0 0-28zm-56 86.4l0 25.6c0 15.5 12.5 28 28 28s28-12.5 28-28l0-28 112 0 0 28c0 15.5 12.5 28 28 28s28-12.5 28-28l0-25.6c28 2.9 44.9 8.5 55.8 16.7 14.5 10.9 24.3 31.4 27.2 82.7-40.7 4.1-114.6 10.2-195.1 10.2S97.6 217.9 56.9 213.8c2.9-51.3 12.8-71.9 27.2-82.7 11-8.2 27.9-13.8 55.8-16.7zM504 336c0-15.5-12.5-28-28-28s-28 12.5-28 28c0 34.4-1.8 60.1-5.9 79.4-4.1 19-10.1 30.1-17.4 37.3s-18.3 13.3-37.3 17.4c-19.3 4.2-45 5.9-79.4 5.9l-112 0c-34.4 0-60.1-1.8-79.4-5.9-19-4.1-30.1-10.1-37.3-17.4S66 434.4 61.9 415.4c-4.2-19.3-5.9-45-5.9-79.4 0-15.5-12.5-28-28-28S0 320.5 0 336c0 35.6 1.7 65.9 7.2 91.2 5.5 25.6 15.2 47.8 32.5 65.1s39.5 27 65.1 32.5c25.3 5.5 55.7 7.2 91.2 7.2l112 0c35.6 0 65.9-1.7 91.2-7.2 25.6-5.5 47.8-15.2 65.1-32.5s27-39.5 32.5-65.1c5.5-25.3 7.2-55.7 7.2-91.2z"]},tT={prefix:"fajr",iconName:"suitcase",icon:[560,560,[129523],"f0f2","M148.2 81.3c-1.5 15.4 9.8 29.1 25.2 30.5s29.1-9.8 30.5-25.2c1.9-20.1 6.3-23.2 8.2-24.4 5-3.2 16.6-6.3 46.9-6.3l42 0c30.3 0 41.9 3.1 46.9 6.3 1.9 1.2 6.2 4.3 8.2 24.4 1.5 15.4 15.1 26.7 30.5 25.2s26.7-15.1 25.2-30.5C409.3 55.5 401.9 30.6 378.3 15.3 357.8 2 330.2 0 301 0L259 0c-29.2 0-56.8 2-77.3 15.3-23.6 15.3-31 40.3-33.5 66zM0 322C0 382.1 6.2 432.4 40.2 464.8 73.6 496.6 126.6 504 196 504l168 0c69.4 0 122.4-7.4 155.8-39.2 34-32.4 40.2-82.7 40.2-142.8s-6.2-110.4-40.2-142.8C486.4 147.4 433.4 140 364 140l-168 0C125.6 140 73 149.4 39.8 182.2 6.3 215.3 0 264.9 0 322zM144 445.8c-35.3-3.5-54.2-11.1-65.2-21.6-15-14.2-22.8-41-22.8-102.2 0-57.2 7.7-84.6 23.2-100 11.2-11 30.1-19.5 64.8-23.5-1.9 26.2-4 67.5-4 123.4 0 56.2 2.1 97.6 4 123.8zm56.3 2.2c-1.9-24.1-4.4-66.2-4.4-126s2.4-101.9 4.4-126l159.3 0c1.9 24.1 4.4 66.2 4.4 126s-2.4 101.9-4.4 126l-159.3 0zm280.8-23.8c-11 10.5-29.9 18.1-65.2 21.6 1.9-26.2 4-67.6 4-123.8s-2.1-97.6-4-123.8c35.3 3.5 54.2 11.1 65.2 21.6 15 14.2 22.8 41 22.8 102.2s-7.8 88-22.8 102.2z"]},tS={prefix:"fajr",iconName:"file",icon:[448,560,[61462,128196,128459],"f15b","M196 28c0-15.5 12.5-28 28-28l2.4 0c22.1 0 44.6 6.5 63.2 20.9 17.7 13.6 44.4 35.6 73.1 64.3s50.7 55.4 64.3 73.1C441.5 177 448 199.5 448 221.6l0 2.4c0 15.5-12.5 28-28 28l-154 0c-38.7 0-70-31.3-70-70l0-154zm56 34.8L252 182c0 7.7 6.3 14 14 14l119.2 0c-.8-1.2-1.6-2.4-2.4-3.5-12.5-16.3-32.9-41.1-59.5-67.7s-51.4-47-67.7-59.5c-1.1-.9-2.3-1.7-3.5-2.4zM153.7 27.9C155.9 43.2 145.3 57.4 130 59.6 94.3 64.7 79.9 74.9 71.4 89.8 60.9 108.2 56 139.4 56 196l0 168c0 34.4 1.8 60.1 5.9 79.4 4.1 19 10.1 30.1 17.4 37.3s18.3 13.3 37.3 17.4c19.3 4.2 45 5.9 79.4 5.9l56 0c34.4 0 60.1-1.8 79.4-5.9 19-4.1 30.1-10.1 37.3-17.4s13.3-18.3 17.4-37.3c4.2-19.3 5.9-45 5.9-79.4l0-42c0-15.5 12.5-28 28-28s28 12.5 28 28l0 42c0 35.6-1.7 65.9-7.2 91.2-5.5 25.6-15.2 47.8-32.5 65.1s-39.5 27-65.1 32.5c-25.3 5.5-55.7 7.2-91.2 7.2l-56 0c-35.6 0-65.9-1.7-91.2-7.2-25.6-5.5-47.8-15.2-65.1-32.5s-27-39.5-32.5-65.1C1.7 429.9 0 399.6 0 364L0 196c0-56 4.1-101.2 22.7-133.8 20.5-36.1 55.1-51.7 99.3-58 15.3-2.2 29.5 8.5 31.7 23.8z"]},tA={prefix:"fajr",iconName:"gear",icon:[560,560,[9881,"cog"],"f013","M238.4 2.3C252 .8 265.9 0 280.3 0s28.3 .8 41.8 2.4c24.1 2.8 41.8 21 46.6 42.7 .5 2.1 .9 5.7 1.5 9.9 1.7 13.2 4.3 33.2 10.4 36.1 4.9 2.3 9.6 4.8 14.2 7.4 6.1 3.5 23.2-3.7 35.1-8.7 4-1.7 7.5-3.1 9.7-3.8 21.2-6.7 45.8-.4 60.3 19.1 8.1 11 15.8 22.6 23 35.1s13.5 24.9 18.9 37.4c9.6 22.2 2.7 46.7-13.6 61.7-1.7 1.5-4.8 4-8.7 7-11.6 8.9-29.2 22.5-29.1 29 .1 3.3 .1 6.6 0 9.9-.1 6.5 17.5 20 29.1 29 3.9 3 7.1 5.4 8.7 7 16.4 15 23.3 39.5 13.6 61.7-5.4 12.5-11.7 25-18.9 37.4s-14.8 24.1-23 35.1c-14.4 19.4-39.1 25.7-60.3 19.1-2.2-.7-5.6-2.1-9.7-3.8-11.9-5-29-12.2-35.1-8.7-4.6 2.7-9.3 5.
21-14.2 7.4-6.1 2.9-8.7 22.8-10.4 36.1-.6 4.3-1 7.8-1.5 9.9-4.8 21.7-22.6 39.9-46.6 42.7-13.5 1.6-27.5 2.3-41.8 2.3s-28.3-.8-41.8-2.3c-24.1-2.8-41.8-21-46.6-42.7-.5-2.1-.9-5.7-1.5-9.9-1.7-13.2-4.3-33.2-10.4-36.1-4.9-2.3-9.6-4.8-14.2-7.4-6.1-3.5-23.2 3.7-35.1 8.7-4 1.7-7.5 3.1-9.7 3.8-21.2 6.7-45.8 .4-60.3-19.1-8.1-11-15.8-22.6-23-35.1s-13.5-24.9-18.9-37.4c-9.6-22.2-2.7-46.7 13.6-61.7 1.7-1.5 4.8-4 8.7-7 11.6-8.9 29.2-22.5 29.1-29-.1-3.3-.1-6.6 0-9.9 .1-6.5-17.5-20-29.1-29-3.9-3-7-5.4-8.7-7-16.4-15-23.3-39.5-13.6-61.7 5.4-12.5 11.7-25 18.9-37.4s14.8-24.1 23-35.1c14.4-19.4 39.1-25.7 60.3-19.1 2.2 .7 5.6 2.1 9.7 3.8 11.9 5 29 12.2 35.1 8.7 4.6-2.7 9.3-5.1 14.2-7.4 6.1-2.9 8.7-22.8 10.4-36.1 .6-4.3 1-7.8 1.5-9.9 4.8-21.7 22.6-39.9 46.6-42.7zm-1.8 99.2c-4.2 19-17.6 32.9-32.8 40.1-3.5 1.6-6.8 3.4-10.1 5.3-13.2 7.6-30.2 11.1-47.2 5.7l-41.7-13.1c-6.5 8.8-12.7 18.3-18.5 28.5s-11 20.3-15.4 30.3l37 33.9c12.8 11.7 18.7 28.1 18.4 43.8 0 2.6 0 5.3 0 8 .3 15.7-5.7 32.1-18.4 43.8l-37 33.9c4.4 10 9.5 20.1 15.4 30.3s12.1 19.7 18.5 28.5l41.7-13.1c17-5.3 34-1.9 47.2 5.7 3.2 1.9 6.6 3.6 10.1 5.3 15.2 7.2 28.6 21.1 32.8 40.1l9.7 43.8c10.9 1.2 22.2 1.8 33.9 1.8s23.1-.6 33.9-1.8l9.7-43.8c4.2-19 17.6-32.9 32.8-40.1 3.5-1.6 6.8-3.4 10.1-5.3 13.2-7.6 30.2-11.1 47.2-5.7l41.7 13.1c6.5-8.8 12.7-18.3 18.5-28.5s11-20.3 15.4-30.3l-37-33.9c-12.8-11.7-18.7-28.1-18.4-43.8 0-2.6 0-5.3 0-8-.3-15.7 5.7-32.1 18.4-43.8l37-33.9c-4.4-10-9.5-20.1-15.4-30.3s-12.1-19.7-18.5-28.5L414 152.6c-17 5.3-34 1.9-47.2-5.7-3.2-1.9-6.6-3.6-10.1-5.3-15.2-7.2-28.6-21.1-32.8-40.1l-9.7-43.8C303.3 56.6 292 56 280.3 56s-23.1 .6-33.9 1.8l-9.7 43.8zm-17 117.8c15.9-15.9 37.5-23.4 60.6-23.4s44.7 7.5 60.6 23.4 23.4 37.5 23.4 60.6-7.5 44.7-23.4 60.6-37.5 23.4-60.6 23.4-44.7-7.5-60.6-23.4-23.4-37.5-23.4-60.6 7.5-44.7 23.4-60.6zM259.2 259c-3.6 3.6-7 10-7 21s3.4 17.5 7 21 10 7 21 7 17.5-3.4 21-7 7-10 7-21-3.4-17.5-7-21-10-7-21-7-17.5 3.4-21 7z"]},tC=tA,tE={prefix:"fajr",iconName:"building",icon:[448,560,[61687,127970],"f1ad","M168 112c15.5 0 28 12.5 28 28l0 28c0 15.5-12.5 28-28 28s-28-12.5-28-28l0-28c0-15.5 12.5-28 28-28zm28 168c0-15.5-12.5-28-28-28s-28 12.5-28 28l0 28c0 15.5 12.5 28 28 28s28-12.5 28-28l0-28zm84-168c15.5 0 28 12.5 28 28l0 28c0 15.5-12.5 28-28 28s-28-12.5-28-28l0-28c0-15.5 12.5-28 28-28zm28 168c0-15.5-12.5-28-28-28s-28 12.5-28 28l0 28c0 15.5 12.5 28 28 28s28-12.5 28-28l0-28zM196 0c-35.6 0-65.9 1.7-91.2 7.2-25.6 5.5-47.8 15.2-65.1 32.5s-27 39.5-32.5 65.1C1.7 130.1 0 160.4 0 196L0 364c0 35.6 1.7 65.9 7.2 91.2 5.5 25.6 15.2 47.8 32.5 65.1s39.5 27 65.1 32.5c25.3 5.5 55.7 7.2 91.2 7.2l56 0c35.6 0 65.9-1.7 91.2-7.2 25.6-5.5 47.8-15.2 65.1-32.5s27-39.5 32.5-65.1c5.5-25.3 7.2-55.7 7.2-91.2l0-168c0-35.6-1.7-65.9-7.2-91.2-5.5-25.6-15.2-47.8-32.5-65.1s-39.5-27-65.1-32.5C317.9 1.7 287.6 0 252 0L196 0zM56 196c0-34.4 1.8-60.1 5.9-79.4 4.1-19 10.1-30.1 17.4-37.3S97.6 66 116.6 61.9c19.3-4.2 45-5.9 79.4-5.9l56 0c34.4 0 60.1 1.8 79.4 5.9 19 4.1 30.1 10.1 37.3 17.4s13.3 18.3 17.4 37.3c4.2 19.3 5.9 45 5.9 79.4l0 168c0 34.4-1.8 60.1-5.9 79.4-4.1 19-10.1 30.1-17.4 37.3s-18.3 13.3-37.3 17.4c-7 1.5-14.7 2.7-23.4 3.6l0-53.7c0-46.4-37.6-84-84-84s-84 37.6-84 84l0 53.7c-8.7-.9-16.5-2.1-23.4-3.6-19-4.1-30.1-10.1-37.3-17.4S66 462.4 61.9 443.4c-4.2-19.3-5.9-45-5.9-79.4l0-168zM252 504l-56 0 0-56c0-15.5 12.5-28 28-28s28 12.5 28 28l0 56z"]},tM={prefix:"fajr",iconName:"thumbs-up",icon:[560,560,[61575,128077],"f164","M88 168c-23.9 0-51.3 1.7-69.4 21.3-9.1 9.9-13.5 21.8-15.8 33.4-2.3 11.4-2.9 24.5-2.9 38.6L0 438.7c0 14.1 .6 27.2 2.9 38.6 2.3 11.6 6.7 23.5 15.8 33.4 18 19.6 45.5 21.3 69.4 21.3l20 0c23.9 0 51.3-1.7 69.4-21.3 9.1-9.9 13.5-21.8 15.8-33.4 2.3-11.4 2.9-24.5 2.9-38.6l0-177.3c0-14.1-.6-27.2-2.9-38.6-2.3-11.6-6.7-23.5-15.8-33.4-18-19.6-45.5-21.3-69.4-21.3l-20 0zM57.8 233.6c1-4.8 1.4-6.7 6.1-7.8 4.8-1.1 12.2-1.8 24.1-1.8l20 0c11.9 0 19.3 .7 24.1 1.8 4.7 1.1 5.2 2.9 6.1 7.8 1.2 5.9 1.8 14.6 1.8 27.7l0 177.3c0 13.1-.6 21.8-1.8 27.7-1 4.8-1.4 6.7-6.1 7.8-4.8 1.1-12.2 1.8-24.1 1.8l-20 0c-11.9 0-19.3-.7-24.1-1.8-4.7-1.1-5.2-2.9-6.1-7.8-1.2-5.9-1.8-14.6-1.8-27.7l0-177.3c0-13.1 .6-21.8 1.8-27.7zM342.6 79c3.6-14.6 15.3-23 24.4-23 10.5 0 18.4 9.4 16.7 19.7L364.4 191.4c-1.4 8.1 .9 16.4 6.3 22.7S383.8 224 392 224l77.2 0c8.6 0 20.7 2.2 23.8 11.6 5.3 16.2 11 43.6 11 86.4 0 54.1-19.2 93.5-33.5 115.4-4.7 7.2-13.7 12.4-25.7 13.2-55.7 3.6-116.1 1.8-169.9-15.2-14.7-4.8-30.5 3.1-35.4 17.7-4.9 14.7 3 30.5 17.7 35.4 60.3 19.9 128.7 22 191.3 18 26-1.7 52.8-13.7 69-38.5 18.5-28.3 42.6-78.2 42.6-146 0-47.7-6.3-81.1-13.8-103.9-12.2-37.1-48.1-50.1-77-50.1l-44.2 0 13.8-83.1c7.4-44.5-26.9-84.9-72-84.9-40.6 0-70.5 32.1-78.8 65.7-7.1 28.9-22.8 70.6-57.7 112.4-9.9 11.9-8.3 29.5 3.6 39.4s29.5 8.3 39.4-3.6c41.4-49.7 60.4-99.5 69.1-134.9z"]},tP={prefix:"fajr",iconName:"link",icon:[672,560,[128279,"chain"],"f0c1","M525.2 28c-27.9 0-54.9 7.9-78.1 22.5-13.1 8.2-17 25.5-8.8 38.6s25.5 17 38.6 8.8c14.4-9 31.1-13.9 48.3-13.9 50.1 0 90.8 40.6 90.8 90.8 0 24.1-9.6 47.2-26.6 64.2L435 393.4c-17 17-40.1 26.6-64.2 26.6-50.1 0-90.8-40.7-90.8-90.8 0-24.1 9.6-47.2 26.6-64.2l21.2-21.2c10.9-10.9 10.9-28.7 0-39.6s-28.7-10.9-39.6 0L267 225.4c-27.5 27.5-43 64.9-43 103.8 0 81.1 65.7 146.8 146.8 146.8 38.9 0 76.3-15.5 103.8-43L629 278.6c27.5-27.5 43-64.9 43-103.8 0-81.1-65.7-146.8-146.8-146.8zm-224 56c-38.9 0-76.3 15.5-103.8 43L43 281.4c-27.5 27.5-43 64.9-43 103.8 0 81.1 65.7 146.8 146.8 146.8 27.9 0 54.9-7.9 78.1-22.5 13.1-8.2 17-25.5 8.8-38.6s-25.5-17-38.6-8.8c-14.4 9-31.1 13.9-48.3 13.9-50.1 0-90.8-40.7-90.8-90.8 0-24.1 9.6-47.2 26.6-64.2L237 166.6c17-17 40.1-26.6 64.2-26.6 50.1 0 90.8 40.6 90.8 90.8 0 24.1-9.6 47.2-26.6 64.2l-21.2 21.2c-10.9 10.9-10.9 28.7 0 39.6s28.7 10.9 39.6 0L405 334.6c27.5-27.5 43-64.9 43-103.8 0-81.1-65.7-146.8-146.8-146.8z"]},tD=tP,tI={prefix:"fajr",iconName:"arrow-up-from-bracket",icon:[504,560,[],"e09a","M433.2 162c0-12.4-4.3-24.8-13-34.6-18.5-20.9-79.7-86.9-146.9-122-7.1-3.7-14.7-5.4-22.1-5.4s-15 1.7-22.1 5.4c-67.3 35.2-128.5 101.2-147 122-8.7 9.8-13 22.2-13 34.5 0 24.3 16.8 46.7 42.5 51.1 22.1 3.8 60.8 9.1 112.3 10.6L224 364c0 15.5 12.5 28 28 28s28-12.5 28-28l0-140.4c51-1.5 89-6.7 110.8-10.5 25.6-4.5 42.4-26.9 42.4-51.1zM251.2 57.1c51.6 28.2 101 78.7 122.3 102.1-24.5 3.9-66.2 8.8-121.5 8.8-55.6 0-98.1-5-123-8.9 21.4-23.5 70.7-73.9 122.2-102zM448 336c0-15.5 12.5-28 28-28s28 12.5 28 28c0 35.6-1.7 65.9-7.2 91.2-5.5 25.6-15.2 47.8-32.5 65.1s-39.5 27-65.1 32.5c-25.3 5.5-55.7 7.2-91.2 7.2l-112 0c-35.6 0-65.9-1.7-91.2-7.2-25.6-5.5-47.8-15.2-65.1-32.5s-27-39.5-32.5-65.1C1.7 401.9 0 371.6 0 336 0 320.5 12.5 308 28 308s28 12.5 28 28c0 34.4 1.8 60.1 5.9 79.4 4.1 19 10.1 30.1 17.4 37.3s18.3 13.3 37.3 17.4c19.3 4.2 45 5.9 79.4 5.9l112 0c34.4 0 60.1-1.8 79.4-5.9 19-4.1 30.1-10.1 37.3-17.4s13.3-18.3 17.4-37.3c4.2-19.3 5.9-45 5.9-79.4z"]},tz={prefix:"fajr",iconName:"folder",icon:[560,560,[61716,128193,128447,"folder-blank"],"f07b","M7.4 399.2C1.9 373.9 .2 343.6 .2 308l0-84c0-35.6 1.7-65.9 7.2-91.2 5.5-25.6 15.2-47.8 32.5-65.1s39.5-27 65.1-32.5c25.3-5.5 55.7-7.2 91.2-7.2 25.4 0 49.7 10.1 67.6 28l39.6 39.6C313.9 106.1 328.1 112 343 112l21.2 0c35.6 0 65.9 1.7 91.2 7.2 25.6 5.5 47.8 15.2 65.1 32.5s27 39.5 32.5 65.1c9.8 45.4 9.8 137 0 182.4-5.5 25.6-15.2 47.8-32.5 65.1s-39.5 27-65.1 32.5c-25.3 5.5-55.7 7.2-91.2 7.2l-168 0c-35.6 0-65.9-1.7-91.2-7.2-25.6-5.5-47.8-15.2-65.1-32.5s-27-39.5-32.5-65.1zm109.4 42.9c19.3 4.2 45 5.9 79.4 5.9l168 0c34.4 0 60.1-1.8 79.4-5.9 19-4.1 30.1-10.1 37.3-17.4s13.3-18.3 17.4-37.3c4.2-19.3 5.9-45 5.9-79.4s-1.8-60.1-5.9-79.4c-4.1-19-10.1-30.1-17.4-37.3s-18.3-13.3-37.3-17.4c-19.3-4.2-45-5.9-79.4-5.9L343 168c-29.7 0-58.2-11.8-79.2-32.8L224.2 95.6c-7.4-7.4-17.5-11.6-28-11.6-34.4 0-60.1 1.8-79.4 5.9-19 4.1-30.1 10.
21-37.3 17.4s-13.3 18.3-17.4 37.3c-4.2 19.3-5.9 45-5.9 79.4l0 84c0 34.4 1.8 60.1 5.9 79.4 4.1 19 10.1 30.1 17.4 37.3s18.3 13.3 37.3 17.4z"]},tL=tz,tF={prefix:"fajr",iconName:"map",icon:[560,560,[62072,128506],"f279","M238.8 38.5c-7.5-2.8-14.9-5.2-21.6-7.1-6.2-1.7-13.9-3.4-21.2-3.4-13.4 0-42.4 4.5-70 9.2-28.9 5-60.3 10.9-80.8 14.9-26.4 5.1-45.2 28.2-45.2 54.9L0 441.5c0 35.6 32.6 62 67.2 55.1 20.8-4.1 48.1-9.3 73.1-13.5 25.9-4.3 46.6-7.1 55.7-7.1 3.5 0 12.5 1.9 27.9 7.2 16.8 5.8 33.2 12.6 49.6 19.3s33.2 13.7 47.7 19c7.5 2.8 14.9 5.2 21.6 7.1 6.2 1.7 13.9 3.4 21.2 3.4 13.4 0 42.4-4.5 70-9.2 28.9-5 60.3-10.9 80.8-14.9 26.4-5.1 45.2-28.2 45.2-54.9l0-334.5c0-35.6-32.6-62-67.2-55.1-20.8 4.1-48.1 9.3-73.1 13.5-25.9 4.3-46.6 7.1-55.7 7.1-3.5 0-12.5-1.9-27.9-7.2-19-6.6-37.5-14.3-56.1-22-14.2-5.9-28.6-11.7-41.2-16.3zM56 107c20.3-3.9 51.1-9.8 79.4-14.6 29.7-5.1 53.1-8.4 60.6-8.4 .4 .1 2.4 .3 6.5 1.4 19.5 5.3 38.3 13.3 57 21.3 19.7 8.4 40.1 16.7 58.4 23 5.8 2 12 4 18.2 5.7L336 308c0 15.5 12.5 28 28 28s28-12.5 28-28l0-170.3c11.5-1.4 24.3-3.4 36.9-5.6 25.8-4.3 54-9.5 75.1-13.6L504 453c-20.3 3.9-51.1 9.8-79.4 14.6-29.7 5.1-53.1 8.4-60.6 8.4-.4-.1-2.4-.3-6.5-1.4-19.5-5.3-38.3-13.3-57-21.3-19.7-8.4-40.1-16.7-58.4-23-5.8-2-12-4-18.2-5.7L224 252c0-15.5-12.5-28-28-28s-28 12.5-28 28l0 170.3c-11.5 1.4-24.3 3.4-36.9 5.6-25.8 4.3-54 9.5-75.1 13.6L56 107z"]},tR={prefix:"fajr",iconName:"address-card",icon:[560,560,[62140,"contact-card","vcard"],"f2bb","M168 252a42 42 0 1 0 0-84 42 42 0 1 0 0 84zm-56 56c0-15.5 12.5-28 28-28l28 0c46.4 0 84 37.6 84 84 0 15.5-12.5 28-28 28s-28-12.5-28-28-12.5-28-28-28l-28 0c-15.5 0-28-12.5-28-28zM336 196c-15.5 0-28 12.5-28 28s12.5 28 28 28l84 0c15.5 0 28-12.5 28-28s-12.5-28-28-28l-84 0zm0 112c-15.5 0-28 12.5-28 28s12.5 28 28 28l84 0c15.5 0 28-12.5 28-28s-12.5-28-28-28l-84 0zM0 308c0 35.6 1.7 65.9 7.2 91.2 5.5 25.6 15.2 47.8 32.5 65.1s39.5 27 65.1 32.5c25.3 5.5 55.7 7.2 91.2 7.2l168 0c35.6 0 65.9-1.7 91.2-7.2 25.6-5.5 47.8-15.2 65.1-32.5s27-39.5 32.5-65.1c5.5-25.3 7.2-55.7 7.2-91.2l0-56c0-35.6-1.7-65.9-7.2-91.2-5.5-25.6-15.2-47.8-32.5-65.1s-39.5-27-65.1-32.5C429.9 57.7 399.6 56 364 56L196 56c-35.6 0-65.9 1.7-91.2 7.2-25.6 5.5-47.8 15.2-65.1 32.5s-27 39.5-32.5 65.1C1.7 186.1 0 216.4 0 252l0 56zM196 448c-34.4 0-60.1-1.8-79.4-5.9-19-4.1-30.1-10.1-37.3-17.4S66 406.4 61.9 387.4c-4.2-19.3-5.9-45-5.9-79.4l0-56c0-34.4 1.8-60.1 5.9-79.4 4.1-19 10.1-30.1 17.4-37.3s18.3-13.3 37.3-17.4c19.3-4.2 45-5.9 79.4-5.9l168 0c34.4 0 60.1 1.8 79.4 5.9 19 4.1 30.1 10.1 37.3 17.4s13.3 18.3 17.4 37.3c4.2 19.3 5.9 45 5.9 79.4l0 56c0 34.4-1.8 60.1-5.9 79.4-4.1 19-10.1 30.1-17.4 37.3s-18.3 13.3-37.3 17.4c-19.3 4.2-45 5.9-79.4 5.9l-168 0z"]},tO=tR,tB=tR,tj={prefix:"fajr",iconName:"sparkles",icon:[560,560,[10024],"f890","M250.1 32.4C256.1 13.1 273.8 0 294 0s37.9 13.1 43.9 32.4L369.4 135c8.2 26.6 29 47.4 55.6 55.6l102.6 31.6c19.3 5.9 32.4 23.7 32.4 43.9s-13.1 37.9-32.4 43.9L425 341.4c-26.6 8.2-47.4 29-55.6 55.6L337.9 499.6C331.9 518.9 314.1 532 294 532s-37.9-13.1-43.9-32.4L218.6 397c-8.2-26.6-29-47.4-55.6-55.6L60.4 309.9C41.1 303.9 28 286.2 28 266s13.1-37.9 32.4-43.9L163 190.6c26.6-8.2 47.4-29 55.6-55.6L250.1 32.4zM294 80.2l-21.9 71.2c-13.6 44.3-48.3 79-92.6 92.6l-71.2 21.9 71.2 21.9c44.3 13.6 79 48.3 92.6 92.6l21.9 71.2 21.9-71.2c13.6-44.3 48.3-79 92.6-92.6l71.2-21.9-71.2-21.9c-44.3-13.6-79-48.3-92.6-92.6L294 80.2zM23.4 415.4C39.3 399.5 60.9 392 84 392s44.7 7.5 60.6 23.4 23.4 37.5 23.4 60.6-7.5 44.7-23.4 60.6-37.5 23.4-60.6 23.4-44.7-7.5-60.6-23.4-23.4-37.5-23.4-60.6 7.5-44.7 23.4-60.6zM63 455c-3.6 3.6-7 10-7 21s3.4 17.5 7 21 10 7 21 7 17.5-3.4 21-7 7-10 7-21-3.4-17.5-7-21-10-7-21-7-17.5 3.4-21 7zM462 84a42 42 0 1 0 0-84 42 42 0 1 0 0 84zM56 112a28 28 0 1 1 56 0 28 28 0 1 1 -56 0zM476 448a28 28 0 1 0 0-56 28 28 0 1 0 0 56z"]},tN={prefix:"fajr",iconName:"pencil",icon:[560,560,[9999,61504,"pencil-alt"],"f303","M425.3 0c-32.6 0-61.2 13.4-84.9 29.2-21.7 14.5-41.6 32.8-58.4 48.2l-4.2 3.8c-17.2 15.7-24.8 42.9-11.5 66.5 11.3 20 31.2 49.5 63.8 82.1s62.1 52.5 82.1 63.8c23.6 13.4 50.7 5.7 66.4-11.5l3.8-4.1c15.4-16.8 33.7-36.7 48.2-58.4 15.9-23.7 29.2-52.2 29.2-84.8 0-74.4-60.3-134.7-134.7-134.7zM369.8 190.2c-27.5-27.5-44.2-52-53.6-68.2l3-2.8c17.4-16 34.3-31.5 52.3-43.5 19.1-12.8 36.6-19.8 53.7-19.8 43.5 0 78.7 35.3 78.7 78.7 0 17.1-7 34.6-19.8 53.7-12.1 18-27.5 34.9-43.5 52.3l-2.8 3c-16.1-9.3-40.6-26-68.2-53.6zM226.3 205.3c10.9-10.9 10.9-28.7 0-39.6s-28.7-10.9-39.6 0c-68.8 68.8-120.8 135.2-145.2 168-13 17.4-20.9 37.5-24.1 58.2-5.8 37-17.4 76.7-17.4 114.2 0 29.8 24.2 54 54 54 37.5 0 77.3-11.5 114.2-17.4 20.7-3.3 40.7-11.1 58.1-24.1 32.7-24.4 99-76.3 168-145.2 10.9-10.9 10.9-28.7 0-39.6s-28.7-10.9-39.6 0c-66.4 66.4-130.4 116.5-161.8 139.9-9.5 7.1-20.9 11.7-33.4 13.7l-103.1 16.3 16.3-103c2-12.5 6.6-23.9 13.7-33.4 23.4-31.4 73.7-95.6 139.9-161.8z"]},t$=tN,tV={prefix:"fajr",iconName:"image",icon:[504,560,[],"f03e","M140 210a42 42 0 1 1 84 0 42 42 0 1 1 -84 0zM7.2 427.2C1.7 401.9 0 371.6 0 336L0 224c0-35.6 1.7-65.9 7.2-91.2 5.5-25.6 15.2-47.8 32.5-65.1s39.5-27 65.1-32.5C130.1 29.7 160.4 28 196 28l112 0c35.6 0 65.9 1.7 91.2 7.2 25.6 5.5 47.8 15.2 65.1 32.5s27 39.5 32.5 65.1c5.5 25.3 7.2 55.7 7.2 91.2l0 112c0 35.6-1.7 65.9-7.2 91.2-5.5 25.6-15.2 47.8-32.5 65.1s-39.5 27-65.1 32.5c-25.3 5.5-55.7 7.2-91.2 7.2l-112 0c-35.6 0-65.9-1.7-91.2-7.2-25.6-5.5-47.8-15.2-65.1-32.5s-27-39.5-32.5-65.1zm109.4 42.9c19.3 4.2 45 5.9 79.4 5.9l75.3 0c-10.4-30.3-29.7-52.7-55.4-66.6-20.2-11-45.6-17.4-75.9-17.4-31.8 0-58.1 7-78.9 19.1 4 21.4 10.5 33.8 18.2 41.6 7.2 7.2 18.3 13.3 37.3 17.4zM56.1 351.3c25.1-10.2 53.4-15.3 83.9-15.3 28.5 0 55.2 4.5 79.2 13.5 47-63 122.8-97.5 214.8-97.5 4.7 0 9.4 .1 14 .3l0-28.3c0-34.4
2-1.8-60.1-5.9-79.4-4.1-19-10.1-30.1-17.4-37.3S406.4 94 387.4 89.9c-19.3-4.2-45-5.9-79.4-5.9L196 84c-34.4 0-60.1 1.8-79.4 5.9-19 4.1-30.1 10.1-37.3 17.4S66 125.6 61.9 144.6c-4.2 19.3-5.9 45-5.9 79.4 0 42.4-.6 84.9 .1 127.3zm391.9-43c-66.4-3.1-136.1 15.7-179.5 69 30.3 24.3 51.2 58.1 61 98.4 23.9-.6 42.8-2.4 57.9-5.7 19-4.1 30.1-10.1 37.3-17.4s13.3-18.3 17.4-37.3c4.2-19.3 5.9-45 5.9-79.4l0-27.7z"]},tU={prefix:"fajr",iconName:"crown",icon:[560,560,[128081],"f521","M280.1 252c-23.1 0-44.7 7.5-60.6 23.4s-23.4 37.5-23.4 60.6 7.5 44.7 23.4 60.6 37.5 23.4 60.6 23.4 44.7-7.5 60.6-23.4 23.4-37.5 23.4-60.6-7.5-44.7-23.4-60.6-37.5-23.4-60.6-23.4zm-28 84c0-11.1 3.4-17.5 7-21s10-7 21-7 17.5 3.4 21 7 7 10 7 21-3.4 17.5-7 21-10 7-21 7-17.5-3.4-21-7-7-10-7-21zm28-336c-28.2 0-53.7 16.8-64.8 42.7L155.6 182 109.1 151c-10.7-7.2-23.3-11-36.2-11-40.7 0-71.5 36.9-64.3 77L50.6 448.4c5.5 30 27.2 56 58.9 63.6 35.8 8.6 97.4 20 170.5 20s134.7-11.5 170.5-20c31.7-7.6 53.5-33.6 58.9-63.6L551.7 217c7.3-40.1-23.5-77-64.3-77-12.9 0-25.5 3.8-36.2 11L404.6 182 344.9 42.7C333.8 16.8 308.3 0 280.1 0zM266.8 64.8c2.3-5.3 7.5-8.8 13.3-8.8s11 3.4 13.3 8.8l73 170.3c3.3 7.6 9.8 13.4 17.8 15.8s16.6 1.1 23.5-3.5l74.6-49.7c6.6-4.4 15.8 1.4 14.3 9.4L454.5 438.4c-1.9 10.2-8.8 17.2-16.9 19.1-32.9 7.9-90 18.5-157.5 18.5s-124.6-10.6-157.5-18.5c-8.1-1.9-15-8.9-16.9-19.1L63.7 207c-1.5-8 7.8-13.8 14.3-9.4l74.6 49.7c6.9 4.6 15.5 5.9 23.5 3.5s14.5-8.2 17.8-15.8l73-170.3z"]},tG={prefix:"fajr",iconName:"circle-xmark",icon:[560,560,[61532,"times-circle","xmark-circle"],"f057","M215.8 176.2c-10.9-10.9-28.7-10.9-39.6 0s-10.9 28.7 0 39.6l64.2 64.2-64.2 64.2c-10.9 10.9-10.9 28.7 0 39.6s28.7 10.9 39.6 0l64.2-64.2 64.2 64.2c10.9 10.9 28.7 10.9 39.6 0s10.9-28.7 0-39.6l-64.2-64.2 64.2-64.2c10.9-10.9 10.9-28.7 0-39.6s-28.7-10.9-39.6 0l-64.2 64.2-64.2-64.2zM280 0C197 0 126.4 26.5 76.5 76.5S0 197 0 280 26.5 433.6 76.5 483.5 197 560 280 560 433.6 533.5 483.5 483.5 560 363 560 280 533.5 126.4 483.5 76.5 363 0 280 0zM56 280c0-71 22.5-126.4 60-164s93-60 164-60 126.4 22.5 164 60 60 93 60 164-22.5 126.4-60 164-93 60-164 60-126.4-22.5-164-60-60-93-60-164z"]},tq=tG,tZ=tG,tH={prefix:"fajr",iconName:"utensils",icon:[560,560,[61685,127860,"cutlery"],"f2e7","M28 28c15.5 0 28 12.5 28 28l0 61.3c14.4 2.7 34.6 5.9 56 7.5L112 56c0-15.5 12.5-28 28-28s28 12.5 28 28l0 68.9c21.4-1.6 41.6-4.8 56-7.5L224 56c0-15.5 12.5-28 28-28s28 12.5 28 28l0 140c0 61.9-50.1 112-112 112l0 196c0 15.5-12.5 28-28 28s-28-12.5-28-28l0-196C50.1 308 0 257.9 0 196L0 56C0 40.5 12.5 28 28 28zM140 182c-28.2 0-56.3-3.1-84-7.8L56 196c0 30.9 25.1 56 56 56l56 0c30.9 0 56-25.1 56-56l0-21.8c-27.7 4.7-55.8 7.8-84 7.8zM476 392l0 112c0 15.5 12.5 28 28 28s28-12.5 28-28l0-403c0-40.3-32.7-73-73-73-25 0-49.4 12.9-61.9 36.6-20.5 38.8-61 126.1-61 215.4 0 61.9 50.1 112 112 112l28 0zM446.5 90.8C454.2 76.3 476 86.7 476 101l0 235-28 0c-30.9 0-56-25.1-56-56 0-75 34.9-152.2 54.5-189.2z"]},tW=tH,tX={prefix:"fajr",iconName:"thumbs-down",icon:[560,560,[61576,128078],"f165","M18.6 77.3C36.7 57.7 64.1 56 88 56l20 0c23.9 0 51.3 1.7 69.4 21.3 9.1 9.9 13.5 21.8 15.8 33.4 2.3 11.4 2.9 24.5 2.9 38.6l0 177.3c0 14.1-.6 27.2-2.9 38.6-2.3 11.6-6.7 23.5-15.8 33.4-18 19.6-45.5 21.3-69.4 21.3l-20 0c-23.9 0-51.3-1.7-69.4-21.3-9.1-9.9-13.5-21.8-15.8-33.4-2.3-11.4-2.9-24.5-2.9-38.6L0 149.3c0-14.1 .6-27.2 2.9-38.6 2.3-11.6 6.7-23.5 15.8-33.4zm37.4 72l0 177.3c0 13.1 .6 21.8 1.8 27.7 1 4.8 1.4 6.7 6.1 7.8 4.8 1.1 12.2 1.8 24.1 1.8l20 0c11.9 0 19.3-.7 24.1-1.8 4.7-1.1 5.2-2.9 6.1-7.8 1.2-5.9 1.8-14.6 1.8-27.7l0-177.3c0-13.1-.6-21.8-1.8-27.7-1-4.8-1.4-6.7-6.1-7.8-4.8-1.1-12.2-1.8-24.1-1.8l-20 0c-11.9 0-19.3 .7-24.1 1.8-4.7 1.1-5.2 2.9-6.1 7.8-1.2 5.9-1.8 14.6-1.8 27.7zM369 504c-8.5 0-20.5-8.8-23.5-24.1-7-35.7-24.2-84.9-64.9-133.8-9.9-11.9-27.6-13.5-39.4-3.6s-13.5 27.6-3.6 39.4c33.7 40.4 47.4 80.5 53 108.8 6.8 34.3 36.4 69.3 78.5 69.3 44 0 77.5-39.5 70.3-82.9l-14.2-85.1 44.2 0c28.9 0 64.8-13 77-50.1 7.5-22.8 13.8-56.2 13.8-103.9 0-67.8-24.1-117.7-42.6-146-16.2-24.8-43-36.8-69-38.5-67.2-4.3-138.8-.9-204.1 17.6-14.9 4.2-23.5 19.7-19.2 34.6 4.2 14.9 19.8 23.4 34.7 19.2 59.4-16.3 124-19.5 185.1-15.5 12 .8 21 6 25.7 13.2 14.3 21.9 33.5 61.3 33.5 115.4 0 42.8-5.7 70.2-11 86.4-3.1 9.4-15.2 11.6-23.8 11.6L392 336c-8.2 0-16 3.6-21.4 9.9s-7.6 14.6-6.3 22.7L384 486.3c1.5 9.3-5.6 17.7-15 17.7z"]},tY={prefix:"fajr",iconName:"wheelchair-move",icon:[504,560,["wheelchair-alt"],"e2ce","M303.4 23.4C319.3 7.5 340.9 0 364 0s44.7 7.5 60.6 23.4 23.4 37.5 23.4 60.6-7.5 44.7-23.4 60.6-37.5 23.4-60.6 23.4-44.7-7.5-60.6-23.4-23.4-37.5-23.4-60.6 7.5-44.7 23.4-60.6zM343 63c-3.6 3.6-7 10-7 21s3.4 17.5 7 21 10 7 21 7 17.5-3.4 21-7 7-10 7-21-3.4-17.5-7-21-10-7-21-7-17.5 3.4-21 7zM42.3 294.3c28-28 67.1-42.3 111.7-42.3 22.2 0 43 3.5 61.8 10.6l35.1-35.1c1.5-1.5 1.4-4.2-.2-5.5l-60.9-50.7c-4.7-3.9-11.8-4.3-16.9-.9L99.5 219.3c-12.9 8.6-30.3 5.1-38.8-7.8s-5.1-30.3 7.8-38.8l73.4-48.9c11.5-7.7 25.1-11.8 38.9-11.8 16.4 0 32.3 5.8 44.9 16.3L286.5 179c13.6 11.3 21.5 28.2 21.5 45.9 0 15.8-6.3 31-17.5 42.2l-26 26c12.5 12.2 22.5 26.7 29.6 42.9l76 0c43 0 77.9 34.9 77.9 77.9 0 6.4-.8 12.7-2.3 18.9l-26.5 106c-3.7 15-19 24.1-34 20.4s-24.1-19-20.4-34l26.5-106c3.4-13.4-7.2-27.2-21.2-27.2l-62.6 0c.3 4.6 .5 9.3 .5 14 0 44.5-14.3 83.6-42.3 111.7S198.5 560 154 560 70.4 545.7 42.3 517.7 0 450.5 0 406 14.3 322.4 42.3 294.3zm39.6 39.6C66.2 349.6 56 373.5 56 406s10.2 56.4 25.9 72.1 39.6 25.9 72.1 25.9 56.4-10.2 72.1-25.9 25.9-39.6 25.9-72.1-10.2-56.4-25.9-72.1-39.6-25.9-72.1-25.9-56.4 10.2-72.1 25.9z"]},tK=tY,tJ={prefix:"fajr",iconName:"video",icon:[616,560,["video-camera"],"f03d","M28 308c0 35.6 1.7 65.9 7.2 91.2 5.5 25.6 15.2 47.8 32.5 65.1s39.5 27 65.1 32.5c45.4 9.8 137 9.8 182.4 0 25.6-5.5 47.8-15.2 65.1-32.5s27-39.5 32.5-65.1c5.5-25.3 7.2-55.7 7.2-91.2l0-56c0-35.6-1.7-65.9-7.2-91.2-5.5-25.6-15.2-47.8-32.5-65.1s-39.5-27-65.1-32.5c-45.4-9.8-137-9.8-182.4 0-25.6 5.5-47.8 15.2-65.1 32.5s-27 39.5-32.5 65.1C29.7 186.1 28 216.4 28 252l0 56zM224 448c-34.4 0-60.1-1.8-79.4-5.9-19
2-4.1-30.1-10.1-37.3-17.4S94 406.4 89.9 387.4c-4.2-19.3-5.9-45-5.9-79.4l0-56c0-34.4 1.8-60.1 5.9-79.4 4.1-19 10.1-30.1 17.4-37.3s18.3-13.3 37.3-17.4c19.3-4.2 45-5.9 79.4-5.9s60.1 1.8 79.4 5.9c19 4.1 30.1 10.1 37.3 17.4s13.3 18.3 17.4 37.3c4.2 19.3 5.9 45 5.9 79.4l0 56c0 34.4-1.8 60.1-5.9 79.4-4.1 19-10.1 30.1-17.4 37.3s-18.3 13.3-37.3 17.4c-19.3 4.2-45 5.9-79.4 5.9zM540.7 112c-8.8 0-17.5 1.4-25.9 4.2l-40.5 13.5c-14.7 4.9-22.6 20.7-17.7 35.4s20.7 22.6 35.4 17.7l40.5-13.5c7.1-2.4 20-2.3 21.4 7.2 3 19.6 6 52.2 6 103.5s-3 83.9-6 103.5c-1.5 9.5-14.3 9.5-21.4 7.2l-40.5-13.5c-14.7-4.9-30.5 3-35.4 17.7s3 30.5 17.7 35.4l40.5 13.5c8.3 2.8 17.1 4.2 25.9 4.2 31.2 0 63-19.4 68.6-56.1 3.5-23.1 6.6-58.6 6.6-111.9s-3.1-88.8-6.6-111.9c-5.6-36.6-37.5-56.1-68.6-56.1z"]},tQ=tJ,t1={prefix:"fajr",iconName:"comment",icon:[560,560,[61669,128489],"f075","M280 0c-92 0-162.8 21.3-210.8 64-48.5 43.2-69.2 104.3-69.2 174 0 47.2 9.4 90.5 30.9 127.2 21.2 36.2 53.1 64.3 95.5 83.1-7.2 11.1-14.4 26.3-14.4 44.1 0 37.3 30.3 67.6 67.6 67.6 16.7 0 32.8-5.2 45.8-16l82.9-68.7c82.8-4.2 146.7-27.5 189.8-70.1 43.4-42.8 62-101.2 62-167.2 0-69.7-20.7-130.8-69.2-174-48-42.7-118.7-64-210.8-64zM56 238C56 179.4 73.1 135.5 106.5 105.8 140.4 75.6 195.6 56 280 56s139.6 19.6 173.5 49.8c33.4 29.7 50.5 73.6 50.5 132.2 0 55.6-15.4 97.9-45.3 127.3-30.1 29.7-78.9 50.2-153.3 54-11.9 .6-23.9 4.9-33.6 13L189.5 501c-2.9 2.4-6.3 3-9.9 3-6.4 0-11.6-5.2-11.6-11.6 0-2.9 1.3-7.4 5.5-13.8 2.1-3.1 4.2-6.7 6.3-10.6 8.1-15.4 6.4-31.6-.2-44.2-6.3-11.9-16.8-20.8-28.4-25.8-33.7-14.4-56.9-35.3-72-61.1-15.3-26.1-23.2-59.1-23.2-99z"]},t0={prefix:"fajr",iconName:"location-arrow",icon:[616,560,[],"f124","M455.9 34.2c9.4-4.1 19.5-6.2 29.8-6.2 41 0 74.3 33.3 74.3 74.3 0 10.3-2.1 20.4-6.2 29.8L372.6 546.2c-11.1 25.4-36.2 41.8-63.9 41.8-28.9 0-54.8-17.8-65.1-44.7L188.3 399.7 44.7 344.4C17.8 334.1 0 308.2 0 279.3 0 251.6 16.4 226.5 41.8 215.4L455.9 34.2zm22.4 51.3L64.2 266.7c-5 2.2-8.2 7.1-8.2 12.6 0 5.7 3.5 10.8 8.8 12.8l143.6 55.2c14.8 5.7 26.5 17.4 32.2 32.2l55.2 143.6c2 5.3 7.2 8.8 12.8 8.8 5.5 0 10.4-3.2 12.6-8.2L502.5 109.7c6.3-14.4-9.1-30.7-24.1-24.1z"]},t2={prefix:"fajr",iconName:"print",icon:[560,560,[9113,128424,128438],"f02f","M154.3 317.9c23.1-4.4 63.9-9.9 125.7-9.9s102.6 5.4 125.7 9.9c26.5 5.1 42.3 28.4 42.3 52.3l0 21.8c0 29.7-1.4 55.4-6.1 77-4.7 21.9-13.1 41.3-28.4 56.6s-34.7 23.6-56.6 28.4c-21.6 4.7-47.3 6.1-77 6.1s-55.4-1.4-77-6.1c-21.9-4.7-41.3-13.1-56.6-28.4s-23.6-34.7-28.4-56.6c-4.6-21.6-6.1-47.3-6.1-77l0-21.8c0-23.9 15.8-47.2 42.3-52.3zM168 372.3l0 19.7c0 28.6 1.5 49.6 4.8 65.2 3.3 15.3 8 23.6 13.2 28.8s13.4 9.9 28.8 13.2c15.6 3.4 36.6 4.8 65.2 4.8s49.6-1.5 65.2-4.8c15.3-3.3 23.6-8 28.8-13.2s9.9-13.4 13.2-28.8c3.4-15.6 4.8-36.6 4.8-65.2l0-19.7c-20.1-3.6-56.5-8.3-112-8.3s-91.9 4.6-112 8.3zm279.7-227c-.7-20.3-2.3-38.4-5.8-54.3-4.7-21.9-13.1-41.3-28.4-56.6S378.9 10.8 357 6.1C335.4 1.4 309.7 0 280 0s-55.4 1.4-77 6.1c-21.9 4.7-41.3 13.1-56.6 28.4S122.8 69.1 118.1 91c-3.4 15.9-5.1 34-5.8 54.3-26 4.3-52 12.9-71.8 31-34.6 31.7-40.6 82.7-40.6 145.8 0 45.3 3.2 83.1 16.5 112.2 6.4 14.1 23 20.3 37.1 13.8s20.3-23 13.8-37.1c-7.8-17.1-11.5-44.1-11.5-88.9 0-65.3 8-91.3 22.4-104.5 7.1-6.5 18.3-12.2 37.7-16 19.5-3.9 45.3-5.5 79.7-5.5L364 196c34.4 0 60.3 1.6 79.9 5.5 19.4 3.8 30.6 9.5 37.7 16 14.4 13.2 22.4 39.2 22.4 104.5 0 44.9-3.7 71.8-11.5 88.9-6.4 14.1-.2 30.7 13.8 37.1s30.7 .2 37.1-13.8c13.3-29.1 16.5-66.9 16.5-112.2 0-63-6-114-40.6-145.8-19.7-18.1-45.8-26.6-71.8-31zm-60.5-42.4c2.2 10 3.5 22.2 4.2 37.2l-222.8 0c.7-15 2.1-27.2 4.2-37.2 3.3-15.3 8-23.6 13.2-28.8s13.4-9.9 28.8-13.2C230.4 57.5 251.4 56 280 56s49.6 1.5 65.2 4.8c15.3 3.3 23.6 8 28.8 13.2s9.9 13.4 13.2 28.8z"]},t3={prefix:"fajr",iconName:"arrow-down-to-line",icon:[448,560,["arrow-to-bottom"],"f33d","M405.2 258c0 12.4-4.3 24.8-13 34.6-18.5 20.9-79.7 86.9-146.9 122-7.1 3.7-14.7 5.4-22.1 5.4s-15-1.7-22.1-5.4c-67.3-35.2-128.5-101.2-147-122-8.7-9.8-13-22.2-13-34.5 0-24.3 16.8-46.7 42.5-51.1 22.1-3.8 60.8-9.1 112.3-10.6L196 28c0-15.5 12.5-28 28-28s28 12.5 28 28l0 168.4c51 1.5 89 6.7 110.8 10.5 25.6 4.5 42.4 26.9 42.4 51.1zm-182 104.9c51.6-28.2 101-78.7 122.3-102.1-24.5-3.9-66.2-8.8-121.5-8.8-55.6 0-98.1 5-123 8.9 21.4 23.5 70.7 73.9 122.2 102zM39.3 478.4c-14.1-6.2-30.6 .1-36.9 14.2-6.3 14.1 0 3
20.7 14.1 37 63 28 140.4 30.4 207.4 30.4s144.4-2.5 207.4-30.4c14.1-6.3 20.5-22.9 14.1-37-6.3-14.1-22.8-20.4-36.9-14.2-56.5 23.8-124.9 25.6-184.7 25.6S95.8 502.2 39.3 478.4z"]},t5=t3,t4={prefix:"fajr",iconName:"clone",icon:[560,560,[],"f24d","M140 255.5c0 29 1.4 54.1 6 75.2 4.6 21.4 12.9 40.5 27.8 55.5s34.1 23.2 55.5 27.8c21.1 4.6 46.2 6 75.2 6l91 0c29 0 54.1-1.4 75.2-6 21.4-4.6 40.5-12.9 55.5-27.8s23.2-34.1 27.8-55.5c4.5-21.1 6-46.2 6-75.2l0-91c0-29-1.4-54.1-6-75.2-4.6-21.4-12.9-40.5-27.8-55.5S492.1 10.6 470.7 6c-21.1-4.5-46.2-6-75.2-6l-91 0c-29 0-54.1 1.4-75.2 6-21.4 4.6-40.5 12.9-55.5 27.8S150.6 67.9 146 89.3c-4.5 21.1-6 46.2-6 75.2l0 91zM304.5 364c-27.9 0-48.2-1.4-63.4-4.7-14.9-3.2-22.8-7.8-27.7-12.7s-9.5-12.8-12.7-27.7c-3.3-15.2-4.7-35.5-4.7-63.4l0-91c0-27.9 1.4-48.2 4.7-63.4 3.2-14.9 7.8-22.8 12.7-27.7s12.8-9.5 27.7-12.7c15.2-3.3 35.5-4.7 63.4-4.7l91 0c27.9 0 48.2 1.4 63.4 4.7 14.9 3.2 22.8 7.8 27.7 12.7s9.5 12.8 12.7 27.7c3.3 15.2 4.7 35.5 4.7 63.4l0 91c0 27.9-1.4 48.2-4.7 63.4-3.2 14.9-7.8 22.8-12.7 27.7s-12.8 9.5-27.7 12.7c-15.2 3.3-35.5 4.7-63.4 4.7l-91 0zM0 395.5c0 29 1.4 54.1 6 75.2 4.6 21.4 12.9 40.5 27.8 55.5S67.9 549.4 89.3 554c21.1 4.5 46.2 6 75.2 6l91 0c35.5 0 65.6-2.1 89.8-9.8 25.9-8.3 45.5-23.2 57.8-47.5 7-13.8 1.5-30.6-12.3-37.6s-30.6-1.5-37.6 12.3c-4.6 9.1-11.3 15.1-24.9 19.5-15.4 4.9-38.1 7.2-72.7 7.2l-91 0c-27.9 0-48.2-1.4-63.4-4.7-14.9-3.2-22.8-7.8-27.7-12.7s-9.5-12.8-12.7-27.7c-3.3-15.2-4.7-35.5-4.7-63.4l0-91c0-34.6 2.2-57.3 7.1-72.6 4.4-13.7 10.4-20.4 19.4-25 13.8-7.1 19.2-23.9 12.1-37.7S70.7 150 56.9 157.1C32.8 169.5 18 189.1 9.8 214.9 2.1 239 0 269.1 0 304.5l0 91z"]},t6={prefix:"fajr",iconName:"heart",icon:[560,560,[9829,10084,61578,128153,128154,128155,128156,128420,129293,129294,129505],"f004","M280 87.2C251.2 47 202.6 28 154 28 109.5 28 70.4 42.3 42.3 70.3S0 137.5 0 182c0 82.1 40.3 154.4 85.3 209.9 45.3 55.8 97.7 97.5 127.2 119 20.2 14.7 44 21.1 67.4 21.1s47.2-6.5 67.4-21.1c29.6-21.5 82-63.2 127.2-119 45-55.5 85.3-127.8 85.3-209.9 0-44.5-14.3-83.6-42.3-111.7S450.5 28 406 28c-48.6 0-97.2 19-126 59.2zM81.9 109.9C97.6 94.2 121.5 84 154 84s56.4 10.2 72.1 25.9 25.9 39.6 25.9 72.1c0 15.5 12.5 28 28 28s28-12.5 28-28c0-32.5 10.2-56.4 25.9-72.1S373.5 84 406 84 462.4 94.2 478.1 109.9 504 149.5 504 182c0 63.8-31.6 123.8-72.8 174.6-41 50.5-89.1 88.9-116.6 108.9-19.5 14.2-49.6 14.2-69.1 0-27.6-20-75.7-58.4-116.6-108.9-41.2-50.8-72.8-110.9-72.8-174.6 0-32.5 10.2-56.4 25.9-72.1z"]},t8={prefix:"fajr",iconName:"paper-plane",icon:[560,560,[61913],"f1d8","M21 92.7c0-35.7 29-64.7 64.7-64.7 6 0 12.1 .8 18.3 2.7 21.1 6.4 106 32.6 197.2 69.3 45.6 18.3 93.2 39.4 135.5 62 41.8 22.4 80.3 47.4 106.2 74.1 12.3 12.7 17.1 29 17.1 43.9s-4.9 31.3-17.1 43.9c-25.8 26.7-64.3 51.7-106.2 74.1-42.3 22.7-89.9 43.7-135.5 62-91.2 36.6-176.1 62.9-197.2 69.3-6.2 1.9-12.3 2.7-18.3 2.7-35.7 0-64.7-29-64.7-64.7l0-4.6c0-15.9 5.5-31.1 14.8-43.2 9.2-12 24.2-32.3 38.6-54.9 8.3-13 25.6-16.9 38.7-8.6s16.9 25.6 8.6 38.7c-15.6 24.5-31.6 46.2-41.4 58.9-2.2 2.9-3.3 6.2-3.3 9.2l0 4.6c0 5.4 5.5 10 10.8 8.4 20.5-6.2 103.5-31.9 192.5-67.6 44.5-17.9 90.1-38.1 129.9-59.4 40.3-21.6 72.7-43.3 92.4-63.7 2.1-2.1 2.1-7.9 0-10-19.7-20.4-52.1-42.1-92.4-63.7-39.8-21.3-85.4-41.5-129.9-59.4-89-35.7-172.1-61.4-192.5-67.6-5.3-1.6-10.8 3-10.8 8.4l0 4.6c0 3.1 1 6.3 3.2 9.2 10.7 13.9 29.1 38.8 46.1 66.4 14.9 24.1 30.4 52.9 37.5 79.1L280 252c15.5 0 28 12.5 28 28s-12.5 28-28 28l-126 0c-23.9 0-39.4-18.7-43-36.3-3.7-18-16.2-43.2-32.4-69.4-15.6-25.3-32.8-48.6-42.9-61.8-9.3-12.2-14.8-27.3-14.8-43.2l0-4.6z"]},t7={prefix:"fajr",iconName:"book",icon:[448,560,[128212],"f02d","M196 0c-35.6 0-65.9 1.7-91.2 7.2-25.6 5.5-47.8 15.2-65.1 32.5s-27 39.5-32.5 65.1C1.7 130.1 0 160.4 0 196L0 364c0 35.6 1.7 65.9 7.2 91.2 5.5 25.6 15.2 47.8 32.5 65.1s39.5 27 65.1 32.5c25.3 5.5 55.7 7.2 91.2 7.2l196 0c15.5 0 28-12.5 28-28s-12.5-28-28-28l-196 0c-34.4 0-60.1-1.8-79.4-5.9-19-4.1-30.1-10.1-37.3-17.4S66 462.4 61.9 443.4c-4.2-19.3-5.9-45-5.9-79.4l0-168c0-34.4 1.8-60.1 5.9-79.4 4.1-19 10.1-30.1 17.4-37.3S97.6 66 116.6 61.9c19.3-4.2 45-5.9 79.4-5.9l56 0c34.4 0 60.1 1.8 79.4 5.9 19 4.1 30.1 10.1 37.3 17.4s13.3 18.3 17.4 37.3c4.2 19.3 5.9 45 5.9 79.4l0 141.1c0 27-18.7 47.9-42.9 50.2-26.5 2.5-59.8 4.6-97.1 4.6l-112 0c-15.5 0-28 12.5-28 28s12.5 28 28 28l112 0c39.4 0 74.5-2.2 102.5-4.9 55.6-5.3 93.5-52.9 93.5-106L448 196c0-35.6-1.7-65.9-7.2-91.2-5.5-25.6-15.2-47.8-32.5-65.1s-39.5-27-65.1-32.5C317.9 1.7 287.6 0 252 0L196 0zM140 140c-15.5 0-28 12.5-28 28s12.5 28 28 28l168 0c15.5 0 28-12.5 28-28s-12.5-28-28-28l-168 0z"]}
2,t9={prefix:"fajr",iconName:"clock",icon:[560,560,[128339,"clock-four"],"f017","M308 140c0-15.5-12.5-28-28-28s-28 12.5-28 28l0 116.8c0 22.3 8.9 43.6 24.6 59.4l67.6 67.6c10.9 10.9 28.7 10.9 39.6 0s10.9-28.7 0-39.6l-67.6-67.6c-5.3-5.3-8.2-12.4-8.2-19.8L308 140zM280 0C197 0 126.4 26.5 76.5 76.5S0 197 0 280 26.5 433.6 76.5 483.5 197 560 280 560 433.6 533.5 483.5 483.5 560 363 560 280 533.5 126.4 483.5 76.5 363 0 280 0zM56 280c0-71 22.5-126.4 60-164s93-60 164-60 126.4 22.5 164 60 60 93 60 164-22.5 126.4-60 164-93 60-164 60-126.4-22.5-164-60-60-93-60-164z"]},ie=t9,it={prefix:"fajr",iconName:"trash",icon:[504,560,[],"f1f8","M112 238c0-15.5-12.5-28-28-28s-28 12.5-28 28l0 126C56 436.4 70.2 488.9 107.6 521.6 144 553.4 195.5 560 252 560s108-6.6 144.4-38.4C433.8 488.9 448 436.4 448 364l0-126c0-15.5-12.5-28-28-28s-28 12.5-28 28l0 126c0 67.6-13.8 99.1-32.4 115.4-19.6 17.1-52.1 24.6-107.6 24.6s-88-7.4-107.6-24.6C125.8 463.1 112 431.6 112 364l0-126zM100.4 119.1l5.7-45.5c5.3-42 41-73.6 83.4-73.6L314.6 0c42.4 0 78.1 31.5 83.4 73.6l5.7 45.5c23-1.9 46-4.1 68.9-6.9 15.3-1.9 29.3 9 31.3 24.3s-9 29.3-24.3 31.3C404.2 177.1 327.9 182 252 182S99.8 177.1 24.5 167.8C9.2 165.9-1.7 151.9 .2 136.5s15.9-26.2 31.3-24.3c22.9 2.8 45.9 5 68.9 6.9zm89-63.1c-14.1 0-26 10.5-27.8 24.5l-5.3 42.5c30 1.7 62.9 2.9 95.7 2.9s65.7-1.2 95.7-2.9l-5.3-42.5c-1.8-14-13.7-24.5-27.8-24.5L189.4 56z"]},ii={prefix:"fajr",iconName:"eye",icon:[616,560,[128065],"f06e","M308 168c-14.6 0-26.1 10.3-29 23.3-4.2 18.7-21 32.7-41 32.7-14 0-33.6 8.1-38.8 29.5-2.1 8.5-3.2 17.4-3.2 26.5 0 61.9 50.1 112 112 112s112-50.1 112-112-50.1-112-112-112zM252 279c32-4.6 59-24.6 73.2-52.3 22.5 7.3 38.8 28.4 38.8 53.3 0 30.9-25.1 56-56 56-30.9 0-56.5-26.1-56-57zM308 42C138.8 42 46.6 165.5 15.9 216 4.2 235.2 0 256.6 0 276.6l0 6.8c0 20 4.2 41.4 15.9 60.6 30.7 50.5 122.9 174 292.1 174S569.4 394.5 600.1 344c11.7-19.2 15.9-40.6 15.9-60.6l0-6.8c0-20-4.2-41.4-15.9-60.6-30.7-50.5-122.9-174-292.1-174zM63.8 245.1C91.6 199.2 169.2 98 308 98S524.4 199.2 552.2 245.1c5.1 8.5 7.8 19.1 7.8 31.5l0 6.8c0 12.4-2.6 23.1-7.8 31.5-27.9 45.8-105.4 147.1-244.2 147.1S91.6 360.8 63.8 314.9c-5.1-8.5-7.8-19.1-7.8-31.5l0-6.8c0-12.4 2.6-23.1 7.8-31.5z"]},ir={prefix:"fajr",iconName:"camera",icon:[560,560,[62258,"camera-alt"],"f030","M199 199c20.7-20.7 49.4-31 81-31s60.3 10.2 81 31 31 49.4 31 81-10.2 60.3-31 81-49.4 31-81 31-60.3-10.2-81-31-31-49.4-31-81 10.2-60.3 31-81zm39.6 39.6C230.1 247 224 260.4 224 280s6.1 33 14.5 41.5 21.8 14.5 41.5 14.5 33-6.1 41.5-14.5 14.5-21.8 14.5-41.5-6.1-33-14.5-41.5-21.8-14.5-41.5-14.5-33 6.1-41.5 14.5zM128.8 61.6C144.7 40.4 169.6 28 196 28l168 0c26.4 0 51.3 12.4 67.2 33.6l21.9 29.1c37.7 7.8 67 24.1 85 56.8 17.9 32.5 21.9 77.2 21.9 132.4l0 28c0 35.6-1.7 65.9-7.2 91.2-5.5 25.6-15.2 47.8-32.5 65.1s-39.5 27-65.1 32.5c-25.3 5.5-55.7 7.2-91.2 7.2l-168 0c-35.6 0-65.9-1.7-91.2-7.2-25.6-5.5-47.8-15.2-65.1-32.5s-27-39.5-32.5-65.1C1.7 373.9 0 343.6 0 308l0-28c0-55.3 4-99.9 21.9-132.4 18-32.8 47.3-49 85-56.8l21.9-29.1zM196 84c-8.8 0-17.1 4.1-22.4 11.2l-28.5 37.9c-4.4 5.8-10.9 9.7-18.1 10.9-33.9 5.3-47.8 15.5-56.1 30.5-10.2 18.5-15 49.7-15 105.5l0 28c0 34.4 1.8 60.1 5.9 79.4 4.1 19 10.1 30.1 17.4 37.3s18.3 13.3 37.3 17.4c19.3 4.2 45 5.9 79.4 5.9l168 0c34.4 0 60.1-1.8 79.4-5.9 19-4.1 30.1-10.1 37.3-17.4s13.3-18.3 17.4-37.3c4.2-19.3 5.9-45 5.9-79.4l0-28c0-55.8-4.8-86.9-15-105.5-8.3-15.1-22.2-25.3-56.1-30.5-7.2-1.1-13.7-5-18.1-10.9L386.4 95.2C381.1 88.1 372.8 84 364 84L196 84z"]},ia=ir,io={prefix:"fajr",iconName:"magnifying-glass",icon:[560,560,[128269,"search"],"f002","M175 175c-3.6 3.6-7 10-7 21 0 15.5-12.5 28-28 28s-28-12.5-28-28c0-23.1 7.5-44.7 23.4-60.6S172.9 112 196 112c15.5 0 28 12.5 28 28s-12.5 28-28 28c-11.1 0-17.5 3.4-21 7zM53.7 53.7C89 18.4 138.6 0 196 0S303 18.4 338.3 53.7 392 138.6 392 196 373.6 303 338.3 338.3 253.4 392 196 392 89 373.6 53.7 338.3 0 253.4 0 196 18.4 89 53.7 53.7zM93.3 93.3C70.3 116.3 56 150.7 56 196S70.3 275.7 93.3 298.7 150.7 336 196 336 275.7 321.7 298.7 298.7 336 241.3 336 196 321.7 116.3 298.7 93.3 241.3 56 196 56 116.3 70.3 93.3 93.3zm348.5 224c-12.4-9.3-29.9-6.8-39.2 5.6s-6.8 29.9 5.6 39.2L485.3 420c11.8 8.8 18.7 22.6 18.7 37.3 0 25.8-20.9 46.7-46.7 46.7-14.7 0-28.5-6.9-37.3-18.7l-57.9-77.1c-9.3-12.4-26.8-14.9-39.2-5.6s-14.9 26.8-5.6 39.2l57.9 77.1c19.4 25.9 49.8 41.1 82.1 41.1 56.7 0 102.7-46 102.7-102.7 0-32.3-15.2-62.7-41.1-82.1l-77.1-57.9z"]}
2,is=io,il={prefix:"fajr",iconName:"gift",icon:[504,560,[127873],"f06b","M84.2 98c0 18.6 4.1 36.1 12.4 51.2-22.1 5.8-41.3 15.2-56.7 30.5-17.3 17.3-27 39.5-32.5 65.1-9.8 45.4-9.8 137 0 182.4 5.5 25.6 15.2 47.8 32.5 65.1s39.5 27 65.1 32.5c25.3 5.5 55.7 7.2 91.2 7.2l112 0c35.6 0 65.9-1.7 91.2-7.2 25.6-5.5 47.8-15.2 65.1-32.5s27-39.5 32.5-65.1c9.8-45.4 9.8-137 0-182.4-5.5-25.6-15.2-47.8-32.5-65.1-15.4-15.4-34.6-24.7-56.7-30.5 8.3-15.1 12.4-32.6 12.4-51.2 0-6.2-.5-12.3-1.4-18.3-3.6-23.3-14.5-43.9-32.2-58.4-17.7-14.4-40.2-21.3-64.4-21.3-27 0-51.8 8.6-70 26.3-18.2-17.8-43-26.3-70-26.3-24.3 0-46.7 6.9-64.4 21.3-17.8 14.5-28.6 35-32.2 58.4-.9 6-1.4 12.1-1.4 18.3zm140 42c-14 0-28-.2-42 0-15.4 0-25.3-4.8-31.2-10.8S140.2 113.4 140.2 98c0-17 5.6-27.2 13-33.3 6-4.9 15.3-8.7 29-8.7 15.4 0 25.3 4.8 31.2 10.8S224.2 82.6 224.2 98l0 42zm-28 56l28 0 0 112-167.5 0c.8-20.9 2.5-37.7 5.5-51.4 4.1-19 10.1-30.1 17.4-37.3s18.3-13.3 37.3-17.4c19.3-4.2 45-5.9 79.4-5.9zM62.1 415.4c-3-13.7-4.7-30.5-5.5-51.4l167.5 0 0 112-28 0c-34.4 0-60.1-1.8-79.4-5.9-19-4.1-30.1-10.1-37.3-17.4s-13.3-18.3-17.4-37.3zM280.2 140l0-42c0-15.4 4.8-25.3 10.8-31.2S306.8 56 322.2 56c13.7 0 23 3.8 29 8.7 7.4 6.1 13 16.3 13 33.3 0 15.4-4.8 25.3-10.8 31.2S337.5 140 322.2 140c-14-.2-28 0-42 0zm28 56c34.4 0 60.1 1.8 79.4 5.9 19 4.1 30.1 10.1 37.3 17.4s13.3 18.3 17.4 37.3c3 13.7 4.7 30.5 5.5 51.4l-167.5 0 0-112 28 0zM442.2 415.4c-4.1 19-10.1 30.1-17.4 37.3s-18.3 13.3-37.3 17.4c-19.3 4.2-45 5.9-79.4 5.9l-28 0 0-112 167.5 0c-.8 20.9-2.5 37.7-5.5 51.4z"]},ic={prefix:"fajr",iconName:"trophy",icon:[616,560,[127942],"f091","M207.8 5.1C231.9 2.4 265.3 0 308 0s76.1 2.4 100.2 5.1C449.4 9.8 476 45.2 476 83.4l0 28.6 65.4 0c41.2 0 74.6 33.4 74.6 74.6 0 59.6-26.1 107.9-62.1 152.9-9.7 12.1-27.3 14-39.4 4.4s-14-27.3-4.4-39.4c28-35 49.9-71.2 49.9-117.9 0-10.3-8.3-18.6-18.6-18.6l-65.4 0 0 81.8c0 49.3-15.6 92.4-46 123.3-24.5 24.8-56.8 40-94 45l0 72.6c39.2 2 78.4 6.7 117 13.7 15.2 2.8 25.3 17.3 22.5 32.6s-17.3 25.3-32.6 22.5c-44.4-8-89.9-13.5-135-13.5s-90.6 5.6-135 13.5c-15.2 2.8-29.8-7.3-32.6-22.5s7.3-29.8 22.5-32.6c38.6-7 77.9-11.7 117-13.7l0-72.6c-37.2-5-69.6-20.2-94-45-30.4-30.9-46-74-46-123.3l0-81.8-65.4 0c-10.3 0-18.6 8.3-18.6 18.6 0 46.7 21.9 82.9 49.9 117.9 9.7 12.1 7.7 29.7-4.4 39.4s-29.7 7.7-39.4-4.4C26.1 294.5 0 246.2 0 186.6 0 145.4 33.4 112 74.6 112l65.4 0 0-28.6c0-38.2 26.6-73.6 67.8-78.3zm18.1 328.7C244 352.3 271.4 364 308 364s64-11.7 82.1-30.1c18.2-18.5 29.9-46.5 29.9-84l0-166.4c0-13.1-8.4-21.5-18.1-22.6-22-2.5-53.3-4.8-93.9-4.8s-71.9 2.3-93.9 4.8c-9.7 1.1-18.1 9.6-18.1 22.6l0 166.4c0 37.5 11.7 65.5 29.9 84z"]},iu={prefix:"fajr",iconName:"mobile",icon:[448,560,[128241,"mobile-android","mobile-phone"],"f3ce","M154 140c0-15.5 12.5-28 28-28l84 0c15.5 0 28 12.5 28 28s-12.5 28-28 28l-84 0c-15.5 0-28-12.5-28-28zm70 308a28 28 0 1 0 0-56 28 28 0 1 0 0 56zM104.8 7.2C130.1 1.7 160.4 0 196 0l56 0c35.6 0 65.9 1.7 91.2 7.2 25.6 5.5 47.8 15.2 65.1 32.5s27 39.5 32.5 65.1c5.5 25.3 7.2 55.7 7.2 91.2l0 168c0 35.6-1.7 65.9-7.2 91.2-5.5 25.6-15.2 47.8-32.5 65.1s-39.5 27-65.1 32.5c-25.3 5.5-55.7 7.2-91.2 7.2l-56 0c-35.6 0-65.9-1.7-91.2-7.2-25.6-5.5-47.8-15.2-65.1-32.5s-27-39.5-32.5-65.1C1.7 429.9 0 399.6 0 364L0 196c0-35.6 1.7-65.9 7.2-91.2 5.5-25.6 15.2-47.8 32.5-65.1s39.5-27 65.1-32.5zM61.9 116.6c-4.2 19.3-5.9 45-5.9 79.4l0 168c0 34.4 1.8 60.1 5.9 79.4 4.1 19 10.1 30.1 17.4 37.3s18.3 13.3 37.3 17.4c19.3 4.2 45 5.9 79.4 5.9l56 0c34.4 0 60.1-1.8 79.4-5.9 19-4.1 30.1-10.1 37.3-17.4s13.3-18.3 17.4-37.3c4.2-19.3 5.9-45 5.9-79.4l0-168c0-34.4-1.8-60.1-5.9-79.4-4.1-19-10.1-30.1-17.4-37.3S350.4 66 331.4 61.9c-19.3-4.2-45-5.9-79.4-5.9l-56 0c-34.4 0-60.1 1.8-79.4 5.9-19 4.1-30.1 10.1-37.3 17.4S66 97.6 61.9 116.6z"]},ih=iu,id=iu,ip={prefix:"fajr",iconName:"bell",icon:[504,560,[61602,128276],"f0f3","M252 0C194.6 0 145 18.4 109.7 53.7S56 138.6 56 196l0 67c0 5.5-1.6 10.9-4.7 15.5L14 334.5c-9.1 13.7-14 29.8-14 46.2 0 35.2 22.7 68.5 60 76.6 38.7 8.4 103.8 18.7 192 18.7s153.3-10.2 192-18.7c37.3-8.1 60-41.4 60-76.6 0-16.5-4.9-32.5-14-46.2l-37.3-55.9c-3.1-4.6-4.7-10-4.7-15.5l0-67c0-57.4-18.4-107-53.7-142.3S309.4 0 252 0zM112 196c0-45.3 14.3-79.7 37.3-102.7S206.7 56 252 56 331.7 70.3 354.7 93.3 392 150.7 392 196l0 67c0 16.6 4.9 32.8 14.1 46.6l37.3 55.9c8.3 12.4 5.2 33.4-11.3 37-35.1 7.7-96.3 17.4-180.1 17.4s-145-9.7-180.1-17.4c-16.5-3.6-19.5-24.6-11.3-37l37.3-55.9c9.2-13.8 14.1-30 14.1-46.6l0-67zm98.3 317.3c-10.3-11.5-28-12.5-39.5-2.2s-12.5 28-2.2 39.5C189 573.5 218.8 588 252 588s63-14.5 83.5-37.3c10.3-11.5 9.3-29.2-2.2-39.5s-29.2-9.3-39.5 2.2C283.5 524.8 268.6 532 252 532s-31.5-7.2-41.7-18.7z"]},im={prefix:"fajr",iconName:"envelope",icon:[560,560,[9993,61443,128386],"f0e0","M196 56l168 0c46.8 0 85.5 3 115.4 14.2 32.4 
212.1 54 33.5 66.2 65.9 11.2 29.6-.5 59.6-20 77.9-22.4 21-57.8 51-99.9 76-41.8 24.8-92.7 46-145.7 46s-103.9-21.2-145.7-46c-42.1-25-77.5-55-99.9-76-19.5-18.3-31.2-48.3-20-77.9 12.2-32.4 33.8-53.8 66.2-65.9 30-11.2 68.6-14.2 115.4-14.2zm168 56l-168 0c-46.3 0-76.1 3.2-95.8 10.6-17.3 6.5-26.9 16-33.4 33.2-1.5 4-.7 11 5.9 17.2 20.7 19.4 52.8 46.6 90.2 68.7 37.7 22.4 78.5 38.2 117.1 38.2s79.4-15.8 117.1-38.2c37.4-22.2 69.4-49.3 90.2-68.7 6.7-6.2 7.4-13.2 5.9-17.2-6.5-17.2-16.1-26.7-33.4-33.2-19.8-7.4-49.5-10.6-95.8-10.6zM532 280c15.5 0 28 12.5 28 28 0 35.6-1.7 65.9-7.2 91.2-5.5 25.6-15.2 47.8-32.5 65.1s-39.5 27-65.1 32.5c-25.3 5.5-55.7 7.2-91.2 7.2l-168 0c-35.6 0-65.9-1.7-91.2-7.2-25.6-5.5-47.8-15.2-65.1-32.5s-27-39.5-32.5-65.1C1.7 373.9 0 343.6 0 308 0 292.5 12.5 280 28 280s28 12.5 28 28c0 34.4 1.8 60.1 5.9 79.4 4.1 19 10.1 30.1 17.4 37.3s18.3 13.3 37.3 17.4c19.3 4.2 45 5.9 79.4 5.9l168 0c34.4 0 60.1-1.8 79.4-5.9 19-4.1 30.1-10.1 37.3-17.4s13.3-18.3 17.4-37.3c4.2-19.3 5.9-45 5.9-79.4 0-15.5 12.5-28 28-28z"]},ig={prefix:"fajr",iconName:"filter",icon:[504,560,[],"f0b0","M93.3 28l317.3 0c25.8 0 51.2 4.4 69.5 21.3 18.9 17.5 23.9 42.2 23.9 66.7l0 48.3c0 29.5-15.5 56.8-40.8 72l-90 54c-7.2 4.3-12.1 11.7-13.3 20.1L340.6 445.7c-4.5 31.5-26.4 57.7-56.6 67.8l-47 15.7c-5.6 1.9-11.4 2.8-17.3 2.8-27.6 0-50.9-20.6-54.4-48L143.6 310.5c-1.1-8.5-6-16.1-13.4-20.5L40.8 236.3C15.5 221.1 0 193.8 0 164.3L0 116C0 91.5 5 66.8 23.9 49.3 42.2 32.4 67.5 28 93.3 28zM410.7 84L93.3 84c-21.6 0-29 4.1-31.4 6.4-1.9 1.8-5.9 7.1-5.9 25.6l0 48.3c0 9.8 5.2 18.9 13.6 24L159 242c22.1 13.3 36.9 36 40.1 61.6l21.5 172 45.6-15.2c10.1-3.4 17.4-12.1 18.9-22.6l19.3-135.3c3.6-25 18.2-47.1 39.9-60.2l90-54c8.4-5.1 13.6-14.2 13.6-24l0-48.3c0-18.5-4-23.8-5.9-25.6-2.5-2.3-9.8-6.4-31.4-6.4z"]},iy={prefix:"fajr",iconName:"car",icon:[560,560,[128664,"automobile"],"f1b9","M154 322a42 42 0 1 0 0-84 42 42 0 1 0 0 84zm210-42a42 42 0 1 1 84 0 42 42 0 1 1 -84 0zM70.3 155.5L96.7 76.4C110.3 35.6 146.6 5.3 191.1 2.6 214.6 1.2 244.9 0 280 0s65.4 1.2 88.9 2.6c44.5 2.7 80.8 33 94.4 73.8l26.4 79.1c9.9 3.8 19 8.4 27.1 14.2 36.3 25.9 43.2 66.6 43.2 110.3 0 36.9-4.9 71.6-28.3 97.1-1.1 24.2-4.5 56.4-7.6 82.1-5.1 42.1-40.9 72.8-82.6 72.8l-23.1 0c-35.5 0-70.4-23.1-77.5-62.2-2.6-14.5-4.8-32-4.8-49.8l-112 0c0 17.9-2.2 35.3-4.8 49.8-1.1 6.3-3.1 12.4-5.7 18-13.2 28.3-42.2 44.2-71.8 44.2l-23.1 0c-41.7 0-77.6-30.7-82.6-72.8-3.1-25.6-6.6-57.9-7.6-82.1-23.4-25.5-28.3-60.3-28.3-97.1 0-43.7 6.9-84.4 43.2-110.3 8.1-5.8 17.2-10.4 27.1-14.2zm124.1-97c-20.1 1.2-37.7 15-44.6 35.6l-16.1 48.4c18.4-1.7 39.1-2.5 62.3-2.5l168 0c23.2 0 43.9 .7 62.3 2.5L410.2 94.1c-6.9-20.6-24.5-34.4-44.6-35.6-22.6-1.4-51.8-2.5-85.6-2.5s-63 1.2-85.6 2.5zM70.1 339.8c2.7 1.6 5 3.5 7 5.8 7.7 5.1 19.5 9.7 38.4 13.1 20 3.5 46.2 5.3 80.4 5.3l168 0c34.3 0 60.4-1.7 80.4-5.3 18.9-3.3 30.7-8 38.4-13.1 2-2.3 4.4-4.3 7-5.8 9.1-9.7 14.1-25.9 14.1-59.8 0-40.3-7.1-55.6-19.8-64.7-7.6-5.4-19.7-10.5-39.8-14-20-3.5-46.2-5.3-80.4-5.3l-168 0c-34.3 0-60.4 1.7-80.4 5.3-20.1 3.5-32.2 8.6-39.8 14-12.7 9.1-19.8 24.4-19.8 64.7 0 33.9 5 50.1 14.1 59.8zm403 69.9c-6.1 1.6-12.4 3-19 4.1-17.9 3.2-38.5 5-62.2 5.7 .1 13.5 1.5 26.9 3.9 40.3 1.5 8.4 9.7 16.2 22.4 16.2l23.1 0c14 0 25.4-10.2 27-23.5 1.7-13.8 3.3-28.7 4.7-42.7zM168 419.6c-23.6-.7-44.3-2.5-62.2-5.7-6.6-1.2-12.9-2.5-19-4.1 1.3 14.1 3 29 4.7 42.7 1.6 13.3 13 23.5 27 23.5l23.1 0c10.5 0 18.1-5.5 21.1-11.8 .6-1.3 1.1-2.7 1.4-4.3 2.4-13.3 3.8-26.7 3.9-40.3z"]},i_=iy,iv={prefix:"fajdr",iconName:"circle-check",icon:[560,560,[61533,"check-circle"],"f058",["M56 280c0 71 22.5 126.4 60 164s93 60 164 60 126.4-22.5 164-60 60-93 60-164-22.5-126.4-60-164-93-60-164-60-126.4 22.5-164 60-60 93-60 164zm88.7-15.5c8.6-12.9 26-16.3 38.8-7.8 27.7 18.5 51.9 46.7 67.2 66.8 23.6-37.5 71.2-107.3 123.8-149.3 12.1-9.7 29.7-7.7 39.4 4.4s7.7 29.7-4.4 39.4c-55.6 44.5-108.4 129.7-122.8 154.2-7.3 12.3-20.5 19.9-34.9 19.9-13.9 0-26.4-7.1-33.8-18-10-14.8-36.7-51.4-65.6-70.7-12.9-8.6-16.3-26-7.8-38.8z","M409.5 217.9c12.1-9.7 14-27.3 4.4-39.4s-27.3-14-39.4-4.4c-52.5 42-100.2 111.8-123.8 149.3-15.3-20.1-39.5-48.3-67.2-66.8-12.9-8.6-30.3-5.1-38.8 7.8s-5.1 30.3 7.8 38.8c28.9 19.3 55.6 55.9 65.6 70.7 7.4 11 19.9 18 33.8 18 14.4 0 27.6-7.6 34.9-19.9 14.4-24.5 67.2-109.7 122.8-154.2zM280 0C197 0 126.4 26.5 76.5 76.5S0 197 0 280 26.5 433.6 76.5 483.5 197 560 280 560 433.6 533.5 483.5 483.5 560 363 560 280 533.5 126.4 483.5 76.5 363 0 280 0zM56 280c0-71 22.5-126.4 60-164s93-60 164-60 126.4 22.5 164 60 60 93 60 164-22.5 12
26.4-60 164-93 60-164 60-126.4-22.5-164-60-60-93-60-164z"]]},ib=iv,ix={prefix:"fajdr",iconName:"circle-info",icon:[560,560,["info-circle"],"f05a",["M56 280c0-71 22.5-126.4 60-164s93-60 164-60 126.4 22.5 164 60 60 93 60 164-22.5 126.4-60 164-93 60-164 60-126.4-22.5-164-60-60-93-60-164zm140-28c0 15.5 12.5 28 28 28l28 0 0 112-28 0c-15.5 0-28 12.5-28 28s12.5 28 28 28l112 0c15.5 0 28-12.5 28-28s-12.5-28-28-28l-28 0 0-112c0-30.9-25.1-56-56-56l-28 0c-15.5 0-28 12.5-28 28zm42-98a42 42 0 1 0 84 0 42 42 0 1 0 -84 0z","M238 154a42 42 0 1 1 84 0 42 42 0 1 1 -84 0zm-14 70c-15.5 0-28 12.5-28 28s12.5 28 28 28l28 0 0 112-28 0c-15.5 0-28 12.5-28 28s12.5 28 28 28l112 0c15.5 0 28-12.5 28-28s-12.5-28-28-28l-28 0 0-112c0-30.9-25.1-56-56-56l-28 0zM76.5 76.5C126.4 26.5 197 0 280 0S433.6 26.5 483.5 76.5 560 197 560 280 533.5 433.6 483.5 483.5 363 560 280 560 126.4 533.5 76.5 483.5 0 363 0 280 26.5 126.4 76.5 76.5zM116 116c-37.6 37.6-60 93-60 164s22.5 126.4 60 164 93 60 164 60 126.4-22.5 164-60 60-93 60-164-22.5-126.4-60-164-93-60-164-60-126.4 22.5-164 60z"]]},iw=ix,ik={prefix:"fajdr",iconName:"lightbulb",icon:[448,560,[128161],"f0eb",["M146.4 398.5c12.4 21.7 21.6 46.9 21.6 77.5 0 19.6 6.1 33 14.5 41.5S204.4 532 224 532c30.3 0 47.3-14.3 53.4-35.6 3.8-13.6 17-22 30.6-20.1 0-21.6 5.3-39.5 13.5-55.9-18.3 8.3-38.1 14.3-59.2 17.7-7.4 1.2-14.9 2-22.6 2.5-15.4 1-28.7-10.8-29.7-26.2 0-.6-.1-1.2-.1-1.7-22.8-1.4-44.1-6.3-63.6-14.1z","M56 224c0-53.9 17-95.3 44.9-123.1S170.1 56 224 56 319.3 73 347.1 100.9 392 170.1 392 224c0 82.6-62.6 154.8-155.7 160.6-15.4 1-27.2 14.3-26.2 29.7s14.3 27.2 29.7 26.2C362.5 432.8 448 336.1 448 224 448 158.1 426.9 101.5 386.7 61.3S289.9 0 224 0 101.5 21.1 61.3 61.3 0 158.1 0 224c0 73 33.3 118 62.1 154 23.2 28.9 49.9 58.7 49.9 98 0 31.7 10.2 60.3 31 81s49.4 31 81 31c52.1 0 93.5-27.9 107.3-76.4 4.2-14.9-4.4-30.4-19.3-34.6s-30.4 4.4-34.6 19.3c-6 21.4-23 35.6-53.4 35.6-19.6 0-33-6.1-41.5-14.5S168 495.6 168 476c0-60.7-35.8-100.1-62.1-133-27.2-34-49.9-66-49.9-119zm112 0c0-19.6 6.1-33 14.5-41.5S204.4 168 224 168c15.5 0 28-12.5 28-28s-12.5-28-28-28c-31.7 0-60.3 10.2-81 31s-31 49.3-31 81c0 15.5 12.5 28 28 28s28-12.5 28-28z"]]},iT={prefix:"fajdr",iconName:"triangle-exclamation",icon:[560,560,[9888,"exclamation-triangle","warning"],"f071",["M57.2 432c-5.5 19.9 8.3 43.8 28.3 49 34.4 8.9 103 23 194.6 23 91.6 0 160.1-14 194.5-22.9 20-5.2 33.9-29.1 28.4-49.1-9.5-34.2-31.6-100.7-77.4-180.1-45.8-79.4-92.3-131.8-117.2-157.1-14.5-14.7-42.1-14.7-56.6 0-24.9 25.3-71.4 77.7-117.2 157.1s-68 145.8-77.4 180zm264.9-12a42 42 0 1 1 -84 0 42 42 0 1 1 84 0zm-70-238c0-15.5 12.5-28 28-28s28 12.5 28 28l0 126c0 15.5-12.5 28-28 28s-28-12.5-28-28l0-126z","M238.2 420a42 42 0 1 1 84 0 42 42 0 1 1 -84 0zm70-238c0-15.5-12.5-28-28-28s-28 12.5-28 28l0 126c0 15.5 12.5 28 28 28s28-12.5 28-28l0-126zM212 55.6C230.6 36.7 255.6 28 280.2 28s49.6 8.7 68.2 27.6c27.6 28 77.2 84.1 125.8 168.4s72.5 155.3 82.9 193.2c7.1 25.6 2.1 51.6-10.1 72.8-12.3 21.4-32.4 38.7-58.2 45.4-38 9.8-111.4 24.6-208.6 24.6-97.3 0-170.7-14.9-208.7-24.8-25.7-6.7-45.7-24-58-45.2S-3.8 442.7 3.2 417.1C13.7 379.3 37.5 308.3 86.2 224S184.4 83.6 212 55.6zm39.9 39.3c-24.9 25.3-71.4 77.7-117.2 157.1s-68 145.8-77.4 180c-5.5 19.9 8.3 43.8 28.3 49 34.4 8.9 103 23 194.6 23 91.6 0 160.1-14 194.5-22.9 20-5.2 33.9-29.1 28.4-49.1-9.5-34.2-31.6-100.7-77.4-180.1-45.8-79.4-92.3-131.8-117.2-157.1-14.5-14.7-42.1-14.7-56.6 0z"]]},iS=iT,iA=iT,iC={prefix:"fajfr",iconName:"calendar",icon:[504,560,[128197,128198],"f133","M196 28c0-15.5-12.5-28-28-28s-28 12.5-28 28l0 30.1c-12.7 1.1-24.4 2.8-35.2 5.1-25.6 5.5-47.8 15.2-65.1 32.5s-27 39.5-32.5 65.1c-1.7 7.8-3 16.1-4.1 25-1.8 15 9.7 28 24.7 29.2 51 4 133.7 9.1 224.2 9.1s173.1-5.1 224.2-9.1c15-1.2 26.4-14.2 24.7-29.2-1-8.8-2.4-17.1-4.1-25-5.5-25.6-15.2-47.8-32.5-65.1s-39.5-27-65.1-32.5c-10.8-2.3-22.5-4-35.2-5.1L364 28c0-15.5-12.5-28-28-28s-28 12.5-28 28l0 28-112 0 0-28zM0 336c0 35.6 1.7 65.9 7.2 91.2 5.5 25.6 15.2 47.8 32.5 65.1s39.5 27 65.1 32.5c25.3 5.5 55.7 7.2 91.2 7.2l112 0c35.6 0 65.9-1.7 91.2-7.2 25.6-5.5 47.8-15.2 65.1-32.5s27-39.5 32.5-65.1c5.5-25.3 7.2-55.7 7.2-91.2l0-36.7c0-16.4-14.1-29.3-30.5-28.1-52.4 4-133.1 8.7-221.5 8.7s-169.2-4.7-221.5-8.7C14.1 270 0 282.9 0 299.3L0 336z"]}
vendor: 7,740 bytes, line 2
2,iE={prefix:"fajfr",iconName:"circle",icon:[560,560,[9679,9898,9899,11044,61708,61915,128308,128309,128992,128993,128994,128995,128996],"f111","M280 0C197 0 126.4 26.5 76.5 76.5S0 197 0 280 26.5 433.6 76.5 483.5 197 560 280 560 433.6 533.5 483.5 483.5 560 363 560 280 533.5 126.4 483.5 76.5 363 0 280 0z"]},iM={prefix:"fajfr",iconName:"circle-check",icon:[560,560,[61533,"check-circle"],"f058","M76.5 76.5C126.4 26.5 197 0 280 0S433.6 26.5 483.5 76.5 560 197 560 280 533.5 433.6 483.5 483.5 363 560 280 560 126.4 533.5 76.5 483.5 0 363 0 280 26.5 126.4 76.5 76.5zm333 141.4c12.1-9.7 14-27.3 4.4-39.4s-27.3-14-39.4-4.4c-52.5 42-100.2 111.8-123.8 149.3-15.3-20.1-39.5-48.3-67.2-66.8-12.9-8.6-30.3-5.1-38.8 7.8s-5.1 30.3 7.8 38.8c28.9 19.3 55.6 55.9 65.6 70.7 7.4 11 19.9 18 33.8 18 14.4 0 27.6-7.6 34.9-19.9 14.4-24.5 67.2-109.7 122.8-154.2z"]},iP=iM,iD={prefix:"fajfr",iconName:"circle-question",icon:[560,560,[62108,"question-circle"],"f059","M280 0C197 0 126.4 26.5 76.5 76.5S0 197 0 280 26.5 433.6 76.5 483.5 197 560 280 560 433.6 533.5 483.5 483.5 560 363 560 280 533.5 126.4 483.5 76.5 363 0 280 0zM238.5 182.5c-8.4 8.4-14.5 21.8-14.5 41.5 0 15.5-12.5 28-28 28s-28-12.5-28-28c0-31.7 10.2-60.3 31-81s49.4-31 81-31 60.3 10.2 81 31 31 49.3 31 81-10.2 60.3-31 81-49.4 31-81 31c-15.5 0-28-12.5-28-28s12.5-28 28-28c19.6 0 33-6.1 41.5-14.5s14.5-21.8 14.5-41.5-6.1-33-14.5-41.5-21.8-14.5-41.5-14.5-33 6.1-41.5 14.5zM280 364a42 42 0 1 1 0 84 42 42 0 1 1 0-84z"]},iI=iD,iz={prefix:"fajfr",iconName:"circle-xmark",icon:[560,560,[61532,"times-circle","xmark-circle"],"f057","M76.5 76.5C126.4 26.5 197 0 280 0S433.6 26.5 483.5 76.5 560 197 560 280 533.5 433.6 483.5 483.5 363 560 280 560 126.4 533.5 76.5 483.5 0 363 0 280 26.5 126.4 76.5 76.5zm139.3 99.7c-10.9-10.9-28.7-10.9-39.6 0s-10.9 28.7 0 39.6l64.2 64.2-64.2 64.2c-10.9 10.9-10.9 28.7 0 39.6s28.7 10.9 39.6 0l64.2-64.2 64.2 64.2c10.9 10.9 28.7 10.9 39.6 0s10.9-28.7 0-39.6l-64.2-64.2 64.2-64.2c10.9-10.9 10.9-28.7 0-39.6s-28.7-10.9-39.6 0l-64.2 64.2-64.2-64.2z"]},iL=iz,iF=iz,iR={prefix:"fajfr",iconName:"comment",icon:[560,560,[61669,128489],"f075","M280 0c-91.8 0-162.5 20.5-210.4 61.8-48.7 41.9-69.6 101.4-69.6 169.2 0 51.3 11.9 98.1 39.3 136.2 27.3 38.1 68.3 65 121.7 80.1-3.8 16.1-10.9 30.8-14.8 38.3-4.2 8-6.2 16.8-6.2 25.8 0 26.8 21.7 48.6 48.6 48.6 11.4 0 22.4-4 31.1-11.3l106.8-88.6c76.7-6.6 135.9-30.2 176-71.1 40.3-41.2 57.6-96.2 57.6-158 0-67.9-20.9-127.3-69.6-169.2-48-41.3-118.6-61.8-210.4-61.8z"]},iO={prefix:"fajfr",iconName:"heart",icon:[560,560,[9829,10084,61578,128153,128154,128155,128156,128420,129293,129294,129505],"f004","M280 87.2C308.8 47 357.4 28 406 28 450.5 28 489.6 42.3 517.7 70.3S560 137.5 560 182c0 82.1-40.3 154.4-85.3 209.9-45.3 55.8-97.7 97.5-127.2 119-20.2 14.7-44 21.1-67.4 21.1s-47.2-6.5-67.4-21.1C183 489.4 130.6 447.7 85.3 391.9 40.3 336.4 0 264.1 0 182 0 137.5 14.3 98.4 42.3 70.3S109.5 28 154 28c48.6 0 97.2 19 126 59.2z"]},iB={prefix:"fajfr",iconName:"house",icon:[560,560,[63498,63500,127968,"home","home-alt","home-lg-alt"],"f015","M273 58.6c4.3-3.5 9.7-3.5 13.9 0 29.6 24.3 116.3 92.8 230.6 161.4 13.3 8 30.5 3.7 38.4-9.6s3.7-30.5-9.6-38.4C435.2 105.3 350.9 38.5 322.5 15.3 310.6 5.6 295.7 0 280 0s-30.6 5.6-42.5 15.3C209.2 38.5 124.8 105.3 13.6 172 .3 179.9-4 197.1 4 210.4S29.2 228 42.4 220C156.7 151.4 243.4 82.9 273 58.6zM297.3 138c44.2 33.7 111.2 81.8 191.5 130 8.7 5.2 15.2 13.9 15.2 24l0 43.9c0 35.6-1.7 65.9-7.2 91.2-5.5 25.6-15.2 47.8-32.5 65.1s-39.5 27-65.1 32.5c-25.3 5.5-55.7 7.2-91.2 7.2l-56 0c-35.6 0-65.9-1.7-91.2-7.2-25.6-5.5-47.8-15.2-65.1-32.5s-27-39.5-32.5-65.1C57.7 401.9 56 371.6 56 336l0-43.9c0-10.1 6.6-18.8 15.2-24 80.3-48.2 147.3-96.3 191.5-130 10.2-7.8 24.4-7.8 34.6 0zM224 448.5c0 15.1 11.9 27.4 27 27.5l58 0c15.1 0 27-12.4 27-27.5l0-84.5c0-30.9-25.1-56-56-56s-56 25.1-56 56l0 84.5z"]},ij=iB,iN=iB,i$=iB,iV={prefix:"fajfr",iconName:"magnifying-glass",icon:[560,560,[128269,"search"],"f002","M196 0C138.6 0 89 18.4 53.7 53.7S0 138.6 0 196 18.4 303 53.7 338.3 138.6 392 196 392 303 373.6 338.3 338.3 392 253.4 392 196 373.6 89 338.3 53.7 253.4 0 196 0zM168 196c0 15.5-12.5 28-28 28s-28-12.5-28-28c0-23.1 7.5-44.7 23.4-60.6S172.9 112 196 112c15.5 0 28 12.5 28 28s-12.5 28-28 28c-11.1 0-17.5 3.4-21 7s-7 10-7 21zM426 327.9c7.3-1.6 14.9-.2 21.1 3.9l67 43.3c28.6 18.5 45.9 50.3 45.9 84.4 0 55.5-45 100.5-100.5 100.5-34.1 0-65.9-17.3-84.4-45.9l-43.3-67c-4-6.2-5.4-13.8-3.9-21.1s6-13.6 12.2-17.6c13.5-8.6 26.1-18.8 37.8-30.4s21.8-24.3 30.4-37.8c4-6.3 10.4-10.7 17.6-12.2z"]},iU=iV,iG={prefix:"fajfr",iconName:"pause",icon:[560,560,[9208],"f04c","M79.5 35.9c18.4-6.9 39.6-7.9 60.6-7.9 20.8 0 41.8 .9 59.4 8.3 20.5 8.6 33.2 24.3 40.6 45.5 6.7 19.3 9.4 44.5 10.7 75.3 3.5 81 3.5 164.7 0 245.7-1.3 30.8-4 56-10.7 75.3-7.4 21.2-20.1 36.9-40.6 45.5-17.6 7.4-38.6 8.3-59.4 8.3-21.1 0-42.3-1-60.6-7.9-20.5-7.7-35.4-22-45.3-43.3-9.1-19.7-13.8-45.3-16.5-76.7-7-81.6-7-166.6 0-248.1 2.7-31.4 7.4-57 16.5-76.7 9.9-21.4 24.8-35.6 45.3-43.3zM420.1 28c-20.8 0-41.8 .9-59.4 8.3-20.5 8.6-33.2 24.3-40.6 45.5-6.7 19.3-9.4 44.5-10.7 75.3-3.5 81-3.5 164.7 0 245.7 1.3 30.8 4 56 10.7 75.3 7.4 21.2 20.1 36.9 40.6 45.5 17.6 7.4 38.6 8.3 59.4 8.3 21.1 0 42.3-1 60.6-7.9 20.5-7.7 35.4-22 45.3-43.3 9.1-19.7 13.8-45.3 16.5-76.7 7-81.6 7-166.6 0-248.1-2.7-31.4-7.4-57-16.5-76.7-9.9-21.4-24.8-35.6-45.3-43.3-18.4-6.9-39.6-7.9-60.6-7.9z"]},iq={prefix:"fajfr",iconName:"play",icon:[560,560,[9654],"f04b","M560 280c0-24.6-8.7-49.6-27.6-68.2-28-27.6-84.1-77.2-168.4-125.8S208.7 13.5 170.9 3.1C145.3-4 119.3 1 98 13.3s-38.6 32.3-45.2 58c-9.9 38-24.8 111.4-24.8 208.7 0 91.7 10.8 160.6 18.7 198.9 6.1 29.3 25.1 52.7 49.4 66.7 22.6 13 50.1 18.3 77.2 10.7 38.4-10.8 108.2-34.6 190.8-82.3 84.3-48.6 140.4-98.2 168.4-125.8 18.9-18.6 27.6-43.6 27.6-68.2z"]},iZ={prefix:"fajfr",iconName:"quote-left",icon:[504,560,[8220,"quote-left-alt"],"f10d","M0 434c0 27.8 4.3 55.2 23.5 74.5S70.2 532 98 532l28 0c27.8 0 55.2-4.3 74.5-23.5S224 461.8 224 434l0-140c0-27.8-4.3-55.2-23.5-74.5S153.8 196 126 196l-28 0c-14 0-27.8 1.1-40.6 4.6 4.1-33.9 17.1-60.4 35.9-79.3 23-23 57.4-37.3 102.7-37.3 15.5 0 28-12.5 28-28s-12.5-28-28-28C138.6 28 89 46.4 53.7 81.7S0 166.6 0 224L0 434zm280 0c0 27.8 4.3 55.2 23.5 74.5S350.2 532 378 532l28 0c27.8 0 55.2-4.3 74.5-23.5S504 461.8 504 434l0-140c0-27.8-4.3-55.2-23.5-74.5S433.8 196 406 196l-28 0c-14 0-27.8 1.1-40.6 4.6 4.1-33.9 17.1-60.4 35.9-79.3 23-23 57.4-37.3 102.7-37.3 15.5 0 28-12.5 28-28s-12.5-28-28-28c-57.4 0-107 18.4-142.3 53.7S280 166.6 280 224l0 210z"]},iH=iZ,iW={prefix:"fajfr",iconName:"star",icon:[616,560,[11088,61446],"f005","M308.2-28c-22.4 0-44.3 11.4-56.1 32.1-13.5 23.6-36.6 67.5-55.1 121.1-.2 .7-.9 1.2-1.7 1.2-56.7 1.1-105.6 9.5-132.2 15-23.3 4.9-40.9 22.1-47.8 43.4s-2.8 45.6 13.2 63.3c18.3 20.1 52.9 55.7 98.1 89.9 .6 .4 .8 1.3 .6 2-16.5 54.2-23.6 103.3-26.6 130.4-2.6 23.7 8.4 45.7 26.5 58.9s42.5 16.8 64.2 7c24.8-11.2 69.3-33.1 115.8-65.6 .6-.4 1.5-.4 2.1 0 46.5 32.4 91 54.4 115.8 65.6 21.7 9.8 46.1 6.2 64.2-7s29.1-35.2 26.5-58.9c-3-27-10.1-76.2-26.6-130.4-.2-.7 .1-1.5 .6-2 45.2-34.2 79.9-69.7 98.1-89.9 16-17.6 20.1-41.9 13.2-63.3s-24.5-38.6-47.8-43.4c-26.6-5.5-75.5-13.9-132.2-15-.7 0-1.4-.5-1.7-1.2-18.5-53.5-41.6-97.5-55.1-121.1-11.8-20.7-33.6-32.1-56.1-32.1z"]},iX={prefix:"fak",iconName:"arrow-down",icon:[512,512,[],"e01c","M477.9 314.5c0 15.1-5.2 30.2-15.8 42.2-22.6 25.5-97.2 105.9-179.1 148.7-8.7 4.5-17.9 6.6-26.9 6.6s-18.3-2.1-26.9-6.6c-82-42.9-156.6-123.4-179.2-148.7-10.6-11.9-15.8-27.1-15.8-42.1 0-29.6 20.5-56.9 51.8-62.3 26.9-4.6 74.1-11.1 136.9-12.9l.1-205.3C222.9 15.2 238.1 0 257 0s34.1 15.2 34.1 34.1l0 205.3c62.2 1.8 108.5 8.2 135.1 12.8 31.2 5.5 51.7 32.8 51.7 62.3zM256.1 442.4c62.9-34.4 123.1-95.9 149.1-124.5-29.9-4.8-80.7-10.7-148.1-10.7-67.8 0-119.6 6.1-149.9 10.9 26.1 28.6 86.2 9
20.1 149 124.3z"]},iY={prefix:"fak",iconName:"arrow-left",icon:[512,512,[],"e01d","M197.5 477.9c-15.1 0-30.2-5.2-42.2-15.8-25.5-22.6-105.9-97.2-148.7-179.1-4.5-8.7-6.6-17.9-6.6-26.9s2.1-18.3 6.6-26.9c42.9-82 123.4-156.6 148.7-179.2 11.9-10.6 27.1-15.8 42.1-15.8 29.6 0 56.9 20.5 62.3 51.8 4.6 26.9 11.1 74.1 12.9 136.9l205.3 .1c18.9 0 34.1 15.2 34.1 34.1s-15.2 34.1-34.1 34.1l-205.3 0c-1.8 62.2-8.2 108.5-12.8 135.1-5.5 31.2-32.8 51.7-62.3 51.7zM69.6 256.1c34.4 62.9 95.9 123.1 124.5 149.1 4.8-29.9 10.7-80.7 10.7-148.1 0-67.8-6.1-119.6-10.8-149.9-28.6 26.1-90.1 86.2-124.3 149z"]},iK={prefix:"fak",iconName:"arrow-right",icon:[512,512,[],"e01e","M314.5 34.1c15.1 0 30.2 5.2 42.2 15.8 25.5 22.6 105.9 97.2 148.7 179.1 4.5 8.7 6.6 17.9 6.6 26.9s-2.1 18.3-6.6 26.9c-42.9 82-123.4 156.6-148.7 179.2-11.9 10.6-27.1 15.8-42.1 15.8-29.6 0-56.9-20.5-62.3-51.8-4.6-26.9-11.1-74.1-12.9-136.9l-205.3-.1C15.2 289.1 0 273.9 0 255s15.2-34.1 34.1-34.1l205.3 0c1.8-62.2 8.2-108.5 12.8-135.1 5.5-31.2 32.8-51.7 62.3-51.7zM442.4 255.9c-34.4-62.9-95.9-123.1-124.5-149.1-4.8 29.9-10.7 8
20.7-10.7 148.1 0 67.8 6.1 119.6 10.9 149.9 28.6-26.1 90.1-86.2 124.3-149z"]},iJ={prefix:"fak",iconName:"arrow-up",icon:[512,512,[],"e01f","M34.1 197.5c0-15.1 5.2-30.2 15.8-42.2 22.6-25.5 97.2-105.9 179.1-148.7 8.7-4.5 17.9-6.6 26.9-6.6s18.3 2.1 26.9 6.6c82 42.9 156.6 123.4 179.2 148.7 10.6 11.9 15.8 27.1 15.8 42.1 0 29.6-20.5 56.9-51.8 62.3-26.9 4.6-74.1 11.1-136.9 12.9l-.1 205.3c0 18.9-15.2 34.1-34.1 34.1s-34.1-15.2-34.1-34.1l0-205.3c-62.2-1.8-108.5-8.2-135.1-12.8-31.2-5.5-51.7-32.8-51.7-62.3zM255.9 69.6c-62.9 34.4-123.1 95.9-149.1 124.5 29.9 4.8 80.7 10.7 148.1 10.7 67.8 0 119.6-6.1 149.9-10.8-26.1-28.6-86.2-90.1-149-124.3z"]},iQ={prefix:"fak",iconName:"babysits",icon:[512,512,[],"e010","M0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0zm469.3 0a213.3 213.3 0 1 0 -426.7 0 213.3 213.3 0 1 0 426.7 0zM119.5 371.4c-7.4-23.2-11.9-46.3-12.7-70.9-.5-13.1 1.2-26.1 5-38.7 13-44.2 53.6-68.6 98.4-57.4 41 10.7 53.4 50.8 58.5 88 4.4 25.2 17.6 52.9 42.9 60.8 29.3 8.2 54.8-8.2 66.2-35.7 6.5-14.1 6.8-29.6 6.6-45.4-.1-9.3 12.7-11.6 15.8-2.9 14.1 37.7-1.3 83.6-36.1 104.3-39 22.1-85.6 8.2-108.2-30.1-8.8-14.2-14-29.5-17.1-45.4-3-16.7-6.8-36.9-16.9-49.6-10.6-14-29.7-16.6-45.9-12.9-22.8 5.1-35.2 28.2-39.5 50.3-4.3 26.7-1.5 54 .6 81.6 1.2 11-14 14.5-17.6 4l0 0zm69.6-184.2c22 0 39.8-18 39.8-40.3s-17.8-40.3-39.8-40.3-39.8 18-39.8 40.3 17.8 40.3 39.8 40.3zm137.1 142c16.8 0 30.4-13.8 30.4-30.8s-13.6-30.8-30.4-30.8-30.4 13.8-30.4 30.8 13.6 30.8 30.4 30.8z"]},i1={prefix:"fak",iconName:"badge-check",icon:[512,512,[],"e00f","M74.7 74.7c49-49 96-21.3 96-21.3s10.7-53.3 85.3-53.3 85.3 53.3 85.3 53.3 49.8-24.9 96 21.3 21.3 96 21.3 96 53.3 18.5 53.3 85.3-53.3 85.3-53.3 85.3 28.1 46.7-21.3 96-94.9 21.3-94.9 21.3-11.7 53.3-86.4 53.3-85.3-53.3-85.3-53.3-48.9 25.9-96-21.3-21.3-95.5-21.3-95.5-53.3-13.2-53.3-85.9 53.3-85.3 53.3-85.3-27.7-47 21.3-96zM374.4 199.2c11.1-8.9 12.8-25 4-36s-25-12.8-36-4c-48 38.4-91.6 102.2-113.2 136.5-14-18.4-36.1-44.2-61.4-61.1-11.8-7.9-27.7-4.7-35.5 7.1s-4.7 27.7 7.1 35.5c26.4 17.6 50.8 51.1 60 64.6 6.8 10.1 18.2 16.5 30.9 16.5 13.2 0 25.2-6.9 31.9-18.2 13.2-22.4 61.4-100.3 112.3-141l-.1 .1z"]},i0={prefix:"fak",iconName:"briefcase-medical",icon:[512,512,[],"e00b","M213.3 68.3l85.3 0c16.8 0 21.3 6.4 21.3 17.1l0 29.9-128 0 0-29.9c0-10.7 5.4-17.1 21.3-17.1zM144 76.1l0 39.1-64.6 0c-40.5 0-51.2 9.2-63.1 20.9S0 162.1 0 204.2l0 203c0 31.3 .7 45.5 16.3 62.6s36.4 20.9 63.1 20.9l368.6 0c18.9 0 35.9-8.1 47.7-20.9 10.2-11.1 16.3-25.7 16.3-41.7l0-229.5c0-41.7-8.2-56-21.3-67.5-11.3-9.9-26.7-16-64-16l-58.7 0 0-39.1c0-14.9-6.1-28.4-16-38.3-10.2-10.2-24.3-16.5-40-16.5l-112 0c-15.7 0-30.9 6.3-41 16.5-9.9 9.9-15 23.4-15 38.3zm24 86l269.3 0c15.2 0 26.7 8.9 26.7 26.1l0 225.9c0 14-8.4 29.6-26.7 29.6l-357.9 0c-13.6 0-31.4-8.5-31.4-29.6l0-218.2c0-18.2 15.3-33.8 31.4-33.8l88.6 0zm56 88.7l0 20.9-21.3 0c-10.7 0-34.7 2.8-34.7 31.3s24 31.3 34.7 31.3l21.3 0 0 20.9c0 10.4 3.4 33.9 32 33.9s32-23.5 32-33.9l0-20.9 21.3 0c10.7 0 34.7-4.9 34.7-31.3s-24-31.3-34.7-31.3l-21.3 0 0-20.9c0-10.4-4.7-33.9-32-33.9s-32 23.5-32 33.9z"]},i2={prefix:"fak",iconName:"calendar-circle-check",icon:[512,512,[],"e012","M169.2 24.3C169.2 10.8 158.5 0 145.1 0s-24.2 10.8-24.2 24.3l0 26.1c-31.5 2.9-57.6 9.6-77.3 24.5-31.1 23.5-40.2 61.6-42.7 108.9-1.4 25.7 17.8 47.2 42.7 49.7 35.8 3.6 101.9 9.1 174.2 9.1s138.2-5.5 174.2-9.1c24.9-2.5 44-24 42.7-49.7-2.5-47.3-11.7-85.4-42.7-108.9-19.8-14.9-45.8-21.7-77.3-24.5l-.2-26.1C314.3 10.8 303.5 0 290.1 0S266 10.8 266 24.3l0 24.3-96.7 0 0-24.3zM120.9 99.1l0 22.2c0 13.4 10.8 24.3 24.2 24.3s24.2-10.8 24.2-24.3l0-24.3 96.7 0 0 24.3c0 13.4 10.8 24.3 24.2 24.3s24.2-10.8 24.2-24.3l0-22.2c24.2 2.5 38.8 7.4 48.2 14.5 12.5 9.4 21 27.2 23.5 71.6-35.1 3.6-99 8.8-168.5 8.8s-133.2-5.3-168.4-8.8c2.5-44.4 11.1-62.3 23.5-71.6 9.5-7.1 24.1-12 48.2-14.5l.1 0zm48.4 313.2c-29.7 0-51.9-1.6-68.6-5.1-16.4-3.6-26-8.7-32.2-15.1s-11.5-15.8-15-32.3c-3.6-16.7-5.1-39-5.1-68.8 0-13.4-10.8-24.3-24.2-24.3S0 277.6 0 291c0 30.8 1.5 57.1 6.2 79 4.7 22.2 13.1 41.4 28.1 56.4s34.1 23.4 56.2 28.2c21.8 4.8 48.1 6.2 78.8 6.2l74 0c-11.3-18.7-13.2-29.4-15.5-48.5l-58.4 0zM291 291c22.8-22.9 55.1-35 93-35s70.2 12.1 93 35 35 55.1 35 93-12.1 70.2-35 93-55.1 35-93 35-70.2-12.1-93-35-35-55.1-35-93 12.1-70.2 35-93zm152.2 64.6c5.5-4.4 6.4-12.5 2-18s-12.5-6.4-18-2c-24 19.2-45.8 51.1-
256.6 68.3-7-9.2-18.1-22.1-30.7-30.5-5.9-3.9-13.8-2.3-17.7 3.6s-2.3 13.9 3.6 17.7c13.2 8.8 25.4 25.6 30 32.3 3.4 5 9.1 8.2 15.5 8.2 6.6 0 12.6-3.5 16-9.1 6.6-11.2 30.7-50.2 56.1-70.5l0 0z"]},i3={prefix:"fak",iconName:"calendar-circle-plus",icon:[640,512,[],"e00e","M213-34.5C213-50.8 200.5-64 184.9-64s-28.1 13.2-28.1 29.5l0 31.7c-36.7 3.5-67.1 11.7-90 29.8-36.2 28.5-46.8 74.8-49.8 132.3-1.6 31.3 20.7 57.4 49.7 60.4 41.7 4.4 118.6 11.1 202.8 11.1s160.9-6.6 202.8-11.1c29-3.1 51.3-29.2 49.7-60.4-2.9-57.5-13.6-103.8-49.8-132.3-23-18.1-53.3-26.3-90-29.8l-.2-31.7c0-16.3-12.6-29.5-28.1-29.5s-28.2 13.2-28.2 29.5l0 29.5-112.6 0 0-29.5zM156.7 56.4l0 26.9c0 16.3 12.6 29.5 28.1 29.5S213 99.7 213 83.4l0-29.5 112.6 0 0 29.5c0 16.3 12.6 29.5 28.2 29.5s28.1-13.2 28.1-29.5l0-26.9c28.1 3.1 45.1 8.9 56.1 17.6 14.6 11.5 24.4 33.1 27.3 87.1-40.9 4.3-115.2 10.7-196.1 10.7s-155.1-6.4-196-10.7c2.9-54 12.9-75.7 27.3-87.1 11.1-8.6 28-14.5 56.1-17.6l.1 0zM330.1 437.1l-117 0c-34.6 0-60.4-1.9-79.8-6.2-19.1-4.3-30.3-10.6-37.5-18.3s-13.4-19.3-17.5-39.3c-4.2-20.3-5.9-47.4-5.9-83.6 0-16.3-12.6-29.5-28.1-29.5S16 273.4 16 289.7c0 37.5 1.7 69.4 7.2 96 5.5 26.9 15.3 50.3 32.7 68.5s39.7 28.4 65.4 34.2c25.4 5.8 56 7.6 91.7 7.6l112.6 0c4.9 0 9.7 0 14.4-.1-8-13.3-11.8-41.9-9.9-58.8zM497.3 309.3c-37.5 0-69.5 12.6-92.1 36.4s-34.6 57.4-34.6 96.9 12 73.1 34.6 96.9 54.5 36.4 92.1 36.4 69.5-12.6 92.1-36.4 34.6-57.4 34.6-96.9-12-73.1-34.6-96.9-54.5-36.4-92.1-36.4zm12.7 80l0 40 38 0c7 0 12.7 6 12.7 13.3S555 456 548 456l-38 0 0 40c0 7.4-5.7 13.3-12.7 13.3s-12.7-6-12.7-13.3l0-40-38 0c-7 0-12.7-6-12.7-13.3s5.7-13.3 12.7-13.3l38 0 0-40c0-7.4 5.7-13.3 12.7-13.3s12.7 6 12.7 13.3z"]},i5={prefix:"fak",iconName:"check",icon:[512,512,[],"e01b","M435.4 68.8c17.6-14.1 43.3-11.2 57.1 6.4s11.1 43.1-6.2 57.4l-9.7 8c-99.7 85.5-191.9 236.3-217.4 280.1-11.4 19.5-32.1 31.5-54.7 31.5-21.8 0-41.4-11.1-53-28.5l-8.3-12.1c-22.6-32.1-66.7-89.3-114.6-121.6l-.1 0-3.3-2.5c-15.8-13-19.4-36.4-7.9-54.1 12.2-18.8 37.4-24 56.2-11.4 49.2 33.2 92.5 84.2 120.3 121.1l9.3 12.3 8.2-13.1c43.1-69.3 129.5-197 224-273.5z"]},i4={prefix:"fak",iconName:"check-double",icon:[512,512,[],"e01a","M435.4 91.4c17.6-13.8 43.3-11 57.1 6.3s11.1 42.2-6.2 56.1l-9.7 7.9c-99.7 83.6-191.9 231.2-217.4 274.1-11.4 19-32.1 30.8-54.7 30.8-21.8 0-41.4-10.9-53-27.9l-8.3-11.9c-22.6-31.5-66.7-87.3-114.6-119l-.1 0-3.3-2.4c-15.8-12.8-19.4-35.6-7.9-53 12.2-18.4 37.4-23.5 56.2-11.1 49.2 32.5 92.5 82.4 120.3 118.5l9.3 12.1 8.2-12.9c43.1-67.8 129.5-192.8 224-267.6zM299.7 52.7c15.3-11.6 37.6-9.3 49.9 5.4 12.1 14.7 9.8 36-5.4 47.8l-5 4-.4 .3c-50.6 41.3-98.1 114.7-111.6 136.7l0 .1c-8.6 13.8-24.1 22.4-41 22.4-16.2 0-30.9-7.8-39.6-20.1l-4.4-6.1c-11.9-16-34-42.8-57-57.5l-.4-.3 0 0-.1-.1-1.7-1.2 0 0-.3-.2-.3-.2-.2-.1c-13.8-11-16.9-30.4-6.9-45.1 10.8-15.7 32.8-19.9 49.1-9.5l0 0c23.9 15.3 44.9 37.2 59.8 55 24.5-36.2 67.6-94.2 115.1-130.8l.2-.2 .2-.2z"]},i6={prefix:"fak",iconName:"circle-exclamation",icon:[640,512,[],"e004","M64 256c0-81.1 25.7-144.5 68.6-187.4S238.9 0 320 0 464.5 25.7 507.4 68.6 576 174.9 576 256 550.3 400.5 507.4 443.4 401.1 512 320 512 175.5 486.3 132.6 443.4 64 337.1 64 256zm0 0C64 174.9 89.7 111.5 132.6 68.6 89.6 111.4 64 174.9 64 256zM320 0C401.1 0 464.5 25.7 507.4 68.6 464.6 25.6 401.1 0 320 0zM576 256c0 81.1-25.7 144.5-68.6 187.4 43-42.9 68.6-106.3 68.6-187.4zM320 512c-81.1 0-144.5-25.7-187.4-68.6 42.9 43 106.3 68.6 187.4 68.6zM64 256c0 81.1 25.7 144.5 68.6 187.4 43 42.9 106.3 68.6 187.4 68.6s144.5-25.7 187.4-68.6C550.3 400.5 576 337.1 576 256S550.3 111.5 507.4 68.6C464.5 25.7 401.1 0 320 0S175.5 25.7 132.6 68.6C89.7 111.5 64 174.9 64 256zM320-64C225.1-64 144.5-33.7 87.4 23.4S0 161.1 0 256 30.3 431.5 87.4 488.6 225.1 576 320 576 495.5 545.7 552.6 488.6 640 350.9 640 256 609.7 80.5 552.6 23.4 414.9-64 320-64zM64 256c0-81.1 25.7-144.5 68.6-187.4S238.9 0 320 0 464.5 25.7 507.4 68.6 576 174.9 576 256 550.3 400.5 507.4 443.4 401.1 512 320 512 175.5 486.3 132.6 443.4 64 337.1 64 256zM368 368a48 48 0 1 1 -96 0 48 48 0 1 1 96 0zM64 256C64 174.9 89.7 111.5 132.6 68.6 89.6 111.4 64 174.9 64 256zM320 0C401.1 0 464.5 25.7 507.4 68.6 464.6 25.6 401.1 0 320 0zM576 256c0 81.1-25.7 144.5-68.6 187.4 43-42.9 68.6-106.3 68.6-187.4zM320 512c-81.1 0-144.5-25.7-187.4-68.6 42.9 43 106.3 68.6 187.4 68.6zM352 96c0-17.7-14.3-32-32-32s-33.9 14.3-33.9 32l0 144c0 17.7 16.2 32 33.9 32s32-14.3 32-32l0-144z"]}
2,i8={prefix:"fak",iconName:"credit-card-clock",icon:[512,512,[],"e020","M57.7 294.5c-3.3-15.4-4.3-33.9-4.3-55.6l0-34.1c0-21.7 1-40.2 4.3-55.6 3.3-15.6 9.2-29.1 19.6-39.7s23.8-16.5 39.3-19.8c15.3-3.4 33.5-4.4 55-4.4l101.3 0c21.5 0 39.7 1 55 4.4 15.4 3.4 28.8 9.3 39.3 19.8s16.3 24.1 19.6 39.7c3.3 15.4 4.3 34 4.3 55.6l0 34.1c-13.1-3.2-20.6-2.9-33.8 0 0-13.8-.1-41.4-.1-41.4-21.1 2.4-70.9 7.3-135.1 7.3s-114-4.9-135.1-7.3c0 0-.1 27.6-.1 41.4 0 21 1.1 36.6 3.6 48.4 2.5 11.6 6.1 18.3 10.5 22.7s11 8.1 22.5 10.6c11.6 2.6 27.1 3.6 47.9 3.6l101.3 0c-1.8 12.8-1.6 20.3 0 34.1l-101.3 0c-21.5 0-39.7-1-55-4.4-15.4-3.4-28.8-9.3-39.3-19.8S61 310.1 57.7 294.5zm296-138.1c-2.5-11.6-6.1-18.3-10.5-22.7s-11-8.1-22.5-10.6c-11.6-2.6-27.1-3.6-47.9-3.6l-101.3 0c-20.7 0-36.3 1.1-47.9 3.6-11.5 2.5-18.2 6.2-22.5 10.6s-8 11.2-10.4 22.7c-.5 2.2-.9 4.5-1.3 6.9 44 5.2 88.5 7.3 132.8 7.3s88.7-2.1 132.8-7.3l.1 0c-.4-2.4-.8-4.8-1.3-6.9zM239.1 256c-9.3 0-16.9 7.6-16.9 17.1s7.5 17.1 16.9 17.1l50.7 0c6.7-15.3 12.4-22 23.5-32.8-2-.9-4.2-1.3-6.6-1.3l-67.6 0zm73.7 23.3c15-15.2 36.3-23.3 61.4-23.3s46.3 8.1 61.4 23.3 23.1 36.7 23.1 62-8 46.8-23.1 62-36.3 23.3-61.4 23.3-46.3-8.1-61.4-23.3-23.1-36.7-23.1-62 8-46.8 23.1-62zm69.8 19.4c0-4.7-3.8-8.5-8.4-8.5s-8.4 3.8-8.4 8.5l0 35.6c0 6.8 2.7 13.3 7.4 18.1L393.6 373c3.3 3.3 8.7 3.3 11.9 0s3.3-8.7 0-12.1l-20.4-20.6c-1.6-1.6-2.5-3.8-2.5-6l0-35.6z"]},i7={prefix:"fak",iconName:"document-check",icon:[512,512,[],"e00a","M230.4 25.6C230.4 11.4 241.8 0 256 0l2.2 0c20.2 0 40.8 5.9 57.8 19.1 16.2 12.4 40.6 32.5 66.8 58.8s46.4 50.7 58.8 66.8c13.3 17.1 19.2 37.7 19.2 57.9l0 2.2c0 14.2-11.4 25.6-25.6 25.6l-140.8 0c-35.4 0-64-28.6-64-64l0-140.8zm51.2 31.8l0 109c0 7 5.8 12.8 12.8 12.8l109 0c-.7-1.1-1.5-2.2-2.2-3.2-11.4-14.9-30.1-37.6-54.4-61.9s-47-43-61.9-54.4c-1-.8-2.1-1.6-3.2-2.2l-.1-.1zM191.7 25.5c2 14-7.7 27-21.7 29-32.6 4.7-45.8 14-53.6 27.6-9.6 16.8-14.1 45.3-14.1 97.1l0 153.6c0 31.5 1.6 54.9 5.4 72.6 3.7 17.4 9.2 27.5 15.9 34.1s16.7 12.2 34.1 15.9c17.6 3.8 41.1 5.4 72.6 5.4l51.2 0c31.5 0 54.9-1.6 72.6-5.4 17.4-3.7 27.5-9.2 34.1-15.9s12.2-16.7 15.9-34.1c3.8-17.6 5.4-41.1 5.4-72.6l0-38.4c0-14.2 11.4-25.6 25.6-25.6s25.6 11.4 25.6 25.6l0 38.4c0 32.5-1.6 60.3-6.6 83.4-5 23.4-13.9 43.7-29.7 59.5s-36.1 24.7-59.5 29.7c-23.1 5-50.9 6.6-83.4 6.6l-51.2 0c-32.5 0-60.3-1.6-83.4-6.6-23.4-5-43.7-13.9-59.5-29.7s-24.7-36.1-29.7-59.5c-5-23.1-6.6-50.8-6.6-83.4l0-153.6c0-51.2 3.7-92.5 20.8-122.3 18.7-33 50.4-47.3 90.8-53 14-2 27 7.8 29 21.8l0-.1zm171.2 270c9.6-7.7 11.1-21.6 3.5-31.2s-21.6-11.1-31.1-3.5c-41.5 33.3-71.3 81.9-89.9 111.6-12.1-15.9-31.2-38.3-53.1-52.9-10.2-6.8-23.9-4-30.7 6.2s-4 24 6.2 30.7c22.8 15.3 43.9 44.3 51.8 56 5.8 8.7 15.7 14.3 26.7 14.3 11.4 0 21.8-6 27.6-15.8 11.4-19.4 45.1-80.1 89.1-115.4z"]},i9={prefix:"fak",iconName:"expired",icon:[512,512,[],"e006","M217.6 0C153.1 0 98.2 20.6 59.5 59.5S0 153.1 0 217.6 20.6 337 59.5 375.7 153.1 435.2 217.6 435.2c6 0 11.9-.2 17.7-.5-7.6-16-8.3-25.6-6.8-43.2-3.6 .2-7.2 .2-10.9 .2-55.2 0-98.2-17.5-127.5-46.6s-46.6-72.3-46.6-127.5 17.5-98.2 46.6-127.5 72.3-46.6 127.5-46.6 98.2 17.5 127.5 46.6 46.6 72.3 46.6 127.5c0 6.3-.2 12.5-.7 18.5 17.5-2.7 27.4-1.5 43.2 6.2 .7-8.1 1-16.3 1-24.7 0-64.5-20.6-119.4-59.5-158.1S282.1 0 217.6 0zM167.7 136.9c-8.5-8.5-22.3-8.5-30.8 0s-8.5 22.3 0 30.8l49.9 49.9-49.9 49.9c-8.5 8.5-8.5 22.3 0 30.8s22.3 8.5 30.8 0l49.9-49.9 46 46c7.4-15.6 13.5-22.8 30.8-30.8l-46-46 49.9-49.9c8.5-8.5 8.5-22.3 0-30.8s-22.3-8.5-30.8 0l-49.9 49.9-49.9-49.9zM291 291c22.8-22.9 55.1-35 93-35s70.2 12.1 93 35 35 55.1 35 93-12.1 70.2-35 93-55.1 35-93 35-70.2-12.1-93-35-35-55.1-35-93 12.1-70.2 35-93zm105.8 29c0-7.1-5.7-12.8-12.8-12.8s-12.8 5.7-12.8 12.8l0 53.4c0 10.2 4.1 19.9 11.2 27.2l30.9 30.9c5 5 13.1 5 18.1 0s5-13.1 0-18.1l-30.9-30.9c-2.4-2.4-3.7-5.7-3.7-9l0-53.4z"]},re={prefix:"fak",iconName:"file-circle-plus",icon:[640,512,[],"e014","M196-35.2C196-51.1 208.5-64 224-64l2.4 0c22.1 0 44.6 6.7 63.2 21.5 17.7 14 44.4 36.6 73.1 66.1s50.7 57 64.3 75.2c14.5 19.2 21 42.4 21 65.1l0 2.5c0 15.9-12.5 28.8-28 28.8l-154 0c-38.7 0-70-32.2-70-72l0-158.4zM252 .6l0 122.6c0 7.9 6.3 14.4 14 14.4l119.2 0c-.8-1.2-1.6-2.5-2.4-3.6-12.5-16.8-32.9-42.3-59.5-69.6S271.9 16 255.6 3.2c-1.1-.9-2.3-1.7-3.5-2.5L252 .6zM153.7-35.3C155.9-19.6 145.3-5 130-2.7 94.3 2.5 79.9 13 71.4 28.4 60.9 47.3 56 79.4 56 137.6l0 172.8c0 35.4 1.8 61.8 5.9 81.7 4.1 19.5 10.1 31 17.4 38.4s18.3 13.7 37.3 17.9c19.3 4.3 45 6.1 79.4 6.1l56 0c10.9 0 20.9-.2 30-.6 .2 17.4 7 40.5 16.2 56.8-14.3 1-29.7 1.4-46.3 1.4l-56 0c-35.6 0-65.9-1.7-91.2-7.4-25.6-
25.7-47.8-15.6-65.1-33.4s-27-40.6-32.5-67C1.7 378.2 0 347 0 310.4L0 137.6C0 80 4.1 33.5 22.7 0 43.2-37.2 77.8-53.2 122-59.7 137.3-61.9 151.5-50.9 153.7-35.2l0-.1zM480 256c-47.4 0-87.8 15.1-116.3 43.7S320 368.6 320 416 335.1 503.8 363.7 532.3 432.6 576 480 576 567.8 560.9 596.3 532.3 640 463.4 640 416 624.9 328.2 596.3 299.7 527.4 256 480 256zm16 96l0 48 48 0c8.9 0 16 7.1 16 16s-7.1 16-16 16l-48 0 0 48c0 8.9-7.1 16-16 16s-16-7.1-16-16l0-48-48 0c-8.9 0-16-7.1-16-16s7.1-16 16-16l48 0 0-48c0-8.9 7.1-16 16-16s16 7.1 16 16z"]},rt={prefix:"fak",iconName:"hourglass-clock",icon:[640,512,[],"e013","M53.8-6.8c4.4 75.2 38.3 124.6 82.5 161.9 11.3 9.5 28.1 8 37.5-3.4s7.9-28.4-3.3-37.9C137.1 85.6 112.7 51.4 107.6-1.9 145.6 1 192.7 3.5 240 3.5S334.2 1 372.3-1.9c-4 41.9-19.9 71.7-41.9 95.8-26.8 29.3-63.1 51-103.8 74.9l-.1 0-.2 .1c-41.2 24.3-83.2 49.1-115.9 84.8-31.5 34.4-53.1 78.1-56.6 137.2-10.1 1.1-20.4 2.1-30.5 3.4-14.6 1.8-24.9 15.3-23.1 30.1s15.1 25.2 29.8 23.4c69.5-8.7 140-13.3 209.9-13.3 16 0 32 .2 48 .7-5.3-16-4.2-38.7 0-53.9-15.7-.5-31.8-.8-48-.8-47.2 0-94.3 2.6-132.3 5.5 4-41.9 19.9-71.7 41.9-95.8 29.4-32.2 68.4-54.1 105.5-76l.1 0c38.8-22.9 81.7-48.2 114.4-83.9 31.5-34.4 53.1-78.1 56.6-137.2 10.2-1.1 20.3-2.1 30.5-3.4 14.6-1.8 24.9-15.3 23.1-30.1s-15.1-25.2-29.8-23.4c-69.5 8.7-140 13.3-209.9 13.3S99.5-55 30-63.7C15.3-65.5 2-55 .2-40.3S8.8-12.1 23.3-10.2C33.4-9 43.6-7.9 53.8-6.8zM343.7 229c-11.3-9.5-28.1-8-37.5 3.4s-7.9 28.4 3.3 37.9c7.4 6.3 14.4 12.9 20.9 19.9 8.2-12.9 28.6-31.1 39.1-36.5-8.1-8.8-16.7-17-25.8-24.7zm20 70.7C392.2 271.1 432.6 256 480 256s87.8 15.1 116.3 43.7 43.7 68.9 43.7 116.3-15.1 87.8-43.7 116.3-68.9 43.7-116.3 43.7-87.8-15.1-116.3-43.7-43.7-68.9-43.7-116.3 15.1-87.8 43.7-116.3zM496 336c0-8.9-7.1-16-16-16s-16 7.1-16 16l0 66.7c0 12.7 5.1 24.9 14.1 33.9l38.6 38.6c6.2 6.2 16.4 6.2 22.6 0s6.2-16.4 0-22.6l-38.6-38.6c-3-3-4.7-7.1-4.7-11.3l0-66.7z"]},ri={prefix:"fak",iconName:"rocket",icon:[512,512,[],"e011","M491 24.6C489.1 15.5 482 8.4 472.9 6.6 429.7-2 363.5-7.5 299.4 25.5 261 45.4 225.2 78.1 196 129l-77.9 0c-16.2 0-31.2 8.4-39.6 22.4L27.8 236c-12.3 20.5 2.5 46.6 26.3 46.6l99.4 0c33.9 0 61.4 27.6 61.4 61.4l0 99.4c0 23.9 26 38.6 46.6 26.3l84.7-50.8c13.9-8.4 22.4-23.3 22.4-39.6l0-77.9c51-29.2 83.7-65 103.5-103.4 33-64 27.6-130.3 18.9-173.5zM322.5 324l0 55.5-61.4 36.9 0-71.5c22.4-6.1 42.8-13.1 61.4-20.7l0-.1zm-71-24.4c-10.8-23.6-29.8-42.7-53.5-53.5 29.4-105.5 76.7-156 122.6-179.7 44.1-22.8 90.8-22.8 127.9-17.4 5.6 37.1 5.4 83.8-17.4 127.9-23.7 45.9-74.2 93.2-179.7 122.6l.1 .1zm-98.6-63.1l-71.5 0 36.9-61.4 55.5 0c-7.7 18.6-14.6 39.1-20.7 61.4l-.1 0zm238.8-92.2a38.4 38.4 0 1 0 -76.8 0 38.4 38.4 0 1 0 76.8 0zM146.2 460.8c30.2-30.2 30.2-79.2 0-109.4s-79.2-30.2-109.4 0c-30 30-36 88.3-36.8 121.3-.4 14 10.8 25.2 24.9 24.9 33.1-.8 91.3-6.7 121.3-36.8zm-39-30.7c-9.7 9.7-27.4 12.5-39.6 13.2-7.7 .5-13.7-5.7-13.3-13.3 .7-12.3 3.6-30 13.2-39.6 10.9-10.9 28.8-10.9 39.7 0s10.9 28.8 0 39.7l.1 .1z"]},rr={prefix:"fak",iconName:"shield-check",icon:[512,512,[],"e00c","M234.9 507.2c-24.9-9.4-77.4-34.8-123.8-93.3-46.6-58.7-85.5-148.9-85.5-285.1 0-24 11.4-48.1 33.7-61.5 43.5-26.3 91.1-43 139.9-56.1 18.3-4.9 38-10.2 56.8-10.2s38.5 5.3 56.8 10.2c48.8 13.2 96.4 29.8 139.9 56.1 22.2 13.5 33.7 37.6 33.7 61.5 0 136.1-38.9 226.4-85.5 285.1-46.4 58.4-98.9 83.8-123.8 93.3-13.7 5.2-28.5 5.2-42.2 0zM85.9 111c-5.2 3.2-9.1 9.6-9.1 17.8 0 125.7 35.6 204.4 74.3 253.3 39 49.2 82.8 70 101.9 77.3 2 .7 3.9 .7 5.9 0 19-7.2 62.8-28.1 101.9-77.3 38.8-48.8 74.3-127.4 74.3-253.3 0-8.2-3.8-14.6-9.1-17.8-40-24.2-83.2-39.1-116.9-47.9-17.5-4.6-35.2-8.4-53.1-10.9-17.9 2.5-35.7 6.3-53.1 10.9-33.7 8.9-77.1 23.7-116.9 47.9l-.1 0zm268.5 94.4c9.6-7.7 11.1-21.6 3.5-31.2-12.4-14.3-25.9-8.3-31.1-3.5-41.5 33.3-71.3 81.9-89.9 111.6-12.1-15.9-31.2-38.3-53.1-52.9-10.2-6.8-23.9-4-30.7 6.2s-4 24 6.2 30.7c22.8 15.3 43.9 44.3 51.8 56 5.8 8.7 15.7 14.3 26.7 14.3 11.4 0 21.8-6 27.6-15.8 11.4-19.4 45.1-80.1 89.1-115.4z"]},ra={prefix:"fak",iconName:"star-half",icon:[512,512,[],"e018","M207.5 47.8c10.2-17.1 29.1-26.4 48.6-26.4s38.3 9.4 48.5 26.4c11.7 19.4 33.1 56.7 49.1 100.7 49 .9 91.3 7.8 114.3 12.4 20.1 4 35.4 18.2 41.3 35.7s2.4 37.6-11.4 52.1c-15.8 16.6-45.7 45.9-84.8 74.1 14.3 44.6 19.9 86.7 22.4 109 2.2 19.5-7.3 37.6-22.9 48.5s-36.7 13.8-55.5 5.8c-21.4-9.2-60.8-27.3-101-54-40.2 26.7-79.5 44.8-101 54-7.3 3.1-14.9 4.6-22.4 4.6-11.9 0-23.5-3.7-33.1-10.4-15.6-10.9-25.2-29.1-23-48.5 2.6-22.2 8.2-64.3 22.4-109-39.1-28.2-69.1-57.4-84.8-74.1-13.8-14.5-17.4-34.5-11.4-52.1S24 164.8 44.1 160.9c23-4.5 65.3-11.4 114.3-12.4 16-44.1 37.4-81.3 49.1-100.7zM376.9 444.1c4.8 2.1 11-2.3 10.5-7.2-2.3-20.5-8-58-21.2-99-6.1-19.1 1-39.8 17.6-51.8 35.9-25.9 63.6-53 78.1-68.2 3.5-3.6 1-10.7-4-11.7-21.2-4.2-60.3-10.6-105.4-11.4-20.9-.4-39.4-13.2-46.2-32-14.7-40.5-33.2-74.1-43.9-91.9-1.3-2.1-3.8-3.2-6.4-3.2l0 318.3
2c10 0 20 2.9 28.7 8.6 36.9 24.5 72.5 41.3 92.2 49.8z"]},rn={prefix:"fak",iconName:"user-pen",icon:[512,512,[],"e00d","M192 0c-34.5 0-65.1 11.3-87 33.7s-33 53.6-33 88.9 11.1 66.5 33 88.9 52.5 33.7 87 33.7 65.1-11.3 87-33.7 33-53.6 33-88.9-11.1-66.5-33-88.9-52.5-33.7-87-33.7zM120 122.7c0-24.7 7.5-42.6 18.9-54.2s28.9-19.4 53.1-19.4 41.7 7.7 53.1 19.4 18.9 29.5 18.9 54.2-7.5 42.6-18.9 54.2-28.9 19.4-53.1 19.4-41.7-7.7-53.1-19.4-18.9-29.5-18.9-54.2zm48 171.7c-30.5 0-56.5 1.5-78.2 6.3-21.9 4.8-41 13.3-55.8 28.5s-23.1 34.6-27.9 57c-4.7 22.2-6.2 48.7-6.2 79.9 0 13.6 10.7 24.5 24 24.5s24-11 24-24.5c0-30.1 1.5-52.7 5.1-69.6 3.5-16.6 8.7-26.4 14.9-32.7s15.7-11.7 32-15.2c16.5-3.7 38.6-5.2 68.1-5.2l48 0c29.5 0 51.5 1.6 68.1 5.2 5.6 1.2 10.5 2.7 14.6 4.3L336 317.6c-12.2-8.2-26.3-13.5-41.8-16.9-21.7-4.8-47.7-6.3-78.2-6.3l-48 0zm245.9-24.2c10.7-9.3 24.4-14.2 38.3-14.2 33 0 59.8 26.8 59.8 59.8 0 13.9-4.8 27.6-14.2 38.3-4 4.6-9 10.2-14.8 16.7-5.5 6.2-14.8 7.3-21.5 2.5-11.1-7.9-24.8-18.7-36.4-30.3s-22.4-25.4-30.3-36.4c-4.8-6.7-3.7-16 2.5-21.5 6.4-5.8 12.1-10.8 16.7-14.8zm-40 51.2c-3.3-4.7-10.1-5.4-14.2-1.4-4.9 4.8-10 9.8-15.2 14.9-29.8 29.8-54.1 57.1-66.7 71.5-7.7 8.9-12.5 19.7-14.3 31l-7.3 45.9c-.2 1.3-.3 2.6-.3 3.8 0 13.6 11.1 24.7 24.7 24.7 1.3 0 2.6-.1 3.8-.3l45.9-7.3c11.4-1.8 22.2-6.6 31-14.3 14.4-12.5 41.7-36.8 71.5-66.7 5.2-5.2 10.2-10.2 15-15.2 4-4.2 3.3-10.9-1.4-14.2-11.6-8.3-26.6-20-39.6-33s-24.7-28-33-39.6l0 0z"]},ro={prefix:"fakd",iconName:"envelope",icon:[512,512,[],"e017",["M19.3 146.5c-4.7 7.9-2.4 17.7 4.3 24.1 10.5 9.9 22.5 20.6 35.6 31.3 50.3 41 113.7 78.1 174.7 78.1 54.9 0 111.6-30 159.1-65.9-39.1-17.6-66.4-56.7-66.4-102.1 0-5.3 .4-10.5 1.1-15.6-7.6-.3-15.5-.4-23.8-.4L163.6 96c-29.6 0-55 1.4-76.1 5.9-21.4 4.5-39.9 12.5-54.3 26.7-5.4 5.4-10 11.4-13.9 17.9z","M6.1 377.9c-4.6-20.8-6-45.7-6-74.9 0-5.9 0-11.8 0-17.8 0-11.9-.1-23.7 0-35.6 .1-14.7 17.7-21.7 29.2-12.3 52.2 42.4 126.4 88.6 204.6 88.6s152.3-46.2 204.4-88.6c11.5-9.4 29.1-2.4 29.2 12.3 .1 11.8 .1 23.7 0 35.6 0 5.9 0 11.8 0 17.8 0 29.2-1.4 54.1-6 74.9-4.6 21-12.7 39.3-27.1 53.5s-33 22.2-54.3 26.7C359 462.6 333.7 464 304 464l-140.3 0c-29.6 0-55-1.4-76.1-5.9-21.4-4.5-39.9-12.5-54.3-26.7S10.7 398.9 6.1 377.9zM512 120c0 44.2-36.1 80-80.6 80-5.8 0-11.6-.6-17-1.8-36.3-7.8-63.6-39.8-63.6-78.2 0-4.5 .4-9 1.1-13.3 6.4-37.8 39.6-66.7 79.5-66.7 44.5 0 80.6 35.8 80.6 80z"]]},rs={fab:{},far:{},fas:{},fajr:{},fajdr:{},fajfr:{},fak:{},fakd:{}},rl=[];function rc(t){Object.keys(t).forEach(function(i){if("prefix"!==i){var r=t[i];r.icon[2].forEach(function(t){"string"==typeof t&&(rs[r.prefix][t]=r)}),rs[r.prefix][r.iconName]=r,rl.push(r)}})}rc(a),rc(n),rc(o),rc(s),rc(l),rc(c),rc(u),rc(h)},12956(t,i,r){function a(t,i){(null==i||i>t.length)&&(i=t.length);for(var r=0,a=Array(i);r<i;r++)a[r]=t[r];return a}function n(t,i){var r="u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=f(t))||i&&t&&"number"==typeof t.length){r&&(t=r);var a=0,n=function(){};return{s:n,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:n}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){l=!0,o=t},f:function(){try{s||null==r.return||r.return()}finally{if(l)throw o}}}}function o(t,i,r){return(i=h(i))in t?Object.defineProperty(t,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[i]=r,t}function s(t,i){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);i&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,a)}return r}function l(t){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?s(Object(r),!0).forEach(function(i){o(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function c(t,i){return function(t){if(Array.isArray(t))return t}(t)||function(t,i){var r=null==t?null:"u">typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var a,n,o,s,l=[],c=!0,u=!1;try{if(o=(r=r.call(t)).next,0===i){if(Object(r)!==r)return;c=!1}else for(;!(c=(a=o.call(r)).done)&&(l.push(a.value),l.length!==i);c=!0);}catch(t){u=!0,n=t}
2finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw n}}return l}}(t,i)||f(t,i)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("u">typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||f(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t){var i=function(t,i){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var a=r.call(t,i||"default");if("object"!=typeof a)return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==typeof i?i:i+""}function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,i){if(t){if("string"==typeof t)return a(t,i);var r=({}).toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,i):void 0}}var p,m,g,y,_=function(){},v={},b={},x=null,w={mark:_,measure:_};try{"u">typeof window&&(v=window),"u">typeof document&&(b=document),"u">typeof MutationObserver&&(x=MutationObserver),"u">typeof performance&&(w=performance)}catch(t){}var k=(v.navigator||{}).userAgent,T=void 0===k?"":k,S=v,A=b,C=x,E=w;S.document;var M=!!A.documentElement&&!!A.head&&"function"==typeof A.addEventListener&&"function"==typeof A.createElement,P=~T.indexOf("MSIE")||~T.indexOf("Trident/"),D={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},"slab-duo":{"fa-regular":"regular",fasldr:"regular"},"slab-press-duo":{"fa-regular":"regular",faslpdr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},vellum:{"fa-solid":"solid",favs:"solid"},pixel:{"fa-regular":"regular",fapr:"regular"},mosaic:{"fa-solid":"solid",fams:"solid"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},graphite:{"fa-thin":"thin",fagt:"thin"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},I=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-graphite","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-slab-press-duo","fa-slab-duo","fa-mosaic","fa-pixel","fa-vellum","fa-utility","fa-utility-duo","fa-utility-fill"],z="classic",F="duotone",R="sharp",O="sharp-duotone",B="chisel",j="etch",N="graphite",$="jelly",V="jelly-duo",U="jelly-fill",G="mosaic",q="notdog",Z="notdog-duo",H="pixel",W="slab",X="slab-duo",Y="slab-press",K="slab-press-duo",J="thumbprint",Q="utility",ee="utility-duo",et="utility-fill",ei="vellum",er="whiteboard",ea=[z,F,R,O,B,j,N,$,V,U,G,q,Z,H,W,X,Y,K,J,Q,ee,et,ei,er];o(o(o(o(o(o(o(o(o(o(g={},z,"Classic"),F,"Duotone"),R,"Sharp"),O,"Sharp Duotone"),B,"Chisel"),j,"Etch"),N,"Graphite"),$,"Jelly"),V,"Jelly Duo"),U,"Jelly Fill"),o(o(o(o(o(o(o(o(o(o(g,G,"Mosaic"),q,"Notdog"),Z,"Notdog Duo"),H,"Pixel"),W,"Slab"),X,"Slab Duo"),Y,"Slab Press"),K,"Slab Press Duo"),J,"Thumbprint"),Q,"
2Utility"),o(o(o(o(g,ee,"Utility Duo"),et,"Utility Fill"),ei,"Vellum"),er,"Whiteboard");var en=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["graphite",{defaultShortPrefixId:"fagt",defaultStyleId:"thin",styleIds:["thin"],futureStyleIds:[],defaultFontWeight:100}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["mosaic",{defaultShortPrefixId:"fams",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["pixel",{defaultShortPrefixId:"fapr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-duo",{defaultShortPrefixId:"fasldr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press-duo",{defaultShortPrefixId:"faslpdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["vellum",{defaultShortPrefixId:"favs",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),eo=["fak","fa-kit","fakd","fa-kit-duotone"];o(o({},"kit","Kit"),"kit-duotone","Kit Duotone");o(o(o(o(o(o(o(o(o(o(y={},"classic","Classic"),"duotone","Duotone"),"sharp","Sharp"),"sharp-duotone","Sharp Duotone"),"chisel","Chisel"),"etch","Etch"),"graphite","Graphite"),"jelly","Jelly"),"jelly-duo","Jelly Duo"),"jelly-fill","Jelly Fill"),o(o(o(o(o(o(o(o(o(o(y,"mosaic","Mosaic"),"notdog","Notdog"),"notdog-duo","Notdog Duo"),"pixel","Pixel"),"slab","Slab"),"slab-duo","Slab Duo"),"slab-press","Slab Press"),"slab-press-duo","Slab Press Duo"),"thumbprint","Thumbprint"),"utility","Utility"),o(o(o(o(y,"utility-duo","Utility Duo"),"utility-fill","Utility Fill"),"vellum","Vellum"),"whiteboard","Whiteboard"),o(o({},"kit","Kit"),"kit-duotone","Kit Duotone");var es={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},"slab-duo":{fasldr:"fa-regular"},"slab-press-duo":{faslpdr:"fa-regular"},pixel:{fapr:"fa-regular"},mosaic:{fams:"fa-solid"},vellum:{favs:"fa-solid"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},graphite:{fagt:"fa-thin"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},el=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fasldr","faslpdr","fapr","fams","favs","fawsb","fatl","fans","fands","faes","fagt","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-graphite","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-slab-press-duo","fa-slab-duo","fa-mosaic","fa-pixel","fa-vellum","fa-utility","fa-utility-duo","fa-utility-fill"],["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"]),ec=[1,2,3,4,5,6,7,8,9,10],eu=ec.concat([11,12,13,14,15,16,17,18,19,20]),eh=[].concat(u(["classic","duotone","sharp","sharp-duotone","slab","slab-press","slab-duo","slab-press-duo","pixel","mosaic","vellum","
2whiteboard","thumbprint","notdog","notdog-duo","etch","graphite","jelly","jelly-fill","jelly-duo","chisel","utility","utility-duo","utility-fill"]),["solid","regular","light","thin","duotone","brands","semibold"],["aw","fw","pull-left","pull-right"],["2xs","xs","sm","lg","xl","2xl","beat","beat-fade","border","bounce","buzz","canvas-square","canvas-roomy","fade","flip-360","flip-both","flip-horizontal","flip-vertical","flip","float","inverse","jello","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","spin-snap","spin-snap-4","spin-snap-8","stack-1x","stack-2x","stack","swing","ul","wag","width-auto","width-fixed","duotone-group","swap-opacity","primary","secondary"]).concat(ec.map(function(t){return"".concat(t,"x")})).concat(eu.map(function(t){return"w-".concat(t)})),ed="___FONT_AWESOME___",ef="svg-inline--fa",ep="data-fa-i2svg",em="data-fa-pseudo-element",eg="data-prefix",ey="data-icon",e_="fontawesome-i2svg",ev=["HTML","HEAD","STYLE","SCRIPT"],eb=["::before","::after",":before",":after"],ex=function(){try{return!0}catch(t){return!1}}();function ew(t){return new Proxy(t,{get:function(t,i){return i in t?t[i]:t[z]}})}var ek=l({},D);ek[z]=l(l(l(l({},{"fa-duotone":"duotone"}),D[z]),{fak:"kit","fa-kit":"kit"}),{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"});var eT=ew(ek),eS=l({},{chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},graphite:{thin:"fagt"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},mosaic:{solid:"fams"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},pixel:{regular:"fapr"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-duo":{regular:"fasldr"},"slab-press":{regular:"faslpr"},"slab-press-duo":{regular:"faslpdr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},vellum:{solid:"favs"},whiteboard:{semibold:"fawsb"}});eS[z]=l(l(l(l({},{duotone:"fad"}),eS[z]),{kit:"fak"}),{"kit-duotone":"fakd"});var eA=ew(eS),eC=l({},es);eC[z]=l(l({},eC[z]),{fak:"fa-kit"});var eE=ew(eC),eM=l({},{classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},"slab-duo":{"fa-regular":"fasldr"},"slab-press-duo":{"fa-regular":"faslpdr"},pixel:{"fa-regular":"fapr"},mosaic:{"fa-solid":"fams"},vellum:{"fa-solid":"favs"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},graphite:{"fa-thin":"fagt"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}});eM[z]=l(l({},eM[z]),{"fa-kit":"fak"}),ew(eM);var eP=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|gt|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt|sldr|slpdr|pr|ms|vs)?[\-\ ]/,eD="fa-layers-text",eI=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Graphite|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Slab Duo|Slab Press Duo|Pixel|Mosaic|Vellum|Whiteboard)?.*/i;ew(l({},{classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},"slab-duo":{400:"fasldr"},"slab-press-duo":{400:"faslpdr"},vellum:{900:"favs"},mosaic:{900:"fams"},pixel:{400:"fapr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},graphite:{100:"fagt"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}}));
2var ez=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],eL=[].concat(u(["kit"]),u(eh)),eF=S.FontAwesomeConfig||{};A&&"function"==typeof A.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(t){var i,r=c(t,2),a=r[0],n=r[1],o=""===(i=function(t){var i=A.querySelector("script["+t+"]");if(i)return i.getAttribute(t)}(a))||"false"!==i&&("true"===i||i);null!=o&&(eF[n]=o)});var eR={styleDefault:"solid",familyDefault:z,cssPrefix:"fa",replacementClass:ef,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};eF.familyPrefix&&(eF.cssPrefix=eF.familyPrefix);var eO=l(l({},eR),eF);eO.autoReplaceSvg||(eO.observeMutations=!1);var eB={};Object.keys(eR).forEach(function(t){Object.defineProperty(eB,t,{enumerable:!0,set:function(i){eO[t]=i,ej.forEach(function(t){return t(eB)})},get:function(){return eO[t]}})}),Object.defineProperty(eB,"familyPrefix",{enumerable:!0,set:function(t){eO.cssPrefix=t,ej.forEach(function(t){return t(eB)})},get:function(){return eO.cssPrefix}}),S.FontAwesomeConfig=eB;var ej=[],eN={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function e$(){for(var t=12,i="";t-- >0;)i+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return i}function eV(t){for(var i=[],r=(t||[]).length>>>0;r--;)i[r]=t[r];return i}function eU(t){return t.classList?eV(t.classList):(t.getAttribute("class")||"").split(" ").filter(function(t){return t})}function eG(t){return"".concat(t).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function eq(t){return Object.keys(t||{}).reduce(function(i,r){return i+"".concat(r,": ").concat(t[r].trim(),";")},"")}function eZ(t){return t.size!==eN.size||t.x!==eN.x||t.y!==eN.y||t.rotate!==eN.rotate||t.flipX||t.flipY}function eH(){var t=eB.cssPrefix,i=eB.replacementClass,r=
vendor: 13,970 bytes, line 2
2":root, :host {\n  --fa-font-solid: normal 900 1em/1 'Font Awesome 7 Free';\n  --fa-font-regular: normal 400 1em/1 'Font Awesome 7 Free';\n  --fa-font-light: normal 300 1em/1 'Font Awesome 7 Pro';\n  --fa-font-thin: normal 100 1em/1 'Font Awesome 7 Pro';\n  --fa-font-duotone: normal 900 1em/1 'Font Awesome 7 Duotone';\n  --fa-font-duotone-regular: normal 400 1em/1 'Font Awesome 7 Duotone';\n  --fa-font-duotone-light: normal 300 1em/1 'Font Awesome 7 Duotone';\n  --fa-font-duotone-thin: normal 100 1em/1 'Font Awesome 7 Duotone';\n  --fa-font-brands: normal 400 1em/1 'Font Awesome 7 Brands';\n  --fa-font-sharp-solid: normal 900 1em/1 'Font Awesome 7 Sharp';\n  --fa-font-sharp-regular: normal 400 1em/1 'Font Awesome 7 Sharp';\n  --fa-font-sharp-light: normal 300 1em/1 'Font Awesome 7 Sharp';\n  --fa-font-sharp-thin: normal 100 1em/1 'Font Awesome 7 Sharp';\n  --fa-font-sharp-duotone-solid: normal 900 1em/1 'Font Awesome 7 Sharp Duotone';\n  --fa-font-sharp-duotone-regular: normal 400 1em/1 'Font Awesome 7 Sharp Duotone';\n  --fa-font-sharp-duotone-light: normal 300 1em/1 'Font Awesome 7 Sharp Duotone';\n  --fa-font-sharp-duotone-thin: normal 100 1em/1 'Font Awesome 7 Sharp Duotone';\n  --fa-font-slab-regular: normal 400 1em/1 'Font Awesome 7 Slab';\n  --fa-font-slab-press-regular: normal 400 1em/1 'Font Awesome 7 Slab Press';\n  --fa-font-slab-duo-regular: normal 400 1em/1 'Font Awesome 7 Slab Duo';\n  --fa-font-slab-press-duo-regular: normal 400 1em/1 'Font Awesome 7 Slab Press Duo';\n  --fa-font-pixel-regular: normal 400 1em/1 'Font Awesome 7 Pixel';\n  --fa-font-mosaic-solid: normal 900 1em/1 'Font Awesome 7 Mosaic';\n  --fa-font-vellum-solid: normal 900 1em/1 'Font Awesome 7 Vellum';\n  --fa-font-whiteboard-semibold: normal 600 1em/1 'Font Awesome 7 Whiteboard';\n  --fa-font-thumbprint-light: normal 300 1em/1 'Font Awesome 7 Thumbprint';\n  --fa-font-notdog-solid: normal 900 1em/1 'Font Awesome 7 Notdog';\n  --fa-font-notdog-duo-solid: normal 900 1em/1 'Font Awesome 7 Notdog Duo';\n  --fa-font-etch-solid: normal 900 1em/1 'Font Awesome 7 Etch';\n  --fa-font-graphite-thin: normal 100 1em/1 'Font Awesome 7 Graphite';\n  --fa-font-jelly-regular: normal 400 1em/1 'Font Awesome 7 Jelly';\n  --fa-font-jelly-fill-regular: normal 400 1em/1 'Font Awesome 7 Jelly Fill';\n  --fa-font-jelly-duo-regular: normal 400 1em/1 'Font Awesome 7 Jelly Duo';\n  --fa-font-chisel-regular: normal 400 1em/1 'Font Awesome 7 Chisel';\n  --fa-font-utility-semibold: normal 600 1em/1 'Font Awesome 7 Utility';\n  --fa-font-utility-duo-semibold: normal 600 1em/1 'Font Awesome 7 Utility Duo';\n  --fa-font-utility-fill-semibold: normal 600 1em/1 'Font Awesome 7 Utility Fill';\n}\n\n.svg-inline--fa {\n  box-sizing: content-box;\n  display: var(--fa-display, inline-block);\n  height: 1em;\n  overflow: visible;\n  vertical-align: -0.125em;\n  width: var(--fa-width, 1.25em);\n}\n.svg-inline--fa.fa-2xs {\n  vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n  vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n  vertical-align: -0.0714285714em;\n}\n.svg-inline--fa.fa-lg {\n  vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n  vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n  vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left,\n.svg-inline--fa .fa-pull-start {\n  float: inline-start;\n  margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-pull-right,\n.svg-inline--fa .fa-pull-end {\n  float: inline-end;\n  margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n.svg-inline--fa.fa-li {\n  width: var(--fa-li-width, 2em);\n  inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n  inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */\n}\n\n.fa-layers-counter, .fa-layers-text {\n  display: inline-block;\n  position: absolute;\n  text-align: center;\n}\n\n.fa-layers {\n  display: inline-block;\n  height: 1em;\n  position: relative;\n  text-align: center;\n  vertical-align: -0.125em;\n  width: var(--fa-width, 1.25em);\n}\n.fa-layers .svg-inline--fa {\n  inset: 0;\n  margin: auto;\n  position: absolute;\n  transform-origin: center center;\n}\n\n.fa-layers-text {\n  left: 50%;\n  top: 50%;\n  transform: translate(-50%, -50%);\n  transform-origin: center center;\n}\n\n.fa-layers-counter {\n  background-color: var(--fa-counter-background-color, #ff253a);\n  border-radius: var(--fa-counter-border-radius, 1em);\n  box-sizing: border-box;\n  color: var(--fa-inverse, #fff);\n  line-height: var(--fa-counter-line-height, 1);\n  max-width: var(--fa-counter-max-width, 5em);\n  min-width: var(--fa-counter-min-width, 1.5em);\n  overflow: hidden;\n  padding: var(--fa-counter-padding, 0.25em 0.5em);\n  right: var(--fa-right, 0);\n  text-overflow: ellipsis;\n  top: var(--fa-top, 0);\n  transform: scale(var(--fa-counter-scale, 0.25));\n  transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n  bottom: var(--fa-bottom, 0);\n  right: var(--fa-right, 0);\n  top: auto;\n  transform: scale(var(--fa-layers-scale, 0.25));\n  transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n  bottom: var(--fa-bottom, 0);\n  left: var(--fa-left, 0);\n  right: auto;\n  top: auto;\n  transform: scale(var(--fa-layers-scale, 0.25));\n  transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n  top: var(--fa-top, 0);\n  right: var(--fa-right, 0);\n  transform: scale(var(--fa-layers-scale, 0.25));\n  transform-origin: top right;\n}\n\n.fa-layers-top-left {\n  left: var(--fa-left, 0);\n  right: auto;\n  top: var(--fa-top, 0);\n  transform: scale(var(--fa-layers-scale, 0.25));\n  transform-origin: top left;\n}\n\n.fa-1x {\n  font-size: 1em;\n}\n\n.fa-2x {\n  font-size: 2em;\n}\n\n.fa-3x {\n  font-size: 3em;\n}\n\n.fa-4x {\n  font-size: 4em;\n}\n\n.fa-5x {\n  font-size: 5em;\n}\n\n.fa-6x {\n  font-size: 6em;\n}\n\n.fa-7x {\n  font-size: 7em;\n}\n\n.fa-8x {\n  font-size: 8em;\n}\n\n.fa-9x {\n  font-size: 9em;\n}\n\n.fa-10x {\n  font-size: 10em;\n}\n\n.fa-2xs {\n  font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */\n  line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */\n  vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-xs {\n  font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */\n  line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */\n  vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-sm {\n  font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */\n  line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */\n  vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-lg {\n  font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */\n  line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */\n  vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-xl {\n  font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */\n  line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */\n  vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-2xl {\n  font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */\n  line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */\n  vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */\n}\n\n.fa-width-auto {\n  --fa-width: auto;\n}\n\n.fa-fw,\n.fa-width-fixed {\n  --fa-width: 1.25em;\n}\n\n.fa-canvas-square {\n  padding-block: 0.125em;\n  margin-block-end: -0.125em;\n}\n\n.fa-canvas-roomy {\n  padding-block: 0.25em;\n  padding-inline: 0.125em;\n  margin-block-end: -0.25em;\n  box-sizing: content-box;\n}\n\n.fa-ul {\n  list-style-type: none;\n  margin-inline-start: var(--fa-li-margin, 2.5em);\n  padding-inline-start: 0;\n}\n.fa-ul > li {\n  position: relative;\n}\n\n.fa-li {\n  inset-inline-start: calc(-1 * var(--fa-li-width, 2em));\n  position: absolute;\n  text-align: center;\n  width: var(--fa-li-width, 2em);\n  line-height: inherit;\n}\n\n/* Heads Up: Bordered Icons will not be supported in the future!\n  - This feature will be deprecated in the next major release of Font Awesome (v8)!\n  - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.\n*/\n/* Notes:\n* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)\n* --@{v.$css-prefix}-border-padding =\n  ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment)\n  ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)\n*/\n.fa-border {\n  border-color: var(--fa-border-color, #eee);\n  border-radius: var(--fa-border-radius, 0.1em);\n  border-style: var(--fa-border-style, solid);\n  border-width: var(--fa-border-width, 0.0625em);\n  box-sizing: var(--fa-border-box-sizing, content-box);\n  padding: var(--fa-border-padding, 0.1875em 0.25em);\n}\n\n.fa-pull-left,\n.fa-pull-start {\n  float: inline-start;\n  margin-inline-end: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right,\n.fa-pull-end {\n  float: inline-end;\n  margin-inline-start: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n  animation-name: fa-beat;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n  animation-name: fa-bounce;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n  animation-name: fa-fade;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-beat-fade {\n  animation-name: fa-beat-fade;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-flip {\n  animation-name: fa-flip;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1.5s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-flip-360 {\n  animation-name: fa-flip-360;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n  animation-name: fa-shake;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 0.75s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-spin {\n  animation-name: fa-spin;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 2s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n  --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n  animation-name: fa-spin;\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n.fa-spin-snap {\n  animation-name: fa-spin-snap;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 3s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-snap-4 {\n  animation-name: fa-spin-snap-4;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);
vendor: 20,339 bytes, line 2
2\n  animation-duration: var(--fa-animation-duration, 2.4s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-snap-8 {\n  animation-name: fa-spin-snap-8;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 4s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-buzz {\n  animation-name: fa-buzz;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 0.6s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-wag {\n  animation-name: fa-wag;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 0.9s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, ease-out);\n  transform-origin: bottom center;\n}\n\n.fa-float {\n  animation-name: fa-float;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 3s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, ease-in-out);\n  will-change: transform;\n}\n\n.fa-swing {\n  animation-name: fa-swing;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1.2s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, ease-out);\n  transform-origin: top center;\n}\n\n.fa-jello {\n  animation-name: fa-jello;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 0.9s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, ease-out);\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .fa-beat,\n  .fa-bounce,\n  .fa-fade,\n  .fa-beat-fade,\n  .fa-flip,\n  .fa-flip-360,\n  .fa-pulse,\n  .fa-shake,\n  .fa-spin,\n  .fa-spin-pulse,\n  .fa-buzz,\n  .fa-float,\n  .fa-jello,\n  .fa-spin-snap,\n  .fa-spin-snap-4,\n  .fa-spin-snap-8,\n  .fa-swing,\n  .fa-wag {\n    animation: none !important;\n    transition: none !important;\n  }\n}\n@keyframes fa-beat {\n  0% {\n    transform: scale(1);\n  }\n  25% {\n    transform: scale(calc(1.25 * var(--fa-beat-scale, 1.25)));\n  }\n  45% {\n    transform: scale(calc(1.22 * var(--fa-beat-scale, 1.22)));\n  }\n  65% {\n    transform: scale(calc(1.25 * var(--fa-beat-scale, 1.25)));\n  }\n  90% {\n    transform: scale(1);\n  }\n}\n@keyframes fa-bounce {\n  0% {\n    transform: scale(1, 1) translateY(0);\n    animation-timing-function: var(--fa-animation-timing);\n  }\n  14% {\n    transform: scale(var(--fa-bounce-start-scale-x, 1.06), var(--fa-bounce-start-scale-y, 0.94)) translateY(var(--fa-bounce-anticipation, 3px));\n    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n  }\n  32% {\n    transform: scale(var(--fa-bounce-jump-scale-x, 0.94), var(--fa-bounce-jump-scale-y, 1.12)) translateY(calc(-1 * var(--fa-bounce-height, 0.5em)));\n    animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n  }\n  52% {\n    transform: scale(1, 1) translateY(calc(-1 * var(--fa-bounce-height, 0.5em) * 1.1));\n    animation-timing-function: cubic-bezier(0.5, 0, 1, 0.5);\n  }\n  70% {\n    transform: scale(var(--fa-bounce-land-scale-x, 1.06), var(--fa-bounce-land-scale-y, 0.92)) translateY(0);\n    animation-timing-function: cubic-bezier(0.33, 0.33, 0.66, 1);\n  }\n  85% {\n    transform: scale(0.98, 1.04) translateY(calc(-2px * var(--fa-bounce-rebound, 1)));\n    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);\n  }\n  100% {\n    transform: scale(1, 1) translateY(0);\n  }\n}\n@keyframes fa-fade {\n  0% {\n    opacity: 1;\n    transform: scale(1);\n    animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);\n  }\n  40% {\n    opacity: var(--fa-fade-opacity, 0.4);\n    transform: scale(0.98);\n    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n  }\n  100% {\n    opacity: 1;\n    transform: scale(1);\n  }\n}\n@keyframes fa-beat-fade {\n  0% {\n    opacity: var(--fa-beat-fade-opacity, 0.4);\n    transform: scale(1);\n    animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);\n  }\n  25% {\n    opacity: calc(var(--fa-beat-fade-opacity, 0.4) + 0.4);\n    transform: scale(var(--fa-beat-fade-scale, 1.28));\n    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n  }\n  45% {\n    opacity: 1;\n    transform: scale(var(--fa-beat-fade-scale, 1.25));\n    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  }\n  65% {\n    opacity: calc(var(--fa-beat-fade-opacity, 0.4) + 0.4);\n    transform: scale(var(--fa-beat-fade-scale, 1.28));\n    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n  }\n  100% {\n    opacity: var(--fa-beat-fade-opacity, 0.4);\n    transform: scale(1);\n  }\n}\n@keyframes fa-flip {\n  0% {\n    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);\n    animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);\n  }\n  8% {\n    transform: perspective(2em) scale(var(--fa-flip-anticipation-scale, 0.95)) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);\n    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n  }\n  35% {\n    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.6));\n    animation-timing-function: linear;\n  }\n  65% {\n    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.5));\n    animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n  }\n  92% {\n    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * var(--fa-flip-overshoot, 1.04)));\n    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);\n  }\n  100% {\n    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -360deg));\n  }\n}\n@keyframes fa-flip-360 {\n  0% {\n    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);\n    animation-timing-function: cubic-bezier(0.2, 0, 0.4, 1);\n  }\n  8% {\n    transform: perspective(2em) scale(var(--fa-flip-anticipation-scale, 0.95)) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), 0deg);\n    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n  }\n  50% {\n    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * 0.6));\n    animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n  }\n  80% {\n    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), calc(var(--fa-flip-angle, -360deg) * var(--fa-flip-overshoot, 1.04)));\n    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);\n  }\n  100% {\n    transform: perspective(2em) scale(1) rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -360deg));\n  }\n}\n@keyframes fa-shake {\n  0% {\n    transform: rotate(0deg);\n    animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);\n  }\n  8% {\n    transform: rotate(35deg) translateX(1px);\n    animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n  }\n  20% {\n    transform: rotate(-22deg) translateX(-1px);\n    animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n  }\n  35% {\n    transform: rotate(15deg) translateX(1px);\n    animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n  }\n  50% {\n    transform: rotate(-9deg);\n    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n  }\n  65% {\n    transform: rotate(5deg);\n    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n  }\n  78% {\n    transform: rotate(-3deg);\n    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n  }\n  90% {\n    transform: rotate(1deg);\n    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  }\n  100% {\n    transform: rotate(0deg);\n  }\n}\n@keyframes fa-spin {\n  0% {\n    transform: rotate(0deg);\n  }\n  100% {\n    transform: rotate(360deg);\n  }\n}\n@keyframes fa-spin-snap {\n  0% {\n    transform: rotate(0deg);\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n  }\n  12% {\n    transform: rotate(60deg);\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n  }\n  16.67% {\n    transform: rotate(60deg);\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n  }\n  28.67% {\n    transform: rotate(120deg);\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n  }\n  33.33% {\n    transform: rotate(120deg);\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n  }\n  45.33% {\n    transform: rotate(180deg);\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n  }\n  50% {\n    transform: rotate(180deg);\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n  }\n  62% {\n    transform: rotate(240deg);\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n  }\n  66.67% {\n    transform: rotate(240deg);\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n  }\n  78.67% {\n    transform: rotate(300deg);\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n  }\n  83.33% {\n    transform: rotate(300deg);\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n  }\n  95.33% {\n    transform: rotate(360deg);\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n  }\n  100% {\n    transform: rotate(360deg);\n  }\n}\n@keyframes fa-spin-snap-4 {\n  0% {\n    transform: rotate(0deg);\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n  }\n  15% {\n    transform: rotate(90deg);\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n  }\n  25% {\n    transform: rotate(90deg);\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n  }\n  40% {\n    transform: rotate(180deg);\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n  }\n  50% {\n    transform: rotate(180deg);\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n  }\n  65% {\n    transform: rotate(270deg);\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n  }\n  75% {\n    transform: rotate(270deg);\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n  }\n  90% {\n    transform: rotate(360deg);\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n  }\n  100% {\n    transform: rotate(360deg);\n  }\n}\n@keyframes fa-spin-snap-8 {\n  0% {\n    transform: rotate(0deg);\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n  }\n  9% {\n    transform: rotate(45deg);\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n  }\n  12.5% {\n    transform: rotate(45deg);\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n  }\n  21.5% {\n    transform: rotate(90deg);\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n  }\n  25% {\n    transform: rotate(90deg);\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n  }\n  34% {\n    transform: rotate(135deg);\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n  }\n  37.5% {\n    transform: rotate(135deg);\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n  }\n  46.5% {\n    transform: rotate(180deg);\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n  }\n  50% {\n    transform: rotate(180deg);\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n  }\n  59% {\n    transform: rotate(225deg);\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n  }\n  62.5% {\n    transform: rotate(225deg);\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n  }\n  71.5% {\n    transform: rotate(270deg);\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n  }\n  75% {\n    transform: rotate(270deg);\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n  }\n  84% {\n    transform: rotate(315deg);\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n  }\n  87.5% {\n    transform: rotate(315deg);\n    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n  }\n  96.5% {\n    transform: rotate(360deg);\n    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n  }\n  100% {\n    transform: rotate(360deg);\n  }\n}\n@keyframes fa-buzz {\n  0% {\n    transform: translateX(0) rotate(0deg);\n    animation-timing-function: cubic-bezier(0.1, 0, 0.9, 1);\n  }\n  5% {\n    transform: translateX(var(--fa-buzz-distance, 4px)) rotate(0.5deg);\n  }\n  10% {\n    transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px))) rotate(-0.5deg);\n  }\n  15% {\n    transform: translateX(var(--fa-buzz-distance, 4px)) rotate(0.3deg);\n  }\n  20% {\n    transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px))) rotate(-0.3deg);\n  }\n  25% {\n    transform: translateX(calc(var(--fa-buzz-distance, 4px) * 0.7)) rotate(0.2deg);\n  }\n  30% {\n    transform: translateX(calc(-1 * var(--fa-buzz-distance, 4px) * 0.7)) rotate(-0.2deg);\n  }\n  35% {\n    transform: translateX(calc(var(--fa-buzz-distance, 4px) * 0.4)) rotate(0.1deg);\n  }\n  40% {\n    transform: translateX(0) rotate(0deg);\n  }\n  100% {\n    transform: translateX(0) rotate(0deg);\n  }\n}\n@keyframes fa-wag {\n  0% {\n    transform: rotate(0deg);\n    animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);\n  }\n  12% {\n    transform: rotate(var(--fa-wag-angle, 12deg));\n    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  }\n  24% {\n    transform: rotate(2deg);\n    animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);\n  }\n  36% {\n    transform: rotate(calc(var(--fa-wag-angle, 12deg) * 0.85));\n    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  }\n  48% {\n    transform: rotate(1deg);\n    animation-timing-function: cubic-bezier(0.2, 0, 0.6, 1);\n  }\n  58% {\n    transform: rotate(calc(var(--fa-wag-angle, 12deg) * 0.6));\n    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  }\n  68% {\n    transform: rotate(0deg);\n  }\n  100% {\n    transform: rotate(0deg);\n  }\n}\n@keyframes fa-float {\n  0% {\n    transform: translateY(0) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98));\n    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n  }\n  15% {\n    transform: translateY(calc(-0.4 * var(--fa-float-height, 6px))) translateX(var(--fa-float-drift, 1px)) rotate(var(--fa-float-tilt, 1deg)) scale(1, 1);\n    animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n  }\n  35% {\n    transform: translateY(calc(-1 * var(--fa-float-height, 6px))) translateX(0) rotate(0deg) scale(var(--fa-float-stretch-x, 0.98), var(--fa-float-stretch-y, 1.03));\n    animation-timing-function: cubic-bezier(0.5, 0, 0.5, 0);\n  }\n  50% {\n    transform: translateY(calc(-0.92 * var(--fa-float-height, 6px))) translateX(calc(-0.5 * var(--fa-float-drift, 1px))) rotate(calc(-0.5 * var(--fa-float-tilt, 1deg))) scale(0.995, 1.01);\n    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n  }\n  70% {\n    transform: translateY(calc(-0.3 * var(--fa-float-height, 6px))) translateX(calc(-1 * var(--fa-float-drift, 1px))) rotate(calc(-1 * var(--fa-float-tilt, 1deg))) scale(1, 1);\n    animation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n  }\n  90% {\n    transform: translateY(calc(0.05 * var(--fa-float-height, 6px))) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98));\n    animation-timing-function: cubic-bezier(0.33, 0, 0.66, 1);\n  }\n  100% {\n    transform: translateY(0) translateX(0) rotate(0deg) scale(var(--fa-float-squash-x, 1.02), var(--fa-float-squash-y, 0.98));\n  }\n}\n@keyframes fa-swing {\n  0% {\n    transform: rotate(0deg);\n    animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);\n  }\n  8% {\n    transform: rotate(var(--fa-swing-angle, 22deg));\n    animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n  }\n  18% {\n    transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.85));\n    animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n  }\n  28% {\n    transform: rotate(calc(var(--fa-swing-angle, 22deg) * 0.65));\n    animation-timing-function: cubic-bezier(0.35, 0, 0.65, 1);\n  }\n  38% {\n    transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.45));\n    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n  }\n  48% {\n    transform: rotate(calc(var(--fa-swing-angle, 22deg) * 0.25));\n    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n  }\n  56% {\n    transform: rotate(calc(-1 * var(--fa-swing-angle, 22deg) * 0.1));\n    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n  }\n  64% {\n    transform: rotate(0deg);\n  }\n  100% {\n    transform: rotate(0deg);\n  }\n}\n@keyframes fa-jello {\n  0% {\n    transform: scale(1, 1);\n    animation-timing-function: cubic-bezier(0.2, 0, 0.8, 1);\n  }\n  12% {\n    transform: scale(var(--fa-jello-scale-x, 1.15), calc(2 - var(--fa-jello-scale-x, 1.15)));\n    animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n  }\n  24% {\n    transform: scale(calc(2 - var(--fa-jello-scale-y, 1.12)), var(--fa-jello-scale-y, 1.12));\n    animation-timing-function: cubic-bezier(0.3, 0, 0.7, 1);\n  }\n  36% {\n    transform: scale(calc(1 + (var(--fa-jello-scale-x, 1.15) - 1) * 0.5), calc(2 - (1 + (var(--fa-jello-scale-x, 1.15) - 1) * 0.5)));\n    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n  }\n  48% {\n    transform: scale(calc(2 - (1 + (var(--fa-jello-scale-y, 1.12) - 1) * 0.3)), calc(1 + (var(--fa-jello-scale-y, 1.12) - 1) * 0.3));\n    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n  }\n  58% {\n    transform: scale(1.02, 0.98);\n    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  }\n  68% {\n    transform: scale(1, 1);\n  }\n  100% {\n    transform: scale(1, 1);\n  }\n}\n.fa-rotate-90 {\n  transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n  transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n  transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n  transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n  transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n  transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n  transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.svg-inline--fa .fa-primary {\n  fill: var(--fa-primary-color, currentColor);\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n  fill: var(--fa-secondary-color, currentColor);\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n  fill: black;\n}\n\n.svg-inline--fa.fa-inverse {\n  fill: var(--fa-inverse, #fff);\n}\n\n.fa-stack {\n  display: inline-block;\n  height: 2em;\n  line-height: 2em;\n  position: relative;\n  vertical-align: middle;\n  width: 2.5em;\n}\n\n.fa-inverse {\n  color: var(--fa-inverse, #fff);\n}\n\n.svg-inline--fa.fa-stack-1x {\n  --fa-width: 1.25em;\n  height: 1em;\n  width: var(--fa-width);\n}\n.svg-inline--fa.fa-stack-2x {\n  --fa-width: 2.5em;\n  height: 2em;\n  width: var(--fa-width);\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n  inset: 0;\n  margin: auto;\n  position: absolute;\n  z-index: var(--fa-stack-z-index, auto);\n}";
2if("fa"!==t||i!==ef){var a=RegExp("\\.".concat("fa","\\-"),"g"),n=RegExp("\\--".concat("fa","\\-"),"g"),o=RegExp("\\.".concat(ef),"g");r=r.replace(a,".".concat(t,"-")).replace(n,"--".concat(t,"-")).replace(o,".".concat(i))}return r}var eW=!1;function eX(){eB.autoAddCss&&!eW&&(!function(t){if(t&&M){var i=A.createElement("style");i.setAttribute("type","text/css"),i.innerHTML=t;for(var r=A.head.childNodes,a=null,n=r.length-1;n>-1;n--){var o=r[n];["STYLE","LINK"].indexOf((o.tagName||"").toUpperCase())>-1&&(a=o)}A.head.insertBefore(i,a)}}(eH()),eW=!0)}var eY=S||{};eY[ed]||(eY[ed]={}),eY[ed].styles||(eY[ed].styles={}),eY[ed].hooks||(eY[ed].hooks={}),eY[ed].shims||(eY[ed].shims=[]);var eK=eY[ed],eJ=[],eQ=function(){A.removeEventListener("DOMContentLoaded",eQ),e1=1,eJ.map(function(t){return t()})},e1=!1;function e0(t){var i,r=t.tag,a=t.attributes,n=t.children;return"string"==typeof t?eG(t):"<".concat(r," ").concat(Object.keys((i=void 0===a?{}:a)||{}).reduce(function(t,r){return t+"".concat(r,'="').concat(eG(i[r]),'" ')},"").trim(),">").concat((void 0===n?[]:n).map(e0).join(""),"</").concat(r,">")}function e2(t,i,r){if(t&&t[i]&&t[i][r])return{prefix:i,iconName:r,icon:t[i][r]}}M&&((e1=(A.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(A.readyState))||A.addEventListener("DOMContentLoaded",eQ));var e3=function(t,i,r,a){var n,o,s,l=Object.keys(t),c=l.length,u=void 0!==a?function(t,r,n,o){return i.call(a,t,r,n,o)}:i;for(void 0===r?(n=1,s=t[l[0]]):(n=0,s=r);n<c;n++)s=u(s,t[o=l[n]],o,t);return s};function e5(t){return 1!==u(t).length?null:t.codePointAt(0).toString(16)}function e4(t){return Object.keys(t).reduce(function(i,r){var a=t[r];return a.icon?i[a.iconName]=a.icon:i[r]=a,i},{})}function e6(t,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=r.skipHooks,n=e4(i);"function"!=typeof eK.hooks.addPack||void 0!==a&&a?eK.styles[t]=l(l({},eK.styles[t]||{}),n):eK.hooks.addPack(t,e4(i)),"fas"===t&&e6("fa",i)}
2var e8=eK.styles,e7=eK.shims,e9=Object.keys(eE),te=e9.reduce(function(t,i){return t[i]=Object.keys(eE[i]),t},{}),tt=null,ti={},tr={},ta={},tn={},to={},ts=function(){var t=function(t){return e3(e8,function(i,r,a){return i[a]=e3(r,t,{}),i},{})};ti=t(function(t,i,r){return i[3]&&(t[i[3]]=r),i[2]&&i[2].filter(function(t){return"number"==typeof t}).forEach(function(i){t[i.toString(16)]=r}),t}),tr=t(function(t,i,r){return t[r]=r,i[2]&&i[2].filter(function(t){return"string"==typeof t}).forEach(function(i){t[i]=r}),t}),to=t(function(t,i,r){var a=i[2];return t[r]=r,a.forEach(function(i){t[i]=r}),t});var i="far"in e8||eB.autoFetchSvg,r=e3(e7,function(t,r){var a=r[0],n=r[1],o=r[2];return"far"!==n||i||(n="fas"),"string"==typeof a&&(t.names[a]={prefix:n,iconName:o}),"number"==typeof a&&(t.unicodes[a.toString(16)]={prefix:n,iconName:o}),t},{names:{},unicodes:{}});ta=r.names,tn=r.unicodes,tt=td(eB.styleDefault,{family:eB.familyDefault})};function tl(t,i){return(ti[t]||{})[i]}function tc(t,i){return(to[t]||{})[i]}function tu(t){return ta[t]||{prefix:null,iconName:null}}ej.push(function(t){tt=td(t.styleDefault,{family:eB.familyDefault})}),ts();var th=function(){return{prefix:null,iconName:null,rest:[]}};function td(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.family,a=void 0===r?z:r,n=eT[a][t];if(a===F&&!t)return"fad";var o=eA[a][t]||eA[a][n],s=t in eK.styles?t:null;return o||s||null}function tf(t){return t.sort().filter(function(t,i,r){return r.indexOf(t)===i})}var tp=el.concat(eo);function tm(t){var i,r,a,n,o,s,u,h,d,f,p,m,g,y,_,v,b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},x=b.skipLookups,w=null,k=tf(t.filter(function(t){return tp.includes(t)})),T=tf(t.filter(function(t){return!tp.includes(t)})),S=c(k.filter(function(t){return w=t,!I.includes(t)}),1)[0],A=(g=z,y=e9.reduce(function(t,i){return t[i]="".concat(eB.cssPrefix,"-").concat(i),t},{}),ea.forEach(function(t){(k.includes(y[t])||k.some(function(i){return te[t].includes(i)}))&&(g=t)}),g),C=l(l({},(_=[],v=null,T.forEach(function(t){var i,r,a,n,o=(i=eB.cssPrefix,a=(r=t.split("-"))[0],n=r.slice(1).join("-"),a!==i||""===n||~eL.indexOf(n)?null:n);o?v=o:t&&_.push(t)}),{iconName:v,rest:_})),{},{prefix:td(void 0===S?null:S,{family:A})});return l(l(l({},C),(r=(i={values:t,family:A,styles:e8,config:eB,canonical:C,givenPrefix:w}).values,a=i.family,n=i.canonical,o=i.givenPrefix,s=i.styles,h=void 0===(u=i.config)?{}:u,d=a===F,f=r.includes("fa-duotone")||r.includes("fad"),p="duotone"===h.familyDefault,m="fad"===n.prefix||"fa-duotone"===n.prefix,!d&&(f||p||m)&&(n.prefix="fad"),(r.includes("fa-brands")||r.includes("fab"))&&(n.prefix="fab"),!n.prefix&&tg.includes(a)&&(Object.keys(void 0===s?{}:s).find(function(t){return ty.includes(t)})||h.autoFetchSvg)&&(n.prefix=en.get(a).defaultShortPrefixId,n.iconName=tc(n.prefix,n.iconName)||n.iconName),("fa"===n.prefix||"fa"===(void 0===o?"":o))&&(n.prefix=tt||"fas"),n)),function(t,i,r){var a=r.prefix,n=r.iconName;if(t||!a||!n)return{prefix:a,iconName:n};var o="fa"===i?tu(n):{},s=tc(a,n);return n=o.iconName||s||n,"far"!==(a=o.prefix||a)||e8.far||!e8.fas||eB.autoFetchSvg||(a="fas"),{prefix:a,iconName:n}}(void 0!==x&&x,w,C))}var tg=ea.filter(function(t){return t!==z||t!==F}),ty=Object.keys(es).filter(function(t){return t!==z}).map(function(t){return Object.keys(es[t])}).flat(),t_=(p=function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");this.definitions={}},m=[{key:"add",value:function(){for(var t=this,i=arguments.length,r=Array(i),a=0;a<i;a++)r[a]=arguments[a];var n=r.reduce(this._pullDefinitions,{});Object.keys(n).forEach(function(i){t.definitions[i]=l(l({},t.definitions[i]||{}),n[i]),e6(i,n[i]);var r=eE[z][i];r&&e6(r,n[i]),ts()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(t,i){var r=i.prefix&&i.iconName&&i.icon?{0:i}:i;return Object.keys(r).map(function(i){var a=r[i],n=a.prefix,o=a.iconName,s=a.icon,l=s[2];t[n]||(t[n]={}),l.length>0&&l.forEach(function(i){"string"==typeof i&&(t[n][i]=s)}),t[n][o]=s}),t}}],function(t,i){for(var r=0;r<i.length;r++){var a=i[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,h(a.key),a)}}(p.prototype,m),Object.defineProperty(p,"prototype",{writable:!1}),p),tv=[],tb={},tx={},tw=Object.keys(tx);function tk(t,i){for(var r=arguments.length,a=Array(r>2?r-2:0),n=2;n<r;n++)a[n-2]=arguments[n];
2return(tb[t]||[]).forEach(function(t){i=t.apply(null,[i].concat(a))}),i}function tT(t){for(var i=arguments.length,r=Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];(tb[t]||[]).forEach(function(t){t.apply(null,r)})}function tS(){var t=arguments[0],i=Array.prototype.slice.call(arguments,1);return tx[t]?tx[t].apply(null,i):void 0}function tA(t){"fa"===t.prefix&&(t.prefix="fas");var i=t.iconName,r=t.prefix||tt;if(i)return i=tc(r,i)||i,e2(tC.definitions,r,i)||e2(eK.styles,r,i)}var tC=new t_,tE={noAuto:function(){eB.autoReplaceSvg=!1,eB.observeMutations=!1,tT("noAuto")},config:eB,dom:{i2svg:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return M?(tT("beforeI2svg",t),tS("pseudoElements2svg",t),tS("i2svg",t)):Promise.reject(Error("Operation requires a DOM of some kind."))},watch:function(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=i.autoReplaceSvgRoot;!1===eB.autoReplaceSvg&&(eB.autoReplaceSvg=!0),eB.observeMutations=!0,t=function(){tM({autoReplaceSvgRoot:r}),tT("watch",i)},M&&(e1?setTimeout(t,0):eJ.push(t))}},parse:{icon:function(t){if(null===t)return null;if("object"===d(t)&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:tc(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&2===t.length){var i=0===t[1].indexOf("fa-")?t[1].slice(3):t[1],r=td(t[0]);return{prefix:r,iconName:tc(r,i)||i}}if("string"==typeof t&&(t.indexOf("".concat(eB.cssPrefix,"-"))>-1||t.match(eP))){var a=tm(t.split(" "),{skipLookups:!0});return{prefix:a.prefix||tt,iconName:tc(a.prefix,a.iconName)||a.iconName}}if("string"==typeof t){var n=tt;return{prefix:n,iconName:tc(n,t)||t}}}},library:tC,findIconDefinition:tA,toHtml:e0},tM=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.autoReplaceSvgRoot,r=void 0===i?A:i;(Object.keys(eK.styles).length>0||eB.autoFetchSvg)&&M&&eB.autoReplaceSvg&&tE.dom.i2svg({node:r})};function tP(t,i){return Object.defineProperty(t,"abstract",{get:i}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(t){return e0(t)})}}),Object.defineProperty(t,"node",{get:function(){if(M){var i=A.createElement("div");return i.innerHTML=t.html,i.children}}}),t}function tD(t){var i,r,a,n,o,s,c,u=t.icons,h=u.main,d=u.mask,f=t.prefix,p=t.iconName,m=t.transform,g=t.symbol,y=t.maskId,_=t.extra,v=t.watchable,b=d.found?d:h,x=b.width,w=b.height,k=[eB.replacementClass,p?"".concat(eB.cssPrefix,"-").concat(p):""].filter(function(t){return -1===_.classes.indexOf(t)}).filter(function(t){return""!==t||!!t}).concat(_.classes).join(" "),T={children:[],attributes:l(l({},_.attributes),{},{"data-prefix":f,"data-icon":p,class:k,role:_.attributes.role||"img",viewBox:"0 0 ".concat(x," ").concat(w)})};i=_.attributes,["aria-label","aria-labelledby","title","role"].some(function(t){return t in i})||_.attributes["aria-hidden"]||(T.attributes["aria-hidden"]="true"),void 0!==v&&v&&(T.attributes[ep]="");var S=l(l({},T),{},{prefix:f,iconName:p,main:h,mask:d,maskId:y,transform:m,symbol:g,styles:l({},_.styles)}),A=d.found&&h.found?tS("generateAbstractMask",S)||{children:[],attributes:{}}:tS("generateAbstractIcon",S)||{children:[],attributes:{}},C=A.children,E=A.attributes;return(S.children=C,S.attributes=E,g)?(r=S.prefix,a=S.iconName,n=S.children,o=S.attributes,c=!0===(s=S.symbol)?"".concat(r,"-").concat(eB.cssPrefix,"-").concat(a):s,[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:l(l({},o),{},{id:c}),children:n}]}]):function(t){var i=t.children,r=t.main,a=t.mask,n=t.attributes,o=t.styles,s=t.transform;if(eZ(s)&&r.found&&!a.found){var c={x:r.width/r.height/2,y:.5};n.style=eq(l(l({},o),{},{"transform-origin":"".concat(c.x+s.x/16,"em ").concat(c.y+s.y/16,"em")}))}return[{tag:"svg",attributes:n,children:i}]}(S)}function tI(t){var i,r,a,n,o,s,c,u=t.content,h=t.width,d=t.height,f=t.transform,p=t.extra,m=t.watchable,g=l(l({},p.attributes),{},{class:p.classes.join(" ")});void 0!==m&&m&&(g[ep]="");var y=l({},p.styles);eZ(f)&&(r=(i={transform:f,startCentered:!0,width:h,height:d}).transform,a=i.width,n=i.height,s=void 0!==(o=i.startCentered)&&o,c="",s&&P?c+="translate(".concat(r.x/16-(void 0===a?16:a)/2,"em, ").concat(r.y/16-(void 0===n?16:n)/2,"em) "):s?c+="translate(calc(-50% + ".concat(r.x/16,"em), calc(-50% + ").concat(r.y/16,"em)) "):c+="translate(".concat(r.x/16,"em, ").concat(r.y/16,"em) "),c+="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),y.transform=c+="rotate(".concat(r.rotate,"deg) "),y["-webkit-transform"]=y.transform);var _=eq(y);_.length>0&&(g.style=_);var v=[];return v.push({tag:"span",attributes:g,children:[u]}),v}var tz=eK.styles;function tL(t){var i=t[0],r=t[1],a=c(t.slice(4),1)[0];return{found:!0,width:i,height:r,icon:Array.isArray(a)?{tag:"g",attributes:{class:"".concat(eB.cssPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(eB.cssPrefix,"-").concat("secondary"),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(eB.cssPrefix,"-").concat("primary"),fill:"currentColor",d:a[1]}}]}
2:{tag:"path",attributes:{fill:"currentColor",d:a}}}}var tF={found:!1,width:512,height:512};function tR(t,i){var r=i;return"fa"===i&&null!==eB.styleDefault&&(i=tt),new Promise(function(a,n){if("fa"===r){var o,s,c=tu(t)||{};t=c.iconName||t,i=c.prefix||i}if(t&&i&&tz[i]&&tz[i][t])return a(tL(tz[i][t]));o=t,s=i,ex||eB.showMissingIcons||!o||console.error('Icon with name "'.concat(o,'" and prefix "').concat(s,'" is missing.')),a(l(l({},tF),{},{icon:eB.showMissingIcons&&t&&tS("missingIconAbstract")||{}}))})}var tO=function(){},tB=eB.measurePerformance&&E&&E.mark&&E.measure?E:{mark:tO,measure:tO},tj='FA "7.3.1"',tN=function(t){tB.mark("".concat(tj," ").concat(t," ends")),tB.measure("".concat(tj," ").concat(t),"".concat(tj," ").concat(t," begins"),"".concat(tj," ").concat(t," ends"))},t$=function(t){return tB.mark("".concat(tj," ").concat(t," begins")),function(){return tN(t)}},tV=function(){};function tU(t){return"string"==typeof(t.getAttribute?t.getAttribute(ep):null)}function tG(t){return A.createElementNS("http://www.w3.org/2000/svg",t)}function tq(t){return A.createElement(t)}var tZ={replace:function(t){var i=t[0];
2if(i.parentNode)if(t[1].forEach(function(t){i.parentNode.insertBefore(function t(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.ceFn,n=void 0===a?"svg"===i.tag?tG:tq:a;if("string"==typeof i)return A.createTextNode(i);var o=n(i.tag);return Object.keys(i.attributes||[]).forEach(function(t){o.setAttribute(t,i.attributes[t])}),(i.children||[]).forEach(function(i){o.appendChild(t(i,{ceFn:n}))}),o}(t),i)}),null===i.getAttribute(ep)&&eB.keepOriginalSource){var r,a=A.createComment((r=" ".concat(i.outerHTML," "),r="".concat(r,"Font Awesome fontawesome.com ")));i.parentNode.replaceChild(a,i)}else i.remove()},nest:function(t){var i=t[0],r=t[1];if(~eU(i).indexOf(eB.replacementClass))return tZ.replace(t);var a=new RegExp("".concat(eB.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var n=r[0].attributes.class.split(" ").reduce(function(t,i){return i===eB.replacementClass||i.match(a)?t.toSvg.push(i):t.toNode.push(i),t},{toNode:[],toSvg:[]});r[0].attributes.class=n.toSvg.join(" "),0===n.toNode.length?i.removeAttribute("class"):i.setAttribute("class",n.toNode.join(" "))}var o=r.map(function(t){return e0(t)}).join("\n");i.setAttribute(ep,""),i.innerHTML=o}};function tH(t){t()}function tW(t,i){var r="function"==typeof i?i:tV;if(0===t.length)r();else{var a=tH;"async"===eB.mutateApproach&&(a=S.requestAnimationFrame||tH),a(function(){var i=!0===eB.autoReplaceSvg?tZ.replace:tZ[eB.autoReplaceSvg]||tZ.replace,a=t$("mutate");t.map(i),a(),r()})}}var tX=!1,tY=null;function tK(t){if(C&&eB.observeMutations){var i=t.treeCallback,r=void 0===i?tV:i,a=t.nodeCallback,n=void 0===a?tV:a,o=t.pseudoElementsCallback,s=void 0===o?tV:o,l=t.observeMutationsRoot,c=void 0===l?A:l;tY=new C(function(t){if(!tX){var i=tt;eV(t).forEach(function(t){if("childList"===t.type&&t.addedNodes.length>0&&!tU(t.addedNodes[0])&&(eB.searchPseudoElements&&s(t.target),r(t.target)),"attributes"===t.type&&t.target.parentNode&&eB.searchPseudoElements&&s([t.target],!0),"attributes"===t.type&&tU(t.target)&&~ez.indexOf(t.attributeName))if("class"===t.attributeName&&(o=(a=t.target).getAttribute?a.getAttribute(eg):null,l=a.getAttribute?a.getAttribute(ey):null,o&&l)){var a,o,l,c,u=tm(eU(t.target)),h=u.prefix,d=u.iconName;t.target.setAttribute(eg,h||i),d&&t.target.setAttribute(ey,d)}else(c=t.target)&&c.classList&&c.classList.contains&&c.classList.contains(eB.replacementClass)&&n(t.target)})}}),M&&tY.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function tJ(t){var i,r,a,n,o,s,c,u,h,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},f=(n=(i=t).getAttribute("data-prefix"),o=i.getAttribute("data-icon"),s=void 0!==i.innerText?i.innerText.trim():"",((c=tm(eU(i))).prefix||(c.prefix=tt),n&&o&&(c.prefix=n,c.iconName=o),c.iconName&&c.prefix)?c:(c.prefix&&s.length>0&&(r=c.prefix,a=i.innerText,c.iconName=(tr[r]||{})[a]||tl(c.prefix,e5(i.innerText))),!c.iconName&&eB.autoFetchSvg&&i.firstChild&&i.firstChild.nodeType===Node.TEXT_NODE&&(c.iconName=i.firstChild.data),c)),p=f.iconName,m=f.prefix,g=f.rest,y=eV(t.attributes).reduce(function(t,i){return"class"!==t.name&&"style"!==t.name&&(t[i.name]=i.value),t},{}),_=tk("parseNodeAttributes",{},t);return l({iconName:p,prefix:m,transform:eN,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:g,styles:d.styleParser?(u=t.getAttribute("style"),h=[],u&&(h=u.split(";").reduce(function(t,i){var r=i.split(":"),a=r[0],n=r.slice(1);return a&&n.length>0&&(t[a]=n.join(":").trim()),t},{})),h):[],attributes:y}},_)}var tQ=eK.styles;function t1(t){var i="nest"===eB.autoReplaceSvg?tJ(t,{styleParser:!1}):tJ(t);return~i.extra.classes.indexOf(eD)?tS("generateLayersText",t,i):tS("generateSvgReplacementMutation",t,i)}function t0(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!M)return Promise.resolve();var r=A.documentElement.classList,a=function(t){return r.add("".concat(e_,"-").concat(t))},n=function(t){return r.remove("".concat(e_,"-").concat(t))},o=eB.autoFetchSvg?[].concat(u(eo),u(el)):I.concat(Object.keys(tQ));o.includes("fa")||o.push("fa");var s=[".".concat(eD,":not([").concat(ep,"])")].concat(o.map(function(t){return".".concat(t,":not([").concat(ep,"])")})).join(", ");
2if(0===s.length)return Promise.resolve();var l=[];try{l=eV(t.querySelectorAll(s))}catch(t){}if(!(l.length>0))return Promise.resolve();a("pending"),n("complete");var c=t$("onTree"),h=l.reduce(function(t,i){try{var r=t1(i);r&&t.push(r)}catch(t){ex||"MissingIcon"!==t.name||console.error(t)}return t},[]);return new Promise(function(t,r){Promise.all(h).then(function(r){tW(r,function(){a("active"),a("complete"),n("pending"),"function"==typeof i&&i(),c(),t()})}).catch(function(t){c(),r(t)})})}function t2(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t1(t).then(function(t){t&&tW([t],i)})}var t3=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.transform,a=void 0===r?eN:r,n=i.symbol,o=void 0!==n&&n,s=i.mask,c=void 0===s?null:s,u=i.maskId,h=void 0===u?null:u,d=i.classes,f=void 0===d?[]:d,p=i.attributes,m=void 0===p?{}:p,g=i.styles,y=void 0===g?{}:g;if(t){var _=t.prefix,v=t.iconName,b=t.icon;return tP(l({type:"icon"},t),function(){return tT("beforeDOMElementCreation",{iconDefinition:t,params:i}),tD({icons:{main:tL(b),mask:c?tL(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:_,iconName:v,transform:l(l({},eN),a),symbol:o,maskId:h,extra:{attributes:m,styles:y,classes:f}})})}},t5=RegExp('"',"ug"),t4=l(l(l(l({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Slab Duo":{400:"fasldr",normal:"fasldr"},"Font Awesome 7 Slab Press Duo":{400:"faslpdr",normal:"faslpdr"},"Font Awesome 7 Pixel":{400:"fapr",normal:"fapr"},"Font Awesome 7 Mosaic":{900:"fams",normal:"fams"},"Font Awesome 7 Vellum":{900:"favs",normal:"favs"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Graphite":{100:"fagt",normal:"fagt"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),t6=Object.keys(t4).reduce(function(t,i){return t[i.toLowerCase()]=t4[i],t},{}),t8=Object.keys(t6).reduce(function(t,i){var r=t6[i];return t[i]=r[900]||u(Object.entries(r))[0][1],t},{});function t7(t,i){var r="".concat("data-fa-pseudo-element-pending").concat(i.replace(":","-"));return new Promise(function(a,n){if(null!==t.getAttribute(r))return a();var o=eV(t.children).filter(function(t){return t.getAttribute(em)===i})[0],s=S.getComputedStyle(t,i),c=s.getPropertyValue("font-family"),h=c.match(eI),d=s.getPropertyValue("font-weight"),f=s.getPropertyValue("content");if(o&&!h)return t.removeChild(o),a();if(h&&"none"!==f&&""!==f){var p=s.getPropertyValue("content"),m=(x=c.replace(/^['"]|['"]$/g,"").toLowerCase(),k=isNaN(w=parseInt(d))?"normal":w,(t6[x]||{})[k]||t8[x]),g=e5(u(p.replace(t5,""))[0]||""),y=h[0].startsWith("FontAwesome"),_=(T=s.getPropertyValue("font-feature-settings").includes("ss01"),M=(E=(C=s.getPropertyValue("content").replace(t5,"")).codePointAt(0))>=1105920&&E<=1112319,P=2===C.length&&C[0]===C[1],M||P||T),v=tl(m,g),b=v;if(y){var x,w,k,T,C,E,M,P,D,I,z=(D=tn[g],I=tl("fas",g),D||(I?{prefix:"fas",iconName:I}:null)||{prefix:null,iconName:null});z.iconName&&z.prefix&&(v=z.iconName,m=z.prefix)}if(!v||_||o&&o.getAttribute(eg)===m&&o.getAttribute(ey)===b)a();else{t.setAttribute(r,b),o&&t.removeChild(o);var F={iconName:null,prefix:null,transform:eN,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},R=F.extra;R.attributes[em]=i,tR(v,m).then(function(n){var o=tD(l(l({},F),{},{icons:{main:n,mask:th()},prefix:m,iconName:b,extra:R,watchable:!0})),s=A.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===i?t.insertBefore(s,t.firstChild):t.appendChild(s),s.outerHTML=o.map(function(t){return e0(t)}).join("\n"),t.removeAttribute(r),a()}).catch(n)}}else a()})}function t9(t){return Promise.all([t7(t,"::before"),t7(t,"::after")])}function ie(t){return t.parentNode!==document.head&&!~ev.indexOf(t.tagName.toUpperCase())&&!t.getAttribute(em)&&(!t.parentNode||"svg"!==t.parentNode.tagName)}var it=function(t){return!!t&&eb.some(function(i){return t.includes(i)})},ii=function(t){if(!t)return[];
2var i,r=new Set,a=t.split(/,(?![^()]*\))/).map(function(t){return t.trim()}),o=n(a=a.flatMap(function(t){return t.includes("(")?t:t.split(",").map(function(t){return t.trim()})}));try{for(o.s();!(i=o.n()).done;){var s=i.value;if(it(s)){var l=eb.reduce(function(t,i){return t.replace(i,"")},s);""!==l&&"*"!==l&&r.add(l)}}}catch(t){o.e(t)}finally{o.f()}return r};function ir(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(M){if(i)r=t;else if(eB.searchPseudoElementsFullScan)r=t.querySelectorAll("*");else{var r,a,o=new Set,s=n(document.styleSheets);try{for(s.s();!(a=s.n()).done;){var l=a.value;try{var c,u=n(l.cssRules);try{for(u.s();!(c=u.n()).done;){var h,d=c.value,f=ii(d.selectorText),p=n(f);try{for(p.s();!(h=p.n()).done;){var m=h.value;o.add(m)}}catch(t){p.e(t)}finally{p.f()}}}catch(t){u.e(t)}finally{u.f()}}catch(t){eB.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(l.href," (").concat(t.message,')\nIf it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.'))}}}catch(t){s.e(t)}finally{s.f()}if(!o.size)return;var g=Array.from(o).join(", ");try{r=t.querySelectorAll(g)}catch(t){}}return new Promise(function(t,i){var a=eV(r).filter(ie).map(t9),n=t$("searchPseudoElements");tX=!0,Promise.all(a).then(function(){n(),tX=!1,t()}).catch(function(){n(),tX=!1,i()})})}}var ia=!1,io=function(t){return t.toLowerCase().split(" ").reduce(function(t,i){var r=i.toLowerCase().split("-"),a=r[0],n=r.slice(1).join("-");if(a&&"h"===n)return t.flipX=!0,t;if(a&&"v"===n)return t.flipY=!0,t;if(isNaN(n=parseFloat(n)))return t;switch(a){case"grow":t.size=t.size+n;break;case"shrink":t.size=t.size-n;break;case"left":t.x=t.x-n;break;case"right":t.x=t.x+n;break;case"up":t.y=t.y-n;break;case"down":t.y=t.y+n;break;case"rotate":t.rotate=t.rotate+n}return t},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},is={x:0,y:0,width:"100%",height:"100%"};function il(t){var i=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return t.attributes&&(t.attributes.fill||i)&&(t.attributes.fill="black"),t}tv=[{mixout:function(){return{dom:{css:eH,insertCss:eX}}},hooks:function(){return{beforeDOMElementCreation:function(){eX()},beforeI2svg:function(){eX()}}}},{mixout:function(){return{icon:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t||{}).icon?t:tA(t||{}),a=i.mask;return a&&(a=(a||{}).icon?a:tA(a||{})),t3(r,l(l({},i),{},{mask:a}))}}},hooks:function(){return{mutationObserverCallbacks:function(t){return t.treeCallback=t0,t.nodeCallback=t2,t}}},provides:function(t){t.i2svg=function(t){var i=t.node,r=void 0===i?A:i,a=t.callback;return t0(r,void 0===a?function(){}:a)},t.generateSvgReplacementMutation=function(t,i){var r=i.iconName,a=i.prefix,n=i.transform,o=i.symbol,s=i.mask,l=i.maskId,u=i.extra;return new Promise(function(i,h){Promise.all([tR(r,a),s.iconName?tR(s.iconName,s.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(s){var h=c(s,2);i([t,tD({icons:{main:h[0],mask:h[1]},prefix:a,iconName:r,transform:n,symbol:o,maskId:l,extra:u,watchable:!0})])}).catch(h)})},t.generateAbstractIcon=function(t){var i,r=t.children,a=t.attributes,n=t.main,o=t.transform,s=eq(t.styles);return s.length>0&&(a.style=s),eZ(o)&&(i=tS("generateAbstractTransformGrouping",{main:n,transform:o,containerWidth:n.width,iconWidth:n.width})),r.push(i||n.icon),{children:r,attributes:a}}}},{mixout:function(){return{layer:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.classes,a=void 0===r?[]:r;return tP({type:"layer"},function(){tT("beforeDOMElementCreation",{assembler:t,params:i});var r=[];return t(function(t){Array.isArray(t)?t.map(function(t){r=r.concat(t.abstract)}):r=r.concat(t.abstract)}),[{tag:"span",attributes:{class:["".concat(eB.cssPrefix,"-layers")].concat(u(a)).join(" ")},children:r}]})}}}},{mixout:function(){return{counter:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.title,a=void 0===r?null:r,n=i.classes,o=void 0===n?[]:n,s=i.attributes,c=void 0===s?{}:s,h=i.styles,d=void 0===h?{}:h;return tP({type:"counter",content:t},function(){var r,n,s,h,f,p;return tT("beforeDOMElementCreation",{content:t,params:i}),n=(r={content:t.toString(),title:a,extra:{attributes:c,styles:d,classes:["".concat(eB.cssPrefix,"-layers-counter")].concat(u(o))}}).content,h=l(l({},(s=r.extra).attributes),{},{class:s.classes.join(" ")}),(f=eq(s.styles)).length>0&&(h.style=f),(p=[]).push({tag:"span",attributes:h,children:[n]}),p})}}}},{mixout:function(){return{text:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.transform,a=void 0===r?eN:r,n=i.classes,o=void 0===n?[]:n,s=i.attributes,c=void 0===s?{}:s,h=i.styles,d=void 0===h?{}:h;return tP({type:"text",content:t},function(){return tT("beforeDOMElementCreation",{content:t,params:i}),tI({content:t,transform:l(l({},eN),a),extra:{attributes:c,styles:d,classes:["".concat(eB.cssPrefix,"-layers-text")].concat(u(o))}})})}}},provides:function(t){t.generateLayersText=function(t,i){var r=i.transform,a=i.extra,n=null,o=null;if(P){var s=parseInt(getComputedStyle(t).fontSize,10),l=t.getBoundingClientRect();n=l.width/s,o=l.height/s}return Promise.resolve([t,tI({content:t.innerHTML,width:n,height:o,transform:r,extra:a,watchable:!0})])}}},{hooks:function(){return{mutationObserverCallbacks:function(t){return t.pseudoElementsCallback=ir,t}}},provides:function(t){t.pseudoElements2svg=function(t){var i=t.node,r=void 0===i?A:i;eB.searchPseudoElements&&ir(r)}}},{mixout:function(){return{dom:{unwatch:function(){tX=!0,ia=!0}}}},hooks:function(){return{bootstrap:function(){tK(tk("mutationObserverCallbacks",{}))},noAuto:function(){tY&&tY.disconnect()},watch:function(t){var i=t.observeMutationsRoot;ia?tX=!1:tK(tk("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},{mixout:function(){return{parse:{transform:function(t){return io(t)}}}},hooks:function(){return{parseNodeAttributes:function(t,i){var r=i.getAttribute("data-fa-transform");return r&&(t.transform=io(r)),t}}},provides:function(t){t.generateAbstractTransformGrouping=function(t){var i=t.main,r=t.transform,a=t.containerWidth,n=t.iconWidth,o="translate(".concat(32*r.x,", ").concat(32*r.y,") "),s="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),c="rotate(".concat(r.rotate," 0 0)"),u={transform:"".concat(o," ").concat(s," ").concat(c)},h={outer:{transform:"translate(".concat(a/2," 256)")},inner:u,path:{transform:"translate(".concat(-(n/2*1)," -256)")}};return{tag:"g",attributes:l({},h.outer),children:[{tag:"g",attributes:l({},h.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:l(l({},i.icon.attributes),h.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(t,i){var r=i.getAttribute("data-fa-mask"),a=r?tm(r.split(" ").map(function(t){return t.trim()})):th();return a.prefix||(a.prefix=tt),t.mask=a,t.maskId=i.getAttribute("data-fa-mask-id"),t}}},provides:function(t){t.generateAbstractMask=function(t){var i,r,a,n,o,s,c,u,h=t.children,d=t.attributes,f=t.main,p=t.mask,m=t.maskId,g=t.transform,y=f.width,_=f.icon,v=p.width,b=p.icon,x=(r=(i={transform:g,containerWidth:v,iconWidth:y}).transform,a=i.containerWidth,n=i.iconWidth,o="translate(".concat(32*r.x,", ").concat(32*r.y,") "),s="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),c="rotate(".concat(r.rotate," 0 0)"),u={transform:"".concat(o," ").concat(s," ").concat(c)},{outer:{transform:"translate(".concat(a/2," 256)")},inner:u,path:{transform:"translate(".concat(-(n/2*1)," -256)")}}),w={tag:"rect",attributes:l(l({},is),{},{fill:"white"})},k=_.children?{children:_.children.map(il)}:{},T={tag:"g",attributes:l({},x.inner),children:[il(l({tag:_.tag,attributes:l(l({},_.attributes),x.path)},k))]},S={tag:"g",attributes:l({},x.outer),children:[T]},A="mask-".concat(m||e$()),C="clip-".concat(m||e$()),E={tag:"mask",attributes:l(l({},is),{},{id:A,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[w,S]},M={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:"g"===b.tag?b.children:[b]},E]};return h.push(M,{tag:"rect",attributes:l({fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(A,")")},is)}),{children:h,attributes:d}}}},{provides:function(t){var i=!1;S.matchMedia&&(i=S.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var t=[],r={fill:"currentColor"}
vendor: 2,884 bytes, line 2
2,a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};t.push({tag:"path",attributes:l(l({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var n=l(l({},a),{},{attributeName:"opacity"}),o={tag:"circle",attributes:l(l({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return i||o.children.push({tag:"animate",attributes:l(l({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:l(l({},n),{},{values:"1;0;1;1;0;1;"})}),t.push(o),t.push({tag:"path",attributes:l(l({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:i?[]:[{tag:"animate",attributes:l(l({},n),{},{values:"1;0;0;0;0;1;"})}]}),i||t.push({tag:"path",attributes:l(l({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:l(l({},n),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:t}}}},{hooks:function(){return{parseNodeAttributes:function(t,i){var r=i.getAttribute("data-fa-symbol");return t.symbol=null!==r&&(""===r||r),t}}}}],tb={},Object.keys(tx).forEach(function(t){-1===tw.indexOf(t)&&delete tx[t]}),tv.forEach(function(t){var i=t.mixout?t.mixout():{};
2if(Object.keys(i).forEach(function(t){"function"==typeof i[t]&&(tE[t]=i[t]),"object"===d(i[t])&&Object.keys(i[t]).forEach(function(r){tE[t]||(tE[t]={}),tE[t][r]=i[t][r]})}),t.hooks){var r=t.hooks();Object.keys(r).forEach(function(t){tb[t]||(tb[t]=[]),tb[t].push(r[t])})}t.provides&&t.provides(tx)}),tE.noAuto,tE.config;var ic=tE.library,iu=tE.dom;tE.parse,tE.findIconDefinition,tE.toHtml,tE.icon,tE.layer,tE.text,tE.counter,r.d(i,{Yv:()=>ic,tT:()=>iu})},99365(t,i,r){var a=Object.defineProperty,n=(t,i)=>a(t,"name",{value:i,configurable:!0});function o(t,i){let r="script";return"name"===t?r="script":"name2"===t?r="script2":"name3"===t&&(r="script3"),[["coalesce",["get",`pgf:${t}`],["get",t]],{"text-font":["case",["==",["get",r],"Devanagari"],["literal",["Noto Sans Devanagari Regular v1"]],["literal",[i||"Noto Sans Regular"]]]}]}function s(t,i,r){let a="name";return"name"===r?a="":"name2"===r?a="2":"name3"===r&&(a="3"),"Latin"===i?["has",`script${a}`]:"ja"===t?["all",["!=",["get",`script${a}`],"Han"],["!=",["get",`script${a}`],"Hiragana"],["!=",["get",`script${a}`],"Katakana"],["!=",["get",`script${a}`],"Mixed-Japanese"]]:["!=",["get",`script${a}`],i]}function l(t){return"Devanagari"===t?{"text-font":["literal",["Noto Sans Devanagari Regular v1"]]}:{}}function c(t){let i=d.find(i=>i.lang===t);return void 0===i?"Latin":i.script}function u(t,i){let r=i||c(t),a;return a="Devanagari"===r?"pgf:":"",["format",["coalesce",["get",`${a}name:${t}`],["get","name:en"]],l(r)]}function h(t,i,r){let a=i||c(t),n;return n="Devanagari"===a?"pgf:":"",["case",["all",["any",["has","name"],["has","pgf:name"]],["!",["any",["has","name2"],["has","pgf:name2"]]],["!",["any",["has","name3"],["has","pgf:name3"]]]],["case",s(t,a,"name"),["case",["any",["is-supported-script",["get","name"]],["has","pgf:name"]],["format",["coalesce",["get",`${n}name:${t}`],["get","name:en"]],l(a),`
3`,{},["case",["all",["!",["has",`${n}name:${t}`]],["has","name:en"],["!",["has","script"]]],"",["coalesce",["get","pgf:name"],["get","name"]]],{"text-font":["case",["==",["get","script"],"Devanagari"],["literal",["Noto Sans Devanagari Regular v1"]],["literal",[r||"Noto Sans Regular"]]]}],["get","name:en"]],["format",["coalesce",["get",`${n}name:${t}`],["get","pgf:name"],["get","name"]],l(a)]],["all",["any",["has","name"],["has","pgf:name"]],["any",["has","name2"],["has","pgf:name2"]],["!",["any",["has","name3"],["has","pgf:name3"]]]],["case",["all",s(t,a,"name"),s(t,a,"name2")],["format",["get",`${n}name:${t}`],l(a),`
4`,{},...o("name",r),`
5`,{},...o("name2",r)],["case",s(t,a,"name2"),["format",["coalesce",["get",`${n}name:${t}`],["get","pgf:name"],["get","name"]],l(a),`
6`,{},...o("name2",r)],["format",["coalesce",["get",`${n}name:${t}`],["get","pgf:name2"],["get","name2"]],l(a),`
7`,{},...o("name",r)]]],["case",["all",s(t,a,"name"),s(t,a,"name2"),s(t,a,"name3")],["format",["get",`${n}name:${t}`],l(a),`
8`,{},...o("name",r),`
9`,{},...o("name2",r),`
10`,{},...o("name3",r)],["case",["!",s(t,a,"name")],["format",["coalesce",["get",`${n}name:${t}`],["get","pgf:name"],["get","name"]],l(a),`
11`,{},...o("name2",r),`
12`,{},...o("name3",r)],["!",s(t,a,"name2")],["format",["coalesce",["get",`${n}name:${t}`],["get","pgf:name2"],["get","name2"]],l(a),`
13`,{},...o("name",r),`
14`,{},...o("name3",r)],["format",["coalesce",["get",`${n}name:${t}`],["get","pgf:name3"],["get","name3"]],l(a),`
15`,{},...o("name",r),`
16`,{},...o("name2",r)]]]]}n(o,"get_name_block"),n(s,"is_not_in_target_script"),n(l,"get_font_formatting"),n(c,"get_default_script"),n(u,"get_country_name"),n(h,"get_multiline_name");var d=[{lang:"ar",full_name:"Arabic",script:"Arabic"},{lang:"cs",full_name:"Czech",script:"Latin"},{lang:"bg",full_name:"Bulgarian",script:"Cyrillic"},{lang:"da",full_name:"Danish",script:"Latin"},{lang:"de",full_name:"German",script:"Latin"},{lang:"el",full_name:"Greek",script:"Greek"},{lang:"en",full_name:"English",script:"Latin"},{lang:"es",full_name:"Spanish",script:"Latin"},{lang:"et",full_name:"Estonian",script:"Latin"},{lang:"fa",full_name:"Persian",script:"Arabic"},{lang:"fi",full_name:"Finnish",script:"Latin"},{lang:"fr",full_name:"French",script:"Latin"},{lang:"ga",full_name:"Irish",script:"Latin"},{lang:"he",full_name:"Hebrew",script:"Hebrew"},{lang:"hi",full_name:"Hindi",script:"Devanagari"},{lang:"hr",full_name:"Croatian",script:"Latin"},{lang:"hu",full_name:"Hungarian",script:"Latin"},{lang:"id",full_name:"Indonesian",script:"Latin"}
16,{lang:"it",full_name:"Italian",script:"Latin"},{lang:"ja",full_name:"Japanese",script:""},{lang:"ko",full_name:"Korean",script:"Hangul"},{lang:"lt",full_name:"Lithuanian",script:"Latin"},{lang:"lv",full_name:"Latvian",script:"Latin"},{lang:"ne",full_name:"Nepali",script:"Devanagari"},{lang:"nl",full_name:"Dutch",script:"Latin"},{lang:"no",full_name:"Norwegian",script:"Latin"},{lang:"mr",full_name:"Marathi",script:"Devanagari"},{lang:"mt",full_name:"Maltese",script:"Latin"},{lang:"pl",full_name:"Polish",script:"Latin"},{lang:"pt",full_name:"Portuguese",script:"Latin"},{lang:"ro",full_name:"Romanian",script:"Latin"},{lang:"ru",full_name:"Russian",script:"Cyrillic"},{lang:"sk",full_name:"Slovak",script:"Latin"},{lang:"sl",full_name:"Slovenian",script:"Latin"},{lang:"sv",full_name:"Swedish",script:"Latin"},{lang:"tr",full_name:"Turkish",script:"Latin"},{lang:"uk",full_name:"Ukrainian",script:"Cyrillic"},{lang:"ur",full_name:"Urdu",script:"Arabic"},{lang:"vi",full_name:"Vietnamese",script:"Latin"},{lang:"zh-Hans",full_name:"Chinese (Simplified)",script:"Han"},{lang:"zh-Hant",full_name:"Chinese (Traditional)",script:"Han"}];function f(t,i){return[{id:"background",type:"background",paint:{"background-color":i.background}},{id:"earth",type:"fill",filter:["==","$type","Polygon"],source:t,"source-layer":"earth",paint:{"fill-color":i.earth}},...i.landcover?[{id:"landcover",type:"fill",source:t,"source-layer":"landcover",paint:{"fill-color":["match",["get","kind"],"grassland",i.landcover.grassland,"barren",i.landcover.barren,"urban_area",i.landcover.urban_area,"farmland",i.landcover.farmland,"glacier",i.landcover.glacier,"scrub",i.landcover.scrub,i.landcover.forest],"fill-opacity":["interpolate",["linear"],["zoom"],5,1,7,0]}}]:[],{id:"landuse_park",type:"fill",source:t,"source-layer":"landuse",filter:["in","kind","national_park","park","cemetery","protected_area","nature_reserve","forest","golf_course","wood","scrub","grassland","grass","glacier","sand","military","naval_base","airfield"],paint:{"fill-opacity":["interpolate",["linear"],["zoom"],6,0,11,1],"fill-color":["case",["in",["get","kind"],["literal",["national_park","park","cemetery","protected_area","nature_reserve","forest","golf_course"]]],i.park_b,["==",["get","kind"],"wood"],i.wood_b,["in",["get","kind"],["literal",["scrub","grassland","grass"]]],i.scrub_b,["==",["get","kind"],"glacier"],i.glacier,["==",["get","kind"],"sand"],i.sand,["in",["get","kind"],["literal",["military","naval_base","airfield"]]],i.zoo,i.earth]}},{id:"landuse_urban_green",type:"fill",source:t,"source-layer":"landuse",filter:["in","kind","allotments","village_green","playground"],paint:{"fill-color":i.park_b,"fill-opacity":.7}},{id:"landuse_hospital",type:"fill",source:t,"source-layer":"landuse",filter:["==","kind","hospital"],paint:{"fill-color":i.hospital}},{id:"landuse_industrial",type:"fill",source:t,"source-layer":"landuse",filter:["==","kind","industrial"],paint:{"fill-color":i.industrial}},{id:"landuse_school",type:"fill",source:t,"source-layer":"landuse",filter:["in","kind","school","university","college"],paint:{"fill-color":i.school}},{id:"landuse_beach",type:"fill",source:t,"source-layer":"landuse",filter:["in","kind","beach"],paint:{"fill-color":i.beach}},{id:"landuse_zoo",type:"fill",source:t,"source-layer":"landuse",filter:["in","kind","zoo"],paint:{"fill-color":i.zoo}},{id:"landuse_aerodrome",type:"fill",source:t,"source-layer":"landuse",filter:["in","kind","aerodrome"],paint:{"fill-color":i.aerodrome}},{id:"roads_runway",type:"line",source:t,"source-layer":"roads",filter:["==","kind_detail","runway"],paint:{"line-color":i.runway,"line-width":["interpolate",["exponential",1.6],["zoom"],10,0,12,4,18,30]}},{id:"roads_taxiway",type:"line",source:t,"source-layer":"roads",minzoom:13,filter:["==","kind_detail","taxiway"],paint:{"line-color":i.runway,"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,15,6]}},{id:"landuse_runway",type:"fill",source:t,"source-layer":"landuse",filter:["any",["in","kind","runway","taxiway"]],paint:{"fill-color":i.runway}},{id:"water",type:"fill",filter:["==","$type","Polygon"],source:t,"source-layer":"water",paint:{"fill-color":i.water}},{id:"water_stream",type:"line",source:t,"source-layer":"water",minzoom:14,filter:["in","kind","stream"],paint:{"line-color":i.water,"line-width":.5}},{id:"water_river",type:"line",source:t,"source-layer":"water",minzoom:9,filter:["in","kind","river"],paint:{"line-color":i.water,"line-width":["interpolate",["exponential",1.6],["zoom"],9,0,9.5,1,18,12]}}
16,{id:"landuse_pedestrian",type:"fill",source:t,"source-layer":"landuse",filter:["in","kind","pedestrian","dam"],paint:{"fill-color":i.pedestrian}},{id:"landuse_pier",type:"fill",source:t,"source-layer":"landuse",filter:["==","kind","pier"],paint:{"fill-color":i.pier}},{id:"roads_tunnels_other_casing",type:"line",source:t,"source-layer":"roads",filter:["all",["has","is_tunnel"],["in","kind","other","path"]],paint:{"line-color":i.tunnel_other_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],14,0,20,7]}},{id:"roads_tunnels_minor_casing",type:"line",source:t,"source-layer":"roads",filter:["all",["has","is_tunnel"],["==","kind","minor_road"]],paint:{"line-color":i.tunnel_minor_casing,"line-dasharray":[3,2],"line-gap-width":["interpolate",["exponential",1.6],["zoom"],11,0,12.5,.5,15,2,18,11],"line-width":["interpolate",["exponential",1.6],["zoom"],12,0,12.5,1]}},{id:"roads_tunnels_link_casing",type:"line",source:t,"source-layer":"roads",filter:["all",["has","is_tunnel"],["has","is_link"]],paint:{"line-color":i.tunnel_link_casing,"line-dasharray":[3,2],"line-gap-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,18,11],"line-width":["interpolate",["exponential",1.6],["zoom"],12,0,12.5,1]}},{id:"roads_tunnels_major_casing",type:"line",source:t,"source-layer":"roads",filter:["all",["has","is_tunnel"],["!has","is_bridge"],["==","kind","major_road"]],paint:{"line-color":i.tunnel_major_casing,"line-dasharray":[3,2],"line-gap-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,.5,18,13],"line-width":["interpolate",["exponential",1.6],["zoom"],9,0,9.5,1]}},{id:"roads_tunnels_highway_casing",type:"line",source:t,"source-layer":"roads",filter:["all",["has","is_tunnel"],["!has","is_bridge"],["==","kind","highway"],["!has","is_link"]],paint:{"line-color":i.tunnel_highway_casing,"line-dasharray":[6,.5],"line-gap-width":["interpolate",["exponential",1.6],["zoom"],3,0,3.5,.5,18,15],"line-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,1,20,15]}},{id:"roads_tunnels_other",type:"line",source:t,"source-layer":"roads",filter:["all",["has","is_tunnel"],["in","kind","other","path"]],paint:{"line-color":i.tunnel_other,"line-dasharray":[4.5,.5],"line-width":["interpolate",["exponential",1.6],["zoom"],14,0,20,7]}},{id:"roads_tunnels_minor",type:"line",source:t,"source-layer":"roads",filter:["all",["has","is_tunnel"],["==","kind","minor_road"]],paint:{"line-color":i.tunnel_minor,"line-width":["interpolate",["exponential",1.6],["zoom"],11,0,12.5,.5,15,2,18,11]}},{id:"roads_tunnels_link",type:"line",source:t,"source-layer":"roads",filter:["all",["has","is_tunnel"],["has","is_link"]],paint:{"line-color":i.tunnel_minor,"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,18,11]}},{id:"roads_tunnels_major",type:"line",source:t,"source-layer":"roads",filter:["all",["has","is_tunnel"],["==","kind","major_road"]],paint:{"line-color":i.tunnel_major,"line-width":["interpolate",["exponential",1.6],["zoom"],6,0,12,1.6,15,3,18,13]}},{id:"roads_tunnels_highway",type:"line",source:t,"source-layer":"roads",filter:["all",["has","is_tunnel"],["==",["get","kind"],"highway"],["!",["has","is_link"]]],paint:{"line-color":i.tunnel_highway,"line-width":["interpolate",["exponential",1.6],["zoom"],3,0,6,1.1,12,1.6,15,5,18,15]}},{id:"buildings",type:"fill",source:t,"source-layer":"buildings",filter:["in","kind","building","building_part"],paint:{"fill-color":i.buildings,"fill-opacity":.5}},{id:"roads_pier",type:"line",source:t,"source-layer":"roads",filter:["==","kind_detail","pier"],paint:{"line-color":i.pier,"line-width":["interpolate",["exponential",1.6],["zoom"],12,0,12.5,.5,20,16]}},{id:"roads_minor_service_casing",type:"line",source:t,"source-layer":"roads",minzoom:13,filter:["all",["!has","is_tunnel"],["!has","is_bridge"],["==","kind","minor_road"],["==","kind_detail","service"]],paint:{"line-color":i.minor_service_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],13,0,18,8],"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,.8]}},{id:"roads_minor_casing",type:"line",source:t,"source-layer":"roads",filter:["all",["!has","is_tunnel"],["!has","is_bridge"],["==","kind","minor_road"],["!=","kind_detail","service"]],paint:{"line-color":i.minor_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],11,0,12.5,.5,15,2,18,11],"line-width":["interpolate",["exponential",1.6],["zoom"],12,0,12.5,1]}},{id:"roads_link_casing",type:"line",source:t,"source-layer":"roads",minzoom:13,filter:["has","is_link"],paint:{"line-color":i.minor_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,18,11],"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1.5]}},{id:"roads_major_casing_late",type:"line",source:t,"source-layer":"roads",minzoom:12,filter:["all",["!has","is_tunnel"],["!has","is_bridge"],["==","kind","major_road"]],paint:{"line-color":i.major_casing_late,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],6,0,12,1.6,15,3,18,13],"line-width":["interpolate",["exponential",1.6],["zoom"],9,0,9.5,1]}},{id:"roads_highway_casing_late",type:"line",source:t,"source-layer":"roads",minzoom:12,filter:["all",["!has","is_tunnel"],["!has","is_bridge"],["==","kind","highway"],["!has","is_link"]],paint:{"line-color":i.highway_casing_late,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],3,0,3.5,.5,18,15],"line-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,1,20,15]}},{id:"roads_other",type:"line",source:t,"source-layer":"roads",filter:["all",["!has","is_tunnel"],["!has","is_bridge"],["in","kind","other","path"],["!=","kind_detail","pier"]],paint:{"line-color":i.other,"line-width":["interpolate",["exponential",1.6],["zoom"],14,.5,20,12]}},{id:"roads_link",type:"line",source:t,"source-layer":"roads",filter:["has","is_link"],paint:{"line-color":i.link,"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,18,11]}},{id:"roads_minor_service",type:"line",source:t,"source-layer":"roads",filter:["all",["!has","is_tunnel"],["!has","is_bridge"],["==","kind","minor_road"],["==","kind_detail","service"]],paint:{"line-color":i.minor_service,"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,18,8]}},{id:"roads_minor",type:"line",source:t,"source-layer":"roads",filter:["all",["!has","is_tunnel"],["!has","is_bridge"],["==","kind","minor_road"],["!=","kind_detail","service"]],paint:{"line-color":["interpolate",["exponential",1.6],["zoom"],11,i.minor_a,16,i.minor_b],"line-width":["interpolate",["exponential",1.6],["zoom"],11,0,12.5,.5,15,2,18,11]}},{id:"roads_major_casing_early",type:"line",source:t,"source-layer":"roads",maxzoom:12,filter:["all",["!has","is_tunnel"],["!has","is_bridge"],["==","kind","major_road"]],paint:{"line-color":i.major_casing_early,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,.5,
1618,13],"line-width":["interpolate",["exponential",1.6],["zoom"],9,0,9.5,1]}},{id:"roads_major",type:"line",source:t,"source-layer":"roads",filter:["all",["!has","is_tunnel"],["!has","is_bridge"],["==","kind","major_road"]],paint:{"line-color":i.major,"line-width":["interpolate",["exponential",1.6],["zoom"],6,0,12,1.6,15,3,18,13]}},{id:"roads_highway_casing_early",type:"line",source:t,"source-layer":"roads",maxzoom:12,filter:["all",["!has","is_tunnel"],["!has","is_bridge"],["==","kind","highway"],["!has","is_link"]],paint:{"line-color":i.highway_casing_early,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],3,0,3.5,.5,18,15],"line-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,1]}},{id:"roads_highway",type:"line",source:t,"source-layer":"roads",filter:["all",["!has","is_tunnel"],["!has","is_bridge"],["==","kind","highway"],["!has","is_link"]],paint:{"line-color":i.highway,"line-width":["interpolate",["exponential",1.6],["zoom"],3,0,6,1.1,12,1.6,15,5,18,15]}},{id:"roads_rail",type:"line",source:t,"source-layer":"roads",filter:["==","kind","rail"],paint:{"line-dasharray":[.3,.75],"line-opacity":.5,"line-color":i.railway,"line-width":["interpolate",["exponential",1.6],["zoom"],3,0,6,.15,18,9]}},{id:"boundaries_country",type:"line",source:t,"source-layer":"boundaries",filter:["<=","kind_detail",2],paint:{"line-color":i.boundaries,"line-width":.7,"line-dasharray":["step",["zoom"],["literal",[2,0]],4,["literal",[2,1]]]}},{id:"boundaries",type:"line",source:t,"source-layer":"boundaries",filter:[">","kind_detail",2],paint:{"line-color":i.boundaries,"line-width":.4,"line-dasharray":["step",["zoom"],["literal",[2,0]],4,["literal",[2,1]]]}},{id:"roads_bridges_other_casing",type:"line",source:t,"source-layer":"roads",minzoom:12,filter:["all",["has","is_bridge"],["in","kind","other","path"]],paint:{"line-color":i.bridges_other_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],14,0,20,7]}},{id:"roads_bridges_link_casing",type:"line",source:t,"source-layer":"roads",minzoom:12,filter:["all",["has","is_bridge"],["has","is_link"]],paint:{"line-color":i.bridges_minor_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,18,11],"line-width":["interpolate",["exponential",1.6],["zoom"],12,0,12.5,1.5]}},{id:"roads_bridges_minor_casing",type:"line",source:t,"source-layer":"roads",minzoom:12,filter:["all",["has","is_bridge"],["==","kind","minor_road"]],paint:{"line-color":i.bridges_minor_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],11,0,12.5,.5,15,2,18,11],"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,.8]}},{id:"roads_bridges_major_casing",type:"line",source:t,"source-layer":"roads",minzoom:12,filter:["all",["has","is_bridge"],["==","kind","major_road"]],paint:{"line-color":i.bridges_major_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,.5,18,10],"line-width":["interpolate",["exponential",1.6],["zoom"],9,0,9.5,1.5]}},{id:"roads_bridges_other",type:"line",source:t,"source-layer":"roads",minzoom:12,filter:["all",["has","is_bridge"],["in","kind","other","path"]],paint:{"line-color":i.bridges_other,"line-dasharray":[2,1],"line-width":["interpolate",["exponential",1.6],["zoom"],14,0,20,7]}},{id:"roads_bridges_minor",type:"line",source:t,"source-layer":"roads",minzoom:12,filter:["all",["has","is_bridge"],["==","kind","minor_road"]],paint:{"line-color":i.bridges_minor,"line-width":["interpolate",["exponential",1.6],["zoom"],11,0,12.5,.5,15,2,18,11]}},{id:"roads_bridges_link",type:"line",source:t,"source-layer":"roads",minzoom:12,filter:["all",["has","is_bridge"],["has","is_link"]],paint:{"line-color":i.bridges_minor,"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,18,11]}},{id:"roads_bridges_major",type:"line",source:t,"source-layer":"roads",minzoom:12,filter:["all",["has","is_bridge"],["==","kind","major_road"]],paint:{"line-color":i.bridges_major,"line-width":["interpolate",["exponential",1.6],["zoom"],6,0,12,1.6,15,3,18,13]}},{id:"roads_bridges_highway_casing",type:"line",source:t,"source-layer":"roads",minzoom:12,filter:["all",["has","is_bridge"],["==","kind","highway"],["!has","is_link"]],paint:{"line-color":i.bridges_highway_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],3,0,3.5,.5,18,15],"line-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,1,20,15]}},{id:"roads_bridges_highway",type:"line",source:t,"source-layer":"roads",filter:["all",["has","is_bridge"],["==","kind","highway"],["!has","is_link"]],paint:{"line-color":i.bridges_highway,"line-width":["interpolate",["exponential",1.6],["zoom"],3,0,6,1.1,12,1.6,15,5,18,15]}}]}function p(t,i,r,a){return[{id:"address_label",type:"symbol",source:t,"source-layer":"buildings",minzoom:18,filter:["==","kind","address"],layout:{"symbol-placement":"point","text-font":[i.italic||"Noto Sans Italic"],"text-field":["get","addr_housenumber"],"text-size":12},paint:{"text-color":i.address_label,"text-halo-color":i.address_label_halo,"text-halo-width":1}},{id:"water_waterway_label",type:"symbol",source:t,"source-layer":"water",minzoom:13,filter:["in","kind","river","stream"],layout:{"symbol-placement":"line","text-font":[i.italic||"Noto Sans Italic"],"text-field":h(r,a,i.regular),"text-size":12,"text-letter-spacing":.2},paint:{"text-color":i.ocean_label,"text-halo-color":i.water,"text-halo-width":1}},{id:"roads_oneway",type:"symbol",source:t,"source-layer":"roads",minzoom:16,filter:["==",["get","oneway"],"yes"],layout:{"symbol-placement":"line","icon-image":"arrow","icon-rotate":90,"symbol-spacing":100}},{id:"roads_labels_minor",type:"symbol",source:t,"source-layer":"roads",minzoom:15,filter:["in","kind","minor_road","other","path"],layout:{"symbol-sort-key":["get","min_zoom"],"symbol-placement":"line","text-font":[i.regular||"Noto Sans Regular"],"text-field":h(r,a,i.regular),"text-size":12},paint:{"text-color":i.roads_label_minor,"text-halo-color":i.roads_label_minor_halo,"text-halo-width":1}},{id:"water_label_ocean",type:"symbol",source:t,"source-layer":"water",filter:["in","kind","sea","ocean","bay","strait","fjord"],layout:{"text-font":[i.italic||"Noto Sans Italic"],"text-field":h(r,a,i.regular),"text-size":["interpolate",["linear"],["zoom"],3,10,10,12],"text-letter-spacing":.1,"text-max-width":9,"text-transform":"uppercase"},paint:{"text-color":i.ocean_label,"text-halo-width":1,"text-halo-color":i.water}},{id:"earth_label_islands",type:"symbol",source:t,"source-layer":"earth",filter:["in","kind","island"],layout:{"text-font":[i.italic||"Noto Sans Italic"],"text-field":h(r,a,i.regular),"text-size":10,"text-letter-spacing":.1,"text-max-width":8},paint:{"text-color":i.subplace_label,"text-halo-color":i.subplace_label_halo,"text-halo-width":1}},{id:"water_label_lakes",type:"symbol",source:t,"source-layer":"water",filter:["in","kind","lake","water"],layout:{"text-font":[i.italic||"Noto Sans Italic"],"text-field":h(r,a,i.regular),"text-size":["interpolate",["linear"],["zoom"],3,10,6,12,10,12],"text-letter-spacing":.1,"text-max-width":9},paint:{"text-color":i.ocean_label,"text-halo-color":i.water,"text-halo-width":1}},{id:"roads_shields",type:"symbol",source:t,"source-layer":"roads",filter:["all",["in",["get","kind"],["literal",["highway","major_road"]]],["has","shield_text"],["<=",["length",["get","shield_text"]],5]],layout:{"icon-image":["match",["get","network"],"US:I",["concat","US:I-",["length",["get","shield_text"]],"char"],"NL:S-road",["concat","NL:S-road-",["length",["get","shield_text"]],"char"],["concat","generic_shield-",["length",["get","shield_text"]],"char"]],"text-field":["get","shield_text"],"text-font":[i.bold||"Noto Sans Medium"],"text-size":8,"icon-size":.8,"symbol-placement":"line","icon-rotation-alignment":"viewport","text-rotation-alignment":"viewport"},paint:{"text-color":i.roads_label_major}},{id:"roads_labels_major",type:"symbol",source:t,"source-layer":"roads",minzoom:11,filter:["in","kind","highway","major_road"],layout:{"symbol-sort-key":["get","min_zoom"],"symbol-placement":"line","text-font":[i.regular||"Noto Sans Regular"],"text-field":h(r,a,i.regular),"text-size":12},paint:{"text-color":i.roads_label_major,"text-halo-color":i.roads_label_major_halo,"text-halo-width":1}},...i.pois?[{id:"pois",type:"symbol",source:t,"source-layer":"pois",filter:["all",["in",["get","kind"],["literal",["beach","forest","marina","park","peak","zoo","garden","bench","aerodrome","station","bus_stop","ferry_terminal","stadium","university","library","school","animal","toilets","drinking_water","post_office","building","town
16hall","restaurant","fast_food","cafe","bar","supermarket","convenience","books","beauty","electronics","clothes","attraction","museum","theatre","artwork"]]],[">=",["zoom"],["+",["get","min_zoom"],0]]],layout:{"icon-image":["match",["get","kind"],"station","train_station",["get","kind"]],"text-font":[i.regular||"Noto Sans Regular"],"text-justify":"auto","text-field":h(r,a,i.regular),"text-size":["interpolate",["linear"],["zoom"],17,10,19,16],"text-max-width":8,"text-offset":[1.1,0],"text-variable-anchor":["left","right"]},paint:{"text-color":["case",["in",["get","kind"],["literal",["beach","forest","marina","park","peak","zoo","garden","bench"]]],i.pois.green,["in",["get","kind"],["literal",["aerodrome","station","bus_stop","ferry_terminal"]]],i.pois.lapis,["in",["get","kind"],["literal",["stadium","university","library","school","animal","toilets","drinking_water","post_office","building","townhall"]]],i.pois.slategray,["in",["get","kind"],["literal",["supermarket","convenience","books","beauty","electronics","clothes"]]],i.pois.blue,["in",["get","kind"],["literal",["restaurant","fast_food","cafe","bar"]]],i.pois.tangerine,["in",["get","kind"],["literal",["attraction","museum","theatre","artwork"]]],i.pois.pink,i.earth],"text-halo-color":i.earth,"text-halo-width":1}}]:[],{id:"places_subplace",type:"symbol",source:t,"source-layer":"places",filter:["in","kind","neighbourhood","macrohood"],layout:{"symbol-sort-key":["case",["has","sort_key"],["get","sort_key"],["get","min_zoom"]],"text-field":h(r,a,i.regular),"text-font":[i.regular||"Noto Sans Regular"],"text-max-width":7,"text-letter-spacing":.1,"text-padding":["interpolate",["linear"],["zoom"],5,2,8,4,12,18,15,20],"text-size":["interpolate",["exponential",1.2],["zoom"],11,8,14,14,18,24],"text-transform":"uppercase"},paint:{"text-color":i.subplace_label,"text-halo-color":i.subplace_label_halo,"text-halo-width":1}},{id:"places_region",type:"symbol",source:t,"source-layer":"places",filter:["==","kind","region"],layout:{"symbol-sort-key":["get","sort_key"],"text-field":["step",["zoom"],["coalesce",["get","ref:en"],["get","ref"]],6,h(r,a,i.regular)],"text-font":[i.regular||"Noto Sans Regular"],"text-size":["interpolate",["linear"],["zoom"],3,11,7,16],"text-radial-offset":.2,"text-anchor":"center","text-transform":"uppercase"},paint:{"text-color":i.state_label,"text-halo-color":i.state_label_halo,"text-halo-width":1}},{id:"places_locality",type:"symbol",source:t,"source-layer":"places",filter:["==","kind","locality"],layout:{"icon-image":["step",["zoom"],["case",["==",["get","capital"],"yes"],"capital","townspot"],8,""],"icon-size":.7,"text-field":h(r,a,i.regular),"text-font":["case",["<=",["get","min_zoom"],5],["literal",[i.bold||"Noto Sans Medium"]],["literal",[i.regular||"Noto Sans Regular"]]],"symbol-sort-key":["case",["has","sort_key"],["get","sort_key"],["get","min_zoom"]],"text-padding":["interpolate",["linear"],["zoom"],5,3,8,7,12,11],"text-size":["interpolate",["linear"],["zoom"],2,["case",["<",["get","population_rank"],13],8,[">=",["get","population_rank"],13],13,0],4,["case",["<",["get","population_rank"],13],10,[">=",["get","population_rank"],13],15,0],6,["case",["<",["get","population_rank"],12],11,[">=",["get","population_rank"],12],17,0],8,["case",["<",["get","population_rank"],11],11,[">=",["get","population_rank"],11],18,0],10,["case",["<",["get","population_rank"],9],12,[">=",["get","population_rank"],9],20,0],15,["case",["<",["get","population_rank"],8],12,[">=",["get","population_rank"],8],22,0]],"icon-padding":["interpolate",["linear"],["zoom"],0,0,8,4,10,8,12,6,22,2],"text-justify":"auto","text-variable-anchor":["step",["zoom"],["literal",["bottom","left","right","top"]],8,["literal",["center"]]],"text-radial-offset":.3},paint:{"text-color":i.city_label,"text-halo-color":i.city_label_halo,"text-halo-width":1}},{id:"places_country",type:"symbol",source:t,"source-layer":"places",filter:["==","kind","country"],layout:{"symbol-sort-key":["case",["has","sort_key"],["get","sort_key"],["get","min_zoom"]],"text-field":u(r,a),"text-font":[i.bold||"Noto Sans Medium"],"text-size":["interpolate",["linear"],["zoom"],2,["case",["<",["get","population_rank"],10],8,[">=",["get","population_rank"],10],12,0],6,["case",["<",["get","population_rank"],8],10,[">=",["get","population_rank"],8],18,0],8,["case",["<",["get","population_rank"],7],11,[">=",["get","population_rank"],7],20,0]],"icon-padding":["interpolate",["linear"],["zoom"],0,2,14,2,16,20,17,2,22,2],"text-transform":"uppercase"},paint:{"text-color":i.country_label,"text-halo-color":i.earth,"text-halo-width":1}}]}n(f,"nolabels_layers"),n(p,"labels_layers");var m={background:"#cccccc",earth:"#e2dfda",park_a:"#cfddd5",park_b:"#9cd3b4",hospital:"#e4dad9",industrial:"#d1dde1",school:"#e4ded7",wood_a:"#d0ded0",wood_b:"#a0d9a0",pedestrian:"#e3e0d4",scrub_a:"#cedcd7",scrub_b:"#99d2bb",glacier:"#e7e7e7",sand:"#e2e0d7",beach:"#e8e4d0",aerodrome:"#dadbdf",runway:"#e9e9ed",water:"#80deea",zoo:"#c6dcdc",military:"#dcdcdc",tunnel_other_casing:"#e0e0e0",tunnel_minor_casing:"#e0e0e0",tunnel_link_casing:"#e0e0e0",tunnel_major_casing:"#e0e0e0",tunnel_highway_casing:"#e0e0e0",tunnel_other:"#d5d5d5",tunnel_minor:"#d5d5d5",tunnel_link:"#d5d5d5",tunnel_major:"#d5d5d5",tunnel_highway:"#d5d5d5",pier:"#e0e0e0",buildings:"#cccccc",minor_service_casing:"#e0e0e0",minor_c
16asing:"#e0e0e0",link_casing:"#e0e0e0",major_casing_late:"#e0e0e0",highway_casing_late:"#e0e0e0",other:"#ebebeb",minor_service:"#ebebeb",minor_a:"#ebebeb",minor_b:"#ffffff",link:"#ffffff",major_casing_early:"#e0e0e0",major:"#ffffff",highway_casing_early:"#e0e0e0",highway:"#ffffff",railway:"#a7b1b3",boundaries:"#adadad",bridges_other_casing:"#e0e0e0",bridges_minor_casing:"#e0e0e0",bridges_link_casing:"#e0e0e0",bridges_major_casing:"#e0e0e0",bridges_highway_casing:"#e0e0e0",bridges_other:"#ebebeb",bridges_minor:"#ffffff",bridges_link:"#ffffff",bridges_major:"#f5f5f5",bridges_highway:"#ffffff",roads_label_minor:"#91888b",roads_label_minor_halo:"#ffffff",roads_label_major:"#938a8d",roads_label_major_halo:"#ffffff",ocean_label:"#728dd4",subplace_label:"#8f8f8f",subplace_label_halo:"#e0e0e0",city_label:"#5c5c5c",city_label_halo:"#e0e0e0",state_label:"#b3b3b3",state_label_halo:"#e0e0e0",country_label:"#a3a3a3",address_label:"#91888b",address_label_halo:"#ffffff",pois:{blue:"#1A8CBD",green:"#20834D",lapis:"#315BCF",pink:"#EF56BA",red:"#F2567A",slategray:"#6A5B8F",tangerine:"#CB6704",turquoise:"#00C3D4"},landcover:{grassland:"rgba(210, 239, 207, 1)",barren:"rgba(255, 243, 215, 1)",urban_area:"rgba(230, 230, 230, 1)",farmland:"rgba(216, 239, 210, 1)",glacier:"rgba(255, 255, 255, 1)",scrub:"rgba(234, 239, 210, 1)",forest:"rgba(196, 231, 210, 1)"}},g={background:"#34373d",earth:"#1f1f1f",park_a:"#1c2421",park_b:"#192a24",hospital:"#252424",industrial:"#222222",school:"#262323",wood_a:"#202121",wood_b:"#202121",pedestrian:"#1e1e1e",scrub_a:"#222323",scrub_b:"#222323",glacier:"#1c1c1c",sand:"#212123",beach:"#28282a",aerodrome:"#1e1e1e",runway:"#333333",water:"#31353f",zoo:"#222323",military:"#242323",tunnel_other_casing:"#141414",tunnel_minor_casing:"#141414",tunnel_link_casing:"#141414",tunnel_major_casing:"#141414",tunnel_highway_casing:"#141414",tunnel_other:"#292929",tunnel_minor:"#292929",tunnel_link:"#292929",tunnel_major:"#292929",tunnel_highway:"#292929",pier:"#333333",buildings:"#111111",minor_service_casing:"#1f1f1f",minor_casing:"#1f1f1f",link_casing:"#1f1f1f",major_casing_late:"#1f1f1f",highway_casing_late:"#1f1f1f",other:"#333333",minor_service:"#333333",minor_a:"#3d3d3d",minor_b:"#333333",link:"#3d3d3d",major_casing_early:"#1f1f1f",major:"#3d3d3d",highway_casing_early:"#1f1f1f",highway:"#474747",railway:"#000000",boundaries:"#5b6374",bridges_other_casing:"#2b2b2b",bridges_minor_casing:"#1f1f1f",bridges_link_casing:"#1f1f1f",bridges_major_casing:"#1f1f1f",bridges_highway_casing:"#1f1f1f",bridges_other:"#333333",bridges_minor:"#333333",bridges_link:"#3d3d3d",bridges_major:"#3d3d3d",bridges_highway:"#474747",roads_label_minor:"#525252",roads_label_minor_halo:"#1f1f1f",roads_label_major:"#666666",roads_label_major_halo:"#1f1f1f",ocean_label:"#717784",subplace_label:"#525252",subplace_label_halo:"#1f1f1f",city_label:"#7a7a7a",city_label_halo:"#212121",state_label:"#3d3d3d",state_label_halo:"#1f1f1f",country_label:"#5c5c5c",address_label:"#525252",address_label_halo:"#1f1f1f",pois:{blue:"#4299BB",green:"#30C573",lapis:"#2B5CEA",pink:"#EF56BA",red:"#F2567A",slategray:"#93939F",tangerine:"#F19B6E",turquoise:"#00C3D4"},landcover:{grassland:"rgba(30, 41, 31, 1)",barren:"rgba(38, 38, 36, 1)",urban_area:"rgba(28, 28, 28, 1)",farmland:"rgba(31, 36, 32, 1)",glacier:"rgba(43, 43, 43, 1)",scrub:"rgba(34, 36, 30, 1)",forest:"rgba(28, 41, 37, 1)"}},y={background:"#ffffff",earth:"#ffffff",park_a:"#fcfcfc",park_b:"#fcfcfc",hospital:"#f8f8f8",industrial:"#fcfcfc",school:"#f8f8f8",wood_a:"#fafafa",wood_b:"#fafafa",pedestrian:"#fdfdfd",scrub_a:"#fafafa",scrub_b:"#fafafa",glacier:"#fcfcfc",sand:"#fafafa",beach:"#f6f6f6",aerodrome:"#fdfdfd",runway:"#efefef",water:"#dcdcdc",zoo:"#f7f7f7",military:"#fcfcfc",tunnel_other_casing:"#d6d6d6",tunnel_minor_casing:"#fcfcfc",tunnel_link_casing:"#fcfcfc",tunnel_major_casing:"#fcfcfc",tunnel_highway_casing:"#fcfcfc",tunnel_other:"#d6d6d6",tunnel_minor:"#d6d6d6",tunnel_link:"#d6d6d6",tunnel_major:"#d6d6d6",tunnel_highway:"#d6d6d6",pier:"#efefef",buildings:"#efefef",minor_service_casing:"#ffffff",minor_casing:"#ffffff",link_casing:"#ffffff",major_casing_late:"#ffffff",highway_casing_late:"#ffffff",other:"#f5f5f5",minor_service:"#f5f5f5",minor_a:"#ebebeb",minor_b:"#f5f5f5",link:"#ebebeb",major_casing_early:"#ffffff",major:"#ebebeb",highway_casing_early:"#ffffff",highway:"#ebebeb",railway:"#d6d6d6",boun
16daries:"#adadad",bridges_other_casing:"#ffffff",bridges_minor_casing:"#ffffff",bridges_link_casing:"#ffffff",bridges_major_casing:"#ffffff",bridges_highway_casing:"#ffffff",bridges_other:"#f5f5f5",bridges_minor:"#f5f5f5",bridges_link:"#ebebeb",bridges_major:"#ebebeb",bridges_highway:"#ebebeb",roads_label_minor:"#adadad",roads_label_minor_halo:"#ffffff",roads_label_major:"#999999",roads_label_major_halo:"#ffffff",ocean_label:"#adadad",subplace_label:"#8f8f8f",subplace_label_halo:"#ffffff",city_label:"#5c5c5c",city_label_halo:"#ffffff",state_label:"#b3b3b3",state_label_halo:"#ffffff",country_label:"#b8b8b8",address_label:"#adadad",address_label_halo:"#ffffff"},_={background:"#a3a3a3",earth:"#cccccc",park_a:"#c2c2c2",park_b:"#c2c2c2",hospital:"#d0d0d0",industrial:"#c6c6c6",school:"#d0d0d0",wood_a:"#c2c2c2",wood_b:"#c2c2c2",pedestrian:"#c4c4c4",scrub_a:"#c2c2c2",scrub_b:"#c2c2c2",glacier:"#d2d2d2",sand:"#d2d2d2",beach:"#d2d2d2",aerodrome:"#c9c9c9",runway:"#f5f5f5",water:"#a3a3a3",zoo:"#c7c7c7",military:"#bfbfbf",tunnel_other_casing:"#b8b8b8",tunnel_minor_casing:"#b8b8b8",tunnel_link_casing:"#b8b8b8",tunnel_major_casing:"#b8b8b8",tunnel_highway_casing:"#b8b8b8",tunnel_other:"#d6d6d6",tunnel_minor:"#d6d6d6",tunnel_link:"#d6d6d6",tunnel_major:"#d6d6d6",tunnel_highway:"#d6d6d6",pier:"#b8b8b8",buildings:"#e0e0e0",minor_service_casing:"#cccccc",minor_casing:"#cccccc",link_casing:"#cccccc",major_casing_late:"#cccccc",highway_casing_late:"#cccccc",other:"#e0e0e0",minor_service:"#e0e0e0",minor_a:"#ebebeb",minor_b:"#e0e0e0",link:"#ebebeb",major_casing_early:"#cccccc",major:"#ebebeb",highway_casing_early:"#cccccc",highway:"#ebebeb",railway:"#f5f5f5",boundaries:"#5c5c5c",bridges_other_casing:"#cccccc",bridges_minor_casing:"#cccccc",bridges_link_casing:"#cccccc",bridges_major_casing:"#cccccc",bridges_highway_casing:"#cccccc",bridges_other:"#e0e0e0",bridges_minor:"#e0e0e0",bridges_link:"#ebebeb",bridges_major:"#ebebeb",bridges_highway:"#ebebeb",roads_label_minor:"#999999",roads_label_minor_halo:"#e0e0e0",roads_label_major:"#8f8f8f",roads_label_major_halo:"#ebebeb",ocean_label:"#7a7a7a",subplace_label:"#7a7a7a",subplace_label_halo:"#cccccc",city_label:"#474747",city_label_halo:"#cccccc",state_label:"#999999",state_label_halo:"#cccccc",country_label:"#858585",address_label:"#999999",address_label_halo:"#e0e0e0"},v={background:"#2b2b2b",earth:"#141414",park_a:"#181818",park_b:"#181818",hospital:"#1d1d1d",industrial:"#101010",school:"#111111",wood_a:"#1a1a1a",wood_b:"#1a1a1a",pedestrian:"#191919",scrub_a:"#1c1c1c",scrub_b:"#1c1c1c",glacier:"#191919",sand:"#161616",beach:"#1f1f1f",aerodrome:"#191919",runway:"#323232",water:"#333333",zoo:"#191919",military:"#121212",tunnel_other_casing:"#101010",tunnel_minor_casing:"#101010",tunnel_link_casing:"#101010",tunnel_major_casing:"#101010",tunnel_highway_casing:"#101010",tunnel_other:"#292929",tunnel_minor:"#292929",tunnel_link:"#292929",tunnel_major:"#292929",tunnel_highway:"#292929",pier:"#0a0a0a",buildings:"#0a0a0a",minor_service_casing:"#141414",minor_casing:"#141414",link_casing:"#141414",major_casing_late:"#141414",highway_casing_late:"#141414",other:"#1f1f1f",minor_service:"#1f1f1f",minor_a:"#292929",minor_b:"#1f1f1f",link:"#1f1f1f",major_casing_early:"#141414",major:"#292929",highway_casing_early:"#141414",highway:"#292929",railway:"#292929",boundaries:"#707070",bridges_other_casing:"#141414",bridges_minor_casing:"#141414",bridges_link_casing:"#141414",bridges_major_casing:"#141414",bridges_highway_casing:"#141414",bridges_other:"#1f1f1f",bridges_minor:"#1f1f1f",bridges_link:"#292929",bridges_major:"#292929",bridges_highway:"#292929",roads_label_minor:"#525252",roads_label_minor_halo:"#141414",roads_label_major:"#5c5c5c",roads_label_major_halo:"#141414",ocean_label:"#707070",subplace_label:"#5c5c5c",subplace_label_halo:"#141414",city_label:"#999999",city_label_halo:"#141414",state_label:"#3d3d3d",state_label_halo:"#141414",country_label:"#707070",address_label:"#525252",address_label_halo:"#141414"};function b(t){switch(t){case"light":return m;case"dark":return g;case"white":return y;case"grayscale":return _;case"black":return v}throw Error("Flavor not found")}function x(t,i,r){let a=[];return null!=r&&r.labelsOnly||(a=f(t,i)),null!=r&&r.lang&&(a=a.concat(p(t,i,r.lang))),a}n(b,"namedFlavor"),n(x,"layers"),r.d(i,{ZF:()=>x,uV:()=>b})},19637(t,i,r){var a=r(75710),n=r(65568),o=r(70858),s=r(60033);let l={};function c(t){let i=l[t];if(i)return i;let r=s.j[t];if((0,a.a3)(r))return l[t]=r.bind(s.j);let c=s.j.document;if(c&&"function"==typeof c.createElement)try{let i=c.createElement("iframe");i.hidden=!0,c.head.appendChild(i);let a=i.contentWindow;a?.[t]&&(r=a[t]),c.head.removeChild(i)}catch(i){o.T&&n.Yz.warn(`Could not create sandbox iframe for ${t} check, bailing to window.${t}: `,i)}return r?l[t]=r.bind(s.j):r}function u(t){l[t]=void 0}r.d(i,{qd:()=>c,y7:()=>u})},9268(t,i,r){r.d(i,{},{aVR:"url.full"})},15402(t,i,r){let a;var n=r(73192),o=r(76186),s=r(3250),l=r(14587);function c(){let t=(0,o.EU)();return(0,n.h)(t).getCurrentScope()}function u(){let t=(0,o.EU)();return(0,n.h)(t).getIsolationScope()}function h(){return(0,o.BY)("globalScope",()=>new s.H)}function d(...t){let i=(0,o.EU)(),r=(0,n.h)(i);if(2===t.length){let[i,a]=t;return i?r.withSetScope(i,a):r.withScope(a)}return r.withScope(t[0])}function f(){return c().getClient()}function p(t){let i=a?.();if(i)return{trace_id:i.traceId,span_id:i.spanId};let{traceId:r,parentSpanId:n,propagationSpanId:o}=t.getPropagationContext(),s={trace_id:r,span_id:o||(0,l.Z)()};return n&&(s.parent_span_id=n),s}r.d(i,{KU:()=>f,m6:()=>h,o5:()=>c,rm:()=>u,v4:()=>d,vn:()=>p})}
16,80508(t,i,r){var a=r(4129),n=r(37210),o=r(21365);function s(t,i,r,s){let l=(0,n.Cj)(r),c={sent_at:new Date((0,o.Wk)()).toISOString(),...l&&{sdk:l},...!!s&&i&&{dsn:(0,a.SB)(i)}},u="aggregates"in t?[{type:"sessions"},t]:[{type:"session"},t.toJSON()];return(0,n.h4)(c,[u])}function l(t,i,r,a){let o=(0,n.Cj)(r),s=t.type&&"replay_event"!==t.type?t.type:"event";!function(t,i){if(!i)return;let r=t.sdk||{};t.sdk={...r,name:r.name||i.name,version:r.version||i.version,integrations:[...t.sdk?.integrations||[],...i.integrations||[]],packages:[...t.sdk?.packages||[],...i.packages||[]],settings:t.sdk?.settings||i.settings?{...t.sdk?.settings,...i.settings}:void 0}}(t,r?.sdk);let l=(0,n.n2)(t,o,a,i);delete t.sdkProcessingMetadata;let c=[{type:s},t];return(0,n.h4)(l,[c])}r.d(i,{LE:()=>s,V7:()=>l})},86849(t,i,r){var a=r(15402),n=r(25206),o=r(28319),s=r(68732),l=r(77127);function c(t,i){return(0,a.o5)().captureException(t,(0,o.li)(i))}function u(t,i){return(0,a.o5)().captureEvent(t,i)}function h(t){let i=(0,a.rm)(),{user:r}=(0,s.Om)(i,(0,a.o5)()),{userAgent:o}=l.O.navigator||{},c=(0,n.fj)({user:r,...o&&{userAgent:o},...t}),u=i.getSession();return u?.status==="ok"&&(0,n.qO)(u,{status:"exited"}),d(),i.setSession(c),c}function d(){let t=(0,a.rm)(),i=(0,a.o5)().getSession()||t.getSession();i&&(0,n.Vu)(i),f(),t.setSession()}function f(){let t=(0,a.rm)(),i=(0,a.KU)(),r=t.getSession();r&&i&&i.captureSession(r)}function p(t=!1){t?d():f()}r.d(i,{Cp:()=>c,J0:()=>h,J5:()=>p,r:()=>u})},52318(t,i,r){var a=r(15402),n=r(95258),o=r(85265),s=r(75710),l=r(79935),c=r(77127),u=r(38901);function h(t,i){let r="fetch",h=(0,u.s5)(r,t);return(0,u.AS)(r,()=>(function(t,i=!1){(!i||(0,s.m7)())&&(0,o.GS)(c.O,"fetch",function(i){return function(...r){let s=Error(),{method:h,url:p}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){let[i,r]=t;return{url:f(i),method:d(r,"method")?String(r.method).toUpperCase():(0,n.ks)(i)&&d(i,"method")?String(i.method).toUpperCase():"GET"}}let i=t[0];return{url:f(i),method:d(i,"method")?String(i.method).toUpperCase():"GET"}}(r),m={args:r,fetchData:{method:h,url:p},startTimestamp:1e3*(0,l.zf)(),virtualError:s,headers:function(t){let[i,r]=t;try{if("object"==typeof r&&null!==r&&"headers"in r&&r.headers)return new Headers(r.headers);if((0,n.ks)(i))return new Headers(i.headers)}catch{}}(r)};return t||(0,u.aj)("fetch",{...m}),i.apply(c.O,r).then(async i=>(t?t(i):(0,u.aj)("fetch",{...m,endTimestamp:1e3*(0,l.zf)(),response:i}),i),t=>{(0,u.aj)("fetch",{...m,endTimestamp:1e3*(0,l.zf)(),error:t}),(0,n.bJ)(t)&&void 0===t.stack&&(t.stack=s.stack,(0,o.my)(t,"framesToPop",1));let i=(0,a.KU)(),r=i?.getOptions().enhanceFetchErrorMessages??"always";if(!1!==r&&(0,n.bJ)(t)&&"TypeError"===t.name&&("Failed to fetch"===t.message||"Load failed"===t.message||"NetworkError when attempting to fetch resource."===t.message))try{let i=new URL(m.fetchData.url).host;"always"===r?t.message=`${t.message} (${i})`:(0,o.my)(t,"__sentry_fetch_url_host__",i)}catch{}throw t})}})})(void 0,i)),h}function d(t,i){return(0,n.Z4)(t)&&!!t[i]}function f(t){return"string"==typeof t?t:t?d(t,"url")?t.url:t.toString?t.toString():"":""}r.d(i,{ur:()=>h})},89225(t,i,r){r.d(i,{},{E1:"sentry.profile_id",Ef:"sentry.previous_trace_sample_rate",Fy:"gen_ai.conversation.id",JD:"sentry.origin",i_:"sentry.source",jG:"sentry.exclusive_time",sy:"sentry.sample_rate",uT:"sentry.op"})},28128(t,i,r){var a=r(32171),n=r(15402),o=r(89225),s=r(93970),l=r(4129),c=r(13042),u=r(91265),h=r(74590),d=r(17010);function f(t,i){let r=i.getOptions(),{publicKey:n}=i.getDsn()||{},o={environment:r.environment||a.U,release:r.release,public_key:n,trace_id:t,org_id:(0,l.ul)(i)};return i.emit("createDsc",o),o}function p(t,i){let r=i.getPropagationContext();return r.dsc||f(r.traceId,t)}function m(t){let i=(0,n.KU)();if(!i)return{};let r=(0,u.zU)(t),a=(0,u.et)(r),l=a.data,m=r.spanContext().traceState,g=m?.get("sentry.sample_rate")??l[o.sy]??l[o.Ef];function y(t){return("number"==typeof g||"string"==typeof g)&&(t.sample_rate=`${g}`),t}let _=r._frozenDsc;if(_)return y(_);let v=(0,h.h)(r),b=v&&"ignored"===r.dropReason;if(v&&(!(0,c.f)(i.getOptions())||b)){let t=(0,d.Lb)(r).scope;if(t){let r={...p(i,t)};return b&&(r.sampled="false"),y(r)}}let x=m?.get("sentry.dsc"),w=x&&(0,s.yD)(x);if(w)return y(w);let k=f(t.spanContext().traceId,i),T=l[o.i_]??l["sentry.segment.name.source"],S=a.description;return"url"!==T&&S&&(k.transaction=S),(0,c.f)()&&(k.sampled=String((0,u.pK)(r)),k.sample_rand=m?.get("sentry.sample_rand")??(0,d.Lb)(r).scope?.getPropagationContext().sampleRand.toString()),y(k),i.emit("createDsc",k,r),k}r.d(i,{ao:()=>p,k1:()=>m})},74590(t,i,r){let a=Symbol.for("sentry.nonRecordingSpan");function n(t){return!!t&&!0===t[a]}r.d(i,{h:()=>n})},17010(t,i,r){var a=r(33661);function n(t){return{scope:t._sentryScope,isolationScope:(0,a.q)(t._sentryIsolationScope)}}r.d(i,{Lb:()=>n})},93970(t,i,r){var a=r(95258);let n="sentry-";function o(t){let i=function(t){if(t&&((0,a.Kg)(t)||Array.isArray(t)))return Array.isArray(t)?t.reduce((t,i)=>
16(Object.entries(s(i)).forEach(([i,r])=>{t[i]=r}),t),{}):s(t)}(t);if(!i)return;let r=Object.entries(i).reduce((t,[i,r])=>(i.startsWith(n)&&(t[i.slice(n.length)]=r),t),{});return Object.keys(r).length>0?r:void 0}function s(t){return t.split(",").map(t=>{let i=t.indexOf("=");return -1===i?[]:[t.slice(0,i),t.slice(i+1)].map(t=>{try{return decodeURIComponent(t.trim())}catch{return}})}).reduce((t,[i,r])=>(i&&r&&(t[i]=r),t),{})}r.d(i,{yD:()=>o})},37210(t,i,r){var a=r(76186),n=r(4129),o=r(50744),s=r(21365),l=r(77127);function c(t,i=[]){return[t,i]}function u(t,i){let[r,a]=t;return[r,[...a,i]]}function h(t,i){for(let r of t[1]){let t=r[0].type;if(i(r,t))return!0}return!1}function d(t,i){return h(t,(t,r)=>i.includes(r))}function f(t){let i=(0,a.Se)(l.O);return i.encodePolyfill?i.encodePolyfill(t):new TextEncoder().encode(t)}function p(t){let[i,r]=t,a=JSON.stringify(i);function n(t){"string"==typeof a?a="string"==typeof t?a+t:[f(a),t]:a.push("string"==typeof t?f(t):t)}for(let t of r){let[i,r]=t;if(n(`
17${JSON.stringify(i)}
18`),"string"==typeof r||r instanceof Uint8Array)n(r);else{let t;try{t=JSON.stringify(r)}catch{t=JSON.stringify((0,o.S8)(r))}n(t)}}return"string"==typeof a?a:function(t){let i=new Uint8Array(t.reduce((t,i)=>t+i.length,0)),r=0;for(let a of t)i.set(a,r),r+=a.length;return i}(a)}function m(t){let i="string"==typeof t.data?f(t.data):t.data;return[{type:"attachment",length:i.length,filename:t.filename,content_type:t.contentType,attachment_type:t.attachmentType},i]}let g={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function y(t){return t in g?g[t]:t}function _(t){if(!t?.sdk)return;let{name:i,version:r}=t.sdk;return{name:i,version:r}}function v(t,i,r,a){let o=t.sdkProcessingMetadata?.dynamicSamplingContext;return{event_id:t.event_id,sent_at:new Date((0,s.Wk)()).toISOString(),...i&&{sdk:i},...!!r&&a&&{dsn:(0,n.SB)(a)},...o&&{trace:o}}}r.d(i,{Cj:()=>_,W3:()=>u,bN:()=>p,bm:()=>m,h4:()=>c,hP:()=>d,n2:()=>v,yH:()=>h,zk:()=>y})},95258(t,i,r){let a=Object.prototype.toString;function n(t){switch(a.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return _(t,Error)}}function o(t,i){return a.call(t)===`[object ${i}]`}function s(t){return o(t,"ErrorEvent")}function l(t){return o(t,"DOMError")}function c(t){return o(t,"DOMException")}function u(t){return o(t,"String")}function h(t){return"object"==typeof t&&null!==t&&"__sentry_template_string__"in t&&"__sentry_template_values__"in t}function d(t){return null===t||h(t)||"object"!=typeof t&&"function"!=typeof t}function f(t){return o(t,"Object")}function p(t){return"object"==typeof t&&null!==t}function m(t){return"u">typeof Event&&_(t,Event)}function g(t){return o(t,"RegExp")}function y(t){return!!(t?.then&&"function"==typeof t.then)}function _(t,i){try{return t instanceof i}catch{return!1}}function v(t){return"u">typeof Request&&_(t,Request)}r.d(i,{BD:()=>l,Kg:()=>u,NF:()=>h,Qd:()=>f,Qg:()=>y,T2:()=>s,W6:()=>c,Z4:()=>p,bJ:()=>n,gd:()=>g,ks:()=>v,sO:()=>d,xH:()=>m})},91265(t,i,r){var a=r(80665),n=r(89225),o=r(17010),s=r(14587),l=r(79935),c=r(65568);let u=!1;function h(t){let{spanId:i,traceId:r,isRemote:a}=t.spanContext(),n=a?i:p(t).parent_span_id,l=(0,o.Lb)(t).scope;return{parent_span_id:n,span_id:a?l?.getPropagationContext().propagationSpanId||(0,s.Z)():i,trace_id:r}}function d(t){return"number"==typeof t?f(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?f(t.getTime()):(0,l.zf)()}function f(t){return t>0x2540be3ff?t/1e3:t}function p(t){var i,r;if("function"==typeof t.getSpanJSON)return t.getSpanJSON();let{spanId:a,traceId:o}=t.spanContext();if((i=t).attributes&&i.startTime&&i.name&&i.endTime&&i.status){let{attributes:i,startTime:s,name:l,endTime:c,status:u,links:h}=t;return{span_id:a,trace_id:o,data:i,description:l,parent_span_id:"parentSpanId"in(r=t)?r.parentSpanId:"parentSpanContext"in r?r.parentSpanContext?.spanId:void 0,start_timestamp:d(s),timestamp:d(c)||void 0,status:function(t){if(t&&0!==t.code)return 1===t.code?"ok":t.message||"internal_error"}(u),op:i[n.uT],origin:i[n.JD],links:h&&h.length>0?h.map(({context:{spanId:t,traceId:i,traceFlags:r,...a},attributes:n}
18)=>({span_id:t,trace_id:i,sampled:1===r,attributes:n,...a})):void 0}}return{span_id:a,trace_id:o,start_timestamp:0,data:{}}}function m(t){return{...t,attributes:(0,a.SY)(t.attributes),links:t.links?.map(t=>({...t,attributes:(0,a.SY)(t.attributes)}))}}function g(t){let{traceFlags:i}=t.spanContext();return 1===i}function y(){u||((0,c.pq)(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),u=!0)}r.d(i,{PL:()=>m,et:()=>p,kX:()=>h,pK:()=>g,xl:()=>y},{zU:function(t){return t._sentryRootSpan||t}})},79935(t,i,r){let a;var n=r(21365),o=r(77127);function s(){return(0,n.Wk)()/1e3}function l(){return(a??(a=function(){let{performance:t}=o.O;if(!t?.now||!t.timeOrigin)return s;let i=t.timeOrigin;return()=>(i+(0,n.Qw)(()=>t.now()))/1e3}()))()}r.d(i,{lu:()=>s,zf:()=>l})},54493(t,i,r){function a(t){if(!t)return{};let i=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!i)return{};let r=i[6]||"",a=i[8]||"";return{host:i[4],path:i[5],protocol:i[2],search:r,hash:a,relative:i[5]+r+a}}function n(t,i=!0){if(t.startsWith("data:")){let r=t.match(/^data:([^;,]+)/),a=r?r[1]:"text/plain",n=t.includes(";base64,"),o=t.indexOf(","),s="";if(i&&-1!==o){let i=t.slice(o+1);s=i.length>10?`${i.slice(0,10)}... [truncated]`:i}return`data:${a}${n?",base64":""}${s?`,${s}`:""}`}return t}r.d(i,{Dl:()=>a,zm:()=>n})},92669(){let t;var i,r,a,n,o,s,l,c=Array.isArray,u=Array.prototype.indexOf,h=Array.prototype.includes,d=Array.from,f=Object.keys,p=Object.defineProperty,m=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyDescriptors,y=Object.prototype,_=Array.prototype,v=Object.getPrototypeOf,b=Object.isExtensible;let x=()=>{};function w(){var t,i;return{promise:new Promise((r,a)=>{t=r,i=a}),resolve:t,reject:i}}let k=Symbol("$state"),T=Symbol("legacy props"),S=Symbol(""),A=Symbol("attributes"),C=Symbol("class"),E=Symbol("style"),M=Symbol("text"),P=Symbol("form reset"),D=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},I=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function z(t){return t===this.v}function F(t,i){return t!=t?i==i:t!==i||null!==t&&"object"==typeof t||"function"==typeof t}function R(t){return!F(t,this.v)}let O={},B=Symbol("uninitialized"),j="http://www.w3.org/1999/xhtml",N=null;function $(t,i=!1,r){N={p:N,i:!1,c:null,e:null,s:t,x:null,r:tt,l:null}}function V(t){var i=N,r=i.e;if(null!==r)for(var a of(i.e=null,r))tx(a);return void 0!==t&&(i.x=t),i.i=!0,N=i.p,t??{}}let U=[];function G(){var t=U;U=[];for(var i=0;i<t.length;i++)t[i]()}function q(t){if(0===U.length&&!eC){var i=U;queueMicrotask(()=>{i===U&&G()})}U.push(t)}function Z(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let H=!1;function W(i){if(null===i)throw Z(),O;return t=i}function X(){return W(en(t))}function Y(i){if(H){if(null!==en(t))throw Z(),O;t=i}}function K(i=1){if(H){for(var r=i,a=t;r--;)a=en(a);t=a}}function J(i=!0){for(var r=0,a=t;;){if(8===a.nodeType){var n=a.data;if("]"===n){if(0===r)return a;r-=1}else"["!==n&&"[!"!==n&&("["!==n[0]||isNaN(Number(n.slice(1))))||(r+=1)}var o=en(a);i&&a.remove(),a=o}}function Q(t){if(!t||8!==t.nodeType)throw Z(),O;return t.data}function ee(t){if("object"!=typeof t||null===t||k in t)return t;let i=v(t);if(i!==y&&i!==_)return t;var r=new Map,a=c(t),n=eQ(0),o=tc,s=t=>{if(tc===o)return t();var i=e9,r=tc;e9=null,tc=o;var a=t();return e9=i,tc=r,a};return a&&r.set("length",eQ(t.length)),new Proxy(t,{defineProperty(t,i,a){"value"in a&&!1!==a.configurable&&!1!==a.enumerable&&!1!==a.writable||function(){throw Error("https://svelte.dev/e/state_descriptors_fixed")}();var n=r.get(i);return void 0===n?s(()=>{var t=eQ(a.value);return r.set(i,t),t}):e0(n,a.value,!0),!0},deleteProperty(t,i){var a=r.get(i);if(void 0===a){if(i in t){let t=s(()=>eQ(B));r.set(i,t),e3(n)}}else e0(a,B),e3(n);return!0},get(i,a,n){if(a===k)return t;var o=r.get(a),l=a in i;if(void 0===o&&(!l||m(i,a)?.writable)&&(o=s(()=>eQ(ee(l?i[a]:B))),r.set(a,o)),void 0!==o){var c=tm(o);return c===B?void 0:c}return Reflect.get(i,a,n)},getOwnPropertyDescriptor(t,i){var a=Reflect.getOwnPropertyDescriptor(t,i);if(a&&"value"in a){var n=r.get(i);n&&(a.value=tm(n))}else if(void 0===a){var o=r.get(i),s=o?.v;if(void 0!==o&&s!==B)return{enumerable:!0,configurable:!0,value:s,writable:!0}}return a},has(t,i){if(i===k)return!0;var a=r.get(i),n=void 0!==a&&a.v!==B||Reflect.has(t,i);return(!(void 0!==a||null!==tt&&(!n||m(t,i)?.writable))||(void 0===a&&(a=s(()=>
18eQ(n?ee(t[i]):B)),r.set(i,a)),tm(a)!==B))&&n},set(t,i,o,l){var c=r.get(i),u=i in t;if(a&&"length"===i)for(var h=o;h<c.v;h+=1){var d=r.get(h+"");void 0!==d?e0(d,B):h in t&&(d=s(()=>eQ(B)),r.set(h+"",d))}void 0===c?(!u||m(t,i)?.writable)&&(e0(c=s(()=>eQ(void 0)),ee(o)),r.set(i,c)):(u=c.v!==B,e0(c,s(()=>ee(o))));var f=Reflect.getOwnPropertyDescriptor(t,i);if(f?.set&&f.set.call(l,o),!u){if(a&&"string"==typeof i){var p=r.get("length"),g=Number(i);Number.isInteger(g)&&g>=p.v&&e0(p,g+1)}e3(n)}return!0},ownKeys(t){tm(n);var i=Reflect.ownKeys(t).filter(t=>{var i=r.get(t);return void 0===i||i.v!==B});for(var[a,o]of r)o.v===B||a in t||i.push(a);return i},setPrototypeOf(){throw Error("https://svelte.dev/e/state_prototype_fixed")}})}function et(t){try{if(null!==t&&"object"==typeof t&&k in t)return t[k]}catch{}return t}function ei(){if(void 0===a){a=window,n=document,o=/Firefox/.test(navigator.userAgent);var t=Element.prototype,i=Node.prototype,r=Text.prototype;s=m(i,"firstChild").get,l=m(i,"nextSibling").get,b(t)&&(t[C]=void 0,t[A]=null,t[E]=void 0,t.__e=void 0),b(r)&&(r[M]=void 0)}}function er(t=""){return document.createTextNode(t)}function ea(t){return s.call(t)}function en(t){return l.call(t)}function eo(i,r){if(!H)return ea(i);var a=ea(t);if(null===a)a=t.appendChild(er());else if(r&&3!==a.nodeType){var n=er();return a?.before(n),W(n),n}return r&&eu(a),W(a),a}function es(i,r=!1){if(!H){var a=ea(i);return a instanceof Comment&&""===a.data?en(a):a}if(r){if(t?.nodeType!==3){var n=er();return t?.before(n),W(n),n}eu(t)}return t}function el(i,r=1,a=!1){let n=H?t:i;for(;r--;)o=n,n=en(n);if(!H)return n;if(a){if(n?.nodeType!==3){var o,s=er();return null===n?o?.after(s):n.before(s),W(s),s}eu(n)}return W(n),n}function ec(t,i,r){return document.createElementNS(i??j,t,void 0)}function eu(t){if(t.nodeValue.length<65536)return;let i=t.nextSibling;for(;null!==i&&3===i.nodeType;)i.remove(),t.nodeValue+=i.nodeValue,i=t.nextSibling}function eh(t){var i=tt;if(null===i)return e9.f|=8388608,t;if((32768&i.f)==0&&(4&i.f)==0)throw t;ed(t,i)}function ed(t,i){for(;null!==i;){if((128&i.f)!=0){if((32768&i.f)==0)throw t;try{i.b.error(t);return}catch(i){t=i}}i=i.parent}throw t}function ef(t,i){t.f=-7169&t.f|i}function ep(t){(512&t.f)!=0||null===t.deps?ef(t,1024):ef(t,4096)}function em(t,i,r){(2048&t.f)!=0?i.add(t):(4096&t.f)!=0&&r.add(t),function t(i){if(null!==i)for(let r of i)(2&r.f)!=0&&(65536&r.f)!=0&&(r.f^=65536,t(r.deps))}(t.deps),ef(t,1024)}function eg(t,i,r){if(null==t)return i(void 0),x;let a=tg(()=>t.subscribe(i,r));return a.unsubscribe?()=>a.unsubscribe():a}let ey=[];function e_(t){let i;return eg(t,t=>i=t)(),i}let ev=Symbol("unmounted");function eb(t,i,r){let a=r[i]??={store:null,source:e1(void 0),unsubscribe:x};if(a.store!==t&&!(ev in r))if(a.unsubscribe(),a.store=t??null,null==t)a.source.v=void 0,a.unsubscribe=x;else{var n=!0;a.unsubscribe=eg(t,t=>{n?a.source.v=t:e0(a.source,t)}),n=!1}return t&&ev in r?e_(t):tm(a.source)}let ex=null,ew=null,ek=null,eT=null,eS=null,eA=null,eC=!1,eE=!1,eM=null,eP=null;var eD=0;let eI=1;class ez{id=eI++;#e=!1;linked=!0;#t=null;#i=null;async_deriveds=new Map;current=new Map;previous=new Map;unblocked=new Set;#r=new Set;#a=new Set;#n=new Set;#o=0;#s=new Map;#l=null;#c=[];#u=[];#h=new Set;#d=new Set;#f=new Map;#p=new Set;is_fork=!1;#m=!1;#g(){if(this.is_fork)return!0;for(let r of this.#s.keys()){for(var t=r,i=!1;null!==t.parent;){if(this.#f.has(t)){i=!0;break}t=t.parent}if(!i)return!0}return!1}skip_effect(t){this.#f.has(t)||this.#f.set(t,{d:[],m:[]}),this.#p.delete(t)}unskip_effect(t,i=t=>this.schedule(t)){var r=this.#f.get(t);if(r){for(var a of(this.#f.delete(t),r.d))ef(a,2048),i(a);for(a of r.m)ef(a,4096),i(a)}this.#p.add(t)}#y(){if(this.#e=!0,eD++>1e3&&(this.#_(),function(){try{throw Error("https://svelte.dev/e/effect_update_depth_exceeded")}catch(t){ed(t,eA)}}()),!this.#g()){for(let t of this.#h)this.#d.delete(t),ef(t,2048),this.schedule(t);for(let t of this.#d)ef(t,4096),this.schedule(t)}let t=this.#c;this.#c=[],this.apply();var i=eM=[],r=[],a=eP=[];for(let a of t)try{this.#v(a,i,r)}catch(t){throw function t(i){ef(i,1024);for(var r=i.first;null!==r;)t(r),r=r.next}(a),t}if(ek=null,a.length>0){var n=ez.ensure();for(let t of a)n.schedule(t)}if(eM=null,eP=null,this.#g()){for(let[t,a]of(this.#b(r),this.#b(i),this.#f))!function t(i,r){if((32&i.f)==0||(1024&i.f)==0){(2048&i.f)!=0?r.d.push(i):(4096&i.f)!=0&&r.m.push(i),ef(i,1024);for(var a=i.first;null!==a;)t(a,r),a=a.next}}(t,a);a.length>0&&ek.#y();return}let o=this.#x();if(o)return void o.#w(this);
18for(let t of(this.#h.clear(),this.#d.clear(),this.#r))t(this);this.#r.clear(),eT=this,eR(r),eR(i),eT=null,this.#l?.resolve();var s=ek;if(this.linked&&0===this.#o&&this.#_(),this.#c.length>0){null===s&&(s=this,this.#k());let t=s;t.#c.push(...this.#c.filter(i=>!t.#c.includes(i)))}null!==s&&s.#y()}#v(t,i,r){t.f^=1024;for(var a=t.first;null!==a;){var n=a.f,o=(96&n)!=0;if(!(o&&(1024&n)!=0||(8192&n)!=0||this.#f.has(a))&&null!==a.fn){o?a.f^=1024:(4&n)!=0?i.push(a):tu(a)&&((16&n)!=0&&this.#d.add(a),tf(a));var s=a.first;if(null!==s){a=s;continue}}for(;null!==a;){var l=a.next;if(null!==l){a=l;break}a=a.parent}}}#x(){for(var t=this.#t;null!==t;){if(!t.is_fork){for(let[i,[,r]]of this.current)if(t.current.has(i)&&!r)return t}t=t.#t}return null}#w(t){for(let[i,r]of t.current)!this.previous.has(i)&&t.previous.has(i)&&this.previous.set(i,t.previous.get(i)),this.current.set(i,r);for(let[i,r]of t.async_deriveds){let t=this.async_deriveds.get(i);t&&r.promise.then(t.resolve)}let i=t=>{var r=t.reactions;if(null!==r)for(let t of r){var a=t.f;(2&a)!=0?i(t):4194320&a&&!this.async_deriveds.has(t)&&(this.#d.delete(t),ef(t,2048),this.schedule(t))}};for(let t of this.current.keys())i(t);this.oncommit(()=>t.discard()),t.#_(),ek=this,this.#y()}#b(t){for(var i=0;i<t.length;i+=1)em(t[i],this.#h,this.#d)}capture(t,i,r=!1){t.v===B||this.previous.has(t)||this.previous.set(t,t.v),(8388608&t.f)==0&&(this.current.set(t,[i,r]),eS?.set(t,i)),this.is_fork||(t.v=i)}activate(){ek=this}deactivate(){ek=null,eS=null}flush(){try{eE=!0,ek=this,this.#y()}finally{eD=0,eA=null,eM=null,eP=null,eE=!1,ek=null,eS=null,eY.clear()}}discard(){for(let t of this.#a)t(this);this.#a.clear(),this.#n.clear(),this.#_()}register_created_effect(t){this.#u.push(t)}#T(){this.#_();for(let u=ex;null!==u;u=u.#i){var t=u.id<this.id,i=[];for(let[a,[n,o]]of this.current){if(u.current.has(a)){var r=u.current.get(a)[0];if(!t||n===r)continue;u.current.set(a,[n,o])}i.push(a)}if(t)for(let[t,i]of this.async_deriveds){let r=u.async_deriveds.get(t);r&&i.promise.then(r.resolve)}if(u.#e){var a=[...u.current.keys()].filter(t=>!this.current.has(t));if(0===a.length)t&&u.discard();else if(i.length>0){if(t)for(let t of this.#p)u.unskip_effect(t,t=>{(4194320&t.f)!=0?u.schedule(t):u.#b([t])});u.activate();var n=new Set,o=new Map;for(var s of i)!function t(i,r,a,n){if(!a.has(i)&&(a.add(i),null!==i.reactions))for(let o of i.reactions){let i=o.f;(2&i)!=0?t(o,r,a,n):(4194320&i)!=0&&(2048&i)==0&&eO(o,r,n)&&(ef(o,2048),eB(o))}}(s,a,n,o);o=new Map;var l=[...u.current.keys()].filter(t=>!this.current.has(t)||this.current.get(t)[0]!==t.v);if(l.length>0)for(let t of this.#u)(155648&t.f)==0&&eO(t,l,o)&&((4194320&t.f)!=0?(ef(t,2048),u.schedule(t)):u.#h.add(t));if(u.#c.length>0){for(var c of(u.apply(),u.#c))u.#v(c,[],[]);u.#c=[]}u.deactivate()}}}}increment(t,i){if(this.#o+=1,t){let t=this.#s.get(i)??0;this.#s.set(i,t+1)}}decrement(t,i){if(this.#o-=1,t){let t=this.#s.get(i)??0;1===t?this.#s.delete(i):this.#s.set(i,t-1)}this.#m||(this.#m=!0,q(()=>{this.#m=!1,this.linked&&this.flush()}))}transfer_effects(t,i){for(let i of t)this.#h.add(i);for(let t of i)this.#d.add(t);t.clear(),i.clear()}oncommit(t){this.#r.add(t)}ondiscard(t){this.#a.add(t)}on_fork_commit(t){this.#n.add(t)}run_fork_commit_callbacks(){for(let t of this.#n)t(this);this.#n.clear()}settled(){return(this.#l??=w()).promise}static ensure(){if(null===ek){let t=ek=new ez;t.#k(),eE||eC||q(()=>{t.#e||t.flush()})}return ek}apply(){eS=null}schedule(t){if(eA=t,t.b?.is_pending&&(0x100000c&t.f)!=0&&(32768&t.f)==0)return void t.b.defer_effect(t);for(var i=t;null!==i.parent;){var r=(i=i.parent).f;if(null!==eM&&i===tt&&(null===e9||(2&e9.f)==0))return;if((96&r)!=0){if((1024&r)==0)return;i.f^=1024}}this.#c.push(i)}#k(){null===ew?ex=ew=this:(ew.#i=this,this.#t=ew),ew=this}#_(){var t=this.#t,i=this.#i;null===t?ex=i:t.#i=i,null===i?ew=t:i.#t=t,this.linked=!1}}function eL(t){var i,r=eC;eC=!0;try{for(;;){for(;U.length>0;)G();if(null===ek)return i;ek.flush()}}finally{eC=r}}let eF=null;function eR(t){var i=t.length;if(0!==i){for(var r=0;r<i;){var a=t[r++];if((24576&a.f)==0&&tu(a)&&(eF=new Set,tf(a),null===a.deps&&null===a.first&&null===a.nodes&&null===a.teardown&&null===a.ac&&tD(a),eF?.size>0)){for(let t of(eY.clear(),eF)){if((24576&t.f)!=0)continue;let i=[t],r=t.parent;for(;null!==r;)eF.has(r)&&(eF.delete(r),i.push(r)),r=r.parent;for(let t=i.length-1;t>=0;t--){let r=i[t];(24576&r.f)==0&&tf(r)}}eF.clear()}}eF=null}}function eO(t,i,r){let a=r.get(t);if(void 0!==a)return a;
18if(null!==t.deps)for(let a of t.deps){if(h.call(i,a))return!0;if((2&a.f)!=0&&eO(a,i,r))return r.set(a,!0),!0}return r.set(t,!1),!1}function eB(t){ek.schedule(t)}class ej{parent;is_pending=!1;transform_error;#S;#A=H?t:null;#C;#E;#M;#P=null;#D=null;#I=null;#z=null;#L=0;#F=0;#R=!1;#h=new Set;#d=new Set;#O=null;#B=(function(t){let i,r=0,a=eJ(0);return()=>{t_()&&(tm(a),tw(()=>(0===r&&(i=tg(()=>t(()=>e3(a)))),r+=1,()=>{q(()=>{0==(r-=1)&&(i?.(),i=void 0,e3(a))})})))}})(()=>(this.#O=eJ(this.#L),()=>{this.#O=null}));constructor(i,r,a,n){this.#S=i,this.#C=r,this.#E=t=>{var i=tt;i.b=this,i.f|=128,a(t)},this.parent=tt.b,this.transform_error=n??this.parent?.transform_error??(t=>t),this.#M=tT(()=>{if(H){let t=this.#A;X();let i="[!"===t.data;if(t.data.startsWith("[?")){let i=JSON.parse(t.data.slice(2));this.#j(i)}else i?this.#N():this.#$()}else this.#V()},589824),H&&(this.#S=t)}#$(){try{this.#P=tA(()=>this.#E(this.#S))}catch(t){this.error(t)}}#j(t){let i=this.#C.failed;i&&(this.#I=tA(()=>{i(this.#S,()=>t,()=>()=>{})}))}#N(){let t=this.#C.pending;t&&(this.is_pending=!0,this.#D=tA(()=>t(this.#S)),q(()=>{var t=this.#z=document.createDocumentFragment(),i=er();t.append(i),this.#P=this.#U(()=>tA(()=>this.#E(i))),0===this.#F&&(this.#S.before(t),this.#z=null,tI(this.#D,()=>{this.#D=null}),this.#G(ek))}))}#V(){try{if(this.is_pending=this.has_pending_snippet(),this.#F=0,this.#L=0,this.#P=tA(()=>{this.#E(this.#S)}),this.#F>0){var t=this.#z=document.createDocumentFragment();tz(this.#P,t);let i=this.#C.pending;this.#D=tA(()=>i(this.#S))}else this.#G(ek)}catch(t){this.error(t)}}#G(t){this.is_pending=!1,t.transfer_effects(this.#h,this.#d)}defer_effect(t){em(t,this.#h,this.#d)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#C.pending}#U(t){var i=tt,r=e9,a=N;tt=this.#M,e9=this.#M,N=this.#M.ctx;try{return ez.ensure(),t()}catch(t){return eh(t),null}finally{tt=i,e9=r,N=a}}#q(t,i){if(!this.has_pending_snippet()){this.parent&&this.parent.#q(t,i);return}this.#F+=t,0===this.#F&&(this.#G(i),this.#D&&tI(this.#D,()=>{this.#D=null}),this.#z&&(this.#S.before(this.#z),this.#z=null))}update_pending_count(t,i){this.#q(t,i),this.#L+=t,this.#O&&!this.#R&&(this.#R=!0,q(()=>{this.#R=!1,this.#O&&e2(this.#O,this.#L)}))}get_effect_pending(){return this.#B(),tm(this.#O)}error(t){if(!this.#C.onerror&&!this.#C.failed)throw t;ek?.is_fork?(this.#P&&ek.skip_effect(this.#P),this.#D&&ek.skip_effect(this.#D),this.#I&&ek.skip_effect(this.#I),ek.on_fork_commit(()=>{this.#Z(t)})):this.#Z(t)}#Z(t){this.#P&&(tM(this.#P),this.#P=null),this.#D&&(tM(this.#D),this.#D=null),this.#I&&(tM(this.#I),this.#I=null),H&&(W(this.#A),K(),W(J()));var i=this.#C.onerror;let r=this.#C.failed;var a=!1,n=!1;let o=()=>{a?console.warn("https://svelte.dev/e/svelte_boundary_reset_noop"):(a=!0,n&&function(){throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}(),null!==this.#I&&tI(this.#I,()=>{this.#I=null}),this.#U(()=>{this.#V()}))},s=t=>{try{n=!0,i?.(t,o),n=!1}catch(t){ed(t,this.#M&&this.#M.parent)}r&&(this.#I=this.#U(()=>{try{return tA(()=>{var i=tt;i.b=this,i.f|=128,r(this.#S,()=>t,()=>o)})}catch(t){return ed(t,this.#M.parent),null}}))};q(()=>{var i;try{i=this.transform_error(t)}catch(t){ed(t,this.#M&&this.#M.parent);return}null!==i&&"object"==typeof i&&"function"==typeof i.then?i.then(s,t=>ed(t,this.#M&&this.#M.parent)):s(i)})}}function eN(t,i,r,a){var n,o,s,l,c=t.filter(t=>!t.settled);if(0===r.length&&0===c.length)return void a(i.map(eU));var u=tt,h=(n=tt,o=e9,s=N,l=ek,function(t=!0){(function(t){tt=t})(n),function(t){e9=t}(o),N=s,t&&(16384&n.f)==0&&(l?.activate(),l?.apply())}),d=1===c.length?c[0].promise:c.length>1?Promise.all(c.map(t=>t.promise)):null;function f(t){if((16384&u.f)==0){h();try{a(t)}catch(t){ed(t,u)}e$()}}var p=eV();if(0===r.length)return void d.then(()=>f(i.map(eU))).finally(p);function m(){Promise.all(r.map(t=>{var i,r,a,n,o;let s;return i=t,null===(s=tt)&&function(){throw Error("https://svelte.dev/e/async_derived_orphan")}(),r=void 0,a=eJ(B),n=!e9,o=new Set,ty(4718592,()=>{var t=tt,l=w();r=l.promise;try{Promise.resolve(i()).then(l.resolve,t=>{t!==D&&l.reject(t)}).finally(e$)}catch(t){l.reject(t),e$()}var c=ek;if(n){if((32768&t.f)!=0)var u=eV();if(s.b.is_rendered())c.async_deriveds.get(t)?.reject(eG);else for(let t of o.values())t.reject(eG);o.add(l),c.async_deriveds.set(t,l)}let h=(t,i)=>{u?.(),o.delete(l),i!==eG&&(c.activate(),i?(a.f|=8388608,e2(a,i)
18):((8388608&a.f)!=0&&(a.f^=8388608),e2(a,t)),c.deactivate())};l.promise.then(h,t=>h(null,t||"unknown"))}),tv(()=>{for(let t of o)t.reject(eG)}),new Promise(t=>{!function i(n){function o(){n===r?t(a):i(r)}n.then(o,o)}(r)})})).then(t=>f([...i.map(eU),...t])).catch(t=>ed(t,u)).finally(p)}d?d.then(()=>{h(),m(),e$()}):m()}function e$(t=!0){tt=null,e9=null,N=null,t&&ek?.deactivate()}function eV(){var t=tt,i=t.b,r=ek,a=i.is_rendered();return i.update_pending_count(1,r),r.increment(a,t),()=>{i.update_pending_count(-1,r),r.decrement(a,t)}}function eU(t){return null!==tt&&(tt.f|=524288),{ctx:N,deps:null,effects:null,equals:z,f:2050,fn:t,reactions:null,rv:0,v:B,wv:0,parent:tt,ac:null}}let eG=Symbol("obsolete");function eq(t){let i=eU(t);return tr(i),i}function eZ(t){var i,r=tt,a=t.parent;if(!e7&&null!==a&&t.v!==B&&(24576&a.f)!=0)return console.warn("https://svelte.dev/e/derived_inert"),t.v;tt=a;try{t.f&=-65537;var n=t.effects;if(null!==n){t.effects=null;for(var o=0;o<n.length;o+=1)tM(n[o])}i=th(t)}finally{tt=r}return i}function eH(t){var i=eZ(t);t.equals(i)||(t.wv=++ts,ek?.is_fork&&null!==t.deps)||(null!==ek?(ek.capture(t,i,!0),eT?.capture(t,i,!0)):t.v=i,null!==t.deps)?!e7&&(null!==eS?(t_()||ek?.is_fork)&&eS.set(t,i):ep(t)):ef(t,1024)}function eW(t){if(null!==t.effects)for(let i of t.effects)i.teardown&&null!==i.fn&&tf(i)}let eX=new Set,eY=new Map,eK=!1;function eJ(t,i){return{f:0,v:t,reactions:null,equals:z,rv:0,wv:0}}function eQ(t,i){let r=eJ(t);return tr(r),r}function e1(t,i=!1,r=!0){let a=eJ(t);return i||(a.equals=R),a}function e0(t,i,r=!1){return null===e9||te&&(131072&e9.f)==0||(4325394&e9.f)==0||null!==ti&&h.call(ti,t)||function(){throw Error("https://svelte.dev/e/state_unsafe_mutation")}(),e2(t,r?ee(i):i,eP)}function e2(t,i,r=null){if(!t.equals(i)){eY.set(t,e7?i:t.v);var a=ez.ensure();a.capture(t,i),(2&t.f)!=0&&((2048&t.f)!=0&&eZ(t),null===eS&&ep(t)),t.wv=++ts,function t(i,r,a){var n=i.reactions;if(null!==n)for(var o=n.length,s=0;s<o;s++){var l=n[s],c=l.f,u=(2048&c)==0;u&&ef(l,r),(131072&c)!=0?eX.add(l):(2&c)!=0?(eS?.delete(l),(65536&c)==0&&(512&c&&(null===tt||(2097152&tt.f)==0)&&(l.f|=65536),t(l,4096,a))):u&&((16&c)!=0&&null!==eF&&eF.add(l),null!==a?a.push(l):eB(l))}}(t,2048,r),null!==tt&&(1024&tt.f)!=0&&(96&tt.f)==0&&(null===to?to=[t]:to.push(t)),a.is_fork||!(eX.size>0)||eK||function(){for(let t of(eK=!1,eX)){let i;(1024&t.f)!=0&&ef(t,4096);try{i=tu(t)}catch{i=!0}i&&tf(t)}eX.clear()}()}return i}function e3(t){e0(t,t.v+1)}let e5=!1;function e4(){e5||(e5=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{if(!t.defaultPrevented)for(let i of t.target.elements)i[P]?.()})},{capture:!0}))}function e6(t){var i=e9,r=tt;e9=null,tt=null;try{return t()}finally{e9=i,tt=r}}let e8=!1,e7=!1,e9=null,te=!1,tt=null,ti=null;function tr(t){null!==e9&&(null===ti?ti=[t]:ti.push(t))}let ta=null,tn=0,to=null,ts=1,tl=0,tc=0;function tu(t){var i=t.f;if((2048&i)!=0)return!0;if(2&i&&(t.f&=-65537),(4096&i)!=0){for(var r=t.deps,a=r.length,n=0;n<a;n++){var o=r[n];if(tu(o)&&eH(o),o.wv>t.wv)return!0}(512&i)!=0&&null===eS&&ef(t,1024)}return!1}function th(t){var i=ta,r=tn,a=to,n=e9,o=ti,s=N,l=te,c=tc,u=t.f;ta=null,tn=0,to=null,e9=(96&u)==0?t:null,ti=null,N=t.ctx,te=!1,tc=++tl,null!==t.ac&&(e6(()=>{t.ac.abort(D)}),t.ac=null);try{t.f|=2097152;var d,f=(0,t.fn)();t.f|=32768;var p=t.deps,m=ek?.is_fork;if(null!==ta){if(m||td(t,tn),null!==p&&tn>0)for(p.length=tn+ta.length,d=0;d<ta.length;d++)p[tn+d]=ta[d];else t.deps=p=ta;if(t_()&&(512&t.f)!=0)for(d=tn;d<p.length;d++)(p[d].reactions??=[]).push(t)}else!m&&null!==p&&tn<p.length&&(td(t,tn),p.length=tn);if(null!==to&&!te&&null!==p&&(6146&t.f)==0)for(d=0;d<to.length;d++)!function t(i,r,a=!0){var n=i.reactions;if(null!==n&&!(null!==ti&&h.call(ti,i)))for(var o=0;o<n.length;o++){var s=n[o];(2&s.f)!=0?t(s,r,!1):r===s&&(a?ef(s,2048):(1024&s.f)!=0&&ef(s,4096),eB(s))}}(to[d],t);if(null!==n&&n!==t){if(tl++,null!==n.deps)for(let t=0;t<r;t+=1)n.deps[t].rv=tl;if(null!==i)for(let t of i)t.rv=tl;null!==to&&(null===a?a=to:a.push(...to))}return(8388608&t.f)!=0&&(t.f^=8388608),f}catch(t){return eh(t)}finally{t.f^=2097152,ta=i,tn=r,to=a,e9=n,ti=o,N=s,te=l,tc=c}}function td(t,i){var r=t.deps;if(null!==r)for(var a=i;a<r.length;a++)!function(t,i){let r=i.reactions;if(null!==r){var a=u.call(r,t);if(-1!==a){var n=r.length-1;0===n?r=i.reactions=null:(r[a]=r[n],r.pop())}}if(null===r&&(2&i.f)!=0&&(null===ta||!h.call(ta,i))){(512&i.f)!=0&&(i.f^=512,i.f&=-65537),i.v!==B&&ep(i);if(null!==i.effects)for(let t of i.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(D),null!==t.fn&&(t.teardown=x),t.ac=null,td(t,0),tE(t));td(i,0)}}(t,r[a])}function tf(t){var i=t.f;if((16384&i)==0){ef(t,1024);var r=tt,a=e8;tt=t,e8=!0;try{(0x1000010&i)!=0?function(t){for(var i=t.first;null!==i;){var r=i.next;(32&i.f)==0&&tM(i),i=r}}(t):tE(t),tC(t);var n=th(t);t.teardown="function"==typeof n?n:null,t.wv=ts}finally{e8=a,tt=r}}}async function tp(){await Promise.resolve(),eL()}function tm(t){var i=t.f;if(null!==e9&&!te&&(null===tt||(16384&tt.f)==0)&&(null===ti||!h.call(ti,t))){var r=e9.deps;if((2097152&e9.f)!=0)t.rv<tl&&(t.rv=tl,null===ta&&null!==r&&r[tn]===t?tn++:null===ta?ta=[t]:ta.push(t));else{(e9.deps??=[]).push(t);var a=t.reactions;null===a?t.reactions=[e9]:h.call(a,e9)||a.push(e9)}}if(e7&&eY.has(t))return eY.get(t);if((2&i)!=0){if(e7){var n=t.v;return((1024&t.f)==0&&null!==t.reactions||function t(i){if(i.v===B)return!0;
18if(null===i.deps)return!1;for(let r of i.deps)if(eY.has(r)||(2&r.f)!=0&&t(r))return!0;return!1}(t))&&(n=eZ(t)),eY.set(t,n),n}var o=(512&t.f)==0&&!te&&null!==e9&&(e8||(512&e9.f)!=0),s=(32768&t.f)==0;tu(t)&&(o&&(t.f|=512),eH(t)),o&&!s&&(eW(t),function t(i){if(i.f|=512,null!==i.deps)for(let r of i.deps)(r.reactions??=[]).push(i),(2&r.f)!=0&&(512&r.f)==0&&(eW(r),t(r))}(t))}if(eS?.has(t))return eS.get(t);if((8388608&t.f)!=0)throw t.v;return t.v}function tg(t){var i=te;try{return te=!0,t()}finally{te=i}}function ty(t,i){var r=tt;null!==r&&(8192&r.f)!=0&&(t|=8192);var a={ctx:N,deps:null,nodes:null,f:2048|t|512,first:null,fn:i,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};ek?.register_created_effect(a);var n=a;if((4&t)!=0)null!==eM?eM.push(a):ez.ensure().schedule(a);else if(null!==i){try{tf(a)}catch(t){throw tM(a),t}null===n.deps&&null===n.teardown&&null===n.nodes&&n.first===n.last&&(524288&n.f)==0&&(n=n.first,(16&t)!=0&&(65536&t)!=0&&null!==n&&(n.f|=65536))}if(null!==n&&(n.parent=r,null!==r&&(o=n,null===(s=r.last)?r.last=r.first=o:(s.next=o,o.prev=s,r.last=o)),null!==e9&&(2&e9.f)!=0&&(64&t)==0)){var o,s,l=e9;(l.effects??=[]).push(n)}return a}function t_(){return null!==e9&&!te}function tv(t){let i=ty(8,null);return ef(i,1024),i.teardown=t,i}function tb(t){if(null===tt)throw null===e9&&function(){throw Error("https://svelte.dev/e/effect_orphan")}(),Error("https://svelte.dev/e/effect_in_unowned_derived");e7&&function(){throw Error("https://svelte.dev/e/effect_in_teardown")}();var i=tt.f;if(!(!e9&&(32&i)!=0&&(32768&i)==0))return tx(t);var r=N;(r.e??=[]).push(t)}function tx(t){return ty(1048580,t)}function tw(t,i=0){return ty(8|i,t)}function tk(t,i=[],r=[],a=[]){eN(a,i,r,i=>{ty(8,()=>t(...i.map(tm)))})}function tT(t,i=0){return ty(16|i,t)}function tS(t,i=0){return ty(0x1000000|i,t)}function tA(t){return ty(524320,t)}function tC(t){var i=t.teardown;
18if(null!==i){let t=e7,r=e9;e7=!0,e9=null;try{i.call(null)}finally{e7=t,e9=r}}}function tE(t,i=!1){var r=t.first;for(t.first=t.last=null;null!==r;){let t=r.ac;null!==t&&e6(()=>{t.abort(D)});var a=r.next;(64&r.f)!=0?r.parent=null:tM(r,i),r=a}}function tM(t,i=!0){var r=!1;(i||(262144&t.f)!=0)&&null!==t.nodes&&null!==t.nodes.end&&(tP(t.nodes.start,t.nodes.end),r=!0),ef(t,0x2000000),tE(t,i&&!r),td(t,0);var a=t.nodes&&t.nodes.t;if(null!==a)for(let t of a)t.stop();tC(t),t.f^=0x2000000,t.f|=16384;var n=t.parent;null!==n&&null!==n.first&&tD(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function tP(t,i){for(;null!==t;){var r=t===i?null:en(t);t.remove(),t=r}}function tD(t){var i=t.parent,r=t.prev,a=t.next;null!==r&&(r.next=a),null!==a&&(a.prev=r),null!==i&&(i.first===t&&(i.first=a),i.last===t&&(i.last=r))}function tI(t,i,r=!0){var a=[];!function t(i,r,a){if((8192&i.f)==0){i.f^=8192;var n=i.nodes&&i.nodes.t;if(null!==n)for(let t of n)(t.is_global||a)&&r.push(t);for(var o=i.first;null!==o;){var s=o.next;if((64&o.f)==0){var l=(65536&o.f)!=0||(32&o.f)!=0&&(16&i.f)!=0;t(o,r,!!l&&a)}o=s}}}(t,a,!0);var n=()=>{r&&tM(t),i&&i()},o=a.length;if(o>0){var s=()=>--o||n();for(var l of a)l.out(s)}else n()}function tz(t,i){if(t.nodes)for(var r=t.nodes.start,a=t.nodes.end;null!==r;){var n=r===a?null:en(r);i.append(r),r=n}}function tL(t){let i={get:t=>e_(i.store)[t],set:(t,r)=>{"string"==typeof t?Object.assign(e_(i.store),{[t]:r}):Object.assign(e_(i.store),t),i.store.set(e_(i.store))},store:function(t,i=x){let r=null,a=new Set;function n(i){if(F(t,i)&&(t=i,r)){let i=!ey.length;for(let i of a)i[1](),ey.push(i,t);if(i){for(let t=0;t<ey.length;t+=2)ey[t][0](ey[t+1]);ey.length=0}}}function o(i){n(i(t))}return{set:n,update:o,subscribe:function(s,l=x){let c=[s,l];return a.add(c),1===a.size&&(r=i(n,o)||x),s(t),()=>{a.delete(c),0===a.size&&r&&(r(),r=null)}}}}(t)};return i}globalThis.$altcha=globalThis.$altcha||{algorithms:new Map,defaults:tL({}),i18n:tL({}),instances:new Set,plugins:new Set},globalThis.$altcha.i18n.set("en",{ariaLinkLabel:"Altcha (official website)",cancel:"Cancel",enterCode:"Enter code",enterCodeAria:"Enter code you hear. Press Space to play audio.",enterCodeFromImage:"To proceed, please enter the code from the image below.",error:"Verification failed. Try again later.",expired:"Verification expired. Try again.",footer:'Protected by <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (official website)">ALTCHA</a>',getAudioChallenge:"Get an audio challenge",label:"I'm not a robot",loading:"Loading...",reload:"Reload",verify:"Verify",verificationRequired:"Verification required!",verified:"Verified",verifying:"Verifying...",waitAlert:"Verifying... please wait."}),"u">typeof window&&((window.__svelte??={}).v??=new Set).add("5");let tF=Symbol("events"),tR=new Set,tO=new Set;function tB(t,i,r,a={}){function n(t){if(a.capture||tV.call(i,t),!t.cancelBubble)return e6(()=>r?.call(this,t))}return t.startsWith("pointer")||t.startsWith("touch")||"wheel"===t?q(()=>{i.addEventListener(t,n,a)}):i.addEventListener(t,n,a),n}function tj(t,i,r,a,n){var o={capture:a,passive:n},s=tB(t,i,r,o);(i===document.body||i===window||i===document||i instanceof HTMLMediaElement)&&tv(()=>{i.removeEventListener(t,s,o)})}function tN(t,i,r){(i[tF]??={})[t]=r}function t$(t){for(var i=0;i<t.length;i++)tR.add(t[i]);for(var r of tO)r(t)}function tV(t){var i=this.ownerDocument,r=t.type,a=t.composedPath?.()||[],n=a[0]||t.target,o=0,s=t==t&&t[tF];if(s){var l=a.indexOf(s);if(-1!==l&&(this===document||this===window)){t[tF]=this;return}var c=a.indexOf(this);if(-1===c)return;l<=c&&(o=l)}if((n=a[o]||t.target)!==this){p(t,"currentTarget",{configurable:!0,get:()=>n||i});var u=e9,h=tt;e9=null,tt=null;try{for(var d,f=[];null!==n;){var m=n.assignedSlot||n.parentNode||n.host||null;try{var g=n[tF]?.[r];null==g||n.disabled&&t.target!==n||g.call(n,t)}catch(t){d?f.push(t):d=t}if(t.cancelBubble||m===this||null===m)break;n=m}if(d){for(let t of f)queueMicrotask(()=>{throw t});throw d}}finally{t[tF]=this,delete t.currentTarget,e9=u,tt=h}}}let tU=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function tG(t){var i,r=ec("template");return i=t.replaceAll("<!>","\x3c!----\x3e"),r.innerHTML=tU?.createHTML(i)??i,r.content}function tq(t,i){var r=tt;
18null===r.nodes&&(r.nodes={start:t,end:i,a:null,t:null})}function tZ(i,r){var a,n=(1&r)!=0,s=(2&r)!=0,l=!i.startsWith("<!>");return()=>{if(H)return tq(t,null),t;void 0===a&&(a=tG(l?i:"<!>"+i),n||(a=ea(a)));var r=s||o?document.importNode(a,!0):a.cloneNode(!0);return n?tq(ea(r),r.lastChild):tq(r,r),r}}function tH(i,r){return function(i,r="svg"){var a,n=!i.startsWith("<!>"),o=`<${r}>${n?i:"<!>"+i}</${r}>`;return()=>{if(H)return tq(t,null),t;if(!a){var i=ea(tG(o));a=ea(i)}var r=a.cloneNode(!0);return tq(r,r),r}}(i,"svg")}function tW(i=""){if(!H){var r=er(i+"");return tq(r,r),r}var a=t;return 3!==a.nodeType?(a.before(a=er()),W(a)):eu(a),tq(a,a),a}function tX(){if(H)return tq(t,null),t;var i=document.createDocumentFragment(),r=document.createComment(""),a=er();return i.append(r,a),tq(r,a),i}function tY(i,r){if(H){var a=tt;((32768&a.f)==0||null===a.nodes.end)&&(a.nodes.end=t),X();return}null!==i&&i.before(r)}let tK=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"],tJ={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"},tQ=["touchstart","touchmove"];function t1(t,i){var r=null==i?"":"object"==typeof i?`${i}`:i;r!==(t[M]??=t.nodeValue)&&(t[M]=r,t.nodeValue=`${r}`)}let t0=new Map;function t2(i,{target:r,anchor:a,props:n={},events:o,context:s,intro:l=!0,transformError:c}){let u;ei();var h,f=void 0,p=(h=()=>{var l=a??r.appendChild(er());new ej(l,{pending:()=>{}},r=>{$({});var a=N;if(s&&(a.c=s),o&&(n.$$events=o),H&&tq(r,null),f=i(r,n)||{},H&&(tt.nodes.end=t,null===t||8!==t.nodeType||"]"!==t.data))throw Z(),O;V()},c);var u=new Set,h=t=>{for(var i=0;i<t.length;i++){var a=t[i];if(!u.has(a)){u.add(a);var n=tQ.includes(a);for(let t of[r,document]){var o=t0.get(t);void 0===o&&(o=new Map,t0.set(t,o));var s=o.get(a);void 0===s?(t.addEventListener(a,tV,{passive:n}),o.set(a,1)):o.set(a,s+1)}}}};return h(d(tR)),tO.add(h),()=>{for(var t of u)for(let a of[r,document]){var i=t0.get(a),n=i.get(t);0==--n?(a.removeEventListener(t,tV),i.delete(t),0===i.size&&t0.delete(a)):i.set(t,n)}tO.delete(h),l!==a&&l.parentNode?.removeChild(l)}},ez.ensure(),u=ty(524352,h),(t={})=>new Promise(i=>{t.outro?tI(u,()=>{tM(u),i(void 0)}):(tM(u),i(void 0))}));return t3.set(f,p),f}let t3=new WeakMap;class t5{anchor;#H=new Map;#W=new Map;#X=new Map;#Y=new Set;#K=!0;constructor(t,i=!0){this.anchor=t,this.#K=i}#T=t=>{if(this.#H.has(t)){var i=this.#H.get(t),r=this.#W.get(i);if(r)(function t(i,r){if((8192&i.f)!=0){i.f^=8192,(1024&i.f)==0&&(ef(i,2048),ez.ensure().schedule(i));for(var a=i.first;null!==a;){var n=a.next,o=(65536&a.f)!=0||(32&a.f)!=0;t(a,!!o&&r),a=n}var s=i.nodes&&i.nodes.t;if(null!==s)for(let t of s)(t.is_global||r)&&t.in()}})(r,!0),this.#Y.delete(i);else{var a=this.#X.get(i);a&&(this.#W.set(i,a.effect),this.#X.delete(i),a.fragment.lastChild.remove(),this.anchor.before(a.fragment),r=a.effect)}for(let[i,r]of this.#H){if(this.#H.delete(i),i===t)break;let a=this.#X.get(r);a&&(tM(a.effect),this.#X.delete(r))}for(let[t,a]of this.#W){if(t===i||this.#Y.has(t))continue;let n=()=>{if(Array.from(this.#H.values()).includes(t)){var i=document.createDocumentFragment();tz(a,i),i.append(er()),this.#X.set(t,{effect:a,fragment:i})}else tM(a);this.#Y.delete(t),this.#W.delete(t)};this.#K||!r?(this.#Y.add(t),tI(a,n,!1)):n()}}};#J=t=>{this.#H.delete(t);let i=Array.from(this.#H.values());for(let[t,r]of this.#X)i.includes(t)||(tM(r.effect),this.#X.delete(t))};ensure(i,r){var a=ek;if(r&&!this.#W.has(i)&&!this.#X.has(i))if(1)this.#W.set(i,tA(()=>r(this.anchor)));else{var n=document.createDocumentFragment(),o=er();n.append(o),this.#X.set(i,{effect:tA(()=>r(o)),fragment:n})}this.#H.set(a,i),H&&(this.anchor=t),this.#T(a)}}function t4(t){null===N&&function(){throw Error("https://svelte.dev/e/lifecycle_outside_component")}(),tb(()=>{let i=tg(t);if("function"==typeof i)return i})}function t6(i,r,a=!1){H&&(n=t,X());var n,o=new t5(i);function s(t,i){if(H&&t!==parseInt(Q(n).substring(1))){var r=J();W(r),o.anchor=r,H=!1,o.ensure(t,i),H=!0;return}o.ensure(t,i)}tT(()=>{var t=!1;r((i,r=0)=>{t=!0,s(r,i)}),t||s(-1,null)},65536*!!a)}let t8=Symbol("NaN");function t7(i,r,a=!1,n=!1,o=!1,s=!1){var l=i,c="";if(a){var u=i;H&&(l=W(ea(u)))}tk(()=>{var i=tt;
18if(c===(c=r()??"")){H&&X();return}if(a&&!H){i.nodes=null,u.innerHTML=c,""!==c&&tq(ea(u),u.lastChild);return}if(null!==i.nodes&&(tP(i.nodes.start,i.nodes.end),i.nodes=null),""!==c){if(H){t.data;for(var s=X(),h=s;null!==s&&(8!==s.nodeType||""!==s.data);)h=s,s=en(s);if(null===s)throw Z(),O;tq(t,h),l=W(s);return}var d=ec(n?"svg":o?"math":"template",n?"http://www.w3.org/2000/svg":o?"http://www.w3.org/1998/Math/MathML":void 0);d.innerHTML=c;var f=n||o?d:d.content;if(tq(ea(f),f.lastChild),n||o)for(;ea(f);)l.before(ea(f));else l.before(f)}})}let t9=[..." 	\n\r\f \v\uFEFF"];function ie(t,i=!1){var r=i?" !important;":";",a="";for(var n of Object.keys(t)){var o=t[n];null!=o&&""!==o&&(a+=" "+n+": "+o+r)}return a}function it(t){return"-"!==t[0]||"-"!==t[1]?t.toLowerCase():t}function ii(t,i={},r,a){for(var n in r){var o=r[n];i[n]!==o&&(null==r[n]?t.style.removeProperty(n):t.style.setProperty(n,o,a))}}function ir(t,i,r=!1){if(t.multiple){if(void 0==i)return;if(!c(i))return void console.warn("https://svelte.dev/e/select_multiple_invalid_value");for(var a of t.options)a.selected=i.includes(ia(a));return}for(a of t.options){var n;if(n=ia(a),Object.is(et(n),et(i))){a.selected=!0;return}}r&&void 0===i||(t.selectedIndex=-1)}function ia(t){return"__value"in t?t.__value:t.value}let io=Symbol("class"),is=Symbol("style"),il=Symbol("is custom element"),ic=Symbol("is html"),iu=I?"link":"LINK",ih=I?"input":"INPUT",id=I?"option":"OPTION",ip=I?"select":"SELECT",im=I?"progress":"PROGRESS";function ig(t){if(H){var i=!1,r=()=>{if(!i){if(i=!0,t.hasAttribute("value")){var r=t.value;iy(t,"value",null),t.value=r}if(t.hasAttribute("checked")){var a=t.checked;iy(t,"checked",null),t.checked=a}}};t[P]=r,q(r),e4()}}function iy(t,i,r,a){var n=iv(t);H&&(n[i]=t.getAttribute(i),"src"===i||"srcset"===i||"href"===i&&t.nodeName===iu)||n[i]!==(n[i]=r)&&("loading"===i&&(t[S]=r),null==r?t.removeAttribute(i):"string"!=typeof r&&ix(t).includes(i)?t[i]=r:t.setAttribute(i,r))}function i_(t,i,r=[],a=[],n=[],o,s=!1,l=!1){eN(n,r,a,r=>{var a=void 0,n={},c=t.nodeName===ip,u=!1;tS(()=>{var h=i(...r.map(tm)),d=function(t,i,r,a,n=!1,o=!1){H&&n&&t.nodeName===ih&&(("checkbox"===t.type?"defaultChecked":"defaultValue")in r||ig(t));var s=iv(t),l=s[il],c=!s[ic];let u=H&&l;u&&(H=!1);var h=i||{},d=t.nodeName===id;for(var f in i)f in r||(r[f]=null);r.class?r.class="object"==typeof(_=r.class)?function(){for(var t,i,r=0,a="",n=arguments.length;r<n;r++)(t=arguments[r])&&(i=function t(i){var r,a,n="";if("string"==typeof i||"number"==typeof i)n+=i;else if("object"==typeof i)if(Array.isArray(i)){var o=i.length;for(r=0;r<o;r++)i[r]&&(a=t(i[r]))&&(n&&(n+=" "),n+=a)}else for(a in i)i[a]&&(n&&(n+=" "),n+=a);return n}(t))&&(a&&(a+=" "),a+=i);return a}(_):_??"":r[io]&&(r.class=null),r[is]&&(r.style??=null);var p=ix(t);for(let a in r){let n=r[a];if(d&&"value"===a&&null==n){t.value=t.__value="",h[a]=n;continue}if("class"===a){var m="http://www.w3.org/1999/xhtml"===t.namespaceURI;!function(t,i,r,a,n){var o=t[C];if(H||o!==r||void 0===o){var s=function(t,i){var r=null==t?"":""+t;if(i){for(var a of Object.keys(i))if(i[a])r=r?r+" "+a:a;else if(r.length)for(var n=a.length,o=0;(o=r.indexOf(a,o))>=0;){var s=o+n;
18(0===o||t9.includes(r[o-1]))&&(s===r.length||t9.includes(r[s]))?r=(0===o?"":r.substring(0,o))+r.substring(s+1):o=s}}return""===r?null:r}(r,n);H&&s===t.getAttribute("class")||(null==s?t.removeAttribute("class"):i?t.className=s:t.setAttribute("class",s)),t[C]=r}else if(n&&a!==n)for(var l in n){var c=!!n[l];(null==a||!!a[l]!==c)&&t.classList.toggle(l,c)}}(t,m,n,i?.[io],r[io]),h[a]=n,h[io]=r[io];continue}if("style"===a){!function(t,i,r,a){var n=t[E];if(H||n!==i){var o=function(t,i){if(i){var r,a,n="";if(Array.isArray(i)?(r=i[0],a=i[1]):r=i,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,s=0,l=!1,c=[];r&&c.push(...Object.keys(r).map(it)),a&&c.push(...Object.keys(a).map(it));var u=0,h=-1;let i=t.length;for(var d=0;d<i;d++){var f=t[d];if(l?"/"===f&&"*"===t[d-1]&&(l=!1):o?o===f&&(o=!1):"/"===f&&"*"===t[d+1]?l=!0:'"'===f||"'"===f?o=f:"("===f?s++:")"===f&&s--,!l&&!1===o&&0===s){if(":"===f&&-1===h)h=d;else if(";"===f||d===i-1){if(-1!==h){var p=it(t.substring(u,h).trim());c.includes(p)||(";"!==f&&d++,n+=" "+t.substring(u,d).trim()+";")}u=d+1,h=-1}}}}return r&&(n+=ie(r)),a&&(n+=ie(a,!0)),""===(n=n.trim())?null:n}return null==t?null:String(t)}(i,a);H&&o===t.getAttribute("style")||(null==o?t.removeAttribute("style"):t.style.cssText=o),t[E]=i}else a&&(Array.isArray(a)?(ii(t,r?.[0],a[0]),ii(t,r?.[1],a[1],"important")):ii(t,r,a))}(t,n,i?.[is],r[is]),h[a]=n,h[is]=r[is];continue}var g=h[a];if(n!==g||void 0===n&&t.hasAttribute(a)){h[a]=n;var y=a[0]+a[1];if("$$"!==y)if("on"===y){let i={},r="$$"+a,o=a.slice(2);var _,v,b,x=(v=o,tK.includes(v));if((b=o).endsWith("capture")&&"gotpointercapture"!==b&&"lostpointercapture"!==b&&(o=o.slice(0,-7),i.capture=!0),!x&&g){if(null!=n)continue;t.removeEventListener(o,h[r],i),h[r]=null}if(x)tN(o,t,n),t$([o]);else if(null!=n){let n=function(t){h[a].call(this,t)};h[r]=tB(o,t,n,i)}}else if("style"===a)iy(t,a,n);else if("autofocus"===a)!function(t,i){if(i){let i=document.body;t.autofocus=!0,q(()=>{document.activeElement===i&&t.focus()})}}(t,!!n);else if(l||"__value"!==a&&("value"!==a||null==n))if("selected"===a&&d)n?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected");else{var w,k=a;c||(k=tJ[w=(w=k).toLowerCase()]??w);var T="defaultValue"===k||"defaultChecked"===k;if(null!=n||l||T)T||p.includes(k)&&(l||"string"!=typeof n)?(t[k]=n,k in s&&(s[k]=B)):"function"!=typeof n&&iy(t,k,n);else if(s[a]=null,"value"===k||"checked"===k){let r=void 0===i;if("value"===k){let i=t.defaultValue;t.removeAttribute(k),t.defaultValue=i,t.value=t.__value=r?i:null}else{let i=t.defaultChecked;t.removeAttribute(k),t.defaultChecked=i,t.checked=!!r&&i}}else t.removeAttribute(a)}else t.value=t.__value=n}}return u&&(H=!0),h}(t,a,h,o,s,l);for(let i of(u&&c&&"value"in h&&ir(t,h.value),Object.getOwnPropertySymbols(n)))h[i]||tM(n[i]);for(let i of Object.getOwnPropertySymbols(h)){var f=h[i];"@attach"!==i.description||a&&f===a[i]||(n[i]&&tM(n[i]),n[i]=tA(()=>(function(t,i){var r,a=void 0;tS(()=>{a!==(a=i())&&(r&&(tM(r),r=null),a&&(r=tA(()=>{ty(4,()=>a(t))})))})})(t,()=>f))),d[i]=f}a=d}),c&&ty(4,()=>{var i;ir(t,a.value,!0),(i=new MutationObserver(()=>{ir(t,t.__value)})).observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),tv(()=>{i.disconnect()})}),u=!0})}function iv(t){return t[A]??={[il]:t.nodeName.includes("-"),[ic]:t.namespaceURI===j}}var ib=new Map;function ix(t){var i,r=t.getAttribute("is")||t.nodeName,a=ib.get(r);if(a)return a;ib.set(r,a=[]);for(var n=t,o=Element.prototype;o!==n;){for(var s in i=g(n))i[s].set&&"innerHTML"!==s&&"textContent"!==s&&"innerText"!==s&&a.push(s);n=v(n)}return a}function iw(t){var i=t.type;return"number"===i||"range"===i}function ik(t){return""===t?null:+t}function iT(t,i){return t===i||t?.[k]===i}function iS(t={},i,r,a){var n=N.r,o=tt;return ty(4,()=>{var a,s;return tw(()=>{a=s,s=[],tg(()=>{!iT(r(...s),t)&&(i(t,...s),a&&iT(r(...a),t)&&i(null,...a))})}),()=>{let a=o;for(;a!==n&&null!==a.parent&&0x2000000&a.parent.f;)a=a.parent;let l=a.teardown;a.teardown=()=>{s&&iT(r(...s),t)&&i(null,...s),l?.()}}}),t}let iA={get(t,i){if(!t.exclude.includes(i))return t.props[i]},set:(t,i)=>!1,getOwnPropertyDescriptor(t,i){if(!t.exclude.includes(i)&&i in t.props)return{enumerable:!0,configurable:!0,value:t.props[i]}},has:(t,i)=>!t.exclude.includes(i)&&i in t.props,ownKeys:t=>Reflect.ownKeys(t.props).filter(i=>!t.exclude.includes(i))};function iC(t,i,r){return new Proxy({props:t,exclude:i},iA)}function iE(t,i,r,a){var n=a,o=!0,s=()=>(o&&(o=!1,n=a),n);void 0===t[i]&&void 0!==a&&s();var l=!1,c=eU(()=>{var r;return l=!1,void 0===(r=t[i])?s():(o=!0,r)}),u=tt;return function(t,i){if(arguments.length>0){let r=i?tm(c):t;return e0(c,r),l=!0,void 0!==n&&(n=r),t}return e7&&l||(16384&u.f)!=0?c.v:tm(c)}}class iM{#Q;#ee;constructor(i){var r=new Map,a=(t,i)=>
18{var a=e1(i,!1,!1);return r.set(t,a),a};let n=new Proxy({...i.props||{},$$events:{}},{get:(t,i)=>tm(r.get(i)??a(i,Reflect.get(t,i))),has:(t,i)=>i===T||(tm(r.get(i)??a(i,Reflect.get(t,i))),Reflect.has(t,i)),set:(t,i,n)=>(e0(r.get(i)??a(i,n),n),Reflect.set(t,i,n))});for(let r of(this.#ee=(i.hydrate?function(i,r){ei(),r.intro=r.intro??!1;let a=r.target,n=H,o=t;try{for(var s=ea(a);s&&(8!==s.nodeType||"["!==s.data);)s=en(s);if(!s)throw O;H=!0,W(s);let t=t2(i,{...r,anchor:s});return H=!1,t}catch(t){if(t instanceof Error&&t.message.split("\n").some(t=>t.startsWith("https://svelte.dev/e/")))throw t;return t!==O&&console.warn("Failed to hydrate: ",t),!1===r.recover&&function(){throw Error("https://svelte.dev/e/hydration_failed")}(),ei(),a.textContent="",H=!1,t2(i,r)}finally{H=n,W(o)}}:function(t,i){return t2(t,i)})(i.component,{target:i.target,anchor:i.anchor,props:n,context:i.context,intro:i.intro??!1,recover:i.recover,transformError:i.transformError}),i?.props?.$$host&&!1!==i.sync||eL(),this.#Q=n.$$events,Object.keys(this.#ee)))"$set"!==r&&"$destroy"!==r&&"$on"!==r&&p(this,r,{get(){return this.#ee[r]},set(t){this.#ee[r]=t},enumerable:!0});this.#ee.$set=t=>{Object.assign(n,t)},this.#ee.$destroy=()=>{var t;let i;t=this.#ee,(i=t3.get(t))?(t3.delete(t),i(void 0)):Promise.resolve()}}$set(t){this.#ee.$set(t)}$on(t,i){this.#Q[t]=this.#Q[t]||[];let r=(...t)=>i.call(this,...t);return this.#Q[t].push(r),()=>{this.#Q[t]=this.#Q[t].filter(t=>t!==r)}}$destroy(){this.#ee.$destroy()}}let iP=class{};function iD(t,i,r,a){let n=r[t]?.type;
18if(i="Boolean"===n&&"boolean"!=typeof i?null!=i:i,!a||!r[t])return i;if("toAttribute"===a)switch(n){case"Object":case"Array":return null==i?null:JSON.stringify(i);case"Boolean":return i?"":null;case"Number":return null==i?null:i;default:return i}switch(n){case"Object":case"Array":return i&&JSON.parse(i);case"Boolean":default:return i;case"Number":return null!=i?+i:i}}function iI(t,i,r,a,n,o){let s=class extends iP{constructor(){super(t,r,n),this.$$p_d=i}static get observedAttributes(){return f(i).map(t=>(i[t].attribute||t).toLowerCase())}};return f(i).forEach(t=>{p(s.prototype,t,{get(){return this.$$c&&t in this.$$c?this.$$c[t]:this.$$d[t]},set(r){r=iD(t,r,i),this.$$d[t]=r;var a=this.$$c;a&&(m(a,t)?.get?a[t]=r:a.$set({[t]:r}))}})}),a.forEach(t=>{p(s.prototype,t,{get(){return this.$$c?.[t]}})}),t.element=s,s}"function"==typeof HTMLElement&&(iP=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(t,i,r){super(),this.$$ctor=t,this.$$s=i,r&&(this.$$shadowRoot=this.attachShadow(r))}addEventListener(t,i,r){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(i),this.$$c){let r=this.$$c.$on(t,i);this.$$l_u.set(i,r)}super.addEventListener(t,i,r)}removeEventListener(t,i,r){if(super.removeEventListener(t,i,r),this.$$c){let t=this.$$l_u.get(i);t&&(t(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){var t,i;let r,a,n=function(t){return i=>{let r=ec("slot");"default"!==t&&(r.name=t),tY(i,r)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let o={},s=(i=this,r={},i.childNodes.forEach(t=>{r[t.slot||"default"]=!0}),r);for(let t of this.$$s)t in s&&("default"!==t||this.$$d.children?o[t]=n(t):(this.$$d.children=n(t),o.default=!0));for(let t of this.attributes){let i=this.$$g_p(t.name);i in this.$$d||(this.$$d[i]=iD(i,t.value,this.$$p_d,"toProp"))}for(let t in this.$$p_d)t in this.$$d||void 0===this[t]||(this.$$d[t]=this[t],delete this[t]);for(let i in this.$$c=new iM({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:o,$$host:this}}),this.$$me=(t=()=>{tw(()=>{for(let t of(this.$$r=!0,f(this.$$c))){if(!this.$$p_d[t]?.reflect)continue;this.$$d[t]=this.$$c[t];let i=iD(t,this.$$d[t],this.$$p_d,"toAttribute");null==i?this.removeAttribute(this.$$p_d[t].attribute||t):this.setAttribute(this.$$p_d[t].attribute||t,i)}this.$$r=!1})},ez.ensure(),a=ty(524352,t),()=>{tM(a)}),this.$$l)for(let t of this.$$l[i]){let r=this.$$c.$on(i,t);this.$$l_u.set(t,r)}this.$$l={}}}attributeChangedCallback(t,i,r){this.$$r||(t=this.$$g_p(t),this.$$d[t]=iD(t,r,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return f(this.$$p_d).find(i=>this.$$p_d[i].attribute===t||!this.$$p_d[i].attribute&&i.toLowerCase()===t)||t}});var iz=tZ('<div class="altcha-checkbox"><input/> <svg aria-hidden="true" width="12" height="9" viewBox="0 0 12 9"><polyline points="1 5 4 8 11 1"></polyline></svg> <div class="altcha-spinner altcha-checkbox-spinner" aria-hidden="true"></div></div>');function iL(t,i){let r;$(i,!0);let a=iE(i,"loading"),n=iC(i,["$$slots","$$events","$$legacy","$$host","loading"]);var o=iz(),s=eo(o);i_(s,()=>({type:"checkbox",...n}),void 0,void 0,void 0,void 0,!0),iS(s,t=>r=t,()=>r);var l=el(s,2);return K(2),Y(o),tk(()=>iy(o,"data-loading",a())),tN("click",l,function(){r?.click()}),tY(t,o),V({get loading(){return a()},set loading($$value){a($$value),eL()}})}t$(["click"]),iI(iL,{loading:{}},[],[],{mode:"open"});var iF=tZ('<div class="altcha-checkbox-native"><input/> <div class="altcha-spinner altcha-checkbox-native-spinner"></div></div>');function iR(t,i){$(i,!0);let r=iE(i,"loading"),a=iC(i,["$$slots","$$events","$$legacy","$$host","loading"]);var n=iF();return i_(eo(n),()=>({type:"checkbox",...a}),void 0,void 0,void 0,void 0,!0),K(2),Y(n),tk(()=>iy(n,"data-loading",r())),tY(t,n),V({get loading(){return r()},set loading($$value){r($$value),eL()}})}iI(iR,{loading:{}},[],[],{mode:"open"});var iO=tZ('<div><a target="_blank" class="altcha-logo" aria-hidden="true" tabindex="-1"><svg width="22" height="22" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.33955 16.4279C5.88954 20.6586 12.1971 21.2105 16.4279 17.6604C18.4699 15.947 19.6548 13.5911 19.9352 11.1365L17.9886 10.4279C17.8738 12.5624 16.909 14.6459 
1815.1423 16.1284C11.7577 18.9684 6.71167 18.5269 3.87164 15.1423C1.03163 11.7577 1.4731 6.71166 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577C16.9767 5.86872 17.5322 7.02798 17.804 8.2324L19.9522 9.01429C19.7622 7.07737 19.0059 5.17558 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956C-0.658625 5.88958 -1.21046 12.1971 2.33955 16.4279Z" fill="currentColor"></path><path d="M3.57212 2.33956C1.65755 3.94607 0.496389 6.11731 0.12782 8.40523L2.04639 9.13961C2.26047 7.15832 3.21057 5.25375 4.8577 3.87164C8.24231 1.03162 13.2883 1.4731 16.1284 4.8577L13.8302 6.78606L19.9633 9.13364C19.7929 7.15555 19.0335 5.20847 17.6604 3.57212C14.1104 -0.658624 7.80283 -1.21043 3.57212 2.33956Z" fill="currentColor"></path><path d="M7 10H5C5 12.7614 7.23858 15 10 15C12.7614 15 15 12.7614 15 10H13C13 11.6569 11.6569 13 10 13C8.3431 13 7 11.6569 7 10Z" fill="currentColor"></path></svg></a></div>');function iB(t,i){$(i,!0);let r=iE(i,"strings");var a=iO(),n=eo(a);return iy(n,"href","https://altcha.org"),Y(a),tk(()=>iy(n,"aria-label",r().ariaLinkLabel)),tY(t,a),V({get strings(){return r()},set strings($$value){r($$value),eL()}})}iI(iB,{strings:{}},[],[],{mode:"open"});var ij=tZ('<div class="altcha-footer"><p></p> <!></div>');function iN(t,i){$(i,!0);let r=iE(i,"logo"),a=iE(i,"strings");var n=ij(),o=eo(n);t7(o,()=>a().footer,!0),Y(o);var s=el(o,2),l=t=>{iB(t,{get strings(){return a()}})};return t6(s,t=>{r()&&t(l)}),Y(n),tY(t,n),V({get logo(){return r()},set logo($$value){r($$value),eL()},get strings(){return a()},set strings($$value){a($$value),eL()}})}iI(iN,{logo:{},strings:{}},[],[],{mode:"open"});var i$=tZ('<div class="altcha-switch"><input/>  <div class="altcha-switch-toggle"><div class="altcha-spinner altcha-switch-spinner"></div></div></div>');function iV(t,i){let r;$(i,!0);let a=iE(i,"loading"),n=iC(i,["$$slots","$$events","$$legacy","$$host","loading"]);var o=i$(),s=eo(o);i_(s,()=>({type:"checkbox",...n}),void 0,void 0,void 0,void 0,!0),iS(s,t=>r=t,()=>r);var l=el(s,2);return Y(o),tk(()=>iy(o,"data-loading",a())),tN("click",l,function(){r?.click()}),tY(t,o),V({get loading(){return a()},set loading($$value){a($$value),eL()}})}t$(["click"]),iI(iV,{loading:{}},[],[],{mode:"open"});var iU=((i=iU||{}).ERROR="error",i.LOADING="loading",i.PLAYING="playing",i.PAUSED="paused",i.READY="ready",i),iG=((r=iG||{}).CODE="code",r.ERROR="error",r.VERIFIED="verified",r.VERIFYING="verifying",r.UNVERIFIED="unverified",r.EXPIRED="expired",r),iq=tZ('<div class="altcha-code-challenge-title"> </div>'),iZ=tZ('<div class="altcha-spinner"></div>'),iH=tH('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M12.8659 3.00017L22.3922 19.5002C22.6684 19.9785 22.5045 20.5901 22.0262 20.8662C21.8742 20.954 21.7017 21.0002 21.5262 21.0002H2.47363C1.92135 21.0002 1.47363 20.5525 1.47363 20.0002C1.47363 19.8246 1.51984 19.6522 1.60761 19.5002L11.1339 3.00017C11.41 2.52187 12.0216 2.358 12.4999 2.63414C12.6519 2.72191 12.7782 2.84815 12.8659 3.00017ZM10.9999 16.0002V18.0002H12.9999V16.0002H10.9999ZM10.9999 9.00017V14.0002H12.9999V9.00017H10.9999Z"></path></svg>'),iW=tH('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M15 7C15 6.44772 15.4477 6 16 6C16.5523 6 17 6.44772 17 7V17C17 17.5523 16.5523 18 16 18C15.4477 18 15 17.5523 15 17V7ZM7 7C7 6.44772 7.44772 6 8 6C8.55228 6 9 6.44772 9 7V17C9 17.5523 8.55228 18 8 18C7.44772 18 7 17.5523 7 17V7Z"></path></svg>'),iX=tH('<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M4 12H7C8.10457 12 9 12.8954 9 14V19C9 20.1046 8.10457 21 7 21H4C2.89543 21 2 20.1046 2 19V12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12V19C22 20.1046 21.1046 21 20 21H17C15.8954 21 15 20.1046 15 19V14C15 12.8954 15.8954 12 17 12H20C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12Z"></path></svg>'),iY=tZ('<button type="button" class="altcha-button altcha-button-secondary"><!></button>'),iK=tZ('<audio hidden="" autoplay=""></audio>'),iJ=tZ('<div class="altcha-code-challenge"><form data-code-challenge="true"><!> <div class="altcha-code-challenge-text"> </div> <img class="altcha-code-challenge-image" alt=""/> <div class="altcha-code-challenge-row"><input type="text" class="altcha-input" autocomplete="off" name="" required=""/> <!> <button type="button" class="altcha-button altcha-button-secondary"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2V4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 9.25022 5.38734 6.82447 7.50024 5.38451L7.5 8H9.5V2L3.5 2V4L5.99918 3.99989C3.57075 5.82434 2 8.72873 2 12Z"></path></svg></button></div> <div class="altcha-code-challenge-buttons"><button type="submit" class="altcha-button"> </button> <button type="button" class="altcha-button altcha-button-secondary"> </button></div></form> <!></div>');function iQ(t,i){$(i,!0);let r=iE(i,"audioUrl"),a=iE(i,"codeChallenge"),n=iE(i,"config"),o=iE(i,"imageUrl"),s=iE(i,"onCancel"),l=iE(i,"onReload"),c=iE(i,"onSubmit"),u=iE(i,"strings"),h=eQ(void 0),d=eQ(void 0),f=eQ(void 0),p=eQ(!1),m=eQ(""),g=eQ(!1);
vendor: 4,065 bytes, line 18
18function y(){e0(h,iU.PAUSED,!0)}function _(t){e0(h,iU.ERROR,!0)}function v(){e0(h,iU.READY,!0)}function b(){e0(h,iU.LOADING,!0)}function x(){e0(h,iU.PLAYING,!0)}function w(){e0(h,iU.PAUSED,!0)}function k(){tm(d)?tm(h)===iU.LOADING||(tm(d).paused?(r()&&tm(d).src!==r()&&(tm(d).src=r()),tm(d).currentTime=0,tm(d).play()):tm(d).pause()):(e0(g,!0),requestAnimationFrame(()=>{tm(d)&&r()&&(tm(d).src=r(),tm(d).play())}))}t4(()=>(n().disableAutoFocus||tp().then(()=>{tm(f)?.focus()}),()=>{tm(d)&&(tm(d).pause(),e0(d,void 0))}));var T=iJ(),S=eo(T),A=eo(S),C=t=>{var i=iq(),r=eo(i,!0);Y(i),tk(()=>t1(r,u().verificationRequired)),tY(t,i)};t6(A,t=>{"standard"!==n().codeChallengeDisplay&&t(C)});var E=el(A,2),M=eo(E,!0);Y(E);var D=el(E,2),I=el(D,2),z=eo(I);ig(z),z.disabled=tm(p),iS(z,t=>e0(f,t),()=>tm(f));var F=el(z,2),R=t=>{var i=iY(),r=eo(i),a=t=>{tY(t,iZ())},n=t=>{tY(t,iH())},o=t=>{tY(t,iW())},s=t=>{tY(t,iX())};t6(r,t=>{tm(h)===iU.LOADING?t(a):tm(h)===iU.ERROR?t(n,1):tm(h)===iU.PLAYING?t(o,2):t(s,-1)}),Y(i),tk(()=>{iy(i,"title",u().getAudioChallenge),i.disabled=tm(h)===iU.LOADING||tm(h)===iU.ERROR,iy(i,"aria-label",tm(h)===iU.LOADING?u().loading:u().getAudioChallenge)}),tj("click",i,()=>k(),!0),tY(t,i)};t6(F,t=>{a().audio&&t(R)});var O=el(F,2);Y(I);var B=el(I,2),j=eo(B),N=eo(j,!0);Y(j);var U=el(j,2),G=eo(U,!0);Y(U),Y(B),Y(S);var q=el(S,2),Z=t=>{var i=iK();iS(i,t=>e0(d,t),()=>tm(d)),tj("error",i,_),tj("loadstart",i,b),tj("canplay",i,v),tj("pause",i,w),tj("playing",i,x),tj("ended",i,y),tY(t,i)};return t6(q,t=>{tm(g)&&t(Z)}),Y(T),tk(()=>{t1(M,u().enterCodeFromImage),iy(D,"src",o()),iy(z,"minlength",a().length||1),iy(z,"maxlength",a().length),iy(z,"placeholder",u().enterCode),iy(z,"aria-label",tm(h)===iU.LOADING?u().loading:tm(h)===iU.PLAYING?"":u().enterCodeAria),iy(z,"aria-live",tm(h)?"assertive":"polite"),iy(z,"aria-busy",tm(h)===iU.LOADING),iy(O,"title",u().reload),iy(O,"aria-label",u().reload),iy(j,"aria-label",u().verify),t1(N,u().verify),iy(U,"aria-label",u().cancel),t1(G,u().cancel)}),tj("submit",S,function(t){t.preventDefault(),t.stopPropagation(),c()?.(tm(m))},!0),tN("keydown",z,function(t){"Space"===t.code?(t.preventDefault(),t.stopPropagation(),k()):"Escape"===t.code&&(t.preventDefault(),t.stopPropagation(),s()?.())}),!function(t,i,r=i){var a=new WeakSet;!function(t,i,r,a=r){t.addEventListener(i,()=>e6(r));let n=t[P];n?t[P]=()=>{n(),a(!0)}:t[P]=()=>a(!0),e4()}(t,"input",async n=>{var o=n?t.defaultValue:t.value;if(r(o=iw(t)?ik(o):o),null!==ek&&a.add(ek),await tp(),o!==(o=i())){var s=t.selectionStart,l=t.selectionEnd,c=t.value.length;if(t.value=o??"",null!==l){var u=t.value.length;s===l&&l===c&&u>c?(t.selectionStart=u,t.selectionEnd=u):(t.selectionStart=s,t.selectionEnd=Math.min(l,u))}}}),(H&&t.defaultValue!==t.value||null==tg(i)&&t.value)&&(r(iw(t)?ik(t.value):t.value),null!==ek&&a.add(ek)),tw(()=>{var r=i();if(t===document.activeElement){var n=ek;if(a.has(n))return}iw(t)&&r===ik(t.value)||("date"!==t.type||r||t.value)&&r!==t.value&&(t.value=r??"")})}(z,()=>tm(m),t=>e0(m,t)),tj("click",O,()=>l()?.(),!0),tj("click",U,()=>s()?.(),!0),tY(t,T),V({get audioUrl(){return r()},set audioUrl($$value){r($$value),eL()},get codeChallenge(){return a()},set codeChallenge($$value){a($$value),eL()},get config(){return n()},set config($$value){n($$value),eL()},get imageUrl(){return o()},set imageUrl($$value){o($$value),eL()},get onCancel(){return s()},set onCancel($$value){s($$value),eL()},get onReload(){return l()},set onReload($$value){l($$value),eL()},get onSubmit(){return c()},set onSubmit($$value){c($$value),eL()},get strings(){return u()},set strings($$value){u($$value),eL()}})}t$(["keydown"]),iI(iQ,{audioUrl:{},codeChallenge:{},config:{},imageUrl:{},onCancel:{},onReload:{},onSubmit:{},strings:{}},[],[],{mode:"open"});var i1=tZ('<div class="altcha-popover-backdrop" data-backdrop=""></div>'),i0=tZ('<div class="altcha-popover-arrow"></div>'),i2=tZ('<div role="button" class="altcha-popover-close">&times;</div>'),i3=tZ('<!> <div><!> <!> <div class="altcha-popover-content"><!></div></div>',1);function i5(t,i){$(i,!0);
18let r=iE(i,"anchor"),n=iE(i,"children"),o=iE(i,"display",7,"standard"),s=iE(i,"backdrop",7,!1),l=iE(i,"onClickOutside"),c=iE(i,"onClickOutsideDelay",7,600),u=iE(i,"onClose"),h=iE(i,"placement",7,"auto"),d=iE(i,"updateUISignal"),f=iE(i,"variant",7,"neutral"),p=iC(i,["$$slots","$$events","$$legacy","$$host","anchor","children","display","backdrop","onClickOutside","onClickOutsideDelay","onClose","placement","updateUISignal","variant"]),m=eQ(void 0),g=eQ(void 0),y=eQ(!1),_=eQ(0);function v(){u()?.()}function b(){if(r()&&"auto"===h()&&tm(m)){let t=r().getBoundingClientRect(),i=document.documentElement.clientHeight-(t.top+t.height)<tm(m).clientHeight;tm(y)!==i&&e0(y,i)}}tb(()=>{"auto"!==h()&&e0(y,"top"===h())}),tb(()=>{d()&&b()}),t4(()=>{let t="bottomsheet"===o()||"overlay"===o();return t&&(tm(g)&&document.body.append(tm(g)),tm(m)&&document.body.append(tm(m))),b(),tp().then(()=>{e0(_,Date.now(),!0)}),()=>{t&&(tm(g)&&document.body.removeChild(tm(g)),tm(m)&&document.body.removeChild(tm(m)))}});var w=i3();tj("click",a,function(t){let i=t.target;!tm(m)?.contains(i)&&(!c()||tm(_)+c()<Date.now())&&l()?.()},!0),tj("resize",a,function(){b()}),tj("scroll",a,function(){b()});var k=es(w),T=t=>{var i=i1();iS(i,t=>e0(g,t),()=>tm(g)),tY(t,i)};t6(k,t=>{s()&&t(T)});var S=el(k,2);i_(S,()=>({...p,class:`altcha-popover ${(i.class||"")??""}`,"data-popover":!0,"data-variant":f(),"data-top":tm(y),"data-display":o()}));var A=eo(S),C=t=>{tY(t,i0())};t6(A,t=>{"standard"===o()&&t(C)});var E=el(A,2),M=t=>{var i=i2();tj("click",i,v,!0),tY(t,i)};t6(E,t=>{"standard"!==o()&&t(M)});var P=el(E,2);return!function(t,i,...r){var a=new t5(t);tT(()=>{let t=i()??null;a.ensure(t,t&&(i=>t(i,...r)))},65536)}(eo(P),()=>n()??x),Y(P),Y(S),iS(S,t=>e0(m,t),()=>tm(m)),tY(t,w),V({get anchor(){return r()},set anchor($$value){r($$value),eL()},get children(){return n()},set children($$value){n($$value),eL()},get display(){return o()},set display($$value="standard"){o($$value),eL()},get backdrop(){return s()},set backdrop($$value=!1){s($$value),eL()},get onClickOutside(){return l()},set onClickOutside($$value){l($$value),eL()},get onClickOutsideDelay(){return c()},set onClickOutsideDelay($$value=600){c($$value),eL()},get onClose(){return u()},set onClose($$value){u($$value),eL()},get placement(){return h()},set placement($$value="auto"){h($$value),eL()},get updateUISignal(){return d()},set updateUISignal($$value){d($$value),eL()},get variant(){return f()},set variant($$value="neutral"){f($$value),eL()}})}async function i4(t){let{challenge:i,concurrency:r=navigator.hardwareConcurrency,controller:a=new AbortController,createWorker:n,onOutOfMemory:o=t=>t>1?Math.floor(t/2):0,counterMode:s,timeout:l=9e4}=t,c=Math.min(16,Math.max(1,r)),u=[],h=()=>{for(let t of u)t.terminate()};for(let t=0;t<c;t++)u.push(await n(i.parameters.algorithm));let d=null;try{d=await Promise.race(u.map((t,r)=>(a.signal.addEventListener("abort",()=>{t.postMessage({type:"abort"})}),new Promise((a,n)=>{t.addEventListener("error",t=>{n(t)}),t.addEventListener("message",i=>{if(i.data){for(let i of u)i!==t&&i.postMessage({type:"abort"});if(i.data.error)return n(Error(i.data.error))}a(i.data)}),t.postMessage({challenge:i,counterMode:s,counterStart:r,counterStep:c,timeout:l,type:"work"})}))))}catch(r){if(r instanceof Error&&r?.message?.includes("Out of memory")&&o){h();let r=o(c);if(r)return i4({...t,challenge:i,controller:a,concurrency:r,createWorker:n})}throw r}finally{h()}return a.signal.aborted?null:d||null}iI(i5,{anchor:{},children:{},display:{},backdrop:{},onClickOutside:{},onClickOutsideDelay:{},onClose:{},placement:{},updateUISignal:{},variant:{}},[],[],{mode:"open"});class i6{TAG_CODES={INPUT:1,TEXTAREA:2,SELECT:3,BUTTON:4,A:5,DETAILS:6,SUMMARY:7,IFRAME:8,VIDEO:9,AUDIO:10};maxSamples;sampleInterval;target;focusStartTime=0;focusInteraction=0;focusInteractionTimer=null;lastPointerSample=0;lastTouchSample=0;lastScrollSample=0;pendingPointer=null;pendingTouch=null;focus=[];pointer=[];scroll=[];touch=[];constructor(t={}){let{maxSamples:i=60,sampleInterval:r=50,target:a=window}=t;this.maxSamples=i,this.sampleInterval=r,this.target=a,this.attach()}destroy(){let t={capture:!0};this.target.removeEventListener("focusin",this.onFocus,t),this.target.removeEventListener("keydown",this.onInteraction,t),this.target.removeEventListener("pointerdown",this.onInteraction,t),this.target.removeEventListener("pointermove",this.onPointer,t),this.target.removeEventListener("scroll",this.onScroll,t),this.target.removeEventListener("touchmove",this.onTouchMove,t)}export(){return{focus:this.focus,maxTouchPoints:navigator.maxTouchPoints||0,pointer:this.pointer,scroll:this.scroll,t
18ime:Date.now(),touch:this.touch}}attach(){let t={passive:!0,capture:!0};this.target.addEventListener("focusin",this.onFocus,t),this.target.addEventListener("keydown",this.onInteraction,t),this.target.addEventListener("pointerdown",this.onInteraction,t),this.target.addEventListener("pointermove",this.onPointer,t),this.target.addEventListener("scroll",this.onScroll,t),this.target.addEventListener("touchmove",this.onTouchMove,t)}evict(t){t.length>this.maxSamples&&t.splice(0,t.length-this.maxSamples)}onFocus=t=>{if(2===this.focusInteraction)return;let i=t.target;if(!(i instanceof Element))return;let r=performance.now();0===this.focusStartTime&&(this.focusStartTime=r),this.focus.push([Math.round(r-this.focusStartTime),i.tabIndex,this.TAG_CODES[i.tagName]??0,+!!this.focusInteraction]),this.evict(this.focus)};onInteraction=t=>{this.focusInteraction="keyCode"in t?1:2,this.focusInteractionTimer&&clearTimeout(this.focusInteractionTimer),this.focusInteractionTimer=setTimeout(()=>{this.focusInteraction=0},100)};onPointer=t=>{if("touch"===t.pointerType)return;let i=t.timeStamp||performance.now();this.pendingPointer=[Math.round(t.clientX),Math.round(t.clientY),Math.round(i)],i-this.lastPointerSample>=this.sampleInterval&&(this.pointer.push(this.pendingPointer),this.lastPointerSample=i,this.pendingPointer=null,this.evict(this.pointer))};onScroll=()=>{let t=performance.now();t-this.lastScrollSample<this.sampleInterval||(this.scroll.push([Math.round(window.scrollY),Math.round(t)]),this.lastScrollSample=t,this.evict(this.scroll))};onTouchMove=t=>{let i=t.timeStamp||performance.now(),r=t.touches[0];r&&(this.pendingTouch=[Math.round(r.clientX),Math.round(r.clientY),Math.round(i),Math.round(1e3*r.force)/1e3,Math.round(r.radiusX||0),Math.round(r.radiusY||0)],i-this.lastTouchSample>=this.sampleInterval&&(this.touch.push(this.pendingTouch),this.lastTouchSample=i,this.pendingTouch=null,this.evict(this.touch)))}}var i8=tZ('<div class="altcha-overlay-backdrop" data-backdrop=""></div>'),i7=tZ('<div class="altcha-overlay-content"></div>'),i9=tZ('<div role="button" class="altcha-overlay-close">&times;</div> <!>',1),re=tZ('<div class="altcha-floating-arrow"></div>'),rt=tZ('<input type="hidden"/>'),ri=tZ('<div class="altcha-error">Secure context (HTTPS) required.</div>'),rr=tZ('<div class="altcha-error"> </div>'),ra=tZ('<div class="altcha-error"> </div>'),rn=tZ("<!> <!>",1),ro=tZ('<!> <div class="altcha"><!> <div class="altcha-main"><div><div class="altcha-checkbox-wrap"><!> <label><!></label></div> <!></div> <!> <!> <!></div> <!></div>',1);"u">typeof window&&window.customElements&&!customElements.get("altcha-widget")&&customElements.define("altcha-widget",iI(function(i,r){let o;$(r,!0);let[s,l]=[o={},function(){tv(()=>{for(var t in o)o[t].unsubscribe();p(o,ev,{enumerable:!1,value:!0})})}],c=["ar","fa","he","ur"],{isSecureContext:u}=globalThis,{store:h}=globalThis.$altcha.defaults,d=navigator.hardwareConcurrency||2,f=navigator.deviceMemory||0,m=f&&f<=4?Math.min(4,d):d,g=globalThis.$altcha.i18n.store,y=r.$$host,_=(t,i)=>{tp().then(()=>{y?.dispatchEvent(new CustomEvent(t,{detail:i}))})},v=null,b=eQ(ee(new URL(location.origin))),x=eQ(!1),w=eQ(null),k=eQ(null),T=eQ(null),S=eQ(ee(iG.UNVERIFIED)),A=eQ(void 0),C=eQ(void 0),E=eQ(null),M=eQ(void 0),P=eQ(null),D=eQ(null),I=eQ(null),z=eQ(null),F=eQ(ee([])),R=eQ(0),O=eQ(ee({})),B=eQ(!0),j=eq(()=>({fetch:(t,i)=>fetch(t,i),audioChallengeLanguage:"",auto:"off",barPlacement:"bottom",challenge:"",codeChallenge:null,codeChallengeDisplay:"standard",credentials:null,debug:!1,disableAutoFocus:!1,display:"standard",floatingAnchor:"",floatingOffset:8,floatingPersist:!1,floatingPlacement:"auto",hideFooter:!1,hideLogo:!1,humanInteractionSignature:!0,language:"",mockError:!1,minDuration:500,overlayContent:"",name:"altcha",popoverPlacement:"auto",retryOnOutOfMemoryError:!0,setCookie:null,serverVerificationFields:!1,serverVerificationTimeZone:!1,test:!1,timeout:9e4,type:"checkbox",validationMessage:"",verifyFunction:null,verifyUrl:"",workers:m,...eb(h,"$altchaDefaults",s),...tm(O)})),N=eq(()=>`altcha-checkbox-${r.id||Math.floor(1e12*Math.random()).toString(16)}`),U=eq(()=>(function(t){switch(t){case"checkbox":return iL;case"switch":return iV;default:return iR}})(tm(j).type)),G=eq(()=>tm(j).auto),q=eq(()=>tm(S)===iG.VERIFYING),Z=eq(()=>!tm(j).hideFooter),K=eq(()=>!tm(j).hideLogo&&"bar"!==tm(j).display),et=eq(()=>{var t,i;let r,a;return t=eb(g,"$altchaI18nStore",s),i=[tm(j).language,document.documentElement.lang,...navigator.languages],r=Object.keys(t).map(t=>t.toLowerCase()),t[(a=i.reduce((i,a)=>(a=a.toLowerCase(),i||(t[a]?a:null)||r.find(t=>a.split("-")[0]===t.split("-")[0])||null),null))||""]||(a="en"),{language:a,strings:t[a]}}),ei=eq(()=>c.includes(tm(et).language)?"rtl":void 0),er=eq(()=>({...tm(et).strings})),ea=eq(()=>tm(w)?.audio?.match(/^(https?:)?\//)?ef(tm(w).audio,tm(b),{language:tm(j).audioChallengeLanguage||tm(et).language}).toString():tm(w)?.audio),en=eq(()=>tm(w)?.image?.match(/^(https?:)?\//)?ef(tm(w).image,tm(b)):tm(w)?.image);async function ec(t,...i){let r;for(let a of tm(F))r=await a[t].call(a,...i);return r}async function eu(t){await new Promise(i=>setTimeout(i,t))}async function eh(t=tm(j).challenge,i){var r,a;let n=await ec("onFetchChallenge",t),o=null;if(void 0!==n)return n;if("string"==typeof t)if(t.startsWith("{")){eM("parsing JSON challenge");try{o=JSON.parse(t)}catch{throw Error("Unable to parse JSON challenge.")}}else{eM("fetching challenge from",i?.method||"GET",t),e0(b,new URL(t,location.origin),!0);let r=await tm(j).fetch(t,{credentials:tm(j).credentials||void 0,...i});await eS(r);let a=r.headers.get("x-altcha-config");a&&function(t){try{let i=JSON.parse(t);i&&"object"==typeof i&&eC({serverVerificationFields:i?.sentinel?.fields,serverVerificationTimeZone:i?.sentinel?.timeZone,verifyUrl:i.verifyurl,...i})}catch(t){eM("unable to configure from x-altcha-config header",t)}}(a);let n=await r.json();if(n&&"his"in n&&n.his){if(eM("requested HIS"),!v)throw Error("Server requested HIS data but collector is disabled.");return eh(ef(n.his.url,tm(b)),{body:JSON.stringify({his:v.export()}),headers:{"content-type":"application/json"},method:"POST"})}n&&"hisResult"in n&&n.hisResult&&eM("HIS result",n.hisResult),o=n}else if(t&&"object"==typeof t)try{o=JSON.parse(JSON.stringify(t))}catch{throw Error("Unable to parse JSON challenge.")}if("object"==typeof(r=o)&&"challenge"in r&&(o=function(t){let[i,r]=t.salt.split("?"),a={};if(r)try{Object.assign(a,Object.fromEntries(new URLSearchParams(r).entries()))}catch{}let n={codeChallenge:t.codeChallenge,parameters:{algorithm:t.algorithm,cost:1,data:a,expiresAt:a?.expires?parseInt(a.expires,10):void 0,keyLength:"SHA-512"===t.algorithm?64:"SHA-384"===t.algorithm?48:32,nonce:Array.from(new Uint8Array(new TextEncoder().encode(t.salt))).map(t=>t.toString(16).padStart(2,"0")).join(""),keyPrefix:t.challenge,salt:""},signature:t.signature};return Object.defineProperties(n,{_originalSalt:{enumerable:!1,value:t.salt,writable:!1},_version:{enumerable:!1,value:1,writable:!1}}),n}
18(o)),!((a=o)&&"object"==typeof a&&"parameters"in a&&a.parameters&&"object"==typeof a.parameters&&"algorithm"in a.parameters&&"nonce"in a.parameters&&"salt"in a.parameters&&"keyPrefix"in a.parameters))throw Error("Challenge validation failed.");return o}function ed(){return document.getElementById(tm(N))}function ef(t,i,r){let a=new URL(t,i);if(a.search||(a.search=i.search),r)for(let t in r)void 0!==r[t]&&null!==r[t]&&a.searchParams.set(t,r[t]);return a.toString()}function ep(t){!tm(x)&&t.currentTarget.checked?(t.preventDefault(),t.currentTarget.checked=!1,tm(S)!==iG.VERIFYING&&eL()):t.currentTarget.checked||(t.preventDefault(),eP())}function em(t){tm(S)===iG.VERIFYING?t.currentTarget.setCustomValidity(tm(er).waitAlert):tm(j).validationMessage&&t.currentTarget.setCustomValidity(tm(j).validationMessage)}function eg(){eT(tm(j).display),eP()}function ey(t){"onfocus"===tm(G)&&tm(S)===iG.UNVERIFIED&&eL()}function e_(){eT(tm(j).display),eP()}function ex(t){let i=t.target;i?.getAttribute("data-code-challenge")!=="true"&&"onsubmit"===tm(G)&&tm(S)===iG.UNVERIFIED&&(t.preventDefault(),t.stopPropagation(),e0(P,t.submitter,!0),eI(),eL().then(t=>{t&&!tm(w)&&tp().then(()=>{ek(tm(P))})}))}async function ew(t,i){let r=await ec("onRequestServerVerification",t,i);if(void 0!==r)return r;if(eM("requesting server verification from",tm(j).verifyUrl),!tm(j).verifyUrl)throw Error("Parameter verifyUrl must be set for server verification.");let a=await tm(j).fetch(ef(tm(j).verifyUrl,tm(b)),{body:JSON.stringify({code:i,fields:tm(j).serverVerificationFields?[...tm(E)?.querySelectorAll('input[type="text"]:not([data-no-spamfilter]), textarea:not([data-no-spamfilter])')||[]].reduce((t,i)=>{let r=i.name,a=i.value;return r&&a&&(t[r]=/\n/.test(a)?a.replace(RegExp("(?<!\\r)\\n","g"),"\r\n"):a),t},{}):void 0,payload:t,timeZone:tm(j).serverVerificationTimeZone?function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}():void 0}),credentials:tm(j).credentials||void 0,headers:{"Content-Type":"application/json"},method:"POST"});await eS(a);let n=await a.json();return n&&"object"==typeof n&&"payload"in n&&n.payload&&_("serververification",n),n}function ek(t){tm(E)&&"requestSubmit"in tm(E)?tm(E).requestSubmit(t):tm(E)?.reportValidity()&&(t?t.click():tm(E).submit())}function eT(t){switch(t){case"bar":case"floating":case"overlay":eE(),tm(G)&&"off"!==tm(G)||(tm(O).auto="onsubmit");break;case"standard":eI()}tm(T)!==t&&e0(T,t,!0)}async function eS(t){if(t.status>=400){if(t.headers.get("content-type")?.includes("/json")){let i;try{i=await t.json()}catch{}if(i&&"error"in i)throw Error(`Server responded with ${t.status} - ${i.error}`)}throw Error(`Server responded with ${t.status}.`)}let i=t.headers.get("content-type");if(!i||!i.includes("/json"))throw Error(`Server responded with invalid content-type. Expected application/json, received ${i}.`)}async function eA(t){if(!tm(z))return void eD(iG.ERROR,"Cannot verify code challenge without PoW payload.");eD(iG.VERIFYING);let i=null;if(tm(j).verifyUrl)i=await ew(tm(z),t);else{if(!tm(j).verifyFunction)return void eD(iG.ERROR,"Parameter verifyUrl is required for code challenge verification.");i=await tm(j).verifyFunction(tm(z),t)}i?.payload&&(e0(z,i.payload,!0),eM("server payload",tm(z))),i?.verified===!0?(eM("verified"),eD(iG.VERIFIED),_("verified",{payload:tm(z)}),"onsubmit"===tm(G)&&tp().then(()=>{ek(tm(P))})):eD(iG.ERROR,i?.reason||"Verification failed."),tm(j).disableAutoFocus||ed()?.focus()}function eC(t){Object.assign(tm(O),{...Object.fromEntries(Object.entries(t).filter(([t,i])=>void 0!==i))})}function eE(){e0(B,!1)}function eM(...t){(tm(j).debug||t.some(t=>t instanceof Error))&&console[t[0]instanceof Error?"error":"log"]("ALTCHA",`[name=${tm(j).name}]`,...t)}function eP(t=iG.UNVERIFIED,i=null){e0(x,!1),e0(D,i,!0),e0(z,null),tm(k)&&tm(k).abort(),tm(I)&&(clearTimeout(tm(I)),e0(I,null)),eD(t)}function eD(t,i=null){e0(S,t,!0),e0(D,i,!0),_("statechange",{payload:tm(z),state:tm(S)})}function eI(){e0(B,!0),tp().then(()=>{ez()})}function ez(){if("floating"===tm(j).display)return function(t=20){if(!tm(M))return;let i=tm(j).floatingPlacement;if(!tm(C)&&(e0(C,(tm(j).floatingAnchor instanceof HTMLElement?tm(j).floatingAnchor:tm(j).floatingAnchor?document.querySelector(tm(j).floatingAnchor):tm(E)?.querySelector('input[type="submit"], button[type="submit"], button:not([type="button"]):not([type="reset"])'))||tm(E),!0),!tm(C)))return void eM("unable to find floating anchor element");let r=parseInt(tm(j).floatingOffset,10)||12,a=tm(C).getBoundingClientRect(),n=tm(M).getBoundingClientRect(),o=document.documentElement.clientHeight,s=document.documentElement.clientWidth,l=i&&"auto"!==i?"top"===i:a.bottom+n.height+r+t>o,c=Math.max(t,Math.min(s-t-n.width,a.left+a.width/2-n.width/2));if(tm(M).style.setProperty("--altcha-floating-left",`${c}px`),tm(M).style.setProperty("--altcha-floating-top",l?`${a.top-(n.height+r)}px`:`${a.bottom+r}px`),tm(M).setAttribute("data-floating-position",l?"top":"bottom"),tm(A)){let t=tm(A).getBoundingClientRect();tm(A).style.left=a.left-c+a.width/2-t.width/2+"px"}}();e0(R,tm(R)+1)}async function eL(t={}){let{concurrency:i=Math.max(1,tm(j).workers),controller:r=new AbortController,minDuration:a=tm(j).minDuration}=t,n=performance.now(),o=null,s=null,l=!1,c=await ec("onVerify",t);if(void 0!==c)return c;eP(iG.VERIFYING),e0(k,r,!0);try{var h,d,f;let t,c;if(!u)throw Error("Secure context (HTTPS) required.");
18if(tm(j).mockError)throw Error("Mock error.");if(tm(j).test){if(eM("running test mode with null challenge"),await eu(Math.max(0,a-(performance.now()-n))),tm(k)?.signal.aborted)return eP(),null;return e0(z,btoa(JSON.stringify({challenge:null,solution:null,test:!0})),!0),eM("verified"),eD(iG.VERIFIED),_("verified",{payload:tm(z)}),{payload:tm(z)}}if(!(o=await eh()))throw Error("Failed to fetch challenge.");eM("challenge",o),"configuration"in o&&(eM("re-configuring from challenge",o.configuration),eC(o.configuration)),o.parameters.expiresAt&&(h=o.parameters.expiresAt,tm(I)&&clearTimeout(tm(I)),t=()=>{tm(S)!==iG.UNVERIFIED?(e0(x,!1),eD(iG.EXPIRED)):eP(),_("expired")},(c=1e3*h-Date.now())>=1?e0(I,setTimeout(t,c),!0):t()),l="_version"in o&&1===o._version;let p=globalThis.$altcha.algorithms.get(o.parameters.algorithm);if(!p)throw Error(`Unsupported algorithm ${o.parameters.algorithm}.`);if(s=await i4({challenge:o,concurrency:i,controller:r,createWorker:p,counterMode:l?"string":"uint32",onOutOfMemory:t=>{if(eM("out of memory error received"),_("outofmemory"),tm(j).retryOnOutOfMemoryError&&t>1){let i=Math.floor(t/2);return eM(`retrying with ${i} workers...`),i}},timeout:tm(j).timeout}),tm(k)?.signal.aborted)return eP(),null;if(!s)throw Error("Failed to find solution.");(eM("solution",s),await eu(Math.max(0,a-(performance.now()-n))),e0(w,o.codeChallenge||tm(j).codeChallenge||null,!0),l)?e0(z,btoa(JSON.stringify((d=o,f=s,{algorithm:d.parameters.algorithm,challenge:d.parameters.keyPrefix,number:f.counter,salt:"_originalSalt"in d?d._originalSalt:d.parameters.nonce,signature:d.signature,took:f.time||0}))),!0):e0(z,btoa(JSON.stringify({challenge:{parameters:o.parameters,signature:o.signature},solution:s})),!0),tm(w)?(eM("requesting code verification"),eD(iG.CODE),_("codechallenge",{codeChallenge:tm(w)})):tm(j).verifyUrl?await eA():(eM("verified"),eD(iG.VERIFIED),_("verified",{payload:tm(z)}))}catch(t){return eM("verification failed",t),eD(iG.ERROR,String(t)),null}finally{e0(k,null)}return{challenge:o,payload:tm(z),solution:s}}tb(()=>{eC({auto:r.auto,challenge:r.challenge,display:r.display,language:r.language,name:r.name,type:r.type,workers:r.workers})}),tb(()=>{r.theme?y?.setAttribute("theme",r.theme):y?.removeAttribute("theme")}),tb(()=>{if(r.configuration)try{eC(JSON.parse(r.configuration))}catch{eM("unable to parse the `configuration` attribute (JSON expected)")}}),tb(()=>{tm(T)!==tm(j).display&&eT(tm(j).display)}),tb(()=>{tm(x)&&tm(S)===iG.VERIFYING&&e0(x,!1)}),tb(()=>{tm(x)||tm(S)!==iG.VERIFIED||e0(x,!0)}),tb(()=>{if(!tm(x)){let t=ed();t&&t.checked&&(t.checked=!1)}}),tb(()=>{tm(S)===iG.VERIFIED&&ed()?.setCustomValidity("")}),tb(()=>{if("onload"===tm(G)){let t=setTimeout(()=>{eL()},1);return()=>{t&&clearTimeout(t)}}}),tb(()=>{tm(D)&&eM("error:",tm(D))}),tb(()=>{tm(z)&&tm(j).setCookie&&function(t,i={}){let{domain:r,name:a=tm(j).name,maxAge:n,path:o,sameSite:s,secure:l}=i,c=`${encodeURIComponent(a)}=${encodeURIComponent(t)}`;r&&(c+=`; Domain=${r}`),null!=n&&(c+=`; Max-Age=${n}`),o&&(c+=`; Path=${o}`),s&&(c+=`; SameSite=${s}`),l&&(c+="; Secure"),document.cookie=c}(tm(z),tm(j).setCookie)}),t4(()=>(eM("mounted","3.2.2"),y&&globalThis.$altcha.instances.add(y),e0(E,tm(M)?.closest("form"),!0),tm(E)?.addEventListener("reset",e_),tm(E)?.addEventListener("submit",ex,{capture:!0}),tm(E)?.addEventListener("focusin",ey),function(){for(let t of(e0(F,[...globalThis.$altcha.plugins].map(t=>new t(y)),!0),eM("activating plugins",tm(F).map(t=>t.constructor.name)),tm(F)))t.activate()}(),tm(j).humanInteractionSignature&&(eM("human interaction signature enabled"),v=new i6),_("load"),u||eM("secure context (HTTPS) required"),()=>{(function(){for(let t of tm(F))t.destroy()})(),y&&globalThis.$altcha.instances.delete(y),tm(I)&&clearTimeout(tm(I)),tm(E)?.removeEventListener("reset",e_),tm(E)?.removeEventListener("submit",ex,{capture:!0}),tm(E)?.removeEventListener("focusin",ey),v?.destroy()}));var eF,eR,eO,eB=ro();tj("scroll",n,function(){ez()}),tj("click",n,function(t){let i=t.target;"floating"!==tm(j).display||!i||y?.contains(i)||i.hasAttribute("data-backdrop")||i.closest("[data-popover]")||tm(S)===iG.VERIFIED||tm(j).floatingPersist||eE()}),tj("pageshow",a,function(t){t.persisted&&(eT(tm(j).display),eP())}),tj("resize",a,function(){ez()});var ej=es(eB),eN=t=>{tY(t,i8())};t6(ej,t=>{"overlay"===tm(j).display&&tm(B)&&t(eN)});var e$=el(ej,2),eV=eo(e$),eU=t=>{var i=i9(),r=es(i),a=el(r,2),n=t=>{var i=i7();t7(i,()=>document.querySelector(tm(j).overlayContent)?.innerHTML,!0),Y(i),tY(t,i)};t6(a,t=>{tm(j).overlayContent&&t(n)}),tj("click",r,eg,!0),tY(t,i)};t6(eV,t=>{"overlay"===tm(j).display&&tm(B)&&t(eU)});var eG=el(eV,2),eZ=eo(eG),eH=eo(eZ),eW=eo(eH);{let i=eq(()=>"standard"===tm(j).display&&"onsubmit"!==tm(G)||tm(S)===iG.VERIFYING);eF=(t,r)=>{r(t,{get id(){return tm(N)},name:"",get required(){return tm(i)},get loading(){return tm(q)},get checked(){return tm(x)},onchange:ep,oninvalid:em})},H&&(eR=t,X()),eO=new t5(eW),tT(()=>{var t=(()=>tm(U))()??null;if(H&&"["===Q(eR)!=(null!==t)){var i=J();W(i),eO.anchor=i,H=!1,eO.ensure(t,t&&(i=>eF(i,t))),H=!0;return}eO.ensure(t,t&&(i=>eF(i,t)))},65536)}var eX=el(eW,2),eY=eo(eX),eK=t=>{var i=tW();tk(()=>t1(i,tm(er).verificationRequired)),tY(t,i)},eJ=t=>{var i=tW();tk(()=>t1(i,tm(er).verifying)),tY(t,i)},e1=t=>{var i=tW();tk(()=>t1(i,tm(er).verified)),tY(t,i)},e2=t=>{var i=tW();tk(()=>t1(i,tm(er).label)),tY(t,i)};t6(eY,t=>{tm(S)===iG.CODE&&tm(w)?t(eK):tm(S)===iG.VERIFYING?t(eJ,1):tm(S)===iG.VERIFIED?t(e1,2):t(e2,-1)}),Y(eX),Y(eH);var e3=el(eH,2),e5=t=>{iB(t,{get strings(){return tm(er)}})};t6(e3,t=>{tm(K)&&t(e5)}),Y(eZ);var e4=el(eZ,2),e6=t=>{{let i=eq(()=>"bar"===tm(j).display&&tm(K));iN(t,{get logo(){return tm(i)},get strings(){return tm(er)}})}};t6(e4,t=>{tm(Z)&&t(e6)});var e8=el(e4,2),e7=t=>{var i=re();iS(i,t=>e0(A,t),()=>tm(A)),tY(t,i)};t6(e8,t=>{"floating"===tm(j).display&&t(e7)});var e9=el(e8,2),te=t=>{var i=rt();ig(i),tk(()=>{var t,r;iy(i,"name",tm(j).name),t=tm(z),(r=iv(i)).value!==(r.value=t??void 0)&&(i.value!==t||0===t&&i.nodeName===im)&&(i.value=t??"")}),tY(t,i)};t6(e9,t=>{tm(j).setCookie||t(te)}),Y(eG);var tt=el(eG,2),ti=t=>{i5(t,{get anchor(){return tm(M)},onClickOutside:()=>{u&&eP()},get placement(){return tm(j).popoverPlacement},role:"alert",variant:"error",get dir(){return tm(ei)},get updateUISignal(){return tm(R)},children:(t,i)=>{var r=tX(),a=es(r),n=t=>{tY(t,ri())},o=t=>{var i=rr(),r=eo(i,!0);Y(i),tk(()=>t1(r,tm(er).expired)),tY(t,i)},s=t=>{var i=ra(),r=eo(i,!0);Y(i),tk(()=>{iy(i,"title",tm(D)),t1(r,tm(er).error)}),tY(t,i)};t6(a,t=>{tm(D)||u?tm(D)||tm(S)!==iG.EXPIRED?t(s,-1):t(o,1):t(n)}),tY(t,r)},$$slots:{default:!0}})},tr=t=>{var i,r,a,n=tX();i=es(n),r=t=>{{let i=eq(()=>
18"standard"!==tm(j).codeChallengeDisplay);i5(t,{get anchor(){return tm(M)},get backdrop(){return tm(i)},get display(){return tm(j).codeChallengeDisplay},onClose:()=>{eP()},get placement(){return tm(j).popoverPlacement},role:"dialog",get"aria-label"(){return tm(er).verificationRequired},get dir(){return tm(ei)},get updateUISignal(){return tm(R)},children:(t,i)=>{var r=rn(),a=es(r);iQ(a,{get audioUrl(){return tm(ea)},get imageUrl(){return tm(en)},onCancel:()=>eP(),onReload:()=>eL(),onSubmit:t=>eA(t),get codeChallenge(){return tm(w)},get config(){return tm(j)},get strings(){return tm(er)}});var n=el(a,2),o=t=>{iN(t,{get logo(){return tm(K)},get strings(){return tm(er)}})};t6(n,t=>{tm(Z)&&"standard"!==tm(j).codeChallengeDisplay&&t(o)}),tY(t,r)},$$slots:{default:!0}})}},H&&X(),a=new t5(i),tT(()=>{var t=(()=>tm(w))();t!=t&&(t=t8),a.ensure(t,r)}),tY(t,n)};t6(tt,t=>{tm(D)||tm(S)===iG.EXPIRED||!u?t(ti):tm(w)&&tm(S)===iG.CODE&&t(tr,1)}),Y(e$),iS(e$,t=>e0(M,t),()=>tm(M)),tk(t=>{iy(e$,"data-state",tm(S)),iy(e$,"data-display",tm(j).display||void 0),iy(e$,"data-placement",t),iy(e$,"data-visible",tm(B)||void 0),iy(e$,"dir",tm(ei)),iy(eX,"for",tm(N)),e$.dir=e$.dir},[()=>(function(t){switch(t){case"bar":return tm(j).barPlacement||"bottom";case"floating":return tm(j).floatingPlacement||"auto";default:return}})(tm(j).display)]),tY(i,eB);var ta=V({configure:eC,getConfiguration:function(){return{...tm(j)}},getState:function(){return tm(S)},hide:eE,log:eM,reset:eP,setState:eD,show:eI,updateUI:ez,verify:eL});return l(),ta},{auto:{type:"String"},challenge:{type:"String"},configuration:{type:"String"},display:{type:"String"},language:{type:"String"},name:{type:"String"},theme:{type:"String"},type:{type:"String"},workers:{type:"Number"}},[],["configure","getConfiguration","getState","hide","log","reset","setState","show","updateUI","verify"]));let rs=`(function() {
19  "use strict";
20  function bufferStartsWith(buffer, prefix) {
21    if (prefix.length > buffer.length) {
22      return false;
23    }
24    for (let i = 0; i < prefix.length; i++) {
25      if (buffer[i] !== prefix[i]) {
26        return false;
27      }
28    }
29    return true;
30  }
31  function bufferToHex(buffer) {
32    return Array.from(new Uint8Array(buffer)).map((b) => b.toString(16).padStart(2, "0")).join("");
33  }
34  function concatBuffers(a, b) {
35    const out = new Uint8Array(a.length + b.length);
36    out.set(a, 0);
37    out.set(b, a.length);
38    return out;
39  }
40  function hexToBuffer(hex) {
41    if (hex.length % 2 !== 0) {
42      throw new Error(\`Hex string must have an even length. Got: \${hex}\`);
43    }
44    const buffer = new ArrayBuffer(hex.length / 2);
45    const view = new DataView(buffer);
46    for (let i = 0; i < hex.length; i += 2) {
47      const byteString = hex.substring(i, i + 2);
48      const byteValue = parseInt(byteString, 16);
49      view.setUint8(i / 2, byteValue);
50    }
51    return new Uint8Array(buffer);
52  }
53  async function delay(ms) {
54    await new Promise((resolve) => setTimeout(resolve, ms));
55  }
56  function timeDuration(start) {
57    return Math.floor((performance.now() - start) * 10) / 10;
58  }
59  class PasswordBuffer {
60    constructor(nonce, mode = "uint32") {
61      this.nonce = nonce;
62      this.mode = mode;
63      this.buffer = new Uint8Array(this.nonce.length + this.COUNTER_BYTES);
64      this.buffer.set(this.nonce, 0);
65      this.dataView = new DataView(this.buffer.buffer);
66    }
67    nonce;
68    mode;
69    COUNTER_BYTES = 4;
70    buffer;
71    dataView;
72    encoder = new TextEncoder();
73    /**
74     * Appends the counter to the nonce buffer.
75     * In 'string' mode, encodes the counter as a UTF-8 string.
76     * In 'uint32' mode, writes the counter as a big-endian 32-bit integer.
77     */
78    setCounter(n) {
79      if (this.mode === "string") {
80        return concatBuffers(this.nonce, this.encoder.encode(n.toString()));
81      }
82      this.dataView.setUint32(this.nonce.length, n, false);
83      return this.buffer;
84    }
85  }
86  async function solveChallenge(options) {
87    const {
88      challenge,
89      controller,
90      counterMode = "uint32",
91      counterStart = 0,
92      counterStep = 1,
93      deriveKey: deriveKey2,
94      timeout = 9e4
95    } = options;
96    const { nonce, keyPrefix, salt } = challenge.parameters;
97    const nonceBuf = hexToBuffer(nonce);
98    const saltBuf = hexToBuffer(salt);
vendor: 5,779 bytes, lines 99-279
99    const keyPrefixBuf = keyPrefix.length % 2 === 0 ? hexToBuffer(keyPrefix) : null;
100    const password = new PasswordBuffer(nonceBuf, counterMode);
101    const start = performance.now();
102    let counter = counterStart;
103    let iterations = 0;
104    let derivedKeyHex = "";
105    let lastYield = start;
106    while (true) {
107      if (controller?.signal.aborted || timeout && iterations % 10 === 0 && performance.now() - start > timeout) {
108        return null;
109      }
110      const { derivedKey } = await deriveKey2(
111        challenge.parameters,
112        saltBuf,
113        password.setCounter(counter)
114      );
115      if (iterations % 10 === 0 && performance.now() - lastYield > 200) {
116        await delay(0);
117        lastYield = performance.now();
118      }
119      if (keyPrefixBuf ? bufferStartsWith(derivedKey, keyPrefixBuf) : bufferToHex(derivedKey).startsWith(keyPrefix)) {
120        derivedKeyHex = bufferToHex(derivedKey);
121        break;
122      }
123      counter = counter + counterStep;
124      iterations = iterations + 1;
125    }
126    return {
127      counter,
128      derivedKey: derivedKeyHex,
129      time: timeDuration(start)
130    };
131  }
132  function handler(options) {
133    const { deriveKey: deriveKey2 } = options;
134    let controller = void 0;
135    self.onmessage = async (message) => {
136      const { challenge, counterMode, counterStart, counterStep, timeout, type } = message.data;
137      if (type === "abort") {
138        controller?.abort();
139      } else if (type === "work") {
140        controller = new AbortController();
141        let solution;
142        try {
143          solution = await solveChallenge({
144            challenge,
145            controller,
146            counterStart,
147            counterStep,
148            deriveKey: deriveKey2,
149            counterMode,
150            timeout
151          });
152        } catch (err) {
153          return self.postMessage({ error: err });
154        }
155        self.postMessage(solution);
156      }
157    };
158  }
159  function getDigest(algorithm) {
160    switch (algorithm) {
161      case "PBKDF2/SHA-512":
162        return "SHA-512";
163      case "PBKDF2/SHA-384":
164        return "SHA-384";
165      case "PBKDF2/SHA-256":
166      default:
167        return "SHA-256";
168    }
169  }
170  async function deriveKey(parameters, salt, password) {
171    const { algorithm, cost, keyLength = 32 } = parameters;
172    const passwordKey = await crypto.subtle.importKey(
173      "raw",
174      password,
175      { name: "PBKDF2" },
176      false,
177      ["deriveKey"]
178    );
179    const derivedKey = await crypto.subtle.deriveKey(
180      {
181        name: "PBKDF2",
182        salt,
183        iterations: cost,
184        hash: getDigest(algorithm)
185      },
186      passwordKey,
187      { name: "AES-GCM", length: keyLength * 8 },
188      true,
189      ["encrypt"]
190    );
191    return {
192      derivedKey: new Uint8Array(await crypto.subtle.exportKey("raw", derivedKey))
193    };
194  }
195  handler({
196    deriveKey
197  });
198})();
199`,rl="u">typeof self&&self.Blob&&new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);",rs],{type:"text/javascript;charset=utf-8"});function rc(t){let i;try{if(!(i=rl&&(self.URL||self.webkitURL).createObjectURL(rl)))throw"";let r=new Worker(i,{name:t?.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(i)}),r}catch(i){return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(rs),{name:t?.name})}}let ru=`(function() {
200  "use strict";
201  function bufferStartsWith(buffer, prefix) {
202    if (prefix.length > buffer.length) {
203      return false;
204    }
205    for (let i = 0; i < prefix.length; i++) {
206      if (buffer[i] !== prefix[i]) {
207        return false;
208      }
209    }
210    return true;
211  }
212  function bufferToHex(buffer) {
213    return Array.from(new Uint8Array(buffer)).map((b) => b.toString(16).padStart(2, "0")).join("");
214  }
215  function concatBuffers(a, b) {
216    const out = new Uint8Array(a.length + b.length);
217    out.set(a, 0);
218    out.set(b, a.length);
219    return out;
220  }
221  function hexToBuffer(hex) {
222    if (hex.length % 2 !== 0) {
223      throw new Error(\`Hex string must have an even length. Got: \${hex}\`);
224    }
225    const buffer = new ArrayBuffer(hex.length / 2);
226    const view = new DataView(buffer);
227    for (let i = 0; i < hex.length; i += 2) {
228      const byteString = hex.substring(i, i + 2);
229      const byteValue = parseInt(byteString, 16);
230      view.setUint8(i / 2, byteValue);
231    }
232    return new Uint8Array(buffer);
233  }
234  async function delay(ms) {
235    await new Promise((resolve) => setTimeout(resolve, ms));
236  }
237  function timeDuration(start) {
238    return Math.floor((performance.now() - start) * 10) / 10;
239  }
240  class PasswordBuffer {
241    constructor(nonce, mode = "uint32") {
242      this.nonce = nonce;
243      this.mode = mode;
244      this.buffer = new Uint8Array(this.nonce.length + this.COUNTER_BYTES);
245      this.buffer.set(this.nonce, 0);
246      this.dataView = new DataView(this.buffer.buffer);
247    }
248    nonce;
249    mode;
250    COUNTER_BYTES = 4;
251    buffer;
252    dataView;
253    encoder = new TextEncoder();
254    /**
255     * Appends the counter to the nonce buffer.
256     * In 'string' mode, encodes the counter as a UTF-8 string.
257     * In 'uint32' mode, writes the counter as a big-endian 32-bit integer.
258     */
259    setCounter(n) {
260      if (this.mode === "string") {
261        return concatBuffers(this.nonce, this.encoder.encode(n.toString()));
262      }
263      this.dataView.setUint32(this.nonce.length, n, false);
264      return this.buffer;
265    }
266  }
267  async function solveChallenge(options) {
268    const {
269      challenge,
270      controller,
271      counterMode = "uint32",
272      counterStart = 0,
273      counterStep = 1,
274      deriveKey: deriveKey2,
275      timeout = 9e4
276    } = options;
277    const { nonce, keyPrefix, salt } = challenge.parameters;
278    const nonceBuf = hexToBuffer(nonce);
279    const saltBuf = hexToBuffer(salt);
vendor: 3,286 bytes, lines 280-364
280    const keyPrefixBuf = keyPrefix.length % 2 === 0 ? hexToBuffer(keyPrefix) : null;
281    const password = new PasswordBuffer(nonceBuf, counterMode);
282    const start = performance.now();
283    let counter = counterStart;
284    let iterations = 0;
285    let derivedKeyHex = "";
286    let lastYield = start;
287    while (true) {
288      if (controller?.signal.aborted || timeout && iterations % 10 === 0 && performance.now() - start > timeout) {
289        return null;
290      }
291      const { derivedKey } = await deriveKey2(
292        challenge.parameters,
293        saltBuf,
294        password.setCounter(counter)
295      );
296      if (iterations % 10 === 0 && performance.now() - lastYield > 200) {
297        await delay(0);
298        lastYield = performance.now();
299      }
300      if (keyPrefixBuf ? bufferStartsWith(derivedKey, keyPrefixBuf) : bufferToHex(derivedKey).startsWith(keyPrefix)) {
301        derivedKeyHex = bufferToHex(derivedKey);
302        break;
303      }
304      counter = counter + counterStep;
305      iterations = iterations + 1;
306    }
307    return {
308      counter,
309      derivedKey: derivedKeyHex,
310      time: timeDuration(start)
311    };
312  }
313  function handler(options) {
314    const { deriveKey: deriveKey2 } = options;
315    let controller = void 0;
316    self.onmessage = async (message) => {
317      const { challenge, counterMode, counterStart, counterStep, timeout, type } = message.data;
318      if (type === "abort") {
319        controller?.abort();
320      } else if (type === "work") {
321        controller = new AbortController();
322        let solution;
323        try {
324          solution = await solveChallenge({
325            challenge,
326            controller,
327            counterStart,
328            counterStep,
329            deriveKey: deriveKey2,
330            counterMode,
331            timeout
332          });
333        } catch (err) {
334          return self.postMessage({ error: err });
335        }
336        self.postMessage(solution);
337      }
338    };
339  }
340  async function deriveKey(parameters, salt, password) {
341    const { algorithm, keyLength = 32 } = parameters;
342    const iterations = Math.max(1, parameters.cost);
343    let data = void 0;
344    let derivedKey = void 0;
345    for (let i = 0; i < iterations; i++) {
346      if (i === 0) {
347        data = concatBuffers(salt, password);
348      } else {
349        data = derivedKey;
350      }
351      derivedKey = new Uint8Array(
352        (await crypto.subtle.digest(algorithm, data)).slice(0, keyLength)
353      );
354    }
355    return {
356      parameters: {},
357      derivedKey
358    };
359  }
360  handler({
361    deriveKey
362  });
363})();
364`,rh="u">typeof self&&self.Blob&&new Blob(["(self.URL || self.webkitURL).revokeObjectURL(self.location.href);",ru],{type:"text/javascript;charset=utf-8"});function rd(t){let i;try{if(!(i=rh&&(self.URL||self.webkitURL).createObjectURL(rh)))throw"";let r=new Worker(i,{name:t?.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(i)}),r}catch(i){return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(ru),{name:t?.name})}}!function(t,i="altcha-css"){if("u">typeof document&&document&&!document.getElementById(i)){let r=document.createElement("style");r.id=i,r.textContent=t;let a=document.currentScript?.nonce??document.querySelector('meta[name="csp-nonce"]')?.content;a&&(r.nonce=a),document.head.appendChild(r)}}(
vendor: 12,382 bytes, line 364
364':root {\n  --altcha-border-color: var(--altcha-color-neutral);\n  --altcha-border-width: 1px;\n  --altcha-border-radius: 6px;\n  --altcha-color-base: light-dark(oklch(100% 0.00011 271.152), oklch(20.904% 0.00002 271.152));\n  --altcha-color-base-content: light-dark(\n  	oklch(20.904% 0.00002 271.152),\n  	oklch(100% 0.00011 271.152)\n  );\n  --altcha-color-error: oklch(51.284% 0.20527 28.678);\n  --altcha-color-error-content: oklch(100% 0.00011 271.152);\n  --altcha-color-neutral: light-dark(oklch(83.591% 0.0001 271.152), oklch(46.04% 0.00005 271.152));\n  --altcha-color-neutral-content: light-dark(\n  	oklch(46.76% 0.00005 271.152),\n  	oklch(100% 0.00011 271.152)\n  );\n  --altcha-color-primary: oklch(40.279% 0.2449 268.131);\n  --altcha-color-primary-content: oklch(100% 0.00011 271.152);\n  --altcha-color-success: oklch(55.748% 0.18968 142.511);\n  --altcha-color-success-content: oklch(100% 0.00011 271.152);\n  --altcha-checkbox-border-color: light-dark(\n  	oklch(66.494% 0.00233 15.434),\n  	oklch(51.028% 0.00006 271.152)\n  );\n  --altcha-checkbox-border-radius: 5px;\n  --altcha-checkbox-border-width: var(--altcha-border-width);\n  --altcha-checkbox-outline: 2px solid var(--altcha-checkbox-outline-color);\n  --altcha-checkbox-outline-color: -webkit-focus-ring-color;\n  --altcha-checkbox-outline-offset: 2px;\n  --altcha-checkbox-size: 22px;\n  --altcha-checkbox-transition-duration: var(--altcha-transition-duration);\n  --altcha-input-background-color: var(--altcha-color-base);\n  --altcha-input-border-radius: 3px;\n  --altcha-input-border-width: 1px;\n  --altcha-input-color: var(--altcha-color-base-content);\n  --altcha-max-width: 320px;\n  --altcha-padding: 0.75rem;\n  --altcha-popover-arrow-size: 6px;\n  --altcha-popover-color: var(--altcha-border-color);\n  --altcha-shadow: drop-shadow(3px 3px 6px oklch(0% 0 0 / 0.2));\n  --altcha-spinner-color: var(--altcha-color-base-content);\n  --altcha-switch-background-color: var(--altcha-color-neutral);\n  --altcha-switch-border-radius: calc(infinity * 1px);\n  --altcha-switch-height: var(--altcha-checkbox-size);\n  --altcha-switch-padding: 0.25rem;\n  --altcha-switch-width: calc(var(--altcha-checkbox-size) * 1.75);\n  --altcha-switch-toggle-border-radius: 100%;\n  --altcha-switch-toggle-color: var(--altcha-color-neutral-content);\n  --altcha-switch-toggle-size: calc(\n  	var(--altcha-switch-height) - calc(var(--altcha-switch-padding) * 2)\n  );\n  --altcha-transition-duration: 0.6s;\n  --altcha-z-index: 99999999;\n  --altcha-z-index-popover: 999999999;\n}\n\n@supports (-moz-appearance: none) {\n  :root {\n    --altcha-checkbox-outline-color: var(--altcha-color-primary);\n  }\n}\n.altcha {\n  all: revert-layer;\n  display: none;\n  font-family: inherit;\n  font-size: inherit;\n  position: relative;\n}\n.altcha[data-visible] {\n  display: block;\n}\n.altcha-popover, .altcha-popover * {\n  all: revert-layer;\n  box-sizing: border-box;\n  font-family: inherit;\n  font-size: inherit;\n  line-height: 1.25;\n}\n.altcha * {\n  all: revert-layer;\n  box-sizing: border-box;\n  font-family: inherit;\n  font-size: inherit;\n  line-height: 1.25;\n}\n.altcha a, .altcha-popover a {\n  color: currentColor;\n  text-decoration: none;\n}\n.altcha a:hover, .altcha-popover a:hover {\n  color: currentColor;\n}\n.altcha-main {\n  align-items: start;\n  background-color: var(--altcha-color-base);\n  border: var(--altcha-border-width, 1px) solid var(--altcha-border-color);\n  border-radius: var(--altcha-border-radius, 0);\n  color: var(--altcha-color-base-content);\n  display: flex;\n  flex-direction: column;\n  gap: 0.5rem;\n  justify-content: space-between;\n  padding: var(--altcha-padding);\n  max-width: var(--altcha-max-width, 100%);\n}\n.altcha-main > * {\n  display: flex;\n  width: 100%;\n}\n.altcha-main > *:first-child {\n  flex-grow: 1;\n}\n.altcha-checkbox-wrap {\n  align-items: center;\n  display: flex;\n  flex-direction: row;\n  flex-grow: 1;\n  gap: 0.5rem;\n}\n.altcha-checkbox-wrap > * {\n  display: flex;\n}\n.altcha-logo {\n  opacity: 0.7;\n}\n.altcha-footer {\n  align-items: center;\n  display: flex;\n  flex-grow: 1;\n  gap: 0.5rem;\n  justify-content: flex-end;\n  font-size: 0.7rem;\n  opacity: 0.7;\n}\n.altcha-footer p {\n  margin: 0;\n  padding: 0;\n}\n.altcha-error {\n  font-size: 0.85rem;\n}\n.altcha-button {\n  align-items: center;\n  background: var(--altcha-color-primary);\n  border: var(--altcha-input-border-width) solid var(--altcha-color-primary);\n  border-radius: var(--altcha-input-border-radius);\n  color: var(--altcha-color-primary-content);\n  cursor: pointer;\n  display: flex;\n  font-size: 0.9rem;\n  gap: 0.5rem;\n  padding: 0.35rem;\n}\n.altcha-button:focus {\n  border-color: var(--altcha-color-primary);\n  outline: var(--altcha-checkbox-outline);\n  outline-offset: var(--altcha-checkbox-outline-offset);\n}\n.altcha-button > .altcha-spinner, .altcha-button > svg {\n  height: 20px;\n  width: 20px;\n}\n.altcha-button-secondary {\n  background: transparent;\n  border-color: var(--altcha-color-neutral);\n  color: var(--altcha-color-neutral-content);\n}\n.altcha-input {\n  background: var(--altcha-input-background-color);\n  border: var(--altcha-input-border-width) solid var(--altcha-color-neutral);\n  border-radius: var(--altcha-input-border-radius);\n  color: var(--altcha-input-color);\n  flex-grow: 1;\n  font-size: 1rem;\n  min-width: 0;\n  padding: 0.25rem;\n  width: auto;\n}\n.altcha-input:focus {\n  border-color: var(--altcha-color-primary);\n  outline: var(--altcha-checkbox-outline);\n  outline-offset: var(--altcha-checkbox-outline-offset);\n}\n.altcha-spinner {\n  animation: altcha-rotate 0.6s linear infinite;\n  border-radius: 100%;\n  border: var(--altcha-checkbox-border-width) solid var(--altcha-spinner-color);\n  border-bottom-color: transparent;\n  border-right-color: transparent;\n  opacity: 0.7;\n}\n.altcha-popover {\n  background-color: var(--altcha-color-base);\n  border: var(--altcha-border-width) solid var(--altcha-border-color);\n  border-radius: var(--altcha-border-radius);\n  color: var(--altcha-color-base-content);\n  filter: var(--altcha-shadow);\n  position: absolute;\n  left: calc(var(--altcha-padding) / 2);\n  max-width: calc(var(--altcha-max-width) - var(--altcha-padding));\n  top: calc(var(--altcha-padding) + var(--altcha-checkbox-size) + var(--altcha-popover-arrow-size));\n  z-index: var(--altcha-z-index-popover);\n}\n.altcha-popover-arrow {\n  border: var(--altcha-popover-arrow-size) solid transparent;\n  border-bottom-color: var(--altcha-popover-color);\n  content: "";\n  height: 0;\n  left: calc(var(--altcha-checkbox-size) / 2);\n  position: absolute;\n  top: calc(var(--altcha-popover-arrow-size) * -2);\n  width: 0;\n}\n.altcha-popover-content {\n  max-height: 100dvh;\n  overflow: auto;\n  padding: var(--altcha-padding);\n}\n.altcha-popover[data-top=true][data-display=standard] {\n  bottom: calc(100% - (var(--altcha-padding) - var(--altcha-popover-arrow-size)));\n  top: auto;\n}\n.altcha-popover[data-top=true][data-display=standard] .altcha-popover-arrow {\n  border-bottom-color: transparent;\n  border-top-color: var(--altcha-popover-color);\n  bottom: calc(var(--altcha-popover-arrow-size) * -2);\n  top: auto;\n}\n.altcha-popover[data-variant=error] {\n  --altcha-popover-color: var(--altcha-color-error);\n  background-color: var(--altcha-color-error);\n  border-color: var(--altcha-color-error);\n  color: var(--altcha-color-error-content);\n}\n.altcha-popover[data-variant=error] .altcha-popover-content {\n  padding: calc(var(--altcha-padding) / 1.5) var(--altcha-padding);\n}\n.altcha-popover[data-display=overlay] {\n  animation: altcha-overlay-slidein 0.5s forwards;\n  left: 50%;\n  position: fixed;\n  top: 45%;\n  transform: translate(-50%, -50%);\n  width: var(--altcha-max-width);\n  z-index: var(--altcha-z-index);\n}\n.altcha-popover[data-display=bottomsheet] {\n  animation: altcha-bottomsheet-slideup 0.5s forwards;\n  border-bottom-left-radius: 0;\n  border-bottom-right-radius: 0;\n  border-bottom: 0;\n  bottom: -100%;\n  left: 50%;\n  position: fixed;\n  top: auto;\n  transform: translate(-50%, 0);\n  width: var(--altcha-max-width);\n  z-index: var(--altcha-z-index);\n}\n.altcha-popover[data-display=bottomsheet] .altcha-popover-content {\n  padding-bottom: calc(var(--altcha-padding) * 2);\n}\n.altcha-popover-backdrop {\n  background: var(--altcha-color-base-content);\n  bottom: 0;\n  left: 0;\n  opacity: 0.1;\n  position: fixed;\n  right: 0;\n  top: 0;\n  transition: opacity 0.5s;\n  z-index: var(--altcha-z-index);\n}\n.altcha-popover-close {\n  color: var(--altcha-color-base-content);\n  cursor: pointer;\n  display: inline-block;\n  font-size: 1rem;\n  height: 1.25rem;\n  line-height: 0.95;\n  position: absolute;\n  right: 0;\n  text-align: center;\n  text-shadow: 0 0 1px var(--altcha-color-base);\n  top: -1.5rem;\n  width: 1.25rem;\n  z-index: var(--altcha-z-index);\n}\n[dir=rtl] .altcha-popover {\n  left: auto;\n  right: calc(var(--altcha-padding) / 2);\n}\n[dir=rtl] .altcha-popover-arrow {\n  left: auto;\n  right: calc(var(--altcha-checkbox-size) / 2);\n}\n[dir=rtl] .altcha-popover-close {\n  left: 0;\n  right: auto;\n}\n.altcha-popover[data-display=bottomsheet] .altcha-footer, .altcha-popover[data-display=overlay] .altcha-footer {\n  align-items: center;\n  justify-content: center;\n  padding-top: 1rem;\n  gap: 0.5rem;\n}\n.altcha-popover[data-display=bottomsheet] .altcha-footer svg, .altcha-popover[data-display=overlay] .altcha-footer svg {\n  height: 18px;\n  width: 18px;\n  vertical-align: middle;\n}\n.altcha-code-challenge > form {\n  display: flex;\n  flex-direction: column;\n  gap: 0.5rem;\n}\n.altcha-code-challenge-title {\n  font-weight: 600;\n}\n.altcha-code-challenge-text {\n  font-size: 0.85rem;\n}\n.altcha-code-challenge-image {\n  background: white;\n  border: var(--altcha-input-border-width) solid var(--altcha-color-neutral);\n  border-radius: var(--altcha-input-border-radius);\n  object-fit: contain;\n  height: 50px;\n}\n.altcha-code-challenge-row {\n  display: flex;\n  gap: 0.5rem;\n}\n.altcha-code-challenge-buttons {\n  align-items: center;\n  display: flex;\n  flex-direction: column;\n  gap: 0.5rem;\n  margin-top: var(--altcha-padding);\n  justify-content: space-between;\n}\n.altcha-code-challenge-buttons button {\n  justify-content: center;\n  width: 100%;\n}\n.altcha-checkbox {\n  cursor: pointer;\n  height: var(--altcha-checkbox-size);\n  position: relative;\n  width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox input {\n  appearance: none;\n  background: var(--altcha-input-background-color);\n  border: var(--altcha-checkbox-border-width, 2px) solid var(--altcha-checkbox-border-color);\n  border-radius: var(--altcha-checkbox-border-radius);\n  cursor: pointer;\n  height: var(--altcha-checkbox-size);\n  left: 0;\n  margin: 0;\n  padding: 0;\n  position: absolute;\n  top: 0;\n  width: var(--altcha-checkbox-size);\n}\n@supports (hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none) {\n  .altcha-checkbox input {\n    /* Safari-only: fixes focus outline */\n  }\n  .altcha-checkbox input:focus {\n    outline-width: 2px;\n    outline-style: solid;\n  }\n}\n.altcha-checkbox input:before {\n  border-radius: var(--altcha-checkbox-border-radius);\n  content: "";\n  width: 100%;\n  height: 100%;\n  background: var(--altcha-color-neutral);\n  display: block;\n  transform: scale(0);\n}\n.altcha-checkbox input:checked {\n  background-color: var(--altcha-color-success);\n  border-color: var(--altcha-color-success);\n}\n.altcha-checkbox input:checked::before {\n  background-color: var(--altcha-color-success);\n  opacity: 0;\n  transform: scale(2.2);\n  transition: all var(--altcha-checkbox-transition-duration) ease;\n  transition-delay: 0.1s;\n}\n.altcha-checkbox svg {\n  --altcha-radio-svg-size: calc(var(--altcha-checkbox-size) * 0.5);\n  --altcha-radio-svg-offset: calc(var(--altcha-checkbox-size) * 0.25);\n  fill: none;\n  left: var(--altcha-radio-svg-offset);\n  height: var(--altcha-radio-svg-size);\n  opacity: 0;\n  position: absolute;\n  stroke: currentColor;\n  stroke-width: 2;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n  stroke-dasharray: 16px;\n  stroke-dashoffset: 16px;\n  top: var(--altcha-radio-svg-offset);\n  transform: translate3d(0, 0, 0);\n  width: var(--altcha-radio-svg-size);\n}
vendor: 6,255 bytes, line 364
364\n.altcha-checkbox input:checked + svg {\n  color: var(--altcha-color-success-content);\n  opacity: 1;\n  stroke-dashoffset: 0;\n  transition: all var(--altcha-checkbox-transition-duration) ease;\n  transition-delay: 0.1s;\n}\n.altcha-checkbox-spinner {\n  display: none;\n  left: 0;\n  height: var(--altcha-checkbox-size);\n  position: absolute;\n  top: 0;\n  width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox[data-loading=true] input {\n  appearance: none;\n  opacity: 0;\n  pointer-events: none;\n}\n.altcha-checkbox[data-loading=true] .altcha-checkbox-spinner {\n  display: block;\n}\n.altcha-checkbox-native {\n  height: var(--altcha-checkbox-size);\n  position: relative;\n  width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox-native input {\n  height: var(--altcha-checkbox-size);\n  margin: 0;\n  width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox-native-spinner {\n  display: none;\n  left: 0;\n  height: var(--altcha-checkbox-size);\n  position: absolute;\n  top: 0;\n  width: var(--altcha-checkbox-size);\n}\n.altcha-checkbox-native[data-loading=true] input {\n  appearance: none;\n  opacity: 0;\n  pointer-events: none;\n}\n.altcha-checkbox-native[data-loading=true] .altcha-checkbox-native-spinner {\n  display: block;\n}\n.altcha-switch {\n  align-items: center;\n  border-radius: var(--altcha-switch-border-radius);\n  background-color: var(--altcha-switch-background-color);\n  display: flex;\n  height: var(--altcha-switch-height);\n  padding: var(--altcha-switch-padding);\n  position: relative;\n  width: var(--altcha-switch-width);\n}\n.altcha-switch:focus-within {\n  outline: var(--altcha-checkbox-outline);\n  outline-offset: var(--altcha-checkbox-outline-offset);\n}\n.altcha-switch input {\n  appearance: none;\n  cursor: pointer;\n  height: 100%;\n  left: 0;\n  opacity: 0;\n  position: absolute;\n  top: 0;\n  width: 100%;\n}\n.altcha-switch-toggle {\n  align-items: center;\n  background-color: var(--altcha-switch-toggle-color);\n  border-radius: var(--altcha-switch-toggle-border-radius);\n  cursor: pointer;\n  display: flex;\n  height: var(--altcha-switch-toggle-size);\n  justify-content: center;\n  left: var(--altcha-switch-padding);\n  position: absolute;\n  transition: width 150ms ease-out, left 150ms ease-out;\n  width: var(--altcha-switch-toggle-size);\n}\n.altcha-switch-spinner {\n  display: none;\n  height: var(--altcha-switch-toggle-size);\n  width: var(--altcha-switch-toggle-size);\n}\n.altcha-switch[data-loading=true] {\n  pointer-events: none;\n}\n.altcha-switch[data-loading=true] .altcha-switch-spinner {\n  display: block;\n}\n.altcha-switch[data-loading=true] .altcha-switch-toggle {\n  background-color: transparent;\n  left: calc(50% - var(--altcha-switch-toggle-size) / 2);\n}\n[data-state=verified] .altcha-switch {\n  --altcha-switch-background-color: var(--altcha-color-success);\n}\n[data-state=verified] .altcha-switch-toggle {\n  background-color: var(--altcha-color-success-content);\n  left: calc(100% - var(--altcha-switch-height) + var(--altcha-switch-padding));\n}\n[dir=rtl] .altcha-switch-toggle {\n  left: calc(100% - var(--altcha-switch-height) + var(--altcha-switch-padding));\n}\n[dir=rtl][data-state=verified] .altcha-switch-toggle {\n  left: var(--altcha-switch-padding);\n}\n.altcha-floating-arrow {\n  border: 6px solid transparent;\n  border-bottom-color: var(--altcha-border-color);\n  content: "";\n  height: 0;\n  left: 12px;\n  position: absolute;\n  top: -12px;\n  width: 0;\n}\n.altcha-overlay-backdrop {\n  bottom: 0;\n  left: 0;\n  position: fixed;\n  right: 0;\n  top: 0;\n  transition: opacity var(--altcha-transition-duration);\n  z-index: var(--altcha-z-index);\n}\n.altcha-overlay-close {\n  display: inline-block;\n  color: currentColor;\n  cursor: pointer;\n  font-size: 1rem;\n  height: 1rem;\n  line-height: 0.85;\n  position: absolute;\n  right: 0;\n  text-align: center;\n  text-shadow: 0 0 1px var(--altcha-color-base);\n  top: -1.5rem;\n  width: 1rem;\n  z-index: var(--altcha-z-index);\n}\n.altcha[data-display=overlay] {\n  animation: altcha-overlay-slidein var(--altcha-transition-duration) forwards;\n  filter: var(--altcha-shadow);\n  left: 50%;\n  opacity: 0;\n  position: fixed;\n  top: 45%;\n  transform: translate(-50%, -50%);\n  z-index: var(--altcha-z-index);\n}\n.altcha[data-display=overlay] .altcha-main {\n  width: var(--altcha-max-width);\n}\n.altcha[data-display=floating] {\n  display: none;\n  filter: var(--altcha-shadow);\n  left: var(--altcha-floating-left, -100%);\n  position: fixed;\n  top: var(--altcha-floating-top, -100%);\n  z-index: var(--altcha-z-index);\n}\n.altcha[data-display=floating] .altcha-main {\n  width: var(--altcha-max-width);\n}\n.altcha[data-display=floating][data-floating-position=top] .altcha-floating-arrow {\n  border-bottom-color: transparent;\n  border-top-color: var(--altcha-border-color);\n  bottom: -12px;\n  top: auto;\n}\n.altcha[data-display=floating][data-visible] {\n  display: flex;\n}\n.altcha[data-display=bar] {\n  bottom: -100%;\n  filter: var(--altcha-shadow);\n  left: 0;\n  position: fixed;\n  right: 0;\n  transition: bottom var(--altcha-transition-duration), top var(--altcha-transition-duration);\n  z-index: var(--altcha-z-index);\n}\n.altcha[data-display=bar] .altcha-main {\n  align-items: center;\n  border-radius: 0;\n  border-width: var(--altcha-border-width) 0 0 0;\n  flex-direction: row;\n  max-width: 100% !important;\n}\n.altcha[data-display=bar] .altcha-main > * {\n  width: auto;\n}\n.altcha[data-display=bar][data-placement=top] {\n  bottom: auto;\n  top: -100%;\n}\n.altcha[data-display=bar][data-placement=top] .altcha-main {\n  border-width: 0 0 var(--altcha-border-width) 0;\n}\n.altcha[data-display=bar][data-placement=bottom]:not([data-state=unverified]) {\n  bottom: 0;\n}\n.altcha[data-display=bar][data-placement=top]:not([data-state=unverified]) {\n  top: 0;\n}\n.altcha[data-display=invisible] {\n  display: none;\n}\n\n@keyframes altcha-rotate {\n  0% {\n    transform: rotate(0deg);\n  }\n  100% {\n    transform: rotate(360deg);\n  }\n}\n@keyframes altcha-bottomsheet-slideup {\n  100% {\n    bottom: 0;\n  }\n}\n@keyframes altcha-overlay-slidein {\n  100% {\n    opacity: 1;\n    top: 50%;\n  }\n}'),$altcha.algorithms.set("SHA-256",(
364)=>new rd),$altcha.algorithms.set("SHA-384",()=>new rd),$altcha.algorithms.set("SHA-512",()=>new rd),$altcha.algorithms.set("PBKDF2/SHA-256",()=>new rc),$altcha.algorithms.set("PBKDF2/SHA-384",()=>new rc),$altcha.algorithms.set("PBKDF2/SHA-512",()=>new rc),globalThis.$altcha.i18n.set("ar",{ariaLinkLabel:"Altcha (الموقع الرسمي)",enterCode:"أدخل الرمز",enterCodeAria:"أدخل الرمز الذي تسمعه. اضغط على المسافة لتشغيل الصوت.",error:"فشل التحقق. حاول مرة أخرى لاحقاً.",expired:"انتهت صلاحية التحقق. حاول مرة أخرى.",footer:'محمي بواسطة <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (الموقع الرسمي)">ALTCHA</a>',getAudioChallenge:"احصل على تحدي صوتي",label:"أنا لست روبوتاً",loading:"جارٍ التحميل...",reload:"إعادة تحميل",verify:"تحقق",verificationRequired:"مطلوب التحقق!",verified:"تم التحقق",verifying:"جارٍ التحقق...",waitAlert:"جارٍ التحقق... يرجى الانتظار.",cancel:"إلغاء",enterCodeFromImage:"للمتابعة، يرجى إدخال الرمز من الصورة أدناه."}),globalThis.$altcha.i18n.set("bg",{ariaLinkLabel:"Altcha (официален уебсайт)",enterCode:"Въведете код",enterCodeAria:"Въведете кода, който чувате. Натиснете Space за възпроизвеждане на аудио.",error:"Проверката неуспешна. Моля, опитайте по-късно.",expired:"Времето за проверка изтече. Моля, опитайте отново.",footer:'Защитено от <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (официален уебсайт)">ALTCHA</a>',getAudioChallenge:"Аудио проверка",label:"Аз не съм робот",loading:"Зареждане...",reload:"Презареди",verify:"Провери",verificationRequired:"Изисква се проверка!",verified:"Проверено",verifying:"Проверява се...",waitAlert:"Проверката е в процес... моля изчакайте.",cancel:"Отказ",enterCodeFromImage:"За да продължите, моля, въведете кода от изображението по-долу."}),globalThis.$altcha.i18n.set("be",{ariaLinkLabel:"Altcha (афіцыйны сайт)",enterCode:"Увядзіце код",enterCodeAria:"Увядзіце код, які вы чуеце. Націсніце прабел, каб прайграць аўдыё.",error:"Праверка не прайшла. Паспрабуйце пазней.",expired:"Тэрмін праверкі скончыўся. Паспрабуйце зноў.",footer:'Абаронена <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (афіцыйны сайт)">ALTCHA</a>',getAudioChallenge:"Атрымаць аўдыё выклік",label:"Я не робат",loading:"Загрузка...",reload:"Перазагрузіць",verify:"Праверыць",verificationRequired:"Патрабуецца праверка!",verified:"Праверана",verifying:"Правяраем...",waitAlert:"Праверка... калі ласка, пачакайце.",cancel:"Скасаваць",enterCodeFromImage:"Каб працягнуць, увядзіце код з малюнка ніжэй."}),globalThis.$altcha.i18n.set("bs",{ariaLinkLabel:"Altcha (službena web stranica)",enterCode:"Unesite kod",enterCodeAria:"Unesite kod koji čujete. Pritisnite Space da biste pustili zvuk.",error:"Verifikacija nije uspjela. Pokušajte ponovo kasnije.",expired:"Verifikacija je istekla. Pokušajte ponovo.",footer:'Zaštićeno od strane <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (službena web stranica)">ALTCHA</a>',getAudioChallenge:"Dohvatite audio izazov",label:"Nisam robot",loading:"Učitavanje...",reload:"Ponovno učitaj",verify:"Verifikuj",verificationRequired:"Verifikacija je obavezna!",verified:"Verifikovano",verifying:"Verifikacija u toku...",waitAlert:"
364Verifikacija u toku... molimo vas da sačekate.",cancel:"Odustani",enterCodeFromImage:"Za nastavak, molimo unesite kod sa slike ispod."}),globalThis.$altcha.i18n.set("ca",{ariaLinkLabel:"Altcha (lloc web oficial)",enterCode:"Introdueix el codi",enterCodeAria:"Introdueix el codi que escoltes. Prem Espai per reproduir l’àudio.",error:"Verificació fallida. Torna-ho a provar més tard.",expired:"Verificació expirada. Torna-ho a provar.",footer:'Protegit per <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (lloc web oficial)">ALTCHA</a>',getAudioChallenge:"Obtenir un desafiament d’àudio",label:"No sóc un robot",loading:"Carregant...",reload:"Torna a carregar",verify:"Verificar",verificationRequired:"Es requereix verificació!",verified:"Verificat",verifying:"Verificant...",waitAlert:"Verificant... si us plau, espera.",cancel:"Cancel·la",enterCodeFromImage:"Per continuar, si us plau, introdueix el codi de la imatge següent."}),globalThis.$altcha.i18n.set("cs",{ariaLinkLabel:"Altcha (oficiální web)",enterCode:"Zadejte kód",enterCodeAria:"Zadejte kód, který slyšíte. Stisknutím mezerníku přehrajete zvuk.",error:"Ověření selhalo. Zkuste to prosím později.",expired:"Ověření vypršelo. Zkuste to prosím znovu.",footer:'Chráněno pomocí <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (oficiální web)">ALTCHA</a>',getAudioChallenge:"Získat audio výzvu",label:"Nejsem robot",loading:"Načítání...",reload:"Znovu načíst",verify:"Ověřit",verificationRequired:"Vyžaduje se ověření!",verified:"Ověřeno",verifying:"Ověřování...",waitAlert:"Probíhá ověření... prosím počkejte.",cancel:"Zrušit",enterCodeFromImage:"Pro pokračování zadejte kód z obrázku níže."}),globalThis.$altcha.i18n.set("da",{ariaLinkLabel:"Altcha (officiel hjemmeside)",enterCode:"Indtast kode",enterCodeAria:"Indtast den kode, du hører. Tryk på mellemrumstasten for at afspille lyd.",error:"Verificering mislykkedes. Prøv venligst igen senere.",expired:"Verificering udløbet. Prøv venligst igen.",footer:'Beskyttet af <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (officiel hjemmeside)">ALTCHA</a>',getAudioChallenge:"Hent lydudfordring",label:"Jeg er ikke en robot",loading:"Indlæser...",reload:"Genindlæs",verify:"Verificer",verificationRequired:"Verificering kræves!",verified:"Verificeret",verifying:"Verificerer...",waitAlert:"Verificerer... vent venligst.",cancel:"Annuller",enterCodeFromImage:"For at fortsætte, bedes du indtaste koden fra billedet herunder."}),globalThis.$altcha.i18n.set("de",{ariaLinkLabel:"Altcha (offizielle Website)",enterCode:"Code eingeben",enterCodeAria:"Geben Sie den Code ein, den Sie hören. Drücken Sie die Leertaste, um die Audio abzuspielen.",error:"Überprüfung fehlgeschlagen. Bitte versuchen Sie es später erneut.",expired:"Überprüfung abgelaufen. Bitte versuchen Sie es erneut.",footer:'Geschützt durch <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (offizielle Website)">ALTCHA</a>',getAudioChallenge:"Audio-Herausforderung anfordern",label:"Ich bin kein Roboter",loading:"Lade...",reload:"Neu laden",verify:"Überprüfen",verificationRequired:"Überprüfung erforderlich!",verified:"Überprüft",verifying:"Wird überprüft...",waitAlert:"Überprüfung läuft... bitte warten.",cancel:"Abbrechen",enterCodeFromImage:"Um fortzufahren, geben Sie bitte den Code aus dem Bild unten ein."}),globalThis.$altcha.i18n.set("el",{ariaLinkLabel:"Altcha (επίσημος ιστότοπος)",enterCode:"Εισαγάγετε κωδικό",enterCodeAria:"Εισαγάγετε τον κωδικό που ακούτε. Πατήστε Space για να παίξετε τον ήχο.",error:"Η επαλήθευση απέτυχε. Δοκιμάστε ξανά αργότερα.",expired:"Η επαλήθευση έληξε. Δοκιμάστε ξανά.",footer:'Προστατεύεται από το <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (επίσημος ιστότοπος)">ALTCHA</a>',getAudioChallenge:"Λήψη ηχητικής δοκιμασίας",label:"Δεν είμαι ρομπότ",loading:"Φόρτωση...",reload:"Επαναφόρτωση",verify:"Επαλήθευση",verificationRequired:"Απαιτείται έλεγχος!",verified:"Επαληθεύτηκε",verifying:"Γίνεται επαλήθευση...",waitAlert:"Γίνεται επαλήθευση... παρακαλώ περιμένετε.",cancel:"Ακύρωση",enterCodeFromImage:"Για να συνεχίσετε, εισάγετε τον κωδικό από την παρακάτω εικόνα."}),globalThis.$altcha.i18n.set("es-es",{ariaLinkLabel:"Altcha (sitio web oficial)",enterCode:"Introduce el código",enterCodeAria:"Introduce el código que escuchas. Pulsa Espacio para reproducir el audio.",error:"Falló la verificación. Por favor intente nuevamente más tarde.",expired:"Verificación expirada. Por favor intente nuevamente.",footer:'Protegido por <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (sitio web oficial)">ALTCHA</a>',getAudioChallenge:"Obtener un desafío de audio",label:"No soy un robot",loading:"Cargando...",reload:"Recargar",verify:"Verificar",verificationRequired:"¡Verificación requerida!",verified:"Verificado",verifying:"Verificando...",waitAlert:"
364Verificando... por favor espere.",cancel:"Cancelar",enterCodeFromImage:"Para continuar, introduzca el código de la imagen de abajo."}),globalThis.$altcha.i18n.set("es-419",{ariaLinkLabel:"Altcha (sitio web oficial)",enterCode:"Ingresa el código",enterCodeAria:"Ingresa el código que escuchas. Presiona Espacio para reproducir el audio.",error:"Falló la verificación. Por favor vuelve a intentarlo más tarde.",expired:"La verificación expiró. Por favor inténtalo de nuevo.",footer:'Protegido por <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (sitio web oficial)">ALTCHA</a>',getAudioChallenge:"Obtener un reto de audio",label:"No soy un robot",loading:"Cargando...",reload:"Volver a cargar",verify:"Verificar",verificationRequired:"¡Verificación requerida!",verified:"Verificado",verifying:"Verificando...",waitAlert:"Verificando... por favor espera.",cancel:"Cancelar",enterCodeFromImage:"Para continuar, ingresa el código de la imagen a continuación."}),globalThis.$altcha.i18n.set("et",{ariaLinkLabel:"Altcha (ametlik veebisait)",enterCode:"Sisesta kood",enterCodeAria:"Sisestage kuuldu kood. Vajutage tühikut, et esitada heli.",error:"Kinnitamine ebaõnnestus. Proovi hiljem uuesti.",expired:"Kinnitamine aegus. Proovi uuesti.",footer:'Kaitstud <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (ametlik veebisait)">ALTCHA</a> poolt',getAudioChallenge:"Hangi heliülesanne",label:"Ma ei ole robot",loading:"Laadimine...",reload:"Laadi uuesti",verify:"Kinnita",verificationRequired:"Kontroll on vajalik!",verified:"Kinnitatud",verifying:"Kinnitamine...",waitAlert:"Kinnitamine... palun oota.",cancel:"Tühista",enterCodeFromImage:"Jätkamiseks sisestage alloleval pildil olev kood."}),globalThis.$altcha.i18n.set("eu",{ariaLinkLabel:"Altcha (webgune ofiziala)",enterCode:"Sartu kodea",enterCodeAria:"Sartu entzun duzun kodea. Sakatu Espazioa audioa erreproduzitzeko.",error:"Egiaztatzeak huts egin du. Saiatu berriro geroago.",expired:"Egiaztatzea iraungi da. Saiatu berriro.",footer:'<a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (webgune ofiziala)">ALTCHA</a>k babestuta',getAudioChallenge:"Jaso audio-erronka bat",label:"Ez naiz robot bat",loading:"Kargatzen...",reload:"Birkargatu",verify:"Egiaztatu",verificationRequired:"Egiaztatzea beharrezkoa da!",verified:"Egiaztatuta",verifying:"Egiaztatzen...",waitAlert:"Egiaztatzen... itxaron mesedez.",cancel:"Utzi",enterCodeFromImage:"Jarraitzeko, idatzi beheko irudiko kodea."}),globalThis.$altcha.i18n.set("fa",{ariaLinkLabel:"Altcha (وب‌سایت رسمی)",enterCode:"کد را وارد کنید",enterCodeAria:"کدی که می‌شنوید را وارد کنید. برای پخش صدا Space را فشار دهید.",error:"احراز هویت ناموفق بود. بعداً دوباره تلاش کنید.",expired:"احراز هویت منقضی شد. دوباره تلاش کنید.",footer:'محافظت شده توسط <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (وب‌سایت رسمی)">ALTCHA</a>',getAudioChallenge:"دریافت چالش صوتی",label:"من ربات نیستم",loading:"در حال بارگذاری...",reload:"بارگذاری مجدد",verify:"تایید",verificationRequired:"احراز هویت لازم است!",verified:"تایید شد",verifying:"در حال تایید...",waitAlert:"در حال تایید... لطفا منتظر بمانید.",cancel:"لغو کردن",enterCodeFromImage:"برای ادامه، لطفاً کد تصویر زیر را وارد کنید."}),globalThis.$altcha.i18n.set("lb",{ariaLinkLabel:"Altcha (offiziell Websäit)",enterCode:"Code aginn",enterCodeAria:"Gitt de Code an deen dir héiert. Dréckt op d'Weltraumtast fir Audio ofzespillen.",error:"Verifikatioun ass feelgeschloen. Probéiert méi spéit nach emol.",expired:"Verifikatioun ofgelaf. Probéiert nach emol.",footer:'Geschützt vun <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (offiziell Websäit)">ALTCHA</a>',getAudioChallenge:"Kritt eng Audio-Herausfuerderung",label:"Ech sinn keen Robot",loading:"Lueden...",reload:"Nei lueden",verify:"Verifizéieren",verificationRequired:"Verifikatioun néideg!",verified:"Verifizéiert",verifying:"Verifizéieren...",waitAlert:"
364Verifizéieren... waart wgl.",cancel:"Ofbriechen",enterCodeFromImage:"Fir virun ze fueren, gitt wgl. de Code aus dem Bild hei drënner an."}),globalThis.$altcha.i18n.set("fi",{ariaLinkLabel:"Altcha (virallinen verkkosivusto)",enterCode:"Syötä koodi",enterCodeAria:"Kirjoita kuulemasi koodi. Paina välilyöntiä toistaaksesi äänen.",error:"Varmennus epäonnistui. Yritä myöhemmin uudelleen.",expired:"Varmennus vanhentui. Yritä uudelleen.",footer:'Suojattu <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (virallinen verkkosivusto)">ALTCHA</a>:lla',getAudioChallenge:"Hae äänitehtävä",label:"En ole robotti",loading:"Ladataan...",reload:"Lataa uudelleen",verify:"Vahvista",verificationRequired:"Vahvistus vaaditaan!",verified:"Vahvistettu",verifying:"Vahvistetaan...",waitAlert:"Vahvistetaan... odota hetki.",cancel:"Peruuta",enterCodeFromImage:"Jatkaaksesi, syötä alla olevan kuvan koodi."}),globalThis.$altcha.i18n.set("fr-ca",{ariaLinkLabel:"Altcha (site officiel)",enterCode:"Entrez le code",enterCodeAria:"Entrez le code que vous entendez. Appuyez sur la barre d'espace pour écouter l'audio.",error:"Échec de la vérification. Réessayez plus tard.",expired:"La vérification a expiré. Réessayez.",footer:'Protégé par <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (site officiel)">ALTCHA</a>',getAudioChallenge:"Obtenir un défi audio",label:"Je ne suis pas un robot",loading:"Chargement...",reload:"Recharger",verify:"Vérifier",verificationRequired:"Vérification requise !",verified:"Vérifié",verifying:"Vérification en cours...",waitAlert:"Vérification en cours... veuillez patienter.",cancel:"Annuler",enterCodeFromImage:"Pour continuer, veuillez entrer le code de l'image ci-dessous."}),globalThis.$altcha.i18n.set("fr-fr",{ariaLinkLabel:"Altcha (site officiel)",enterCode:"Entrez le code",enterCodeAria:"Entrez le code que vous entendez. Appuyez sur Espace pour écouter l'audio.",error:"Échec de la vérification. Essayez à nouveau plus tard.",expired:"La vérification a expiré. Essayez à nouveau.",footer:'Protégé par <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (site officiel)">ALTCHA</a>',getAudioChallenge:"Obtenir un défi audio",label:"Je ne suis pas un robot",loading:"Chargement...",reload:"Recharger",verify:"Vérifier",verificationRequired:"Vérification requise !",verified:"Vérifié",verifying:"Vérification en cours...",waitAlert:"Vérification en cours... veuillez patienter.",cancel:"Annuler",enterCodeFromImage:"Pour continuer, veuillez entrer le code de l'image ci-dessous."}),globalThis.$altcha.i18n.set("ga",{ariaLinkLabel:"Altcha (láithreán gréasáin oifigiúil)",enterCode:"Iontráil cód",enterCodeAria:"Cuir isteach an cód a chloiseann tú. Brúigh Spás chun an fuaime a sheinm.",error:"Theip ar an bhfíorú. Bain triail eile as níos déanaí.",expired:"Tá an fíorú as feidhm. Bain triail eile as.",footer:'Cosanta ag <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (láithreán gréasáin oifigiúil)">ALTCHA</a>',getAudioChallenge:"Faigh dúshlán fuaime",label:"Níl mé i mo róbat",loading:"Á luchtú...",reload:"Athluchtaigh",verify:"Fíoraigh",verificationRequired:"Fíorú riachtanach!",verified:"Fíoraithe",verifying:"Fíorú ar siúl...",waitAlert:"Fíorú ar siúl... fan go fóill.",cancel:"Cealaigh",enterCodeFromImage:"Chun dul ar aghaidh, le do thoil cuir isteach an cód ón íomhá thíos."}),globalThis.$altcha.i18n.set("hr",{ariaLinkLabel:"Altcha (službena web stranica)",enterCode:"Unesite kod",enterCodeAria:"Unesite kod koji čujete. Pritisnite razmaknicu za reprodukciju zvuka.",error:"Provjera nije uspjela. Molimo pokušajte kasnije.",expired:"Provjera je istekla. Molimo pokušajte ponovo.",footer:'Zaštićeno od strane <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (službena web stranica)">ALTCHA</a>',getAudioChallenge:"Audio provjera",label:"Ja nisam robot",loading:"Učitavanje...",reload:"Ponovno učitaj",verify:"Provjeri",verificationRequired:"Potrebna je provjera!",verified:"Provjereno",verifying:"Provjeravanje...",waitAlert:"Provjera je u tijeku... molimo pričekajte.",cancel:"Odustani",enterCodeFromImage:"Za nastavak molimo unesite kod sa slike ispod."}),globalThis.$altcha.i18n.set("hu",{ariaLinkLabel:"Altcha (hivatalos weboldal)",enterCode:"Írja be a kódot",enterCodeAria:"Írja be a hallott kódot. Nyomja meg a Szóköz billentyűt a hang lejátszásához.",error:"A hitelesítés nem sikerült. Próbáld meg később újra.",expired:"A hitelesítés lejárt. Próbáld újra.",footer:'Védve a következő által: <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (hivatalos weboldal)">ALTCHA</a>',getAudioChallenge:"Hangalapú kihívás kérése",label:"Nem vagyok robot",loading:"Betöltés...",reload:"Újratöltés",verify:"Ellenőrzés",verificationRequired:"Ellenőrzés szükséges!",verified:"Ellenőrizve",verifying:"Ellenőrzés folyamatban...",waitAlert:"Ellenőrzés folyamatban... kérlek várj.",cancel:"Mégse",enterCodeFromImage:"A folytatáshoz, kérjük, adja meg az alábbi kép kódját."}),globalThis.$altcha.i18n.set("is",{ariaLinkLabel:"Altcha (opinber vefsíða)",enterCode:"Sláðu inn kóða",enterCodeAria:"Sláðu inn kóðann sem þú heyrir. Ýttu á Space til að spila hljóðið.",error:"Staðfesting mistókst. Reyndu aftur síðar.",expired:"Staðfesting er útrunnin. Reyndu aftur.",footer:'Verndað af <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (opinber vefsíða)">ALTCHA</a>',getAudioChallenge:"Fá hljóðáskorun",label:"Ég er ekki robot",loading:"Hleður...",reload:"Hleð aftur",verify:"Staðfesta",verificationRequired:"Staðfesting er nauðsynleg!",verified:"Staðfest",verifying:"Að staðfesta...",waitAlert:"Að staðfesta... vinsamlegast bíða.",cancel:"Hætta við",enterCodeFromImage:"Til að halda áfram, vinsamlegast sláðu inn kóðann af myndinni hér að neðan."}),globalThis.$altcha.i18n.set("it",{ariaLinkLabel:"Altcha (sito ufficiale)",enterCode:"Inserisci il codice",enterCodeAria:"Inserisci il codice che senti. Premi Spazio per riprodurre l'audio.",error:"Verifica fallita. Riprova più tardi.",expired:"Verifica scaduta. Riprova.",footer:'Protetto da <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (sito ufficiale)">ALTCHA</a>',getAudioChallenge:"Ottieni una sfida audio",label:"Non sono un robot",loading:"Caricamento...",reload:"Ricarica",verify:"Verifica",verificationRequired:"Verifica richiesta!",verified:"Verificato",verifying:"Verifica in corso...",waitAlert:"
364Verifica in corso... attendere.",cancel:"Annulla",enterCodeFromImage:"Per procedere, inserisci il codice dall'immagine sottostante."}),globalThis.$altcha.i18n.set("lt",{ariaLinkLabel:"Altcha (oficiali svetainė)",enterCode:"Įveskite kodą",enterCodeAria:"Įveskite girdimą kodą. Paspauskite tarpo klavišą, kad grotumėte garso įrašą.",error:"Patvirtinimas nepavyko. Bandykite vėliau.",expired:"Patvirtinimo laikas baigėsi. Bandykite dar kartą.",footer:'Apsaugota <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (oficiali svetainė)">ALTCHA</a>',getAudioChallenge:"Gauti garso užduotį",label:"Aš nesu robotas",loading:"Įkeliama...",reload:"Įkelti iš naujo",verify:"Patvirtinti",verificationRequired:"Reikalingas patvirtinimas!",verified:"Patvirtinta",verifying:"Tikrinama...",waitAlert:"Tikrinama... prašome palaukti.",cancel:"Atšaukti",enterCodeFromImage:"Norėdami tęsti, įveskite kodą iš paveikslėlio žemiau."}),globalThis.$altcha.i18n.set("lv",{ariaLinkLabel:"Altcha (oficiālā tīmekļa vietne)",enterCode:"Ievadiet kodu",enterCodeAria:"Ievadiet dzirdamo kodu. Nospiediet atstarpes taustiņu, lai atskaņotu audio.",error:"Verifikācija neizdevās. Mēģiniet vēlāk vēlreiz.",expired:"Verifikācijas laiks ir beidzies. Mēģiniet vēlreiz.",footer:'Aizsargāts ar <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (oficiālā tīmekļa vietne)">ALTCHA</a>',getAudioChallenge:"Saņemt audio izaicinājumu",label:"Es neesmu robots",loading:"Notiek ielāde...",reload:"Pārlādēt",verify:"Verificēt",verificationRequired:"Nepieciešama verifikācija!",verified:"Verificēts",verifying:"Notiek verifikācija...",waitAlert:"Notiek verifikācija... lūdzu, uzgaidiet.",cancel:"Atcelt",enterCodeFromImage:"Lai turpinātu, lūdzu, ievadiet zemāk redzamo attēlu kodu."}),globalThis.$altcha.i18n.set("mt",{ariaLinkLabel:"Altcha (sit uffiċjali)",enterCode:"Idħol il-kodiċi",enterCodeAria:"Idħol il-kodiċi li tisma'. Agħfas Spazju biex tindaqq l-awdjo.",error:"Il-verifika falliet. Erġa’ pprova aktar tard.",expired:"Il-verifika skadiet. Erġa’ pprova.",footer:'Protett minn <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (sit uffiċjali)">ALTCHA</a>',getAudioChallenge:"Ikseb sfida bl-awdjo",label:"M’inix robot",loading:"Qed jitgħabba...",reload:"Ittella’ mill-ġdid",verify:"Ivverifika",verificationRequired:"Verifika meħtieġa!",verified:"Ivverifikat",verifying:"Verifika għaddejja...",waitAlert:"Verifika għaddejja... stenna ftit.",cancel:"Ikkanċella",enterCodeFromImage:"Biex tipproċedi, jekk jogħġbok daħħal il-kodiċi mill-immaġni hawn taħt."}),globalThis.$altcha.i18n.set("nb",{ariaLinkLabel:"Altcha (offisiell nettside)",enterCode:"Skriv inn kode",enterCodeAria:"Skriv inn koden du hører. Trykk på Space for å spille av lyden.",error:"Verifisering mislyktes. Prøv igjen senere.",expired:"Verifiseringen utløp. Prøv igjen.",footer:'Beskyttet av <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (offisiell nettside)">ALTCHA</a>',getAudioChallenge:"Få en lydutfordring",label:"Jeg er ikke en robot",loading:"Laster...",reload:"Last på nytt",verify:"Verifiser",verificationRequired:"Verifisering kreves!",verified:"Verifisert",verifying:"Verifiserer...",waitAlert:"Verifiserer... vennligst vent.",cancel:"Avbryt",enterCodeFromImage:"For å fortsette, vennligst skriv inn koden fra bildet nedenfor."}),globalThis.$altcha.i18n.set("nl",{ariaLinkLabel:"Altcha (officiële website)",enterCode:"Voer code in",enterCodeAria:"Voer de code in die je hoort. Druk op Spatie om de audio af te spelen.",error:"Verificatie mislukt. Probeer het later opnieuw.",expired:"Verificatie verlopen. Probeer het opnieuw.",footer:'Beschermd door <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (officiële website)">ALTCHA</a>',getAudioChallenge:"Audio-uitdaging ontvangen",label:"Ik ben geen robot",loading:"Laden...",reload:"Herladen",verify:"Verifiëren",verificationRequired:"Verificatie vereist!",verified:"Geverifieerd",verifying:"Bezig met verifiëren...",waitAlert:"Bezig met verifiëren... even geduld a.u.b.",cancel:"Annuleren",enterCodeFromImage:"Om door te gaan, voert u de code uit de onderstaande afbeelding in."}),globalThis.$altcha.i18n.set("pl",{ariaLinkLabel:"Altcha (oficjalna strona internetowa)",enterCode:"Wprowadź kod",enterCodeAria:"Wpisz ko
364d, który słyszysz. Naciśnij Spację, aby odtworzyć dźwięk.",error:"Weryfikacja nie powiodła się. Spróbuj ponownie później.",expired:"Weryfikacja wygasła. Spróbuj ponownie.",footer:'Chronione przez <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (oficjalna strona internetowa)">ALTCHA</a>',getAudioChallenge:"Pobierz zadanie dźwiękowe",label:"Nie jestem robotem",loading:"Ładowanie...",reload:"Odśwież",verify:"Zweryfikuj",verificationRequired:"Wymagana weryfikacja!",verified:"Zweryfikowano",verifying:"Weryfikacja...",waitAlert:"Trwa weryfikacja... proszę czekać.",cancel:"Anuluj",enterCodeFromImage:"Aby kontynuować, wprowadź kod z poniższego obrazka."}),globalThis.$altcha.i18n.set("pt-pt",{ariaLinkLabel:"Altcha (site oficial)",enterCode:"Introduza o código",enterCodeAria:"Introduza o código que ouve. Prima Espaço para reproduzir o áudio.",error:"A verificação falhou. Por favor, tente novamente mais tarde.",expired:"Verificação expirada. Por favor, tente novamente.",footer:'Protegido por <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (site oficial)">ALTCHA</a>',getAudioChallenge:"Obter desafio de áudio",label:"Não sou um robô",loading:"A carregar...",reload:"Recarregar",verify:"Verificar",verificationRequired:"Verificação necessária!",verified:"Verificado",verifying:"A verificar...",waitAlert:"A verificar... por favor aguarde.",cancel:"Cancelar",enterCodeFromImage:"Para prosseguir, introduza o código da imagem abaixo."}),globalThis.$altcha.i18n.set("pt-br",{ariaLinkLabel:"Altcha (site oficial)",enterCode:"Digite o código",enterCodeAria:"Digite o código que você ouve. Pressione Espaço para reproduzir o áudio.",error:"Falha na verificação. Por favor, tente novamente mais tarde.",expired:"Verificação expirada. Por favor, tente novamente.",footer:'Protegido por <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (site oficial)">ALTCHA</a>',getAudioChallenge:"Obter desafio de áudio",label:"Eu não sou um robô",loading:"Carregando...",reload:"Recarregar",verify:"Verificar",verificationRequired:"Verificação necessária!",verified:"Verificado",verifying:"Verificando...",waitAlert:"Verificando... por favor aguarde.",cancel:"Cancelar",enterCodeFromImage:"Para prosseguir, digite o código da imagem abaixo."}),globalThis.$altcha.i18n.set("ro",{ariaLinkLabel:"Altcha (site oficial)",enterCode:"Introduceți codul",enterCodeAria:"Introduceți codul pe care îl auziți. Apăsați Spațiu pentru a reda audio.",error:"Verificarea a eșuat. Încearcă din nou mai târziu.",expired:"Verificarea a expirat. Încearcă din nou.",footer:'Protejat de <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (site oficial)">ALTCHA</a>',getAudioChallenge:"Obține o provocare audio",label:"Nu sunt un robot",loading:"Se încarcă...",reload:"Reîncarcă",verify:"Verifică",verificationRequired:"Verificare necesară!",verified:"Verificat",verifying:"Se verifică...",waitAlert:"Se verifică... te rugăm să aștepți.",cancel:"Anulare",enterCodeFromImage:"Pentru a continua, vă rugăm să introduceți codul din imaginea de mai jos."}),globalThis.$altcha.i18n.set("ru",{ariaLinkLabel:"Altcha (официальный сайт)",enterCode:"Введите код",enterCodeAria:"Введите код, который слышите. Нажмите пробел для воспроизведения аудио.",error:"Ошибка верификации. Попробуйте позже.",expired:"Срок действия верификации истек. Попробуйте снова.",footer:'Защищено <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (официальный сайт)">ALTCHA</a>',getAudioChallenge:"Получить аудио задачу",label:"Я не робот",loading:"Загрузка...",reload:"Перезагрузить",verify:"Проверить",verificationRequired:"Требуется проверка!",verified:"Проверено",verifying:"Идет проверка...",waitAlert:"Идет проверка... Пожалуйста, подождите.",cancel:"Отмена",enterCodeFromImage:"Чтобы продолжить, пожалуйста, введите код с изображения ниже."}),globalThis.$altcha.i18n.set("sk",{ariaLinkLabel:"Altcha (oficiálna webová stránka)",enterCode:"Zadajte kód",enterCodeAria:"Zadajte kód, ktorý počujete. Stlačením medzerníka prehráte zvuk.",error:"Verifikácia zlyhala. Skúste to znova neskôr.",expired:"Verifikácia vypršala. Skúste to znova.",footer:'Chránené <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (oficiálna webová stránka)">ALTCHA</a>
364',getAudioChallenge:"Získať audio výzvu",label:"Nie som robot",loading:"Načítava sa...",reload:"Obnoviť",verify:"Verifikovať",verificationRequired:"Vyžaduje sa overenie!",verified:"Verifikované",verifying:"Prebieha verifikácia...",waitAlert:"Prebieha verifikácia... prosím čakajte.",cancel:"Zrušiť",enterCodeFromImage:"Na pokračovanie, prosím, zadajte kód z obrázka nižšie."}),globalThis.$altcha.i18n.set("sl",{ariaLinkLabel:"Altcha (uradna spletna stran)",enterCode:"Vnesite kodo",enterCodeAria:"Vnesite kodo, ki jo slišite. Pritisnite preslednico za predvajanje zvoka.",error:"Preverjanje ni uspelo. Poskusite znova kasneje.",expired:"Preverjanje je poteklo. Poskusite znova.",footer:'Zaščiteno z <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (uradna spletna stran)">ALTCHA</a>',getAudioChallenge:"Pridobite zvočni izziv",label:"Nisem robot",loading:"Nalagam...",reload:"Ponovno naloži",verify:"Preveri",verificationRequired:"Potrebna je preveritev!",verified:"Preverjeno",verifying:"Preverjanje...",waitAlert:"Preverjanje... prosim počakajte.",cancel:"Preklic",enterCodeFromImage:"Za nadaljevanje, prosimo, vnesite kodo s slike spodaj."}),globalThis.$altcha.i18n.set("sq",{ariaLinkLabel:"Altcha (faqja zyrtare)",enterCode:"Fut kodin",enterCodeAria:"Fut kodin që dëgjon. Shtypni Hapësirë për të luajtur audio.",error:"Verifikimi dështoi. Provoni përsëri më vonë.",expired:"Verifikimi ka skaduar. Provoni përsëri.",footer:'I mbrojtur nga <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (faqja zyrtare)">ALTCHA</a>',getAudioChallenge:"Merr një sfidë audio",label:"Unë nuk jam një robot",loading:"Duke u ngarkuar...",reload:"Ringarko",verify:"Verifiko",verificationRequired:"Kërkohet verifikimi!",verified:"I verifikuar",verifying:"Duke verifikuar...",waitAlert:"Duke verifikuar... ju lutem prisni.",cancel:"Anuloje",enterCodeFromImage:"Për të vazhduar, ju lutemi fusni kodin nga imazhi më poshtë."}),globalThis.$altcha.i18n.set("sr",{ariaLinkLabel:"Altcha (zvanična web stranica)",enterCode:"Unesite kod",enterCodeAria:"Unesite kod koji čujete. Pritisnite Space da biste pustili zvuk.",error:"Verifikacija nije uspela. Pokušajte ponovo kasnije.",expired:"Verifikacija je istekla. Pokušajte ponovo.",footer:'Zaštićeno od strane <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (zvanična web stranica)">ALTCHA</a>',getAudioChallenge:"Dohvatite audio izazov",label:"Nisam robot",loading:"Učitavanje...",reload:"Ponovo učitaj",verify:"Verifikuj",verificationRequired:"Verifikacija je obavezna!",verified:"Verifikovano",verifying:"Verifikacija u toku...",waitAlert:"Verifikacija u toku... molimo vas da saček
364ate.",cancel:"Откажи",enterCodeFromImage:"Да бисте наставили, унесите код са слике испод."}),globalThis.$altcha.i18n.set("sv",{ariaLinkLabel:"Altcha (officiell webbplats)",enterCode:"Ange kod",enterCodeAria:"Ange koden du hör. Tryck på mellanslag för att spela upp ljudet.",error:"Verifiering misslyckades. Försök igen senare.",expired:"Verifieringen har gått ut. Försök igen.",footer:'Skyddad av <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (officiell webbplats)">ALTCHA</a>',getAudioChallenge:"Få ljudutmaning",label:"Jag är inte en robot",loading:"Laddar...",reload:"Ladda om",verify:"Verifiera",verificationRequired:"Verifiering krävs!",verified:"Verifierad",verifying:"Verifierar...",waitAlert:"Verifierar... vänligen vänta.",cancel:"Avbryt",enterCodeFromImage:"För att fortsätta, ange koden från bilden nedan."}),globalThis.$altcha.i18n.set("tr",{ariaLinkLabel:"Altcha (resmi web sitesi)",enterCode:"Kodu girin",enterCodeAria:"Duyduğunuz kodu girin. Ses dosyasını oynatmak için Boşluk tuşuna basın.",error:"Doğrulama başarısız oldu. Lütfen daha sonra tekrar deneyin.",expired:"Doğrulama süresi doldu. Lütfen tekrar deneyin.",footer:'ALTCHA tarafından korunuyor <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (resmi web sitesi)">ALTCHA</a>',getAudioChallenge:"Sesli doğrulama al",label:"Ben robot değilim",loading:"Yükleniyor...",reload:"Yeniden yükle",verify:"Doğrula",verificationRequired:"Doğrulama gerekli!",verified:"Doğrulandı",verifying:"Doğrulama yapılıyor...",waitAlert:"Doğrulama yapılıyor... lütfen bekleyin.",cancel:"İptal",enterCodeFromImage:"Devam etmek için lütfen aşağıdaki resimdeki kodu girin."}),globalThis.$altcha.i18n.set("uk",{ariaLinkLabel:"Altcha (офіційний сайт)",enterCode:"Введіть код",enterCodeAria:"Введіть код, який ви чуєте. Натисніть пробіл, щоб відтворити аудіо.",error:"Перевірка не вдалася. Спробуйте пізніше.",expired:"Перевірка прострочена. Спробуйте знову.",footer:'Захищено <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (офіційний сайт)">ALTCHA</a>',getAudioChallenge:"Отримати аудіо-челлендж",label:"Я не робот",loading:"Завантаження...",reload:"Перезавантажити",verify:"Перевірити",verificationRequired:"Потрібна перевірка!",verified:"Перевірено",verifying:"Перевіряється...",waitAlert:"Перевірка... будь ласка, зачекайте.",cancel:"Скасувати",enterCodeFromImage:"Щоб продовжити, введіть код із зображення нижче."}),globalThis.$altcha.i18n.set("af",{ariaLinkLabel:"Altcha (amptelike webwerf)",enterCode:"Voer kode in",enterCodeAria:"Voer die kode in wat jy hoor. Druk Spasie om die klank af te speel.",error:"Verifikasie het misluk. Probeer later weer.",expired:"Verifikasie het verval. Probeer weer.",footer:'Beskerm deur <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (amptelike webwerf)">ALTCHA</a>',getAudioChallenge:"Kry 'n klankuitdaging",label:"Ek is nie 'n robot nie",loading:"Laai...",reload:"Laai weer",verify:"Verifieer",verificationRequired:"Verifikasie is vereis!",verified:"Geverifieer",verifying:"Verifieer...",waitAlert:"Verifieer... wag asseblief.",cancel:"Kanselleer",enterCodeFromImage:"Om voort te gaan, voer asseblief die kode vanaf die onderstaande prentjie in."}),globalThis.$altcha.i18n.set("am",{ariaLinkLabel:"Altcha (ዋናው ድህረ ገጽ)",enterCode:"ኮድ አስገባ",enterCodeAria:"የሚሰማዎትን ኮድ ያስገቡ። ድምጽ ለመጫወት Space ን ይጫኑ።",error:"ማረጋገጫ አልተሳካም። በኋላ ላይ እንደገና ይሞክሩ።",expired:"ማረጋገጫው ጊዜው አልፏል። እንደገና ይሞክሩ።",footer:'በ <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (ዋናው ድህረ ገጽ)">ALTCHA</a> የተጠበቀ',getAudioChallenge:"የድምጽ ፈተና ያግኙ",label:"እኔ ሮቦት አይደለሁም",loading:"በመጫን ላይ...",reload:"እንደገና ጫን",verify:"አረጋግጥ",verificationRequired:"ማረጋገጫ ያስፈልጋል!",verified:"ተረጋግጧል",verifying:"በማረጋገጥ ላይ...",waitAlert:"በማረጋገጥ ላይ... እባክዎ ይጠብቁ።",cancel:"ይቅር",enterCodeFromImage:"ለመቀጠል፣ እባክዎን ከታች ካለው ምስል ኮዱን ያስገቡ።"}),globalThis.$altcha.i18n.set("sw",{ariaLinkLabel:"Altcha (tovuti rasmi)",enterCode:"Weka nambari",enterCodeAria:"Weka nambari unayosikia. Bonyeza Space kucheza sauti.",error:"Uthibitishaji umeshindwa. Jaribu tena baadaye.",expired:"Uthibitishaji umeisha. Jaribu tena.",footer:'Imealindwa na <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (tovuti rasmi)">ALTCHA</a>',getAudioChallenge:"Pata changamoto ya sauti",label:"Mimi sio roboti",loading:"Inapakia...",reload:"Pakia tena",verify:"Thibitisha",verificationRequired:"Uthibitishaji unahitajika!",verified:"Imethibitishwa",verifying:"Inathibitisha...",waitAlert:"Inathibitisha... tafadhali subiri.",cancel:"Ghairi",enterCodeFromImage:"Ili kuendelea, tafadhali weka nambari kutoka kwa picha hapa chini."}),globalThis.$altcha.i18n.set("yo",{ariaLinkLabel:"Altcha (oju opo wẹẹbu osise)",enterCode:"Tẹ koodu sii",enterCodeAria:"Tẹ koodu ti o ngbọ sii. Tẹ Space lati ṣe ohun orin.",error:"Ìdájọ́kòwò kò ṣẹ́ṣe. Gbiyanju lẹẹkansi 
364ni ọjọ́ iwájú.",expired:"Ìdájọ́kòwò ti pari. Gbiyanju lẹẹkansi.",footer:'Ti wa ni ààbò nipasẹ <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (oju opo wẹẹbu osise)">ALTCHA</a>',getAudioChallenge:"Gba ìjàdú ohùn",label:"Emi kii ṣe ẹrọ",loading:"Ó ń gbé sílẹ̀...",reload:"Tún gbé wọlé",verify:"Ṣàdájọ́",verificationRequired:"Ìdájọ́kòwò ni a nílò!",verified:"A ti dájọ́",verifying:"Ó ń ṣàdájọ́...",waitAlert:"Ó ń ṣàdájọ́... ẹ jọ̀ọ́ ẹ duro.",cancel:"Fagbọsẹ",enterCodeFromImage:"Lati tẹsiwaju, jọwọ tẹ koodu ti o wa lati aworan isalẹ sii."}),globalThis.$altcha.i18n.set("bn",{ariaLinkLabel:"Altcha (অফিসিয়াল ওয়েবসাইট)",enterCode:"কোড লিখুন",enterCodeAria:"আপনি যে কোড শুনতে পান তা লিখুন। অডিও প্লে করতে স্পেস বাটন টিপুন।",error:"যাচাইকরণ ব্যর্থ হয়েছে। পরে আবার চেষ্টা করুন।",expired:"যাচাইকরণ সময়সীমা শেষ হয়েছে। আবার চেষ্টা করুন।",footer:'দ্বারা সুরক্ষিত <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (অফিসিয়াল ওয়েবসাইট)">ALTCHA</a>',getAudioChallenge:"অডিও চ্যালেঞ্জ নিন",label:"আমি রোবট নই",loading:"লোড হচ্ছে...",reload:"পুনরায় লোড করুন",verify:"যাচাই করুন",verificationRequired:"যাচাই প্রয়োজন!",verified:"যাচাই করা হয়েছে",verifying:"যাচাই করা হচ্ছে...",waitAlert:"যাচাই করা হচ্ছে... দয়া করে অপেক্ষা করুন।",cancel:"বাতিল করুন",enterCodeFromImage:"এগিয়ে যেতে, অনুগ্রহ করে নীচের চিত্র থেকে কোডটি প্রবেশ করান।"}),globalThis.$altcha.i18n.set("he",{ariaLinkLabel:"Altcha (אתר רשמי)",enterCode:"הזן קוד",enterCodeAria:"הזן את הקוד שאתה שומע. לחץ על רווח להפעלת השמע.",error:"האימות נכשל. נסה שוב מאוחר יותר.",expired:"תוקף האימות פג. נסה שוב.",footer:'מוגן על ידי <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (אתר רשמי)">ALTCHA</a>',getAudioChallenge:"קבל אתגר שמע",label:"אני לא רובוט",loading:"טוען...",reload:"טען מחדש",verify:"אמת",verificationRequired:"נדרש אימות!",verified:"אומת",verifying:"מאמת...",waitAlert:"מבצע אימות... אנא המתן.",cancel:"ביטול",enterCodeFromImage:"כדי להמשיך, אנא הזן את הקוד מהתמונה למטה."}),globalThis.$altcha.i18n.set("hi",{ariaLinkLabel:"Altcha (आधिकारिक वेबसाइट)",enterCode:"कोड दर्ज करेंं",enterCodeAria:"आप जो कोड सुनते हैं उसे दर्ज करें। ऑडियो चलाने के लिए स्पेस दबाएं।",error:"सत्यापन विफल। कृपया बाद में फिर से प्रयास करें।",expired:"सत्यापन समाप्त हो गया है। कृपया पुनः प्रयास करें।",footer:'द्वारा संरक्षित <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (आधिकारिक वेबसाइट)">ALTCHA</a>',getAudioChallenge:"ऑडियो चुनौती प्राप्त करें",label:"मैं रोबोट नहीं हूँ",loading:"लोड हो रहा है...",reload:"पुनः लोड करें",verify:"सत्यापित करें",verificationRequired:"सत्यापन आवश्यक है!",verified:"सत्यापित",verifying:"सत्यापित कर रहे हैं...",waitAlert:"सत्यापित किया जा रहा है... कृपया प्रतीक्षा करें।",cancel:"रद्द करें",enterCodeFromImage:"आगे बढ़ने के लिए, कृपया नीचे दी गई छवि से कोड दर्ज करें।"}),globalThis.$altcha.i18n.set("id",{ariaLinkLabel:"Altcha (situs web resmi)",enterCode:"Masukkan kode",enterCodeAria:"Masukkan kode yang Anda dengar. Tekan Spasi untuk memutar audio.",error:"Verifikasi gagal. Coba lagi nanti.",expired:"Verifikasi telah kedaluwarsa. Coba lagi.",footer:'Dilindungi oleh <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (situs web resmi)">ALTCHA</a>',getAudioChallenge:"Dapatkan tantangan audio",label:"Saya bukan robot",loading:"Memuat...",reload:"Muat ulang",verify:"Verifikasi",verificationRequired:"Verifikasi diperlukan!",verified:"Terverifikasi",verifying:"Memverifikasi...",waitAlert:"Memverifikasi... harap tunggu.",cancel:"Batal",enterCodeFromImage:"Untuk melanjutkan, silakan masukkan kode dari gambar di bawah ini."}),globalThis.$altcha.i18n.set("ja",{ariaLinkLabel:"Altcha (公式ウェブサイト)",enterCode:"コードを入力",enterCodeAria:"聞こえるコードを入力してください。スペースキーを押して音声を再生します。",error:"認証に失敗しました。後でもう一度試してください。",expired:"認証が期限切れです。再試行してください。",footer
364:'保護されています <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (公式ウェブサイト)">ALTCHA</a>',getAudioChallenge:"音声チャレンジを取得",label:"私はロボットではありません",loading:"読み込み中...",reload:"再読み込み",verify:"確認",verificationRequired:"認証が必要です!",verified:"確認済み",verifying:"確認中...",waitAlert:"確認中...少々お待ちください。",cancel:"キャンセル",enterCodeFromImage:"続行するには、以下の画像からコードを入力してください。"}),globalThis.$altcha.i18n.set("ko",{ariaLinkLabel:"Altcha (공식 웹사이트)",enterCode:"코드 입력",enterCodeAria:"들리는 코드를 입력하세요. 스페이스 바를 눌러 오디오를 재생합니다.",error:"인증 실패. 나중에 다시 시도해주세요.",expired:"인증이 만료되었습니다. 다시 시도해주세요.",footer:'ALTCHA에서 보호됨 <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (공식 웹사이트)">ALTCHA</a>',getAudioChallenge:"오디오 챌린지 받기",label:"저는 로봇이 아닙니다",loading:"로딩 중...",reload:"새로 고침",verify:"확인",verificationRequired:"인증이 필요합니다!",verified:"확인됨",verifying:"확인 중...",waitAlert:"확인 중... 잠시만 기다려주세요.",cancel:"취소",enterCodeFromImage:"계속 진행하려면 아래 이미지에서 코드를 입력하세요."}),globalThis.$altcha.i18n.set("kk",{ariaLinkLabel:"Altcha (ресми веб-сайт)",enterCode:"Кодты енгізіңіз",enterCodeAria:"Естіген кодыңызды енгізіңіз. Аудионы ойнату үшін Бос орынды басыңыз.",error:"Тексеру сәтсіз аяқталды. Кейінірек қайталаңыз.",expired:"Тексеру мерзімі аяқталды. Қайталаңыз.",footer:'<a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (ресми веб-сайт)">ALTCHA</a> қорғайды',getAudioChallenge:"Аудио сынақ алу",label:"Мен робот емеспін",loading:"Жүктелуде...",reload:"Қайта жүктеу",verify:"Тексеру",verificationRequired:"Тексеру талап етіледі!",verified:"Тексерілді",verifying:"Тексеруде...",waitAlert:"Тексерілуде... күте тұрыңыз.",cancel:"Болдыру",enterCodeFromImage:"Жалғастыру үшін төмендегі суреттегі кодты енгізіңіз."}),globalThis.$altcha.i18n.set("mr",{ariaLinkLabel:"Altcha (अधिकृत संकेतस्थळ)",enterCode:"कोड टाकाा",enterCodeAria:"तुम्ही ऐकत असलेला कोड टाका. ऑडिओ प्ले करण्यासाठी स्पेस दाबा.",error:"पुष्टीकरण अयशस्वी झाले. कृपया नंतर पुन्हा प्रयत्न करा.",expired:"पुष्टीकरण कालबाह्य झाले आहे. कृपया पुन्हा प्रयत्न करा.",footer:'द्वारे संरक्षित <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (अधिकृत संकेतस्थळ)">ALTCHA</a>',getAudioChallenge:"ऑडिओ चॅलेंज मिळवा",label:"मी रोबोट नाही",loading:"लोड होत आहे...",reload:"पुन्हा लोड करा",verify:"पुष्टीकरण करा",verificationRequired:"पडताळणी आवश्यक आहे!",verified:"पुष्टीकरण झाले",verifying:"पुष्टीकरण करत आहे...",waitAlert:"पुष्टीकरण करत आहे... कृपया थोडा वेळ थांबा.",cancel:"रद्द करा",enterCodeFromImage:"पुढे जाण्यासाठी, कृपया खालील प्रतिमेतील कोड प्रविष्ट करा."}),globalThis.$altcha.i18n.set("ta",{ariaLinkLabel:"Altcha (அதிகாரப்ப
364ூர்வ வலைத்தளம்)",enterCode:"குறியீட்டை உள்ளிடவும்",enterCodeAria:"நீங்கள் கேட்கும் குறியீட்டை உள்ளிடவும். ஆடியோவை இயக்க Space ஐ அழுத்தவும்.",error:"சரிபார்ப்பு தோல்வி. பிறகு மீண்டும் முயற்சிக்கவும்.",expired:"சரிபார்ப்பு காலாவதியானது. மீண்டும் முயற்சிக்கவும்.",footer:'மூலமாக பாதுகாக்கப்பட்டவை <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (அதிகாரப்பூர்வ வலைத்தளம்)">ALTCHA</a>',getAudioChallenge:"ஒலி சவாலை பெறவும்",label:"நான் ரோபோடான அல்ல",loading:"செயலாக்கம்...",reload:"மீண்டும் புதுப்பிக்கவும்",verify:"சரிபார்க்கவும்",verificationRequired:"சரிபார்ப்பு தேவை!",verified:"சரிபார்க்கப்பட்டது",verifying:"சரிபார்க்கப்படுகிறது...",waitAlert:"சரிபார்க்கப்படுகிறது... தயவுசெய்து காத்திருக்கவும்.",cancel:"ரத்துசெய்",enterCodeFromImage:"தொடர, கீழே உள்ள படத்திலிருந்து குறியீட்டை உள்ளிடவும்."}),globalThis.$altcha.i18n.set("te",{ariaLinkLabel:"Altcha (అధికారిక వెబ్‌సైట్)",enterCode:"కోడ్‌ని నమోదు చేయండి",enterCodeAria:"మీరు విన్న కోడ్‌ని నమోదు చేయండి. ఆడియో ప్లే చేయడానికి స్పేస్‌ను నొక్కండి.",error:"చెకింగ్ విఫలమైంది. దయచేసి మరల ప్రయత్నించండి.",expired:"చెకింగ్ కాలం ముగిసింది. దయచేసి మరల ప్రయత్నించండి.",footer:'ఈ సైట్ రక్షించబడింది <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (అధికారిక వెబ్‌సైట్)">ALTCHA</a>',getAudioChallenge:"ఆడియో ఛాలెంజ్ పొందండి",label:"నేను రోబోట్ కాదు",loading:"లోడ్ అవుతోంది...",reload:"మళ్ళీ లోడ్ చేయండి",verify:"ధ్రువీకరించు",verificationRequired:"ధృవీకరణ అవసరం!",verified:"ధ్రువీకరించబడింది",verifying:"ధ్రువీకరణ జరుగుతుంది...",waitAlert:"ధ్రువీకరణ జరుగుతుంది... దయచేసి వేచి ఉండండి.",cancel:"రద్దు చేయండి",enterCodeFromImage:"కొనసాగడానికి, దయచేసి క్రింది చిత్రంలో ఉన్న కోడ్‌ను నమోదు చేయండి."}),globalThis.$altcha.i18n.set("th",{ariaLinkLabel:"Altcha (เว็บไซต์ทางการ)",enterCode:"ป้อนรหัส",enterCodeAria:"ป้อนรหัสที่คุณได้ยิน กด Space เพื่อเล่นเสียง",error:"การตรวจสอบล้มเหลว กรุณาลองอีกครั้งภายหลัง",expired:"การตรวจสอบหมดอายุ กรุณาลองใหม่",footer:'ป้องกันโดย <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (เว็บไซต์ทางการ)">ALTCHA</a>',getAudioChallenge:"รับการท้าทายเสียง",label:"ฉันไม่ใช่บอท",loading:"กำลังโหลด...",reload:"โหลดใหม่",verify:"ตรวจสอบ",verificationRequired:"จำเป็นต้องตรวจสอบ!",verified:"ตรวจสอบแล้ว",verifying:"กำลังตรวจสอบ...",waitAlert:"กำลังตรวจสอบ... กรุณารอ",cancel:"ยกเลิก",enterCodeFromImage:"เพื่อดำเนินการต่อ โปรดป้อนรหัสจากรูปภาพด้านล่าง"}),globalThis.$altcha.i18n.set("ur",{ariaLinkLabel:"Altcha (سرکاری ویب سائٹ)",enterCode:"کوڈ درج کریں",enterCodeAria:"جو کوڈ آپ سنتے ہیں وہ درج کریں۔ آڈیو چلانے کے لیے اسپیس دبائی
364ں۔",error:"توثیق ناکام ہو گئی۔ براہ کرم بعد میں دوبارہ کوشش کریں۔",expired:"توثیق کی مدت ختم ہو گئی ہے۔ براہ کرم دوبارہ کوشش کریں۔",footer:'کے ذریعے محفوظ <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (سرکاری ویب سائٹ)">ALTCHA</a>',getAudioChallenge:"آڈیو چیلنج حاصل کریں",label:"میں روبوٹ نہیں ہوں",loading:"لوڈ ہو رہا ہے...",reload:"دوبارہ لوڈ کریں",verify:"توثیق کریں",verificationRequired:"تصدیق ضروری ہے!",verified:"توثیق شدہ",verifying:"توثیق ہو رہی ہے...",waitAlert:"توثیق ہو رہی ہے... براہ کرم انتظار کریں۔",cancel:"منسوخ کریں",enterCodeFromImage:"اگلے مرحلے پر جانے کے لیے، براہ کرم نیچے دی گئی تصویر سے کوڈ درج کریں۔"}),globalThis.$altcha.i18n.set("uz",{ariaLinkLabel:"Altcha (rasmiy veb-sayt)",enterCode:"Kodni kiriting",enterCodeAria:"Eshitgan kodingizni kiriting. Audioni ijro etish uchun Bo'sh joy tugmasini bosing.",error:"Tekshiruv muvaffaqiyatsiz tugadi. Keyinroq qayta urinib ko'ring.",expired:"Tekshiruv muddati tugadi. Qayta urinib ko'ring.",footer:'<a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (rasmiy veb-sayt)">ALTCHA</a> tomonidan himoyalangan',getAudioChallenge:"Audio sinovni olish",label:"Men robot emasman",loading:"Yuklanmoqda...",reload:"Qayta yuklash",verify:"Tekshirish",verificationRequired:"Tekshiruv talab qilinadi!",verified:"Tekshirildi",verifying:"Tekshirilmoqda...",waitAlert:"Tekshirilmoqda... iltimos kuting.",cancel:"Bekor qilish",enterCodeFromImage:"Davom etish uchun, iltimos, quyidagi rasmda ko'rsatilgan kodni kiriting."}),globalThis.$altcha.i18n.set("vi",{ariaLinkLabel:"Altcha (trang web chính thức)",enterCode:"Nhập mã",enterCodeAria:"Nhập mã bạn nghe được. Nhấn Phím cách để phát âm thanh.",error:"Xác minh thất bại. Vui lòng thử lại sau.",expired:"Xác minh đã hết hạn. Vui lòng thử lại.",footer:'Được bảo vệ bởi <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (trang web chính thức)">ALTCHA</a>',getAudioChallenge:"Nhận thử thách âm thanh",label:"Tôi không phải là robot",loading:"Đang tải...",reload:"Tải lại",verify:"Xác minh",verificationRequired:"Yêu cầu xác minh!",verified:"Đã xác minh",verifying:"Đang xác minh...",waitAlert:"Đang xác minh... vui lòng chờ.",cancel:"Hủy bỏ",enterCodeFromImage:"Để tiếp tục, vui lòng nhập mã từ hình ảnh bên dưới."}),globalThis.$altcha.i18n.set("zh-cn",{ariaLinkLabel:"Altcha (官方网站)",enterCode:"输入代码",enterCodeAria:"输入您听到的代码。按空格键播放音频。",error:"验证失败。稍后再试。",expired:"验证已过期。请重试。",footer:'由 <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (官方网站)">ALTCHA</a> 保护',getAudioChallenge:"获取音频挑战",label:"我不是机器人",loading:"加载中...",reload:"重新加载",verify:"验证",verificationRequired:"需要验证!",verified:"已验证",verifying:"正在验证...",waitAlert:"正在验证... 请稍等。",cancel:"取消",enterCodeFromImage:"为继续操作,请输入下图中显示的验证码。"}),globalThis.$altcha.i18n.set("zh-hk",{ariaLinkLabel:"Altcha (官方網站)",cancel:"取消",enterCode:"輸入代碼",enterCodeAria:"輸入你聽到嘅代碼。按空格鍵播放音訊。",enterCodeFromImage:"要繼續,請輸入下面圖片入面嘅代碼。",error:"驗證失敗。請稍後再試。",expired:"驗證已過期。請再試一次。",footer:'由 <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (官方網站)">ALTCHA</a> 提供保護',getAudioChallenge:"取得音訊驗證",label:"我唔係機械人",loading:"載入中...",reload:"重新載入",verify:"驗證",verificationRequired:"需要驗證!",verified:"已驗證",verifying:"驗證中...",waitAlert:"驗證中... 請稍候。"}),globalThis.$altcha.i18n.set("zh-tw",{ariaLinkLabel:"Altcha (官方網站)",enterCode:"輸入代碼",enterCodeAria:"輸入您聽到的代碼。按空格鍵播放音頻。",error:"驗證失敗。稍後再試。",expired:"驗證已過期。請重試。",footer
364:'由 <a href="https://altcha.org/" tabindex="-1" target="_blank" aria-label="Altcha (官方網站)">ALTCHA</a> 保護',getAudioChallenge:"獲取音頻挑戰",label:"我不是機器人",loading:"載入中...",reload:"重新載入",verify:"驗證",verificationRequired:"需要驗證!",verified:"已驗證",verifying:"正在驗證...",waitAlert:"正在驗證... 請稍等。",cancel:"取消",enterCodeFromImage:"若要繼續,請輸入下方的圖片驗證碼。"})},57884(t,i,r){var a=r(39158);i.A=a.default||a},83815(t,i,r){class a extends Error{}function n(t,i){let r;if("string"!=typeof t)throw new a("Invalid token specified: must be a string");i||(i={});let n=+(!0!==i.header),o=t.split(".")[n];if("string"!=typeof o)throw new a(`Invalid token specified: missing part #${n+1}`);try{r=function(t){let i=t.replace(/-/g,"+").replace(/_/g,"/");switch(i.length%4){case 0:break;case 2:i+="==";break;case 3:i+="=";break;default:throw Error("base64 string is not of the correct length")}try{var r;return r=i,decodeURIComponent(atob(r).replace(/(.)/g,(t,i)=>{let r=i.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}catch(t){return atob(i)}}(o)}catch(t){throw new a(`Invalid token specified: invalid base64 for part #${n+1} (${t.message})`)}try{return JSON.parse(r)}catch(t){throw new a(`Invalid token specified: invalid json for part #${n+1} (${t.message})`)}}a.prototype.name="InvalidTokenError",r.d(i,{s:()=>n})},85012(t,i,r){let a,n,o,s,l,c,u,h,d,f,p,m,g,y,_,v,b,x,w,k,T;var S,A,C,E=Object.create,M=Object.defineProperty,P=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,I=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty,F=(t,i)=>()=>(i||(t((i={exports:{}}).exports,i),t=null),i.exports);function R(t,i){this.x=t,this.y=i}function O(){return a??="u">typeof OffscreenCanvas&&!!new OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof createImageBitmap}function B(){if(null==n&&(n=!1,O())){let t=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(t){for(let i=0;i<25;i++){let r=4*i;t.fillStyle=`rgb(${r},${r+1},${r+2})`,t.fillRect(i%5,Math.floor(i/5),1,1)}let i=t.getImageData(0,0,5,5).data;for(let t=0;t<100;t++)if(t%4!=3&&i[t]!==t){n=!0;break}}}return n||!1}R.prototype={clone(){return new R(this.x,this.y)},add(t){return this.clone()._add(t)},sub(t){return this.clone()._sub(t)},multByPoint(t){return this.clone()._multByPoint(t)},divByPoint(t){return this.clone()._divByPoint(t)},mult(t){return this.clone()._mult(t)},div(t){return this.clone()._div(t)},rotate(t){return this.clone()._rotate(t)},rotateAround(t,i){return this.clone()._rotateAround(t,i)},matMult(t){return this.clone()._matMult(t)},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(t){return this.x===t.x&&this.y===t.y},dist(t){return Math.sqrt(this.distSqr(t))},distSqr(t){let i=t.x-this.x,r=t.y-this.y;return i*i+r*r},angle(){return Math.atan2(this.y,this.x)},angleTo(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith(t){return this.angleWithSep(t.x,t.y)},angleWithSep(t,i){return Math.atan2(this.x*i-this.y*t,this.x*t+this.y*i)},_matMult(t){let i=t[0]*this.x+t[1]*this.y,r=t[2]*this.x+t[3]*this.y;return this.x=i,this.y=r,this},_add(t){return this.x+=t.x,this.y+=t.y,this},_sub(t){return this.x-=t.x,this.y-=t.y,this},_mult(t){return this.x*=t,this.y*=t,this},_div(t){return this.x/=t,this.y/=t,this},_multByPoint(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint(t){return this.x/=t.x,this.y/=t.y,this},_unit(){return this._div(this.mag()),this},_perp(){let t=this.y;return this.y=this.x,this.x=-t,this},_rotate(t){let i=Math.cos(t),r=Math.sin(t),a=i*this.x-r*this.y,n=r*this.x+i*this.y;return this.x=a,this.y=n,this},_rotateAround(t,i){let r=Math.cos(t),a=Math.sin(t),n=i.x+r*(this.x-i.x)-a*(this.y-i.y),o=i.y+a*(this.x-i.x)+r*(this.y-i.y);return this.x=n,this.y=o,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:R},R.convert=function(t){if(t instanceof R)return t;if(Array.isArray(t))return new R(+t[0],+t[1]);if(void 0!==t.x&&void 0!==t.y)return new R(+t.x,+t.y);throw Error("Expected [x, y] or {x, y} point format")};var j="u">typeof Float32Array?Float32Array:Array;function N(){var t=new j(9);return j!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function $(t,i){var r=Math.sin(i),a=Math.cos(i);return t[0]=a,t[1]=r,t[2]=0,t[3]=-r,t[4]=a,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function V(){var t=new j(16);return j!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function U(t){var i=new j(16);return i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3],i[4]=t[4],i[5]=t[5],i[6]=t[6],i[7]=t[7],i[8]=t[8],i[9]=t[9],i[10]=t[10],i[11]=t[11],i[12]=t[12],i[13]=t[13],i[14]=t[14],i[15]=t[15],i}function G(t,i){return t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[8]=i[8],t[9]=i[9],t[10]=i[10],t[11]=i[11],t[12]=i[12],t[13]=i[13],t[14]=i[14],t[15]=i[15],t}function q(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function Z(t,i){var r=i[0],a=i[1],n=i[2],o=i[3],s=i[4],l=i[5],c=i[6],u=i[7],h=i[8],d=i[9],f=i[10],p=i[11],m=i[12],g=i[13],y=i[14],_=i[15],v=r*l-a*s,b=r*c-n*s,x=r*u-o*s,w=a*c-n*l,k=a*u-o*l,T=n*u-o*c,S=h*g-d*m,A=h*y-f*m,C=h*_-p*m,E=d*y-f*g,M=d*_-p*g,P=f*_-p*y,D=v*P-b*M+x*E+w*C-k*A+T*S;return D?(D=1/D,t[0]=(l*P-c*M+u*E)*D,t[1]=(n*M-a*P-o*E)*D,t[2]=(g*T-y*k+_*w)*D,t[3]=(f*k-d*T-p*w)*D,t[4]=(c*C-s*P-u*A)*D,t[5]=(r*P-n*C+o*A)*D,t[6]=(y*x-m*T-_*b)*D,t[7]=(h*T-f*x+
vendor: 6,216 bytes, line 364
364p*b)*D,t[8]=(s*M-l*C+u*S)*D,t[9]=(a*C-r*M-o*S)*D,t[10]=(m*k-g*x+_*v)*D,t[11]=(d*x-h*k-p*v)*D,t[12]=(l*A-s*E-c*S)*D,t[13]=(r*E-a*A+n*S)*D,t[14]=(g*b-m*w-y*v)*D,t[15]=(h*w-d*b+f*v)*D,t):null}function H(t,i,r){var a=i[0],n=i[1],o=i[2],s=i[3],l=i[4],c=i[5],u=i[6],h=i[7],d=i[8],f=i[9],p=i[10],m=i[11],g=i[12],y=i[13],_=i[14],v=i[15],b=r[0],x=r[1],w=r[2],k=r[3];return t[0]=b*a+x*l+w*d+k*g,t[1]=b*n+x*c+w*f+k*y,t[2]=b*o+x*u+w*p+k*_,t[3]=b*s+x*h+w*m+k*v,b=r[4],x=r[5],w=r[6],k=r[7],t[4]=b*a+x*l+w*d+k*g,t[5]=b*n+x*c+w*f+k*y,t[6]=b*o+x*u+w*p+k*_,t[7]=b*s+x*h+w*m+k*v,b=r[8],x=r[9],w=r[10],k=r[11],t[8]=b*a+x*l+w*d+k*g,t[9]=b*n+x*c+w*f+k*y,t[10]=b*o+x*u+w*p+k*_,t[11]=b*s+x*h+w*m+k*v,b=r[12],x=r[13],w=r[14],k=r[15],t[12]=b*a+x*l+w*d+k*g,t[13]=b*n+x*c+w*f+k*y,t[14]=b*o+x*u+w*p+k*_,t[15]=b*s+x*h+w*m+k*v,t}function W(t,i,r){var a,n,o,s,l,c,u,h,d,f,p,m,g=r[0],y=r[1],_=r[2];return i===t?(t[12]=i[0]*g+i[4]*y+i[8]*_+i[12],t[13]=i[1]*g+i[5]*y+i[9]*_+i[13],t[14]=i[2]*g+i[6]*y+i[10]*_+i[14],t[15]=i[3]*g+i[7]*y+i[11]*_+i[15]):(a=i[0],n=i[1],o=i[2],s=i[3],l=i[4],c=i[5],u=i[6],h=i[7],d=i[8],f=i[9],p=i[10],m=i[11],t[0]=a,t[1]=n,t[2]=o,t[3]=s,t[4]=l,t[5]=c,t[6]=u,t[7]=h,t[8]=d,t[9]=f,t[10]=p,t[11]=m,t[12]=a*g+l*y+d*_+i[12],t[13]=n*g+c*y+f*_+i[13],t[14]=o*g+u*y+p*_+i[14],t[15]=s*g+h*y+m*_+i[15]),t}function X(t,i,r){var a=r[0],n=r[1],o=r[2];return t[0]=i[0]*a,t[1]=i[1]*a,t[2]=i[2]*a,t[3]=i[3]*a,t[4]=i[4]*n,t[5]=i[5]*n,t[6]=i[6]*n,t[7]=i[7]*n,t[8]=i[8]*o,t[9]=i[9]*o,t[10]=i[10]*o,t[11]=i[11]*o,t[12]=i[12],t[13]=i[13],t[14]=i[14],t[15]=i[15],t}function Y(t,i,r){var a=Math.sin(r),n=Math.cos(r),o=i[4],s=i[5],l=i[6],c=i[7],u=i[8],h=i[9],d=i[10],f=i[11];return i!==t&&(t[0]=i[0],t[1]=i[1],t[2]=i[2],t[3]=i[3],t[12]=i[12],t[13]=i[13],t[14]=i[14],t[15]=i[15]),t[4]=o*n+u*a,t[5]=s*n+h*a,t[6]=l*n+d*a,t[7]=c*n+f*a,t[8]=u*n-o*a,t[9]=h*n-s*a,t[10]=d*n-l*a,t[11]=f*n-c*a,t}function K(t,i,r){var a=Math.sin(r),n=Math.cos(r),o=i[0],s=i[1],l=i[2],c=i[3],u=i[8],h=i[9],d=i[10],f=i[11];return i!==t&&(t[4]=i[4],t[5]=i[5],t[6]=i[6],t[7]=i[7],t[12]=i[12],t[13]=i[13],t[14]=i[14],t[15]=i[15]),t[0]=o*n-u*a,t[1]=s*n-h*a,t[2]=l*n-d*a,t[3]=c*n-f*a,t[8]=o*a+u*n,t[9]=s*a+h*n,t[10]=l*a+d*n,t[11]=c*a+f*n,t}function J(t,i,r){var a=Math.sin(r),n=Math.cos(r),o=i[0],s=i[1],l=i[2],c=i[3],u=i[4],h=i[5],d=i[6],f=i[7];return i!==t&&(t[8]=i[8],t[9]=i[9],t[10]=i[10],t[11]=i[11],t[12]=i[12],t[13]=i[13],t[14]=i[14],t[15]=i[15]),t[0]=o*n+u*a,t[1]=s*n+h*a,t[2]=l*n+d*a,t[3]=c*n+f*a,t[4]=u*n-o*a,t[5]=h*n-s*a,t[6]=d*n-l*a,t[7]=f*n-c*a,t}function Q(t,i){return t[0]=i[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=i[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}var ee=function(t,i,r,a,n){var o=1/Math.tan(i/2);if(t[0]=o/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=n&&1/0!==n){var s=1/(a-n);t[10]=(n+a)*s,t[14]=2*n*a*s}else t[10]=-1,t[14]=-2*a;return t},et=function(t,i,r,a,n,o,s){var l=1/(i-r),c=1/(a-n),u=1/(o-s);return t[0]=-2*l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(i+r)*l,t[13]=(n+a)*c,t[14]=(s+o)*u,t[15]=1,t};function ei(t,i){return t[0]===i[0]&&t[1]===i[1]&&t[2]===i[2]&&t[3]===i[3]&&t[4]===i[4]&&t[5]===i[5]&&t[6]===i[6]&&t[7]===i[7]&&t[8]===i[8]&&t[9]===i[9]&&t[10]===i[10]&&t[11]===i[11]&&t[12]===i[12]&&t[13]===i[13]&&t[14]===i[14]&&t[15]===i[15]}function er(t,i){var r=t[0],a=t[1],n=t[2],o=t[3],s=t[4],l=t[5],c=t[6],u=t[7],h=t[8],d=t[9],f=t[10],p=t[11],m=t[12],g=t[13],y=t[14],_=t[15],v=i[0],b=i[1],x=i[2],w=i[3],k=i[4],T=i[5],S=i[6],A=i[7],C=i[8],E=i[9],M=i[10],P=i[11],D=i[12],I=i[13],z=i[14],F=i[15];return Math.abs(r-v)<=1e-6*Math.max(1,Math.abs(r),Math.abs(v))&&Math.abs(a-b)<=1e-6*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(n-x)<=1e-6*Math.max(1,Math.abs(n),Math.abs(x))&&Math.abs(o-w)<=1e-6*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(s-k)<=1e-6*Math.max(1,Math.abs(s),Math.abs(k))&&Math.abs(l-T)<=1e-6*Math.max(1,Math.abs(l),Math.abs(T))&&Math.abs(c-S)<=1e-6*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(u-A)<=1e-6*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(h-C)<=1e-6*Math.max(1,Math.abs(h),Math.abs(C))&&Math.abs(d-E)<=1e-6*Math.max(1,Math.abs(d),Math.abs(E))&&Math.abs(f-M)<=1e-6*Math.max(1,Math.abs(f),Math.abs(M))&&Math.abs(p-P)<=1e-6*Math.max(1,Math.abs(p),Math.abs(P))&&Math.abs(m-D)<=1e-6*Math.max(1,Math.abs(m),Math.abs(D))&&Math.abs(g-I)<=1e-6*Math.max(1,Math.abs(g),Math.abs(I))&&Math.abs(y-z)<=1e-6*Math.max(1,Math.abs(y),Math.abs(z))&&Math.abs(_-F)<=1e-6*Math.max(1,Math.abs(_),Math.abs(F))}function ea(){var t=new j(3);return j!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function en(t){var i=new j(3);return i[0]=t[0],i[1]=t[1],i[2]=t[2],i}function eo(t){var i=t[0],r=t[1],a=t[2];return Math.sqrt(i*i+r*r+a*a)}function es(t,i,r){var a=new j(3);return a[0]=t,a[1]=i,a[2]=r,a}function el(t,i,r){return t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t}function ec(t,i,r){return t[0]=i[0]-r[0],t[1]=i[1]-r[1],t[2]=i[2]-r[2],t}function eu(t,i,r){return t[0]=i[0]*r,t[1]=i[1]*r,t[2]=i[2]*r,t}function eh(t,i,r,a){return t[0]=i[0]+r[0]*a,t[1]=i[1]+r[1]*a,t[2]=i[2]+r[2]*a,t}function ed(t,i){var r=i[0]-t[0],a=i[1]-t[1],n=i[2]-t[2];return Math.sqrt(r*r+a*a+n*n)}function ef(t,i){return t[0]=-i[0],t[1]=-i[1],t[2]=-i[2],t}function ep(t,i){var r=i[0],a=i[1],n=i[2],o=r*r+a*a+n*n;return o>0&&(o=1/Math.sqrt(o)),t[0]=i[0]*o,t[1]=i[1]*o,t[2]=i[2]*o,t}function em(t,i){return t[0]*i[0]+t[1]*i[1]+t[2]*i[2]}function eg(t,i,r){var a=i[0],n=i[1],o=i[2],s=r[0],l=r[1],c=r[2];return t[0]=n*c-o*l,t[1]=o*s-a*c,t[2]=a*l-n*s,t}function ey(t,i,r){var a=i[0],n=i[1],o=i[2],s=r[3]*a+r[7]*n+r[11]*o+r[15];return s||=1,t[0]=(r[0]*a+r[4]*n+r[8]*o+r[12])/s,t[1]=(r[1]*a+r[5]*n+r[9]*o+r[13])/s,t[2]=(r[2]*a+r[6]*n+r[10]*o+r[14])/s,t}function e_(t,i,r){var a=i[0],n=i[1],o=i[2];return t[0]=a*r[0]+n*r[3]+o*r[6],t[1]=a*r[1]+n*r[4]+o*r[7],t[2]=a*r[2]+n*r[5]+o*r[8],t}function ev(t,i,r){var a=r[0],n=r[1],o=r[2],s=r[3],l=i[0],c=i[1],u=i[2],h=n*u-o*c,d=o*l-a*u,f=a*c-n*l;return h+=h,d+=d,f+=f,t[0]=l+s*h+n*f-o*d,t[1]=c+s*d+o*h-a*f,t[2]=u+s*f+a*d-n*h,t}function eb(t,i,r,a){var n=[],o=[];return n[0]=i[0]-r[0],n[1]=i[1]-r[1],n[2]=i[2]-r[2],o[0]=n[0],o[1]=n[1]*Math.cos(a)-n[2]*Math.sin(a),o[2]=n[1]*Math.sin(a)+n[2]*
vendor: 4,560 bytes, line 364
364Math.cos(a),t[0]=o[0]+r[0],t[1]=o[1]+r[1],t[2]=o[2]+r[2],t}function ex(t,i,r,a){var n=[],o=[];return n[0]=i[0]-r[0],n[1]=i[1]-r[1],n[2]=i[2]-r[2],o[0]=n[2]*Math.sin(a)+n[0]*Math.cos(a),o[1]=n[1],o[2]=n[2]*Math.cos(a)-n[0]*Math.sin(a),t[0]=o[0]+r[0],t[1]=o[1]+r[1],t[2]=o[2]+r[2],t}function ew(t,i,r,a){var n=[],o=[];return n[0]=i[0]-r[0],n[1]=i[1]-r[1],n[2]=i[2]-r[2],o[0]=n[0]*Math.cos(a)-n[1]*Math.sin(a),o[1]=n[0]*Math.sin(a)+n[1]*Math.cos(a),o[2]=n[2],t[0]=o[0]+r[0],t[1]=o[1]+r[1],t[2]=o[2]+r[2],t}function ek(t){return t[0]=0,t[1]=0,t[2]=0,t}function eT(t,i,r){return t[0]=i[0]*r,t[1]=i[1]*r,t[2]=i[2]*r,t[3]=i[3]*r,t}function eS(t,i,r){var a=i[0],n=i[1],o=i[2],s=i[3];return t[0]=r[0]*a+r[4]*n+r[8]*o+r[12]*s,t[1]=r[1]*a+r[5]*n+r[9]*o+r[13]*s,t[2]=r[2]*a+r[6]*n+r[10]*o+r[14]*s,t[3]=r[3]*a+r[7]*n+r[11]*o+r[15]*s,t}ea();var eA=function(t,i,r){return t[0]=i[0]*r[0],t[1]=i[1]*r[1],t[2]=i[2]*r[2],t[3]=i[3]*r[3],t};function eC(){var t=new j(4);return j!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function eE(t,i,r){var a=i[0],n=i[1],o=i[2],s=i[3],l=r[0],c=r[1],u=r[2],h=r[3];return t[0]=a*h+s*l+n*u-o*c,t[1]=n*h+s*c+o*l-a*u,t[2]=o*h+s*u+a*c-n*l,t[3]=s*h-a*l-n*c-o*u,t}function eM(t,i,r,a){var n,o,s,l,c=i[0],u=i[1],h=i[2],d=i[3],f=r[0],p=r[1],m=r[2],g=r[3],y=c*f+u*p+h*m+d*g;return y<0&&(y=-y,f=-f,p=-p,m=-m,g=-g),1-y>1e-6?(o=Math.sin(n=Math.acos(y)),s=Math.sin((1-a)*n)/o,l=Math.sin(a*n)/o):(s=1-a,l=a),t[0]=s*c+l*f,t[1]=s*u+l*p,t[2]=s*h+l*m,t[3]=s*d+l*g,t}function eP(t,i,r,a){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"zyx",o=Math.PI/360;i*=o,a*=o,r*=o;var s=Math.sin(i),l=Math.cos(i),c=Math.sin(r),u=Math.cos(r),h=Math.sin(a),d=Math.cos(a);switch(n){case"xyz":t[0]=s*u*d+l*c*h,t[1]=l*c*d-s*u*h,t[2]=l*u*h+s*c*d,t[3]=l*u*d-s*c*h;break;case"xzy":t[0]=s*u*d-l*c*h,t[1]=l*c*d-s*u*h,t[2]=l*u*h+s*c*d,t[3]=l*u*d+s*c*h;break;case"yxz":t[0]=s*u*d+l*c*h,t[1]=l*c*d-s*u*h,t[2]=l*u*h-s*c*d,t[3]=l*u*d+s*c*h;break;case"yzx":t[0]=s*u*d+l*c*h,t[1]=l*c*d+s*u*h,t[2]=l*u*h-s*c*d,t[3]=l*u*d-s*c*h;break;case"zxy":t[0]=s*u*d-l*c*h,t[1]=l*c*d+s*u*h,t[2]=l*u*h+s*c*d,t[3]=l*u*d-s*c*h;break;case"zyx":t[0]=s*u*d-l*c*h,t[1]=l*c*d+s*u*h,t[2]=l*u*h-s*c*d,t[3]=l*u*d+s*c*h;break;default:throw Error("Unknown angle order "+n)}return t}hu=new j(4),j!=Float32Array&&(hu[0]=0,hu[1]=0,hu[2]=0,hu[3]=0);var eD=function(t,i,r,a){var n=new j(4);return n[0]=t,n[1]=i,n[2]=r,n[3]=a,n};function eI(){var t=new j(2);return j!=Float32Array&&(t[0]=0,t[1]=0),t}function ez(t,i){var r=new j(2);return r[0]=t,r[1]=i,r}function eL(t,i,r){return t[0]=i[0]*r,t[1]=i[1]*r,t}function eF(t){var i=t[0],r=t[1];return Math.sqrt(i*i+r*r)}function eR(t){return t[0]=0,t[1]=0,t}ea(),es(1,0,0),es(0,1,0),eC(),eC(),N();var eO=function(t){var i=t[0],r=t[1];return i*i+r*r};function eB(t,i,r){return i*(8192/(t.tileSize*2**(r-t.tileID.overscaledZ)))}function ej(t){return t instanceof Error?t:Error("string"==typeof t?t:String(t))}function eN(){return new Float64Array(4)}function e$(){return new Float64Array(3)}function eV(){return new Float64Array(16)}function eU(){let t=new Float64Array(16);return q(t),t}function eG(){let t=new Float32Array(16);return q(t),t}function eq(t,i,r,a,n=!1){if(!r[0]&&!r[1])return[0,0];let o=n?"map"===a?-t.bearingInRadians:0:"viewport"===a?t.bearingInRadians:0;if(o){let t=Math.sin(o),i=Math.cos(o);r=[r[0]*i-r[1]*t,r[0]*t+r[1]*i]}return[n?r[0]:eB(i,r[0],t.zoom),n?r[1]:eB(i,r[1],t.zoom)]}function eZ(t,i){return t[0]*i[0]+t[1]*i[1]+t[2]*i[2]+t[3]}function eH(t,i,r){var a,n,o,s,l,c,u,h,d,f;let p=(n=(a=[t[0],t[1],t[2],i[0],i[1],i[2],r[0],r[1],r[2]])[0],o=a[1],s=a[2],l=a[3],c=a[4],u=a[5],h=a[6],d=a[7],n*((f=a[8])*c-u*d)+o*(-f*l+u*h)+s*(d*l-c*h));if(0===p)return null;let m=eg([],[i[0],i[1],i[2]],[r[0],r[1],r[2]]),g=eg([],[r[0],r[1],r[2]],[t[0],t[1],t[2]]),y=eg([],[t[0],t[1],t[2]],[i[0],i[1],i[2]]),_=eu([],m,-t[3]);return el(_,_,eu([],g,-i[3])),el(_,_,eu([],y,-r[3])),eu(_,_,1/p),_}function eW(t,i,r){let a=t[0]*r[0]+t[1]*r[1]+t[2]*r[2],n=i[0]*r[0]+i[1]*r[1]+i[2]*r[2];return 0===n?null:(-a-r[3])/n}function eX(t,i,r,a){let n=Math.sqrt(t*t+i*i),o=Math.sqrt(r*r+a*a);t/=n,i/=n;let s=Math.acos(t*(r/=o)+i*(a/=o));return-i*r+t*a>0?s:-s}function eY(t,i){let r=eJ(t,360),a=eJ(i,360),n=a-r,o=a>r?n-360:n+360;return Math.abs(n)<Math.abs(o)?n:o}function eK(t,i){let r=eJ(t,2*Math.PI),a=eJ(i,2*Math.PI);return Math.min(Math.abs(r-a),Math.abs(r-a+2*Math.PI),Math.abs(r-a-2*Math.PI))}function eJ(t,i){return(t%i+i)%i}function eQ(t,i,r,a,n){return e1(a,n,e4((t-i)/(r-i),0,1))}function e1(t,i,r){return t*(1-r)+i*r}function e0(t){let i=1/0,r=1/0,a=-1/0,n=-1/0;
364for(let o of t)i=Math.min(i,o.x),r=Math.min(r,o.y),a=Math.max(a,o.x),n=Math.max(n,o.y);return[i,r,a,n]}function e2(t){if(!t.length)return new Set;let i=Math.max(...t.map(t=>t.canonical.z)),r=1/0,a=-1/0,n=1/0,o=-1/0,s=[];for(let l of t){let{x:t,y:c,z:u}=l.canonical,h=2**(i-u),d=t*h,f=c*h;s.push({id:l,x:d,y:f}),d<r&&(r=d),d>a&&(a=d),f<n&&(n=f),f>o&&(o=f)}let l=new Set;for(let t of s)(t.x===r||t.x===a||t.y===n||t.y===o)&&l.add(t.id);return l}function e3(t,i,r,a){let n,o,s,l,c,u;return n=3*t,o=3*(r-t)-n,s=1-n-o,l=3*i,c=3*(a-i)-l,u=1-l-c,function(t,i=1e-6){if(t<=0)return 0;if(t>=1)return 1;let r=t;for(let a=0;a<8;a++){let a=((s*r+o)*r+n)*r-t;if(Math.abs(a)<i)return((u*r+c)*r+l)*r;let h=(3*s*r+2*o)*r+n;if(1e-6>Math.abs(h))break;r-=a/h}let a=0,h=1;r=t;for(let l=0;l<20;l++){let l=((s*r+o)*r+n)*r;if(Math.abs(l-t)<i)break;t>l?a=r:h=r,r=(a+h)*.5}return((u*r+c)*r+l)*r}}eI();let e5=e3(.25,.1,.25,1);function e4(t,i,r){return Math.min(r,Math.max(i,t))}function e6(t,i,r){let a=r-i,n=((t-i)%a+a)%a+i;return n===i?r:n}function e8(t,...i){for(let r of i)for(let i in r)t[i]=r[i];return t}function e7(t,i){let r={};for(let a of i)a in t&&(r[a]=t[a]);return r}let e9=1;function te(){return e9++}function tt(t){return t<=1?1:2**Math.ceil(Math.log(t)/Math.LN2)}function ti(t){return 2**t}function tr(t){return Math.log(t)/Math.LN2}function ta(t,i,r){if(i<=0)return t;let a=1/i;return void 0===r||1e-10>Math.abs(r)?Math.round(t*a)/a:(r>0?Math.ceil(t*a-1e-9):Math.floor(t*a+1e-10))/a}function tn(t,i,r){let a={};for(let n in t)a[n]=i.call(r||this,t[n],n,t);return a}function to(t,i,r){let a={};for(let n in t)i.call(r||this,t[n],n,t)&&(a[n]=t[n]);return a}function ts(t,i){if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(let r=0;r<t.length;r++)if(!ts(t[r],i[r]))return!1;return!0}if("object"==typeof t&&t&&null!==i){if("object"!=typeof i||Object.keys(t).length!==Object.keys(i).length)return!1;for(let r in t)if(!ts(t[r],i[r]))return!1;return!0}return t===i}function tl(t){return Array.isArray(t)?t.map(tl):"object"==typeof t&&t?tn(t,tl):t}let tc={};function tu(t){tc[t]||("u">typeof console&&console.warn(t),tc[t]=!0)}function th(t,i,r){return(r.y-t.y)*(i.x-t.x)>(i.y-t.y)*(r.x-t.x)}function td(t,i,r,a){let n=i.y-t.y,o=i.x-t.x,s=a.y-r.y,l=a.x-r.x,c=s*o-l*n;if(0===c)return null;let u=(l*(t.y-r.y)-s*(t.x-r.x))/c;return new R(t.x+u*o,t.y+u*n)}function tf([t,i,r]){return i+=90,[t*Math.cos(i*=Math.PI/180)*Math.sin(r*=Math.PI/180),t*Math.sin(i)*Math.sin(r),t*Math.cos(r)]}function tp(t){return"u">typeof WorkerGlobalScope&&void 0!==t&&t instanceof WorkerGlobalScope}function tm(t){let i={};if(t.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(t,r,a,n)=>{let o=a||n;return i[r]=!o||o.toLowerCase(),""}),i["max-age"]){let t=parseInt(i["max-age"],10);isNaN(t)?delete i["max-age"]:i["max-age"]=t}return i}let tg=null;function ty(t){if(null==tg){let i=t.navigator?t.navigator.userAgent:null;tg=!!t.safari||!!(i&&(/\b(iPad|iPhone|iPod)\b/.test(i)||i.match("Safari")&&!i.match("Chrome")))}return tg}function t_(t){return"u">typeof ImageBitmap&&t instanceof ImageBitmap}let tv=async(t,i)=>{let r=new Blob([new Uint8Array(t)],{type:"image/png"});try{return createImageBitmap(r,i)}catch(t){throw Error(`Could not load image because of ${ej(t).message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}};async function tb(t,i,r,a,n){if(typeof VideoFrame>"u")throw Error("VideoFrame not supported");let o=new VideoFrame(t,{timestamp:0});try{let s,l,c,u=o?.format;if(!u||!(u.startsWith("BGR")||u.startsWith("RGB")))throw Error(`Unrecognized format ${u}`);let h=u.startsWith("BGR"),d=new Uint8ClampedArray(a*n*4);if(await o.copyTo(d,(s=(Math.max(0,r)-r)*a*4+4*Math.max(-i,0),l=Math.max(0,i),c=Math.max(0,r),{rect:{x:l,y:c,width:Math.min(t.width,i+a)-l,height:Math.min(t.height,r+n)-c},layout:[{offset:s,stride:4*a}]})),h)for(let t=0;t<d.length;t+=4){let i=d[t];d[t]=d[t+2],d[t+2]=i}return d}finally{o.close()}}function tx(t,i,r,a){return t.addEventListener(i,r,a),{unsubscribe:()=>{t.removeEventListener(i,r,a)}}}function tw(t){return t*Math.PI/180}function tk(t){return t/Math.PI*180}function tT(t,i){return t.roll==i.roll&&t.pitch==i.pitch&&t.bearing==i.bearing}function tS(t){var i,r,a,n,o,s,l,c,u,h,d,f,p,m,g,y;let _=new Float64Array(9);i=t[0],r=t[1],a=t[2],n=t[3],o=i+i,s=r+r,l=a+a,c=i*o,u=r*o,h=r*s,d=a*o,f=a*s,p=a*l,m=n*o,g=n*s,y=n*l,_[0]=1-h-p,_[3]=u-y,_[6]=d+g,_[1]=u+y,_[4]=1-c-p,_[7]=f-m,_[2]=d-g,_[5]=f+m,_[8]=1-c-h;let v=tk(-Math.asin(e4(_[2],-1,1))),b,x;return .001>Math.hypot(_[5],_[8])?(b=0,x=-tk(Math.atan2(_[3],_[4]))):(b=tk(0===_[5]&&0===_[8]?0:Math.atan2(_[5],_[8])),x=tk(0===_[1]&&0===_[0]?0:Math.atan2(_[1],_[0]))),{roll:b,pitch:v+90,bearing:x}}function tA(t,i,r){let a=ez(i.x-r.x,i.y-r.y),n=ez(t.x-r.x,t.y-r.y);return tk(Math.atan2(a[0]*n[1]-a[1]*n[0],a[0]*n[0]+a[1]*n[1]))}function tC(t,i,r){let a=new Float64Array(4);return eP(a,t,i-90,r),a}let tE={touchstart:!0,touchmove:!0,touchmoveWindow:!0,touchend:!0,touchcancel:!0}
364,tM={dblclick:!0,click:!0,mouseover:!0,mouseout:!0,mousedown:!0,mousemove:!0,mousemoveWindow:!0,mouseup:!0,mouseupWindow:!0,contextmenu:!0,wheel:!0};function tP(t,i){return tE[i]&&"touches"in t}function tD(t,i){if(!tM[i])return!1;let r=t?.target?.ownerDocument?.defaultView||window;return t instanceof r.MouseEvent||t instanceof r.WheelEvent}function tI(t){return tE[t]||tM[t]}let tz="AbortError";var tL=class extends Error{constructor(t=tz){super(t instanceof Error?t.message:t),this.name=tz,t instanceof Error&&t.stack&&(this.stack=t.stack)}};function tF(t){return t instanceof Error&&"AbortError"===t.name}function tR(t){if(t.aborted)throw new tL(t.reason)}let tO={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};function tB(t){return tO.REGISTERED_PROTOCOLS[t.substring(0,t.indexOf("://"))]}function tj(t,i){tO.REGISTERED_PROTOCOLS[t]=i}let tN="global-dispatcher";var t$=class extends Error{constructor(t,i,r,a){super(`AJAXError: ${i} (${t}): ${r}`),this.status=t,this.statusText=i,this.url=r,this.body=a}};function tV(){if(tp(self))return self.worker?.referrer;if("blob:"===window.location.protocol)try{return window.parent.location.href}catch{}return window.location.href}async function tU(t,i){let r,a,n=new Request(t.url,{method:t.method||"GET",body:t.body,credentials:t.credentials,headers:t.headers,cache:t.cache,referrer:tV(),referrerPolicy:t.referrerPolicy,signal:i.signal});"json"!==t.type||n.headers.has("Accept")||n.headers.set("Accept","application/json");try{r=await fetch(n)}catch(i){throw tF(i)?i:new t$(0,ej(i).message,t.url,new Blob)}if(!r.ok){let i=await r.blob();throw new t$(r.status,r.statusText,t.url,i)}a="arrayBuffer"===t.type||"image"===t.type?r.arrayBuffer():"json"===t.type?r.json():r.text();let o=await a;return tR(i.signal),{data:o,cacheControl:r.headers.get("Cache-Control"),expires:r.headers.get("Expires"),etag:r.headers.get("ETag")}}let tG=async function(t,i){let r;if(t.url.includes("://")&&!/^https?:|^file:/.test(t.url)){let r=tB(t.url);if(r){let a=await r(t,i);return a.data||"arrayBuffer"!==t.type?a:e8(a,{data:new ArrayBuffer(0)})}if(tp(self)&&self.worker?.actor)return self.worker.actor.sendAsync({type:"GR",data:t,targetMapId:tN},i)}if(!((r=t.url).startsWith("file:")||tV()?.startsWith("file:")&&!/^\w+:/.test(r))){if(fetch&&Request&&AbortController&&Object.hasOwn(Request.prototype,"signal"))return tU(t,i);if(tp(self)&&self.worker?.actor)return self.worker.actor.sendAsync({type:"GR",data:t,mustQueue:!0,targetMapId:tN},i)}return new Promise((r,a)=>{let n=new XMLHttpRequest;for(let i in n.open(t.method||"GET",t.url,!0),("arrayBuffer"===t.type||"image"===t.type)&&(n.responseType="arraybuffer"),t.headers)n.setRequestHeader(i,t.headers[i]);"json"===t.type&&(n.responseType="text",t.headers?.Accept||n.setRequestHeader("Accept","application/json")),n.withCredentials="include"===t.credentials,n.onerror=()=>{a(Error(n.statusText))},n.onload=()=>{if(!i.signal.aborted)if((n.status>=200&&n.status<300||0===n.status)&&null!==n.response){let i=n.response;if("json"===t.type)try{i=JSON.parse(n.response)}catch(t){a(t);return}r({data:i,cacheControl:n.getResponseHeader("Cache-Control"),expires:n.getResponseHeader("Expires"),etag:n.getResponseHeader("ETag")})}else{let i=new Blob([n.response],{type:n.getResponseHeader("Content-Type")});a(new t$(n.status,n.statusText,t.url,i))}},i.signal.addEventListener("abort",()=>{n.abort(),a(new tL(i.signal.reason))}),n.send(t.body)})};function tq(t){if(!t||t.startsWith("data:image/"))return!0;if(t.startsWith("blob:")&&(t=t.slice(5)).startsWith("null"))return!1;if(0>=t.indexOf("://"))return!0;let i=new URL(t),r=window.location;return i.protocol===r.protocol&&i.host===r.host}function tZ(t,i,r){r[t]?.includes(i)||(r[t]||=[],r[t].push(i))}function tH(t,i,r){if(r?.[t]){let a=r[t].indexOf(i);-1!==a&&r[t].splice(a,1)}}var tW=class{constructor(t,i={}){e8(this,i),this.type=t}},tX=class extends tW{constructor(t,i={}){super("error",e8({error:t},i))}},tY=class{on(t,i){return this._listeners||={},tZ(t,i,this._listeners),{unsubscribe:()=>{this.off(t,i)}}}off(t,i){return tH(t,i,this._listeners),tH(t,i,this._oneTimeListeners),this}once(t,i){return i?(this._oneTimeListeners||={},tZ(t,i,this._oneTimeListeners),this):new Promise(i=>this.once(t,i))}fire(t,i){let r="string"==typeof t?new tW(t,i||{}):t,a=r.type;if(this.listens(a)){for(let t of(r.target=this,this._listeners?.[a]?.slice()??[]))t.call(this,r);for(let t of this._oneTimeListeners?.[a]?.slice()??[])tH(a,t,this._oneTimeListeners),t.call(this,r);let t=this._eventedParent;t&&(e8(r,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),t.fire(r))}else r instanceof tX&&console.error(r.error);return this}listens(t){return!!(this._listeners?.[t]?.length||this._oneTimeListeners?.[t]?.length||this._eventedParent?.listens(t))}setEventedParent(t,i){return this._eventedParent=t,this._eventedParentData=i,this}},tK
vendor: 34,761 bytes, line 364
364={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number",length:2},centerAltitude:{type:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},roll:{type:"number",default:0,units:"degrees"},state:{type:"state",default:{}},light:{type:"light"},sky:{type:"sky"},projection:{type:"projection"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},"font-faces":{type:"fontFaces"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},encoding:{type:"enum",values:{mvt:{},mlt:{}},default:"mvt"},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"filter"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},"color-relief":{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_color-relief","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"},"fill-extrusion-rounded-corner-distance":{type:"number",default:0,minimum:0,units:"meters","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-height-offset":{type:"number",default:0,units:"meters",requires:[{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-height-anchor":{type:"enum",values:{ground:{},absolute:{}},default:"ground",requires:["symbol-height-offset"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},"layout_color-relief":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible",expression:{interpolated:!1,parameters:["global-state"]},"property-type":"data-constant"}},filter:{type:"boolean",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"expression_name",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-ground-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-fog-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"sky-horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"atmosphere-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},projection:{type:{type:"projectionDefinition",default:"mercator","property-type":"data-constant",transition:!1,expression:{interpolated:!0,parameters:["zoom"]}}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_color-relief","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"fill-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-layer-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","global-state"]},"property-type":"data-constant"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"numberArray",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-altitude":{type:"numberArray",default:45,minimum:0,maximum:90,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"colorArray",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"colorArray",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-method":{type:"enum",values:{standard:{},basic:{},combined:{},igor:{},multidirectional:{}},default:"standard",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",transition:!1,expression:{interpolated:!0,parameters:["elevation"]},"property-type":"color-ramp"},resampling:{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}},interpolation:{type:"array",value:"interpolation_name",minimum:1},interpolation_name:{type:"enum",values:{linear:{syntax:{overloads:[{parameters:[],"output-type":"interpolation"}],parameters:[]}},exponential:{syntax:{overloads:[{parameters:["base"],"output-type":"interpolation"}],parameters:[{name:"base",type:"number literal"}]}},"cubic-bezier":{syntax:{overloads:[{parameters:["x1","y1","x2","y2"],"output-type":"interpolation"}],parameters:[{name:"x1",type:"number literal"},{name:"y1",type:"number literal"},{name:"x2",type:"number literal"},{name:"y2",type:"number literal"}]}}}}},
364tJ=class{constructor(t,i,r,a,n="error"){this.message=(t?`${t}: `:"")+r,a&&(this.identifier=a),this.severity=n,null!=i&&i.__line__&&(this.line=i.__line__)}};let tQ={kind:"null"},t1={kind:"number"},t0={kind:"string"},t2={kind:"boolean"},t3={kind:"color"},t5={kind:"projectionDefinition"},t4={kind:"object"},t6={kind:"value"},t8={kind:"collator"},t7={kind:"formatted"},t9={kind:"padding"},ie={kind:"colorArray"},it={kind:"numberArray"},ii={kind:"resolvedImage"},ir={kind:"variableAnchorOffsetCollection"};function ia(t,i){return{kind:"array",itemType:t,N:i}}function io(t){if("array"===t.kind){let i=io(t.itemType);return"number"==typeof t.N?`array<${i}, ${t.N}>`:"value"===t.itemType.kind?"array":`array<${i}>`}return t.kind}let is=[tQ,t1,t0,t2,t3,t5,t7,t4,ia(t6),t9,it,ie,ii,ir];function il(t,i){if("error"===i.kind)return null;if("array"===t.kind){if("array"===i.kind&&(0===i.N&&"value"===i.itemType.kind||!il(t.itemType,i.itemType))&&("number"!=typeof t.N||t.N===i.N))return null}else if(t.kind===i.kind)return null;else if("value"===t.kind){for(let t of is)if(!il(t,i))return null}return`Expected ${io(t)} but found ${io(i)} instead.`}function ic(t,i){return i.some(i=>i.kind===t.kind)}function iu(t,i){return i.some(i=>"null"===i?null===t:"array"===i?Array.isArray(t):"object"===i?t&&!Array.isArray(t)&&"object"==typeof t:i===typeof t)}function ih(t,i){return"array"===t.kind&&"array"===i.kind?t.itemType.kind===i.itemType.kind&&"number"==typeof t.N:t.kind===i.kind}let id=4/29,ip=6/29,im=6/29*3*(6/29),ig=Math.PI/180,iy=180/Math.PI;function i_(t){return(t%=360)<0&&(t+=360),t}function iv([t,i,r,a]){t=ib(t);let n,o,s=ix((.2225045*t+.7168786*(i=ib(i))+.0606169*(r=ib(r)))/1);t===i&&i===r?n=o=s:(n=ix((.4360747*t+.3850649*i+.1430804*r)/.96422),o=ix((.0139322*t+.0971045*i+.7141733*r)/.82521
vendor: 13,829 bytes, line 364
364));let l=116*s-16;return[l<0?0:l,500*(n-s),200*(s-o),a]}function ib(t){return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function ix(t){return t>.008856451679035631?t**(1/3):t/im+id}function iw([t,i,r,a]){let n=(t+16)/116,o=isNaN(i)?n:n+i/500,s=isNaN(r)?n:n-r/200;return n=+iT(n),[ik(3.1338561*(o=.96422*iT(o))-1.6168667*n-.4906146*(s=.82521*iT(s))),ik(-.9787684*o+1.9161415*n+.033454*s),ik(.0719453*o-.2289914*n+1.4052427*s),a]}function ik(t){return(t=t<=.00304?12.92*t:1.055*t**(1/2.4)-.055)<0?0:t>1?1:t}function iT(t){return t>ip?t*t*t:im*(t-id)}let iS=Object.hasOwn||function(t,i){return Object.prototype.hasOwnProperty.call(t,i)};function iA(t,i){return iS(t,i)?t[i]:void 0}function iC(t){return parseInt(t.padEnd(2,t),16)/255}function iE(t,i){return iM(i?t/100:t,0,1)}function iM(t,i,r){return Math.min(Math.max(i,t),r)}function iP(t){return!t.some(Number.isNaN)}let iD={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};function iI(t,i,r){return t.map((t,a)=>t+r*(i[a]-t))}var iz=class t{constructor(t,i,r,a=1,n=!0){this.r=t,this.g=i,this.b=r,this.a=a,n||(this.r*=a,this.g*=a,this.b*=a,a||this.overwriteGetter("rgb",[t,i,r,a]))}static{this.black=new t(0,0,0,1)}static{this.white=new t(1,1,1,1)}static{this.transparent=new t(0,0,0,0)}static{this.red=new t(1,0,0,1)}static parse(i){if(i instanceof t)return i;if("string"!=typeof i)return;let r=function(t){if("transparent"===(t=t.toLowerCase().trim()))return[0,0,0,0];let i=iA(iD,t);if(i){let[t,r,a]=i;return[t/255,r/255,a/255,1]}if(t.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(t)){let i=t.length<6?1:2,r=1;return[iC(t.slice(r,r+=i)),iC(t.slice(r,r+=i)),iC(t.slice(r,r+=i)),iC(t.slice(r,r+i)||"ff")]}if(t.startsWith("rgb")){let i=t.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(i){let[t,r,a,n,o,s,l,c,u,h,d,f]=i,p=[n||" ",l||" ",h].join("");if("  "===p||"  /"===p||",,"===p||",,,"===p){let t=[a,s,u].join(""),i="%%%"===t?100:255*(""===t);if(i){let t=[iM(r/i,0,1),iM(o/i,0,1),iM(c/i,0,1),d?iE(+d,f):1];if(iP(t))return t}}return}}let r=t.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(r){let[t,i,a,n,o,s,l,c,u]=r,h=[a||" ",o||" ",l].join("");if("  "===h||"  /"===h||",,"===h||",,,"===h){let t=[+i,iM(+n,0,100),iM(+s,0,100),c?iE(+c,u):1];if(iP(t))return function([t,i,r,a]){function n(a){let n=(a+t/30)%12,o=i*Math.min(r,1-r);return r-o*Math.max(-1,Math.min(n-3,9-n,1))}return t=i_(t),i/=100,r/=100,[n(0),n(8),n(4),a]}(t)}}}(i);if(r)return new t(...r,!1)}get rgb(){let{r:t,g:i,b:r,a:a}=this,n=a||1/0;return this.overwriteGetter("rgb",[t/n,i/n,r/n,a])}get hcl(){return this.overwriteGetter("hcl",function(t){let[i,r,a,n]=iv(t),o=Math.sqrt(r*r+a*a);return[Math.round(1e4*o)?i_(Math.atan2(a,r)*iy):0/0,o,i,n]}(this.rgb))}get lab(){return this.overwriteGetter("lab",iv(this.rgb))}overwriteGetter(t,i){return Object.defineProperty(this,t,{value:i}),i}toString(){let[t,i,r,a]=this.rgb;return`rgba(${[t,i,r].map(t=>Math.round(255*t)).join(",")},${a})`}static interpolate(i,r,a,n="rgb"){switch(n){case"rgb":{let[n,o,s,l]=iI(i.rgb,r.rgb,a);return new t(n,o,s,l,!1)}case"hcl":{let[n,o,s,l]=i.hcl,[c,u,h,d]=r.hcl,f,p;if(isNaN(n)||isNaN(c))isNaN(n)?isNaN(c)?f=0/0:(f=c,(1===s||0===s)&&(p=u)):(f=n,(1===h||0===h)&&(p=o));else{let t=c-n;c>n&&t>180?t-=360:c<n&&n-c>180&&(t+=360),f=n+a*t}let[m,g,y,_]=function([t,i,r,a]){return iw([r,Math.cos(t=isNaN(t)?0:t*ig)*i,Math.sin(t)*i,a])}([f,p??o+a*(u-o),s+a*(h-s),l+a*(d-l)]);return new t(m,g,y,_,!1)}case"lab":{let[n,o,s,l]=iw(iI(i.lab,r.lab,a));return new t(n,o,s,l,!1)}}}};let iL=["bottom","center","top"];var iF=class{constructor(t,i,r,a,n,o){this.text=t,this.image=i,this.scale=r,this.fontStack=a,this.textColor=n,this.verticalAlign=o}},iR=class t{constructor(t){this.sections=t}static fromString(i){return new t([new iF(i,null,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some(t=>0!==t.text.length||t.image&&0!==t.image.name.length)}static factory(i){return i instanceof t?i:t.fromString(i)}toString(){return 0===this.sections.length?"":this.sections.map(t=>t.text).join("")}},iO=class t{constructor(t){this.values=t.slice()}static parse(i){if(i instanceof t)return i;if("number"==typeof i)return new t([i,i,i,i]);if(Array.isArray(i)&&!(i.length<1||i.length>4)){for(let t of i)if("number"!=typeof t)return;switch(i.length){case 1:i=[i[0],i[0],i[0],i[0]];break;case 2:i=[i[0],i[1],i[0],i[1]];break;case 3:i=[i[0],i[1],i[2],i[1]]}return new t(i)}}toString(){return JSON.stringify(this.values)}static interpolate(i,r,a){return new t(iI(i.values,r.values,a))}},iB=class t{constructor(t){this.values=t.slice()}static parse(i){if(i instanceof t)return i;if("number"==typeof i)return new t([i]);if(Array.isArray(i)){for(let t of i)if("number"!=typeof t)return;return new t(i)}}toString(){return JSON.stringify(this.values)}static interpolate(i,r,a){return new t(iI(i.values,r.values,a))}},ij=class t{constructor(t){this.values=t.slice()}static parse(i){if(i instanceof t)return i;if("string"==typeof i){let r=iz.parse(i);return r?new t([r]):void 0}if(!Array.isArray(i))return;let r=[];for(let t of i){if("string"!=typeof t)return;let i=iz.parse(t);if(!i)return;r.push(i)}return new t(r)}toString(){return JSON.stringify(this.values)}static interpolate(i,r,a,n="rgb"){let o=[];if(i.values.length!=r.values.length)throw Error(`colorArray: Arrays have mismatched length (${i.values.length} vs. ${r.values.length}), cannot interpolate.`);for(let t=0;t<i.values.length;t++)o.push(iz.interpolate(i.values[t],r.values[t],a,n));return new t(o)}},iN=class extends Error{constructor(t,i){super(t),this.name="RuntimeError",this.path=i}toJSON(){return this.message}};let i$=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);var iV=class t{constructor(t){this.values=t.slice()}static parse(i){if(i instanceof t)return i;if(!(!Array.isArray(i)||i.length<1||i.length%2!=0)){for(let t=0;t<i.length;t+=2){let r=i[t],a=i[t+1];if("string"!=typeof r||!i$.has(r)||!Array.isArray(a)||2!==a.length||"number"!=typeof a[0]||"number"!=typeof a[1])return}return new t(i)}}toString(){return JSON.stringify(this.values)}static interpolate(i,r,a,n){let o=i.values,s=r.values;if(o.length!==s.length)throw new iN(`Cannot interpolate values of different length. from: ${i.toString()}, to: ${r.toString()}`,n);let l=[];for(let t=0;t<o.length;t+=2){if(o[t]!==s[t])throw new iN(`Cannot interpolate values containing mismatched anchors. from[${t}]: ${o[t]}, to[${t}]: ${s[t]}`,n);l.push(o[t]);let[i,r]=o[t+1],[c,u]=s[t+1];l.push([i+a*(c-i),r+a*(u-r)])}return new t(l)}},iU=class t{constructor(t){this.name=t.name,this.available=t.available}toString(){return this.name}static fromString(i){return i?new t({name:i,available:!1}):null}},iG=class t{constructor(t,i,r){this.from=t,this.to=i,this.transition=r}toString(){return this.from===this.to&&1===this.transition?this.from:JSON.stringify([this.from,this.to,this.transition])}static interpolate(i,r,a){return new t(i,r,a)}static parse(i){return i instanceof t?i:Array.isArray(i)&&3===i.length&&"string"==typeof i[0]&&"string"==typeof i[1]&&"number"==typeof i[2]?new t(i[0],i[1],i[2]):"object"==typeof i&&"string"==typeof i.from&&"string"==typeof i.to&&"number"==typeof i.transition?new t(i.from,i.to,i.transition):"string"==typeof i?new t(i,i,1):void 0}},iq=class{constructor(t,i,r){this.sensitivity=t?i?"variant":"case":i?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(t,i){return this.collator.compare(t,i)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}};function iZ(t,i,r,a){return"number"==typeof t&&t>=0&&t<=255&&"number"==typeof i&&i>=0&&i<=255&&"number"==typeof r&&r>=0&&r<=255?void 0===a||"number"==typeof a&&a>=0&&a<=1?null:`Invalid rgba value [${[t,i,r,a].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof a?[t,i,r,a]:[t,i,r]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function iH(t){if(null===t||"string"==typeof t||"boolean"==typeof t||"number"==typeof t||t instanceof iG||t instanceof iz||t instanceof iq||t instanceof iR||t instanceof iO||t instanceof iB||t instanceof ij||t instanceof iV||t instanceof iU)return!0;if(Array.isArray(t)){for(let i of t)if(!iH(i))return!1;return!0}if("object"==typeof t){for(let i in t)if(!iH(t[i]))return!1;return!0}return!1}function iW(t){if(null===t)return tQ;if("string"==typeof t)return t0;if("boolean"==typeof t)return t2;if("number"==typeof t)return t1;if(t instanceof iz)return t3;if(t instanceof iG)return t5;if(t instanceof iq)return t8;if(t instanceof iR)return t7;if(t instanceof iO)return t9;if(t instanceof iB)return it;if(t instanceof ij)return ie;if(t instanceof iV)return ir;if(t instanceof iU)return ii;if(Array.isArray(t)){let i=t.length,r;for(let i of t){let t=iW(i);if(r){if(r===t)continue;r=t6;break}r=t}return ia(r||t6,i)}return t4}function iX(t){let i=typeof t;return null===t?"":"string"===i||"number"===i||"boolean"===i?String(t):t instanceof iz||t instanceof iG||t instanceof iR||t instanceof iO||t instanceof iB||t instanceof ij||t instanceof iV||t instanceof iU?t.toString():JSON.stringify(t)}var iY=class t{constructor(t,i){this.type=t,this.value=i}static parse(i,r){if(2!==i.length)return r.error(`'literal' expression requires exactly one argument, but found ${i.length-1} instead.`);if(!iH(i[1]))return r.error(`invalid value of type "${typeof i[1]}"`);let a=i[1],n=iW(a),o=r.expectedType;return"array"===n.kind&&0===n.N&&o&&"array"===o.kind&&("number"!=typeof o.N||0===o.N)&&(n=o),new t(n,a)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}};let iK=["Unknown","Point","LineString","Polygon"];var iJ=class{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache=new Map,this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?iK[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(t){let i=this._parseColorCache.get(t);
364return i||(i=iz.parse(t),this._parseColorCache.set(t,i)),i}};function iQ(t,i,r){let a=t.length-1,n=0,o=a,s=0,l,c;for(;n<=o;)if(l=t[s=Math.floor((n+o)/2)],c=t[s+1],l<=i){if(s===a||i<c)return s;n=s+1}else if(l>i)o=s-1;else throw new iN("Input is not a number.",r);return 0}var i1=class t{constructor(t,i,r,a){for(let[n,o]of(this.type=t,this.input=i,this.key=a,this.labels=[],this.outputs=[],r))this.labels.push(n),this.outputs.push(o)}static parse(i,r){if(i.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${i.length-1}.`);if((i.length-1)%2!=0)return r.error("Expected an even number of arguments.");let a=r.parse(i[1],1,t1);if(!a)return null;let n=[],o=null;r.expectedType&&"value"!==r.expectedType.kind&&(o=r.expectedType);for(let t=1;t<i.length;t+=2){let a=1===t?-1/0:i[t],s=i[t+1],l=t,c=t+1;if("number"!=typeof a)return r.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(n.length&&n[n.length-1][0]>=a)return r.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',l);let u=r.parse(s,c,o);if(!u)return null;o||=u.type,n.push([a,u])}return new t(o,a,n,r.key)}evaluate(t){let i=this.labels,r=this.outputs;if(1===i.length)return r[0].evaluate(t);let a=this.input.evaluate(t);if(a<=i[0])return r[0].evaluate(t);let n=i.length;return a>=i[n-1]?r[n-1].evaluate(t):r[iQ(i,a,this.key)].evaluate(t)}eachChild(t){for(let i of(t(this.input),this.outputs))t(i)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}},i0=class t{constructor(t,i,r,a,n,o){for(let[s,l]of(this.type=t,this.operator=i,this.interpolation=r,this.input=a,this.key=o,this.labels=[],this.outputs=[],n))this.labels.push(s),this.outputs.push(l)}static interpolationFactor(t,i,r,a){let n=0;if("exponential"===t.name)n=i2(i,t.base,r,a);else if("linear"===t.name)n=i2(i,1,r,a);else if("cubic-bezier"===t.name){var o,s,l,c;let u,h,d,f,p,m,g=t.controlPoints;n=(o=g[0],s=g[1],l=g[2],c=g[3],u=3*o,h=3*(l-o)-u,d=1-u-h,f=3*s,p=3*(c-s)-f,m=1-f-p,function(t,i=1e-6){if(t<=0)return 0;if(t>=1)return 1;let r=t;for(let a=0;a<8;a++){let a=((d*r+h)*r+u)*r-t;if(Math.abs(a)<i)return((m*r+p)*r+f)*r;let n=(3*d*r+2*h)*r+u;if(1e-6>Math.abs(n))break;r-=a/n}let a=0,n=1;r=t;for(let o=0;o<20;o++){let o=((d*r+h)*r+u)*r;if(Math.abs(o-t)<i)break;t>o?a=r:n=r,r=(a+n)*.5}return((m*r+p)*r+f)*r})(i2(i,1,r,a))}return n}static parse(i,r){let[a,n,o,...s]=i;if(!Array.isArray(n)||0===n.length)return r.error("Expected an interpolation type expression.",1);if("linear"===n[0])n={name:"linear"};else if("exponential"===n[0]){let t=n[1];if("number"!=typeof t)return r.error("Exponential interpolation requires a numeric base.",1,1);n={name:"exponential",base:t}}else{if("cubic-bezier"!==n[0])return r.error(`Unknown interpolation type ${String(n[0])}`,1,0);let t=n.slice(1);if(4!==t.length||t.some(t=>"number"!=typeof t||t<0||t>1))return r.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);n={name:"cubic-bezier",controlPoints:t}}if(i.length-1<4)return r.error(`Expected at least 4 arguments, but found only ${i.length-1}.`);if((i.length-1)%2!=0)return r.error("Expected an even number of arguments.");if(!(o=r.parse(o,2,t1)))return null;let l=[],c=null;("interpolate-hcl"===a||"interpolate-lab"===a)&&r.expectedType!=ie?c=t3:r.expectedType&&"value"!==r.expectedType.kind&&(c=r.expectedType);for(let t=0;t<s.length;t+=2){let i=s[t],a=s[t+1],n=t+3,o=t+4;if("number"!=typeof i)return r.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',n);if(l.length&&l[l.length-1][0]>=i)return r.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',n);let u=r.parse(a,o,c);if(!u)return null;c||=u.type,l.push([i,u])}return ih(c,t1)||ih(c,t5)||ih(c,t3)||ih(c,t9)||ih(c,it)||ih(c,ie)||ih(c,ir)||ih(c,ia(t1))?new t(c,a,n,o,l,r.key):r.error(`Type ${io(c)} is not interpolatable.`)}evaluate(i){let r=this.labels,a=this.outputs;if(1===r.length)return a[0].evaluate(i);let n=this.input.evaluate(i);if(n<=r[0])return a[0].evaluate(i);let o=r.length;if(n>=r[o-1])return a[o-1].evaluate(i);let s=iQ(r,n,this.key),l=r[s],c=r[s+1],u=t.interpolationFactor(this.interpolation,n,l,c),h=a[s].evaluate(i),d=a[s+1].evaluate(i);switch(this.operator){case"interpolate":switch(this.type.kind){case"number":return h+u*(d-h);case"color":return iz.interpolate(h,d,u);case"padding":return iO.interpolate(h,d,u);case"colorArray":return ij.interpolate(h,d,u);case"numberArray":return iB.interpolate(h,d,u);case"variableAnchorOffsetCollection":return iV.interpolate(h,d,u,this.key);case"array":return iI(h,d,u);case"projectionDefinition":return iG.interpolate(h,d,u)}case"interpolate-hcl":switch(this.type.kind){case"color":return iz.interpolate(h,d,u,"hcl");case"colorArray":return ij.interpolate(h,d,u,"hcl")}case"interpolate-lab":switch(this.type.kind){case"color":return iz.interpolate(h,d,u,"lab");case"colorArray":return ij.interpolate(h,d,u,"lab")}}}eachChild(t){for(let i of(t(this.input),this.outputs))t(i)}outputDefined(){return this.outputs.every(t=>t.outputDefined())}};function i2(t,i,r,a){let n=a-r,o=t-r;return 0===n?0:1===i?o/n:(i**o-1)/(i**n-1)}let i3={color:iz.interpolate,number:function(t,i,r){return t+r*(i-t)},padding:iO.interpolate,numberArray:iB.interpolate,colorArray:ij.interpolate,variableAnchorOffsetCollection:iV.interpolate,array:iI};var i5=class t{constructor(t){this.type=t7,this.sections=t}static parse(i,r){if(i.length<2)return r.error("Expected at least one argument.");let a=i[1];if(!Array.isArray(a)&&"object"==typeof a)return r.error("First argument must be an image or text section.");let n=[],o=!1;for(let t=1;t<=i.length-1;++t){let a=i[t];if(o&&"object"==typeof a&&!Array.isArray(a)){o=!1;let t=null;if(a["font-scale"]&&!(t=r.parse(a["font-scale"],1,t1)))return null;let i=null;if(a["text-font"]&&!(i=r.parse(a["text-font"],1,ia(t0))))return null;let s=null;if(a["text-color"]&&!(s=r.parse(a["text-color"],1,t3)))return null;let l=null;if(a["vertical-align"]){if("string"==typeof a["vertical-align"]&&!iL.includes(a["vertical-align"]))return r.error(`'vertical-align' must be one of: 'bottom', 'center', 'top' but found '${a["vertical-align"]}' instead.`);if(!(l=r.parse(a["vertical-align"],1,t0)))return null}let c=n[n.length-1];c.scale=t,c.font=i,c.textColor=s,c.verticalAlign=l}else{let a=r.parse(i[t],1,t6);if(!a)return null;let s=a.type.kind;if("string"!==s&&"value"!==s&&"null"!==s&&"resolvedImage"!==s)return r.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");o=!0,n.push({content:a,scale:null,font:null,textColor:null,verticalAlign:null})}}return new t(n)}evaluate(t){return new iR(this.sections.map(i=>{let r=i.content.evaluate(t);return iW(r)===ii?new iF("",r,null,null,null,i.verticalAlign?i.verticalAlign.evaluate(t):null):new iF(iX(r),null,i.scale?i.scale.evaluate(t):null,i.font?i.font.evaluate(t).join(","):null,i.textColor?i.textColor.evaluate(t):null,i.verticalAlign?i.verticalAlign.evaluate(t):null)}))}eachChild(t){for(let i of this.sections)t(i.content),i.scale&&t(i.scale),i.font&&t(i.font),i.textColor&&t(i.textColor),i.verticalAlign&&t(i.verticalAlign)}outputDefined(){return!1}};function i4(t,i,r){let a=t[i];t[i]=t[r],t[r]=a}function i6(t,i){if(t.length<=1)return[t];let r=[],a,n;for(let i of t){let t=function(t){let i=0;for(let r=0,a=t.length,n=a-1,o,s;r<a;n=r++)o=t[r],i+=((s=t[n]).x-o.x)*(o.y+s.y);return i}(i);0!==t&&(i.area=Math.abs(t),void 0===n&&(n=t<0),n===t<0?(a&&r.push(a),a=[i]):a.push(i))}if(a&&r.push(a),i>1)for(let t=0;t<r.length;t++)r[t].length<=i||(function t(i,r,a=0,n=i.length-1,o=function(t,i){return t<i?-1:+(t>i)}){for(;n>a;){if(n-a>600){let s=n-a+1,l=r-a+1,c=Math.log(s),u=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2<0?-1:1);t(i,r,Math.max(a,Math.floor(r-l*u/s+h)),Math.min(n,Math.floor(r+(s-l)*u/s+h)),o)}let s=i[r],l=a,c=n;for(i4(i,a,r),o(i[n],s)>0&&i4(i,a,n);l<c;){for(i4(i,l,c),l++,c--;0>o(i[l],s);)l++;for(;o(i[c],s)>0;)c--}0===o(i[a],s)?i4(i,a,c):i4(i,++c,n),c<=r&&(a=c+1),r<=c&&(n=c-1)}}(r[t],i,1,r[t].length-1,i8),r[t]=r[t].slice(0,i));return r}function i8(t,i){return i.area-t.area}let i7={string:t0,number:t1,boolean:t2,object:t4};var i9=class t{constructor(t,i,r){this.type=t,this.args=i,this.key=r}static parse(i,r){if(i.length<2)return r.error("Expected at least one argument.");let a=1,n,o=i[0];if("array"===o){let t,o;if(i.length>2){let n=i[1];if("string"!=typeof n||!(n in i7)||"object"===n)return r.error('The item type argument of "array" must be one of string, number, boolean',1);t=i7[n],a++}else t=t6;if(i.length>3){if(null!==i[2]&&("number"!=typeof i[2]||i[2]<0||i[2]!==Math.floor(i[2])))return r.error('The length argument to "array" must be a positive integer literal',2);o=i[2],a++}n=ia(t,o)}else{if(!i7[o])throw Error(`Types doesn't contain name = ${o}`);n=i7[o]}let s=[];for(;a<i.length;a++){let t=r.parse(i[a],a,t6);if(!t)return null;s.push(t)}return new t(n,s,r.key)}evaluate(t){for(let i=0;i<this.args.length;i++){let r=this.args[i].evaluate(t);if(!il(this.type,iW(r)))return r;if(i===this.args.length-1)throw new iN(`Expected value to be of type ${io(this.type)}, but found ${io(iW(r))} instead.`,this.key)}throw Error()}
vendor: 4,153 bytes, line 364
364eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}};let re={"to-boolean":t2,"to-color":t3,"to-number":t1,"to-string":t0};var rt=class t{constructor(t,i,r){this.type=t,this.args=i,this.key=r}static parse(i,r){if(i.length<2)return r.error("Expected at least one argument.");let a=i[0];if(!re[a])throw Error(`Can't parse ${a} as it is not part of the known types`);if(("to-boolean"===a||"to-string"===a)&&2!==i.length)return r.error("Expected one argument.");let n=re[a],o=[];for(let t=1;t<i.length;t++){let a=r.parse(i[t],t,t6);if(!a)return null;o.push(a)}return new t(n,o,r.key)}evaluate(t){switch(this.type.kind){case"boolean":return!!this.args[0].evaluate(t);case"color":{let i,r;for(let a of this.args){if(i=a.evaluate(t),r=null,i instanceof iz)return i;if("string"==typeof i){let r=t.parseColor(i);if(r)return r}else if(Array.isArray(i)&&!(r=i.length<3||i.length>4?`Invalid rgba value ${JSON.stringify(i)}: expected an array containing either three or four numeric values.`:iZ(i[0],i[1],i[2],i[3])))return new iz(i[0]/255,i[1]/255,i[2]/255,i[3])}throw new iN(r||`Could not parse color from value '${"string"==typeof i?i:JSON.stringify(i)}'`,this.key)}case"padding":{let i;for(let r of this.args){i=r.evaluate(t);let a=iO.parse(i);if(a)return a}throw new iN(`Could not parse padding from value '${"string"==typeof i?i:JSON.stringify(i)}'`,this.key)}case"numberArray":{let i;for(let r of this.args){i=r.evaluate(t);let a=iB.parse(i);if(a)return a}throw new iN(`Could not parse numberArray from value '${"string"==typeof i?i:JSON.stringify(i)}'`,this.key)}case"colorArray":{let i;for(let r of this.args){i=r.evaluate(t);let a=ij.parse(i);if(a)return a}throw new iN(`Could not parse colorArray from value '${"string"==typeof i?i:JSON.stringify(i)}'`,this.key)}case"variableAnchorOffsetCollection":{let i;for(let r of this.args){i=r.evaluate(t);let a=iV.parse(i);if(a)return a}throw new iN(`Could not parse variableAnchorOffsetCollection from value '${"string"==typeof i?i:JSON.stringify(i)}'`,this.key)}case"number":{let i=null;for(let r of this.args){if(null===(i=r.evaluate(t)))return 0;let a=Number(i);if(!isNaN(a))return a}throw new iN(`Could not convert ${JSON.stringify(i)} to number.`,this.key)}case"formatted":return iR.fromString(iX(this.args[0].evaluate(t)));case"resolvedImage":return iU.fromString(iX(this.args[0].evaluate(t)));case"projectionDefinition":{let i=this.args[0].evaluate(t);if(iG.parse(i))return i;throw new iN(`Could not parse projectionDefinition from value '${"string"==typeof i?i:JSON.stringify(i)}'`,this.key)}default:return iX(this.args[0].evaluate(t))}}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}},ri=class t{constructor(t,i){this.type=i.type,this.bindings=[].concat(t),this.result=i}evaluate(t){return this.result.evaluate(t)}eachChild(t){for(let i of this.bindings)t(i[1]);t(this.result)}static parse(i,r){if(i.length<4)return r.error(`Expected at least 3 arguments, but found ${i.length-1} instead.`);let a=[];for(let t=1;t<i.length-1;t+=2){let n=i[t];if("string"!=typeof n)return r.error(`Expected string, but found ${typeof n} instead.`,t);if(/[^a-zA-Z0-9_]/.test(n))return r.error("Variable names must contain only alphanumeric characters or '_'.",t);let o=r.parse(i[t+1],t+1);if(!o)return null;a.push([n,o])}let n=r.parse(i[i.length-1],i.length-1,r.expectedType,a);return n?new t(a,n):null}outputDefined(){return this.result.outputDefined()}},rr=class t{constructor(t,i){this.type=i.type,this.name=t,this.boundExpression=i}static parse(i,r){if(2!==i.length||"string"!=typeof i[1])return r.error("'var' expression requires exactly one string literal argument.");let a=i[1];return r.scope.has(a)?new t(a,r.scope.get(a)):r.error(`Unknown variable "${a}". Make sure "${a}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(t){return this.boundExpression.evaluate(t)}eachChild(){}outputDefined(){return!1}},ra=class t{constructor(t,i,r,a){this.type=t,this.index=i,this.input=r,this.key=a}static parse(i,r){if(3!==i.length)return r.error(`Expected 2 arguments, but found ${i.length-1} instead.`);
vendor: 4,053 bytes, line 364
364let a=r.parse(i[1],1,t1),n=r.parse(i[2],2,ia(r.expectedType||t6));return a&&n?new t(n.type.itemType,a,n,r.key):null}evaluate(t){let i=this.index.evaluate(t),r=this.input.evaluate(t);if(i<0)throw new iN(`Array index out of bounds: ${i} < 0.`,this.key);if(i>=r.length)throw new iN(`Array index out of bounds: ${i} > ${r.length-1}.`,this.key);if(i!==Math.floor(i))throw new iN(`Array index must be an integer, but found ${i} instead.`,this.key);return r[i]}eachChild(t){t(this.index),t(this.input)}outputDefined(){return!1}},rn=class t{constructor(t,i,r){this.needle=t,this.haystack=i,this.key=r,this.type=t2}static parse(i,r){if(3!==i.length)return r.error(`Expected 2 arguments, but found ${i.length-1} instead.`);let a=r.parse(i[1],1,t6),n=r.parse(i[2],2,t6);return a&&n?ic(a.type,[t2,t0,t1,tQ,t6])?new t(a,n,r.key):r.error(`Expected first argument to be of type boolean, string, number or null, but found ${io(a.type)} instead`):null}evaluate(t){let i=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!r)return!1;if(!iu(i,["boolean","string","number","null"]))throw new iN(`Expected first argument to be of type boolean, string, number or null, but found ${io(iW(i))} instead.`,this.key);if(!iu(r,["string","array"]))throw new iN(`Expected second argument to be of type array or string, but found ${io(iW(r))} instead.`,this.key);return r.indexOf(i)>=0}eachChild(t){t(this.needle),t(this.haystack)}outputDefined(){return!0}},ro=class t{constructor(t,i,r,a){this.needle=t,this.haystack=i,this.key=r,this.fromIndex=a,this.type=t1}static parse(i,r){if(i.length<=2||i.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${i.length-1} instead.`);let a=r.parse(i[1],1,t6),n=r.parse(i[2],2,t6);if(!a||!n)return null;if(!ic(a.type,[t2,t0,t1,tQ,t6]))return r.error(`Expected first argument to be of type boolean, string, number or null, but found ${io(a.type)} instead`);if(4===i.length){let o=r.parse(i[3],3,t1);return o?new t(a,n,r.key,o):null}return new t(a,n,r.key)}evaluate(t){let i,r=this.needle.evaluate(t),a=this.haystack.evaluate(t);if(!iu(r,["boolean","string","number","null"]))throw new iN(`Expected first argument to be of type boolean, string, number or null, but found ${io(iW(r))} instead.`,this.key);if(this.fromIndex&&(i=this.fromIndex.evaluate(t)),iu(a,["string"])){let t=a.indexOf(r,i);return -1===t?-1:[...a.slice(0,t)].length}if(iu(a,["array"]))return a.indexOf(r,i);throw new iN(`Expected second argument to be of type array or string, but found ${io(iW(a))} instead.`,this.key)}eachChild(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)}outputDefined(){return!1}},rs=class t{constructor(t,i,r,a,n,o){this.inputType=t,this.type=i,this.input=r,this.cases=a,this.outputs=n,this.otherwise=o}static parse(i,r){let a,n;if(i.length<5)return r.error(`Expected at least 4 arguments, but found only ${i.length-1}.`);if(i.length%2!=1)return r.error("Expected an even number of arguments.");r.expectedType&&"value"!==r.expectedType.kind&&(n=r.expectedType);let o={},s=[];for(let t=2;t<i.length-1;t+=2){let l=i[t],c=i[t+1];Array.isArray(l)||(l=[l]);let u=r.concat(t);if(0===l.length)return u.error("Expected at least one branch label.");for(let t of l){if("number"!=typeof t&&"string"!=typeof t)return u.error("Branch labels must be numbers or strings.");if("number"==typeof t&&Math.abs(t)>0x1fffffffffffff)return u.error("Branch labels must be integers no larger than 9007199254740991.");if("number"==typeof t&&Math.floor(t)!==t)return u.error("Numeric branch labels must be integer values.");if(a){if(u.checkSubtype(a,iW(t)))return null}else a=iW(t);if(void 0!==o[String(t)])return u.error("Branch labels must be unique.");o[String(t)]=s.length}let h=r.parse(c,t,n);if(!h)return null;n||=h.type,s.push(h)}let l=r.parse(i[1],1,t6);if(!l)return null;let c=r.parse(i[i.length-1],i.length-1,n);return!c||"value"!==l.type.kind&&r.concat(1).checkSubtype(a,l.type)?null:new t(a,n,l,o,s,c)}evaluate(t){let i=this.input.evaluate(t);return(iW(i)===this.inputType&&this.outputs[this.cases[i]]||this.otherwise).evaluate(t)}
vendor: 5,029 bytes, line 364
364eachChild(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)}outputDefined(){return this.outputs.every(t=>t.outputDefined())&&this.otherwise.outputDefined()}},rl=class t{constructor(t,i,r){this.type=t,this.branches=i,this.otherwise=r}static parse(i,r){let a;if(i.length<4)return r.error(`Expected at least 3 arguments, but found only ${i.length-1}.`);if(i.length%2!=0)return r.error("Expected an odd number of arguments.");r.expectedType&&"value"!==r.expectedType.kind&&(a=r.expectedType);let n=[];for(let t=1;t<i.length-1;t+=2){let o=r.parse(i[t],t,t2);if(!o)return null;let s=r.parse(i[t+1],t+1,a);if(!s)return null;n.push([o,s]),a||=s.type}let o=r.parse(i[i.length-1],i.length-1,a);if(!o)return null;if(!a)throw Error("Can't infer output type");return new t(a,n,o)}evaluate(t){for(let[i,r]of this.branches)if(i.evaluate(t))return r.evaluate(t);return this.otherwise.evaluate(t)}eachChild(t){for(let[i,r]of this.branches)t(i),t(r);t(this.otherwise)}outputDefined(){return this.branches.every(([t,i])=>i.outputDefined())&&this.otherwise.outputDefined()}},rc=class t{constructor(t,i,r,a,n){this.type=t,this.input=i,this.beginIndex=r,this.key=a,this.endIndex=n}static parse(i,r){if(i.length<=2||i.length>=5)return r.error(`Expected 2 or 3 arguments, but found ${i.length-1} instead.`);let a=r.parse(i[1],1,t6),n=r.parse(i[2],2,t1);if(!a||!n)return null;if(!ic(a.type,[ia(t6),t0,t6]))return r.error(`Expected first argument to be of type array or string, but found ${io(a.type)} instead`);if(4===i.length){let o=r.parse(i[3],3,t1);return o?new t(a.type,a,n,r.key,o):null}return new t(a.type,a,n,r.key)}evaluate(t){let i=this.input.evaluate(t),r=this.beginIndex.evaluate(t),a;if(this.endIndex&&(a=this.endIndex.evaluate(t)),iu(i,["string"]))return[...i].slice(r,a).join("");if(iu(i,["array"]))return i.slice(r,a);throw new iN(`Expected first argument to be of type array or string, but found ${io(iW(i))} instead.`,this.key)}eachChild(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)}outputDefined(){return!1}},ru=class t{constructor(t,i){this.type=t,this.args=i}static parse(i,r){if(i.length<2)return r.error("Expected at least one argument.");let a=null,n=r.expectedType;n&&"value"!==n.kind&&(a=n);let o=[];for(let t of i.slice(1)){let i=r.parse(t,1+o.length,a,void 0,{typeAnnotation:"omit"});if(!i)return null;a||=i.type,o.push(i)}if(!a)throw Error("No output type");return n&&o.some(t=>il(n,t.type))?new t(t6,o):new t(a,o)}evaluate(t){let i=null,r=0,a;for(let n of this.args)if(r++,(i=n.evaluate(t))&&i instanceof iU&&!i.available&&(a||=i.name,i=null,r===this.args.length&&(i=a)),null!==i)break;return i}eachChild(t){this.args.forEach(t)}outputDefined(){return this.args.every(t=>t.outputDefined())}};function rh(t,i){return"=="===t||"!="===t?"boolean"===i.kind||"string"===i.kind||"number"===i.kind||"null"===i.kind||"value"===i.kind:"string"===i.kind||"number"===i.kind||"value"===i.kind}function rd(t,i,r,a){return 0===a.compare(i,r)}function rf(t,i,r){let a="=="!==t&&"!="!==t;return class n{constructor(t,i,r,a){this.lhs=t,this.rhs=i,this.key=r,this.collator=a,this.type=t2,this.hasUntypedArgument="value"===t.type.kind||"value"===i.type.kind}static parse(t,i){if(3!==t.length&&4!==t.length)return i.error("Expected two or three arguments.");let r=t[0],o=i.parse(t[1],1,t6);if(!o)return null;if(!rh(r,o.type))return i.concat(1).error(`"${r}" comparisons are not supported for type '${io(o.type)}'.`);let s=i.parse(t[2],2,t6);if(!s)return null;if(!rh(r,s.type))return i.concat(2).error(`"${r}" comparisons are not supported for type '${io(s.type)}'.`);if(o.type.kind!==s.type.kind&&"value"!==o.type.kind&&"value"!==s.type.kind)return i.error(`Cannot compare types '${io(o.type)}' and '${io(s.type)}'.`);a&&("value"===o.type.kind&&"value"!==s.type.kind?o=new i9(s.type,[o],i.key):"value"!==o.type.kind&&"value"===s.type.kind&&(s=new i9(o.type,[s],i.key)));let l=null;if(4===t.length){if("string"!==o.type.kind&&"string"!==s.type.kind&&"value"!==o.type.kind&&"value"!==s.type.kind)return i.error("Cannot use collator to compare non-string types.");if(!(l=i.parse(t[3],3,t8)))return null}return new n(o,s,i.key,l)}evaluate(n){let o=this.lhs.evaluate(n),s=this.rhs.evaluate(n);if(a&&this.hasUntypedArgument){let i=iW(o),r=iW(s);if(i.kind!==r.kind||"string"!==i.kind&&"number"!==i.kind)throw new iN(`Expected arguments for "${t}" to be (string, string) or (number, number), but found (${i.kind}, ${r.kind}) instead.`,this.key)}if(this.collator&&!a&&this.hasUntypedArgument){let t=iW(o),r=iW(s);if("string"!==t.kind||"string"!==r.kind)return i(n,o,s)}return this.collator?r(n,o,s,this.collator.evaluate(n)):i(n,o,s)}eachChild(t){t(this.lhs),t(this.rhs),this.collator&&t(this.collator)}outputDefined(){return!0}}}let rp=rf("==",function(t,i,r){return i===r},rd),rm=rf("!=",function(t,i,r){return i!==r},function(t,i,r,a){return!rd(t,i,r,a)}),rg=rf("<",function(t,i,r){return i<r},function(t,i,r,a){return 0>a.compare(i,r)}),ry=rf(">",function(t,i,r){return i>r},function(t,i,r,a){return a.compare(i,r)>0}
364),r_=rf("<=",function(t,i,r){return i<=r},function(t,i,r,a){return 0>=a.compare(i,r)}),rv=rf(">=",function(t,i,r){return i>=r},function(t,i,r,a){return a.compare(i,r)>=0});var rb=class t{constructor(t,i,r){this.type=t8,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=i}static parse(i,r){if(2!==i.length)return r.error("Expected one argument.");let a=i[1];if("object"!=typeof a||Array.isArray(a))return r.error("Collator options argument must be an object.");let n=r.parse(void 0!==a["case-sensitive"]&&a["case-sensitive"],1,t2);if(!n)return null;let o=r.parse(void 0!==a["diacritic-sensitive"]&&a["diacritic-sensitive"],1,t2);if(!o)return null;let s=null;return!a.locale||(s=r.parse(a.locale,1,t0))?new t(n,o,s):null}evaluate(t){return new iq(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)}eachChild(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&&t(this.locale)}outputDefined(){return!1}},rx=class t{constructor(t,i,r,a,n,o){this.type=t0,this.number=t,this.locale=i,this.currency=r,this.unit=a,this.minFractionDigits=n,this.maxFractionDigits=o}static parse(i,r){if(3!==i.length)return r.error("Expected two arguments.");let a=r.parse(i[1],1,t1);if(!a)return null;let n=i[2];if("object"!=typeof n||Array.isArray(n))return r.error("NumberFormat options argument must be an object.");let o=null;if(n.locale&&!(o=r.parse(n.locale,1,t0)))return null;let s=null;if(n.currency&&!(s=r.parse(n.currency,1,t0)))return null;let l=null;if(n.unit&&!(l=r.parse(n.unit,1,t0)))return null;if(s&&l)return r.error("NumberFormat options `currency` and `unit` are mutually exclusive");let c=null;if(n["min-fraction-digits"]&&!(c=r.parse(n["min-fraction-digits"],1,t1)))return null;let u=null;return!n["max-fraction-digits"]||(u=r.parse(n["max-fraction-digits"],1,t1))?new t(a,o,s,l,c,u):null}evaluate(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":this.unit?"unit":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,unit:this.unit?this.unit.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))}eachChild(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.unit&&t(this.unit),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)}outputDefined(){return!1}},rw=class t{constructor(t){this.type=ii,this.input=t}static parse(i,r){if(2!==i.length)return r.error("Expected two arguments.");let a=r.parse(i[1],1,t0);return a?new t(a):r.error("No image name provided.")}evaluate(t){let i=this.input.evaluate(t),r=iU.fromString(i);return r&&t.availableImages&&(r.available=t.availableImages.indexOf(i)>-1),r}eachChild(t){t(this.input)}outputDefined(){return!1}},rk=class t{constructor(t,i){this.input=t,this.key=i,this.type=t1}static parse(i,r){if(2!==i.length)return r.error(`Expected 1 argument, but found ${i.length-1} instead.`);let a=r.parse(i[1],1);return a?"array"!==a.type.kind&&"string"!==a.type.kind&&"value"!==a.type.kind?r.error(`Expected argument of type string or array, but found ${io(a.type)}
364 instead.`):new t(a,r.key):null}evaluate(t){let i=this.input.evaluate(t);if("string"==typeof i)return[...i].length;if(Array.isArray(i))return i.length;throw new iN(`Expected value to be of type string or array, but found ${io(iW(i))} instead.`,this.key)}eachChild(t){t(this.input)}outputDefined(){return!1}};function rT(t,i){let r=2**i.z;return[360*((t[0]/8192+i.x)/r)-180,360/Math.PI*Math.atan(Math.exp((180-360*((t[1]/8192+i.y)/r))*Math.PI/180))-90]}function rS(t,i){t[0]=Math.min(t[0],i[0]),t[1]=Math.min(t[1],i[1]),t[2]=Math.max(t[2],i[0]),t[3]=Math.max(t[3],i[1])}function rA(t,i){return!(t[0]<=i[0]||t[2]>=i[2]||t[1]<=i[1]||t[3]>=i[3])}function rC(t,i,r,a){var n,o;let s=[i[0]-t[0],i[1]-t[1]];return 0!=(n=[a[0]-r[0],a[1]-r[1]],n[0]*(o=s)[1]-n[1]*o[0])&&!!(rP(t,i,r,a)&&rP(r,a,t,i))}function rE(t,i,r=!1){let a=!1;for(let s of i)for(let i=0;i<s.length-1;i++){var n,o;if(function(t,i,r){let a=t[0]-i[0],n=t[1]-i[1],o=t[0]-r[0],s=t[1]-r[1];return a*s-o*n==0&&a*o<=0&&n*s<=0}(t,s[i],s[i+1]))return r;n=s[i],o=s[i+1],n[1]>t[1]!=o[1]>t[1]&&t[0]<(o[0]-n[0])*(t[1]-n[1])/(o[1]-n[1])+n[0]&&(a=!a)}return a}function rM(t,i){for(let r of t)if(!rE(r,i))return!1;for(let r=0;r<t.length-1;++r)if(function(t,i,r){for(let a of r)for(let r=0;r<a.length-1;++r)if(rC(t,i,a[r],a[r+1]))return!0;return!1}(t[r],t[r+1],i))return!1;return!0}function rP(t,i,r,a){let n=t[0]-r[0],o=t[1]-r[1],s=i[0]-r[0],l=i[1]-r[1],c=a[0]-r[0],u=a[1]-r[1],h=n*u-c*o,d=s*u-c*l;return h>0&&d<0||h<0&&d>0}function rD(t,i,r){let a=[];for(let n=0;n<t.length;n++){let o=[];for(let a=0;a<t[n].length;a++){let s=function(t,i){let r=(180+t[0])/360,a=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t[1]*Math.PI/360)))/360,n=2**i.z;return[Math.round(r*n*8192),Math.round(a*n*8192)]}(t[n][a],r);rS(i,s),o.push(s)}a.push(o)}return a}function rI(t,i,r){let a=[];for(let n=0;n<t.length;n++){let o=rD(t[n],i,r);a.push(o)}return a}function rz(t,i,r,a){if(t[0]<r[0]||t[0]>r[2]){let i=.5*a,n=t[0]-r[0]>i?-a:r[0]-t[0]>i?a:0;0===n&&(n=t[0]-r[2]>i?-a:r[2]-t[0]>i?a:0),t[0]+=n}rS(i,t)}function rL(t,i,r,a){let n=2**a.z*8192,o=[8192*a.x,8192*a.y],s=[];for(let a of t)for(let t of a){let a=[t.x+o[0],t.y+o[1]];rz(a,i,r,n),s.push(a)}return s}function rF(t,i,r,a){let n=2**a.z*8192,o=[8192*a.x,8192*a.y],s=[];for(let r of t){let t=[];for(let a of r){let r=[a.x+o[0],a.y+o[1]];rS(i,r),t.push(r)}s.push(t)}if(i[2]-i[0]<=n/2){for(let t of(i[0]=i[1]=1/0,i[2]=i[3]=-1/0,s))for(let a of t)rz(a,i,r,n)}return s}var rR=class t{constructor(t,i){this.type=t2,this.geojson=t,this.geometries=i}static parse(i,r){if(2!==i.length)return r.error(`'within' expression requires exactly one argument, but found ${i.length-1} instead.`);if(iH(i[1])){let r=i[1];if("FeatureCollection"===r.type){let i=[];for(let t of r.features){let{type:r,coordinates:a}=t.geometry;"Polygon"===r&&i.push(a),"MultiPolygon"===r&&i.push(...a)}if(i.length)return new t(r,{type:"MultiPolygon",coordinates:i})}else if("Feature"===r.type){let i=r.geometry.type;if("Polygon"===i||"MultiPolygon"===i)return new t(r,r.geometry)}else if("Polygon"===r.type||"MultiPolygon"===r.type)return new t(r,r)}return r.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(null!=t.geometry()&&null!=t.canonicalID()){if("Point"===t.geometryType())return function(t,i){let r=[1/0,1/0,-1/0,-1/0],a=[1/0,1/0,-1/0,-1/0],n=t.canonicalID();if("Polygon"===i.type){let o=rD(i.coordinates,a,n),s=rL(t.geometry(),r,a,n);if(!rA(r,a))return!1;for(let t of s)if(!rE(t,o))return!1}if("MultiPolygon"===i.type){let o=rI(i.coordinates,a,n),s=rL(t.geometry(),r,a,n);if(!rA(r,a))return!1;for(let t of s)if(!function(t,i){for(let r of i)if(rE(t,r))return!0;return!1}(t,o))return!1}return!0}(t,this.geometries);if("LineString"===t.geometryType())return function(t,i){let r=[1/0,1/0,-1/0,-1/0],a=[1/0,1/0,-1/0,-1/0],n=t.canonicalID();if("Polygon"===i.type){let o=rD(i.coordinates,a,n),s=rF(t.geometry(),r,a,n);if(!rA(r,a))return!1;for(let t of s)if(!rM(t,o))return!1}if("MultiPolygon"===i.type){let o=rI(i.coordinates,a,n),s=rF(t.geometry(),r,a,n);if(!rA(r,a))return!1;for(let t of s)if(!function(t,i){for(let r of i)if(rM(t,r))return!0;return!1}(t,o))return!1}return!0}(t,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}},rO=class{constructor(t=[],i=(t,i)=>t<i?-1:+(t>i)){if(this.data=t,this.length=this.data.length,this.compare=i,this.length>0)for(let t=(this.length>>1)-1;t>=0;t--)this._down(t)}push(t){this.data.push(t),this._up(this.length++)}pop(){if(0===this.length)return;let t=this.data[0],i=this.data.pop();return--this.length>0&&(this.data[0]=i,this._down(0)),t}peek(){return this.data[0]}_up(t){let{data:i,compare:r}=this,a=i[t];for(;t>0;){let n=t-1>>1,o=i[n];if(r(a,o)>=0)break;i[t]=o,t=n}i[t]=a}_down(t){let{data:i,compare:r}=this,a=this.length>>1,n=i[t];for(;t<a;){let a=(t<<1)+1,o=a+1;if(o<this.length&&0>r(i[o],i[a])&&(a=o),r(i[a],n)>=0)break;
364i[t]=i[a],t=a}i[t]=n}};let rB=Math.PI/180;var rj=class{constructor(t){let i=6378.137*rB*1e3,r=Math.cos(t*rB),a=1/(1-.0066943799901413165*(1-r*r)),n=Math.sqrt(a);this.kx=i*n*r,this.ky=i*n*a*.9933056200098587}distance(t,i){let r=this.wrap(t[0]-i[0])*this.kx,a=(t[1]-i[1])*this.ky;return Math.sqrt(r*r+a*a)}pointOnLine(t,i){let r=1/0,a,n,o,s;for(let l=0;l<t.length-1;l++){let c=t[l][0],u=t[l][1],h=this.wrap(t[l+1][0]-c)*this.kx,d=(t[l+1][1]-u)*this.ky,f=0;(0!==h||0!==d)&&((f=(this.wrap(i[0]-c)*this.kx*h+(i[1]-u)*this.ky*d)/(h*h+d*d))>1?(c=t[l+1][0],u=t[l+1][1]):f>0&&(c+=h/this.kx*f,u+=d/this.ky*f));let p=(h=this.wrap(i[0]-c)*this.kx)*h+(d=(i[1]-u)*this.ky)*d;p<r&&(r=p,a=c,n=u,o=l,s=f)}return{point:[a,n],index:o,t:Math.max(0,Math.min(1,s))}}wrap(t){for(;t<-180;)t+=360;for(;t>180;)t-=360;return t}};function rN(t,i){return i[0]-t[0]}function r$(t){return t[1]-t[0]+1}function rV(t,i){return t[1]>=t[0]&&t[1]<i}function rU(t,i){if(t[0]>t[1])return[null,null];let r=r$(t);if(i){if(2===r)return[t,null];let i=Math.floor(r/2);return[[t[0],t[0]+i],[t[0]+i,t[1]]]}if(1===r)return[t,null];let a=Math.floor(r/2)-1;return[[t[0],t[0]+a],[t[0]+a+1,t[1]]]}function rG(t,i){if(!rV(i,t.length))return[1/0,1/0,-1/0,-1/0];let r=[1/0,1/0,-1/0,-1/0];for(let a=i[0];a<=i[1];++a)rS(r,t[a]);return r}function rq(t){let i=[1/0,1/0,-1/0,-1/0];for(let r of t)for(let t of r)rS(i,t);return i}function rZ(t){return -1/0!==t[0]&&-1/0!==t[1]&&1/0!==t[2]&&1/0!==t[3]}function rH(t,i,r){if(!rZ(t)||!rZ(i))return 0/0;let a=0,n=0;return t[2]<i[0]&&(a=i[0]-t[2]),t[0]>i[2]&&(a=t[0]-i[2]),t[1]>i[3]&&(n=t[1]-i[3]),t[3]<i[1]&&(n=i[1]-t[3]),r.distance([0,0],[a,n])}function rW(t,i,r){let a=r.pointOnLine(i,t);return r.distance(t,a.point)}function rX(t,i,r,a,n){return Math.min(Math.min(rW(t,[r,a],n),rW(i,[r,a],n)),Math.min(rW(r,[t,i],n),rW(a,[t,i],n)))}function rY(t,i){for(let r of t)for(let t of r)if(rE(t,i,!0))return!0;return!1}function rK(t,i,r,a,n,o){if(!o)return;let s=rH(rG(a,o),n,r);s<i&&t.push([s,o,[0,0]])}function rJ(t,i,r,a,n,o,s){if(!o||!s)return;let l=rH(rG(a,o),rG(n,s),r);l<i&&t.push([l,o,s])}function rQ(t,i,r,a,n=1/0){let o=Math.min(a.distance(t[0],r[0][0]),n);if(0===o)return o;let s=new rO([[0,[0,t.length-1],[0,0]]],rN),l=rq(r);for(;s.length>0;){let n=s.pop();if(n[0]>=o)continue;let c=n[1],u=i?50:100;if(r$(c)<=u){if(!rV(c,t.length))return 0/0;if(i){let i=function(t,i,r,a){if(!rV(i,t.length))return 0/0;for(let a=i[0];a<=i[1];++a)if(rE(t[a],r,!0))return 0;let n=1/0;for(let o=i[0];o<i[1];++o){let i=t[o],s=t[o+1];for(let t of r)for(let r=0,o=t.length,l=o-1;r<o;l=r++){let o=t[l],c=t[r];if(rC(i,s,o,c))return 0;n=Math.min(n,rX(i,s,o,c,a))}}return n}(t,c,r,a);if(isNaN(i)||0===i)return i;o=Math.min(o,i)}else for(let i=c[0];i<=c[1];++i)if(0===(o=Math.min(o,function(t,i,r){if(rE(t,i,!0))return 0;let a=1/0;for(let n of i){let i=n[0],o=n[n.length-1];if(i!==o&&0===(a=Math.min(a,rW(t,[o,i],r))))break;let s=r.pointOnLine(n,t);if(0===(a=Math.min(a,r.distance(t,s.point))))break}return a}(t[i],r,a))))return 0}else{let r=rU(c,i);rK(s,o,a,t,l,r[0]),rK(s,o,a,t,l,r[1])}}return o}function r1(t,i,r,a,n,o=1/0){let s=Math.min(o,n.distance(t[0],r[0]));if(0===s)return s;let l=new rO([[0,[0,t.length-1],[0,r.length-1]]],rN);for(;l.length>0;){let o=l.pop();if(o[0]>=s)continue;let c=o[1],u=o[2],h=i?50:100,d=a?50:100;if(r$(c)<=h&&r$(u)<=d){if(!rV(c,t.length)&&rV(u,r.length))return 0/0;if(i&&a)s=Math.min(s,function(t,i,r,a,n){if(!(rV(i,t.length)&&rV(a,r.length)))return 1/0;let o=1/0;for(let s=i[0];s<i[1];++s){let i=t[s],l=t[s+1];for(let t=a[0];t<a[1];++t){let a=r[t],s=r[t+1];if(rC(i,l,a,s))return 0;o=Math.min(o,rX(i,l,a,s,n))}}return o}(t,c,r,u,n));else if(i&&!a){let i=t.slice(c[0],c[1]+1);for(let t=u[0];t<=u[1];++t)if(0===(s=Math.min(s,rW(r[t],i,n))))return s}else if(!i&&a){let i=r.slice(u[0],u[1]+1);for(let r=c[0];r<=c[1];++r)if(0===(s=Math.min(s,rW(t[r],i,n))))return s}else s=Math.min(s,function(t,i,r,a,n){if(!(rV(i,t.length)&&rV(a,r.length)))return 0/0;let o=1/0;for(let s=i[0];s<=i[1];++s)for(let i=a[0];i<=a[1];++i)if(0===(o=Math.min(o,n.distance(t[s],r[i]))))return o;return o}(t,c,r,u,n))}else{let o=rU(c,i),h=rU(u,a);rJ(l,s,n,t,r,o[0],h[0]),rJ(l,s,n,t,r,o[0],h[1]),rJ(l,s,n,t,r,o[1],h[0]),rJ(l,s,n,t,r,o[1],h[1])}}return s}
364function r0(t){return"MultiPolygon"===t.type?t.coordinates.map(t=>({type:"Polygon",coordinates:t})):"MultiLineString"===t.type?t.coordinates.map(t=>({type:"LineString",coordinates:t})):"MultiPoint"===t.type?t.coordinates.map(t=>({type:"Point",coordinates:t})):[t]}var r2=class t{constructor(t,i){this.type=t1,this.geojson=t,this.geometries=i}static parse(i,r){if(2!==i.length)return r.error(`'distance' expression requires exactly one argument, but found ${i.length-1} instead.`);if(iH(i[1])){let r=i[1];if("FeatureCollection"===r.type)return new t(r,r.features.map(t=>r0(t.geometry)).flat());if("Feature"===r.type)return new t(r,r0(r.geometry));if("type"in r&&"coordinates"in r)return new t(r,r0(r))}return r.error("'distance' expression requires valid geojson object that contains polygon geometry type.")}evaluate(t){if(null!=t.geometry()&&null!=t.canonicalID()){if("Point"===t.geometryType())return function(t,i){let r=t.geometry(),a=r.flat().map(i=>rT([i.x,i.y],t.canonical));if(0===r.length)return 0/0;let n=new rj(a[0][1]),o=1/0;for(let t of i){switch(t.type){case"Point":o=Math.min(o,r1(a,!1,[t.coordinates],!1,n,o));break;case"LineString":o=Math.min(o,r1(a,!1,t.coordinates,!0,n,o));break;case"Polygon":o=Math.min(o,rQ(a,!1,t.coordinates,n,o))}if(0===o)break}return o}(t,this.geometries);if("LineString"===t.geometryType())return function(t,i){let r=t.geometry(),a=r.flat().map(i=>rT([i.x,i.y],t.canonical));if(0===r.length)return 0/0;let n=new rj(a[0][1]),o=1/0;for(let t of i){switch(t.type){case"Point":o=Math.min(o,r1(a,!0,[t.coordinates],!1,n,o));break;case"LineString":o=Math.min(o,r1(a,!0,t.coordinates,!0,n,o));break;case"Polygon":o=Math.min(o,rQ(a,!0,t.coordinates,n,o))}if(0===o)break}return o}(t,this.geometries);if("Polygon"===t.geometryType())return function(t,i){let r=t.geometry();if(0===r.length||0===r[0].length)return 0/0;let a=i6(r,0).map(i=>i.map(i=>i.map(i=>rT([i.x,i.y],t.canonical)))),n=new rj(a[0][0][0][1]),o=1/0;for(let t of i)for(let i of a){switch(t.type){case"Point":o=Math.min(o,rQ([t.coordinates],!1,i,n,o));break;case"LineString":o=Math.min(o,rQ(t.coordinates,!0,i,n,o));break;case"Polygon":o=Math.min(o,function(t,i,r,a=1/0){let n=rq(t),o=rq(i);if(1/0!==a&&rH(n,o,r)>=a)return a;if(rA(n,o)){if(rY(t,i))return 0}else if(rY(i,t))return 0;let s=1/0;for(let a of t)for(let t=0,n=a.length,o=n-1;t<n;o=t++){let n=a[o],l=a[t];for(let t of i)for(let i=0,a=t.length,o=a-1;i<a;o=i++){let a=t[o],c=t[i];if(rC(n,l,a,c))return 0;s=Math.min(s,rX(n,l,a,c,r))}}return s}(i,t.coordinates,n,o))}if(0===o)return o}return o}(t,this.geometries)}return 0/0}eachChild(){}outputDefined(){return!0}},r3=class t{constructor(t){let i=null;for(let r of t)if(i){if(i===r.type)continue;i=t6;break}else i=r.type;this.type=ia(i??t6,t.length),this.arr=t}static parse(i,r){if(2!==i.length)return r.error(`'semiliteral' expression requires exactly one argument, but found ${i.length-1} instead.`);if(!iH(i[1]))return r.error(`invalid value of type "${typeof i[1]}"`);let a=i[1],n=iW(a);return"array"===n.kind?new t(a.map(t=>r.parse(t,null,t6))):new iY(n,a)}evaluate(t){return this.arr.map(i=>i.evaluate(t))}eachChild(t){this.arr.forEach(t)}outputDefined(){return this.arr.every(t=>t.outputDefined())}},r5=class t{constructor(t){this.key=t,this.type=t6}static parse(i,r){if(2!==i.length)return r.error(`Expected 1 argument, but found ${i.length-1} instead.`);let a=i[1];return null==a?r.error("Global state property must be defined."):"string"==typeof a?new t(a):r.error(`Global state property must be string, but found ${typeof i[1]} instead.`)}evaluate(t){let i=t.globals?.globalState;return i&&0!==Object.keys(i).length?iA(i,this.key)??null:null}eachChild(){}outputDefined(){return!1}};let r4={"==":rp,"!=":rm,">":ry,"<":rg,">=":rv,"<=":r_,array:i9,at:ra,boolean:i9,case:rl,coalesce:ru,collator:rb,format:i5,image:rw,in:rn,"index-of":ro,interpolate:i0,"interpolate-hcl":i0,"interpolate-lab":i0,length:rk,let:ri,literal:iY,match:rs,number:i9,"number-format":rx,object:i9,semiliteral:r3,slice:rc,step:i1,string:i9,"to-boolean":rt,"to-color":rt,"to-number":rt,"to-string":rt,var:rr,within:rR,distance:r2,"global-state":r5};
vendor: 2,754 bytes, line 364
364var r6=class extends Error{constructor(t,i){super(i),this.message=i,this.key=t}},r8=class t{constructor(t,i=[]){for(let[r,a]of(this.parent=t,this.bindings={},i))this.bindings[r]=a}concat(i){return new t(this,i)}get(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw Error(`${t} not found in scope.`)}has(t){return!!this.bindings[t]||!!this.parent&&this.parent.has(t)}},r7=class t{constructor(t,i,r=[],a,n=new r8,o=[]){this.registry=t,this.path=r,this.key=r.map(t=>`[${t}]`).join(""),this.scope=n,this.errors=o,this.expectedType=a,this._isConstant=i}parse(t,i,r,a,n={}){return i?this.concat(i,r,a)._parse(t,n):this._parse(t,n)}_parse(t,i){(null===t||"string"==typeof t||"boolean"==typeof t||"number"==typeof t)&&(t=["literal",t]);let r=this.key;function a(t,i,a){return"assert"===a?new i9(i,[t],r):"coerce"===a?new rt(i,[t],r):t}if(Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let r=t[0];if("string"!=typeof r)return this.error(`Expression name must be a string, but found ${typeof r} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let n=this.registry[r];if(n){let r=n.parse(t,this);if(!r)return null;if(this.expectedType){let t=this.expectedType,n=r.type;if(("string"===t.kind||"number"===t.kind||"boolean"===t.kind||"object"===t.kind||"array"===t.kind)&&"value"===n.kind)r=a(r,t,i.typeAnnotation||"assert");else if("projectionDefinition"===t.kind&&["string","array","value"].includes(n.kind)||["color","formatted","resolvedImage"].includes(t.kind)&&["value","string"].includes(n.kind)||["padding","numberArray"].includes(t.kind)&&["value","number","array"].includes(n.kind)||"colorArray"===t.kind&&["value","string","array"].includes(n.kind)||"variableAnchorOffsetCollection"===t.kind&&["value","array"].includes(n.kind))r=a(r,t,i.typeAnnotation||"coerce");else if(this.checkSubtype(t,n))return null}if(!(r instanceof iY)&&"resolvedImage"!==r.type.kind&&this._isConstant(r)){let t=new iJ;try{r=new iY(r.type,r.evaluate(t))}catch(t){return this.error(t.message),null}}return r}return this.error(`Unknown expression "${r}". If you wanted a literal array, use ["literal", [...]].`,0)}return void 0===t?this.error("'undefined' value invalid. Use null instead."):"object"==typeof t?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error(`Expected an array, but found ${typeof t} instead.`)}concat(i,r,a){let n="number"==typeof i?this.path.concat(i):this.path,o=a?this.scope.concat(a):this.scope;return new t(this.registry,this._isConstant,n,r||null,o,this.errors)}error(t,...i){let r=`${this.key}${i.map(t=>`[${t}]`).join("")}`;this.errors.push(new r6(r,t))}
vendor: 34,740 bytes, lines 364-365
364checkSubtype(t,i){let r=il(t,i);return r&&this.error(r),r}},r9=class t{constructor(t,i,r,a,n){this.name=t,this.type=i,this._evaluate=r,this.args=a,this.key=n}evaluate(t){return this._evaluate(t,this.args,this.key)}eachChild(t){this.args.forEach(t)}outputDefined(){return!1}static parse(i,r){let a=i[0],n=t.definitions[a];if(!n)return r.error(`Unknown expression "${a}". If you wanted a literal array, use ["literal", [...]].`,0);let o=Array.isArray(n)?n[0]:n.type,s=Array.isArray(n)?[[n[1],n[2]]]:n.overloads,l=s.filter(([t])=>!Array.isArray(t)||t.length===i.length-1),c=null;for(let[n,s]of l){c=new r7(r.registry,aa,r.path,null,r.scope);let l=[],u=!1;for(let t=1;t<i.length;t++){let r=i[t],a=Array.isArray(n)?n[t-1]:n.type,o=c.parse(r,1+l.length,a);if(!o){u=!0;break}l.push(o)}if(!u){if(Array.isArray(n)&&n.length!==l.length){c.error(`Expected ${n.length} arguments, but found ${l.length} instead.`);continue}for(let t=0;t<l.length;t++){let i=Array.isArray(n)?n[t]:n.type,r=l[t];c.concat(t+1).checkSubtype(i,r.type)}if(0===c.errors.length)return new t(a,o,s,l,r.key)}}if(1===l.length)r.errors.push(...c.errors);else{let t=(l.length?l:s).map(([t])=>{var i;return Array.isArray(i=t)?`(${i.map(io).join(", ")})`:`(${io(i.type)}...)`}).join(" | "),a=[];for(let t=1;t<i.length;t++){let n=r.parse(i[t],1+a.length);if(!n)return null;a.push(io(n.type))}r.error(`Expected arguments of type ${t}, but found (${a.join(", ")}) instead.`)}return null}static register(i,r){for(let a in t.definitions=r,r)i[a]=t}};function ae(t,[i,r,a,n],o){i=i.evaluate(t),r=r.evaluate(t),a=a.evaluate(t);let s=n?n.evaluate(t):1,l=iZ(i,r,a,s);if(l)throw new iN(l,o);return new iz(i/255,r/255,a/255,s,!1)}function at(t,i){return t in i&&void 0!==i[t]}function ai(t,i){let r=i[t];return void 0===r?null:r}function ar(t){return{type:t}}function aa(t){if(t instanceof rr)return aa(t.boundExpression);if(t instanceof r9&&"error"===t.name||t instanceof rb||t instanceof rR||t instanceof r2||t instanceof r5)return!1;let i=t instanceof rt||t instanceof i9,r=!0;return t.eachChild(t=>{r&&=i?aa(t):t instanceof iY}),!!r&&an(t)&&as(t,["zoom","heatmap-density","elevation","line-progress","accumulated","is-supported-script"])}function an(t){if(t instanceof r9&&("get"===t.name&&1===t.args.length||"feature-state"===t.name||"has"===t.name&&1===t.args.length||"properties"===t.name||"geometry-type"===t.name||"id"===t.name||/^filter-/.test(t.name))||t instanceof rR||t instanceof r2)return!1;let i=!0;return t.eachChild(t=>{i&&!an(t)&&(i=!1)}),i}function ao(t){if(t instanceof r9&&"feature-state"===t.name)return!1;let i=!0;return t.eachChild(t=>{i&&!ao(t)&&(i=!1)}),i}function as(t,i){if(t instanceof r9&&i.indexOf(t.name)>=0)return!1;let r=!0;return t.eachChild(t=>{r&&!as(t,i)&&(r=!1)}),r}function al(t){return"data-driven"===t["property-type"]||"cross-faded-data-driven"===t["property-type"]}function ac(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function au(t){return!!t.expression&&t.expression.interpolated}r9.register(r4,{error:[{kind:"error"},[t0],(t,[i],r)=>{throw new iN(i.evaluate(t),r)}],typeof:[t0,[t6],(t,[i])=>io(iW(i.evaluate(t)))],"to-rgba":[ia(t1,4),[t3],(t,[i])=>{let[r,a,n,o]=i.evaluate(t).rgb;return[255*r,255*a,255*n,o]}],rgb:[t3,[t1,t1,t1],ae],rgba:[t3,[t1,t1,t1,t1],ae],has:{type:t2,overloads:[[[t0],(t,[i])=>at(i.evaluate(t),t.properties())],[[t0,t4],(t,[i,r])=>at(i.evaluate(t),r.evaluate(t))]]},get:{type:t6,overloads:[[[t0],(t,[i])=>ai(i.evaluate(t),t.properties())],[[t0,t4],(t,[i,r])=>ai(i.evaluate(t),r.evaluate(t))]]},"feature-state":[t6,[t0],(t,[i])=>ai(i.evaluate(t),t.featureState||{})],properties:[t4,[],t=>t.properties()],"geometry-type":[t0,[],t=>t.geometryType()],id:[t6,[],t=>t.id()],zoom:[t1,[],t=>t.globals.zoom],"heatmap-density":[t1,[],t=>t.globals.heatmapDensity||0],elevation:[t1,[],t=>t.globals.elevation||0],"line-progress":[t1,[],t=>t.globals.lineProgress||0],accumulated:[t6,[],t=>void 0===t.globals.accumulated?null:t.globals.accumulated],"+":[t1,ar(t1),(t,i)=>{let r=0;for(let a of i)r+=a.evaluate(t);return r}],"*":[t1,ar(t1),(t,i)=>{let r=1;for(let a of i)r*=a.evaluate(t);return r}],"-":{type:t1,overloads:[[[t1,t1],(t,[i,r])=>i.evaluate(t)-r.evaluate(t)],[[t1],(t,[i])=>-i.evaluate(t)]]},"/":[t1,[t1,t1],(t,[i,r])=>i.evaluate(t)/r.evaluate(t)],"%":[t1,[t1,t1],(t,[i,r])=>i.evaluate(t)%r.evaluate(t)],ln2:[t1,[],()=>Math.LN2],pi:[t1,[],()=>Math.PI],e:[t1,[],()=>Math.E],"^":[t1,[t1,t1],(t,[i,r])=>i.evaluate(t)**r.evaluate(t)],sqrt:[t1,[t1],(t,[i])=>Math.sqrt(i.evaluate(t))],log10:[t1,[t1],(t,[i])=>Math.log(i.evaluate(t))/Math.LN10],ln:[t1,[t1],(t,[i])=>Math.log(i.evaluate(t))],log2:[t1,[t1],(t,[i])=>Math.log(i.evaluate(t))/Math.LN2],sin:[t1,[t1],(t,[i])=>Math.sin(i.evaluate(t))],cos:[t1,[t1],(t,[i])=>Math.cos(i.evaluate(t))],tan:[t1,[t1],(t,[i])=>Math.tan(i.evaluate(t))],asin:[t1,[t1],(t,[i])=>Math.asin(i.evaluate(t))],acos:[t1,[t1],(t,[i])=>Math.acos(i.evaluate(t))],atan:[t1,[t1],(t,[i])=>Math.atan(i.evaluate(t))],min:[t1,ar(t1),(t,i)=>Math.min(...i.map(i=>i.evaluate(t)))],max:[t1,ar(t1),(t,i)=>Math.max(...i.map(i=>i.evaluate(t)))],abs:[t1,[t1],(t,[i])=>Math.abs(i.evaluate(t))],round:[t1,[t1],(t,[i])=>{let r=i.evaluate(t);return r<0?-Math.round(-r):Math.round(r)}],floor:[t1,[t1],(t,[i])=>Math.floor(i.evaluate(t))],ceil:[t1,[t1],(t,[i])=>Math.ceil(i.evaluate(t))],"filter-==":[t2,[t0,t6],(t,[i,r])=>t.properties()[i.value]===r.value],"filter-id-==":[t2,[t6],(t,[i])=>t.id()===i.value],"filter-type-==":[t2,[t0],(t,[i])=>t.geometryType()===i.value],"filter-<":[t2,[t0,t6],(t,[i,r])=>{let a=t.properties()[i.value],n=r.value;return typeof a==typeof n&&a<n}],"filter-id-<":[t2,[t6],(t,[i])=>{let r=t.id(),a=i.value;return typeof r==typeof a&&r<a}],"filter->":[t2,[t0,t6],(t,[i,r])=>{let a=t.properties()[i.value],n=r.value;return typeof a==typeof n&&a>n}],"filter-id->":[t2,[t6],(t,[i])=>{let r=t.id(),a=i.value;return typeof r==typeof a&&r>a}],"filter-<=":[t2,[t0,t6],(t,[i,r])=>{let a=t.properties()[i.value],n=r.value;return typeof a==typeof n&&a<=n}],"filter-id-<=":[t2,[t6],(t,[i])=>{let r=t.id(),a=i.value;return typeof r==typeof a&&r<=a}],"filter->=":[t2,[t0,t6],(t,[i,r])=>{let a=t.properties()[i.value],n=r.value;return typeof a==typeof n&&a>=n}],"filter-id->=":[t2,[t6],(t,[i])=>{let r=t.id(),a=i.value;return typeof r==typeof a&&r>=a}],"filter-has":[t2,[t6],(t,[i])=>{let r=i.value,a=t.properties();return r in a&&void 0!==a[r]}],"filter-has-id":[t2,[],t=>null!==t.id()&&void 0!==t.id()],"filter-type-in":[t2,[ia(t0)],(t,[i])=>i.value.indexOf(t.geometryType())>=0],"filter-id-in":[t2,[ia(t6)],(t,[i])=>i.value.indexOf(t.id())>=0],"filter-in-small":[t2,[t0,ia(t6)],(t,[i,r])=>r.value.indexOf(t.properties()[i.value])>=0],"filter-in-large":[t2,[t0,ia(t6)],(t,[i,r])=>(function(t,i,r,a){for(;r<=a;){let n=r+a>>1;if(i[n]===t)return!0;i[n]>t?a=n-1:r=n+1}return!1})(t.properties()[i.value],r.value,0,r.value.length-1)],all:{type:t2,overloads:[[[t2,t2],(t,[i,r])=>i.evaluate(t)&&r.evaluate(t)],[ar(t2),(t,i)=>{for(let r of i)if(!r.evaluate(t))return!1;return!0}]]},any:{type:t2,overloads:[[[t2,t2],(t,[i,r])=>i.evaluate(t)||r.evaluate(t)],[ar(t2),(t,i)=>{for(let r of i)if(r.evaluate(t))return!0;return!1}]]},"!":[t2,[t2],(t,[i])=>!i.evaluate(t)],"is-supported-script":[t2,[t0],(t,[i])=>{let r=t.globals&&t.globals.isSupportedScript;return!r||r(i.evaluate(t))}],upcase:[t0,[t0],(t,[i])=>i.evaluate(t).toUpperCase()],downcase:[t0,[t0],(t,[i])=>i.evaluate(t).toLowerCase()],concat:[t0,ar(t6),(t,i)=>i.map(i=>iX(i.evaluate(t))).join("")],split:[ia(t0),[t0,t0],(t,[i,r])=>i.evaluate(t).split(r.evaluate(t))],join:[t0,[ia(t0),t0],(t,[i,r])=>i.evaluate(t).join(r.evaluate(t))],"resolved-locale":[t0,[t8],(t,[i])=>i.evaluate(t).resolvedLocale()]});let ah=/^(.*)-transition$/;function ad(t,...i){for(let r of i)for(let i in r)t[i]=r[i];return t}function af(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":typeof t}function ap(t){return"object"==typeof t&&!!t&&!Array.isArray(t)&&iW(t)===t4}function am(t){return t}function ag(t,i,r){return void 0!==t?t:void 0!==i?i:void 0!==r?r:void 0}function ay(t,i,r,a,n){return ag(typeof r===n?a[r]:void 0,t.default,i.default)}function a_(t,i,r){if("number"!==af(r))return ag(t.default,i.default);let a=t.stops.length;if(1===a||r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[a-1][0])return t.stops[a-1][1];let n=iQ(t.stops.map(t=>t[0]),r,"");return t.stops[n][1]}function av(t,i,r){var a,n,o;let s,l,c=void 0===t.base?1:t.base;if("number"!==af(r))return ag(t.default,i.default);let u=t.stops.length;if(1===u||r<=t.stops[0][0])return t.stops[0][1];if(r>=t.stops[u-1][0])return t.stops[u-1][1];let h=iQ(t.stops.map(t=>t[0]),r,""),d=(a=r,n=c,o=t.stops[h][0],s=t.stops[h+1][0]-o,l=a-o,0===s?0:1===n?l/s:(n**l-1)/(n**s-1)),f=t.stops[h][1],p=t.stops[h+1][1],m=i3[i.type]||am;return"function"==typeof f.evaluate?{evaluate(...i){let r=f.evaluate.apply(void 0,i),a=p.evaluate.apply(void 0,i);if(void 0!==r&&void 0!==a)return m(r,a,d,t.colorSpace)}}:m(f,p,d,t.colorSpace)}function ab(t,i,r){switch(i.type){case"color":r=iz.parse(r);break;case"formatted":r=iR.fromString(r.toString());break;case"resolvedImage":r=iU.fromString(r.toString());break;case"padding":r=iO.parse(r);break;case"colorArray":r=ij.parse(r);break;case"numberArray":r=iB.parse(r);break;default:af(r)===i.type||"enum"===i.type&&i.values[r]||(r=void 0)}return ag(r,t.default,i.default)}function ax(t){return{result:"success",value:t}}function aw(t){return{result:"error",value:t}}var ak=class{constructor(t,i,r,a){this.expression=t,this._warningHistory={},this._evaluator=new iJ,this._defaultValue=r?az(r):null,this._enumValues=r&&"enum"===r.type?r.values:null,this._globalState=a,this._rootKey=i}evaluateWithoutErrorHandling(t,i,r,a,n,o){return this._globalState&&(t=aL(t,this._globalState)),this._evaluator.globals=t,this._evaluator.feature=i,this._evaluator.featureState=r,this._evaluator.canonical=a,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=o,this.expression.evaluate(this._evaluator)}evaluate(t,i,r,a,n,o){this._globalState&&(t=aL(t,this._globalState)),this._evaluator.globals=t,this._evaluator.feature=i||null,this._evaluator.featureState=r||null,this._evaluator.canonical=a,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=o||null;try{let t=this.expression.evaluate(this._evaluator);if(null==t||"number"==typeof t&&t!=t)return this._defaultValue;if(this._enumValues&&!(t in this._enumValues))throw new iN(`Expected value to be one of ${Object.keys(this._enumValues).map(t=>JSON.stringify(t)).join(", ")}, but found ${JSON.stringify(t)} instead.`,"");return t}catch(r){let t=r instanceof iN?r.path:"",i=`${t}|${r.message}`;return this._warningHistory[i]||(this._warningHistory[i]=!0,"u">typeof console&&console.warn(aT(this._rootKey,t,r.message,this._defaultValue))),this._defaultValue}}};function aT(t,i,r,a){return`${t}${i}: ${r}${null==a?"":` Falling back to ${String(a)}.`}`}function aS(t){if(!t)throw Error('rootKey must identify the location of the expression in the style JSON, e.g. "layers[3].paint.line-width".')}function aA(t){return Array.isArray(t)&&t.length>0&&"string"==typeof t[0]&&t[0]in r4}function aC(t,i,r,a){var n;let o;aS(i);let s=new r7(r4,aa,[],r?(n=r,o={color:t3,string:t0,number:t1,enum:t0,boolean:t2,formatted:t7,padding:t9,numberArray:it,colorArray:ie,projectionDefinition:t5,resolvedImage:ii,variableAnchorOffsetCollection:ir},"array"===n.type?ia(o[n.value]||t6,n.length):o[n.type]):void 0),l=s.parse(t,void 0,void 0,void 0,r&&"string"===r.type?{typeAnnotation:"coerce"}:void 0);return l?ax(new ak(l,i,r,a)):aw(s.errors)}var aE=class{constructor(t,i,r){this.kind=t,this._styleExpression=i,this.isStateDependent="constant"!==t&&!ao(i.expression),this.globalStateRefs=aI(i.expression),this._globalState=r}evaluateWithoutErrorHandling(t,i,r,a,n,o){return this._globalState&&(t=aL(t,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(t,i,r,a,n,o)}evaluate(t,i,r,a,n,o){return this._globalState&&(t=aL(t,this._globalState)),this._styleExpression.evaluate(t,i,r,a,n,o)}},aM=class{constructor(t,i,r,a,n){this.kind=t,this.zoomStops=r,this._styleExpression=i,this.isStateDependent="camera"!==t&&!ao(i.expression),this.globalStateRefs=aI(i.expression),this.interpolationType=a,this._globalState=n}evaluateWithoutErrorHandling(t,i,r,a,n,o){return this._globalState&&(t=aL(t,this._globalState)),this._styleExpression.evaluateWithoutErrorHandling(t,i,r,a,n,o)}evaluate(t,i,r,a,n,o){return this._globalState&&(t=aL(t,this._globalState)),this._styleExpression.evaluate(t,i,r,a,n,o)}interpolationFactor(t,i,r){return this.interpolationType?i0.interpolationFactor(this.interpolationType,t,i,r):0}};function aP(t,i,r,a){let n=aC(t,i,r,a);if("error"===n.result)return n;let o=n.value.expression,s=an(o);if(!s&&!al(r))return aw([new r6("","data expressions not supported")]);let l=as(o,["zoom"]);if(!l&&!ac(r))return aw([new r6("","zoom expressions not supported")]);let c=function t(i){let r=null;if(i instanceof ri)r=t(i.result);else if(i instanceof ru){for(let a of i.args)if(r=t(a))break}else(i instanceof i1||i instanceof i0)&&i.input instanceof r9&&"zoom"===i.input.name&&(r=i);return r instanceof r6||i.eachChild(i=>{let a=t(i);a instanceof r6?r=a:!r&&a?r=new r6("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):r&&a&&r!==a&&(r=new r6("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),r}(o);if(!c&&!l)return aw([new r6("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(c instanceof r6)return aw([c]);if(c instanceof i0&&!au(r))return aw([new r6("",'"interpolate" expressions cannot be used with this property')]);if(!c)return ax(s?new aE("constant",n.value,a):new aE("source",n.value,a));let u=c instanceof i0?c.interpolation:void 0;return ax(s?new aM("camera",n.value,c.labels,u,a):new aM("composite",n.value,c.labels,u,a))}var aD=class t{constructor(t,i,r){this.isStateDependent=!1,this.globalStateRefs=new Set,this._globalState=null,aS(i),this._parameters=t,this._specification=r,this._rootKey=i,this._defaultValue=az(r),this._warningHistory={};let a=function t(i,r){var a;let n=i.stops&&"object"==typeof i.stops[0][0],o=n||void 0!==i.property,s=i.type||(au(r)?"exponential":"interval"),l=function(t){switch(t.type){case"color":return iz.parse;case"padding":return iO.parse;case"numberArray":return iB.parse;case"colorArray":return ij.parse;default:return null}}(r);if(l&&((i=ad({},i)).stops&&(i.stops=i.stops.map(t=>[t[0],l(t[1])])),i.default?i.default=l(i.default):i.default=l(r.default)),i.colorSpace&&"rgb"!==(a=i.colorSpace)&&"hcl"!==a&&"lab"!==a)throw Error(`Unknown color space: "${i.colorSpace}"`);let c=function(t){switch(t){case"exponential":return av;case"interval":return a_;case"categorical":return ay;case"identity":return ab;default:throw Error(`Unknown function type "${t}"`)}}(s),u,h;if("categorical"===s){for(let t of(u=Object.create(null),i.stops))u[t[0]]=t[1];h=typeof i.stops[0][0]}if(n){let a={},n=[];for(let t=0;t<i.stops.length;t++){let r=i.stops[t],o=r[0].zoom;void 0===a[o]&&(a[o]={zoom:o,type:i.type,property:i.property,default:i.default,stops:[]},n.push(o)),a[o].stops.push([r[0].value,r[1]])}let o=[];for(let i of n)o.push([a[i].zoom,t(a[i],r)]);let s={name:"linear"};return{kind:"composite",interpolationType:s,interpolationFactor:i0.interpolationFactor.bind(void 0,s),zoomStops:o.map(t=>t[0]),evaluate:({zoom:t},a)=>av({stops:o,base:i.base},r,t).evaluate(t,a)}}if(n||!o){let t="exponential"===s?{name:"exponential",base:void 0===i.base?1:i.base}:null;return{kind:"camera",interpolationType:t,interpolationFactor:i0.interpolationFactor.bind(void 0,t),zoomStops:i.stops.map(t=>t[0]),evaluate:({zoom:t})=>c(i,r,t,u,h)}}return{kind:"source",evaluate(t,a){let n=a&&a.properties?a.properties[i.property]:void 0;return void 0===n?ag(i.default,r.default):c(i,r,n,u,h)}}}(this._parameters,this._specification);this.kind=a.kind,this.interpolationFactor=a.interpolationFactor,this.zoomStops=a.zoomStops,this.interpolationType=a.interpolationType,this._innerEvaluate=a.evaluate}evaluate(t,i){try{return this._innerEvaluate(t,i)}catch(r){let t=r instanceof Error?r.message:String(r),i=`|${t}`;return this._warningHistory[i]||(this._warningHistory[i]=!0,"u">typeof console&&console.warn(aT(this._rootKey,"",t,this._defaultValue))),this._defaultValue}}static deserialize(i){return new t(i._parameters,i._rootKey,i._specification)}static serialize(t){return{_parameters:t._parameters,_specification:t._specification,_rootKey:t._rootKey}}};function aI(t,i=new Set){return t instanceof r5&&i.add(t.key),t.eachChild(t=>{aI(t,i)}),i}function az(t){if("color"===t.type&&ap(t.default))return new iz(0,0,0,0);switch(t.type){case"color":return iz.parse(t.default)||null;case"padding":return iO.parse(t.default)||null;case"numberArray":return iB.parse(t.default)||null;case"colorArray":return ij.parse(t.default)||null;case"variableAnchorOffsetCollection":return iV.parse(t.default)||null;case"projectionDefinition":return iG.parse(t.default)||null;default:return void 0===t.default?null:t.default}}function aL(t,i){let{zoom:r,heatmapDensity:a,elevation:n,lineProgress:o,isSupportedScript:s,accumulated:l}=t??{};return{zoom:r,heatmapDensity:a,elevation:n,lineProgress:o,isSupportedScript:s,accumulated:l,globalState:i}}function aF(t){return"legacy"!==function t(i){if("boolean"==typeof i)return"neutral";if(!Array.isArray(i)||0===i.length)return"legacy";switch(i[0]){case"has":return i.length<2||"$id"===i[1]||"$type"===i[1]?"legacy":2===i.length?"neutral":"expression";case"in":return i.length>=3&&("string"!=typeof i[1]||Array.isArray(i[2]))?"expression":"legacy";case"!in":case"!has":case"none":return"legacy";case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==i.length||Array.isArray(i[1])||Array.isArray(i[2])?"expression":"legacy";case"any":case"all":var r=i.slice(1);let a=!1;for(let i of r){let r=t(i);if("expression"===r)return"expression";"legacy"===r&&(a=!0)}return a?"legacy":"neutral";default:return"expression"}}(t)}function aR(t){return"$type"===t?["geometry-type"]:"$id"===t?["id"]:["get",t]}function aO(t){if(("<"===t[0]||"<="===t[0]||">"===t[0]||">="===t[0])&&"$type"===t[1])return`"$type" cannot be use with operator "${t[0]}"`;let i=function(t){switch(t[0]){case"==":case"!=":case"<":case"<=":case">":case">=":return 3!==t.length||"string"!=typeof t[1]?null:[t[0],aR(t[1]),t[2]];case"in":case"!in":{if(t.length<2||"string"!=typeof t[1])return null;let i=["in",aR(t[1]),["literal",t.slice(2)]];return"!in"===t[0]?["!",i]:i}case"has":case"!has":{if(2!==t.length||"string"!=typeof t[1]||"$type"===t[1]||"$id"===t[1])return null;let i=["has",t[1]];return"!has"===t[0]?["!",i]:i}default:return null}}(t);return i?`Mixing deprecated filter syntax with expression syntax is not supported. Replace ${JSON.stringify(t)} with ${JSON.stringify(i)}.`:`Mixing deprecated filter syntax with expression syntax is not supported. Convert ${JSON.stringify(t)} to expression syntax.`}function aB(t,i,r){let a=r[t];return Array.isArray(a)?aF(a)?aj(a,i.concat(t)):{path:i.concat(t),legacyFilter:a}:null}function aj(t,i=[]){if(!Array.isArray(t)||t.length<1)return null;switch(t[0]){case"all":case"any":case"none":for(let r=1;r<t.length;r++){let a=aB(r,i,t);if(a)return a}break;case"!":{let r=aB(1,i,t);if(r)return r;break}case"case":for(let r=1;r<t.length-1;r+=2){let a=aB(r,i,t);if(a)return a}}return null}let aN={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function a$(t,i,r){if(null==t)return{filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set};aF(t)?function(t,i){let r=aj(t);if(!r||typeof console>"u")return;let a=r.path.map(t=>`[${t}]`).join("");console.warn(`${i}${a}: ${aO(r.legacyFilter)}`)}(t,i):t=function t(i){if(!i)return!0;let r=i[0];return i.length<=1?"any"!==r:"=="===r?aU(i[1],i[2],"=="):"!="===r?aZ(aU(i[1],i[2],"==")):"<"===r||">"===r||"<="===r||">="===r?aU(i[1],i[2],r):"any"===r?["any"].concat(i.slice(1).map(t)):"all"===r?["all"].concat(i.slice(1).map(t)):"none"===r?["all"].concat(i.slice(1).map(t).map(aZ)):"in"===r?aG(i[1],i.slice(2)):"!in"===r?aZ(aG(i[1],i.slice(2))):"has"===r?aq(i[1]):"!has"!==r||aZ(aq(i[1]))}(t);let a=aC(t,i,aN,r);if("error"===a.result)throw Error(a.value.map(t=>`${t.key}: ${t.message}`).join(", "));return{filter:(t,i,r)=>a.value.evaluate(t,i,{},r),needGeometry:function t(i){if(!Array.isArray(i))return!1;if("within"===i[0]||"distance"===i[0])return!0;for(let r=1;r<i.length;r++)if(t(i[r]))return!0;return!1}(t),getGlobalStateRefs:()=>aI(a.value.expression)}}function aV(t,i){return t<i?-1:+(t>i)}function aU(t,i,r){switch(t){case"$type":return[`filter-type-${r}`,i];case"$id":return[`filter-id-${r}`,i];default:return[`filter-${r}`,t,i]}}function aG(t,i){if(0===i.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",i]];case"$id":return["filter-id-in",["literal",i]];default:return i.length>200&&!i.some(t=>typeof t!=typeof i[0])?["filter-in-large",t,["literal",i.sort(aV)]]:["filter-in-small",t,["literal",i]]}}function aq(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function aZ(t){return["!",t]}function aH(t){let i=t.key,r=t.value;return r?[new tJ(i,r,"constants have been deprecated as of v8")]:[]}function aW(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function aX(t){if(Array.isArray(t))return t.map(aX);if(t instanceof Object&&!(t instanceof Number||t instanceof String||t instanceof Boolean)){let i={};for(let r in t)i[r]=aX(t[r]);return i}return aW(t)}function aY(t){let i=t.key,r=t.value,a=t.valueSpec||{},n=t.objectElementValidators||{},o=t.style,s=t.styleSpec,l=t.validateSpec,c=[],u=af(r);if("object"!==u)return[new tJ(i,r,`object expected, ${u} found`)];for(let t in r){let u=t.split(".")[0],h=iA(a,u)||a["*"],d;if(iA(n,u))d=n[u];else if(iA(a,u)){if(void 0===r[t])continue;d=l}else if(n["*"])d=n["*"];else if(a["*"])d=l;else{c.push(new tJ(i,r[t],`unknown property "${t}"`));continue}c=c.concat(d({key:(i&&`${i}.`)+t,value:r[t],valueSpec:h,style:o,styleSpec:s,object:r,objectKey:t,validateSpec:l},r))}for(let t in a)n[t]||a[t].required&&void 0===a[t].default&&void 0===r[t]&&c.push(new tJ(i,r,`missing required property "${t}"`));return c}function aK(t){let i=t.value,r=t.valueSpec,a=t.validateSpec,n=t.style,o=t.styleSpec,s=t.key,l=t.arrayElementValidator||a;if("array"!==af(i))return[new tJ(s,i,`array expected, ${af(i)} found`)];if(r.length&&i.length!==r.length)return[new tJ(s,i,`array length ${r.length} expected, length ${i.length} found`)];let c={type:r.value,values:r.values};o.$version<7&&(c.function=r.function),"object"===af(r.value)&&(c=r.value);let u=[];for(let r=0;r<i.length;r++)u=u.concat(l({array:i,arrayIndex:r,value:i[r],valueSpec:c,validateSpec:t.validateSpec,style:n,styleSpec:o,key:`${s}[${r}]`}));return u}function aJ(t){let i=t.key,r=t.value,a=t.valueSpec,n=af(r);return"number"===n&&r!=r&&(n="NaN"),"number"===n?"minimum"in a&&r<a.minimum?[new tJ(i,r,`${r} is less than the minimum value ${a.minimum}`)]:"maximum"in a&&r>a.maximum?[new tJ(i,r,`${r} is greater than the maximum value ${a.maximum}`)]:[]:[new tJ(i,r,`number expected, ${n} found`)]}function aQ(t){let i=t.valueSpec,r=aW(t.value.type),a,n={},o,s,l="categorical"!==r&&void 0===t.value.property,c="array"===af(t.value.stops)&&"array"===af(t.value.stops[0])&&"object"===af(t.value.stops[0][0]),u=aY({key:t.key,value:t.value,valueSpec:t.styleSpec.function,validateSpec:t.validateSpec,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if("identity"===r)return[new tJ(t.key,t.value,'identity function may not have a "stops" property')];let i=[],a=t.value;return i=i.concat(aK({key:t.key,value:a,valueSpec:t.valueSpec,validateSpec:t.validateSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:h})),"array"===af(a)&&0===a.length&&i.push(new tJ(t.key,a,"array must have at least one stop")),i},default:function(t){return t.validateSpec({key:t.key,value:t.value,valueSpec:i,validateSpec:t.validateSpec,style:t.style,styleSpec:t.styleSpec})}}});return"identity"===r&&l&&u.push(new tJ(t.key,t.value,'missing required property "property"')),"identity"===r||t.value.stops||u.push(new tJ(t.key,t.value,'missing required property "stops"')),"exponential"===r&&t.valueSpec.expression&&!au(t.valueSpec)&&u.push(new tJ(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(l||al(t.valueSpec)?l&&!ac(t.valueSpec)&&u.push(new tJ(t.key,t.value,"zoom functions not supported")):u.push(new tJ(t.key,t.value,"property functions not supported"))),("categorical"===r||c)&&void 0===t.value.property&&u.push(new tJ(t.key,t.value,'"property" property is required')),u;function h(t){let r=[],a=t.value,l=t.key;if("array"!==af(a))return[new tJ(l,a,`array expected, ${af(a)} found`)];if(2!==a.length)return[new tJ(l,a,`array length 2 expected, length ${a.length} found`)];if(c){if("object"!==af(a[0]))return[new tJ(l,a,`object expected, ${af(a[0])} found`)];if(void 0===a[0].zoom)return[new tJ(l,a,"object stop key must have zoom")];if(void 0===a[0].value)return[new tJ(l,a,"object stop key must have value")];if(s&&s>aW(a[0].zoom))return[new tJ(l,a[0].zoom,"stop zoom values must appear in ascending order")];aW(a[0].zoom)!==s&&(s=aW(a[0].zoom),o=void 0,n={}),r=r.concat(aY({key:`${l}[0]`,value:a[0],valueSpec:{zoom:{}},validateSpec:t.validateSpec,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:aJ,value:d}}))}else r=r.concat(d({key:`${l}[0]`,value:a[0],valueSpec:{},validateSpec:t.validateSpec,style:t.style,styleSpec:t.styleSpec},a));return aA(aX(a[1]))?r.concat([new tJ(`${l}[1]`,a[1],"expressions are not allowed in function stops.")]):r.concat(t.validateSpec({key:`${l}[1]`,value:a[1],valueSpec:i,validateSpec:t.validateSpec,style:t.style,styleSpec:t.styleSpec}))}function d(t,s){let l=af(t.value),c=aW(t.value),u=null===t.value?s:t.value;if(a){if(l!==a)return[new tJ(t.key,u,`${l} stop domain type must match previous stop domain type ${a}`)]}else a=l;if("number"!==l&&"string"!==l&&"boolean"!==l)return[new tJ(t.key,u,"stop domain value must be a number, string, or boolean")];if("number"!==l&&"categorical"!==r){let a=`number expected, ${l} found`;return al(i)&&void 0===r&&(a+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new tJ(t.key,u,a)]}return"categorical"!==r||"number"!==l||isFinite(c)&&Math.floor(c)===c?"categorical"!==r&&"number"===l&&void 0!==o&&c<o?[new tJ(t.key,u,"stop domain values must appear in ascending order")]:(o=c,"categorical"===r&&c in n?[new tJ(t.key,u,"stop domain values must be unique")]:(n[c]=!0,[])):[new tJ(t.key,u,`integer expected, found ${c}`)]}}function a1(t){let i=("property"===t.expressionContext?aP:aC)(aX(t.value),t.key,t.valueSpec);if("error"===i.result)return i.value.map(i=>new tJ(`${t.key}${i.key}`,t.value,i.message));let r=i.value.expression||i.value._styleExpression.expression;if("property"===t.expressionContext&&"text-font"===t.propertyKey&&!r.outputDefined())return[new tJ(t.key,t.value,`Invalid data expression for "${t.propertyKey}". Output values must be contained as literals within the expression.`)];if("property"===t.expressionContext&&"layout"===t.propertyType&&!ao(r))return[new tJ(t.key,t.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===t.expressionContext&&!ao(r))return[new tJ(t.key,t.value,'"feature-state" data expressions are not supported with filters.')];if(t.expressionContext&&0===t.expressionContext.indexOf("cluster")){if(!as(r,["zoom","feature-state"]))return[new tJ(t.key,t.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===t.expressionContext&&!an(r))return[new tJ(t.key,t.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function a0(t){let i=t.key,r=t.value,a=af(r);return"string"===a?iz.parse(String(r))?[]:[new tJ(i,r,`color expected, "${r}" found`)]:[new tJ(i,r,`color expected, ${a} found`)]}function a2(t){let i=t.key,r=t.value,a=t.valueSpec,n=[];return Array.isArray(a.values)?-1===a.values.indexOf(aW(r))&&n.push(new tJ(i,r,`expected one of [${a.values.join(", ")}], ${JSON.stringify(r)} found`)):-1===Object.keys(a.values).indexOf(aW(r))&&n.push(new tJ(i,r,`expected one of [${Object.keys(a.values).join(", ")}], ${JSON.stringify(r)} found`)),n}function a3(t){let i,r=aX(t.value);return aF(r)?[...(i=aj(r))?[new tJ(`${t.key}${i.path.map(t=>`[${t}]`).join("")}`,function(t,i){let r=t;for(let t of i)r=r[t];return r}(t.value,i.path),aO(i.legacyFilter),null,"warning")]:[],...a1(ad({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}}))]:function t(i){let r=i.value,a=i.key;if("array"!==af(r))return[new tJ(a,r,`array expected, ${af(r)} found`)];let n=i.styleSpec,o,s=[];if(r.length<1)return[new tJ(a,r,"filter array must have at least 1 element")];switch(s=s.concat(a2({key:`${a}[0]`,value:r[0],valueSpec:n.filter_operator,style:i.style,styleSpec:i.styleSpec})),aW(r[0])){case"<":case"<=":case">":case">=":r.length>=2&&"$type"===aW(r[1])&&s.push(new tJ(a,r,`"$type" cannot be use with operator "${r[0]}"`));case"==":case"!=":3!==r.length&&s.push(new tJ(a,r,`filter array for operator "${r[0]}" must have 3 elements`));case"in":case"!in":r.length>=2&&"string"!==(o=af(r[1]))&&s.push(new tJ(`${a}[1]`,r[1],`string expected, ${o} found`));for(let t=2;t<r.length;t++)o=af(r[t]),"$type"===aW(r[1])?s=s.concat(a2({key:`${a}[${t}]`,value:r[t],valueSpec:n.geometry_type,style:i.style,styleSpec:i.styleSpec})):"string"!==o&&"number"!==o&&"boolean"!==o&&s.push(new tJ(`${a}[${t}]`,r[t],`string, number, or boolean expected, ${o} found`));break;case"any":case"all":case"none":for(let n=1;n<r.length;n++)s=s.concat(t({key:`${a}[${n}]`,value:r[n],style:i.style,styleSpec:i.styleSpec}));break;case"has":case"!has":o=af(r[1]),2===r.length?"string"!==o&&s.push(new tJ(`${a}[1]`,r[1],`string expected, ${o} found`)):s.push(new tJ(a,r,`filter array for "${r[0]}" operator must have 2 elements`))}return s}(t)}function a5(t,i){let r,a=t.key,n=t.validateSpec,o=t.style,s=t.styleSpec,l=t.value,c=t.objectKey,u=s[`${i}_${t.layerType}`];if(!u)return[];let h=c.match(ah);if("paint"===i&&h&&u[h[1]]&&u[h[1]].transition)return n({key:a,value:l,valueSpec:s.transition,style:o,styleSpec:s});let d=t.valueSpec||u[c];if(!d)return[new tJ(a,l,`unknown property "${c}"`)];if("string"===af(l)&&al(d)&&!d.tokens&&(r=/^{([^}]+)}$/.exec(l)))return[new tJ(a,l,`"${c}" does not support interpolation syntax
365Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(r[1])} }\`.`)];let f=[];return"symbol"===t.layerType&&"text-font"===c&&ap(aX(l))&&"identity"===aW(l.type)&&f.push(new tJ(a,l,'"text-font" does not support identity functions')),f.concat(n({key:t.key,value:l,valueSpec:d,style:o,styleSpec:s,expressionContext:"property",propertyType:i,propertyKey:c}))}function a4(t){return a5(t,"paint")}function a6(t){return a5(t,"layout")}function a8(t){let i=[],r=t.value,a=t.key,n=t.style,o=t.styleSpec;if("object"!==af(r))return[new tJ(a,r,`object expected, ${af(r)} found`)];r.type||r.ref||i.push(new tJ(a,r,'either "type" or "ref" is required'));let s=aW(r.type),l=aW(r.ref);if(r.id){let o=aW(r.id);for(let s=0;s<t.arrayIndex;s++){let t=n.layers[s];aW(t.id)===o&&i.push(new tJ(a,r.id,`duplicate layer id "${r.id}", previously used at line ${t.id.__line__}`))}}if("ref"in r){let t;["type","source","source-layer","filter","layout"].forEach(t=>{t in r&&i.push(new tJ(a,r[t],`"${t}" is prohibited for ref layers`))}),n.layers.forEach(i=>{aW(i.id)===l&&(t=i)}),t?t.ref?i.push(new tJ(a,r.ref,"ref cannot reference another ref layer")):s=aW(t.type):i.push(new tJ(a,r.ref,`ref layer "${l}" not found`))}else if("background"!==s)if(r.source){let t=n.sources&&n.sources[r.source],o=t&&aW(t.type);t?"vector"===o&&"raster"===s?i.push(new tJ(a,r.source,`layer "${r.id}" requires a raster source`)):"raster-dem"!==o&&"hillshade"===s||"raster-dem"!==o&&"color-relief"===s?i.push(new tJ(a,r.source,`layer "${r.id}" requires a raster-dem source`)):"raster"===o&&"raster"!==s?i.push(new tJ(a,r.source,`layer "${r.id}" requires a vector source`)):"vector"!==o||r["source-layer"]?"raster-dem"===o&&"hillshade"!==s&&"color-relief"!==s?i.push(new tJ(a,r.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):"line"===s&&r.paint&&r.paint["line-gradient"]&&("geojson"!==o||!t.lineMetrics)&&i.push(new tJ(a,r,`layer "${r.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):i.push(new tJ(a,r,`layer "${r.id}" must specify a "source-layer"`)):i.push(new tJ(a,r.source,`source "${r.source}" not found`))}else i.push(new tJ(a,r,'missing required property "source"'));return"raster"===s&&r.paint?.resampling&&r.paint?.["raster-resampling"]&&i.push(new tJ(a,r.paint,`layer "${r.id}" redundantly specifies "resampling" and "raster-resampling" paint properties, but only one is allowed. It is advised to use "resampling".`)),i=i.concat(aY({key:a,value:r,valueSpec:o.layer,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,objectElementValidators:{"*":()=>[],type:()=>t.validateSpec({key:`${a}.type`,value:r.type,valueSpec:o.layer.type,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,object:r,objectKey:"type"}),filter:a3,layout:t=>aY({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,objectElementValidators:{"*":t=>a6(ad({layerType:s},t))}}),paint:t=>aY({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,validateSpec:t.validateSpec,objectElementValidators:{"*":t=>a4(ad({layerType:s},t))}})}}))}function a7(t){let i=t.value,r=t.key,a=af(i);return"string"===a?[]:[new tJ(r,i,`string expected, ${a} found`)]}let a9={promoteId:function({key:t,value:i}){if("string"===af(i))return a7({key:t,value:i});{let r=[];for(let a in i)r.push(...a7({key:`${t}.${a}`,value:i[a]}));return r}}};function ne(t){let i=t.value,r=t.key,a=t.styleSpec,n=t.style,o=t.validateSpec;if(!i.type)return[new tJ(r,i,'"type" is required')];let s=aW(i.type),l;switch(s){case"vector":case"raster":return aY({key:r,value:i,valueSpec:a[`source_${s.replace("-","_")}`],style:t.style,styleSpec:a,objectElementValidators:a9,validateSpec:o});case"raster-dem":return function(t){let i=t.sourceName??"",r=t.value,a=t.styleSpec,n=a.source_raster_dem,o=t.style,s=[],l=af(r);if(void 0===r)return s;if("object"!==l)return s.push(new tJ("source_raster_dem",r,`object expected, ${l}
365 found`)),s;let c="custom"===aW(r.encoding),u=["redFactor","greenFactor","blueFactor","baseShift"],h=t.value.encoding?`"${t.value.encoding}"`:"Default";for(let l in r)!c&&u.includes(l)?s.push(new tJ(l,r[l],`In "${i}": "${l}" is only valid when "encoding" is set to "custom". ${h} encoding found`)):n[l]?s=s.concat(t.validateSpec({key:l,value:r[l],valueSpec:n[l],validateSpec:t.validateSpec,style:o,styleSpec:a})):s.push(new tJ(l,r[l],`unknown property "${l}"`));return s}({sourceName:r,value:i,style:t.style,styleSpec:a,validateSpec:o});case"geojson":if(l=aY({key:r,value:i,valueSpec:a.source_geojson,style:n,styleSpec:a,validateSpec:o,objectElementValidators:a9}),i.cluster)for(let t in i.clusterProperties){let[a,n]=i.clusterProperties[t],s="string"==typeof a?[a,["accumulated"],["get",t]]:a;l.push(...a1({key:`${r}.${t}.map`,value:n,validateSpec:o,expressionContext:"cluster-map"})),l.push(...a1({key:`${r}.${t}.reduce`,value:s,validateSpec:o,expressionContext:"cluster-reduce"}))}return l;case"video":return aY({key:r,value:i,valueSpec:a.source_video,style:n,validateSpec:o,styleSpec:a});case"image":return aY({key:r,value:i,valueSpec:a.source_image,style:n,validateSpec:o,styleSpec:a});case"canvas":return[new tJ(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return a2({key:`${r}.type`,value:i.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:n,validateSpec:o,styleSpec:a})}}function nt(t){let i=t.value,r=t.styleSpec,a=r.light,n=t.style,o=[],s=af(i);if(void 0===i)return o;if("object"!==s)return o.concat([new tJ("light",i,`object expected, ${s} found`)]);for(let s in i){let l=s.match(ah);o=l&&a[l[1]]&&a[l[1]].transition?o.concat(t.validateSpec({key:s,value:i[s],valueSpec:r.transition,validateSpec:t.validateSpec,style:n,styleSpec:r})):a[s]?o.concat(t.validateSpec({key:s,value:i[s],valueSpec:a[s],validateSpec:t.validateSpec,style:n,styleSpec:r})):o.concat([new tJ(s,i[s],`unknown property "${s}"`)])}return o}function ni(t){let i=t.value,r=t.styleSpec,a=r.sky,n=t.style,o=af(i);if(void 0===i)return[];if("object"!==o)return[new tJ("sky",i,`object expected, ${o} found`)];let s=[];for(let o in i){let l=o.match(ah);s=l&&a[l[1]]&&a[l[1]].transition?s.concat(t.validateSpec({key:o,value:i[o],valueSpec:r.transition,style:n,styleSpec:r})):a[o]?s.concat(t.validateSpec({key:o,value:i[o],valueSpec:a[o],style:n,styleSpec:r})):s.concat([new tJ(o,i[o],`unknown property "${o}"`)])}return s}function nr(t){let i=t.value,r=t.styleSpec,a=r.terrain,n=t.style,o=[],s=af(i);if(void 0===i)return o;if("object"!==s)return o.concat([new tJ("terrain",i,`object expected, ${s} found`)]);for(let s in i)o=a[s]?o.concat(t.validateSpec({key:s,value:i[s],valueSpec:a[s],validateSpec:t.validateSpec,style:n,styleSpec:r})):o.concat([new tJ(s,i[s],`unknown property "${s}"`)]);return o}function na(t){let i=[],r=t.value,a=t.key;if(Array.isArray(r)){let n=[],o=[];for(let s in r)r[s].id&&n.includes(r[s].id)&&i.push(new tJ(a,r,`all the sprites' ids must be unique, but ${r[s].id} is duplicated`)),n.push(r[s].id),r[s].url&&o.includes(r[s].url)&&i.push(new tJ(a,r,`all the sprites' URLs must be unique, but ${r[s].url} is duplicated`)),o.push(r[s].url),i=i.concat(aY({key:`${a}[${s}]`,value:r[s],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:t.validateSpec}));return i}return a7({key:a,value:r})}function nn(t){return!!t&&t.constructor===Object}function no(t){return nn(t.value)?[]:[new tJ(t.key,t.value,`object expected, ${af(t.value)} found`)]}let ns=/^u\+(?:([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?|([0-9a-f]{0,5}\?{1,6}))$/i;function nl(t){let i=t.key??"font-faces",r=t.value,a=t.validateSpec,n=t.styleSpec??tK,o=t.style;if(!nn(r))return[new tJ(i,r,`object expected, ${af(r)} found`)];let s=[];for(let t in r){let l=r[t],c=af(l);
365if("string"===c)s.push(...a7({key:`${i}.${t}`,value:l}));else if("array"===c){let r={url:{type:"string",required:!0},"unicode-range":{type:"array",value:"string"}};for(let[c,u]of l.entries()){let l=`${i}.${t}[${c}]`;s.push(...aY({key:l,value:u,valueSpec:r,styleSpec:n,style:o,validateSpec:a}));let h=nn(u)?u["unicode-range"]:void 0;if("array"===af(h))for(let[t,i]of h.entries())s.push(...function(t,i){if("string"!==af(i))return[];let r=`${i}`,a=()=>[new tJ(t,i,'invalid unicode range, expected a value such as "U+26", "U+0-10FFFF" or "U+4??"')],n=r.match(ns);if(!n)return a();let[,o,s,l]=n;if(void 0!==l)return l.length>6?a():[];let c=parseInt(o,16),u=void 0===s?c:parseInt(s,16);return c>1114111||u>1114111?[new tJ(t,i,"unicode range is out of bounds, the maximum code point is U+10FFFF")]:c>u?[new tJ(t,i,`unicode range start must not be greater than its end, but ${r} is`)]:[]}(`${l}.unicode-range[${t}]`,i))}}else s.push(new tJ(`${i}.${t}`,l,`string or array expected, ${c} found`))}return s}let nc={"*":()=>[],array:aK,boolean:function(t){let i=t.value,r=t.key,a=af(i);return"boolean"===a?[]:[new tJ(r,i,`boolean expected, ${a} found`)]},number:aJ,color:a0,constants:aH,enum:a2,filter:a3,function:aQ,layer:a8,object:aY,source:ne,light:nt,sky:ni,terrain:nr,projection:function(t){let i=t.value,r=t.styleSpec,a=r.projection,n=t.style,o=af(i);if(void 0===i)return[];if("object"!==o)return[new tJ("projection",i,`object expected, ${o} found`)];let s=[];for(let o in i)s=a[o]?s.concat(t.validateSpec({key:o,value:i[o],valueSpec:a[o],style:n,styleSpec:r})):s.concat([new tJ(o,i[o],`unknown property "${o}"`)]);return s},projectionDefinition:function(t){var i;let r=t.key,a=t.value,n=af(a=a instanceof String?a.valueOf():a);return"array"!==n||Array.isArray(i=a)&&3===i.length&&"string"==typeof i[0]&&"string"==typeof i[1]&&"number"==typeof i[2]||["interpolate","step","literal"].includes(a[0])?["array","string"].includes(n)?[]:[new tJ(r,a,`projection expected, invalid type "${n}" found`)]:[new tJ(r,a,`projection expected, invalid array ${JSON.stringify(a)} found`)]},string:a7,formatted:function(t){return 0===a7(t).length?[]:a1(t)},resolvedImage:function(t){return 0===a7(t).length?[]:a1(t)},padding:function(t){let i=t.key,r=t.value;if("array"===af(r)){if(r.length<1||r.length>4)return[new tJ(i,r,`padding requires 1 to 4 values; ${r.length} values found`)];let a={type:"number"},n=[];for(let o=0;o<r.length;o++)n=n.concat(t.validateSpec({key:`${i}[${o}]`,value:r[o],validateSpec:t.validateSpec,valueSpec:a}));return n}return aJ({key:i,value:r,valueSpec:{}})},numberArray:function(t){let i=t.key,r=t.value;if("array"===af(r)){let a={type:"number"};if(r.length<1)return[new tJ(i,r,"array length at least 1 expected, length 0 found")];let n=[];for(let o=0;o<r.length;o++)n=n.concat(t.validateSpec({key:`${i}[${o}]`,value:r[o],validateSpec:t.validateSpec,valueSpec:a}));return n}return aJ({key:i,value:r,valueSpec:{}})},colorArray:function(t){let i=t.key,r=t.value;if("array"===af(r)){if(r.length<1)return[new tJ(i,r,"array length at least 1 expected, length 0 found")];let t=[];for(let a=0;a<r.length;a++)t=t.concat(a0({key:`${i}[${a}]`,value:r[a],valueSpec:{}}));return t}return a0({key:i,value:r,valueSpec:{}})},variableAnchorOffsetCollection:function(t){let i=t.key,r=t.value,a=af(r),n=t.styleSpec;if("array"!==a||r.length<1||r.length%2!=0)return[new tJ(i,r,"variableAnchorOffsetCollection requires a non-empty array of even length")];let o=[];for(let a=0;a<r.length;a+=2)o=(o=o.concat(a2({key:`${i}[${a}]`,value:r[a],valueSpec:n.layout_symbol["text-anchor"]}))).concat(aK({key:`${i}[${a+1}]`,value:r[a+1],valueSpec:{length:2,value:"number"},validateSpec:t.validateSpec,style:t.style,styleSpec:n}));return o},sprite:na,state:no,fontFaces:nl};function nu(t){let i=t.value,r=t.valueSpec,a=t.styleSpec;return t.validateSpec=nu,r.expression&&ap(aW(i))?aQ(t):r.expression&&aA(aX(i))?a1(t):r.type&&nc[r.type]?nc[r.type](t):aY(ad({},t,{valueSpec:r.type?a[r.type]:r}))}function nh(t){let i=t.value,r=t.key,a=a7(t);return a.length||(-1===i.indexOf("{fontstack}")&&a.push(new tJ(r,i,'"glyphs" url must include a "{fontstack}" token')),-1===i.indexOf("{range}")&&a.push(new tJ(r,i,'"glyphs" url must include a "{range}" token'))),a}
vendor: 29,354 bytes, line 365
365function nd(t,i=tK){let r=[];return r=r.concat(nu({key:"",value:t,valueSpec:i.$root,styleSpec:i,style:t,validateSpec:nu,objectElementValidators:{glyphs:nh,"*":()=>[]}})),t.constants&&(r=r.concat(aH({key:"constants",value:t.constants,style:t,styleSpec:i,validateSpec:nu}))),np(r)}function nf(t){return function(i){return t(Object.assign({},i,{validateSpec:nu}))}}function np(t){return[].concat(t).sort((t,i)=>t.line-i.line)}function nm(t){return function(...i){return np(t.apply(this,i))}}nd.source=nm(nf(ne)),nd.sprite=nm(nf(na)),nd.glyphs=nm(nf(nh)),nd.fontFaces=nm(nf(nl)),nd.light=nm(nf(nt)),nd.sky=nm(nf(ni)),nd.terrain=nm(nf(nr)),nd.state=nm(nf(no)),nd.layer=nm(nf(a8)),nd.filter=nm(nf(a3)),nd.paintProperty=nm(nf(a4)),nd.layoutProperty=nm(nf(a6));let ng={type:"enum","property-type":"data-constant",expression:{interpolated:!1,parameters:["global-state"]},values:{visible:{},none:{}},transition:!1,default:"visible"};var ny=class{constructor(t,i,r){this._rootKey=i,this._globalState=r,this.setValue(t)}evaluate(){return this._literalValue??this._compiledValue.evaluate({})}setValue(t){if(null==t||"visible"===t||"none"===t){this._literalValue="none"===t?"none":"visible",this._compiledValue=void 0,this._globalStateRefs=new Set;return}let i=aC(t,this._rootKey,ng,this._globalState);if("error"===i.result)throw this._literalValue="visible",this._compiledValue=void 0,Error(i.value.map(t=>`${t.key}: ${t.message}`).join(", "));this._literalValue=void 0,this._compiledValue=i.value,this._globalStateRefs=aI(i.value.expression)}getGlobalStateRefs(){return this._globalStateRefs}};let n_=new Set(Object.keys(tK).filter(t=>t.startsWith("source_")).map(t=>t.slice(7).replaceAll("_","-")));function nv(t,i){let r=Object.entries(i.sources??{}).filter(([,t])=>!n_.has(t.type)).map(([t])=>`sources.${t}`);return nb(t,nd(i).filter(({message:t})=>!r.some(i=>t.startsWith(`${i}:`)||t.startsWith(`${i}.`))))}function nb(t,i){let r=!1;for(let a of i){if("warning"===a.severity){tu(a.message);continue}t.fire(new tX(Error(a.message))),r=!0}return r}function nx(t,i,r,a){return a?.validate!==!1&&nb(t,i({styleSpec:tK,...r}))}var nw=class t{constructor(t,i,r){let a=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;let n=new Int32Array(this.arrayBuffer);t=n[0],i=n[1],r=n[2],this.d=i+2*r;for(let t=0;t<this.d*this.d;t++){let i=n[3+t],r=n[3+t+1];a.push(i===r?null:n.subarray(i,r))}let o=n[3+a.length],s=n[3+a.length+1];this.keys=n.subarray(o,s),this.bboxes=n.subarray(s),this.insert=this._insertReadonly}else{this.d=i+2*r;for(let t=0;t<this.d*this.d;t++)a.push([]);this.keys=[],this.bboxes=[]}this.n=i,this.extent=t,this.padding=r,this.scale=i/t,this.uid=0;let n=r/i*t;this.min=-n,this.max=t+n}insert(t,i,r,a,n){this._forEachCell(i,r,a,n,this._insertCell,this.uid++,void 0,void 0),this.keys.push(t),this.bboxes.push(i),this.bboxes.push(r),this.bboxes.push(a),this.bboxes.push(n)}_insertReadonly(){throw Error("Cannot insert into a GridIndex created from an ArrayBuffer.")}_insertCell(t,i,r,a,n,o){this.cells[n].push(o)}query(t,i,r,a,n){let o=this.min,s=this.max;if(t<=o&&i<=o&&s<=r&&s<=a&&!n)return[...this.keys];{let o=[];return this._forEachCell(t,i,r,a,this._queryCell,o,{},n),o}}_queryCell(t,i,r,a,n,o,s,l){let c=this.cells[n];if(null!==c){let n=this.keys,u=this.bboxes;for(let h of c)if(void 0===s[h]){let c=4*h;(l?l(u[c+0],u[c+1],u[c+2],u[c+3]):t<=u[c+2]&&i<=u[c+3]&&r>=u[c+0]&&a>=u[c+1])?(s[h]=!0,o.push(n[h])):s[h]=!1}}}_forEachCell(t,i,r,a,n,o,s,l){let c=this._convertToCellCoord(t),u=this._convertToCellCoord(i),h=this._convertToCellCoord(r),d=this._convertToCellCoord(a);for(let f=c;f<=h;f++)for(let c=u;c<=d;c++){let u=this.d*c+f;if((!l||l(this._convertFromCellCoord(f),this._convertFromCellCoord(c),this._convertFromCellCoord(f+1),this._convertFromCellCoord(c+1)))&&n.call(this,t,i,r,a,u,o,s,l))return}}_convertFromCellCoord(t){return(t-this.padding)/this.scale}_convertToCellCoord(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let t=this.cells,i=3+this.cells.length+1+1,r=0;for(let t of this.cells)r+=t.length;let a=new Int32Array(i+r+this.keys.length+this.bboxes.length);a[0]=this.extent,a[1]=this.n,a[2]=this.padding;let n=i;for(let i=0;i<t.length;i++){let r=t[i];a[3+i]=n,a.set(r,n),n+=r.length}return a[3+t.length]=n,a.set(this.keys,n),n+=this.keys.length,a[3+t.length+1]=n,a.set(this.bboxes,n),n+=this.bboxes.length,a.buffer}static serialize(t,i){let r=t.toArrayBuffer();return i&&i.push(r),{buffer:r}}static deserialize(i){return new t(i.buffer)}};let nk={};function nT(t,i,r={}){if(nk[t])throw Error(`${t} is already registered.`);Object.defineProperty(i,"_classRegistryKey",{value:t,writeable:!1}),nk[t]={klass:i,omit:r.omit||[],shallow:r.shallow||[]}}for(let t in nT("Object",Object),nT("Set",Set),nT("TransferableGridIndex",nw),nT("Color",iz),nT("Error",Error),nT("AJAXError",t$),nT("ResolvedImage",iU),nT("StylePropertyFunction",aD),nT("StyleExpression",ak,{omit:["_evaluator"]}),nT("ZoomDependentExpression",aM),nT("ZoomConstantExpression",aE),nT("CompoundExpression",r9,{omit:["_evaluate"]}),r4)r4[t]._classRegistryKey||nT(`Expression_${t}`,r4[t]);function nS(t){return t&&"u">typeof ArrayBuffer&&(t instanceof ArrayBuffer||t.constructor?.name==="ArrayBuffer")}function nA(t){let i=t.constructor;return t.$name||i._classRegistryKey}function nC(t){return!function(t){if("object"!=typeof t||!t)return!1;let i=nA(t);return i&&"Object"!==i}(t)&&(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||t instanceof Blob||t instanceof Error||nS(t)||t_(t)||ArrayBuffer.isView(t)||t instanceof ImageData)}function nE(t,i){if(nC(t))return(nS(t)||t_(t))&&i&&i.push(t),ArrayBuffer.isView(t)&&i&&i.push(t.buffer),t instanceof ImageData&&i&&i.push(t.data.buffer),t;if(Array.isArray(t)){let r=[];for(let a of t)r.push(nE(a,i));return r}if("object"!=typeof t)throw Error(`can't serialize object of type ${typeof t}`);let r=nA(t);if(!r)throw Error(`can't serialize object of unregistered class ${t.constructor.name}`);if(!nk[r])throw Error(`${r} is not registered.`);let{klass:a}=nk[r],n=a.serialize?a.serialize(t,i):{};if(a.serialize){if(n===i?.[i.length-1])throw Error("statically serialized object won't survive transfer of $name property")}else{for(let a in t){if(!t.hasOwnProperty(a)||nk[r].omit.includes(a))continue;let o=t[a];void 0!==o&&(n[a]=nk[r].shallow.includes(a)?o:nE(o,i))}t instanceof Error&&(n.message=t.message)}if(n.$name)throw Error("$name property is reserved for worker serialization logic.");return"Object"!==r&&(n.$name=r),n}function nM(t){if(nC(t))return t;if(Array.isArray(t))return t.map(nM);if("object"!=typeof t)throw Error(`can't deserialize object of type ${typeof t}`);let i=nA(t)||"Object";if(!nk[i])throw Error(`can't deserialize unregistered class ${i}`);let{klass:r}=nk[i];if(!r)throw Error(`can't deserialize unregistered class ${i}`);if(r.deserialize)return r.deserialize(t);let a=Object.create(r.prototype);for(let r of Object.keys(t)){if("$name"===r)continue;let n=t[r];a[r]=nk[i].shallow.includes(r)?n:nM(n)}return a}var nP=class{constructor(){this.first=!0}update(t,i){let r=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=r,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=r,!0):(this.lastFloorZoom>r?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=i):this.lastFloorZoom<r&&(this.lastIntegerZoom=r,this.lastIntegerZoomTime=i),t!==this.lastZoom&&(this.lastZoom=t,this.lastFloorZoom=r,!0))}},nD=class{constructor(t,i){this.zoom=t,i?(this.now=i.now||0,this.fadeDuration=i.fadeDuration||0,this.zoomHistory=i.zoomHistory||new nP,this.transition=i.transition||{}):(this.now=0,this.fadeDuration=0,this.zoomHistory=new nP,this.transition={})}crossFadingFactor(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let t=this.zoom,i=t-Math.floor(t),r=this.crossFadingFactor();return t>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:i+(1-i)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*i}}},nI=class{constructor(t,i,r,a){this.property=t,this.value=i,this.expression=function(t,i,r,a){if(ap(t))return new aD(t,i,r);if(aA(t)){let n=aP(t,i,r,a);if("error"===n.result)throw Error(n.value.map(t=>`${t.key}: ${t.message}`).join(", "));return n.value}{let i=t;return"color"===r.type&&"string"==typeof t?i=iz.parse(t):"padding"===r.type&&("number"==typeof t||Array.isArray(t))?i=iO.parse(t):"numberArray"===r.type&&("number"==typeof t||Array.isArray(t))?i=iB.parse(t):"colorArray"===r.type&&("string"==typeof t||Array.isArray(t))?i=ij.parse(t):"variableAnchorOffsetCollection"===r.type&&Array.isArray(t)?i=iV.parse(t):"projectionDefinition"===r.type&&"string"==typeof t&&(i=iG.parse(t)),{globalStateRefs:new Set,_globalState:null,kind:"constant",evaluate:()=>i}}}(void 0===i?t.specification.default:i,r,t.specification,a)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}getGlobalStateRefs(){return this.expression.globalStateRefs||new Set}possiblyEvaluate(t,i,r){return this.property.possiblyEvaluate(this,t,i,r)}},nz=class{constructor(t,i,r){this.property=t,this.value=new nI(t,void 0,i,r)}transitioned(t,i){return i.value===this.value?i:new nF(this.property,this.value,i,e8({},t.transition,this.transition),t.now)}untransitioned(){return new nF(this.property,this.value,null,{},0)}},nL=class{constructor(t,i,r){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues),this._globalState=r,this._rootKey=i}_propertyRootKey(t){return`${this._rootKey}.${String(t)}`}hasProperty(t){return t in this._properties.defaultTransitionablePropertyValues}getValue(t){return tl(this._values[t].value.value)}setValue(t,i){Object.hasOwn(this._values,t)||(this._values[t]=new nz(this._values[t].property,this._propertyRootKey(t),this._globalState)),this._values[t].value=new nI(this._values[t].property,null===i?void 0:tl(i),this._propertyRootKey(t),this._globalState)}setValues(t){for(let i in t){let r=t[i];i.endsWith("-transition")?this.setTransition(i.slice(0,-11),r):ts(this._values[i].value.value,r)||this.setValue(i,r)}}getTransition(t){return tl(this._values[t].transition)}setTransition(t,i){Object.hasOwn(this._values,t)||(this._values[t]=new nz(this._values[t].property,this._propertyRootKey(t),this._globalState)),this._values[t].transition=tl(i)||void 0}serialize(){let t={};for(let i of Object.keys(this._values)){let r=this.getValue(i);void 0!==r&&(t[i]=r);let a=this.getTransition(i);void 0!==a&&(t[`${i}-transition`]=a)}return t}transitioned(t,i){let r=new nR(this._properties);for(let a of Object.keys(this._values))r._values[a]=this._values[a].transitioned(t,i._values[a]);return r}untransitioned(){let t=new nR(this._properties);for(let i of Object.keys(this._values))t._values[i]=this._values[i].untransitioned();return t}},nF=class{constructor(t,i,r,a,n){this.property=t,this.value=i,this.begin=n+a.delay||0,this.end=this.begin+a.duration||0,t.specification.transition&&(a.delay||a.duration)&&(this.prior=r)}possiblyEvaluate(t,i,r){let a=t.now||0,n=this.value.possiblyEvaluate(t,i,r),o=this.prior;if(!o)return n;if(a>this.end||this.value.isDataDriven())return this.prior=null,n;if(a<this.begin)return o.possiblyEvaluate(t,i,r);{let s=(a-this.begin)/(this.end-this.begin);return this.property.interpolate(o.possiblyEvaluate(t,i,r),n,function(t){if(t<=0)return 0;if(t>=1)return 1;let i=t*t,r=i*t;return 4*(t<.5?r:3*(t-i)+r-.75)}(s))}}},nR=class{constructor(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)}possiblyEvaluate(t,i,r){let a=new nj(this._properties);for(let n of Object.keys(this._values))a._values[n]=this._values[n].possiblyEvaluate(t,i,r);return a}hasTransition(){for(let t of Object.keys(this._values))if(this._values[t].prior)return!0;return!1}},nO=class{constructor(t,i,r){this._properties=t,this._values=Object.create(t.defaultPropertyValues),this._globalState=r,this._rootKey=i}_propertyRootKey(t){return`${this._rootKey}.${String(t)}`}hasValue(t){return void 0!==this._values[t].value}hasProperty(t){return t in this._properties.defaultPropertyValues}getValue(t){return tl(this._values[t].value)}setValue(t,i){this._values[t]=new nI(this._values[t].property,null===i?void 0:tl(i),this._propertyRootKey(t),this._globalState)}serialize(){let t={};for(let i of Object.keys(this._values)){let r=this.getValue(i);void 0!==r&&(t[i]=r)}return t}possiblyEvaluate(t,i,r){let a=new nj(this._properties);for(let n of Object.keys(this._values))a._values[n]=this._values[n].possiblyEvaluate(t,i,r);return a}},nB=class{constructor(t,i,r){this.property=t,this.value=i,this.parameters=r}isConstant(){return"constant"===this.value.kind}constantOr(t){return"constant"===this.value.kind?this.value.value:t}evaluate(t,i,r,a){return this.property.evaluate(this.value,this.parameters,t,i,r,a)}},nj=class{constructor(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)}get(t){return this._values[t]}};function nN(t){if(Array.isArray(t))return t.length;let i=t?.values;return Array.isArray(i)?i.length:void 0}function n$(t,i){let r=nN(t),a=nN(i);return void 0!==r&&void 0!==a&&r!==a}var nV=class{constructor(t,i){this.specification=t,this.name=i}possiblyEvaluate(t,i){if(t.isDataDriven())throw Error("Value should not be data driven");return t.expression.evaluate(i)}interpolate(t,i,r){if(n$(t,i))return tu(`Property "${this.name}" is trying to interpolate arrays of different lengths. Rendering may 'jump'.`),i;let a=i3[this.specification.type];return a?a(t,i,r):t}},nU=class{constructor(t,i,r){this.specification=t,this.name=i,this.overrides=r}possiblyEvaluate(t,i,r,a){return"constant"===t.expression.kind||"camera"===t.expression.kind?new nB(this,{kind:"constant",value:t.expression.evaluate(i,null,{},r,a)},i):new nB(this,t.expression,i)}interpolate(t,i,r){if("constant"!==t.value.kind||"constant"!==i.value.kind)return t;if(void 0===t.value.value||void 0===i.value.value)return new nB(this,{kind:"constant",value:void 0},t.parameters);if(n$(t.value.value,i.value.value))return tu(`Property "${this.name}" is trying to interpolate arrays of different lengths. Rendering may 'jump'.`),i;let a=i3[this.specification.type];return a?new nB(this,{kind:"constant",value:a(t.value.value,i.value.value,r)},t.parameters):t}evaluate(t,i,r,a,n,o){return"constant"===t.kind?t.value:t.evaluate(i,r,a,n,o)}},nG=class extends nU{possiblyEvaluate(t,i,r,a){if(void 0===t.value)return new nB(this,{kind:"constant",value:void 0},i);if("constant"===t.expression.kind){let n=t.expression.evaluate(i,null,{},r,a),o="resolvedImage"===t.property.specification.type&&"string"!=typeof n?n.name:n;return new nB(this,{kind:"constant",value:this._calculate(o,o,o,i)},i)}return"camera"===t.expression.kind?new nB(this,{kind:"constant",value:this._calculate(t.expression.evaluate({zoom:i.zoom-1}),t.expression.evaluate({zoom:i.zoom}),t.expression.evaluate({zoom:i.zoom+1}),i)},i):new nB(this,t.expression,i)}evaluate(t,i,r,a,n,o){if("source"===t.kind){let s=t.evaluate(i,r,a,n,o);return this._calculate(s,s,s,i)}return"composite"===t.kind?this._calculate(t.evaluate({zoom:Math.floor(i.zoom)-1},r,a),t.evaluate({zoom:Math.floor(i.zoom)},r,a),t.evaluate({zoom:Math.floor(i.zoom)+1},r,a),i):t.value}_calculate(t,i,r,a){return a.zoom>a.zoomHistory.lastIntegerZoom?{from:t,to:i}:{from:r,to:i}}interpolate(t){return t}},nq=class{constructor(t,i){this.specification=t,this.name=i}possiblyEvaluate(t,i,r,a){if(void 0!==t.value){if("constant"===t.expression.kind){let n=t.expression.evaluate(i,null,{},r,a);return this._calculate(n,n,n,i)}return this._calculate(t.expression.evaluate(new nD(Math.floor(i.zoom-1),i)),t.expression.evaluate(new nD(Math.floor(i.zoom),i)),t.expression.evaluate(new nD(Math.floor(i.zoom+1),i)),i)}}_calculate(t,i,r,a){return a.zoom>a.zoomHistory.lastIntegerZoom?{from:t,to:i}:{from:r,to:i}}interpolate(t){return t}},nZ=class{constructor(t,i){this.specification=t,this.name=i}possiblyEvaluate(t,i,r,a){return!!t.expression.evaluate(i,null,{},r,a)}interpolate(){return!1}},nH=class{constructor(t){for(let i in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){let r=t[i];r.specification.overridable&&this.overridableProperties.push(i);let a=this.defaultPropertyValues[i]=new nI(r,void 0,r.name,void 0),n=this.defaultTransitionablePropertyValues[i]=new nz(r,r.name,void 0);this.defaultTransitioningPropertyValues[i]=n.untransitioned(),this.defaultPossiblyEvaluatedValues[i]=a.possiblyEvaluate({})}}};nT("DataDrivenProperty",nU),nT("DataConstantProperty",nV),nT("CrossFadedDataDrivenProperty",nG),nT("CrossFadedProperty",nq),nT("ColorRampProperty",nZ);let nW=" is a PAINT property not a LAYOUT property. Use get/setPaintProperty instead?",nX=" is a LAYOUT property not a PAINT property. Use get/setLayoutProperty instead?";var nY=class extends tY{constructor(t,i,r){var a;if(super(),this.id=t.id,this.type=t.type,this._globalState=r,this._featureFilter={filter:()=>!0,needGeometry:!1,getGlobalStateRefs:()=>new Set},this._visibilityExpression=(a=this.visibility,new ny(a,`layers[${this.id}].layout.visibility`,r)),"custom"!==t.type&&(this.metadata=t.metadata,this.minzoom=t.minzoom,this.maxzoom=t.maxzoom,"background"!==t.type&&(this.source=t.source,this.sourceLayer=t["source-layer"],this.filter=t.filter,this._featureFilter=a$(t.filter,`layers[${this.id}].filter`,r)),i.layout&&(this._unevaluatedLayout=new nO(i.layout,`layers[${this.id}].layout`,r)),i.paint)){for(let a in this._transitionablePaint=new nL(i.paint,`layers[${this.id}].paint`,r),t.paint)this.setPaintProperty(a,t.paint[a],{validate:!1});for(let i in t.layout)this.setLayoutProperty(i,t.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new nj(i.paint)}}setFilter(t){this.filter=t,this._featureFilter=a$(t,`layers[${this.id}].filter`,this._globalState)}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(t){if("visibility"===t)return this.visibility;if(this._transitionablePaint?.hasProperty(t))throw Error(t+nW);if(!this._unevaluatedLayout)throw Error(`Cannot get layout property "${t}" on layer type "${this.type}" which has no layout properties.`);return this._unevaluatedLayout.getValue(t)}getLayoutAffectingGlobalStateRefs(){let t=new Set;for(let i of this._visibilityExpression.getGlobalStateRefs())t.add(i);if(this._unevaluatedLayout)for(let i in this._unevaluatedLayout._values)for(let r of this._unevaluatedLayout._values[i].getGlobalStateRefs())t.add(r);for(let i of this._featureFilter.getGlobalStateRefs())t.add(i);return t}getPaintAffectingGlobalStateRefs(){let t=new globalThis.Map;if(this._transitionablePaint)for(let i in this._transitionablePaint._values){let r=this._transitionablePaint._values[i].value;for(let a of r.getGlobalStateRefs()){let n=t.get(a)??[];n.push({name:i,value:r.value}),t.set(a,n)}}return t}getVisibilityAffectingGlobalStateRefs(){return this._visibilityExpression.getGlobalStateRefs()}setLayoutProperty(t,i,r={}){if("visibility"===t){this.visibility=i,this._visibilityExpression.setValue(i),this.recalculateVisibility();return}this._transitionablePaint?.hasProperty(t)?this.fire(new tX(Error(t+nW))):null!=i&&this._validate(nd.layoutProperty,`layers.${this.id}.layout.${t}`,t,i,r)||this._unevaluatedLayout.setValue(t,i)}getPaintProperty(t){if(t.endsWith("-transition")){let i=t.slice(0,-11);if("visibility"===i||this._unevaluatedLayout?.hasProperty(i))throw Error(t+nX);return this._transitionablePaint.getTransition(i)}if("visibility"===t||this._unevaluatedLayout?.hasProperty(t))throw Error(t+nX);return this._transitionablePaint.getValue(t)}setPaintProperty(t,i,r={}){if("visibility"===t||this._unevaluatedLayout?.hasProperty(t))return this.fire(new tX(Error(t+nX))),!1;if(null!=i&&this._validate(nd.paintProperty,`layers.${this.id}.paint.${t}`,t,i,r))return!1;if(t.endsWith("-transition"))return this._transitionablePaint.setTransition(t.slice(0,-11),i||void 0),!1;{let r=this._transitionablePaint._values[t],a="cross-faded-data-driven"===r.property.specification["property-type"],n=r.value.isDataDriven(),o=r.value;this._transitionablePaint.setValue(t,i),this._handleSpecialPaintPropertyUpdate(t);let s=this._transitionablePaint._values[t].value;return s.isDataDriven()||n||a||this._handleOverridablePaintPropertyUpdate(t,o,s)}}_handleSpecialPaintPropertyUpdate(t){}_handleOverridablePaintPropertyUpdate(t,i,r){return!1}isHidden(t=this.minzoom,i=!1){return!!(this.minzoom&&t<(i?Math.floor(this.minzoom):this.minzoom))||!!this.maxzoom&&t>=this.maxzoom||"none"===this._evaluatedVisibility}updateTransitions(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculateVisibility(){this._evaluatedVisibility=this._visibilityExpression.evaluate()}recalculate(t,i){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,i)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,i)}serialize(){let t={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout?.serialize(),paint:this._transitionablePaint?.serialize()};return this.visibility&&(t.layout||={},t.layout.visibility=this.visibility),to(t,(t,i)=>void 0!==t&&!("layout"===i&&!Object.keys(t).length)&&!("paint"===i&&!Object.keys(t).length))}_validate(t,i,r,a,n={}){return nx(this,t,{key:i,layerType:this.type,objectKey:r,value:a},n)}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let t in this.paint._values){let i=this.paint.get(t);if(i instanceof nB&&al(i.property.specification)&&("source"===i.value.kind||"composite"===i.value.kind)&&i.value.isStateDependent)return!0}return!1}},nK={get paint(){return o||=new nH({"raster-opacity":new nV(tK.paint_raster["raster-opacity"],"raster-opacity"),"raster-hue-rotate":new nV(tK.paint_raster["raster-hue-rotate"],"raster-hue-rotate"),"raster-brightness-min":new nV(tK.paint_raster["raster-brightness-min"],"raster-brightness-min"),"raster-brightness-max":new nV(tK.paint_raster["raster-brightness-max"],"raster-brightness-max"),"raster-saturation":new nV(tK.paint_raster["raster-saturation"],"raster-saturation"),"raster-contrast":new nV(tK.paint_raster["raster-contrast"],"raster-contrast"),resampling:new nV(tK.paint_raster.resampling,"resampling"),"raster-resampling":new nV(tK.paint_raster["raster-resampling"],"raster-resampling"),"raster-fade-duration":new nV(tK.paint_raster["raster-fade-duration"],"raster-fade-duration")})}},nJ=class extends nY{constructor(t,i){super(t,nK,i)}};let nQ={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};var n1=class{constructor(t,i){this._structArray=t,this._pos1=i*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}},n0=class{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(t,i){return t._trim(),i&&(t.isTransferred=!0,i.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}}static deserialize(t){let i=Object.create(this.prototype);return i.arrayBuffer=t.arrayBuffer,i.length=t.length,i.capacity=t.arrayBuffer.byteLength/i.bytesPerElement,i._refreshViews(),i}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(t){this.reserve(t),this.length=t}reserve(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let i=this.uint8;this._refreshViews(),i&&this.uint8.set(i)}}_refreshViews(){throw Error("_refreshViews() must be implemented by each concrete StructArray layout")}freeBufferAfterUpload(){this.arrayBuffer=new ArrayBuffer(0),this._refreshViews()}};function n2(t,i=1){let r=0,a=0;return{members:t.map(t=>{let n=nQ[t.type].BYTES_PER_ELEMENT,o=r=n3(r,Math.max(i,n)),s=t.components||1;return a=Math.max(a,n),r+=n*s,{name:t.name,type:t.type,components:s,offset:o}}),size:n3(r,Math.max(a,i)),alignment:i}}function n3(t,i){return Math.ceil(t/i)*i}var n5=class extends n0{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,i){let r=this.length;return this.resize(r+1),this.emplace(r,t,i)}emplace(t,i,r){let a=2*t;return this.int16[a+0]=i,this.int16[a+1]=r,t}};n5.prototype.bytesPerElement=4,nT("StructArrayLayout2i4",n5);var n4=class extends n0{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,i,r){let a=this.length;return this.resize(a+1),this.emplace(a,t,i,r)}emplace(t,i,r,a){let n=3*t;return this.int16[n+0]=i,this.int16[n+1]=r,this.int16[n+2]=a,t}};n4.prototype.bytesPerElement=6,nT("StructArrayLayout3i6",n4);var n6=class extends n0{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,i,r,a){let n=this.length;return this.resize(n+1),this.emplace(n,t,i,r,a)}emplace(t,i,r,a,n){let o=4*t;return this.int16[o+0]=i,this.int16[o+1]=r,this.int16[o+2]=a,this.int16[o+3]=n,t}};n6.prototype.bytesPerElement=8,nT("StructArrayLayout4i8",n6);var n8=class extends n0{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,i,r,a,n,o){let s=this.length;return this.resize(s+1),this.emplace(s,t,i,r,a,n,o)}emplace(t,i,r,a,n,o,s){let l=6*t;return this.int16[l+0]=i,this.int16[l+1]=r,this.int16[l+2]=a,this.int16[l+3]=n,this.int16[l+4]=o,this.int16[l+5]=s,t}};n8.prototype.bytesPerElement=12,nT("StructArrayLayout2i4i12",n8);var n7=class extends n0{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,i,r,a,n,o){let s=this.length;return this.resize(s+1),this.emplace(s,t,i,r,a,n,o)}emplace(t,i,r,a,n,o,s){let l=4*t,c=8*t;return this.int16[l+0]=i,this.int16[l+1]=r,this.uint8[c+4]=a,this.uint8[c+5]=n,this.uint8[c+6]=o,this.uint8[c+7]=s,t}};n7.prototype.bytesPerElement=8,nT("StructArrayLayout2i4ub8",n7);var n9=class extends n0{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,i){let r=this.length;return this.resize(r+1),this.emplace(r,t,i)}emplace(t,i,r){let a=2*t;return this.float32[a+0]=i,this.float32[a+1]=r,t}};n9.prototype.bytesPerElement=8,nT("StructArrayLayout2f8",n9);var oe=class extends n0{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,i,r,a,n,o,s,l,c,u){let h=this.length;return this.resize(h+1),this.emplace(h,t,i,r,a,n,o,s,l,c,u)}emplace(t,i,r,a,n,o,s,l,c,u,h){let d=10*t;return this.uint16[d+0]=i,this.uint16[d+1]=r,this.uint16[d+2]=a,this.uint16[d+3]=n,this.uint16[d+4]=o,this.uint16[d+5]=s,this.uint16[d+6]=l,this.uint16[d+7]=c,this.uint16[d+8]=u,this.uint16[d+9]=h,t}};oe.prototype.bytesPerElement=20,nT("StructArrayLayout10ui20",oe);var ot=class extends n0{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,i,r,a,n,o,s,l){let c=this.length;return this.resize(c+1),this.emplace(c,t,i,r,a,n,o,s,l)}emplace(t,i,r,a,n,o,s,l,c){let u=8*t;return this.uint16[u+0]=i,this.uint16[u+1]=r,this.uint16[u+2]=a,this.uint16[u+3]=n,this.uint16[u+4]=o,this.uint16[u+5]=s,this.uint16[u+6]=l,this.uint16[u+7]=c,t}};ot.prototype.bytesPerElement=16,nT("StructArrayLayout8ui16",ot);var oi=class extends n0{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,i,r,a,n,o,s,l,c,u,h,d,f){let p=this.length;return this.resize(p+1),this.emplace(p,t,i,r,a,n,o,s,l,c,u,h,d,f)}emplace(t,i,r,a,n,o,s,l,c,u,h,d,f,p){let m=14*t;return this.int16[m+0]=i,this.int16[m+1]=r,this.int16[m+2]=a,this.int16[m+3]=n,this.uint16[m+4]=o,this.uint16[m+5]=s,this.uint16[m+6]=l,this.uint16[m+7]=c,this.int16[m+8]=u,this.int16[m+9]=h,this.int16[m+10]=d,this.int16[m+11]=f,this.float32[7*t+6]=p,t}};oi.prototype.bytesPerElement=28,nT("StructArrayLayout4i4ui4i1f28",oi);var or=class extends n0{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,i,r){let a=this.length;return this.resize(a+1),this.emplace(a,t,i,r)}emplace(t,i,r,a){let n=3*t;return this.float32[n+0]=i,this.float32[n+1]=r,this.float32[n+2]=a,t}};or.prototype.bytesPerElement=12,nT("StructArrayLayout3f12",or);var oa=class extends n0{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(t){let i=this.length;return this.resize(i+1),this.emplace(i,t)}emplace(t,i){return this.uint32[+t+0]=i,t}};
vendor: 4,847 bytes, line 365
365oa.prototype.bytesPerElement=4,nT("StructArrayLayout1ul4",oa);var on=class extends n0{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,i,r,a,n,o,s,l,c){let u=this.length;return this.resize(u+1),this.emplace(u,t,i,r,a,n,o,s,l,c)}emplace(t,i,r,a,n,o,s,l,c,u){let h=10*t;return this.int16[h+0]=i,this.int16[h+1]=r,this.int16[h+2]=a,this.int16[h+3]=n,this.int16[h+4]=o,this.int16[h+5]=s,this.uint32[5*t+3]=l,this.uint16[h+8]=c,this.uint16[h+9]=u,t}};on.prototype.bytesPerElement=20,nT("StructArrayLayout6i1ul2ui20",on);var oo=class extends n0{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,i,r,a,n,o){let s=this.length;return this.resize(s+1),this.emplace(s,t,i,r,a,n,o)}emplace(t,i,r,a,n,o,s){let l=6*t;return this.int16[l+0]=i,this.int16[l+1]=r,this.int16[l+2]=a,this.int16[l+3]=n,this.int16[l+4]=o,this.int16[l+5]=s,t}};oo.prototype.bytesPerElement=12,nT("StructArrayLayout2i2i2i12",oo);var os=class extends n0{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,i,r,a,n){let o=this.length;return this.resize(o+1),this.emplace(o,t,i,r,a,n)}emplace(t,i,r,a,n,o){let s=4*t,l=8*t;return this.float32[s+0]=i,this.float32[s+1]=r,this.float32[s+2]=a,this.int16[l+6]=n,this.int16[l+7]=o,t}};os.prototype.bytesPerElement=16,nT("StructArrayLayout2f1f2i16",os);var ol=class extends n0{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(t,i,r,a,n,o){let s=this.length;return this.resize(s+1),this.emplace(s,t,i,r,a,n,o)}emplace(t,i,r,a,n,o,s){let l=16*t,c=4*t,u=8*t;return this.uint8[l+0]=i,this.uint8[l+1]=r,this.float32[c+1]=a,this.float32[c+2]=n,this.int16[u+6]=o,this.int16[u+7]=s,t}};ol.prototype.bytesPerElement=16,nT("StructArrayLayout2ub2f2i16",ol);var oc=class extends n0{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,i,r){let a=this.length;return this.resize(a+1),this.emplace(a,t,i,r)}emplace(t,i,r,a){let n=3*t;return this.uint16[n+0]=i,this.uint16[n+1]=r,this.uint16[n+2]=a,t}};oc.prototype.bytesPerElement=6,nT("StructArrayLayout3ui6",oc);var ou=class extends n0{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,i,r,a,n,o,s,l,c,u,h,d,f,p,m,g,y,_){let v=this.length;return this.resize(v+1),this.emplace(v,t,i,r,a,n,o,s,l,c,u,h,d,f,p,m,g,y,_)}emplace(t,i,r,a,n,o,s,l,c,u,h,d,f,p,m,g,y,_,v){let b=26*t,x=13*t,w=52*t;return this.int16[b+0]=i,this.int16[b+1]=r,this.uint16[b+2]=a,this.uint16[b+3]=n,this.uint32[x+2]=o,this.uint32[x+3]=s,this.uint32[x+4]=l,this.uint16[b+10]=c,this.uint16[b+11]=u,this.uint16[b+12]=h,this.float32[x+7]=d,this.float32[x+8]=f,this.uint8[w+36]=p,this.uint8[w+37]=m,this.uint8[w+38]=g,this.uint32[x+10]=y,this.int16[b+22]=_,this.float32[x+12]=v,t}};ou.prototype.bytesPerElement=52,nT("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i1f52",ou);var oh=class extends n0{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,i,r,a,n,o,s,l,c,u,h,d,f,p,m,g,y,_,v,b,x,w,k,T,S,A,C,E,M){let P=this.length;return this.resize(P+1),this.emplace(P,t,i,r,a,n,o,s,l,c,u,h,d,f,p,m,g,y,_,v,b,x,w,k,T,S,A,C,E,M)}emplace(t,i,r,a,n,o,s,l,c,u,h,d,f,p,m,g,y,_,v,b,x,w,k,T,S,A,C,E,M,P){let D=34*t,I=17*t;return this.int16[D+0]=i,this.int16[D+1]=r,this.int16[D+2]=a,this.int16[D+3]=n,this.int16[D+4]=o,this.int16[D+5]=s,this.int16[D+6]=l,this.int16[D+7]=c,this.uint16[D+8]=u,this.uint16[D+9]=h,this.uint16[D+10]=d,this.uint16[D+11]=f,this.uint16[D+12]=p,this.uint16[D+13]=m,this.uint16[D+14]=g,this.uint16[D+15]=y,this.uint16[D+16]=_,this.uint16[D+17]=v,this.uint16[D+18]=b,this.uint16[D+19]=x,this.uint16[D+20]=w,this.uint16[D+21]=k,this.uint16[D+22]=T,this.uint32[I+12]=S,this.float32[I+13]=A,this.float32[I+14]=C,this.uint16[D+30]=E,this.uint16[D+31]=M,this.float32[I+16]=P,t}};oh.prototype.bytesPerElement=68,nT("StructArrayLayout8i15ui1ul2f2ui1f68",oh);var od=class extends n0{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t){let i=this.length;return this.resize(i+1),this.emplace(i,t)}emplace(t,i){return this.float32[+t+0]=i,t}};
365od.prototype.bytesPerElement=4,nT("StructArrayLayout1f4",od);var of=class extends n0{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,i,r){let a=this.length;return this.resize(a+1),this.emplace(a,t,i,r)}emplace(t,i,r,a){let n=3*t;return this.uint16[6*t+0]=i,this.float32[n+1]=r,this.float32[n+2]=a,t}};of.prototype.bytesPerElement=12,nT("StructArrayLayout1ui2f12",of);var op=class extends n0{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,i,r){let a=this.length;return this.resize(a+1),this.emplace(a,t,i,r)}emplace(t,i,r,a){let n=4*t;return this.uint32[2*t+0]=i,this.uint16[n+2]=r,this.uint16[n+3]=a,t}};op.prototype.bytesPerElement=8,nT("StructArrayLayout1ul2ui8",op);var om=class extends n0{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t,i){let r=this.length;return this.resize(r+1),this.emplace(r,t,i)}emplace(t,i,r){let a=2*t;return this.uint16[a+0]=i,this.uint16[a+1]=r,t}};om.prototype.bytesPerElement=4,nT("StructArrayLayout2ui4",om);var og=class extends n0{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(t){let i=this.length;return this.resize(i+1),this.emplace(i,t)}emplace(t,i){return this.uint16[+t+0]=i,t}};og.prototype.bytesPerElement=2,nT("StructArrayLayout1ui2",og);var oy=class extends n0{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(t,i,r,a){let n=this.length;return this.resize(n+1),this.emplace(n,t,i,r,a)}emplace(t,i,r,a,n){let o=4*t;return this.float32[o+0]=i,this.float32[o+1]=r,this.float32[o+2]=a,this.float32[o+3]=n,t}};oy.prototype.bytesPerElement=16,nT("StructArrayLayout4f16",oy);var o_=class extends n1{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new R(this.anchorPointX,this.anchorPointY)}};o_.prototype.size=20;var ov=class extends on{get(t){return new o_(this,t)}};nT("CollisionBoxArray",ov);var ob=class extends n1{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(t){this._structArray.uint8[this._pos1+37]=t}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(t){this._structArray.uint8[this._pos1+38]=t}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(t){this._structArray.uint32[this._pos4+10]=t}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}get heightOffset(){return this._structArray.float32[this._pos4+12]}};ob.prototype.size=52;var ox=class extends ou{get(t){return new ob(this,t)}};nT("PlacedSymbolArray",ox);var ow=class extends n1{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}
365get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(t){this._structArray.uint32[this._pos4+12]=t}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}get heightOffset(){return this._structArray.float32[this._pos4+16]}};ow.prototype.size=68;var ok=class extends oh{get(t){return new ow(this,t)}};nT("SymbolInstanceArray",ok);var oT=class extends od{getoffsetX(t){return this.float32[+t+0]}};nT("GlyphOffsetArray",oT);var oS=class extends n4{getx(t){return this.int16[3*t+0]}gety(t){return this.int16[3*t+1]}gettileUnitDistanceFromAnchor(t){return this.int16[3*t+2]}};nT("SymbolLineVertexArray",oS);var oA=class extends n1{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}};oA.prototype.size=12;var oC=class extends of{get(t){return new oA(this,t)}};nT("TextAnchorOffsetArray",oC);var oE=class extends n1{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}};oE.prototype.size=8;var oM=class extends op{get(t){return new oE(this,t)}};nT("FeatureIndexArray",oM);var oP=class extends n5{},oD=class extends n4{},oI=class extends n6{},oz=class extends n5{},oL=class extends n5{},oF=class extends n8{},oR=class extends n7{},oO=class extends n9{},oB=class extends oe{},oj=class extends ot{},oN=class extends oi{},o$=class extends or{},oV=class extends oa{},oU=class extends oo{},oG=class extends os{},oq=class extends ol{},oZ=class extends oc{},oH=class extends oc{},oW=class extends om{},oX=class extends og{};let oY=n2([{name:"a_pos",components:2,type:"Int16"}],4),oK=oY.members;oY.size,oY.alignment;var oJ=class t{constructor(t=[]){this._forceNewSegmentOnNextPrepare=!1,this.segments=t}prepareSegment(i,r,a,n){let o=this.segments[this.segments.length-1];return i>t.MAX_VERTEX_ARRAY_LENGTH&&tu(`Max vertices per segment is ${t.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${i}. Consider using the \`fillLargeMeshArrays\` function if you require meshes with more than ${t.MAX_VERTEX_ARRAY_LENGTH} vertices.`),this._forceNewSegmentOnNextPrepare||!o||o.vertexLength+i>t.MAX_VERTEX_ARRAY_LENGTH||o.sortKey!==n?this.createNewSegment(r,a,n):o}createNewSegment(t,i,r){let a={vertexOffset:t.length,primitiveOffset:i.length,vertexLength:0,primitiveLength:0,vaos:{}};return void 0!==r&&(a.sortKey=r),this._forceNewSegmentOnNextPrepare=!1,this.segments.push(a),a}getOrCreateLatestSegment(t,i,r){return this.prepareSegment(0,t,i,r)}forceNewSegmentOnNextPrepare(){this._forceNewSegmentOnNextPrepare=!0}get(){return this.segments}destroy(){for(let t of this.segments)for(let i in t.vaos)t.vaos[i].destroy()}static simpleSegment(i,r,a,n){return new t([{vertexOffset:i,primitiveOffset:r,vertexLength:a,primitiveLength:n,vaos:{},sortKey:0}])}};function oQ(t,i){return 256*(t=e4(Math.floor(t),0,255))+(i=e4(Math.floor(i),0,255))}oJ.MAX_VERTEX_ARRAY_LENGTH=65535,nT("SegmentVector",oJ);let o1=n2([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]),o0=n2([{name:"a_dasharray_from",components:4,type:"Uint16"},{name:"a_dasharray_to",components:4,type:"Uint16"}]);var o2=F((t,i)=>{void 0!==i&&(i.exports=function(t,i){for(var r,a,n=3&t.length,o=t.length-n,s=i,l=0;l<o;)a=255&t.charCodeAt(l)|(255&t.charCodeAt(++l))<<8|(255&t.charCodeAt(++l))<<16|(255&t.charCodeAt(++l))<<24,++l,s^=a=(65535&(a=(a=(65535&a)*0xcc9e2d51+(((a>>>16)*0xcc9e2d51&65535)<<16)|0)<<15|a>>>17))*0x1b873593+(((a>>>16)*0x1b873593&65535)<<16)|0,s=(65535&(r=(65535&(s=s<<13|s>>>19))*5+(((s>>>16)*5&65535)<<16)|0))+27492+(((r>>>16)+58964&65535)<<16);switch(a=0,n){case 3:a^=(255&t.charCodeAt(l+2))<<16;case 2:a^=(255&t.charCodeAt(l+1))<<8;case 1:a^=255&t.charCodeAt(l),s^=a=(65535&(a=(a=(65535&a)*0xcc9e2d51+(((a>>>16)*0xcc9e2d51&65535)<<16)|0)<<15|a>>>17))*0x1b873593+(((a>>>16)*0x1b873593&65535)<<16)|0}return s^=t.length,s^=s>>>16,s=(65535&s)*0x85ebca6b+(((s>>>16)*0x85ebca6b&65535)<<16)|0,s^=s>>>13,s=(65535&s)*0xc2b2ae35+(((s>>>16)*0xc2b2ae35&65535)<<16)|0,(s^=s>>>16)>>>0})}),o3=F((t,i)=>{i.exports=function(t,i){for(var r,a=t.length,n=i^a,o=0;a>=4;)r=(65535&(r=255&t.charCodeAt(o)|(255&t.charCodeAt(++o))<<8|(255&t.charCodeAt(++o))<<16|(255&t.charCodeAt(++o))<<24))*0x5bd1e995+(((r>>>16)*0x5bd1e995&65535)<<16),r^=r>>
vendor: 20,521 bytes, line 365
365>24,n=(65535&n)*0x5bd1e995+(((n>>>16)*0x5bd1e995&65535)<<16)^(r=(65535&r)*0x5bd1e995+(((r>>>16)*0x5bd1e995&65535)<<16)),a-=4,++o;switch(a){case 3:n^=(255&t.charCodeAt(o+2))<<16;case 2:n^=(255&t.charCodeAt(o+1))<<8;case 1:n^=255&t.charCodeAt(o),n=(65535&n)*0x5bd1e995+(((n>>>16)*0x5bd1e995&65535)<<16)}return n^=n>>>13,n=(65535&n)*0x5bd1e995+(((n>>>16)*0x5bd1e995&65535)<<16),(n^=n>>>15)>>>0}}),o5=((t,i,r)=>{if(i&&"object"==typeof i||"function"==typeof i)for(var a,n=D(i),o=0,s=n.length;o<s;o++)a=n[o],z.call(t,a)||void 0===a||M(t,a,{get:(t=>i[t]).bind(null,a),enumerable:!(r=P(i,a))||r.enumerable});return t})(M(null==(T=F((t,i)=>{var r=o2(),a=o3();i.exports=r,i.exports.murmur3=r,i.exports.murmur2=a})())?{}:E(I(T)),"default",{value:T,enumerable:!0}),T),o4=class t{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(t,i,r,a){this.ids.push(o6(t)),this.positions.push(i,r,a)}getPositions(t){if(!this.indexed)throw Error("Trying to get index, but feature positions are not indexed");let i=o6(t),r=0,a=this.ids.length-1;for(;r<a;){let t=r+a>>1;this.ids[t]>=i?a=t:r=t+1}let n=[];for(;this.ids[r]===i;){let t=this.positions[3*r],i=this.positions[3*r+1],a=this.positions[3*r+2];n.push({index:t,start:i,end:a}),r++}return n}static serialize(t,i){let r=new Float64Array(t.ids),a=new Uint32Array(t.positions);return function t(i,r,a,n){for(;a<n;){let o=i[a+n>>1],s=a-1,l=n+1;for(;;){do s++;while(i[s]<o)do l--;while(i[l]>o)if(s>=l)break;o8(i,s,l),o8(r,3*s,3*l),o8(r,3*s+1,3*l+1),o8(r,3*s+2,3*l+2)}l-a<n-l?(t(i,r,a,l),a=l+1):(t(i,r,l+1,n),n=l)}}(r,a,0,r.length-1),i&&i.push(r.buffer,a.buffer),{ids:r,positions:a}}static deserialize(i){let r=new t;return r.ids=i.ids,r.positions=i.positions,r.indexed=!0,r}};function o6(t){let i=+t;return!isNaN(i)&&i<=0x1fffffffffffff?i:(0,o5.default)(String(t))}function o8(t,i,r){let a=t[i];t[i]=t[r],t[r]=a}nT("FeaturePositionMap",o4);var o7=class{constructor(t,i){this.gl=t.gl,this.location=i}},o9=class extends o7{constructor(t,i){super(t,i),this.current=0}set(t){this.current!==t&&(this.current=t,this.gl.uniform1i(this.location,t))}},se=class extends o7{constructor(t,i){super(t,i),this.current=0}set(t){this.current!==t&&(this.current=t,this.gl.uniform1f(this.location,t))}},st=class extends o7{constructor(t,i){super(t,i),this.current=[0,0]}set(t){(t[0]!==this.current[0]||t[1]!==this.current[1])&&(this.current=t,this.gl.uniform2f(this.location,t[0],t[1]))}},si=class extends o7{constructor(t,i){super(t,i),this.current=[0,0,0]}set(t){(t[0]!==this.current[0]||t[1]!==this.current[1]||t[2]!==this.current[2])&&(this.current=t,this.gl.uniform3f(this.location,t[0],t[1],t[2]))}},sr=class extends o7{constructor(t,i){super(t,i),this.current=[0,0,0,0]}set(t){(t[0]!==this.current[0]||t[1]!==this.current[1]||t[2]!==this.current[2]||t[3]!==this.current[3])&&(this.current=t,this.gl.uniform4f(this.location,t[0],t[1],t[2],t[3]))}},sa=class extends o7{constructor(t,i){super(t,i),this.current=iz.transparent}set(t){(t.r!==this.current.r||t.g!==this.current.g||t.b!==this.current.b||t.a!==this.current.a)&&(this.current=t,this.gl.uniform4f(this.location,t.r,t.g,t.b,t.a))}},sn=class extends o7{constructor(t,i){super(t,i),this.current=[]}set(t){if(t!=this.current){this.current=t;let i=new Float32Array(4*t.length);for(let r=0;r<t.length;r++)i[4*r]=t[r].r,i[4*r+1]=t[r].g,i[4*r+2]=t[r].b,i[4*r+3]=t[r].a;this.gl.uniform4fv(this.location,i)}}},so=class extends o7{constructor(t,i){super(t,i),this.current=[]}set(t){if(t!=this.current){this.current=t;let i=new Float32Array(t);this.gl.uniform1fv(this.location,i)}}};let ss=new Float32Array(16);var sl=class extends o7{constructor(t,i){super(t,i),this.current=ss}set(t){if(t[12]!==this.current[12]||t[0]!==this.current[0]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);return}for(let i=1;i<16;i++)if(t[i]!==this.current[i]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);break}}};function sc(t){return[oQ(255*t.r,255*t.g),oQ(255*t.b,255*t.a)]}var su=class{constructor(t,i,r){this.value=t,this.uniformNames=i.map(t=>`u_${t}`),this.type=r}setUniform(t,i,r){t.set(r.constantOr(this.value))}getBinding(t,i,r){return"color"===this.type?new sa(t,i):new se(t,i)}},sh=class{constructor(t,i){this.uniformNames=i.map(t=>`u_${t}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(t,i){this.pixelRatioFrom=i.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=i.tlbr,this.patternTo=t.tlbr}setConstantDashPositions(t,i){this.dashTo=[0,t.y,t.height,t.width],this.dashFrom=[0,i.y,i.height,i.width]}setUniform(t,i,r,a){let n=null;"u_pattern_to"===a?n=this.patternTo:"u_pattern_from"===a?n=this.patternFrom:"u_dasharray_to"===a?n=this.dashTo:"u_dasharray_from"===a?n=this.dashFrom:"u_pixel_ratio_to"===a?n=this.pixelRatioTo:"u_pixel_ratio_from"===a&&(n=this.pixelRatioFrom),null!==n&&t.set(n)}getBinding(t,i,r){return r.startsWith("u_pattern")||r.startsWith("u_dasharray_")?new sr(t,i):new se(t,i)}},sd=class{constructor(t,i,r,a){this.expression=t,this.type=r,this.maxValue=0,this.paintVertexAttributes=i.map(t=>({name:`a_${t}`,type:"Float32",components:"color"===r?2:1,offset:0})),this.paintVertexArray=new a}populatePaintArray(t,i,r){let a=this.paintVertexArray.length,n=this.expression.evaluate(new nD(0,r),i,{},r.canonical,[],r.formattedSection);this.paintVertexArray.resize(t),this._setPaintValue(a,t,n)}updatePaintArray(t,i,r,a,n){let o=this.expression.evaluate(new nD(0,n),r,a);this._setPaintValue(t,i,o)}_setPaintValue(t,i,r){if("color"===this.type){let a=sc(r);for(let r=t;r<i;r++)this.paintVertexArray.emplace(r,a[0],a[1])}else{for(let a=t;a<i;a++)this.paintVertexArray.emplace(a,r);this.maxValue=Math.max(this.maxValue,Math.abs(r))}}upload(t){this.paintVertexArray?.arrayBuffer.byteLength&&(this.paintVertexBuffer?.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}},sf=class{constructor(t,i,r,a,n,o){this.expression=t,this.uniformNames=i.map(t=>`u_${t}_t`),this.type=r,this.useIntegerZoom=a,this.zoom=n,this.maxValue=0,this.paintVertexAttributes=i.map(t=>({name:`a_${t}`,type:"Float32",components:"color"===r?4:2,offset:0})),this.paintVertexArray=new o}populatePaintArray(t,i,r){let a=this.expression.evaluate(new nD(this.zoom,r),i,{},r.canonical,[],r.formattedSection),n=this.expression.evaluate(new nD(this.zoom+1,r),i,{},r.canonical,[],r.formattedSection),o=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(o,t,a,n)}updatePaintArray(t,i,r,a,n){let o=this.expression.evaluate(new nD(this.zoom,n),r,a),s=this.expression.evaluate(new nD(this.zoom+1,n),r,a);this._setPaintValue(t,i,o,s)}_setPaintValue(t,i,r,a){if("color"===this.type){let n=sc(r),o=sc(a);for(let r=t;r<i;r++)this.paintVertexArray.emplace(r,n[0],n[1],o[0],o[1])}else{for(let n=t;n<i;n++)this.paintVertexArray.emplace(n,r,a);this.maxValue=Math.max(this.maxValue,Math.abs(r),Math.abs(a))}}upload(t){this.paintVertexArray?.arrayBuffer.byteLength&&(this.paintVertexBuffer?.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(t,i){let r=this.useIntegerZoom?Math.floor(i.zoom):i.zoom,a=e4(this.expression.interpolationFactor(r,this.zoom,this.zoom+1),0,1);t.set(a)}getBinding(t,i,r){return new se(t,i)}},sp=class{constructor(t,i,r,a,n,o){this.expression=t,this.type=i,this.useIntegerZoom=r,this.zoom=a,this.layerId=o,this.zoomInPaintVertexArray=new n,this.zoomOutPaintVertexArray=new n}populatePaintArray(t,i,r){let a=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(t),this.zoomOutPaintVertexArray.resize(t),this._setPaintValues(a,t,this.getPositionIds(i),r)}updatePaintArray(t,i,r,a,n){this._setPaintValues(t,i,this.getPositionIds(r),n)}_setPaintValues(t,i,r,a){let n=this.getPositions(a);if(!n||!r)return;let o=n[r.min],s=n[r.mid],l=n[r.max];if(o&&s&&l)for(let r=t;r<i;r++)this.emplace(this.zoomInPaintVertexArray,r,o,s),this.emplace(this.zoomOutPaintVertexArray,r,l,s)}upload(t){if(this.zoomInPaintVertexArray?.arrayBuffer.byteLength&&this.zoomOutPaintVertexArray?.arrayBuffer.byteLength){let i=this.getVertexAttributes();this.zoomInPaintVertexBuffer=t.createVertexBuffer(this.zoomInPaintVertexArray,i,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=t.createVertexBuffer(this.zoomOutPaintVertexArray,i,this.expression.isStateDependent)}}destroy(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()}},sm=class extends sp{getPositions(t){return t.imagePositions}getPositionIds(t){return t.patterns?.[this.layerId]}getVertexAttributes(){return o1.members}emplace(t,i,r,a){t.emplace(i,r.tlbr[0],r.tlbr[1],r.tlbr[2],r.tlbr[3],a.tlbr[0],a.tlbr[1],a.tlbr[2],a.tlbr[3],r.pixelRatio,a.pixelRatio)}},sg=class extends sp{getPositions(t){return t.dashPositions}getPositionIds(t){return t.dashes?.[this.layerId]}getVertexAttributes(){return o0.members}emplace(t,i,r,a){t.emplace(i,0,r.y,r.height,r.width,0,a.y,a.height,a.width)}},sy=class{constructor(t,i,r){this.binders={},this._buffers=[];let a=[];for(let s in t.paint._values){var n,o;if(!r(s))continue;let l=t.paint.get(s);if(!(l instanceof nB)||!al(l.property.specification))continue;let c=(n=s,o=t.type,({"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-dasharray":["dasharray_to","dasharray_from"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]})[n]||[n.replace(`${o}-`,"").replace(/-/g,"_")]),u=l.value,h=l.property.specification.type,d=l.property.useIntegerZoom,f=l.property.specification["property-type"],p="cross-faded"===f||"cross-faded-data-driven"===f;if("constant"===u.kind)this.binders[s]=p?new sh(u.value,c):new su(u.value,c,h),a.push(`/u_${s}`);else if("source"===u.kind||p){let r=sv(s,h,"source");this.binders[s]=p?"line-dasharray"===s?new sg(u,h,d,i,r,t.id):new sm(u,h,d,i,r,t.id):new sd(u,c,h,r),a.push(`/a_${s}`)}else{let t=sv(s,h,"composite");this.binders[s]=new sf(u,c,h,d,i,t),a.push(`/z_${s}`)}}this.cacheKey=a.sort().join("")}getMaxValue(t){let i=this.binders[t];return i instanceof sd||i instanceof sf?i.maxValue:0}populatePaintArrays(t,i,r){for(let a in this.binders){let n=this.binders[a];(n instanceof sd||n instanceof sf||n instanceof sp)&&n.populatePaintArray(t,i,r)}}setConstantPatternPositions(t,i){for(let r in this.binders){let a=this.binders[r];a instanceof sh&&a.setConstantPatternPositions(t,i)}}setConstantDashPositions(t,i){for(let r in this.binders){let a=this.binders[r];a instanceof sh&&a.setConstantDashPositions(t,i)}}updatePaintArrays(t,i,r,a,n){let o=!1;for(let s of t)for(let t of i.getPositions(s.id)){let i=r.feature(t.index);for(let r in this.binders){let l=this.binders[r];(l instanceof sd||l instanceof sf||l instanceof sp)&&!0===l.expression.isStateDependent&&(l.expression=a.paint.get(r).value,l.updatePaintArray(t.start,t.end,i,s.state,n),o=!0)}}return o}defines(){let t=[];for(let i in this.binders){let r=this.binders[i];(r instanceof su||r instanceof sh)&&t.push(...r.uniformNames.map(t=>`#define HAS_UNIFORM_${t}`))}return t}getBinderAttributes(){let t=[];for(let i in this.binders){let r=this.binders[i];if(r instanceof sd||r instanceof sf)for(let i of r.paintVertexAttributes)t.push(i.name);else if(r instanceof sp)for(let i of r.getVertexAttributes())t.push(i.name)}return t}getBinderUniforms(){let t=[];for(let i in this.binders){let r=this.binders[i];if(r instanceof su||r instanceof sh||r instanceof sf)for(let i of r.uniformNames)t.push(i)}return t}getPaintVertexBuffers(){return this._buffers}getUniforms(t,i){let r=[];for(let a in this.binders){let n=this.binders[a];if(n instanceof su||n instanceof sh||n instanceof sf){for(let o of n.uniformNames)if(i[o]){let s=n.getBinding(t,i[o],o);r.push({name:o,property:a,binding:s})}}}return r}setUniforms(t,i,r,a){for(let{name:t,property:n,binding:o}of i)this.binders[n].setUniform(o,a,r.get(n),t)}updatePaintBuffers(t){for(let i in this._buffers=[],this.binders){let r=this.binders[i];if(t&&r instanceof sp){let i=2===t.fromScale?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;i&&this._buffers.push(i)}else(r instanceof sd||r instanceof sf)&&r.paintVertexBuffer&&this._buffers.push(r.paintVertexBuffer)}}upload(t){for(let i in this.binders){let r=this.binders[i];(r instanceof sd||r instanceof sf||r instanceof sp)&&r.upload(t)}this.updatePaintBuffers()}destroy(){for(let t in this.binders){let i=this.binders[t];(i instanceof sd||i instanceof sf||i instanceof sp)&&i.destroy()}}},s_=class{constructor(t,i,r=()=>!0){for(let a of(this.programConfigurations={},t))this.programConfigurations[a.id]=new sy(a,i,r);this.needsUpload=!1,this._featureMap=new o4,this._bufferOffset=0}populatePaintArrays(t,i,r,a){for(let r in this.programConfigurations)this.programConfigurations[r].populatePaintArrays(t,i,a);void 0!==i.id&&this._featureMap.add(i.id,r,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0}updatePaintArrays(t,i,r,a){for(let n of r)this.needsUpload=this.programConfigurations[n.id].updatePaintArrays(t,this._featureMap,i,n,a)||this.needsUpload}get(t){return this.programConfigurations[t]}upload(t){if(this.needsUpload){for(let i in this.programConfigurations)this.programConfigurations[i].upload(t);this.needsUpload=!1}}destroy(){for(let t in this.programConfigurations)this.programConfigurations[t].destroy()}};function sv(t,i,r){return({"line-pattern":{source:oB,composite:oB},"fill-pattern":{source:oB,composite:oB},"fill-extrusion-pattern":{source:oB,composite:oB},"line-dasharray":{source:oj,composite:oj}})[t]?.[r]||({color:{source:n9,composite:oy},number:{source:od,composite:n9}})[i][r]}nT("ConstantBinder",su),nT("CrossFadedConstantBinder",sh),nT("SourceExpressionBinder",sd),nT("CrossFadedPatternBinder",sm),nT("CrossFadedDasharrayBinder",sg),nT("CompositeExpressionBinder",sf),nT("ProgramConfiguration",sy,{omit:["_buffers"]}),nT("ProgramConfigurationSet",s_);function sb(t){let i=8192/t.extent,r=t.loadGeometry();for(let t of r)for(let r of t){let t=Math.round(r.x*i),a=Math.round(r.y*i);r.x=e4(t,-16384,16383),r.y=e4(a,-16384,16383),(t<r.x||t>r.x+1||a<r.y||a>r.y+1)&&tu("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return r}function sx(t,i){return{type:t.type,id:t.id,properties:t.properties,geometry:i?sb(t):[]}}var sw=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.hasDependencies=!1,this.layoutVertexArray=new oz,this.indexArray=new oH,this.segments=new oJ,this.programConfigurations=new s_(t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(t,i,r){let a=this.layers[0],n=[],o=null,s=!1,l="heatmap"===a.type;"circle"===a.type&&(s=!(o=a.layout.get("circle-sort-key")).isConstant(),l||="map"===a.paint.get("circle-pitch-alignment"));let c=l?i.subdivisionGranularity.circle:1,u=new nD(this.zoom),h=this.layers[0]._featureFilter.needGeometry;for(let{feature:i,id:a,index:l,sourceLayerIndex:c}of t){let t=sx(i,h);if(!this.layers[0]._featureFilter.filter(u,t,r))continue;let d=s?o.evaluate(t,{},r):void 0,f={id:a,properties:i.properties,type:i.type,sourceLayerIndex:c,index:l,geometry:h?t.geometry:sb(i),patterns:{},sortKey:d};n.push(f)}for(let a of(s&&n.sort((t,i)=>t.sortKey-i.sortKey),n)){let{geometry:n,index:o,sourceLayerIndex:s}=a,l=t[o].feature;this.addFeature(a,n,o,r,c),i.featureIndex.insert(l,n,o,s,this.index)}}update(t,i,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,i,this.stateDependentLayers,{imagePositions:r})}addFeatures(t){}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,oK),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(t,i,r,a,n=1){let o;switch(n){case 1:o=[0,7];break;case 3:o=[0,2,5,7];break;case 5:o=[0,1,3,4,6,7];break;case 7:o=[0,1,2,3,4,5,6,7];break;default:throw Error(`Invalid circle bucket granularity: ${n}; valid values are 1, 3, 5, 7.`)}let s=o.length;for(let r of i)for(let i of r){let r=i.x,a=i.y;if(r<0||r>=8192||a<0||a>=8192)continue;let n=this.segments.prepareSegment(s*s,this.layoutVertexArray,this.indexArray,t.sortKey),h=n.vertexLength;for(let t=0;t<s;t++)for(let i=0;i<s;i++){var l,c,u;l=this.layoutVertexArray,c=o[i],u=o[t],l.emplaceBack(-32768+8*r+c,-32768+8*a+u)}for(let t=0;t<s-1;t++)for(let i=0;i<s-1;i++){let r=h+t*s+i,a=h+(t+1)*s+i;this.indexArray.emplaceBack(r,a+1,r+1),this.indexArray.emplaceBack(r,a,a+1)}n.vertexLength+=s*s,n.primitiveLength+=(s-1)*(s-1)*2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{imagePositions:{},canonical:a})}};function sk(t,i){for(let r of t)if(sP(i,r))return!0;for(let r of i)if(sP(t,r))return!0;return sA(t,i)}function sT(t,i,r){return!!sP(t,i)||sC(i,t,r)}function sS(t,i){if(1===t.length)return sM(i,t[0]);for(let r of i)for(let i of r)if(sP(t,i))return!0;for(let r of t)if(sM(i,r))return!0;for(let r of i)if(sA(t,r))return!0;return!1}function sA(t,i){if(0===t.length||0===i.length)return!1;for(let s=0;s<t.length-1;s++){let l=t[s],c=t[s+1];for(let t=0;t<i.length-1;t++){var r,a,n,o;if(r=l,a=c,n=i[t],th(r,n,o=i[t+1])!==th(a,n,o)&&th(r,a,n)!==th(r,a,o))return!0}}return!1}function sC(t,i,r){let a=r*r;if(1===i.length)return t.distSqr(i[0])<a;for(let r=1;r<i.length;r++)if(sE(t,i[r-1],i[r])<a)return!0;return!1}function sE(t,i,r){let a=i.distSqr(r);if(0===a)return t.distSqr(i);let n=((t.x-i.x)*(r.x-i.x)+(t.y-i.y)*(r.y-i.y))/a;return n<0?t.distSqr(i):n>1?t.distSqr(r):t.distSqr(r.sub(i)._mult(n)._add(i))}function sM(t,i){let r=!1,a,n;for(let o of t)for(let t=0,s=o.length-1;t<o.length;s=t++)a=o[t],n=o[s],a.y>i.y!=n.y>i.y&&i.x<(n.x-a.x)*(i.y-a.y)/(n.y-a.y)+a.x&&(r=!r);return r}function sP(t,i){let r=!1;for(let a=0,n=t.length-1;a<t.length;n=a++){let o=t[a],s=t[n];o.y>i.y!=s.y>i.y&&i.x<(s.x-o.x)*(i.y-o.y)/(s.y-o.y)+o.x&&(r=!r)}return r}function sD(t,i,r){let a=i.paint.get(t).value;return"constant"===a.kind?a.value:r.programConfigurations.get(i.id).getMaxValue(t)}function sI(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function sz(t,i,r,a,n){if(!i[0]&&!i[1])return t;let o=R.convert(i)._mult(n);"viewport"===r&&o._rotate(-a);let s=[];for(let i of t)s.push(i.sub(o));return s}function sL({queryGeometry:t,size:i},r){return sT(t,r,i)}function sF({queryGeometry:t,size:i,transform:r,unwrappedTileID:a,getElevation:n},o){return sT(t,o,i*(r.projectTileCoordinates(o.x,o.y,a,n?.(o.x,o.y)).signedDistanceFromCamera/r.cameraToCenterDistance))}function sR({queryGeometry:t,size:i,transform:r,unwrappedTileID:a,getElevation:n},o){let s=r.projectTileCoordinates(o.x,o.y,a,n?.(o.x,o.y)).signedDistanceFromCamera,l=i*(r.cameraToCenterDistance/s);return sT(t,sj(o,r,a,n),l)}function sO({queryGeometry:t,size:i,transform:r,unwrappedTileID:a,getElevation:n},o){return sT(t,sj(o,r,a,n),i)}function sB({queryGeometry:t,size:i,transform:r,unwrappedTileID:a,getElevation:n,pitchAlignment:o="map",pitchScale:s="map"},l){let c="map"===o?"map"===s?sL:sF:"map"===s?sR:sO,u={queryGeometry:t,size:i,transform:r,unwrappedTileID:a,getElevation:n};for(let t of l)for(let i of t)if(c(u,i))return!0;return!1}function sj(t,i,r,a){let n=i.projectTileCoordinates(t.x,t.y,r,a?.(t.x,t.y)).point;return new R((.5*n.x+.5)*i.width,(-(.5*n.y)+.5)*i.height)}nT("CircleBucket",sw,{omit:["layers"]});var sN={get paint(){return l||=new nH({"circle-radius":new nU(tK.paint_circle["circle-radius"],"cir
365cle-radius"),"circle-color":new nU(tK.paint_circle["circle-color"],"circle-color"),"circle-blur":new nU(tK.paint_circle["circle-blur"],"circle-blur"),"circle-opacity":new nU(tK.paint_circle["circle-opacity"],"circle-opacity"),"circle-translate":new nV(tK.paint_circle["circle-translate"],"circle-translate"),"circle-translate-anchor":new nV(tK.paint_circle["circle-translate-anchor"],"circle-translate-anchor"),"circle-pitch-scale":new nV(tK.paint_circle["circle-pitch-scale"],"circle-pitch-scale"),"circle-pitch-alignment":new nV(tK.paint_circle["circle-pitch-alignment"],"circle-pitch-alignment"),"circle-stroke-width":new nU(tK.paint_circle["circle-stroke-width"],"circle-stroke-width"),"circle-stroke-color":new nU(tK.paint_circle["circle-stroke-color"],"circle-stroke-color"),"circle-stroke-opacity":new nU(tK.paint_circle["circle-stroke-opacity"],"circle-stroke-opacity")})},get layout(){return s||=new nH({"circle-sort-key":new nU(tK.layout_circle["circle-sort-key"],"circle-sort-key")})}},s$=class extends nY{constructor(t,i){super(t,sN,i)}createBucket(t){return new sw(t)}queryRadius(t){return sD("circle-radius",this,t)+sD("circle-stroke-width",this,t)+sI(this.paint.get("circle-translate"))}queryIntersectsFeature({queryGeometry:t,feature:i,featureState:r,geometry:a,transform:n,pixelsToTileUnits:o,unwrappedTileID:s,getElevation:l}){let c=sz(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),-n.bearingInRadians,o),u=this.paint.get("circle-radius").evaluate(i,r)+this.paint.get("circle-stroke-width").evaluate(i,r),h=this.paint.get("circle-pitch-scale"),d=this.paint.get("circle-pitch-alignment"),f,p;return"map"===d?(f=c,p=u*o):(f=c.map(t=>sj(t,n,s,l)),p=u),sB({queryGeometry:f,size:p,transform:n,unwrappedTileID:s,getElevation:l,pitchAlignment:d,pitchScale:h},a)}},sV=class extends sw{};nT("HeatmapBucket",sV,{omit:["layers"]});var sU={get paint(){return c||=new nH({"heatmap-radius":new nU(tK.paint_heatmap["heatmap-radius"],"heatmap-radius"),"heatmap-weight":new nU(tK.paint_heatmap["heatmap-weight"],"heatmap-weight"),"heatmap-intensity":new nV(tK.paint_heatmap["heatmap-intensity"],"heatmap-intensity"),"heatmap-color":new nZ(tK.paint_heatmap["heatmap-color"],"heatmap-color"),"heatmap-opacity":new nV(tK.paint_heatmap["heatmap-opacity"],"heatmap-opacity")})}};function sG(t,{width:i,height:r}
vendor: 12,253 bytes, line 365
365,a,n){if(n){if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==i*r*a)throw RangeError(`mismatched image size. expected: ${n.length} but got: ${i*r*a}`)}else n=new Uint8Array(i*r*a);return t.width=i,t.height=r,t.data=n,t}function sq(t,{width:i,height:r},a){if(i===t.width&&r===t.height)return;let n=sG({},{width:i,height:r},a);sZ(t,n,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,i),height:Math.min(t.height,r)},a),t.width=i,t.height=r,t.data=n.data}function sZ(t,i,r,a,n,o){if(0===n.width||0===n.height)return i;if(n.width>t.width||n.height>t.height||r.x>t.width-n.width||r.y>t.height-n.height)throw RangeError("out of range source coordinates for image copy");if(n.width>i.width||n.height>i.height||a.x>i.width-n.width||a.y>i.height-n.height)throw RangeError("out of range destination coordinates for image copy");let s=t.data,l=i.data;if(s===l)throw Error("srcData equals dstData, so image is already copied");for(let c=0;c<n.height;c++){let u=((r.y+c)*t.width+r.x)*o,h=((a.y+c)*i.width+a.x)*o;for(let t=0;t<n.width*o;t++)l[h+t]=s[u+t]}return i}var sH=class t{constructor(t,i){sG(this,t,1,i)}resize(t){sq(this,t,1)}clone(){return new t({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,i,r,a,n){sZ(t,i,r,a,n,1)}},sW=class t{constructor(t,i){sG(this,t,4,i)}resize(t){sq(this,t,4)}replace(t,i){i?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t}clone(){return new t({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(t,i,r,a,n){sZ(t,i,r,a,n,4)}setPixel(t,i,r){let a=(t*this.width+i)*4;this.data[a+0]=Math.round(255*r.r/r.a),this.data[a+1]=Math.round(255*r.g/r.a),this.data[a+2]=Math.round(255*r.b/r.a),this.data[a+3]=Math.round(255*r.a)}};function sX(t){let i=new Uint8Array(t.length);for(let r=0;r<t.length;r+=4){let a=t[r+3];i[r+0]=Math.round(t[r+0]*a/255),i[r+1]=Math.round(t[r+1]*a/255),i[r+2]=Math.round(t[r+2]*a/255),i[r+3]=a}return i}function sY(t){let i={},r=t.resolution||256,a=t.clips?t.clips.length:1,n=t.image||new sW({width:r,height:a});if(Math.log(r)/Math.LN2%1!=0)throw Error(`width is not a power of 2 - ${r}`);let o=(a,o,s)=>{i[t.evaluationKey]=s;let l=t.expression.evaluate(i);n.setPixel(a/4/r,o/4,l)};if(t.clips)for(let i=0,n=0;i<a;++i,n+=4*r)for(let a=0,s=0;a<r;a++,s+=4){let l=a/(r-1),{start:c,end:u}=t.clips[i];o(n,s,c*(1-l)+u*l)}else for(let t=0,i=0;t<r;t++,i+=4)o(0,i,t/(r-1));return n}nT("AlphaImage",sH),nT("RGBAImage",sW);var sK=class extends nY{createBucket(t){return new sV(t)}constructor(t,i){super(t,sU,i),this.heatmapFbos=new Map,this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(t){"heatmap-color"===t&&this._updateColorRamp()}_updateColorRamp(){let t=this._transitionablePaint._values["heatmap-color"].value.expression;this.colorRamp=sY({expression:t,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbos.has("big-fb")&&this.heatmapFbos.delete("big-fb")}queryRadius(t){return sD("heatmap-radius",this,t)}queryIntersectsFeature({queryGeometry:t,feature:i,featureState:r,geometry:a,transform:n,pixelsToTileUnits:o,unwrappedTileID:s,getElevation:l}){return sB({queryGeometry:t,size:this.paint.get("heatmap-radius").evaluate(i,r)*o,transform:n,unwrappedTileID:s,getElevation:l},a)}hasOffscreenPass(){return 0!==this.paint.get("heatmap-opacity")&&!this.isHidden()}},sJ={get paint(){return u||=new nH({"hillshade-illumination-direction":new nV(tK.paint_hillshade["hillshade-illumination-direction"],"hillshade-illumination-direction"),"hillshade-illumination-altitude":new nV(tK.paint_hillshade["hillshade-illumination-altitude"],"hillshade-illumination-altitude"),"hillshade-illumination-anchor":new nV(tK.paint_hillshade["hillshade-illumination-anchor"],"hillshade-illumination-anchor"),"hillshade-exaggeration":new nV(tK.paint_hillshade["hillshade-exaggeration"],"hillshade-exaggeration"),"hillshade-shadow-color":new nV(tK.paint_hillshade["hillshade-shadow-color"],"hillshade-shadow-color"),"hillshade-highlight-color":new nV(tK.paint_hillshade["hillshade-highlight-color"],"hillshade-highlight-color"),"hillshade-accent-color":new nV(tK.paint_hillshade["hillshade-accent-color"],"hillshade-accent-color"),"hillshade-method":new nV(tK.paint_hillshade["hillshade-method"],"hillshade-method"),resampling:new nV(tK.paint_hillshade.resampling,"resampling")})}},sQ=class extends nY{constructor(t,i){super(t,sJ,i),this.recalculate({zoom:0,zoomHistory:{}},void 0)}getIlluminationProperties(){let t=this.paint.get("hillshade-illumination-direction").values,i=this.paint.get("hillshade-illumination-altitude").values,r=this.paint.get("hillshade-highlight-color").values,a=this.paint.get("hillshade-shadow-color").values,n=Math.max(t.length,i.length,r.length,a.length);t=t.concat(Array(n-t.length).fill(t.at(-1))),i=i.concat(Array(n-i.length).fill(i.at(-1))),r=r.concat(Array(n-r.length).fill(r.at(-1))),a=a.concat(Array(n-a.length).fill(a.at(-1)));let o=i.map(tw);return{directionRadians:t.map(tw),altitudeRadians:o,shadowColor:a,highlightColor:r}}hasOffscreenPass(){return 0!==this.paint.get("hillshade-exaggeration")&&!this.isHidden()}},s1={get paint(){return h||=new nH({"color-relief-opacity":new nV(tK["paint_color-relief"]["color-relief-opacity"],"color-relief-opacity"),"color-relief-color":new nZ(tK["paint_color-relief"]["color-relief-color"],"color-relief-color"),resampling:new nV(tK["paint_color-relief"].resampling,"resampling")})}};function s0(t){return"data"in t}var s2=class{constructor(t,i,r,a){this.context=t,this.format=r,this.texture=t.gl.createTexture(),this._ownedHandle=this.texture,this.update(i,a)}update(t,i,r){let{width:a,height:n}=t,o=(this.size?.[0]!==a||this.size[1]!==n)&&!r,{context:s}=this,{gl:l}=s;this.useMipmap=!!i?.useMipmap,o&&this.size&&this.format===l.RGBA&&(l.deleteTexture(this.texture),this.texture=l.createTexture(),this._ownedHandle=this.texture,this.magFilter=void 0,this.minFilter=void 0,this.wrap=void 0),l.bindTexture(l.TEXTURE_2D,this.texture),s.pixelStoreUnpackFlipY.set(!1),s.pixelStoreUnpack.set(1);let c=this.format===l.RGBA&&i?.premultiply!==!1;if(o)if(this.size=[a,n],this.format===l.RGBA&&a>0&&n>0){let i=this.useMipmap?Math.floor(Math.log2(Math.max(a,n)))+1:1;if(l.texStorage2D(l.TEXTURE_2D,i,l.RGBA8,a,n),s0(t)){s.pixelStoreUnpackPremultiplyAlpha.set(!1);let{data:i}=t;c&&i&&(i=sX(i)),i&&l.texSubImage2D(l.TEXTURE_2D,0,0,0,a,n,l.RGBA,l.UNSIGNED_BYTE,i)}else s.pixelStoreUnpackPremultiplyAlpha.set(c),l.texSubImage2D(l.TEXTURE_2D,0,0,0,l.RGBA,l.UNSIGNED_BYTE,t)}else s0(t)?(s.pixelStoreUnpackPremultiplyAlpha.set(!1),this._uploadRawData(t,c,a,n,l)):(s.pixelStoreUnpackPremultiplyAlpha.set(c),this._uploadDomImage(t,l));else{let{x:i,y:o}=r||{x:0,y:0};s0(t)?(s.pixelStoreUnpackPremultiplyAlpha.set(!1),this._updateRawData(t,c,i,o,a,n,l)):(s.pixelStoreUnpackPremultiplyAlpha.set(c),this._updateDomImage(t,i,o,l))}this.useMipmap&&!(s0(t)&&null===t.data)&&l.generateMipmap(l.TEXTURE_2D),s.pixelStoreUnpackFlipY.setDefault(),s.pixelStoreUnpack.setDefault(),s.pixelStoreUnpackPremultiplyAlpha.setDefault()}_uploadDomImage(t,i){i.texImage2D(i.TEXTURE_2D,0,this.format,this.format,i.UNSIGNED_BYTE,t)}_uploadRawData(t,i,r,a,n){let{data:o}=t;i&&o&&(o=sX(o)),n.texImage2D(n.TEXTURE_2D,0,this.format,r,a,0,this.format,n.UNSIGNED_BYTE,o)}_updateDomImage(t,i,r,a){a.texSubImage2D(a.TEXTURE_2D,0,i,r,a.RGBA,a.UNSIGNED_BYTE,t)}_updateRawData(t,i,r,a,n,o,s){let{data:l}=t;i&&l&&(l=sX(l)),s.texSubImage2D(s.TEXTURE_2D,0,r,a,n,o,s.RGBA,s.UNSIGNED_BYTE,l)}bind(t,i,r){let{context:a}=this,{gl:n}=a;this.texture!==this._ownedHandle&&(this.texture=this._ownedHandle),n.bindTexture(n.TEXTURE_2D,this.texture),r!==n.LINEAR_MIPMAP_NEAREST&&r!==n.LINEAR_MIPMAP_LINEAR||this.useMipmap||(r=n.LINEAR);let o=r||t;t!==this.magFilter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,t),this.magFilter=t),o!==this.minFilter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,o),this.minFilter=o),i!==this.wrap&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,i),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,i),this.wrap=i)}generateMipmap(){if(!this.useMipmap)return;let{gl:t}=this.context;t.bindTexture(t.TEXTURE_2D,this.texture),t.generateMipmap(t.TEXTURE_2D)}destroy(){let{gl:t}=this.context;t.deleteTexture(this.texture),this.texture=null,this._ownedHandle=null}};function s3(t,i){let r=i[0],a=i[1],n=i[2],o=i[3],s=Math.min(r,a,n),l=Math.round((t+o)/s);return{r:Math.floor(l*s/r)%256,g:Math.floor(l*s/a)%256,b:Math.floor(l*s/n)%256}}nT("DEMData",class t{static{this.byteViewCache=new WeakMap}constructor(i,r,a,n=1,o=1,s=1,l=0){if(this.uid=i,r.height!==r.width)throw RangeError("DEM tiles must be square");if(a&&!["mapbox","terrarium","custom"].includes(a))return void tu(`"${a}" is not a valid encoding type. Valid types include "mapbox", "terrarium" and "custom".`);this.stride=r.height;let c=this.dim=r.height-4;switch(this.data=new Uint32Array(r.data.buffer),t.byteViewCache.set(this,new Uint8Array(this.data.buffer)),a){case"terrarium":this.redFactor=256,this.greenFactor=1,this.blueFactor=1/256,this.baseShift=32768;break;case"custom":this.redFactor=n,this.greenFactor=o,this.blueFactor=s,this.baseShift=l;break;default:this.redFactor=6553.6,this.greenFactor=25.6,this.blueFactor=.1,this.baseShift=1e4}for(let t=-2;t<c+2;t++){let i=this._idx(0,Math.max(0,Math.min(c-1,t)));(t<0||t>=c)&&this.data.copyWithin(this._idx(0,t),i,i+c),this.data.fill(this.data[i],this._idx(-2,t),this._idx(0,t)),this.data.fill(this.data[i+c-1],this._idx(c,t),this._idx(c+1,t)+1)}let u=this._getByteView();this.min=0x1fffffffffffff,this.max=-0x1fffffffffffff;for(let t=0;t<c;t++)for(let i=0;i<c;i++){let r=4*this._idx(t,i),a=this._unpackAtIndex(u,r);a>this.max&&(this.max=a),a<this.min&&(this.min=a)}}get(t,i){let r=this._getByteView(),a=4*this._idx(t,i);return this._unpackAtIndex(r,a)}sampleBilinear(t,i){let r=Math.floor(t),a=Math.floor(i);if(r<-1||r>=this.dim||a<-1||a>=this.dim)throw RangeError(`Out of range source coordinates for DEM data. x: ${t}, y: ${i}, dim: ${this.dim}`);let n=this._getByteView(),o=((a+2)*this.stride+r+2)*4,s=4*this.stride,l=t-r,c=i-a;return this._unpackAtIndex(n,o)*(1-l)*(1-c)+this._unpackAtIndex(n,o+4)*l*(1-c)+this._unpackAtIndex(n,o+s)*(1-l)*c+this._unpackAtIndex(n,o+s+4)*l*c}getUnpackVector(){return[this.redFactor,this.greenFactor,this.blueFactor,this.baseShift]}_idx(t,i){if(t<-2||t>=this.dim+2||i<-2||i>=this.dim+2)throw RangeError(`Out of range source coordinates for DEM data. x: ${t}, y: ${i}, dim: ${this.dim}`);return(i+2)*this.stride+(t+2)}unpack(t,i,r){return t*this.redFactor+i*this.greenFactor+r*this.blueFactor-this.baseShift}pack(t){return s3(t,this.getUnpackVector())}getPixels(){return new sW({width:this.stride,height:this.stride},this._getByteView())}backfillBorder(t,i,r){if(this.dim!==t.dim)throw Error("dem dimension mismatch");let a=i*this.dim,n=i*this.dim+this.dim,o=r*this.dim,s=r*this.dim+this.dim;switch(i){case -1:a=n-2;break;case 1:n=a+2}switch(r){case -1:o=s-2;break;case 1:s=o+2}let l=-i*this.dim,c=-r*this.dim;for(let i=o;i<s;i++)for(let r=a;r<n;r++)this.data[this._idx(r,i)]=t.data[this._idx(r+l,i+c)]}_getByteView(){let i=t.byteViewCache.get(this);return i?.buffer!==this.data.buffer&&(i=new Uint8Array(this.data.buffer),t.byteViewCache.set(this,i)),i}_unpackAtIndex(t,i){return this.unpack(t[i],t[i+1],t[i+2])}});var s5=class extends nY{constructor(t,i){super(t,s1,i)}_createColorRamp(t){let i={elevationStops:[],colorStops:[]},r=this._transitionablePaint._values["color-relief-color"].value.expression;if(r instanceof aE&&r._styleExpression.expression instanceof i0){this.colorRampExpression=r;let t=r._styleExpression.expression;for(let r of(i.elevationStops=t.labels,i.colorStops=[],i.elevationStops))i.colorStops.push(t.evaluate({globals:{elevation:r}}))}if(i.elevationStops.length<1&&(i.elevationStops=[0],i.colorStops=[iz.transparent]),i.elevationStops.length<2&&(i.elevationStops.push(i.elevationStops[0]+1),i.colorStops.push(i.colorStops[0])),i.elevationStops.length<=t)return i;let a={elevationStops:[],colorStops:[]},n=(i.elevationStops.length-1)/(t-1);for(let t=0;t<i.elevationStops.length-.5;t+=n)a.elevationStops.push(i.elevationStops[Math.round(t)]),a.colorStops.push(i.colorStops[Math.round(t)]);return tu(`Too many colors in specification of ${this.id}
365 color-relief layer, may not render properly. Max possible colors: ${t}, provided: ${i.elevationStops.length}`),a}_colorRampChanged(){return this.colorRampExpression!=this._transitionablePaint._values["color-relief-color"].value.expression}getColorRampTextures(t,i,r){if(this.colorRampTextures&&!this._colorRampChanged())return this.colorRampTextures;let a=this._createColorRamp(i),n=new sW({width:a.colorStops.length,height:1}),o=new sW({width:a.colorStops.length,height:1});for(let t=0;t<a.elevationStops.length;t++){let i=s3(a.elevationStops[t],r);o.setPixel(0,t,new iz(i.r/255,i.g/255,i.b/255,1)),n.setPixel(0,t,a.colorStops[t])}return this.colorRampTextures={elevationTexture:new s2(t,o,t.gl.RGBA),colorTexture:new s2(t,n,t.gl.RGBA)},this.colorRampTextures}hasOffscreenPass(){return!this.isHidden()&&!!this.colorRampTextures}};let s4=n2([{name:"a_pos",components:2,type:"Int16"}],4),s6=s4.members;function s8(t,i,r){let a=r.patternDependencies,n=!1;for(let r of i){let i=r.paint.get(`${t}-pattern`);i.isConstant()||(n=!0);let o=i.constantOr(null);o&&(n=!0,a[o.to]=!0,a[o.from]=!0)}return n}function s7(t,i,r,a,n){let{zoom:o}=a,s=n.patternDependencies;for(let a of i){let i=a.paint.get(`${t}-pattern`).value;if("constant"!==i.kind){let t=i.evaluate({zoom:o-1},r,{},n.availableImages),l=i.evaluate({zoom:o},r,{},n.availableImages),c=i.evaluate({zoom:o+1},r,{},n.availableImages);t=t?.name?t.name:t,l=l?.name?l.name:l,c=c?.name?c.name:c,s[t]=!0,s[l]=!0,s[c]=!0,r.patterns[a.id]={min:t,mid:l,max:c}}}return r}s4.size,s4.alignment;let s9=new Set,le=!1;function lt(t,i,r,a,n){let o=null;if(n===function(t,i,r,a){let n=0;for(let o=i,s=r-a;o<r;o+=a)n+=(t[s]-t[o])*(t[o+1]+t[s+1]),s=o;return n}(t,i,r,a)>0)for(let n=i;n<r;n+=a)o=lA(n/a|0,t[n],t[n+1],o);else for(let n=r-a;n>=i;n-=a)o=lA(n/a|0,t[n],t[n+1],o);return o&&lx(o,o.next)&&(lC(o),o=o.next),o}function li(t,i=t){let r=i===t,a=t,n;do n=!1,a!==a.next&&(0===s9.size||!s9.has(a))&&(lx(a,a.next)||0===lb(a.prev,a,a.next))?((r||a===i)&&(i=a.prev),le=!0,lC(a),a=a.prev,n=!0):(r||a!==i)&&(a=a.next,n=!r);while(n||a!==i)return i}let lr=!1;function la(t,i){return t.x-i.x||t.y-i.y||(t.next.y-t.y)/(t.next.x-t.x)-(i.next.y-i.y)/(i.next.x-i.x)}let ln=new Float64Array,lo=0,ls=[],ll=[];function lc(t,i){let r=t;do{let t=lo++;ls[t]=r;let a=1/0,n=1/0,o=-1/0,s=-1/0,l=0;do{let i=r.next;r.z=t,r.x<a&&(a=r.x),r.x>o&&(o=r.x),r.y<n&&(n=r.y),r.y>s&&(s=r.y),i.x<a&&(a=i.x),i.x>o&&(o=i.x),i.y<n&&(n=i.y),i.y>s&&(s=i.y),r=i}while(++l<16&&r!==i)ll[t]=r;let c=4*t;ln[c]=a,ln[c+1]=n,ln[c+2]=o,ln[c+3]=s}while(r!==i)}function lu(t){let i=ll[t];for(;i.prev.next!==i;)i=i.next;return ll[t]=i,i}function lh(t){let i=ls[t];for(;i.prev.next!==i;)i=i.next;return ls[t]=i,i}let ld=[],lf=[],lp=new Uint32Array,lm=new Uint32Array,lg=new Uint32Array(256);function ly(t,i,r,a,n,o){lg.fill(0);for(let i=0;i<t;i++)lg[r[i]>>>o&255]++;let s=0;for(let t=0;t<256;t++){let i=lg[t];lg[t]=s,s+=i}for(let s=0;s<t;s++){let t=r[s],l=lg[t>>>o&255]++;a[l]=i[s],n[l]=t}}function l_(t,i,r,a,n){return(t=((t=((t=((t=((t=(t-r)*n|0)|t<<8)&0xff00ff)|t<<4)&0xf0f0f0f)|t<<2)&0x33333333)|t<<1)&0x55555555)|(i=((i=((i=((i=((i=(i-a)*n|0)|i<<8)&0xff00ff)|i<<4)&0xf0f0f0f)|i<<2)&0x33333333)|i<<1)&0x55555555)<<1}function lv(t,i,r,a,n,o,s,l){return(n-s)*(i-l)>=(t-s)*(o-l)&&(t-s)*(a-l)>=(r-s)*(i-l)&&(r-s)*(o-l)>=(n-s)*(a-l)}function lb(t,i,r){return(i.y-t.y)*(r.x-i.x)-(i.x-t.x)*(r.y-i.y)}function lx(t,i){return t.x===i.x&&t.y===i.y}function lw(t,i,r,a,n=!0){let o=lb(t,i,r),s=lb(t,i,a),l=lb(r,a,t),c=lb(r,a,i);return(o>0&&s<0||o<0&&s>0)&&(l>0&&c<0||l<0&&c>0)||!!n&&!!(0===o&&lk(t,r,i)||0===s&&lk(t,a,i)||0===l&&lk(r,t,a)||0===c&&lk(r,i,a))}function lk(t,i,r){return i.x<=Math.max(t.x,r.x)&&i.x>=Math.min(t.x,r.x)&&i.y<=Math.max(t.y,r.y)&&i.y>=Math.min(t.y,r.y)}function lT(t,i){return 0>lb(t.prev,t,t.next)?lb(t,i,t.next)>=0&&lb(t,t.prev,i)>=0:0>lb(t,i,t.prev)||0>lb(t,t.next,i)}function lS(t,i){let r=lE(t.i,t.x,t.y),a=lE(i.i,i.x,i.y),n=t.next,o=i.prev;return t.next=i,i.prev=t,r.next=n,n.prev=r,a.next=r,r.prev=a,o.next=a,a.prev=o,a}function lA(t,i,r,a){let n=lE(t,i,r);return a?(n.next=a.next,n.prev=a,a.next.prev=n,a.next=n):(n.prev=n,n.next=n),n}function lC(t){var i,r;let a;t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ),lr&&(i=t.prev,r=t.next,a=4*i.z,r.x<ln[a]&&(ln[a]=r.x),r.y<ln[a+1]&&(ln[a+1]=r.y),r.x>ln[a+2]&&(ln[a+2]=r.x),r.y>ln[a+3]&&(ln[a+3]=r.y))}function lE(t,i,r){return{i:t,x:i,y:r,prev:null,next:null,z:0,prevZ:null,nextZ:null}}var lM=class{constructor(t,i){if(i>t)throw Error("Min granularity must not be greater than base granularity.");this._baseZoomGranularity=t,this._minGranularity=i}getGranularityForZoomLevel(t){return Math.max(Math.floor(this._baseZoomGranularity/(1<<t)),this._minGranularity,1)}},lP=class t{constructor(t){this.fill=t.fill,this.line=t.line,this.tile=t.tile,this.stencil=t.stencil,this.circle=t.circle}static{this.noSubdivision=new t({fill:new lM(0,0),line:new lM(0,0),tile:new lM(0,0),stencil:new lM(0,0),circle:1})}};nT("SubdivisionGranularityExpression",lM),nT("SubdivisionGranularitySetting",lP);var lD=class{constructor(t,i){this._vertexBuffer=[],this._vertexDictionary=new Map,this._used=!1,this._granularity=t,this._granularityCellSize=8192/t,this._canonical=i}_getKey(t,i){return t+=32768,(i+=32768)|t<<16}_vertexToIndex(t,i){if(t<-32768||i<-32768||t>32767||i>32767)throw Error("Vertex coordinates are out of signed 16 bit integer range.");let r=0|Math.round(t),a=0|Math.round(i),n=this._getKey(r,a);if(this._vertexDictionary.has(n))return this._vertexDictionary.get(n);let o=this._vertexBuffer.length/2;return this._vertexDictionary.set(n,o),this._vertexBuffer.push(r,a),o}_subdivideTrianglesScanline(t){if(this._granularity<2)return function(t,i){let r=[];for(let a=0;a<i.length;a+=3){let n=i[a],o=i[a+1],s=i[a+2],l=t[2*n],c=t[2*n+1],u=t[2*o],h=t[2*o+1],d=t[2*s],f=t[2*s+1],p=h-c;(u-l)*(f-c)-p*(d-l)>0?(r.push(n),r.push(s),r.push(o)):(r.push(n),r.push(o),r.push(s))}return r}(this._vertexBuffer,t);let i=[],r=t.length;for(let a=0;a<r;a+=3){let r=[t[a+0],t[a+1],t[a+2]],n=[this._vertexBuffer[2*t[a+0]+0],this._vertexBuffer[2*t[a+0]+1],this._vertexBuffer[2*t[a+1]+0],this._vertexBuffer[2*t[a+1]+1],this._vertexBuffer[2*t[a+2]+0],this._vertexBuffer[2*t[a+2]+1]],o=1/0,s=1/0,l=-1/0,c=-1/0;for(let t=0;t<3;t++){let i=n[2*t],r=n[2*t+1];o=Math.min(o,i),l=Math.max(l,i),s=Math.min(s,r),c=Math.max(c,r)}if(o===l||s===c)continue;let u=Math.floor(o/this._granularityCellSize),h=Math.ceil(l/this._granularityCellSize),d=Math.floor(s/this._granularityCellSize),f=Math.ceil(c/this._granularityCellSize);if(u===h&&d===f){i.push(...r);continue}for(let t=d;t<f;t++){let a=this._scanlineGenerateVertexRingForCellRow(t,n,r);!function(t,i,r){if(0===i.length)throw Error("Subdivision vertex ring is empty.");let a=0,n=t[2*i[0]];for(let r=1;r<i.length;r++){let o=t[2*i[r]];o<n&&(n=o,a=r)}let o=i.length,s=a,l=(s+1)%o;for(;;){let a=s-1>=0?s-1:o-1,n=(l+1)%o,c=t[2*i[a]],u=t[2*i[a]+1],h=t[2*i[n]],d=t[2*i[n]+1],f=t[2*i[s]],p=t[2*i[s]+1],m=t[2*i[l]],g=t[2*i[l]+1],y=!1;if(c<h)y=!0;else if(c>h)y=!1;else{let t=g-p,i=-(m-f),r=p<g?1:-1;((c-f)*t+(u-p)*i)*r>((h-f)*t+(d-p)*i)*r&&(y=!0)}if(y){let t=i[a],n=i[s],c=i[l];t!==n&&t!==c&&n!==c&&r.push(c,n,t),--s<0&&(s=o-1)}else{let t=i[n],a=i[s],c=i[l];t!==a&&t!==c&&a!==c&&r.push(c,a,t),++l>=o&&(l=0)}
365if(a===n)break}}(this._vertexBuffer,a,i)}}return i}_scanlineGenerateVertexRingForCellRow(t,i,r){let a=t*this._granularityCellSize,n=a+this._granularityCellSize,o=[];for(let t=0;t<3;t++){let s=i[2*t],l=i[2*t+1],c=i[(t+1)*2%6],u=i[((t+1)*2+1)%6],h=i[(t+2)*2%6],d=i[((t+2)*2+1)%6],f=c-s,p=u-l,m=0===f,g=0===p,y=(a-l)/p,_=(n-l)/p,v=Math.min(y,_),b=Math.max(y,_);if(!g&&(v>=1||b<=0)||g&&(l<a||l>n)){u>=a&&u<=n&&o.push(r[(t+1)%3]);continue}if(!g&&v>0){let t=s+f*v,i=l+p*v;o.push(this._vertexToIndex(t,i))}let x=s+f*Math.max(v,0),w=s+f*Math.min(b,1);if(m||this._generateIntraEdgeVertices(o,s,l,c,u,x,w),!g&&b<1){let t=s+f*b,i=l+p*b;o.push(this._vertexToIndex(t,i))}(g||u>=a&&u<=n)&&o.push(r[(t+1)%3]),!g&&(u<=a||u>=n)&&this._generateInterEdgeVertices(o,s,l,c,u,h,d,w,a,n)}return o}_generateIntraEdgeVertices(t,i,r,a,n,o,s){let l=a-i,c=n-r,u=0===c,h=u?Math.min(i,a):Math.min(o,s),d=u?Math.max(i,a):Math.max(o,s),f=Math.floor(h/this._granularityCellSize)+1,p=Math.ceil(d/this._granularityCellSize)-1;if(u?i<a:o<s)for(let a=f;a<=p;a++){let n=a*this._granularityCellSize,o=r+c*(n-i)/l;t.push(this._vertexToIndex(n,o))}else for(let a=p;a>=f;a--){let n=a*this._granularityCellSize,o=r+c*(n-i)/l;t.push(this._vertexToIndex(n,o))}}_generateInterEdgeVertices(t,i,r,a,n,o,s,l,c,u){let h=s-n,d=(c-n)/h,f=(u-n)/h,p=Math.min(d,f),m=Math.max(d,f),g=a+(o-a)*p,y=Math.floor(Math.min(g,l)/this._granularityCellSize)+1,_=Math.ceil(Math.max(g,l)/this._granularityCellSize)-1,v=l<g,b=0===h;if(b&&(s===c||s===u))return;if(b||p>=1||m<=0){let t=r-s,a=o+(i-o)*Math.min((c-s)/t,(u-s)/t);y=Math.floor(Math.min(a,l)/this._granularityCellSize)+1,_=Math.ceil(Math.max(a,l)/this._granularityCellSize)-1,v=l<a}let x=n-r>0?u:c;if(v)for(let i=y;i<=_;i++){let r=i*this._granularityCellSize;t.push(this._vertexToIndex(r,x))}else for(let i=_;i>=y;i--){let r=i*this._granularityCellSize;t.push(this._vertexToIndex(r,x))}}_generateOutline(t){let i=[];for(let r of t){let t=lz(r,this._granularity,!0),a=this._pointArrayToIndices(t),n=[];for(let t=1;t<a.length;t++)n.push(a[t-1]),n.push(a[t]);i.push(n)}return i}_handlePoles(t){let i=!1,r=!1;this._canonical&&(0===this._canonical.y&&(i=!0),this._canonical.y===(1<<this._canonical.z)-1&&(r=!0)),(i||r)&&this._fillPoles(t,i,r)}_ensureNoPoleVertices(){let t=this._vertexBuffer;for(let i=0;i<t.length;i+=2){let r=t[i+1];-32768===r&&(t[i+1]=-32767),32767===r&&(t[i+1]=32766)}}_generatePoleQuad(t,i,r,a,n,o){a>n==(-32768===o)?(t.push(r),t.push(i),t.push(this._vertexToIndex(a,o)),t.push(this._vertexToIndex(n,o)),t.push(r)):(t.push(i),t.push(r),t.push(this._vertexToIndex(a,o)),t.push(r),t.push(this._vertexToIndex(n,o))),t.push(this._vertexToIndex(a,o))}_fillPoles(t,i,r){let a=this._vertexBuffer,n=t.length;for(let o=2;o<n;o+=3){let n=t[o-2],s=t[o-1],l=t[o],c=a[2*n],u=a[2*n+1],h=a[2*s],d=a[2*s+1],f=a[2*l],p=a[2*l+1];i&&(0===u&&0===d&&this._generatePoleQuad(t,n,s,c,h,-32768),0===d&&0===p&&this._generatePoleQuad(t,s,l,h,f,-32768),0===p&&0===u&&this._generatePoleQuad(t,l,n,f,c,-32768)),r&&(8192===u&&8192===d&&this._generatePoleQuad(t,n,s,c,h,32767),8192===d&&8192===p&&this._generatePoleQuad(t,s,l,h,f,32767),8192===p&&8192===u&&this._generatePoleQuad(t,l,n,f,c,32767))}}_initializeVertices(t){for(let i=0;i<t.length;i+=2)this._vertexToIndex(t[i],t[i+1])}subdividePolygonInternal(t,i){let r;if(this._used)throw Error("Subdivision: multiple use not allowed.");this._used=!0;let{flattened:a,holeIndices:n}=function(t){let i=[],r=[];for(let a of t)if(0!==a.length)for(let n of(a!==t[0]&&i.push(r.length/2),a))r.push(n.x),r.push(n.y);return{flattened:r,holeIndices:i}}(t);this._initializeVertices(a);try{let t=function(t,i,r=2){let a=i&&i.length,n=a?i[0]*r:t.length;s9.size&&s9.clear();let o=lt(t,0,n,r,!0),s=[];if(!o||o.next===o.prev)return s;let l=0,c=0,u=0;if(a&&(o=function(t,i,r,a){var n,o;let s,l=[];for(let r=0,n=i.length;r<n;r++){let o=lt(t,i[r]*a,r<n-1?i[r+1]*a:t.length,a,!1);o===o.next&&s9.add(o),l.push(function(t){let i=t,r=t;do(i.x<r.x||i.x===r.x&&i.y<r.y)&&(r=i),i=i.next;while(i!==t)return r}(o))}l.sort(la),n=t.length/a,o=i.length,s=Math.ceil((n+2*o)/16)+o+2,ln.length<4*s&&(ln=new Float64Array(4*s)),lo=0,lc(r,r),lr=!0;for(let t=0;t<l.length;t++)r=function(t,i){let r=function(t,i){let r=i,a=t.x,n=t.y,o=-1/0,s;if(lx(t,r))return r;for(let i=0,l=0;i<lo;i++,l+=4){if(n<ln[l+1]||n>ln[l+3]||ln[l]>
365a||ln[l+2]<=o)continue;let c=lu(i);r=lh(i);do{if(r.prev.next===r){if(lx(t,r.next))return r.next;if(n<=r.y&&n>=r.next.y&&r.next.y!==r.y){let t=r.x+(n-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(t<=a&&t>o&&(o=t,s=r.x<r.next.x?r:r.next,t===a))return s}}r=r.next}while(r!==c)}if(!s)return null;let l=s.x,c=s.y,u=Math.min(n,c),h=Math.max(n,c),d=1/0;for(let i=0,m=0;i<lo;i++,m+=4){if(ln[m+2]<l||ln[m]>a||ln[m+3]<u||ln[m+1]>h)continue;let g=lu(i);r=lh(i);do{if(r.prev.next===r&&a>=r.x&&r.x>=l&&a!==r.x&&lv(n<c?a:o,n,l,c,n<c?o:a,n,r.x,r.y)){var f,p;let i=Math.abs(n-r.y)/(a-r.x);(lT(r,t)||r.y===n&&r.next.y===n&&r.next.x>a)&&(i<d||i===d&&(r.x>s.x||r.x===s.x&&(f=s,p=r,0>lb(f.prev,f,p.prev)&&0>lb(p.next,f,f.next))))&&(s=r,d=i)}r=r.next}while(r!==g)}return s}(t,i);if(!r)return i;let a=lS(r,t);return lc(r,a.next.next),li(a,a.next),li(r,r.next)}(l[t],r);return lr=!1,li(r)}(t,i,o,r)),t.length>80*r){l=t[0],c=t[1];let i=l,a=c;for(let o=r;o<n;o+=r){let r=t[o],n=t[o+1];r<l&&(l=r),n<c&&(c=n),r>i&&(i=r),n>a&&(a=n)}u=0===(u=Math.max(i-l,a-c))?0:32767/u}return function t(i,r,a,n,o){o&&function(t,i,r,a){let n=t,o=0;do n.z=l_(n.x,n.y,i,r,a),ld[o++]=n,n=n.next;while(n!==t)!function(t){if(t<=32){for(let i=1;i<t;i++){let t=ld[i],r=t.z,a=i-1;for(;a>=0&&ld[a].z>r;)ld[a+1]=ld[a],a--;ld[a+1]=t}return}lp.length<t&&(lp=new Uint32Array(t),lm=new Uint32Array(t),lf=Array(t));for(let i=0;i<t;i++)lp[i]=ld[i].z;ly(t,ld,lp,lf,lm,0),ly(t,lf,lm,ld,lp,8),ly(t,ld,lp,lf,lm,16),ly(t,lf,lm,ld,lp,24)}(o);let s=null;for(let t=0;t<o;t++){let i=ld[t];i.prevZ=s,s&&(s.nextZ=i),s=i}s.nextZ=null}(i,a,n,o);let s=i,l=!1;for(;i.prev!==i.next;){let c=i.prev,u=i.next;if(0>lb(c,i,u)&&(o?function(t,i,r,a){let n=t.prev,o=t.next,s=n.x,l=t.x,c=o.x,u=n.y,h=t.y,d=o.y,f=Math.min(s,l,c),p=Math.min(u,h,d),m=Math.max(s,l,c),g=Math.max(u,h,d),y=l_(f,p,i,r,a),_=l_(m,g,i,r,a),v=t.prevZ;for(;v&&v.z>=y;){if(v.x>=f&&v.x<=m&&v.y>=p&&v.y<=g&&v!==o&&(s!==v.x||u!==v.y)&&lv(s,u,l,h,c,d,v.x,v.y)&&lb(v.prev,v,v.next)>=0)return!1;v=v.prevZ}let b=t.nextZ;for(;b&&b.z<=_;){if(b.x>=f&&b.x<=m&&b.y>=p&&b.y<=g&&b!==o&&(s!==b.x||u!==b.y)&&lv(s,u,l,h,c,d,b.x,b.y)&&lb(b.prev,b,b.next)>=0)return!1;b=b.nextZ}return!0}(i,a,n,o):function(t){let i=t.prev,r=t.next,a=i.x,n=t.x,o=r.x,s=i.y,l=t.y,c=r.y,u=Math.min(a,n,o),h=Math.min(s,l,c),d=Math.max(a,n,o),f=Math.max(s,l,c),p=r.next;for(;p!==i;){if(p.x>=u&&p.x<=d&&p.y>=h&&p.y<=f&&(a!==p.x||s!==p.y)&&lv(a,s,n,l,o,c,p.x,p.y)&&lb(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}(i))){r.push(c.i,i.i,u.i),lC(i),i=u,s=u;continue}if((i=u)===s){if(le=!1,i=li(i),le){s=i;continue}if(!l){s=i=function(t,i){let r=t,a=!1;do{let n=r.prev,o=r.next.next;lw(n,r,r.next,o,!1)&&lT(n,o)&&lT(o,n)&&(i.push(n.i,r.i,o.i),lC(r),lC(r.next),r=t=o,a=!0),r=r.next}while(r!==t)return a?li(r):r}(i,r),l=!0;continue}!function(i,r,a,n,o){let s=i;do{let i=s.next.next;for(;i!==s.prev;){if(s.i!==i.i&&function(t,i){let r=lx(t,i)&&lb(t.prev,t,t.next)>0&&lb(i.prev,i,i.next)>0;return t.next.i!==i.i&&(r||lT(t,i)&&lT(i,t)&&(0!==lb(t.prev,t,i.prev)||0!==lb(t,i.prev,i)))&&!function(t,i){let r=Math.min(t.x,i.x),a=Math.max(t.x,i.x),n=Math.min(t.y,i.y),o=Math.max(t.y,i.y),s=t;do{let l=s.next;if(s.x>a&&l.x>a||s.x<r&&l.x<r||s.y>o&&l.y>o||s.y<n&&l.y<n){s=l;continue}if(s.i!==t.i&&l.i!==t.i&&s.i!==i.i&&l.i!==i.i&&lw(s,l,t,i))return!0;s=l}while(s!==t)return!1}(t,i)&&(r||function(t,i){let r=t,a=!1,n=(t.x+i.x)/2,o=(t.y+i.y)/2;do{let t=r.next;r.y>o!=t.y>o&&n<(t.x-r.x)*(o-r.y)/(t.y-r.y)+r.x&&(a=!a),r=t}while(r!==t)return a}(t,i))}(s,i)){let l=lS(s,i);s=li(s,s.next),l=li(l,l.next),t(s,r,a,n,o),t(l,r,a,n,o);return}i=i.next}s=s.next}while(s!==i)}(i,r,a,n,o);break}}}(o,s,l,c,u),s}(a,n),i=this._convertIndices(a,t);r=this._subdivideTrianglesScanline(i)}catch(t){console.error(t)}let o=[];return i&&(o=this._generateOutline(t)),this._ensureNoPoleVertices(),this._handlePoles(r),this._granularity>=2&&this._canonical?.z===0&&(r=this._removeTrianglesOutsideTileX(r),o=o.map(t=>this._removeLinesOutsideTileX(t))),{verticesFlattened:this._vertexBuffer,indicesTriangles:r,indicesLineList:o}}_vertexOutsideTileX(t){let i=this._vertexBuffer[2*t];return i<0||i>8192}_removeTrianglesOutsideTileX(t){let i=[];for(let r=0;r<t.length;r+=3)this._vertexOutsideTileX(t[r])||this._vertexOutsideTileX(t[r+1])||this._vertexOutsideTileX(t[r+2])||i.push(t[r],t[r+1],t[r+2]);return i}_removeLinesOutsideTileX(t){let i=[];for(let r=0;r<t.length;r+=2)this._vertexOutsideTileX(t[r])||this._vertexOutsideTileX(t[r+1])||i.push(t[r],t[r+1]);return i}_convertIndices(t,i){let r=[];for(let a of i){let i=t[2*a],n=t[2*a+1];r.push(this._vertexToIndex(i,n))}return r}_pointArrayToIndices(t){let i=[];for(let r of t)i.push(this._vertexToIndex(r.x,r.y));return i}};function lI(t,i,r,a=!0){return new lD(r,i).subdividePolygonInternal(t,a)}function lz(t,i,r=!1){if(!t||t.length<1||t.length<2)return[];let a=t[0],n=t[t.length-1],o=r&&(a.x!==n.x||a.y!==n.y);if(i<2)return o?[...t,t[0]]:[...t];let s=Math.floor(8192/i),l=[];l.push(new R(t[0].x,t[0].y));let c=t.length,u=o?c:c-1;for(let i=0;i<u;i++){let r=t[i],a=i<c-1?t[i+1]:t[0],n=r.x,o=r.y,u=a.x,h=a.y,d=n!==u,f=o!==h;if(!d&&!f)continue;let p=u-n,m=h-o,g=Math.abs(p),y=Math.abs(m),_=n,v=o;for(;;){let t=p>0?(Math.floor(_/s)+1)*s:(Math.ceil(_/s)-1)*s,i=m>0?(Math.floor(v/s)+1)*s:(Math.ceil(v/s)-1)*s,r=Math.abs(_-t),a=Math.abs(v-i),n=Math.abs(v-h),o=d?r/g:1/0,c=f?a/y:1/0;
vendor: 5,436 bytes, line 365
365if((Math.abs(_-u)<=r||!d)&&(n<=a||!f))break;if(o<c&&d||!f){let i=new R(_=t,Math.round(v+=m*o));(l[l.length-1].x!==i.x||l[l.length-1].y!==i.y)&&l.push(i)}else{let t=new R(Math.round(_+=p*c),v=i);(l[l.length-1].x!==t.x||l[l.length-1].y!==t.y)&&l.push(t)}}let b=new R(u,h);(l[l.length-1].x!==b.x||l[l.length-1].y!==b.y)&&l.push(b)}return l}function lL(t,i,r,a,n,o,s,l,c){let u=n.length/2,h=s&&l&&c;if(u<oJ.MAX_VERTEX_ARRAY_LENGTH){let d,f,p=i.prepareSegment(u,r,a),m=p.vertexLength;for(let t=0;t<o.length;t+=3)a.emplaceBack(m+o[t],m+o[t+1],m+o[t+2]);p.vertexLength+=u,p.primitiveLength+=o.length/3,h&&(d=(f=s.prepareSegment(u,r,l)).vertexLength,f.vertexLength+=u);for(let i=0;i<n.length;i+=2)t(n[i],n[i+1]);if(h)for(let t of c){for(let i=1;i<t.length;i+=2)l.emplaceBack(d+t[i-1],d+t[i]);f.primitiveLength+=t.length/2}}else(function(t,i,r,a,n,o){let s=[];for(let t=0;t<a.length/2;t++)s.push(-1);let l={count:0},c=0,u=t.getOrCreateLatestSegment(i,r),h=u.vertexLength;for(let d=2;d<n.length;d+=3){let f=n[d-2],p=n[d-1],m=n[d],g=s[f]<c,y=s[p]<c,_=s[m]<c,v=+!!g+ +!!y+ +!!_;u.vertexLength+v>oJ.MAX_VERTEX_ARRAY_LENGTH&&(u=t.createNewSegment(i,r),c=l.count,g=!0,y=!0,_=!0,h=0);let b=lF(s,a,o,l,f,g,u),x=lF(s,a,o,l,p,y,u),w=lF(s,a,o,l,m,_,u);r.emplaceBack(h+b-c,h+x-c,h+w-c),u.primitiveLength++}})(i,r,a,n,o,t),h&&function(t,i,r,a,n,o){let s=[];for(let t=0;t<a.length/2;t++)s.push(-1);let l={count:0},c=0,u=t.getOrCreateLatestSegment(i,r),h=u.vertexLength;for(let d of n)for(let n=1;n<d.length;n+=2){let f=d[n-1],p=d[n],m=s[f]<c,g=s[p]<c,y=+!!m+ +!!g;u.vertexLength+y>oJ.MAX_VERTEX_ARRAY_LENGTH&&(u=t.createNewSegment(i,r),c=l.count,m=!0,g=!0,h=0);let _=lF(s,a,o,l,f,m,u),v=lF(s,a,o,l,p,g,u);r.emplaceBack(h+_-c,h+v-c),u.primitiveLength++}}(s,r,l,n,c,t),i.forceNewSegmentOnNextPrepare(),s?.forceNewSegmentOnNextPrepare()}function lF(t,i,r,a,n,o,s){if(o){let o=a.count;return r(i[2*n],i[2*n+1]),t[n]=a.count,a.count++,s.vertexLength++,o}return t[n]}var lR=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.hasDependencies=!1,this.sdfPatterns={},this.patternFeatures=[],this.layoutVertexArray=new oL,this.indexArray=new oH,this.indexArray2=new oW,this.programConfigurations=new s_(t.layers,t.zoom),this.segments=new oJ,this.segments2=new oJ,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(t,i,r){this.hasDependencies=s8("fill",this.layers,i);let a=this.layers[0].layout.get("fill-sort-key"),n=!a.isConstant(),o=[],s=new nD(this.zoom),l=this.layers[0]._featureFilter.needGeometry;for(let{feature:c,id:u,index:h,sourceLayerIndex:d}of t){let t=sx(c,l);if(!this.layers[0]._featureFilter.filter(s,t,r))continue;let f=n?a.evaluate(t,{},r,i.availableImages):void 0,p={id:u,properties:c.properties,type:c.type,sourceLayerIndex:d,index:h,geometry:l?t.geometry:sb(c),patterns:{},sortKey:f};o.push(p)}for(let a of(n&&o.sort((t,i)=>t.sortKey-i.sortKey),o)){let{geometry:n,index:o,sourceLayerIndex:s}=a;if(this.hasDependencies){let t=s7("fill",this.layers,a,{zoom:this.zoom},i);this.patternFeatures.push(t)}else this.addFeature(a,n,o,r,{},i.subdivisionGranularity);let l=t[o].feature;i.featureIndex.insert(l,n,o,s,this.index)}}update(t,i,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,i,this.stateDependentLayers,{imagePositions:r})}addFeatures({options:t,canonical:i,patternPositions:r,patternMap:a}){for(let n of(this.detectSdfPatterns(a),this.patternFeatures))this.addFeature(n,n.geometry,n.index,i,r,t.subdivisionGranularity)}detectSdfPatterns(t){for(let i of this.patternFeatures)for(let r in i.patterns){let a=i.patterns[r];this.recordSdfPattern(r,t[a.min]),this.recordSdfPattern(r,t[a.mid]),this.recordSdfPattern(r,t[a.max])}for(let i of this.layers){let r=i.paint.get("fill-pattern").constantOr(null);r&&(this.recordSdfPattern(i.id,t[r.from.toString()]),this.recordSdfPattern(i.id,t[r.to.toString()]))}}recordSdfPattern(t,i){if(!i)return;let r=!0===i.sdf,a=this.sdfPatterns[t];void 0===a?this.sdfPatterns[t]=r:a!==r&&tu(`Style sheet warning: Cannot mix SDF and non-SDF fill patterns in layer "${t}"`)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,s6),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(t,i,r,a,n,o){for(let t of i6(i,500)){let i=lI(t,a,o.fill.getGranularityForZoomLevel(a.z)),r=this.layoutVertexArray;lL((t,i)=>{r.emplaceBack(t,i)},this.segments,this.layoutVertexArray,this.indexArray,i.verticesFlattened,i.indicesTriangles,this.segments2,this.indexArray2,i.indicesLineList)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{imagePositions:n,canonical:a})}};nT("FillBucket",lR,{omit:["layers","patternFeatures"]});var lO={get paint(){return f||=new nH({"fill-antialias":new nV(tK.paint_fill["fill-antialias"],"fill-antialias"),"fill-opacity":new nU(tK.paint_fill["fill-opacity"],"fill-opacity"),"fill-layer
365-opacity":new nV(tK.paint_fill["fill-layer-opacity"],"fill-layer-opacity"),"fill-color":new nU(tK.paint_fill["fill-color"],"fill-color"),"fill-outline-color":new nU(tK.paint_fill["fill-outline-color"],"fill-outline-color"),"fill-translate":new nV(tK.paint_fill["fill-translate"],"fill-translate"),"fill-translate-anchor":new nV(tK.paint_fill["fill-translate-anchor"],"fill-translate-anchor"),"fill-pattern":new nG(tK.paint_fill["fill-pattern"],"fill-pattern")})},get layout(){return d||=new nH({"fill-sort-key":new nU(tK.layout_fill["fill-sort-key"],"fill-sort-key")})}},lB=class extends nY{constructor(t,i){super(t,lO,i)}recalculate(t,i){super.recalculate(t,i);let r=this.paint._values["fill-outline-color"];"constant"===r.value.kind&&void 0===r.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(t){return new lR(t)}queryRadius(){return sI(this.paint.get("fill-translate"))}queryIntersectsFeature({queryGeometry:t,geometry:i,transform:r,pixelsToTileUnits:a}){return sS(sz(t,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),-r.bearingInRadians,a),i)}isTileClipped(){return!0}};let lj=n2([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4),lN=n2([{name:"a_centroid",components:2,type:"Int16"}],4),l$=lj.members;lj.size,lj.alignment;var lV=class t{constructor(){this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0}extend(t){return this.minX=Math.min(this.minX,t.x),this.minY=Math.min(this.minY,t.y),this.maxX=Math.max(this.maxX,t.x),this.maxY=Math.max(this.maxY,t.y),this}expandBy(t){return this.minX-=t,this.minY-=t,this.maxX+=t,this.maxY+=t,(this.minX>this.maxX||this.minY>this.maxY)&&(this.minX=1/0,this.maxX=-1/0,this.minY=1/0,this.maxY=-1/0),this}shrinkBy(t){return this.expandBy(-t)}map(i){let r=new t;return r.extend(i(new R(this.minX,this.minY))),r.extend(i(new R(this.maxX,this.minY))),r.extend(i(new R(this.minX,this.maxY))),r.extend(i(new R(this.maxX,this.maxY))),r}static fromPoints(i){let r=new t;for(let t of i)r.extend(t);return r}contains(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY}empty(){return this.minX>this.maxX}width(){return this.maxX-this.minX}height(){return this.maxY-this.minY}covers(t){return!this.empty()&&!t.empty()&&t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY}intersects(t){return!this.empty()&&!t.empty()&&t.minX<=this.maxX&&t.maxX>=this.minX&&t.minY<=this.maxY&&t.maxY>=this.minY}};let lU=lV.fromPoints([new R(0,0),new R(8192,8192)]);function lG(t,i){return t.x===i.x&&(t.x<0||t.x>8192)||t.y===i.y&&(t.y<0||t.y>8192)}function lq(t){return t.every(t=>t.x<0)||t.every(t=>t.x>8192)||t.every(t=>t.y<0)||t.every(t=>t.y>8192)}var lZ=class{constructor(t,i,r,a,n){for(this.properties=Object.create(null),this.extent=r,this.type=0,this.id=void 0,this._pbf=t,this._geometry=-1,this._keys=a,this._values=n;t.pos<i;){let i=t.readVarint();if(8===i)this.id=t.readVarint();else if(18===i){let i=t.readVarint()+t.pos;for(;t.pos<i;){let i=a[t.readVarint()],r=n[t.readVarint()];this.properties[i]=r}}else 24===i?this.type=t.readVarint():(34===i&&(this._geometry=t.pos),t.skip(i))}}loadGeometry(){if(this._geometry<0)throw Error("feature has no geometry");let t=this._pbf;t.pos=this._geometry;let i=t.readVarint()+t.pos,r=[],a,n=1,o=0,s=0,l=0;for(;t.pos<i;){if(o<=0){let i=t.readVarint();if(n=7&i,0==(o=i>>3))continue}if(o--,1===n)s+=t.readSVarint(),l+=t.readSVarint(),a&&r.push(a),a=[new R(s,l)];else if(2===n)s+=t.readSVarint(),l+=t.readSVarint(),a&&a.push(new R(s,l));else if(7===n)a&&a.push(a[0].clone());else throw Error(`unknown command ${n}`)}return a&&r.push(a),r}bbox(){if(this._geometry<0)throw Error("feature has no geometry");let t=this._pbf;t.pos=this._geometry;let i=t.readVarint()+t.pos,r=1,a=0,n=0,o=0,s=1/0,l=-1/0,c=1/0,u=-1/0;for(;t.pos<i;){if(a<=0){let i=t.readVarint();if(r=7&i,0==(a=i>>3))continue}if(a--,1===r||2===r)n+=t.readSVarint(),o+=t.readSVarint(),n<s&&(s=n),n>l&&(l=n),o<c&&(c=o),o>u&&(u=o);else if(7!==r)throw Error(`unknown command ${r}`)}return[s,c,l,u]}toGeoJSON(t,i,r){let a,n=this.extent*2**r,o=this.extent*t,s=this.extent*i,l=this.loadGeometry();function c(t){return[(t.x+o)*360/n-180,360/Math.PI*Math.atan(Math.exp((1-(t.y+s)*2/n)*Math.PI))-90]}function u(t){return t.map(c)}if(1===this.type){let t=[];for(let i of l)t.push(i[0]);let i=u(t);a=1===t.length?{type:"Point",coordinates:i[0]}:{type:"MultiPoint",coordinates:i}}else if(2===this.type){let t=l.map(u);a=1===t.length?{type:"LineString",coordinates:t[0]}:{type:"MultiLineString",coordinates:t}}else if(3===this.type){let t=lH(l),i=[];for(let r of t)i.push(r.map(u));a=1===i.length?{type:"Polygon",coordinates:i[0]}:{type:"MultiPolygon",coordinates:i}}else throw Error("unknown feature type");let h={type:"Feature",geometry:a,properties:this.properties};return null!=this.id&&(h.id=this.id),h}};function lH(t){let i=t.length;if(i<=1)return[t];let r=[],a,n;for(let o=0;o<i;o++){let i=function(t){let i=0;for(let r=0,a=t.length,n=a-1,o,s;r<a;n=r++)o=t[r],i+=((s=t[n]).x-o.x)*(o.y+s.y);return i}(t[o]);0!==i&&(void 0===n&&(n=i<0),n===i<0?(a&&r.push(a),a=[t[o]]):a&&a.push(t[o]))}return a&&r.push(a),r}lZ.types=["Unknown","Point","LineString","Polygon"];var lW=class{constructor(t,i){for(this.version=1,this.name="",this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],void 0===i&&(i=t.length);t.pos<i;){let i=t.readVarint();10===i?this.name=t.readString():18===i?(this._features.push(t.pos),t.skip(i)):26===i?this._keys.push(t.readString()):34===i?this._values.push(function(t){let i=null,r=t.readVarint()+t.pos;for(;t.pos<r;){let r=t.readVarint();i=10===r?t.readString():21===r?t.readFloat():25===r?t.readDouble():32===r?t.readVarint(!0):40===r?t.readVarint():48===r?t.readSVarint():56===r?t.readBoolean():(t.skip(r),null)}if(null==i)throw Error("unknown feature value");return i}(t)):40===i?this.extent=t.readVarint():120===i?this.version=t.readVarint():t.skip(i)}this.length=this._features.length}feature(t){if(t<0||t>=this._features.length)throw Error("feature index out of bounds");this._pbf.pos=this._features[t];let i=this._pbf.readVarint()+this._pbf.pos;return new lZ(this._pbf,i,this.extent,this._keys,this._values)}},lX=class{constructor(t,i=t.length){let r=Object.create(null);for(;t.pos<i;){let i=t.readVarint();if(26===i){let i=new lW(t,t.readVarint()+t.pos);i.length&&(r[i.name]=i)}else t.skip(i)}this.layers=r}},lY=class t{constructor(t,i){if(isNaN(t)||isNaN(i))throw Error(`Invalid LngLat object: (${t}, ${i})`);
365if(this.lng=+t,this.lat=+i,this.lat>90||this.lat<-90)throw Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new t(e6(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(t){let i=Math.PI/180,r=this.lat*i,a=t.lat*i;return 6371008.8*Math.acos(Math.min(Math.sin(r)*Math.sin(a)+Math.cos(r)*Math.cos(a)*Math.cos((t.lng-this.lng)*i),1))}static convert(i){if(i instanceof t)return i;if(Array.isArray(i)&&(2===i.length||3===i.length))return new t(Number(i[0]),Number(i[1]));if(!Array.isArray(i)&&"object"==typeof i&&i)return new t(Number("lng"in i?i.lng:i.lon),Number(i.lat));throw Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}};let lK=2*Math.PI*6371008.8;function lJ(t){return lK*Math.cos(t*Math.PI/180)}function lQ(t){return(180+t)/360}function l1(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function l0(t,i){return t/lJ(i)}function l2(t){return 360*t-180}function l3(t){return 360/Math.PI*Math.atan(Math.exp((180-360*t)*Math.PI/180))-90}function l5(t,i){return t*lJ(l3(i))}var l4=class t{constructor(t,i,r=0){this.x=+t,this.y=+i,this.z=+r}static fromLngLat(i,r=0){let a=lY.convert(i);return new t(lQ(a.lng),l1(a.lat),r/lJ(a.lat))}toLngLat(){return new lY(l2(this.x),l3(this.y))}toAltitude(){return l5(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/lK*(1/Math.cos(l3(this.y)*Math.PI/180))}};function l6(t,i,r){let a=1/(1<<r.z);return new l4(t/8192*a+r.x*a,i/8192*a+r.y*a)}function l8(t,i){let r=e4(i.lat,-85.051129,85.051129);return new R(lQ(i.lng)*t,l1(r)*t)}function l7(t,i){return new l4(i.x/t,i.y/t).toLngLat()}function l9(t){return t.cameraToCenterDistance*Math.min(.85*Math.tan(tw(90-t.pitch)),Math.tan(tw(89.25-t.pitch)))}function ce(t,i){let r=t.canonical,a=i/ti(r.z),n=r.x+2**r.z*t.wrap,o=new Float64Array(16);return q(o),W(o,o,[n*a,r.y*a,0]),X(o,o,[a/8192,a/8192,1]),o}function ct(t,i,r,a,n){let o=l4.fromLngLat(t,i),s=n*(1/lJ(t.lat)),{x:l,y:c,z:u}=cr(r,a);return new l4(o.x+-(s*l),o.y+-(s*c),o.z+s*u)}function ci(t){let i=1/lJ(t.center.lat)*t.worldSize;return ct(t.center,t.elevation,t.pitch,t.bearing,t.cameraToCenterDistance/i)}function cr(t,i){let r=tw(t),a=tw(i),n=Math.cos(-r),o=Math.sin(r);return{x:o*Math.sin(a),y:-o*Math.cos(a),z:n}}function ca(t,i,r,a,n,o,s,l){t.emplaceBack(i,r,2*Math.floor(8192*a)+s,8192*n*2,8192*o*2,Math.round(l))}var cn=class{constructor(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.hasDependencies=!1,this.layoutVertexArray=new oF,this.centroidVertexArray=new oP,this.indexArray=new oH,this.programConfigurations=new s_(t.layers,t.zoom),this.segments=new oJ,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(t,i,r){var a,n;let o;this.features=[],this.hasDependencies=s8("fill-extrusion",this.layers,i);let s=new nD(this.zoom),l=this.layers[0],c=l.layout.get("fill-extrusion-rounded-corner-distance"),u=c>0?(a=c,o=l6(4096,4096,n=r).toLngLat(),a*l4.fromLngLat(o).meterInMercatorCoordinateUnits()*((1<<n.z)*8192)):0,h=l._featureFilter.needGeometry;for(let{feature:a,id:n,index:o,sourceLayerIndex:c}of t){let t=sx(a,h);if(!l._featureFilter.filter(s,t,r))continue;let d={id:n,sourceLayerIndex:c,index:o,geometry:function(t,i){return i<=0||!t||0===t.length?t:t.map(t=>(function(t,i){if(!t||t.length<3)return t;let r=t[0].x===t[t.length-1].x&&t[0].y===t[t.length-1].y,a=r?t.length-1:t.length;if(a<3)return t;let n=[],o=lG(t[a-1],t[0]);for(let r=0;r<a;r++){let s=t[(r-1+a)%a],l=t[r],c=t[(r+1)%a],u=lG(l,c);o||u?n.push(l.clone()):function(t,i,r,a,n){let o=i.sub(r),s=a.sub(r),l=o.mag(),c=s.mag();if(l<1e-6||c<1e-6)return t.push(r.clone());o._div(l),s._div(c);let u=o.x*s.x+o.y*s.y;if(Math.abs(u)>Math.cos(5*Math.PI/180))return t.push(r.clone());let h=Math.min(n,.2*l,.2*c),d=r.add(o.mult(h)),f=r.add(s.mult(h)),p=Math.sqrt((1+u)/2),m=r.add(o.add(s)._unit()._mult(h/p)),g=d.sub(m).angleWith(f.sub(m)),y=Math.max(2,Math.ceil(Math.abs(g)/(Math.PI/6)-1e-6));for(let i=0;i<=y;
vendor: 6,548 bytes, line 365
365i++)t.push(d.rotateAround(i/y*g,m))}(n,s,l,c,i),o=u}let s=function(t){let i=[];for(let r of t){let t=r.round(),a=i[i.length-1];(a?.x!==t.x||a?.y!==t.y)&&i.push(t)}for(;i.length>1&&i[0].x===i[i.length-1].x&&i[0].y===i[i.length-1].y;)i.pop();return i}(n);return s.length<3?t:(r&&s.push(s[0].clone()),s)})(t,i))}(h?t.geometry:sb(a),u),properties:a.properties,type:a.type,patterns:{}};this.hasDependencies?this.features.push(s7("fill-extrusion",this.layers,d,{zoom:this.zoom},i)):this.addFeature(d,d.geometry,o,r,{},i.subdivisionGranularity),i.featureIndex.insert(a,d.geometry,o,c,this.index,!0)}}addFeatures({options:t,canonical:i,patternPositions:r}){for(let a of this.features){let{geometry:n}=a;this.addFeature(a,n,a.index,i,r,t.subdivisionGranularity)}}update(t,i,r){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,i,this.stateDependentLayers,{imagePositions:r})}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.centroidVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,l$),this.centroidVertexBuffer=t.createVertexBuffer(this.centroidVertexArray,lN.members,!0),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(t,i,r,a,n,o){for(let r of i6(i,500)){let i={x:0,y:0,sampleCount:0},n=this.layoutVertexArray.length;this.processPolygon(i,a,t,r,o);let s=this.layoutVertexArray.length-n,l=Math.floor(i.x/i.sampleCount),c=Math.floor(i.y/i.sampleCount);for(let t=0;t<s;t++)this.centroidVertexArray.emplaceBack(l,c)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{imagePositions:n,canonical:a})}processPolygon(t,i,r,a,n){if(a.length<1||lq(a[0]))return;for(let i of a)0!==i.length&&function(t,i){for(let r=0;r<i.length;r++){let a=i[r];(r!==i.length-1||i[0].x!==a.x||i[0].y!==a.y)&&(t.x+=a.x,t.y+=a.y,t.sampleCount++)}}(t,i);let o={segment:this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray)},s=n.fill.getGranularityForZoomLevel(i.z),l="Polygon"===lZ.types[r.type];for(let t of a){if(0===t.length||lq(t))continue;let i=lz(t,s,l);this._generateSideFaces(i,o)}if(!l)return;let c=lI(a,i,s,!1),u=this.layoutVertexArray;lL((t,i)=>{ca(u,t,i,0,0,1,1,0)},this.segments,this.layoutVertexArray,this.indexArray,c.verticesFlattened,c.indicesTriangles)}_generateSideFaces(t,i){let r=0;for(let a=1;a<t.length;a++){let n=t[a],o=t[a-1];if(lG(n,o))continue;i.segment.vertexLength+4>oJ.MAX_VERTEX_ARRAY_LENGTH&&(i.segment=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let s=n.sub(o)._perp()._unit(),l=o.dist(n);r+l>32768&&(r=0),ca(this.layoutVertexArray,n.x,n.y,s.x,s.y,0,0,r),ca(this.layoutVertexArray,n.x,n.y,s.x,s.y,0,1,r),r+=l,ca(this.layoutVertexArray,o.x,o.y,s.x,s.y,0,0,r),ca(this.layoutVertexArray,o.x,o.y,s.x,s.y,0,1,r);let c=i.segment.vertexLength;this.indexArray.emplaceBack(c,c+2,c+1),this.indexArray.emplaceBack(c+1,c+2,c+3),i.segment.vertexLength+=4,i.segment.primitiveLength+=2}}};nT("FillExtrusionBucket",cn,{omit:["layers","features"]});var co={get paint(){return m||=new nH({"fill-extrusion-opacity":new nV(tK["paint_fill-extrusion"]["fill-extrusion-opacity"],"fill-extrusion-opacity"),"fill-extrusion-color":new nU(tK["paint_fill-extrusion"]["fill-extrusion-color"],"fill-extrusion-color"),"fill-extrusion-translate":new nV(tK["paint_fill-extrusion"]["fill-extrusion-translate"],"fill-extrusion-translate"),"fill-extrusion-translate-anchor":new nV(tK["paint_fill-extrusion"]["fill-extrusion-translate-anchor"],"fill-extrusion-translate-anchor"),"fill-extrusion-pattern":new nG(tK["paint_fill-extrusion"]["fill-extrusion-pattern"],"fill-extrusion-pattern"),"fill-extrusion-height":new nU(tK["paint_fill-extrusion"]["fill-extrusion-height"],"fill-extrusion-height"),"fill-extrusion-base":new nU(tK["paint_fill-extrusion"]["fill-extrusion-base"],"fill-extrusion-base"),"fill-extrusion-vertical-gradient":new nV(tK["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"],"fill-extrusion-vertical-gradient")})},get layout(){return p||=new nH({"fill-extrusion-rounded-corner-distance":new nV(tK["layout_fill-extrusion"]["fill-extrusion-rounded-corner-distance"],"fill-extrusion-rounded-corner-distance")})}},cs=class extends nY{constructor(t,i){super(t,co,i)}createBucket(t){return new cn(t)}queryRadius(){return sI(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature({queryGeometry:t,feature:i,featureState:r,geometry:a,transform:n,pixelsToTileUnits:o,pixelPosMatrix:s}){let l=sz(t,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),-n.bearingInRadians,o),c=this.paint.get("fill-extrusion-height").evaluate(i,r),u=this.paint.get("fill-extrusion-base").evaluate(i,r),h=function(t,i){let r=[];for(let a of t){let t=[a.x,a.y,0,1];eS(t,t,i),r.push(new R(t[0]/t[3],t[1]/t[3]))}return r}(l,s),d=function(t,i,r,a){let n=[],o=[],s=a[8]*i,l=a[9]*i,c=a[10]*i,u=a[11]*i,h=a[8]*r,d=a[9]*r,f=a[10]*r,p=a[11]*r;for(let i of t){let t=[],r=[];for(let n of i){let i=n.x,o=n.y,m=a[0]*i+a[4]*o+a[12],g=a[1]*i+a[5]*o+a[13],y=a[2]*i+a[6]*o+a[14],_=a[3]*i+a[7]*o+a[15],v=m+s,b=g+l,x=y+c,w=_+u,k=m+h,T=g+d,S=y+f,A=_+p,C=new R(v/w,b/w);C.z=x/w,t.push(C);let E=new R(k/A,T/A);E.z=S/A,r.push(E)}n.push(t),o.push(r)}return[n,o]}(a,u,c,s);return function(t,i,r){let a=1/0;sS(r,i)&&(a=cc(r,i[0]));for(let n=0;n<i.length;n++){let o=i[n],s=t[n];for(let t=0;t<o.length-1;t++){let i=o[t],n=o[t+1],l=s[t],c=[i,n,s[t+1],l,i];sk(r,c)&&(a=Math.min(a,cc(r,c)))}}return 1/0!==a&&a}(d[0],d[1],h)}};function cl(t,i){return t.x*i.x+t.y*i.y}function cc(t,i){if(1===t.length){let r=0,a=i[r++],n;for(;!n||a.equals(n);)if(!(n=i[r++]))return 1/0;for(;r<i.length;r++){let o=i[r],s=t[0],l=n.sub(a),c=o.sub(a),u=s.sub(a),h=cl(l,l),d=cl(l,c),f=cl(c,c),p=cl(u,l),m=cl(u,c),g=h*f-d*d,y=(f*p-d*m)/g,_=(h*m-d*p)/g,v=1-y-_,b=a.z*v+n.z*y+o.z*_;if(isFinite(b))return b}return 1/0}{let t=1/0;for(let r of i)t=Math.min(t,r.z);return t}}new Uint32Array(96);let cu=n2([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4),ch=cu.members;cu.size,cu.alignment;let cd=n2([{name:"a_uv_x",components:1,type:"Float32"},{name:"a_split_index",components:1,type:"Float32"}]),cf=cd.members;
365cd.size,cd.alignment;let cp=Math.cos(Math.PI/180*37.5);var cm=class{constructor(t){for(let i of(this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.hasDependencies=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers))this.gradients[i.id]={};this.layoutVertexArray=new oR,this.layoutVertexArray2=new oO,this.indexArray=new oH,this.programConfigurations=new s_(t.layers,t.zoom),this.segments=new oJ,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>t.id)}populate(t,i,r){this.hasDependencies=s8("line",this.layers,i)||this.hasLineDasharray(this.layers);let a=this.layers[0].layout.get("line-sort-key"),n=!a.isConstant(),o=[],s=new nD(this.zoom),l=this.layers[0]._featureFilter.needGeometry;for(let{feature:i,id:c,index:u,sourceLayerIndex:h}of t){let t=sx(i,l);if(!this.layers[0]._featureFilter.filter(s,t,r))continue;let d=n?a.evaluate(t,{},r):void 0,f={id:c,properties:i.properties,type:i.type,sourceLayerIndex:h,index:u,geometry:l?t.geometry:sb(i),patterns:{},dashes:{},sortKey:d};o.push(f)}for(let a of(n&&o.sort((t,i)=>t.sortKey-i.sortKey),o)){let{geometry:n,index:o,sourceLayerIndex:s}=a;this.hasDependencies?(s8("line",this.layers,i)?s7("line",this.layers,a,{zoom:this.zoom},i):this.hasLineDasharray(this.layers)&&this.addLineDashDependencies(this.layers,a,this.zoom,i),this.patternFeatures.push(a)):this.addFeature(a,n,o,r,{},{},i.subdivisionGranularity);let l=t[o].feature;i.featureIndex.insert(l,n,o,s,this.index)}}update(t,i,r,a){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(t,i,this.stateDependentLayers,{imagePositions:r,dashPositions:a})}addFeatures({options:t,canonical:i,patternPositions:r,dashPositions:a}){for(let n of this.patternFeatures)this.addFeature(n,n.geometry,n.index,i,r,a,t.subdivisionGranularity)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(t){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=t.createVertexBuffer(this.layoutVertexArray2,cf)),this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,ch),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(t){if(t.properties&&Object.hasOwn(t.properties,"geojsonvt_clip_start")&&Object.hasOwn(t.properties,"geojsonvt_clip_end"))return{start:+t.properties.geojsonvt_clip_start,end:+t.properties.geojsonvt_clip_end}}addFeature(t,i,r,a,n,o,s){let l=this.layers[0].layout,c=l.get("line-join").evaluate(t,{}),u=l.get("line-cap").evaluate(t,{}),h=l.get("line-miter-limit").evaluate(t,{}),d=l.get("line-round-limit").evaluate(t,{});for(let r of(this.lineClips=this.lineFeatureClips(t),i))this.addLine(r,t,c,u,h,d,a,s);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{imagePositions:n,dashPositions:o,canonical:a})}addLine(t,i,r,a,n,o,s,l){this.distance=0,this.scaledDistance=0,this.totalDistance=0;let c=s?l.line.getGranularityForZoomLevel(s.z):1;if(t=lz(t,c),this.lineClips){this.lineClipsArray.push(this.lineClips);for(let i=0;i<t.length-1;i++)this.totalDistance+=t[i].dist(t[i+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}let u="Polygon"===lZ.types[i.type],h=t.length;for(;h>=2&&t[h-1].equals(t[h-2]);)h--;let d=0;for(;d<h-1&&t[d].equals(t[d+1]);)d++;if(h-d<(u?3:2))return;"bevel"===r&&(n=1.05);let f=this.overscaling<=16?122880/(512*this.overscaling):0,p=this.segments.prepareSegment(10*h,this.layoutVertexArray,this.indexArray),m,g,y,_,v;this.e1=this.e2=-1,u&&(m=t[h-2],v=t[d].sub(m)._unit()._perp());for(let i=d;i<h;i++){if((y=i===h-1?u?t[d+1]:void 0:t[i+1])&&t[i].equals(y))continue;v&&(_=v),m&&(g=m),m=t[i],v=y?y.sub(m)._unit()._perp():_;let s=(_||=v).add(v);(0!==s.x||0!==s.y)&&s._unit();let l=_.x*v.x+_.y*v.y,c=s.x*v.x+s.y*v.y,b=0===c?1/0:1/c,x=2*Math.sqrt(2-2*c),w=c<cp&&g&&y,k=_.x*v.y-_.y*v.x>0;if(w&&i>d){let t=m.dist(g);if(t>
3652*f){let i=m.sub(m.sub(g)._mult(f/t)._round());this.updateDistance(g,i),this.addCurrentVertex(i,_,0,0,p),g=i}}let T=g&&y,S=T?r:u?"butt":a;if(T&&"round"===S&&(b<o?S="miter":b<=2&&(S="fakeround")),"miter"===S&&b>n&&(S="bevel"),"bevel"===S&&(b>2&&(S="flipbevel"),b<n&&(S="miter")),g&&this.updateDistance(g,m),"miter"===S)s._mult(b),this.addCurrentVertex(m,s,0,0,p);else if("flipbevel"===S){if(b>100)s=v.mult(-1);else{let t=b*_.add(v).mag()/_.sub(v).mag();s._perp()._mult(t*(k?-1:1))}this.addCurrentVertex(m,s,0,0,p),this.addCurrentVertex(m,s.mult(-1),0,0,p)}else if("bevel"===S||"fakeround"===S){let t=-Math.sqrt(b*b-1),i=k?t:0,r=k?0:t;if(g&&this.addCurrentVertex(m,_,i,r,p),"fakeround"===S){let t=Math.round(180*x/Math.PI/20);for(let i=1;i<t;i++){let r=i/t;if(.5!==r){let t=r-.5,i=1.0904+l*(-3.2452+l*(3.55645-1.43519*l)),a=.848013+l*(-1.06021+.215638*l);r+=r*t*(r-1)*(i*t*t+a)}let a=v.sub(_)._mult(r)._add(_)._unit()._mult(k?-1:1);this.addHalfVertex(m,a.x,a.y,!1,k,0,p)}}y&&this.addCurrentVertex(m,v,-i,-r,p)}else if("butt"===S)this.addCurrentVertex(m,s,0,0,p);else if("square"===S){let t=g?1:-1;this.addCurrentVertex(m,s,t,t,p)}else"round"===S&&(g&&(this.addCurrentVertex(m,_,0,0,p),this.addCurrentVertex(m,_,1,1,p,!0)),y&&(this.addCurrentVertex(m,v,-1,-1,p,!0),this.addCurrentVertex(m,v,0,0,p)));if(w&&i<h-1){let t=m.dist(y);if(t>2*f){let i=m.add(y.sub(m)._mult(f/t)._round());this.updateDistance(m,i),this.addCurrentVertex(i,v,0,0,p),m=i}}}}addCurrentVertex(t,i,r,a,n,o=!1){let s=i.x+i.y*r,l=i.y-i.x*r,c=-i.x+i.y*a,u=-i.y-i.x*a;this.addHalfVertex(t,s,l,o,!1,r,n),this.addHalfVertex(t,c,u,o,!0,-a,n),this.distance>16384&&0===this.totalDistance&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(t,i,r,a,n,o))}addHalfVertex({x:t,y:i},r,a,n,o,s,l){let c=(this.lineClips?32767*this.scaledDistance:this.scaledDistance)*.5;if(this.layoutVertexArray.emplaceBack((t<<1)+ +!!n,(i<<1)+ +!!o,Math.round(63*r)+128,Math.round(63*a)+128,(0===s?0:s<0?-1:1)+1|(63&c)<<2,c>>6),this.lineClips){let t=(this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start);this.layoutVertexArray2.emplaceBack(t,this.lineClipsArray.length)}let u=l.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,u,this.e2),l.primitiveLength++),o?this.e2=u:this.e1=u}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(t,i){this.distance+=t.dist(i),this.updateScaledDistance()}hasLineDasharray(t){for(let i of t){let t=i.paint.get("line-dasharray");if(t&&!t.isConstant())return!0}return!1}addLineDashDependencies(t,i,r,a){for(let n of t){let t=n.paint.get("line-dasharray");if(!t||"constant"===t.value.kind)continue;let o="round"===n.layout.get("line-cap").evaluate(i,{}),s={dasharray:t.value.evaluate({zoom:r-1},i,{}),round:o},l={dasharray:t.value.evaluate({zoom:r},i,{}),round:o},c={dasharray:t.value.evaluate({zoom:r+1},i,{}),round:o},u=`${s.dasharray.join(",")},${s.round}`,h=`${l.dasharray.join(",")},${l.round}`,d=`${c.dasharray.join(",")},${c.round}`;a.dashDependencies[u]=s,a.dashDependencies[h]=l,a.dashDependencies[d]=c,i.dashes[n.id]={min:u,mid:h,max:d}}}};nT("LineBucket",cm,{omit:["layers","patternFeatures"]});var cg={get paint(){return y||=new nH({"line-opacity":new nU(tK.paint_line["line-opacity"],"line-opacity"),"line-layer-opacity":new nV(tK.paint_line["line-layer-opacity"],"line-layer-opacity"),"line-color":new nU(tK.paint_line["line-color"],"line-color"),"line-translate":new nV(tK.paint_line["line-translate"],"line-translate"),"line-translate-anchor":new nV(tK.paint_line["line-translate-anchor"],"line-translate-anchor"),"line-width":new nU(tK.paint_line["line-width"],"line-width"),"line-gap-width":new nU(tK.paint_line["line-gap-width"],"line-gap-width"),"line-offset":new nU(tK.paint_line["line-offset"],"line-offset"),"line-blur":new nU(tK.paint_line["line-blur"],"line-blur"),"line-dasharray":new nG(tK.paint_line["line-dasharray"],"line-dasharray"),"line-pattern":new nG(tK.paint_line["line-pattern"],"line-pattern"),"line-gradient":new nZ(tK.paint_line["line-gradient"],"line-gradient")})},get layout(){return g||=new nH({"line-cap":new nU(tK.layout_line["line-cap"],"line-cap"),"line-join":new nU(tK.layout_line["line-join"],"line-join"),"line-miter-limit":new nU(tK.layout_line["line-miter-limit"],"line-miter-limit"),"line-round-limit":new nU(tK.layout_line["line-round-limit"],"line-round-limit"),"line-sort-key":new nU(tK.layout_line["line-sort-key"],"line-sort-key")})}},cy=class extends nU{possiblyEvaluate(t,i){return i=new nD(Math.floor(i.zoom),{now:i.now,fadeDuration:i.fadeDuration,zoomHistory:i.zoomHistory,transition:i.transition}),super.possiblyEvaluate(t,i)}evaluate(t,i,r,a){return i=e8({},i,{zoom:Math.floor(i.zoom)}),super.evaluate(t,i,r,a)}},c_=class extends nY{constructor(t,i){super(t,cg,i),this.gradientVersion=0,_||((_=new cy(cg.paint.properties["line-width"].specification,"line-floorwidth")).useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(t){if("line-gradient"===t){let t=this.gradientExpression();this.stepInterpolant=void 0!==t._styleExpression&&t._styleExpression.expression instanceof i1,this.gradientVersion=(this.gradientVersion+1)%0x1fffffffffffff}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(t,i){super.recalculate(t,i),this.paint._values["line-floorwidth"]=_.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t)}createBucket(t){return new cm(t)}queryRadius(t){var i,r;return i=sD("line-width",this,t),((r=sD("line-gap-width",this,t))>0?r+2*i:i)/2+Math.abs(sD("line-offset",this,t))+sI(this.paint.get("line-translate"))}queryIntersectsFeature({queryGeometry:t,feature:i,featureState:r,geometry:a,transform:n,pixelsToTileUnits:o}){var s,l;let c=sz(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),-n.bearingInRadians,o),u=o/2*(s=this.paint.get("line-width").evaluate(i,r),(l=this.paint.get("line-gap-width").evaluate(i,r))>0?l+2*s:s),h=this.paint.get("line-offset").evaluate(i,r);return h&&(a=function(t,i){let r=[];for(let a of t){let t=function(t){let i=[];for(let r=0;r<t.length;r++){let a=t[r],n=i.at(-1);(0===r||n&&!a.equals(n))&&i.push(a)}return i}(a),n=[];for(let r=0;r<t.length;r++){let a=t[r],o=t[r-1],s=t[r+1],l=0===r?new R(0,0):a.sub(o)._unit()._perp(),c=r===t.length-1?new R(0,0):s.sub(a)._unit()._perp(),u=l._add(c)._unit(),h=u.x*c.x+u.y*c.y;0!==h&&u._mult(1/h),n.push(u._mult(i)._add(a))}r.push(n)}return r}(a,h*o)),function(t,i,r){for(let a of i){if(t.length>=3){for(let i of a)if(sP(t,i))return!0}if(function(t,i,r){if(t.length>1){if(sA(t,i))return!0;for(let a of i)if(sC(a,t,r))return!0}for(let a of t)if(sC(a,i,r))return!0;return!1}(t,a,r))return!0}return!1}(c,a,u)}isTileClipped(){return!0}};let cv=n2([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"},{name:"a_height_offset",components:1,type:"Float32"}],4),cb=n2([{name:"a_projected_pos",components:3,type:"Float32"}],4);n2([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);let cx=n2([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_box_real",components:2,type:"Int16"}]);n2([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);let cw=n2([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),ck=n2([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);
365n2([{name:"triangle",components:3,type:"Uint16"}]),n2([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Float32",name:"heightOffset"}]),n2([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",name:"collisionCircleDiameter"},{type:"Uint16",name:"textAnchorOffsetStartIndex"},{type:"Uint16",name:"textAnchorOffsetEndIndex"},{type:"Float32",name:"heightOffset"}]),n2([{type:"Float32",name:"offsetX"}]),n2([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),n2([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);let cT=new class{constructor(){this.TIMEOUT=5e3,this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null,this.loadScriptResolve=()=>{}}setState(t){this.pluginStatus=t.pluginStatus,this.pluginURL=t.pluginURL}getState(){return{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}}setMethods(t){if(cT.isParsed())throw Error("RTL text plugin already registered.");this.applyArabicShaping=t.applyArabicShaping,this.processBidirectionalText=t.processBidirectionalText,this.processStyledBidirectionalText=t.processStyledBidirectionalText,this.loadScriptResolve()}isParsed(){return null!=this.applyArabicShaping&&null!=this.processBidirectionalText&&null!=this.processStyledBidirectionalText}getRTLTextPluginStatus(){return this.pluginStatus}async syncState(t,i){if(this.isParsed())return this.getState();if("loading"!==t.pluginStatus)return this.setState(t),t;let r=t.pluginURL,a=new Promise(t=>{this.loadScriptResolve=t}),n=new Promise(t=>setTimeout(()=>t(),this.TIMEOUT));if(await i(r),await Promise.race([a,n]),this.isParsed()){let t={pluginStatus:"loaded",pluginURL:r};return this.setState(t),t}throw this.setState({pluginStatus:"error",pluginURL:""}),Error(`RTL Text Plugin failed to import scripts from ${r}`)}};function cS(t){return/[\u02EA\u02EB\u1100-\u11FF\u2E80-\u2FDF\u3000-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(t))}function cA(t){return/[\u02EA\u02EB\u1100-\u11FF\u1401-\u167F\u18B0-\u18FF\u2065\u20
365DD-\u20E0\u20E2-\u20E4\u2B97\u2BF0-\u2BFF\u2E50\u2E51\u2E80-\u3007\u3012\u3013\u3020-\u302F\u3031-\u30FB\u30FD-\uA4CF\uA960-\uA97F\uAC00-\uD7FF\uF900-\uFAFF\uFE10-\uFE1F\uFE30-\uFE48\uFE50-\uFE57\uFE5F-\uFE62\uFE67-\uFE6F\uFF00-\uFF07\uFF0A-\uFF0C\uFF0E-\uFF19\uFF1F-\uFF3A\uFF3C\uFF3E\uFF40-\uFF5A\uFFE0-\uFFE2\uFFE4-\uFFE7\uFFF0-\uFFF8]|\uD802[\uDD80-\uDD9F]|\uD805[\uDD80-\uDDFF]|\uD806[\uDE00-\uDEBF]|[\uD80C-\uD810\uD81C-\uD822\uD83C\uD83D\uD840-\uD87E\uD880-\uD8BE][\uDC00-\uDFFF]|\uD811[\uDC00-\uDE7F]|\uD81B[\uDFE0-\uDFFF]|\uD823[\uDC00-\uDDFF]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFF]|\uD833[\uDEC0-\uDFCF]|\uD834[\uDC00-\uDDFF\uDEE0-\uDF7F]|\uD836[\uDC00-\uDEAF]|\uD83E[\uDD00-\uDEFF]|[\uD87F\uD8BF][\uDC00-\uDFFD]/gim.test(String.fromCodePoint(t))}function cC(t){return/[\u0E01-\u0E3A\u0E40-\u0E4E\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECE\u0EDC-\u0EDF\u0F00-\u0F47\u0F49-\u0F6C\u0F71-\u0F97\u0F99-\u0FBC\u0FBE-\u0FCC\u0FCE-\u0FD4\u0FD9\u0FDA\u1000-\u103F\u1050-\u108F\u109A-\u109F\u1780-\u17D3\u17D7\u17DC\u17DD\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19DE\u19DF\u1A20-\u1A5E\u1A60-\u1A7C\u1AA0-\u1AAD\u1B00-\u1B4C\u1B4E-\u1B7F\uA980-\uA9CD\uA9D0-\uA9D9\uA9DE-\uA9EF\uA9FA-\uA9FE\uAA60-\uAAC2\uAADB-\uAADF]|\uD805[\uDF00-\uDF1A\uDF1D-\uDF2B\uDF3A\uDF3B\uDF3F-\uDF46]/gim.test(String.fromCodePoint(t))}let cE={1569:[65152,0,0,0],1570:[65153,65154,0,0],1571:[65155,65156,0,0],1572:[65157,65158,0,0],1573:[65159,65160,0,0],1574:[65161,65162,65163,65164],1575:[65165,65166,0,0],1576:[65167,65168,65169,65170],1577:[65171,65172,0,0],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194,0,0],1584:[65195,65196,0,0],1585:[65197,65198,0,0],1586:[65199,65200,0,0],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262,0,0],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1611:[65136,0,0,65137],1612:[65138,0,0,0],1613:[65140,0,0,0],1614:[65142,0,0,65143],1615:[65144,0,0,65145],1616:[65146,0,0,65147],1617:[65148,0,0,65149],1618:[65150,0,0,65151],1649:[64336,64337,0,0],1655:[64477,0,0,0],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,6437
3657],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393,0,0],1676:[64388,64389,0,0],1677:[64386,64387,0,0],1678:[64390,64391,0,0],1681:[64396,64397,0,0],1688:[64394,64395,0,0],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415,0,0],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421,0,0],1729:[64422,64423,64424,64425],1733:[64480,64481,0,0],1734:[64473,64474,0,0],1735:[64471,64472,0,0],1736:[64475,64476,0,0],1737:[64482,64483,0,0],1739:[64478,64479,0,0],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431,0,0],1747:[64432,64433,0,0]},cM={لآ:[65269,65270],لأ:[65271,65272],لإ:[65273,65274],لا:[65275,65276]},cP=/[\u0600-\u06ff\u0750-\u077f\u0870-\u089f\u08a0-\u08ff\ufb50-\ufdff\ufe70-\ufeff]/,cD=new Map;for(let[t,i]of Object.entries({C:"18g,1;g2,3;4nb,1",D:"17k,1;5,1;1,1;1,5;4,d;1,7;1,2;z,2;8,g;i,12;1,2;9,1;1,1;1,2;14,3;2,1;28,9;3,f;2,4;1,1;2,3;2,6;7a,1;2,5;1,1;g,a;5,2;2,6;1,f",R:"17m,4;1,1;1,1;5,4;l,1;14,3;1,3;g,i;12,1;2,9;1,1;1,1;2,2;1,1;o,2;2x,3;f,2;4,1;1,2;3,2;6u,j;b,1;r,3;1,1;2,2;6,1",T:"174,b;1,1;1a,l;g,1;2t,7;2,6;2,2;1,4;bt,9;16,o;1,t;1clb,1"}))!function(t,i,r){let a=0;for(let n of t.split(";")){let[t,o]=n.split(",").map(t=>parseInt(t,36)),s=a+t;for(let t=s;t<s+o;t++)r.set(t,i);a=s+o}}(i,t,cD);function cI(t,i,r){let a=r?i.last.points:i.first.points,n=r?a[a.length-1]:a[0];return`${t}:${n.x}:${n.y}`}function cz(t,i,r,a,n){let o=i[r];delete i[r],i[a]=o;let s=t[o];return s.last.next=n.first,s.last=n.last,o}function cL(t,i,r,a,n){let o=i[a];delete i[a],i[r]=o;let s=t[o];return n.last.next=s.first,s.first=n.first,o}let cF="u">typeof Intl&&"Segmenter"in Intl;function cR(t){var i;if(!cF||!/[\r\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0600-\u0605\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DD\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0890\u0891\u0897-\u089F\u08CA-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E33-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB3-\u0EBC\u0EC8-\u0ECE\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1037\u1039-\u103E\u1056-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1084-\u1086\u108D\u109D\u1100-\u11FF\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60\u1A62\u1A65-\u1A7C\u1A7F\u1AB0-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA960-\uA97C\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD69-\uDD6D\uDEAB\uDEAC\uDEFA-\uDEFF\uDF46-\uDF50\uDF82-\uDF85]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC70\uDC73\uDC74\uDC7F-\uDC82\uDCB0-\uDCBA\uDCBD\uDCC2\uDCCD\uDD00-\uDD02\uDD27-\uDD34\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC2\uDDC3\uDDC9-\uDDCC\uDDCE\uDDCF\uDE2C-\uDE37\uDE3E\uDE41\uDEDF-\uDEEA\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74\uDFB8-\uDFC0\uDFC2\uDFC5\uDFC7-\uDFCA\uDFCC-\uDFD2\uDFE1\uDFE2]|\uD805[\uDC35-\uDC46\uDC5E\uDCB0-\uDCC3\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE4
vendor: 7,483 bytes, line 365
3650\uDEAB-\uDEB7\uDF1D-\uDF1F\uDF22-\uDF2B]|\uD806[\uDC2C-\uDC3A\uDD30-\uDD35\uDD37\uDD38\uDD3B-\uDD43\uDDD1-\uDDD7\uDDDA-\uDDE0\uDDE4\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE84-\uDE99\uDF60-\uDF67]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDEF3-\uDEF6\uDF00-\uDF03\uDF34-\uDF3A\uDF3E-\uDF42\uDF5A]|\uD80D[\uDC40\uDC47-\uDC55]|\uD818[\uDD1E-\uDD2F]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDD63\uDD67-\uDD6A\uDF4F\uDF51-\uDF87\uDF8F-\uDF92\uDFE4\uDFF0\uDFF1]|\uD82F[\uDC9D\uDC9E]|\uD833[\uDF00-\uDF2D\uDF30-\uDF46]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC8F\uDD30-\uDD36\uDEAE\uDEEC-\uDEEF]|\uD839[\uDCEC-\uDCEF\uDDEE\uDDEF\uDEE3\uDEE6\uDEEE\uDEEF\uDEF5]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDDE6-\uDDFF\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF]/.test(t))return[...t];v??=new Intl.Segmenter(void 0,{granularity:"grapheme"});let r=[];for(let{segment:a}of v.segment(t)){let t=r.length-1;t>=0&&(i=r[t],/(?:[\u1039\u17D2\u1A60\u1BAB\u200D\uAAF6]|\uD802\uDE3F|\uD804[\uDD33\uDFD0]|\uD806[\uDD3E\uDE47\uDE99]|\uD807[\uDD45\uDD97\uDF42])$/.test(i)||/^\p{gc=Mc}/u.test(a))?r[t]+=a:r.push(a)}return r}function cO(t){let i=t.codePointAt(0);return t.length>(i>65535?2:1)}function cB(t){return/\s/u.test(String.fromCodePoint(t))}function cj(t){for(let i of t)if(cA(i.codePointAt(0)))return!0;return!1}function cN(t){return!(cA(t)||/[\xA7\xA9\xAE\xB1\xBC-\xBE\xD7\xF7\u2016\u2020\u2021\u2030\u2031\u203B\u203C\u2042\u2047-\u2049\u2051\u2100-\u218F\u221E\u2234\u2235\u2300-\u2307\u230C-\u231F\u2324-\u2328\u232B\u237D-\u239A\u23BE-\u23CD\u23CF\u23D1-\u23DB\u23E2-\u2422\u2424-\u24FF\u25A0-\u2619\u2620-\u2767\u2776-\u2793\u2B12-\u2B2F\u2B50-\u2B59\u2BB8-\u2BEB\u3000-\u303F\u30A0-\u30FF\uE000-\uF8FF\uFE30-\uFE6F\uFF00-\uFFEF\uFFFC\uFFFD]|[\uDB80-\uDBFF][\uDC00-\uDFFF]/gim.test(String.fromCodePoint(t)))}function c$(t){return/\p{sc=Arab}/u.test(String.fromCodePoint(t))}function cV(t){return/[\u0591-\u05C7\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0604\u0606-\u060B\u060D-\u061A\u061C-\u061E\u0620-\u063F\u0641-\u064A\u0656-\u066F\u0671-\u06DC\u06DE-\u070D\u070F-\u074A\u074D-\u07B1\u07C0-\u07FA\u07FD-\u082D\u0830-\u083E\u0840-\u085B\u085E\u0860-\u086A\u0870-\u0891\u0897-\u08E1\u08E3-\u08FF\uFB1D-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFD3D\uFD40-\uFDCF\uFDF0-\uFDFF\uFE70-\uFE74\uFE76-\uFEFC]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC57-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD1F-\uDD39\uDD3F-\uDD59\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE38-\uDE3A\uDE3F-\uDE48\uDE50-\uDE58\uDE60-\uDE9F\uDEC0-\uDEE6\uDEEB-\uDEF6\uDF00-\uDF35\uDF39-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDF99-\uDF9C\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD27\uDD30-\uDD39\uDD40-\uDD65\uDD69-\uDD85\uDD8E\uDD8F\uDE60-\uDE7E\uDE80-\uDEA9\uDEAB-\uDEAD\uDEB0\uDEB1\uDEC2-\uDEC7\uDED0-\uDED8\uDEFA-\uDF27\uDF30-\uDF59\uDF70-\uDF89\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCD6\uDD00-\uDD4B\uDD50-\uDD59\uDD5E\uDD5F]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB\uDEF0\uDEF1]/gim.test(String.fromCodePoint(t))}function cU(t){for(let i of t)if(cV(i.codePointAt(0)))return!0;return!1}let cG={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","⋯":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},cq={10:!0,13:!0,32:!0,38:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0},cZ={40:!0};function cH(t,i,r,a,n,o){if("fontStack"in i){let a=r[i.fontStack],o=a?.[t];if(o)return o.metrics.advance*i.scale+n;let s=0;for(let r of t){let t=a?.[r];t&&(s+=t.metrics.advance*i.scale+n)}return s}{let t=a[i.imageName];return t?t.displaySize[0]*i.scale*24/o+n:0}}function cW(t,i,r,a){let n=(t-i)**2;return a?t<i?n/2:2*n:n+Math.abs(r)*r}function cX(t){return/^\s+$/u.test(t)}function cY(t,i,r,a,n,o){let s=null,l=cW(i,r,n,o);for(let t of a){let a=cW(i-t.x,r,n,o)+t.badness;a<=l&&(s=t,l=a)}return{index:t,x:i,priorBreak:s,badness:l}}var cK=class t{constructor(t="",i=[],r=[]){this.text=t,this.sections=i,this.sectionIndex=r,this.imageSectionID=null,this._graphemes=null}graphemes(){return this._graphemes??=cR(this.text),this._graphemes}static fromFeature(i,r){let a=new t;for(let t of i.sections)t.image?a.addImageSection(t):a.addTextSection(t,r);return a}length(){return this.graphemes().length}getSection(t){return this.sections[this.sectionIndex[t]]}getSectionIndex(t){return this.sectionIndex[t]}verticalizePunctuation(){this.text=function(t){let i="",r={premature:!0,value:void 0},a=t[Symbol.iterator](),n=a.next(),o=t[Symbol.iterator]();o.next();let s=o.next();for(;!n.done;)(s.done||!cN(s.value.codePointAt(0))||cG[s.value])&&(r.premature||!cN(r.value.codePointAt(0))||cG[r.value])&&cG[n.value]?i+=cG[n.value]:i+=n.value,r={value:n.value,premature:!1},n=a.next(),s=o.next();return i}(this.text),this._graphemes=null}hasZeroWidthSpaces(){return this.text.includes("​")}trim(){let t=this.graphemes(),i=0;for(;i<t.length&&cX(t[i]);)i++;let r=t.length;for(;r>i&&cX(t[r-1]);)r--;this.text=t.slice(i,r).join(""),this.sectionIndex=this.sectionIndex.slice(i,r),this._graphemes=null}substring(i,r){let a=this.graphemes().slice(i,r).join(""),n=this.sectionIndex.slice(i,r);return new t(a,this.sections,n)}toCodeUnitIndex(t){return this.graphemes().slice(0,t).join("").length}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((t,i)=>Math.max(t,this.sections[i].scale),0)}getMaxImageSize(t){let i=0,r=0;for(let a=0;a<this.length();a++){let n=this.getSection(a);if("imageName"in n){let a=t[n.imageName];if(!a)continue;let o=a.displaySize;i=Math.max(i,o[0]),r=Math.max(r,o[1])}}return{maxImageWidth:i,maxImageHeight:r}}_appendSection(t,i){let r=this.graphemes(),a=r.length>0?r[r.length-1]:"",n=cR(a+t);this.text+=t,this._graphemes=r.slice(0,a?-1:void 0).concat(n);let o=n.length-!!a;for(let t=0;t<o;t++)this.sectionIndex.push(i)}addTextSection(t,i){this.sections.push({scale:t.scale||1,verticalAlign:t.verticalAlign||"bottom",fontStack:t.fontStack||i}),this._appendSection(t.text,this.sections.length-1)}
365addImageSection(t){let i=t.image?t.image.name:"";if(0===i.length)return void tu("Can't add FormattedSection with an empty image.");let r=this.getNextImageSectionCharCode();r?(this.sections.push({scale:1,verticalAlign:t.verticalAlign||"bottom",imageName:i}),this._appendSection(String.fromCharCode(r),this.sections.length-1)):tu("Reached maximum number of images 6401")}getNextImageSectionCharCode(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}determineLineBreaks(t,i,r,a,n){let o=[],s=this.determineAverageLineWidth(t,i,r,a,n),l=this.hasZeroWidthSpaces(),c=this.graphemes(),u=null,h=0,d=0;for(let i=0;i<c.length;i++){let f=c[i];if(i>0){let t=c[i-1].codePointAt(0),r=f.codePointAt(0),a=/[\u02EA\u02EB\u2E80-\u2FDF\u2FF0-\u303F\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FD-\u30FF\u3105-\u312F\u31A0-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uF900-\uFA6D\uFA70-\uFAD9\uFE10-\uFE1F\uFE30-\uFE4F\uFF00-\uFFEF]|\uD81B[\uDFE0-\uDFFF]|[\uD81C-\uD822\uD840-\uD868\uD86A-\uD86D\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD88C][\uDC00-\uDFFF]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD1E\uDD80-\uDDF2]|\uD82B[\uDFF0-\uDFFF]|\uD82C[\uDC00-\uDEFB]|\uD83C[\uDE00-\uDEFF]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEAD\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD88D[\uDC00-\uDC79]/gim.test(String.fromCodePoint(t)),n=cC(t)&&cC(r);(cq[t]||a||"imageName"in this.getSection(i-1)||void 0!==c[i+1]&&cZ[r]||n&&(u??=function(t){let i=new Set;if(cF){for(let{index:r}of(b??=new Intl.Segmenter(void 0,{granularity:"word"})).segment(t))i.add(r);return i}let r=0;for(let a of t.split(/\b|(?=\p{Ideo})/u))i.add(r),r+=a.length;return i}(this.text)).has(d))&&o.push(cY(i,h,s,o,function(t,i,r){let a=0;return(10===t||13===t)&&(a-=1e4),r&&(a+=150),(40===t||65288===t)&&(a+=50),(41===i||65289===i)&&(a+=50),a}(t,r,a&&l),!1))}cB(f.codePointAt(0))||(h+=cH(f,this.getSection(i),r,a,t,n)),d+=f.length}return function t(i){return i?t(i.priorBreak).concat(i.index):[]}(cY(this.length(),h,s,o,0,!0))}determineAverageLineWidth(t,i,r,a,n){let o=0,s=0;for(let i of this.graphemes())o+=cH(i,this.getSection(s),r,a,t,n),s++;let l=Math.max(1,Math.ceil(o/i));return o/l}};let cJ=function(t){var i,r,a,n,o={R:"13k,1a,2,3,3,2+1j,ch+16,a+1,5+2,2+n,5,a,4,6+16,4+3,h+1b,4mo,179q,2+9,2+11,2i9+7y,2+68,4,3+4,5+13,4+3,2+4k,3+29,8+cf,1t+7z,w+17,3+3m,1t+3z,16o1+5r,8+30,8+mc,29+1r,29+4v,75+73",EN:"1c+9,3d+1,6,187+9,513,4+5,7+9,sf+j,175h+9,qw+q,161f+1d,4xt+a,25i+9",ES:"17,2,6dp+1,f+1,av,16vr,mx+1,4o,2",ET:"z+2,3h+3,b+1,ym,3e+1,2o,p4+1,8,6u,7c,g6,1wc,1n9+4,30+1b,2n,6d,qhx+1,h0m,a+1,49+2,63+1,4+1,6bb+3,12jj",AN:"16o+5,2j+9,2+1,35,ed,1ff2+9,87+u",CS:"18,2+1,b,2u,12k,55v,l,17v0,2,3,53,2+1,b",B:"a,3,f+2,2v,690",S:"9,2,k",WS:"c,k,4f4,1vk+a,u,1j,335",ON:"x+1,4+4,h+5,r+5,r+3,z,5+3,2+1,2+1,5,2+2,3+4,o,w,ci+1,8+d,3+d,6+8,2+g,39+1,9,6+1,2,33,b8,3+1,3c+1,7+1,5r,b,7h+3,sa+5,2,3i+6,jg+3,ur+9,2v,ij+1,9g+9,7+a,8m,4+1,49+x,14u,2+2,c+2,e+2,e+2,e+1,i+n,e+e,2+p,u+2,e+2,36+1,2+3,2+1,b,2+2,6+5,2,2,2,h+1,5+4,6+3,3+f,16+2,5+3l,3+81,1y+p,2+40,q+a,m+13,2r+ch,2+9e,75+hf,3+v,2+2w,6e+5,f+6,75+2a,1a+p,2+2g,d+5x,r+b,6+3,4+o,g,6+1,6+2,2k+1,4,2j,5h+z,1m+1,1e+f,t+2,1f+e,d+3,4o+3,2s+1,w,535+1r,h3l+1i,93+2,2s,b+1,3l+x,2v,4g+3,21+3,kz+1,g5v+1,5a,j+9,n+v,2,3,2+8,2+1,3+2,2,3,46+1,4+4,h+5,r+5,r+a,3h+2,4+6,b+4,78,1r+24,4+c,4,1hb,ey+6,103+j,16j+c,1ux+7,5+g,fsh,jdq+1t,4,57+2e,p1,1m,1m,1m,1m,4kt+1,7j+17,5+2r,d+e,3+e,2+e,2+10,m+4,w,1n+5,1q,4z+5,4b+rb,9+c,4+c,4+37,d+2g,8+b,l+b,5+1j,9+9,7+13,9+t,3+1,27+3c,2+29,2+3q,d+d,3+4,4+2,6+6,a+o,8+6,a+2,e+6,16+42,2+1i",BN:"0+8,6+d,2s+5,2+p,e,4m9,1kt+2,2b+5,5+5,17q9+v,7k,6p+8,6+1,119d+3,440+7,96s+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+75,6p+2rz,1ben+1,1ekf+1,1ekf+1",NSM:"lc+33,7o+6,7c+18,2,2+1,2+1,2,21+a,1d+k,h,2u+6,3+5,3+1,2+3,10,v+q,2k+a,1n+8,a,p+3,2+8,2+2,2+4,18+2,3c+e,2+v,1k,2,5+7,5,4+6,b+1,u,1n,5+3,9,l+1,r,3+1,1m,5+1,5+1,3+2,4,v+1,4,c+1,1m,5+4,2+1,5,l+1,n+5,2,1n,3,2+3,9,8+1,c+1,v,1q,d,1f,4,1m+2,6+2,2+3,8+1,c+1,u,1n,g+1,l+1,t+1,1m+1,5+3,9,l+1,u,21,8+2,2,2j,3+6,d+7,2r,3+8,c+5,23+1,s,2,2,1k+d,2+4,2+1,6+a,2+z,a,2v+3,2+5,2+1,3+1,q+1,5+2,h+3,e,3+1,7,g,jk+2,qb+2,u+2,u+1,v+1,1t+1,2+6,9,3+a,a,1a+2,3c+1,z,3b+2,5+1,a,7+2,64+1,3,1n,2+6,2,2,3+7,7+9,3,1d+g,1s+3,1d,2+4,2,6,15+8,d+1,x+3,3+1,2+2,1l,2+1,4,2+2,1n+7,3+1,49+2,2+c,2+6,5,7,4+1,5j+1l,2+4,k1+w,2db+2,3y,2p+v,ff+3,30+1,n9x+3,2+9,x+1,29+1,7l,4,5,q+1,6,48+1,r+h,e,13+7,q+a,1b+2,1d,3+3,3+1,14,1w+5,3+1,3+1,d,9,1c,1g,2+2,3+1,6+1,2,17+1,9,6n,3,5,fn5,ki+f,h+f,r2,6b,46+4,1af+2,2+1,6+3,15+2,5,4m+1,fy+3,as+1,4a+a,4x,1j+e,1l+2,1e+3,3+1,1y+2,11+4,2+7,1r,d+1,1h+8,b+3,3,2o+2,3,2+1,7,4h,4+7,m+1,1m+1,4,12+6,4+4,5g+7,3+2,2,o,2d+5,2,5+1,2+1,6n+3,7+1,2+1,s+1,2e+7,3,2+1,2z,2,3+5,2,2u+2,3+3,2+4,78+8,2+1,75+1,2,5,41+3,3+1,5,x+5,3+1,15+5,3+3,9,a+5,3+2,1b+c,2+1,bb+6,2+5,2d+l,3+6,2+1,2+1,3f+5,4,2+1,2+6,2,21+1,4,2,9o+1,f0c+4,1o+6,t5,1s+3,2a,f5l+1,43t+2,i+7,3+6,v+3,45+2,1j0+1i,5+1d,9,f,n+4,2+e,11t+6,2+g,3+6,2+1,2+4,7a+6,c6+3,15t+6,32+6,gzhy+6n",AL:"16w,3,2,e+1b,z+2,2+2s,g+1,8+1,b+m,2+t,s+2i,c+e,4h+f,1d+1e,1bwe+dp,3+3z,x+c,2+1,35+3y,2rm+z,5+7,b+5,dt+l,c+u,17nl+27,1t+27,4x+6n,3+d",LRO:"6ct",RLO:"6cu",LRE:"6cq",RLE:"6cr",PDF:"6cs",LRI:"6ee",RLI:"6ef",FSI:"6eg",PDI:"6eh"},s={},l={};
vendor: 1,804 bytes, line 365
365s.L=1,l[1]="L",Object.keys(o).forEach(function(t,i){s[t]=1<<i+1,l[s[t]]=t}),Object.freeze(s);var c=s.LRI|s.RLI|s.FSI,u=s.L|s.R|s.AL,h=s.B|s.S|s.WS|s.ON|s.FSI|s.LRI|s.RLI|s.PDI,d=s.BN|s.RLE|s.LRE|s.RLO|s.LRO|s.PDF,f=s.S|s.WS|s.B|c|s.PDI|d,p=null;function m(t){return function(){if(!p){p=new Map;var t=0;for(var i in o)if(o.hasOwnProperty(i))for(var r=o[i],a="",n=void 0,l=!1,c=0,u=0;u<=r.length+1;u+=1){var h=r[u];if(","!==h&&u!==r.length)"+"===h?(l=!0,c=t=c+parseInt(a,36),a=""):a+=h;else{l?n=t+parseInt(a,36):(c=t=c+parseInt(a,36),n=t),l=!1,a="",c=n;for(var d=t;d<n+1;d+=1)p.set(d,s[i])}}}}(),p.get(t.codePointAt(0))||s.L}function g(t,i){var r,a=0,n=new Map,o=i&&new Map;return t.split(",").forEach(function t(s){if(-1!==s.indexOf("+"))for(var l=+s;l--;)t(r);else{r=s;var c=s.split(">"),u=c[0],h=c[1];u=String.fromCodePoint(a+=parseInt(u,36)),h=String.fromCodePoint(a+=parseInt(h,36)),n.set(u,h),i&&o.set(h,u)}}),{map:n,reverseMap:o}}function y(){if(!i){var t=g("14>1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1",!0),n=t.map,o=t.reverseMap;i=n,r=o,a=g("6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye",!1).map}}function _(t){return y(),i.get(t)||null}function v(t){return y(),r.get(t)||null}function b(t){return y(),a.get(t)||null}var x=s.L,w=s.R,k=s.EN,T=s.ES,S=s.ET,A=s.AN,C=s.CS,E=s.B,M=s.S,P=s.ON,D=s.BN,I=s.NSM,z=s.AL,F=s.LRO,R=s.RLO,O=s.LRE,B=s.RLE,j=s.PDF,N=s.LRI,$=s.RLI,V=s.FSI,U=s.PDI;function G(t){return function(){if(!n){var t=g("14>1,j>2,t>2,u>2,1a>g,2v3>
3651,1>1,1ge>1,1wd>1,b>1,1j>1,f>1,ai>3,-2>3,+1,8>1k0,-1jq>1y7,-1y6>1hf,-1he>1h6,-1h5>1ha,-1h8>1qi,-1pu>1,6>3u,-3s>7,6>1,1>1,f>1,1>1,+2,3>1,1>1,+13,4>1,1>1,6>1eo,-1ee>1,3>1mg,-1me>1mk,-1mj>1mi,-1mg>1mi,-1md>1,1>1,+2,1>10k,-103>1,1>1,4>1,5>1,1>1,+10,3>1,1>8,-7>8,+1,-6>7,+1,a>1,1>1,u>1,u6>1,1>1,+5,26>1,1>1,2>1,2>2,8>1,7>1,4>1,1>1,+5,b8>1,1>1,+3,1>3,-2>1,2>1,1>1,+2,c>1,3>1,1>1,+2,h>1,3>1,a>1,1>1,2>1,3>1,1>1,d>1,f>1,3>1,1a>1,1>1,6>1,7>1,13>1,k>1,1>1,+19,4>1,1>1,+2,2>1,1>1,+18,m>1,a>1,1>1,lk>1,1>1,4>1,2>1,f>1,3>1,1>1,+3,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,6>1,4j>1,j>2,t>2,u>2,2>1,+1",!0),i=t.map;t.reverseMap.forEach(function(t,r){i.set(r,t)}),n=i}}(),n.get(t)||null}function q(t,i,r,a){var n=t.length;r=Math.max(0,null==r?0:+r),a=Math.min(n-1,null==a?n-1:+a);var o=[];return i.paragraphs.forEach(function(n){var s=Math.max(r,n.start),l=Math.min(a,n.end);if(s<l){for(var c=i.levels.slice(s,l+1),u=l;u>=s&&m(t[u])&f;u--)c[u]=n.level;for(var h=n.level,d=1/0,p=0;p<c.length;p++){var g=c[p];g>h&&(h=g),g<d&&(d=1|g)}for(var y=h;y>=d;y--)for(var _=0;_<c.length;_++)if(c[_]>=y){for(var v=_;_+1<c.length&&c[_+1]>=y;)_++;_>v&&o.push([v+s,_+s])}}}),o}function Z(t,i,r,a){for(var n=q(t,i,r,a),o=[],s=0;s<t.length;s++)o[s]=s;return n.forEach(function(t){for(var i=t[0],r=t[1],a=o.slice(i,r+1),n=a.length;n--;)o[r-n]=a[n]}),o}return t.closingToOpeningBracket=v,t.getBidiCharType=m,t.getBidiCharTypeName=function(t){return l[m(t)]},t.getCanonicalBracket=b,t.getEmbeddingLevels=function(t,i){for(var r=new Uint32Array(t.length),a=0;a<t.length;a++)r[a]=m(t[a]);var n=new Map;function o(t,i){var a=r[t];r[t]=i,n.set(a,n.get(a)-1),a&h&&n.set(h,n.get(h)-1),n.set(i,(n.get(i)||0)+1),i&h&&n.set(h,(n.get(h)||0)+1)}for(var s=new Uint8Array(t.length),l=new Map,p=[],g=null,y=0;y<t.length;y++)g||p.push(g={start:y,end:t.length-1,level:"rtl"===i?1:"ltr"===i?0:tI(y,!1)}),r[y]&E&&(g.end=y,g=null);for(var G=B|O|R|F|c|U|j|E,q=function(t){return t+(1&t?1:2)},Z=function(t){return t+(1&t?2:1)},H=0;H<p.length;H++){var W=[{_level:(g=p[H]).level,_override:0,_isolate:0}],X=void 0,Y=0,K=0,J=0;n.clear();for(var Q=g.start;Q<=g.end;Q++){var ee=r[Q];if(X=W[W.length-1],n.set(ee,(n.get(ee)||0)+1),ee&h&&n.set(h,(n.get(h)||0)+1),ee&G)if(ee&(B|O)){s[Q]=X._level;var et=(ee===B?Z:q)(X._level);!(et<=125)||Y||K?Y||K++:W.push({_level:et,_override:0,_isolate:0})}else if(ee&(R|F)){s[Q]=X._level;var ei=(ee===R?Z:q)(X._level);!(ei<=125)||Y||K?Y||K++:W.push({_level:ei,_override:ee&R?w:x,_isolate:0})}else if(ee&c){ee&V&&(ee=1===tI(Q+1,!0)?$:N),s[Q]=X._level,X._override&&o(Q,X._override);var er=(ee===$?Z:q)(X._level);er<=125&&0===Y&&0===K?(J++,W.push({_level:er,_override:0,_isolate:1,_isolInitIndex:Q})):Y++}else if(ee&U){if(Y>0)Y--;else if(J>0){for(K=0;!W[W.length-1]._isolate;)W.pop();var ea=W[W.length-1]._isolInitIndex;null!=ea&&(l.set(ea,Q),l.set(Q,ea)),W.pop(),J--}X=W[W.length-1],s[Q]=X._level,X._override&&o(Q,X._override)}else ee&j?(0===Y&&(K>0?K--:!X._isolate&&W.length>1&&(W.pop(),X=W[W.length-1])),s[Q]=X._level):ee&E&&(s[Q]=g.level);else s[Q]=X._level,X._override&&ee!==D&&o(Q,X._override)}for(var en=[],eo=null,es=g.start;es<=g.end;es++){var el=r[es];if(!(el&d)){var ec=s[es],eu=el&c,eh=el===U;eo&&ec===eo._level?(eo._end=es,eo._endsWithIsolInit=eu):en.push(eo={_start:es,_end:es,_level:ec,_startsWithPDI:eh,_endsWithIsolInit:eu})}}for(var ed=[],ef=0;ef<en.length;ef++){var ep=en[ef];if(!ep._startsWithPDI||ep._startsWithPDI&&!l.has(ep._start)){for(var em=[eo=ep],eg=void 0;eo&&eo._endsWithIsolInit&&null!=(eg=l.get(eo._end));)for(var ey=ef+1;ey<en.length;ey++)if(en[ey]._start===eg){em.push(eo=en[ey]);break}for(var e_=[],ev=0;ev<em.length;ev++)for(var eb=em[ev],ex=eb._start;ex<=eb._end;ex++)e_.push(ex);for(var ew=s[e_[0]],ek=g.level,eT=e_[0]-1;eT>=0;eT--)if(!(r[eT]&d)){ek=s[eT];break}var eS=e_[e_.length-1],eA=s[eS],eC=g.level;if(!(r[eS]&c)){for(var eE=eS+1;eE<=g.end;eE++)if(!(r[eE]&d)){eC=s[eE];break}}ed.push({_seqIndices:e_,_sosType:Math.max(ek,ew)%2?w:x,_eosType:Math.max(eC,eA)%2?w:x})}}for(var eM=0;eM<ed.length;eM++){var eP=ed[eM],eD=eP._seqIndices,eI=eP._sosType,ez=eP._eosType,eL=1&s[eD[0]]?w:x;if(n.get(I))for(var eF=0;eF<eD.length;eF++){var eR=eD[eF];if(r[eR]&I){for(var eO=eI,eB=eF-1;eB>=0;eB--)if(!(r[eD[eB]]&d)){eO=r[eD[eB]];break}o(eR,eO&(c|U)?P:eO)}}if(n.get(k))for(var ej=0;ej<eD.length;ej++){var eN=eD[ej];if(r[eN]&k)for(var e$=ej-1;e$>=-1;e$--){var eV=-1===e$?eI:r[eD[e$]];if(eV&u){eV===z&&o(eN,A);break}}}if(n.get(z))for(var eU=0;eU<eD.length;eU++){var eG=eD[eU];r[eG]&z&&o(eG,w)}if(n.get(T)||n.get(C))for(var eq=1;eq<eD.length-1;eq++){var eZ=eD[eq];if(r[eZ]&(T|C)){for(var eH=0,eW=0,eX=eq-1;eX>=0&&(eH=r[eD[eX]])&d;eX--);for(var eY=eq+1;eY<eD.length&&(eW=r[eD[eY]])&d;eY++);eH===eW&&(r[eZ]===T?eH===k:eH&(k|A))&&o(eZ,eH)}}if(n.get(k)){for(var eK=0;eK<eD.length;eK++)if(r[eD[eK]]&k){for(var eJ=eK-1;eJ>=0&&r[eD[eJ]]&(S|d);eJ--)o(eD[eJ],k);for(eK++;eK<eD.length&&r[eD[eK]]&(S|d|k);eK++)r[eD[eK]]!==k&&o(eD[eK],k)}}if(n.get(S)||n.get(T)||n.get(C))for(var eQ=0;eQ<eD.length;eQ++){var e1=eD[eQ];if(r[e1]&(S|T|C)){o(e1,P);for(var e0=eQ-1;e0>=0&&r[eD[e0]]&d;e0--)o(eD[e0],P);for(var e2=eQ+1;e2<eD.length&&r[eD[e2]]&d;e2++)o(eD[e2],P)}}if(n.get(k))for(var e3=0,e5=eI;e3<eD.length;e3++){var e4=eD[e3],e6=r[e4];e6&k?e5===x&&o(e4,x):e6&u&&(e5=e6)}if(n.get(h)){for(var e8=w|k|A,e7=e8|x,e9=[],te=[],tt=0;tt<eD.length;tt++)if(r[eD[tt]]&h){var ti=t[eD[tt]],tr=void 0;if(null!==_(ti))if(te.length<63)te.push({char:ti,seqIndex:tt});else break;else if(null!==(tr=v(ti)))for(var ta=te.length-1;ta>=0;ta--){var tn=te[ta].char;if(tn===tr||tn===v(b(ti))||_(b(tn))===ti){e9.push([te[ta].seqIndex,tt]),te.length=ta;break}}}e9.sort(function(t,i){return t[0]-i[0]});for(var to=0;to<e9.length;to++){for(var ts=e9[to],tl=ts[0],tc=ts[1],tu=!1,th=0,td=tl+1;td<tc;td++){var tf=eD[td];if(r[tf]&e7){tu=!0;var tp=r[tf]&e8?w:x;if(tp===eL){th=tp;break}}}if(tu&&!th){th=eI;for(var tm=tl-1;tm>=0;tm--){var tg=eD[tm];if(r[tg]&e7){var ty=r[tg]&e8?w:x;th=ty===eL?eL:ty;break}}}if(th){if(r[eD[tl]]=r[eD[tc]]=th,th!==eL){for(var t_=tl+1;t_<eD.length;t_++)if(!(r[eD[t_]]&d)){m(t[eD[t_]])&I&&(r[eD[t_]]=th);break}}if(th!==eL){for(var tv=tc+1;tv<eD.length;tv++)if(!(r[eD[tv]]&d)){m(t[eD[tv]])&I&&(r[eD[tv]]=th);break}}}}for(var tb=0;tb<eD.length;tb++)if(r[eD[tb]]&h){for(var tx=tb,tw=tb,tk=eI,tT=tb-1;tT>=0;tT--)if(r[eD[tT]]&d)tx=tT;else{tk=r[eD[tT]]&e8?w:x;break}for(var tS=ez,tA=tb+1;tA<eD.length;tA++)if(r[eD[tA]]&(h|d))tw=tA;else{tS=r[eD[tA]]&e8?w:x;break}for(var tC=tx;tC<=tw;tC++)r[eD[tC]]=tk===tS?tk:eL;tb=tw}}}for(var tE=g.start;tE<=g.end;tE++){var tM=s[tE],tP=r[tE];if(1&tM?tP&(x|k|A)&&s[tE]++:tP&w?s[tE]++:tP&(A|k)&&(s[tE]+=2),tP&d&&(s[tE]=0===tE?g.level:s[tE-1]),tE===g.end||m(t[tE])&(M|E))for(var tD=tE;tD>=0&&m(t[tD])&f;tD--)s[tD]=g.level}}return{levels:s,paragraphs:p};function tI(i,a){for(var n=i;n<t.length;n++){var o=r[n];if(o&(w|z))return 1;if(o&(E|x)||a&&o===U)break;if(o&c){var s=function(i){for(var a=1,n=i+1;n<t.length;n++){var o=r[n];if(o&E)break;if(o&U){if(0==--a)return n}else o&c&&a++}return -1}(n);n=-1===s?t.length:s}}return 0}},t.getMirroredCharacter=G,t.getMirroredCharactersMap=function(t,i,r,a){var n=t.length;r=Math.max(0,null==r?0:+r),a=Math.min(n-1,null==a?n-1:+a);for(var o=new Map,s=r;s<=a;s++)if(1&i[s]){var l=G(t[s]);null!==l&&o.set(s,l)}return o},t.getReorderSegments=q,t.getReorderedIndices=Z,t.getReorderedString=function(t,i,r,a){var n=Z(t,i,r,a),o=[].concat(t);
365return n.forEach(function(r,a){o[a]=(1&i.levels[r]?G(t[r]):null)||t[r]}),o.join("")},t.openingToClosingBracket=_,Object.defineProperty(t,"__esModule",{value:!0}),t}({}),cQ=/[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/,c1=new Set(["WS","FSI","LRI","RLI","PDI"]),c0=new Set(["S","B"]);function c2(t,i){let{levels:r,paragraphs:a}=cJ.getEmbeddingLevels(t);return(function(t,i){let r=[...new Set([0,...i.filter(i=>i>0&&i<t.length),t.length])].sort((t,i)=>t-i),a=[];for(let t=0;t+1<r.length;t++)a.push([r[t],r[t+1]]);return a})(t,i.concat(a.map(t=>t.start))).map(([i,n])=>(function(t,i,r,a,n){let o=function(t,i,r,a){let n=[],o=r;for(let s of cR(t.slice(r,a)))n.push({index:o,text:s,level:i[o]}),o+=s.length;return n}(t,i,a,n),s=!0;for(let t=o.length-1;t>=0;t--){let i=cJ.getBidiCharTypeName(o[t].text[0]);c0.has(i)?(o[t].level=r,s=!0):s&&c1.has(i)?o[t].level=r:s=!1}let l="",c=[];for(let t of function(t,i){let r=i,a=1/0;for(let{level:i}of t)i>r&&(r=i),(1|i)<a&&(a=1|i);let n=t.slice();for(let t=r;t>=a;t--)for(let i=0;i<n.length;i++){if(n[i].level<t)continue;let r=i;for(;r+1<n.length&&n[r+1].level>=t;)r++;for(let t=i,a=r;t<a;t++,a--)[n[t],n[a]]=[n[a],n[t]];i=r}return n}(o,r)){if(cQ.test(t.text))continue;let i=t.level%2==0?t.text:cJ.getMirroredCharacter(t.text)??t.text;l+=i,c.push(...Array(i.length).fill(t.index))}return{text:l,sourceIndices:c}})(t,r,a.find(t=>i>=t.start&&i<=t.end)?.level??0,i,n))}let c3=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");var c5=class{constructor(t){this.buf=ArrayBuffer.isView(t)?t:new Uint8Array(t),this.dataView=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength),this.pos=0,this.type=0,this._valueStart=-1,this.length=this.buf.length}readFields(t,i,r=this.length){let a;for(;a=this.nextField(r);)t(a,i,this);return i}readMessage(t,i){return this.readFields(t,i,this.readVarint()+this.pos)}readFixed32(){let t=this.dataView.getUint32(this.pos,!0);return this.pos+=4,t}readSFixed32(){let t=this.dataView.getInt32(this.pos,!0);return this.pos+=4,t}readFixed64(){let t=this.dataView.getUint32(this.pos,!0)+0x100000000*this.dataView.getUint32(this.pos+4,!0);return this.pos+=8,t}readSFixed64(){let t=this.dataView.getUint32(this.pos,!0)+0x100000000*this.dataView.getInt32(this.pos+4,!0);return this.pos+=8,t}readFloat(){let t=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,t}readDouble(){let t=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,t}readVarint(t){let i=this.buf,r=i[this.pos++];if(r<128)return r;let a=127&r,n;return a|=(127&(n=i[this.pos++]))<<7,n<128||(a|=(127&(n=i[this.pos++]))<<14,n<128)||(a|=(127&(n=i[this.pos++]))<<21,n<128)?a:function(t,i,r){let a=r.buf,n,o;if(n=(112&(o=a[r.pos++]))>>4,o<128||(n|=(127&(o=a[r.pos++]))<<3,o<128)||(n|=(127&(o=a[r.pos++]))<<10,o<128)||(n|=(127&(o=a[r.pos++]))<<17,o<128)||(n|=(127&(o=a[r.pos++]))<<24,o<128)||(n|=(1&(o=a[r.pos++]))<<31,o<128)){var s,l;return s=t,l=n,i?0x100000000*l+(s>>>0):(l>>>0)*0x100000000+(s>>>0)}throw Error("Expected varint not more than 10 bytes")}(a|=(15&(n=i[this.pos]))<<28,t,this)}readSVarint(){let t=this.readVarint();return t%2==1?-((t+1)/2):t/2}readBoolean(){return!!this.readVarint()}readString(){let t=this.readVarint()+this.pos,i=this.pos;return this.pos=t,t-i>=12&&c3?c3.decode(this.buf.subarray(i,t)):function(t,i,r){let a="",n=i;for(;n<r;){let i,o,s,l=t[n],c=null,u=l>239?4:l>223?3:l>191?2:1;if(n+u>r)break;1===u?l<128&&(c=l):2===u?(192&(i=t[n+1]))==128&&(c=(31&l)<<6|63&i)<=127&&(c=null):3===u?(i=t[n+1],o=t[n+2],(192&i)==128&&(192&o)==128&&((c=(15&l)<<12|(63&i)<<6|63&o)<=2047||c>=55296&&c<=57343)&&(c=null)):4===u&&(i=t[n+1],o=t[n+2],s=t[n+3],(192&i)==128&&(192&o)==128&&(192&s)==128&&((c=(15&l)<<18|(63&i)<<12|(63&o)<<6|63&s)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,u=1):c>65535&&(c-=65536,a+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),a+=String.fromCharCode(c),n+=u}return a}(this.buf,i,t)}readBytes(){let t=this.readVarint()+this.pos,i=this.buf.subarray(this.pos,t);return this.pos=t,i}readPackedVarint(t=[],i){let r=this.readPackedEnd();for(;this.pos<r;)t.push(this.readVarint(i));return t}readPackedSVarint(t=[]){let i=this.readPackedEnd();for(;this.pos<i;)t.push(this.readSVarint());return t}readPackedBoolean(t=[]){let i=this.readPackedEnd();for(;this.pos<i;)t.push(this.readBoolean());return t}readPackedFloat(t=[]){let i=this.readPackedEnd();for(;this.pos<i;)t.push(this.readFloat());return t}readPackedDouble(t=[]){let i=this.readPackedEnd();for(;this.pos<i;)t.push(this.readDouble());return t}readPackedFixed32(t=[]){let i=this.readPackedEnd();for(;this.pos<i;)t.push(this.readFixed32());return t}readPackedSFixed32(t=[]){let i=this.readPackedEnd();for(;this.pos<i;)t.push(this.readSFixed32());return t}readPackedFixed64(t=[]){let i=this.readPackedEnd();for(;this.pos<i;)t.push(this.readFixed64());return t}readPackedSFixed64(t=[]){let i=this.readPackedEnd();for(;this.pos<i;)t.push(this.readSFixed64());return t}readPackedEnd(){return 2===this.type?this.readVarint()+this.pos:this.pos+1}nextField(t=this.length){if(this.pos===this._valueStart&&this.skip(this.type),this.pos>=t)return 0;let i=this.readVarint();return this.type=7&i,this._valueStart=this.pos,i>>>3}skip(t){let i=7&t;if(0===i)for(;this.buf[this.pos++]>127;);else if(2===i)this.pos=this.readVarint()+this.pos;else if(5===i)this.pos+=4;else if(1===i)this.pos+=8;else throw Error(`Unimplemented type: ${i}`)}};function c4(t,i,r){1===t&&r.readMessage(c6,i)}function c6(t,i,r){if(3===t){let{id:t,bitmap:a,width:n,height:o,left:s,top:l,advance:c}=r.readMessage(c8,{});i.push({id:t,bitmap:new sH({width:n+6,height:o+6},a),metrics:{width:n,height:o,left:s,top:l,advance:c}})}}function c8(t,i,r){1===t?i.id=r.readVarint():2===t?i.bitmap=r.readBytes():3===t?i.width=r.readVarint():4===t?i.height=r.readVarint():5===t?i.left=r.readSVarint():6===t?i.top=r.readSVarint():7===t&&(i.advance=r.readVarint())}function c7(t){return new c5(t).readFields(c4,[])}function c9(t){return"function"==typeof t?.renderWithWebGL}function ue(t){let{userImage:i}=t;return!!i?.render&&!!i.render()&&(c9(i.data)||t.data.replace(new Uint8Array(i.data.buffer)),!0)}function ut(t){let i=0,r=0;for(let a of t)i+=a.w*a.h,r=Math.max(r,a.w);t.sort((t,i)=>i.h-t.h);let a=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(i/.95)),r),h:1/0}],n=0,o=0;for(let i of t)for(let t=a.length-1;t>=0;t--){let r=a[t];if(!(i.w>r.w||i.h>
365r.h)){if(i.x=r.x,i.y=r.y,o=Math.max(o,i.y+i.h),n=Math.max(n,i.x+i.w),i.w===r.w&&i.h===r.h){let i=a.pop();i&&t<a.length&&(a[t]=i)}else i.h===r.h?(r.x+=i.w,r.w-=i.w):(i.w===r.w||a.push({x:r.x+i.w,y:r.y,w:r.w-i.w,h:i.h}),r.y+=i.h,r.h-=i.h);break}}return{w:n,h:o,fill:i/(n*o)||0}}var ui=class{constructor(t,{pixelRatio:i,version:r,isWebGLImage:a=!1,stretchX:n,stretchY:o,content:s,textFitWidth:l,textFitHeight:c}){this.paddedRect=t,this.pixelRatio=i,this.stretchX=n,this.stretchY=o,this.content=s,this.version=r,this.needsFirstWebGLRender=a,this.textFitWidth=l,this.textFitHeight=c}get tl(){return[this.paddedRect.x+1,this.paddedRect.y+1]}get br(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]}get tlbr(){return this.tl.concat(this.br)}get displaySize(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]}},ur=class{constructor(t,i){let r={},a={};this.haveRenderCallbacks=[],this.patchedUpdateVersion=-1;let n=[];this.addImages(t,r,n),this.addImages(i,a,n);let{w:o,h:s}=ut(n),l=new sW({width:o||1,height:s||1});for(let i in t){let a=t[i];if(a.isWebGLImage)continue;let n=r[i].paddedRect;sW.copy(a.data,l,{x:0,y:0},{x:n.x+1,y:n.y+1},a.data)}for(let t in i){let r=i[t],n=a[t].paddedRect,o=n.x+1,s=n.y+1,c=r.data.width,u=r.data.height;sW.copy(r.data,l,{x:0,y:0},{x:o,y:s},r.data),sW.copy(r.data,l,{x:0,y:u-1},{x:o,y:s-1},{width:c,height:1}),sW.copy(r.data,l,{x:0,y:0},{x:o,y:s+u},{width:c,height:1}),sW.copy(r.data,l,{x:c-1,y:0},{x:o-1,y:s},{width:1,height:u}),sW.copy(r.data,l,{x:0,y:0},{x:o+c,y:s},{width:1,height:u})}this.image=l,this.iconPositions=r,this.patternPositions=a}addImages(t,i,r){for(let a in t){let n=t[a],o={x:0,y:0,w:n.data.width+2,h:n.data.height+2};r.push(o),i[a]=new ui(o,n),n.hasRenderCallback&&this.haveRenderCallbacks.push(a)}}patchUpdatedImages(t,i){if(t.dispatchRenderCallbacks(this.haveRenderCallbacks),this.patchedUpdateVersion!==t.updateVersion){for(let r in this.patchedUpdateVersion=t.updateVersion,this.iconPositions)this.patchUpdatedImage(this.iconPositions[r],t.getImage(r),i);for(let r in this.patternPositions)this.patchUpdatedImage(this.patternPositions[r],t.getImage(r),i)}}patchUpdatedImage(t,i,r){if(!t||!i||!t.needsFirstWebGLRender&&t.version===i.version)return;t.needsFirstWebGLRender=!1,t.version=i.version;let[a,n]=t.tl,o=i.userImage?.data;if(!c9(o))return void r.update(i.data,void 0,{x:a,y:n});let{width:s,height:l}=i.data;r.context.setCustomLayerDefaults(),o.renderWithWebGL({gl:r.context.gl,texture:r.texture,x:a,y:n,width:s,height:l}),r.context.setDirty()}};nT("ImagePosition",ui),nT("ImageAtlas",ur);var ua=((hh=ua||{})[hh.none=0]="none",hh[hh.horizontal=1]="horizontal",hh[hh.vertical=2]="vertical",hh[hh.horizontalOnly=3]="horizontalOnly",hh);let un=/^\p{gc=M}$/u;function uo(t,i,r){let a=new cK(t.join(""),i,[]),n=0;for(let t of a.graphemes())a.sectionIndex.push(r[n]??0),n+=[...t].length;return a}function us(t){let i=[],r=0;for(let a of t)i.push(r),r+=a.length;return i}function ul(t,i,r){let a=[...t],n=us(a),o=function(t){let i=[],r=0;for(;r<t.length;){if(!un.test(t[r])){i.push(r),r++;continue}let a=r;for(;a<t.length&&un.test(t[a]);)a++;let n=t[a];if(void 0!==n&&cV(n.codePointAt(0))){i.push(a);for(let t=a-1;t>=r;t--)i.push(t);r=a+1}else{for(let t=r;t<a;t++)i.push(t);r=a}}return i}(a);return uo(o.map(t=>a[t]),i,o.map(t=>r[n[t]]??0))}function uc(t,i,r,a,n,o,s,l,c,u,h,d,f,p,m){let g=cK.fromFeature(t,n);2===d&&g.verticalizePunctuation();let y=g.determineLineBreaks(u,o,i,a,p),_=cU(g.text)?function(t,i){var r;let a=i.map(i=>t.toCodeUnitIndex(i)),n=cT.isParsed()?cT:null;if(1===t.sections.length)return n?n.processBidirectionalText(t.toString(),a).map(i=>ul(i,t.sections,[...i].map(()=>0))):c2(t.toString(),a).map(t=>t.text).map(i=>uo([...i],t.sections,[...i].map(()=>0)));let o=function(t){let i=[],r=0;for(let a of t.graphemes())i.push(...Array(a.length).fill(t.sectionIndex[r])),r++;return i}(t);return n?n.processStyledBidirectionalText(t.text,o,a).map(([i,r])=>ul(i,t.sections,r)):(r=t.text,c2(r,a).map(t=>[t.text,t.sourceIndices.map(t=>o[t]??0)])).map(([i,r])=>{let a=[...i];return uo(a,t.sections,us(a).map(t=>r[t]??0))})}(g,y):function(t,i){let r=[],a=0;for(let n of i)r.push(t.substring(a,n)),a=n;return a<t.length()&&r.push(t.substring(a,t.length())),r}(g,y),v=[],b={positionedLines:v,text:g.toString(),top:h[1],bottom:h[1],left:h[0],right:h[0],writingMode:d,iconsInText:!1,verticalizable:!1};return function(t,i,r,a,n,o,s,l,c,u,h,d){let f=0,p=0,m=0,g=0,y="right"===l?1:.5*("left"!==l),_=24/d,v=0;for(let s of n){s.trim();let n=s.getMaxScale(),l={positionedGlyphs:[],lineOffset:0};t.positionedLines[v]=l;let d=l.positionedGlyphs,b=0;if(!s.length()){p+=o,++v;continue}let x=function(t,i,r){let a=24*i.getMaxScale(),{maxImageWidth:n,maxImageHeight:o}=i.getMaxImageSize(t),s=Math.max(a,o*r);return{verticalLineContentWidth:Math.max(a,n*r),horizontalLineContentHeight:s}}(a,s,_),w=2!==c||h?null:function(t){let i=t.graphemes().slice(),r=i.map(t=>t.codePointAt(0)),a=r.map(cA),n=i=>!a[i]&&!cB(r[i])&&!("imageName"in t.getSection(i));for(let t=0;t<r.length;t++){if(!n(t))continue;let i=t;for(;i+1<r.length&&n(i+1);)i++;if(function(t){let i=t.some(ud)&&t.every(t=>ud(t)||/[\p{P}\p{S}]/u.test(String.fromCodePoint(t))),r=t.length<=3&&t.every(t=>uf(t)||ud(t));return i||r}(r.slice(t,i+1)))for(let n=t;n<=i;n++){var o;a[n]=(ud(o=r[n])||uf(o))&&!c$(o)}t=i}return function(t,i){let r=!1;for(let a=0;a<t.length;a++){if(i[a])continue;let n=cG[t[a]];n&&(0===a||i[a-1])&&(a===t.length-1||i[a+1])&&(t[a]=n,i[a]=!0,r=!0)}return r}(i,a)&&(t.text=i.join(""),t._graphemes=null),a}(s),k=s.graphemes();for(let o=0;o<k.length;o++){let l=s.getSection(o),m=k[o],g=m.codePointAt(0),y=w?w[o]:!(1===c||!h&&!cA(g)||h&&(cB(g)||c$(g)));for(let c of"fontStack"in l&&cO(m)&&!i[l.fontStack]?.[m]?[...m]:[m]){let h={glyph:c.codePointAt(0),grapheme:c,imageName:null,x:f,y:p+-17,vertical:y,scale:1,fontStack:"",sectionIndex:s.getSectionIndex(o),metrics:null,rect:null},m;if("fontStack"in l){if(!(m=function(t,i,r,a,n,o){let s,l=function(t,i,r,a){if(t?.rect)return t;let n=i[r.fontStack]?.[a];return n?{rect:null,metrics:n.metrics}:null}(o[t.fontStack]?.[i],n,t,i);if(null===l)return null;if(r)s=a.verticalLineContentWidth-24*t.scale;else{let i=uh(t.verticalAlign);s=(a.horizontalLineContentHeight-24*t.scale)*i}return{rect:l.rect,metrics:l.metrics,baselineOffset:s}}(l,c,y,x,i,r)))continue;h.fontStack=l.fontStack}else{if(t.iconsInText=!0,l.scale*=_,!(m=function(t,i,r,a,n){let o=n[t.imageName];if(!o)return null;let s=o.paddedRect,l=o.displaySize,c={width:l[0],height:l[1],left:1,top:-3,advance:i?l[1]:l[0]},u;if(i)u=a.verticalLineContentWidth-l[1]*t.scale;else{let i=uh(t.verticalAlign);u=(a.horizontalLineContentHeight-l[1]*t.scale)*i}return{rect:s,metrics:c,baselineOffset:u,imageOffset:(i?l[0]:l[1])*t.scale-24*r}}(l,y,n,x,a)))continue;b=Math.max(b,m.imageOffset),h.imageName=l.imageName}let{rect:g,metrics:v,baselineOffset:w}=m;(h.y+=w,h.scale=l.scale,h.metrics=v,h.rect=g,d.push(h),y)?(t.verticalizable=!0,f+=("imageName"in l?v.advance:24)*l.scale+u):f+=v.advance*l.scale+u}}0!==d.length&&(m=Math.max(f-u,m),function(t,i,r){if(0===r)return;let a=t[i],n=a.metrics.advance*a.scale,o=(t[i].x+n)*r;for(let r=0;r<=i;r++)t[r].x-=o}(d,d.length-1,y)),f=0,l.lineOffset=Math.max(b,(n-1)*24);let T=o*n+b;p+=T,g=Math.max(T,g),++v}let{horizontalAlign:b,verticalAlign:x}=uu(s);(function(t,i,r,a,n,o,s,l,c){let u=(i-r)*n,h=0;
365for(let i of(h=o===s?-a*c*s+.5*s:-l*a- -17,t))for(let t of i.positionedGlyphs)t.x+=u,t.y+=h})(t.positionedLines,y,b,x,m,g,o,p,n.length),t.top+=-x*p,t.bottom=t.top+p,t.left+=-b*m,t.right=t.left+m}(b,i,r,a,_,s,l,c,d,u,f,m),!function(t){for(let i of t)if(0!==i.positionedGlyphs.length)return!1;return!0}(v)&&b}function uu(t){let i=.5,r=.5;switch(t){case"right":case"top-right":case"bottom-right":i=1;break;case"left":case"top-left":case"bottom-left":i=0}switch(t){case"bottom":case"bottom-right":case"bottom-left":r=1;break;case"top":case"top-right":case"top-left":r=0}return{horizontalAlign:i,verticalAlign:r}}function uh(t){switch(t){case"top":return 0;case"center":return .5;default:return 1}}function ud(t){return/\p{Nd}/u.test(String.fromCodePoint(t))}function uf(t){return/\p{Lu}/u.test(String.fromCodePoint(t))}function up(t){let i=t.left,r=t.top,a=t.right-i,n=t.bottom-r,o=t.image.content[2]-t.image.content[0],s=t.image.content[3]-t.image.content[1],l=t.image.textFitWidth??"stretchOrShrink",c=t.image.textFitHeight??"stretchOrShrink",u=o/s;if("proportional"===c){if("stretchOnly"===l&&a/n<u||"proportional"===l){let t=Math.ceil(n*u);i*=t/a,a=t}}else if("proportional"===l&&"stretchOnly"===c&&0!==u&&a/n>u){let t=Math.ceil(a/u);r*=t/n,n=t}return{x1:i,y1:r,x2:i+a,y2:r+n}}function um(t,i,r,a,n,o){let s=t.image,l;if(s.content){let t=s.content,i=s.pixelRatio||1;l=[t[0]/i,t[1]/i,s.displaySize[0]-t[2]/i,s.displaySize[1]-t[3]/i]}let c=i.left*o,u=i.right*o,h,d,f,p;"width"===r||"both"===r?(p=n[0]+c-a[3],d=n[0]+u+a[1]):d=(p=n[0]+(c+u-s.displaySize[0])/2)+s.displaySize[0];let m=i.top*o,g=i.bottom*o;return"height"===r||"both"===r?(h=n[1]+m-a[0],f=n[1]+g+a[2]):f=(h=n[1]+(m+g-s.displaySize[1])/2)+s.displaySize[1],{image:s,top:h,right:d,bottom:f,left:p,collisionPadding:l}}function ug(t,i){let{expression:r}=i;if("constant"===r.kind)return{kind:"constant",layoutSize:r.evaluate(new nD(t+1))};if("source"===r.kind)return{kind:"source"};if("composite"===r.kind){let{minZoom:i,maxZoom:a}=function(t,i){let r=0;for(;r<t.length&&t[r]<=i;)r++;let a=r=Math.max(0,r-1);for(;a<t.length&&t[a]<i+1;)a++;return a=Math.min(t.length-1,a),{minZoom:t[r],maxZoom:t[a]}}(r.zoomStops,t);return{kind:"composite",minZoom:i,maxZoom:a,interpolationType:r.interpolationType}}{var a;let i=(a=r).zoomStops.map(t=>a.evaluate(new nD(-1/0===t?a.zoomStops[1]-1:t))),n=r.evaluate(new nD(t+1));return{kind:"camera",zoomStops:r.zoomStops,sizes:i,layoutSize:n,interpolationType:r.interpolationType}}}function uy(t,{uSize:i,uSizeT:r},{lowerSize:a,upperSize:n}){return"source"===t.kind?a/128:"composite"===t.kind?i3.number(a/128,n/128,r):i}function u_(t,i){let r=0,a=0;return"constant"===t.kind?a=t.layoutSize:"camera"===t.kind?a=function({zoomStops:t,sizes:i,layoutSize:r,interpolationType:a},n){let o=t.length-1;for(;o>0&&t[o]>n;)o--;let s=Math.min(o+1,t.length-1),l=a?e4(i0.interpolationFactor(a,n,t[o],t[s]),0,1):0;return Math.min(i3.number(i[o],i[s],l),r)}(t,i):"composite"===t.kind&&(r=function({interpolationType:t,minZoom:i,maxZoom:r},a){return t?e4(i0.interpolationFactor(t,a,i,r),0,1):0}(t,i)),{uSizeT:r,uSize:a}}var uv=class t extends R{constructor(t,i,r,a){super(t,i),this.angle=r,void 0!==a&&(this.segment=a)}clone(){return new t(this.x,this.y,this.angle,this.segment)}};function ub(t,i,r,a,n){if(void 0===i.segment||0===r)return!0;let o=i,s=i.segment+1,l=0;for(;l>-r/2;){if(--s<0)return!1;l-=t[s].dist(o),o=t[s]}l+=t[s].dist(t[s+1]),s++;let c=[],u=0;for(;l<r/2;){let i=t[s-1],r=t[s],o=t[s+1];if(!o)return!1;let h=i.angleTo(r)-r.angleTo(o);for(h=Math.abs((h+3*Math.PI)%(2*Math.PI)-Math.PI),c.push({distance:l,angleDelta:h}),u+=h;l-c[0].distance>a;)u-=c.shift().angleDelta;if(u>n)return!1;s++,l+=r.dist(o)}return!0}function ux(t){let i=0;for(let r=0;r<t.length-1;r++)i+=t[r].dist(t[r+1]);return i}function uw(t,i){return Math.max(t?t.right-t.left:0,i?i.right-i.left:0)}function uk(t,i,r,a,n){let o=[];for(let s of t){let t;for(let l=0;l<s.length-1;l++){let c=s[l],u=s[l+1];c.x<i&&u.x<i||(c.x<i?c=new R(i,c.y+(u.y-c.y)*((i-c.x)/(u.x-c.x)))._round():u.x<i&&(u=new R(i,c.y+(u.y-c.y)*((i-c.x)/(u.x-c.x)))._round()),!(c.y<r&&u.y<r)&&(c.y<r?c=new R(c.x+(u.x-c.x)*((r-c.y)/(u.y-c.y)),r)._round():u.y<r&&(u=new R(c.x+(u.x-c.x)*((r-c.y)/(u.y-c.y)),r)._round()),!(c.x>=a&&u.x>=a)&&(c.x>=a?c=new R(a,c.y+(u.y-c.y)*((a-c.x)/(u.x-c.x)))._round():u.x>=a&&(u=new R(a,c.y+(u.y-c.y)*((a-c.x)/(u.x-c.x)))._round()),c.y>=n&&u.y>=n||(c.y>=n?c=new R(c.x+(u.x-c.x)*((n-c.y)/(u.y-c.y)),n)._round():u.y>=n&&(u=new R(c.x+(u.x-c.x)*((n-c.y)/(u.y-c.y)),n)._round()),t&&c.equals(t[t.length-1])||(t=[c],o.push(t)),t.push(u)))))}}return o}function uT(t,i,r,a){let n=[],o=t.image,s=o.pixelRatio,l=o.paddedRect.w-2,c=o.paddedRect.h-2,u={x1:t.left,y1:t.top,x2:t.right,y2:t.bottom},h=o.stretchX||[[0,l]],d=o.stretchY||[[0,c]],f=(t,i)=>t+i[1]-i[0],p=h.reduce(f,0),m=d.reduce(f,0),g=l-p,y=c-m,_=0,v=p,b=0,x=m,w=0,k=g,T=0,S=y;if(o.content&&a){let i=o.content,r=i[2]-i[0],a=i[3]-i[1];(o.textFitWidth||o.textFitHeight)&&(u=up(t)),_=uS(h,0,i[0]),b=uS(d,0,i[1]),v=uS(h,i[0],i[2]),x=uS(d,i[1],i[3]),w=i[0]-_,T=i[1]-b,k=r-v,S=a-x}let A=u.x1,C=u.y1,E=u.x2-A,M=u.y2-C,P=(t,a,n,l)=>{var c,u,h,d,f,g,y,P,D,I,z,F,O,B,j,N;let $=(c=t.stretch-_,c/v*E+A),V=(u=t.fixed-w,h=k,d=t.stretch,u-h*d
vendor: 5,812 bytes, line 365
365/p),U=(f=a.stretch-b,f/x*M+C),G=(g=a.fixed-T,y=S,P=a.stretch,g-y*P/m),q=(D=n.stretch-_,D/v*E+A),Z=(I=n.fixed-w,z=k,F=n.stretch,I-z*F/p),H=(O=l.stretch-b,O/x*M+C),W=(B=l.fixed-T,j=S,N=l.stretch,B-j*N/m),X=new R($,U),Y=new R(q,U),K=new R(q,H),J=new R($,H),Q=new R(V/s,G/s),ee=new R(Z/s,W/s),et=i*Math.PI/180;if(et){let t=Math.sin(et),i=Math.cos(et),r=[i,-t,t,i];X._matMult(r),Y._matMult(r),J._matMult(r),K._matMult(r)}let ei=t.stretch+t.fixed,er=n.stretch+n.fixed,ea=a.stretch+a.fixed,en=l.stretch+l.fixed;return{tl:X,tr:Y,bl:J,br:K,tex:{x:o.paddedRect.x+1+ei,y:o.paddedRect.y+1+ea,w:er-ei,h:en-ea},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Q,pixelOffsetBR:ee,minFontScaleX:k/s/E,minFontScaleY:S/s/M,isSDF:r}};if(a&&(o.stretchX||o.stretchY)){let t=uA(h,g,p),i=uA(d,y,m);for(let r=0;r<t.length-1;r++){let a=t[r],o=t[r+1];for(let t=0;t<i.length-1;t++){let r=i[t],s=i[t+1];n.push(P(a,r,o,s))}}}else n.push(P({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:l+1},{fixed:0,stretch:c+1}));return n}function uS(t,i,r){let a=0;for(let n of t)a+=Math.max(i,Math.min(r,n[1]))-Math.max(i,Math.min(r,n[0]));return a}function uA(t,i,r){let a=[{fixed:-1,stretch:0}];for(let[i,r]of t){let t=a[a.length-1];a.push({fixed:i-t.stretch,stretch:t.stretch}),a.push({fixed:i-t.stretch,stretch:t.stretch+(r-i)})}return a.push({fixed:i+1,stretch:r}),a}nT("Anchor",uv);var uC=class{constructor(t,i,r,a,n,o,s,l,c,u){if(this.boxStartIndex=t.length,c){let t=o.top,i=o.bottom,r=o.collisionPadding;r&&(t-=r[1],i+=r[3]);let a=i-t;a>0&&(a=Math.max(10,a),this.circleDiameter=a)}else{let c=o.image?.content&&(o.image.textFitWidth||o.image.textFitHeight)?up(o):{x1:o.left,y1:o.top,x2:o.right,y2:o.bottom};c.y1=c.y1*s-l[0],c.y2=c.y2*s+l[2],c.x1=c.x1*s-l[3],c.x2=c.x2*s+l[1];let h=o.collisionPadding;if(h&&(c.x1-=h[0]*s,c.y1-=h[1]*s,c.x2+=h[2]*s,c.y2+=h[3]*s),u){let t=new R(c.x1,c.y1),i=new R(c.x2,c.y1),r=new R(c.x1,c.y2),a=new R(c.x2,c.y2),n=u*Math.PI/180;t._rotate(n),i._rotate(n),r._rotate(n),a._rotate(n),c.x1=Math.min(t.x,i.x,r.x,a.x),c.x2=Math.max(t.x,i.x,r.x,a.x),c.y1=Math.min(t.y,i.y,r.y,a.y),c.y2=Math.max(t.y,i.y,r.y,a.y)}t.emplaceBack(i.x,i.y,c.x1,c.y1,c.x2,c.y2,r,a,n)}this.boxEndIndex=t.length}},uE=class{constructor(t=[],i=(t,i)=>t<i?-1:+(t>i)){if(this.data=t,this.length=this.data.length,this.compare=i,this.length>0)for(let t=(this.length>>1)-1;t>=0;t--)this._down(t)}push(t){this.data.push(t),this._up(this.length++)}pop(){if(0===this.length)return;let t=this.data[0],i=this.data.pop();return--this.length>0&&(this.data[0]=i,this._down(0)),t}peek(){return this.data[0]}_up(t){let{data:i,compare:r}=this,a=i[t];for(;t>0;){let n=t-1>>1,o=i[n];if(r(a,o)>=0)break;i[t]=o,t=n}i[t]=a}_down(t){let{data:i,compare:r}=this,a=this.length>>1,n=i[t];for(;t<a;){let a=(t<<1)+1,o=a+1;if(o<this.length&&0>r(i[o],i[a])&&(a=o),r(i[a],n)>=0)break;i[t]=i[a],t=a}i[t]=n}};function uM(t,i){return i.max-t.max}var uP=class{constructor(t,i,r,a){this.p=new R(t,i),this.h=r,this.d=function(t,i){let r=!1,a=1/0;for(let n of i)for(let i=0,o=n.length,s=o-1;i<o;s=i++){let o=n[i],l=n[s];o.y>t.y!=l.y>t.y&&t.x<(l.x-o.x)*(t.y-o.y)/(l.y-o.y)+o.x&&(r=!r),a=Math.min(a,sE(t,o,l))}return(r?1:-1)*Math.sqrt(a)}(this.p,a),this.max=this.d+this.h*Math.SQRT2}};let uD=((hd={})[hd.center=1]="center",hd[hd.left=2]="left",hd[hd.right=3]="right",hd[hd.top=4]="top",hd[hd.bottom=5]="bottom",hd[hd["top-left"]=6]="top-left",hd[hd["top-right"]=7]="top-right",hd[hd["bottom-left"]=8]="bottom-left",hd[hd["bottom-right"]=9]="bottom-right",hd);function uI(t,i){return 1/0===i[1]?function(t,i){let r=0,a=0;i<0&&(i=0);let n=i/Math.SQRT2;switch(t){case"top-right":case"top-left":a=n-7;break;case"bottom-right":case"bottom-left":a=-n+7;break;case"bottom":a=-i+7;break;case"top":a=i-7}switch(t){case"top-right":case"bottom-right":r=-n;break;case"top-left":case"bottom-left":r=n;break;case"left":r=i;break;case"right":r=-i}return[r,a]}(t,i[0]):function(t,i,r){let a=0,n=0;switch(i=Math.abs(i),r=Math.abs(r),t){case"top-right":case"top-left":case"top":n=r-7;break;case"bottom-right":case"bottom-left":case"bottom":n=-r+7}switch(t){case"top-right":case"bottom-right":case"right":a=-i;break;case"top-left":case"bottom-left":case"left":a=i}return[a,n]}(t,i[0],i[1])}function uz(t,i,r){let a=t.layout,n=a.get("text-variable-anchor-offset")?.evaluate(i,{},r);if(n){let t=n.values,i=[];for(let r=0;r<t.length;r+=2){let a=i[r]=t[r],n=t[r+1].map(t=>24*t);a.startsWith("top")?n[1]-=7:a.startsWith("bottom")&&(n[1]+=7),i[r+1]=n}return new iV(i)}let o=a.get("text-variable-anchor");if(o){let n;n=void 0===t._unevaluatedLayout.getValue("text-radial-offset")?a.get("text-offset").evaluate(i,{},r).map(t=>24*t):[24*a.get("text-radial-offset").evaluate(i,{},r),1/0];let s=[];for(let t of o)s.push(t,uI(t,n));return new iV(s)}return null}function uL(t){switch(t){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function uF(t,i,r,a,n,o,s,l,c,u,h,d,f,p,m,g){let y=function(t,i,r,a,n,o,s){let l=r.layout.get("text-rotate").evaluate(n,{})*Math.PI/180,c=[];for(let r of t.positionedLines)for(let n of r.positionedGlyphs){if(!n.rect)continue;let u=n.rect||{},h=4,d=!0,f=1,p=0,m=(a||s)&&n.vertical,g=n.metrics.advance*n.scale/2;if(s&&t.verticalizable){let t=(n.scale-1)*24,i=(24-n.metrics.width*n.scale)/2;p=r.lineOffset/2-(n.imageName?-i:t)}if(n.imageName){let t=o[n.imageName];d=t.sdf,h=1/(f=t.pixelRatio)}let y=a?[n.x+g,n.y]:[0,0],_=a?[0,0]:[n.x+g+i[0],n.y+i[1]-p],v=[0,0];m&&(v=_,_=[0,0]);let b=n.metrics.isDoubleResolution?2:1,x=(n.metrics.left-h)*n.scale-g+_[0],w=(-n.metrics.top-h)*n.scale+_[1],k=x+u.w/b*n.scale/f,T=w+u.h/b*n.scale/f,S=new R(x,w),A=new R(k,w),C=new R(x,T),E=new R(k,T);if(m){let t=new R(-g,g- -17),i=-Math.PI/2,r=12-g,a=n.imageName?r:0,o=new R(22-r,-a),s=new R(...v);
365S._rotateAround(i,t)._add(o)._add(s),A._rotateAround(i,t)._add(o)._add(s),C._rotateAround(i,t)._add(o)._add(s),E._rotateAround(i,t)._add(o)._add(s)}if(l){let t=Math.sin(l),i=Math.cos(l),r=[i,-t,t,i];S._matMult(r),A._matMult(r),C._matMult(r),E._matMult(r)}let M=new R(0,0),P=new R(0,0);c.push({tl:S,tr:A,bl:C,br:E,tex:u,writingMode:t.writingMode,glyphOffset:y,sectionIndex:n.sectionIndex,isSDF:d,pixelOffsetTL:M,pixelOffsetBR:P,minFontScaleX:0,minFontScaleY:0})}return c}(r,l,n,o,s,a,t.allowVerticalPlacement),_=t.textSizeData,v=null;for(let r of("source"===_.kind?(v=[128*n.layout.get("text-size").evaluate(s,{})])[0]>32640&&tu(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`):"composite"===_.kind&&((v=[128*m.compositeTextSizes[0].evaluate(s,{},g),128*m.compositeTextSizes[1].evaluate(s,{},g)])[0]>32640||v[1]>32640)&&tu(`${t.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`),t.addSymbols(t.text,y,v,l,o,s,h,i,u.lineStartIndex,u.lineLength,p,g,c),d))f[r]=t.text.placedSymbolArray.length-1;return 4*y.length}function uR(t){for(let i in t)return t[i];return null}function uO(t,i,r){let a="never",n=t.get(i);return n?a=n:t.get(r)&&(a="always"),a}let uB=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function uj(t,i,r,a,n,o,s,l,c,u,h,d,f,p){let m=l?Math.min(32640,Math.round(l[0])):0,g=l?Math.min(32640,Math.round(l[1])):0;t.emplaceBack(i,r,Math.round(32*a),Math.round(32*n),o,s,(m<<1)+ +!!c,g,16*u,16*h,256*d,256*f,p)}function uN(t,i,r){t.emplaceBack(i.x,i.y,r),t.emplaceBack(i.x,i.y,r),t.emplaceBack(i.x,i.y,r),t.emplaceBack(i.x,i.y,r)}var u$=class{constructor(t){this.layoutVertexArray=new oN,this.indexArray=new oH,this.programConfigurations=t,this.segments=new oJ,this.dynamicLayoutVertexArray=new o$,this.opacityVertexArray=new oV,this.hasVisibleVertices=!1,this.placedSymbolArray=new ox}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length}upload(t,i,r,a){this.isEmpty()||(r&&(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,cv.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,i),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,cb.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,uB,!0),this.opacityVertexBuffer.itemSize=1),(r||a)&&this.programConfigurations.upload(t))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())}};nT("SymbolBuffers",u$);var uV=class{constructor(t,i,r){this.layoutVertexArray=new t,this.layoutAttributes=i,this.indexArray=new r,this.segments=new oJ,this.collisionVertexArray=new oq}upload(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,cx.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())}};nT("CollisionBuffers",uV);var uU=class{constructor(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map(t=>t.id),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasDependencies=!0,this.hasRTLText=!1,this.maxHeightOffset=0,this.sortKeyRanges=[],this.collisionCircleArray=[],this.maxGlyphs=65535;let i=this.layers[0]._unevaluatedLayout._values;this.textSizeData=ug(this.zoom,i["text-size"]),this.iconSizeData=ug(this.zoom,i["icon-size"]);let r=this.layers[0].layout,a=r.get("symbol-sort-key"),n=r.get("symbol-z-order");this.canOverlap="never"!==uO(r,"text-overlap","text-allow-overlap")||"never"!==uO(r,"icon-overlap","icon-allow-overlap")||r.get("text-ignore-placement")||r.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==n&&!a.isConstant();let o="viewport-y"===n||"auto"===n&&!this.sortFeaturesByKey;this.sortFeaturesByY=o&&this.canOverlap,"point"===r.get("symbol-placement")&&(this.writingModes=r.get("text-writing-mode").map(t=>ua[t])),this.stateDependentLayerIds=this.layers.filter(t=>t.isStateDependent()).map(t=>
365t.id),this.sourceID=t.sourceID}createArrays(){this.text=new u$(new s_(this.layers,this.zoom,t=>t.startsWith("text"))),this.icon=new u$(new s_(this.layers,this.zoom,t=>t.startsWith("icon"))),this.glyphOffsetArray=new oT,this.lineVertexArray=new oS,this.symbolInstances=new ok,this.textAnchorOffsets=new oC}calculateGlyphDependencies(t,i,r,a,n){let o=(a||this.allowVerticalPlacement)&&n,s=cK.fromFeature(t,r),l=s.graphemes();for(let t=0;t<l.length;t++){let r=s.getSection(t);if("imageName"in r)continue;let a=i[r.fontStack]||={},n=l[t];for(let t of(cO(n)&&(a[n]=!0),n)){if(a[t]=!0,!o)continue;let i=cG[t];i&&(a[i]=!0)}}}populate(t,i,r){let a=this.layers[0],n=a.layout,o=n.get("text-font"),s=n.get("text-field"),l=n.get("icon-image"),c=("constant"!==s.value.kind||s.value.value instanceof iR&&!s.value.value.isEmpty()||s.value.value.toString().length>0)&&("constant"!==o.value.kind||o.value.value.length>0),u="constant"!==l.value.kind||!!l.value.value||Object.keys(l.parameters).length>0,h=n.get("symbol-sort-key");if(this.features=[],!c&&!u)return;let d=i.iconDependencies,f=i.glyphDependencies,p=i.availableImages,m=new nD(this.zoom);for(let{feature:i,id:s,index:l,sourceLayerIndex:g}of t){let t,y,_=a._featureFilter.needGeometry,v=sx(i,_);if(!a._featureFilter.filter(m,v,r))continue;if(_||(v.geometry=sb(i)),c){let i=a.getValueAndResolveTokens("text-field",v,r,p),n=iR.factory(i);this.hasRTLText||=function(t){for(let i of t.sections)if(cU(i.text))return!0;return!1}(n),t=function(t,i,r){for(let a of t.sections)a.text=function(t,i,r){let a=i.layout.get("text-transform").evaluate(r,{});return"uppercase"===a?t=t.toLocaleUpperCase():"lowercase"===a&&(t=t.toLocaleLowerCase()),(cT.applyArabicShaping??function(t){if(!cP.test(t))return t;let i=[...t].map(t=>{let i=t.codePointAt(0);return{codePoint:i,type:cD.get(i)??"U",form:null}});return function(t){let i=t.filter(t=>"T"!==t.type);for(let t=0;t<i.length;t++){var r,a,n;let o=i[t],s=t>0&&("D"===(r=i[t-1].type)||"L"===r||"C"===r),l=t+1<i.length&&("D"===(a=i[t+1].type)||"R"===a||"C"===a);n=o.type,o.form="D"===n?s&&l?3:s?1:2*!!l:"R"===n?+!!s:"L"===n?2*!!l:null}}(i),function(t){let i=!1;for(let r of t)"T"===r.type?r.form=3*!!i:i=2===r.form||3===r.form}(i),(function(t){let i=[];for(let r=0;r<t.length;r++){let a=t[r];if(1604!==a.codePoint){i.push(a);continue}let n=r+1;for(;n<t.length&&"T"===t[n].type;)n++;let o=t[n],s=o&&cM[String.fromCodePoint(1604,o.codePoint)];if(!s){i.push(a);continue}let l=3===a.form||1===a.form;i.push({codePoint:s[+!!l],type:"R",form:0}),i.push(...t.slice(r+1,n)),r=n}return i})(i).map(t=>String.fromCodePoint(function(t){if(null===t.form)return t.codePoint;let i=cE[t.codePoint];return i&&(i[t.form]||i[0])||t.codePoint}(t))).join("")})(t)}(a.text,i,r);return t}(n,a,v)}if(u){let t=a.getValueAndResolveTokens("icon-image",v,r,p);y=t instanceof iU?t:iU.fromString(t)}if(!t&&!y)continue;let b=this.sortFeaturesByKey?h.evaluate(v,{},r):void 0,x={id:s,text:t,icon:y,index:l,sourceLayerIndex:g,geometry:v.geometry,properties:i.properties,type:lZ.types[i.type],sortKey:b};if(this.features.push(x),y&&(d[y.name]=!0),t){let i=o.evaluate(v,{},r).join(","),a="viewport"!==n.get("text-rotation-alignment")&&"point"!==n.get("symbol-placement");this.allowVerticalPlacement=this.writingModes?.includes(2);let s=cj(t.toString());for(let r of(this.calculateGlyphDependencies(t,f,i,a,s),t.sections))r.image&&(d[r.image.name]=!0)}}"line"===n.get("symbol-placement")&&(this.features=function(t){let i={},r={},a=[];for(let n of t){let t=n.text?n.text.toString():null,o={points:n.geometry[0],next:null},s={feature:n,first:o,last:o};if(!t){a.push(s);continue}let l=cI(t,s),c=cI(t,s,!0);if(l in r&&c in i&&r[l]!==i[c]){let n=cL(a,i,l,c,s),o=cz(a,r,l,c,a[n]);delete i[l],delete r[c],r[cI(t,a[o],!0)]=o,a[n].feature.geometry=null}else if(l in r)cz(a,r,l,c,s);else if(c in i)cL(a,i,l,c,s);else{let t=a.push(s)-1;i[l]=t,r[c]=t}}let n=[];for(let t of a){let i=t.feature;i.geometry&&(t.first.next&&(i.geometry[0]=function(t){let i=t.first.points,r=i.length;for(let i=t.first.next;i;i=i.next)r+=i.points.length-1;let a=Array(r);for(let t=0;t<i.length;t++)a[t]=i[t];let n=i.length;for(let i=t.first.next;i;i=i.next){let t=i.points;for(let i=1;i<t.length;i++)a[n++]=t[i]}return a}(t)),n.push(i))}return n}(this.features)),this.sortFeaturesByKey&&this.features.sort((t,i)=>t.sortKey-i.sortKey)}update(t,i,r){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(t,i,this.layers,{imagePositions:r}),this.icon.programConfigurations.updatePaintArrays(t,i,this.layers,{imagePositions:r}))}addFeatures({options:t,canonical:i,glyphMap:r,glyphPositions:a,iconMap:n,iconPositions:o,showCollisionBoxes:s}){!function(t){t.bucket.createArrays();let i=512*t.bucket.overscaling;t.bucket.tilePixelRatio=8192/i,t.bucket.compareText={},t.bucket.iconsNeedLinear=!1;let r=t.bucket.layers[0],a=r.layout,n=r._unevaluatedLayout._values,o={layoutIconSize:n["icon-size"].possiblyEvaluate(new nD(t.bucket.zoom+1),t.canonical),layoutTextSize:n["text-size"].possiblyEvaluate(new nD(t.bucket.zoom+1),t.canonical),textMaxSize:n["text-size"].possiblyEvaluate(new nD(18))};
vendor: 4,784 bytes, line 365
365if("composite"===t.bucket.textSizeData.kind){let{minZoom:i,maxZoom:r}=t.bucket.textSizeData;o.compositeTextSizes=[n["text-size"].possiblyEvaluate(new nD(i),t.canonical),n["text-size"].possiblyEvaluate(new nD(r),t.canonical)]}if("composite"===t.bucket.iconSizeData.kind){let{minZoom:i,maxZoom:r}=t.bucket.iconSizeData;o.compositeIconSizes=[n["icon-size"].possiblyEvaluate(new nD(i),t.canonical),n["icon-size"].possiblyEvaluate(new nD(r),t.canonical)]}let s=24*a.get("text-line-height"),l="viewport"!==a.get("text-rotation-alignment")&&"point"!==a.get("symbol-placement"),c=a.get("text-keep-upright"),u=a.get("text-size");for(let i of t.bucket.features){let n=a.get("text-font").evaluate(i,{},t.canonical).join(","),h=u.evaluate(i,{},t.canonical),d=o.layoutTextSize.evaluate(i,{},t.canonical),f=o.layoutIconSize.evaluate(i,{},t.canonical),p={horizontal:{},vertical:void 0},m=i.text,g=[0,0];if(m){let o=m.toString(),u=24*a.get("text-letter-spacing").evaluate(i,{},t.canonical),f=!function(t){for(let i of t)if(!function(t){return!/[\u0600-\u0604\u0606-\u060B\u060D-\u061A\u061C-\u061E\u0620-\u063F\u0641-\u064A\u0656-\u066F\u0671-\u06DC\u06DE-\u070D\u070F-\u074A\u074D-\u077F\u07C0-\u07FA\u07FD-\u07FF\u0840-\u085B\u085E\u0860-\u086A\u0870-\u0891\u0897-\u08E1\u08E3-\u08FF\u1800\u1801\u1804\u1806-\u1819\u1820-\u1878\u1880-\u18AA\uA840-\uA877\uFB50-\uFD3D\uFD40-\uFDCF\uFDF0-\uFDFF\uFE70-\uFE74\uFE76-\uFEFC]|\uD802[\uDEC0-\uDEE6\uDEEB-\uDEF6\uDF80-\uDF91\uDF99-\uDF9C\uDFA9-\uDFAF]|\uD803[\uDD00-\uDD27\uDD30-\uDD39\uDE60-\uDE7E\uDEC2-\uDEC7\uDED0-\uDED8\uDEFA-\uDEFF\uDF30-\uDF59\uDF70-\uDF89\uDFB0-\uDFCB]|\uD805[\uDE60-\uDE6C]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9C-\uDC9F]|\uD83A[\uDD00-\uDD4B\uDD50-\uDD59\uDD5E\uDD5F]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB\uDEF0\uDEF1]/gim.test(String.fromCodePoint(t))}(i.codePointAt(0)))return!1;return!0}(o)?0:u,y=a.get("text-anchor").evaluate(i,{},t.canonical),_=uz(r,i,t.canonical);if(!_){let r=a.get("text-radial-offset").evaluate(i,{},t.canonical);g=r?uI(y,[24*r,1/0]):a.get("text-offset").evaluate(i,{},t.canonical).map(t=>24*t)}let v=l?"center":a.get("text-justify").evaluate(i,{},t.canonical),b="point"===a.get("symbol-placement")?24*a.get("text-max-width").evaluate(i,{},t.canonical):1/0,x=()=>{t.bucket.allowVerticalPlacement&&cj(o)&&(p.vertical=uc(m,t.glyphMap,t.glyphPositions,t.imagePositions,n,b,s,y,"left",f,g,2,!0,d,h))};if(!l&&_){let i=new Set;if("auto"===v)for(let t=0;t<_.values.length;t+=2)i.add(uL(_.values[t]));else i.add(v);let r=!1;for(let a of i)if(!p.horizontal[a])if(r)p.horizontal[a]=p.horizontal[0];else{let i=uc(m,t.glyphMap,t.glyphPositions,t.imagePositions,n,b,s,"center",a,f,g,1,!1,d,h);i&&(p.horizontal[a]=i,r=1===i.positionedLines.length)}x()}else{"auto"===v&&(v=uL(y));let i=uc(m,t.glyphMap,t.glyphPositions,t.imagePositions,n,b,s,y,v,f,g,1,!1,d,h);i&&(p.horizontal[v]=i),x(),cj(o)&&l&&c&&(p.vertical=uc(m,t.glyphMap,t.glyphPositions,t.imagePositions,n,b,s,y,v,f,g,2,!1,d,h))}}let y,_=!1;if(i.icon?.name){let r=t.imageMap[i.icon.name];r&&(y=function(t,i,r){let{horizontalAlign:a,verticalAlign:n}=uu(r),o=i[0],s=i[1],l=o-t.displaySize[0]*a,c=l+t.displaySize[0],u=s-t.displaySize[1]*n;return{image:t,top:u,bottom:u+t.displaySize[1],left:l,right:c}}(t.imagePositions[i.icon.name],a.get("icon-offset").evaluate(i,{},t.canonical),a.get("icon-anchor").evaluate(i,{},t.canonical)),_=!!r.sdf,void 0===t.bucket.sdfIcons?t.bucket.sdfIcons=_:t.bucket.sdfIcons!==_&&tu("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),r.pixelRatio===t.bucket.pixelRatio?0!==a.get("icon-rotate").constantOr(1)&&(t.bucket.iconsNeedLinear=!0):t.bucket.iconsNeedLinear=!0)}let v=uR(p.horizontal)||p.vertical;t.bucket.iconsInText||=!!v&&v.iconsInText,(v||y)&&function(t,i,r,a,n,o,s,l,c,u,h,d){let f=o.textMaxSize.evaluate(i,{});void 0===f&&(f=s);let p=t.layers[0].layout,m=p.get("icon-offset").evaluate(i,{},h),g=uR(r.horizontal),y=s/24,_=t.tilePixelRatio*y,v=t.tilePixelRatio*f/24,b=t.tilePixelRatio*l,x=t.tilePixelRatio*p.get("symbol-spacing"),w=p.get("text-padding")*t.tilePixelRatio,k=function(t,i,r,a=1){let n=t.get("icon-padding").evaluate(i,{},r)?.values;return[n[0]*a,n[1]*a,n[2]*a,n[3]*a]}(p,i,h,t.tilePixelRatio),T=p.get("text-max-angle")/180*Math.PI,S="viewport"!==p.get("text-rotation-alignment")&&"point"!==p.get("symbol-placement"),A="map"===p.get("icon-rotation-alignment").constantOr("viewport")&&"point"!==p.get("symbol-placement"),C=p.get("symbol-placement"),E=x/2,M=p.get("icon-text-fit"),P;
365a&&"none"!==M&&(t.allowVerticalPlacement&&r.vertical&&(P=um(a,r.vertical,M,p.get("icon-text-fit-padding"),m,y)),g&&(a=um(a,g,M,p.get("icon-text-fit-padding"),m,y)));let D=h?d.line.getGranularityForZoomLevel(h.z):1,I=(l,d)=>{d.x<0||d.x>=8192||d.y<0||d.y>=8192||function(t,i,r,a,n,o,s,l,c,u,h,d,f,p,m,g,y,_,v,b,x,w,k,T,S){let A=t.addToLineVertexArray(i,r),C=l.layout.get("symbol-height-offset").evaluate(x,{},T);C>t.maxHeightOffset&&(t.maxHeightOffset=C);let E,M,P,D,I=0,z=0,F=0,R=0,O=-1,B=-1,j={},N=(0,o5.default)("");if(t.allowVerticalPlacement&&a.vertical){let t=l.layout.get("text-rotate").evaluate(x,{},T)+90;P=new uC(c,i,u,h,d,a.vertical,f,p,m,t),s&&(D=new uC(c,i,u,h,d,s,y,_,m,t))}if(n){let r=l.layout.get("icon-rotate").evaluate(x,{}),a="none"!==l.layout.get("icon-text-fit"),o=uT(n,r,k,a),f=s?uT(s,r,k,a):void 0;M=new uC(c,i,u,h,d,n,y,_,!1,r),I=4*o.length;let p=t.iconSizeData,m=null;"source"===p.kind?(m=[128*l.layout.get("icon-size").evaluate(x,{})])[0]>32640&&tu(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`):"composite"===p.kind&&((m=[128*w.compositeIconSizes[0].evaluate(x,{},T),128*w.compositeIconSizes[1].evaluate(x,{},T)])[0]>32640||m[1]>32640)&&tu(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`),t.addSymbols(t.icon,o,m,b,v,x,0,i,A.lineStartIndex,A.lineLength,-1,T,C),O=t.icon.placedSymbolArray.length-1,f&&(z=4*f.length,t.addSymbols(t.icon,f,m,b,v,x,2,i,A.lineStartIndex,A.lineLength,-1,T,C),B=t.icon.placedSymbolArray.length-1)}let $=Object.keys(a.horizontal);for(let r of $){let n=a.horizontal[r];E||=(N=(0,o5.default)(n.text),new uC(c,i,u,h,d,n,f,p,m,l.layout.get("text-rotate").evaluate(x,{},T)));let s=1===n.positionedLines.length;if(F+=uF(t,i,n,o,l,m,x,g,C,A,a.vertical?1:3,s?$:[r],j,O,w,T),s)break}a.vertical&&(R+=uF(t,i,a.vertical,o,l,m,x,g,C,A,2,["vertical"],j,B,w,T));let V=E?E.boxStartIndex:t.collisionBoxArray.length,U=E?E.boxEndIndex:t.collisionBoxArray.length,G=P?P.boxStartIndex:t.collisionBoxArray.length,q=P?P.boxEndIndex:t.collisionBoxArray.length,Z=M?M.boxStartIndex:t.collisionBoxArray.length,H=M?M.boxEndIndex:t.collisionBoxArray.length,W=D?D.boxStartIndex:t.collisionBoxArray.length,X=D?D.boxEndIndex:t.collisionBoxArray.length,Y=-1,K=(t,i)=>t?.circleDiameter?Math.max(t.circleDiameter,i):i;Y=K(E,-1),Y=K(P,Y),Y=K(M,Y);let J=+((Y=K(D,Y))>-1);J&&(Y*=S/24),t.glyphOffsetArray.length>=t.maxGlyphs&&tu("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==x.sortKey&&t.addToSortKeyRanges(t.symbolInstances.length,x.sortKey);let Q=uz(l,x,T),[ee,et]=function(t,i){let r=t.length,a=i?.values;if(a?.length>0)for(let i=0;i<a.length;i+=2){let r=uD[a[i]],n=a[i+1];t.emplaceBack(r,n[0],n[1])}return[r,t.length]}(t.textAnchorOffsets,Q);t.symbolInstances.emplaceBack(i.x,i.y,j.right>=0?j.right:-1,j.center>=0?j.center:-1,j.left>=0?j.left:-1,j.vertical||-1,O,B,N,V,U,G,q,Z,H,W,X,u,F,R,I,z,J,0,f,Y,ee,et,C)}(t,d,l,r,a,n,P,t.layers[0],t.collisionBoxArray,i.index,i.sourceLayerIndex,t.index,_,[w,w,w,w],S,c,b,k,A,m,i,o,u,h,s)};if("line"===C)for(let n of uk(i.geometry,0,0,8192,8192)){let i=lz(n,D);for(let n of function(t,i,r,a,n,o,s){let l=a?.6*24*o:0,c=uw(a,n),u=c*o,h=0===t[0].x||8192===t[0].x||0===t[0].y||8192===t[0].y;return i-u<i/4&&(i=u+i/4),function t(i,r,a,n,o,s,l,c,u){let h=s/2,d=ux(i),f=0,p=r-a,m=[];for(let t=0;t<i.length-1;t++){let r=i[t],l=i[t+1],c=r.dist(l),g=l.angleTo(r);for(;p+a<f+c;){let y=((p+=a)-f)/c,_=i3.number(r.x,l.x,y),v=i3.number(r.y,l.y,y);if(_>=0&&_<u&&v>=0&&v<u&&p-h>=0&&p+h<=d){let r=new uv(_,v,g,t);r._round(),(!n||ub(i,r,s,n,o))&&m.push(r)}}f+=c}return c||m.length||l||(m=t(i,f/2,a,n,o,s,l,!0,u)),m}(t,h?i/2*s%i:(c/2+48)*o*s%i,i,l,r,u,h,!1,8192)}(i,x,T,r.vertical||g,a,v,t.overscaling))g&&function(t,i,r,a){let n=t.compareText;if(i in n){let t=n[i];for(let i=t.length-1;i>=0;i--)if(a.dist(t[i])<r)return!0}else n[i]=[];return n[i].push(a),!1}(t,g.text,E,n)||I(i,n)}else if("line-center"===C){for(let t of i.geometry)if(t.length>1){let i=lz(t,D),n=function(t,i,r,a,n){let o=r?.6*24*n:0,s=uw(r,a)*n,l=0,c=ux(t)/2;for(let r=0;r<t.length-1;r++){let a=t[r],n=t[r+1],u=a.dist(n);if(l+u>c){let h=(c-l)/u,d=new uv(i3.number(a.x,n.x,h),i3.number(a.y,n.y,h),n.angleTo(a),r);return d._round(),!o||ub(t,d,s,o,i)?d:void 0}l+=u}}(i,T,r.vertical||g,a,v);n&&I(i,n)}}
vendor: 19,348 bytes, line 365
365else if("Polygon"===i.type)for(let t of i6(i.geometry,0)){let i=function(t,i=1){let r=lV.fromPoints(t[0]),a=Math.min(r.width(),r.height()),n=a/2,o=new uE([],uM),{minX:s,minY:l,maxX:c,maxY:u}=r;if(0===a)return new R(s,l);for(let i=s;i<c;i+=a)for(let r=l;r<u;r+=a)o.push(new uP(i+n,r+n,n,t));let h=function(t){let i=0,r=0,a=0,n=t[0];for(let t=0,o=n.length,s=o-1;t<o;s=t++){let o=n[t],l=n[s],c=o.x*l.y-l.x*o.y;r+=(o.x+l.x)*c,a+=(o.y+l.y)*c,i+=3*c}return new uP(r/i,a/i,0,t)}(t),d=h;for(;o.length;){let r=o.pop();(r.d>d.d||!d.d)&&(d=r),r.max-d.d<=i||(n=r.h/2,o.push(new uP(r.p.x-n,r.p.y-n,n,t)),o.push(new uP(r.p.x+n,r.p.y-n,n,t)),o.push(new uP(r.p.x-n,r.p.y+n,n,t)),o.push(new uP(r.p.x+n,r.p.y+n,n,t)))}return h.d>0&&d.d-h.d<=i?h.p:d.p}(t,16);I(lz(t[0],D,!0),new uv(i.x,i.y,0))}else if("LineString"===i.type)for(let t of i.geometry){let i=lz(t,D);I(i,new uv(i[0].x,i[0].y,0))}else if("Point"===i.type)for(let t of i.geometry)for(let i of t)I([i],new uv(i.x,i.y,0))}(t.bucket,i,p,y,t.imageMap,o,d,f,g,_,t.canonical,t.subdivisionGranularity)}t.showCollisionBoxes&&t.bucket.generateCollisionDebugBuffers()}({bucket:this,glyphMap:r,glyphPositions:a,imageMap:n,imagePositions:o,showCollisionBoxes:s,canonical:i,subdivisionGranularity:t.subdivisionGranularity})}isEmpty(){return 0===this.symbolInstances.length}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(t){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(t,i){let r=this.lineVertexArray.length;if(void 0!==t.segment){let r=t.dist(i[t.segment+1]),a=t.dist(i[t.segment]),n={};for(let a=t.segment+1;a<i.length;a++)n[a]={x:i[a].x,y:i[a].y,tileUnitDistanceFromAnchor:r},a<i.length-1&&(r+=i[a+1].dist(i[a]));for(let r=t.segment||0;r>=0;r--)n[r]={x:i[r].x,y:i[r].y,tileUnitDistanceFromAnchor:a},r>0&&(a+=i[r-1].dist(i[r]));for(let t=0;t<i.length;t++){let i=n[t];this.lineVertexArray.emplaceBack(i.x,i.y,i.tileUnitDistanceFromAnchor)}}return{lineStartIndex:r,lineLength:this.lineVertexArray.length-r}}addSymbols(t,i,r,a,n,o,s,l,c,u,h,d,f){let p=t.indexArray,m=t.layoutVertexArray,g=t.segments.prepareSegment(4*i.length,m,p,this.canOverlap?o.sortKey:void 0),y=this.glyphOffsetArray.length,_=g.vertexLength,v=this.allowVerticalPlacement&&2===s?Math.PI/2:0,b=o.text&&o.text.sections;for(let a=0;a<i.length;a++){let{tl:n,tr:s,bl:c,br:u,tex:h,pixelOffsetTL:y,pixelOffsetBR:_,minFontScaleX:x,minFontScaleY:w,glyphOffset:k,isSDF:T,sectionIndex:S}=i[a],A=g.vertexLength,C=k[1];uj(m,l.x,l.y,n.x,C+n.y,h.x,h.y,r,T,y.x,y.y,x,w,f),uj(m,l.x,l.y,s.x,C+s.y,h.x+h.w,h.y,r,T,_.x,y.y,x,w,f),uj(m,l.x,l.y,c.x,C+c.y,h.x,h.y+h.h,r,T,y.x,_.y,x,w,f),uj(m,l.x,l.y,u.x,C+u.y,h.x+h.w,h.y+h.h,r,T,_.x,_.y,x,w,f),uN(t.dynamicLayoutVertexArray,l,v),p.emplaceBack(A,A+2,A+1),p.emplaceBack(A+1,A+2,A+3),g.vertexLength+=4,g.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(k[0]),(a===i.length-1||S!==i[a+1].sectionIndex)&&t.programConfigurations.populatePaintArrays(m.length,o,o.index,{imagePositions:{},canonical:d,formattedSection:b?.[S]})}t.placedSymbolArray.emplaceBack(l.x,l.y,y,this.glyphOffsetArray.length-y,_,c,u,l.segment,r?r[0]:0,r?r[1]:0,a[0],a[1],s,0,!1,0,h,f)}_addCollisionDebugVertex(t,i,r,a,n,o){return i.emplaceBack(0,0),t.emplaceBack(r.x,r.y,a,n,Math.round(o.x),Math.round(o.y))}addCollisionDebugVertices(t,i,r,a,n,o,s){let l=n.segments.prepareSegment(4,n.layoutVertexArray,n.indexArray),c=l.vertexLength,u=n.layoutVertexArray,h=n.collisionVertexArray,d=s.anchorX,f=s.anchorY;this._addCollisionDebugVertex(u,h,o,d,f,new R(t,i)),this._addCollisionDebugVertex(u,h,o,d,f,new R(r,i)),this._addCollisionDebugVertex(u,h,o,d,f,new R(r,a)),this._addCollisionDebugVertex(u,h,o,d,f,new R(t,a)),l.vertexLength+=4;let p=n.indexArray;p.emplaceBack(c,c+1),p.emplaceBack(c+1,c+2),p.emplaceBack(c+2,c+3),p.emplaceBack(c+3,c),l.primitiveLength+=4}addDebugCollisionBoxes(t,i,r,a){for(let n=t;n<i;n++){let t=this.collisionBoxArray.get(n),i=t.x1,o=t.y1,s=t.x2,l=t.y2;this.addCollisionDebugVertices(i,o,s,l,a?this.textCollisionBox:this.iconCollisionBox,t.anchorPoint,r)}}generateCollisionDebugBuffers(){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new uV(oU,cw.members,oW),this.iconCollisionBox=new uV(oU,cw.members,oW);for(let t=0;t<this.symbolInstances.length;t++){let i=this.symbolInstances.get(t);this.addDebugCollisionBoxes(i.textBoxStartIndex,i.textBoxEndIndex,i,!0),this.addDebugCollisionBoxes(i.verticalTextBoxStartIndex,i.verticalTextBoxEndIndex,i,!0),this.addDebugCollisionBoxes(i.iconBoxStartIndex,i.iconBoxEndIndex,i,!1),this.addDebugCollisionBoxes(i.verticalIconBoxStartIndex,i.verticalIconBoxEndIndex,i,!1)}}_deserializeCollisionBoxesForSymbol(t,i,r,a,n,o,s,l,c){let u={};for(let a=i;a<r;a++){let i=t.get(a);u.textBox={x1:i.x1,y1:i.y1,x2:i.x2,y2:i.y2,anchorPointX:i.anchorPointX,anchorPointY:i.anchorPointY},u.textFeatureIndex=i.featureIndex;break}for(let i=a;i<n;i++){let r=t.get(i);u.verticalTextBox={x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2,anchorPointX:r.anchorPointX,anchorPointY:r.anchorPointY},u.verticalTextFeatureIndex=r.featureIndex;break}for(let i=o;i<s;i++){let r=t.get(i);u.iconBox={x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2,anchorPointX:r.anchorPointX,anchorPointY:r.anchorPointY},u.iconFeatureIndex=r.featureIndex;break}for(let i=l;i<c;i++){let r=t.get(i);u.verticalIconBox={x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2,anchorPointX:r.anchorPointX,anchorPointY:r.anchorPointY},u.verticalIconFeatureIndex=r.featureIndex;break}return u}deserializeCollisionBoxes(t){this.collisionArrays=[];for(let i=0;i<this.symbolInstances.length;i++){let r=this.symbolInstances.get(i);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t,r.textBoxStartIndex,r.textBoxEndIndex,r.verticalTextBoxStartIndex,r.verticalTextBoxEndIndex,r.iconBoxStartIndex,r.iconBoxEndIndex,r.verticalIconBoxStartIndex,r.verticalIconBoxEndIndex))}}hasTextData(){return this.text.segments.get().length>0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(t,i){let r=t.placedSymbolArray.get(i),a=r.vertexStartIndex+4*r.numGlyphs;for(let i=r.vertexStartIndex;i<a;i+=4)t.indexArray.emplaceBack(i,i+2,i+1),t.indexArray.emplaceBack(i+1,i+2,i+3)}getSortedSymbolIndexes(t){if(this.sortedAngle===t&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;let i=Math.sin(t),r=Math.cos(t),a=[],n=[],o=[];for(let t=0;t<this.symbolInstances.length;++t){o.push(t);let s=this.symbolInstances.get(t);a.push(0|Math.round(i*s.anchorX+r*s.anchorY)),n.push(s.featureIndex)}return o.sort((t,i)=>a[t]-a[i]||n[i]-n[t]),o}addToSortKeyRanges(t,i){let r=this.sortKeyRanges[this.sortKeyRanges.length-1];r?.sortKey===i?r.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:i,symbolInstanceStart:t,symbolInstanceEnd:t+1})}sortFeatures(t){if(this.sortFeaturesByY&&this.sortedAngle!==t&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){for(let i of(this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[],this.symbolInstanceIndexes)){let t=this.symbolInstances.get(i);this.featureSortOrder.push(t.featureIndex);let r=[t.rightJustifiedTextSymbolIndex,t.centerJustifiedTextSymbolIndex,t.leftJustifiedTextSymbolIndex];for(let t=0;t<r.length;t++){let i=r[t];i>=0&&r.indexOf(i)===t&&this.addIndicesForPlacedSymbol(this.text,i)}t.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,t.verticalPlacedTextSymbolIndex),t.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,t.placedIconSymbolIndex),t.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,t.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}};nT("SymbolBucket",uU,{omit:["layers","collisionBoxArray","features","compareText"]});var uG={get paint(){return w||=new nH({"icon-opacity":new nU(tK.paint_symbol["icon-opacity"],"icon-opacity"),"icon-color":new nU(tK.paint_symbol["icon-color"],"icon-color"),"icon-halo-color":new nU(tK.paint_symbol["icon-halo-color"],"icon-halo-color"),"icon-halo-width":new nU(tK.paint_symbol["icon-halo-width"],"icon-halo-width"),"icon-halo-blur":new nU(tK.paint_symbol["icon-halo-blur"],"icon-halo-blur"),"icon-translate":new nV(tK.paint_symbol["icon-translate"],"icon-translate"),"icon-translate-anchor":new nV(tK.paint_symbol["icon-translate-anchor"],"icon-translate-anchor"),"text-opacity":new nU(tK.paint_symbol["text-opacity"],"text-opacity"),"text-color":new nU(tK.paint_symbol["text-color"],"text-color",{runtimeType:t3,getOverride:t=>t.textColor,hasOverride:t=>!!t.textColor}),"text-halo-color":new nU(tK.paint_symbol["text-halo-color"],"text-halo-color"),"text-halo-width":new nU(tK.paint_symbol["text-halo-width"],"text-halo-width"),"text-halo-blur":new nU(tK.paint_symbol["text-halo-blur"],"text-halo-blur"),"text-translate":new nV(tK.paint_symbol["text-translate"],"text-translate"),"text-translate-anchor":new nV(tK.paint_symbol["text-translate-anchor"],"text-translate-anchor")})},get layout(){return x||=new nH({"symbol-placement":new nV(tK.layout_symbol["symbol-placement"],"symbol-placement"),"symbol-spacing":new nV(tK.layout_symbol["symbol-spacing"],"symbol-spacing"),"symbol-avoid-edges":new nV(tK.layout_symbol["symbol-avoid-edges"],"symbol-avoid-edges"),"symbol-sort-key":new nU(tK.layout_symbol["symbol-sort-key"],"symbol-sort-key"),"symbol-z-order":new nV(tK.layout_symbol["symbol-z-order"],"symbol-z-order"),"icon-allow-overlap":new nV(tK.layout_symbol["icon-allow-overlap"],"icon-allow-overlap"),"icon-overlap":new nV(tK.layout_symbol["icon-overlap"],"icon-overlap"),"icon-ignore-placement":new nV(tK.layout_symbol["icon-ignore-placement"],"icon-ignore-placement"),"icon-optional":new nV(tK.layout_symbol["icon-optional"],"icon-optional"),"icon-rotation-alignment":new nU(tK.layout_symbol["icon-rotation-alignment"],"icon-rotation-alignment"),"icon-size":new nU(tK.layout_symbol["icon-size"],"icon-size"),"icon-text-fit":new nV(tK.layout_symbol["icon-text-fit"],"icon-text-fit"),"icon-text-fit-padding":new nV(tK.layout_symbol["icon-text-fit-padding"],"icon-text-fit-padding"),"icon-image":new nU(tK.layout_symbol["icon-image"],"icon-image"),"icon-rotate":new nU(tK.layout_symbol["icon-rotate"],"icon-rotate"),"icon-padding":new nU(tK.layout_symbol["icon-padding"],"icon-padding"),"icon-keep-upright":new nV(tK.layout_symbol["icon-keep-upright"],"icon-keep-upright"),"icon-offset":new nU(tK.layout_symbol["icon-offset"],"icon-offset"),"icon-anchor":new nU(tK.layout_symbol["icon-anchor"],"icon-anchor"),"icon-pitch-alignment":new nV(tK.layout_symbol["icon-pitch-alignment"],"icon-pitch-alignment"),"text-pitch-alignment":new nV(tK.layout_symbol["text-pitch-alignment"],"text-pitch-alignment"),"text-rotation-alignment":new nV(tK.layout_symbol["text-rotation-alignment"],"text-rotation-alignment"),"text-field":new nU(tK.layout_symbol["text-field"],"text-field"),"text-font":new nU(tK.layout_symbol["text-font"],"text-font"),"text-size":new nU(tK.layout_symbol["text-size"],"text-size"),"text-max-width":new nU(tK.layout_symbol["text-max-width"],"text-max-width"),"text-line-height":new nV(tK.layout_symbol["text-line-height"],"text-line-height"),"text-letter-spacing":new nU(tK.layout_symbol["text-letter-spacing"],"text-letter-spacing"),"text-justify":new nU(tK.layout_symbol["text-justify"],"text-justify"),"text-radial-offset":new nU(tK.layout_symbol["text-radial-offset"],"text-radial-offset"),"text-variable-anchor":new nV(tK.layout_symbol["text-variable-anchor"],"text-variable-anchor"),"text-variable-anchor-offset":new nU(tK.layout_symbol["text-variable-anchor-offset"],"text-variable-anchor-offset"),"text-anchor":new nU(tK.layout_symbol["text-anchor"],"text-anchor"),"text-max-angle":new nV(tK.layout_symbol["text-max-angle"],"text-max-angle"),"text-writing-mode":new nV(tK.layout_symbol["text-writing-mode"],"text-writing-mode"),"text-rotate":new nU(tK.layout_symbol["text-rotate"],"text-rotate"),"text-padding":new nV(tK.layout_symbol["text-padding"],"text-padding"),"text-keep-upright":new nV(tK.layout_symbol["text-keep-upright"],"text-keep-upright"),"text-transform":new nU(tK.layout_symbol["text-transform"],"text-transform"),"text-offset":new nU(tK.layout_symbol["text-offset"],"text-offset"),"text-allow-overlap":new nV(tK.layout_symbol["text-allow-overlap"],"text-allow-overlap"),"text-overlap":new nV(tK.layout_symbol["text-overlap"],"text-overlap"),"text-ignore-placement":new nV(tK.layout_symbol["text-ignore-placement"],"text-ignore-placement"),"text-optional":new nV(tK.layout_symbol["text-optional"],"text-optional"),"symbol-height-offset":new nU(tK.layout_symbol["symbol-height-offset"],"symbol-height-offset"),"symbol-height-anchor":new nV(tK.layout_symbol["symbol-height-anchor"],"symbol-height-anchor")})}},uq=class{constructor(t){if(void 0===t.property.overrides)throw Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=t.property.overrides?t.property.overrides.runtimeType:tQ,this.defaultValue=t}evaluate(t){if(t.formattedSection){let i=this.defaultValue.property.overrides;if(i?.hasOverride(t.formattedSection))return i.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default}eachChild(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}};nT("FormatSectionOverride",uq,{omit:["defaultValue"]});var uZ=class t extends nY{constructor(t,i){super(t,uG,i)}recalculate(t,i){super.recalculate(t,i);let r=this.layout.get("icon-rotation-alignment");if(("constant"!==r.value.kind||"auto"===r.value.value)&&(this.layout._values["icon-rotation-alignment"]=new nB(r.property,{kind:"constant",value:"point"===this.layout.get("symbol-placement")?"viewport":"map"},r.parameters)),"auto"===this.layout.get("text-rotation-alignment")&&("point"===this.layout.get("symbol-placement")?this.layout._values["text-rotation-alignment"]="viewport":this.layout._values["text-rotation-alignment"]="map"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]="map"===this.layout.get("text-rotation-alignment")?"map":"viewport"),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment").constantOr("viewport")),"point"===this.layout.get("symbol-placement")){let t=this.layout.get("text-writing-mode");if(t){let i=[];for(let r of t)i.includes(r)||i.push(r);this.layout._values["text-writing-mode"]=i}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(t,i,r,a){var n;let o=this.layout.get(t).evaluate(i,{},r,a),s=this._unevaluatedLayout._values[t];return s.isDataDriven()||aA(s.value)||!o?o:(n=i.properties,o.replace(/{([^{}]+)}/g,(t,i)=>n&&i in n?String(n[i]):""))}createBucket(t){return new uU(t)}queryRadius(){return 0}queryIntersectsFeature(){throw Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let i of uG.paint.overridableProperties){if(!t.hasPaintOverride(this.layout,i))continue;let r=this.paint.get(i),a=new ak(new uq(r),`layers[${this.id}].paint.${r.property.name}`,r.property.specification),n=null;n="constant"===r.value.kind||"source"===r.value.kind?new aE("source",a):new aM("composite",a,r.value.zoomStops),this.paint._values[i]=new nB(r.property,n,r.parameters)}}_handleOverridablePaintPropertyUpdate(i,r,a){return!(!this.layout||r.isDataDriven()||a.isDataDriven())&&t.hasPaintOverride(this.layout,i)}static hasPaintOverride(t,i){let r=t.get("text-field"),a=uG.paint.properties[i],n=!1,o=t=>{for(let i of t)if(a.overrides?.hasOverride(i)){n=!0;return}};if("constant"===r.value.kind&&r.value.value instanceof iR)o(r.value.value.sections);else if("source"===r.value.kind||"composite"===r.value.kind){let t=i=>{n||(i instanceof iY&&iW(i.value)===t7?o(i.value.sections):i instanceof i5?o(i.sections):i.eachChild(t))},i=r.value;i._styleExpression&&t(i._styleExpression.expression)}return n}},uH={get paint(){return k||=new nH({"background-color":new nV(tK.paint_background["background-color"],"background-color"),"background-pattern":new nq(tK.paint_background["background-pattern"],"background-pattern"),"background-opacity":new nV(tK.paint_background["background-opacity"],"background-opacity")})}},uW=class extends nY{constructor(t,i){super(t,uH,i)}};function uX(t){let i=[],r=t.id;return void 0===r&&i.push(new tJ(`layers.${r}`,null,'missing required property "id"')),void 0===t.render&&i.push(new tJ(`layers.${r}`,null,'missing required method "render"')),t.renderingMode&&"2d"!==t.renderingMode&&"3d"!==t.renderingMode&&i.push(new tJ(`layers.${r}`,null,'property "renderingMode" must be either "2d" or "3d"')),i}var uY=class extends nY{constructor(t,i){super(t,{},i),this.onAdd=t=>{this.implementation.onAdd&&this.implementation.onAdd(t,t.painter.context.gl)},this.onRemove=t=>{this.implementation.onRemove&&this.implementation.onRemove(t,t.painter.context.gl)},this.implementation=t}is3D(){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw Error("Custom layers cannot be serialized")}};function uK(t,i){if("custom"===t.type)return new uY(t,i);switch(t.type){case"background":return new uW(t,i);case"circle":return new s$(t,i);case"color-relief":return new s5(t,i);case"fill":return new lB(t,i);case"fill-extrusion":return new cs(t,i);case"heatmap":return new sK(t,i);case"hillshade":return new sQ(t,i);case"line":return new c_(t,i);case"raster":return new nJ(t,i);case"symbol":return new uZ(t,i)}}var uJ=class{constructor(t){this._methodToThrottle=t,this._triggered=!1,this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()}}trigger(){this._triggered||(this._triggered=!0,this._channel?.port1.postMessage(!0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}};let uQ={once:!0};var u1=class{constructor(t,i){this.target=t,this.mapId=i,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new uJ(()=>this.process()),this.subscription=tx(this.target,"message",t=>this.receive(t),!1),this.globalScope=tp(self)?t:window}registerMessageHandler(t,i){this.messageHandlers[t]=i}unregisterMessageHandler(t){delete this.messageHandlers[t]}
365sendAsync(t,i){return new Promise((r,a)=>{let n=Math.round(1e18*Math.random()).toString(36).substring(0,10),o=i?tx(i.signal,"abort",()=>{o?.unsubscribe(),delete this.resolveRejects[n];let r={id:n,type:"<cancel>",origin:location.origin,targetMapId:t.targetMapId,sourceMapId:this.mapId};this.target.postMessage(r),a(new tL(i.signal.reason))},uQ):null;this.resolveRejects[n]={resolve:t=>{o?.unsubscribe(),r(t)},reject:t=>{o?.unsubscribe(),a(t)}};let s=[],l={...t,id:n,sourceMapId:this.mapId,origin:location.origin,data:nE(t.data,s)};this.target.postMessage(l,{transfer:s})})}receive(t){let i=t.data,r=i.id,a=["file://","resource://android","null"],n=[i.origin,location.origin],o=i.origin===location.origin,s=n.some(t=>a.includes(t));if((o||s)&&!(i.targetMapId&&this.mapId!==i.targetMapId)){if("<cancel>"===i.type){delete this.tasks[r];let t=this.abortControllers[r];delete this.abortControllers[r],t&&t.abort();return}if(tp(self)||i.mustQueue){this.tasks[r]=i,this.taskQueue.push(r),this.invoker.trigger();return}this.processTask(r,i)}}process(){if(0===this.taskQueue.length)return;let t=this.taskQueue.shift(),i=this.tasks[t];delete this.tasks[t],this.taskQueue.length>0&&this.invoker.trigger(),i&&this.processTask(t,i)}async processTask(t,i){if("<response>"===i.type){let r=this.resolveRejects[t];if(delete this.resolveRejects[t],!r)return;i.error?r.reject(ej(nM(i.error))):r.resolve(nM(i.data));return}if(!this.messageHandlers[i.type])return void this.completeTask(t,null,null);let r=nM(i.data),a=new AbortController;this.abortControllers[t]=a;try{let n=await this.messageHandlers[i.type](i.sourceMapId,r,a);this.completeTask(t,null,n)}catch(i){this.completeTask(t,ej(i))}}completeTask(t,i,r){let a=[];delete this.abortControllers[t];let n={id:t,type:"<response>",sourceMapId:this.mapId,origin:location.origin,error:i?nE(i):null,data:nE(r,a)};this.target.postMessage(n,{transfer:a})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}};function u0(t,i){let{x:r,y:a}=l4.fromLngLat(i);return!(t<0||t>25||a<0||a>=1||r<0||r>=1)}var u2=class{constructor(t,i,r){if(t<0||t>25||r<0||r>=2**t||i<0||i>=2**t)throw Error(`x=${i}, y=${r}, z=${t} outside of bounds. 0<=x<${2**t}, 0<=y<${2**t} 0<=z<=25 `);this.z=t,this.x=i,this.y=r,this.key=u4(0,t,t,i,r)}equals(t){return this.z===t.z&&this.x===t.x&&this.y===t.y}url(t,i,r){var a,n,o;let s,l,c=(a=this.x,n=this.y,o=this.z,s=u8(256*a,256*(n=2**o-n-1),o),l=u8((a+1)*256,(n+1)*256,o),`${s[0]},${s[1]},${l[0]},${l[1]}`),u=function(t,i,r){let a="";for(let n=t;n>0;n--){let t=1<<n-1;a+=(i&t?1:0)+(r&t?2:0)}return a}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace(/{prefix}/g,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(/{z}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String("tms"===r?2**this.z-this.y-1:this.y)).replace(/{ratio}/g,i>1?"@2x":"").replace(/{quadkey}/g,u).replace(/{bbox-epsg-3857}/g,c)}isChildOf(t){let i=this.z-t.z;return i>0&&t.x===this.x>>i&&t.y===this.y>>i}getTilePoint(t){let i=2**this.z;return new R((t.x*i-this.x)*8192,(t.y*i-this.y)*8192)}toString(){return`${this.z}/${this.x}/${this.y}`}},u3=class{constructor(t,i){this.wrap=t,this.canonical=i,this.key=u4(t,i.z,i.z,i.x,i.y)}},u5=class t{constructor(t,i,r,a,n){if(this.terrainRttPosMatrix32f=null,t<r)throw Error(`overscaledZ should be >= z; overscaledZ = ${t}; z = ${r}`);this.overscaledZ=t,this.wrap=i,this.canonical=new u2(r,+a,+n),this.key=u4(i,t,r,a,n)}clone(){return new t(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(t){return this.overscaledZ===t.overscaledZ&&this.wrap===t.wrap&&this.canonical.equals(t.canonical)}scaledTo(i){if(i>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${i}; overscaledZ = ${this.overscaledZ}`);let r=this.canonical.z-i;return i>this.canonical.z?new t(i,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new t(i,this.wrap,i,this.canonical.x>>r,this.canonical.y>>r)}isOverscaled(){return this.overscaledZ>this.canonical.z}calculateScaledKey(t,i){if(t>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${t}; overscaledZ = ${this.overscaledZ}`);let r=this.canonical.z-t;return t>this.canonical.z?u4(this.wrap*i,t,this.canonical.z,this.canonical.x,this.canonical.y):u4(this.wrap*i,t,t,this.canonical.x>>r,this.canonical.y>>r)}isChildOf(t){if(t.wrap!==this.wrap||this.overscaledZ-t.overscaledZ<=0)return!1;
vendor: 5,152 bytes, line 365
365if(0===t.overscaledZ)return this.overscaledZ>0;let i=this.canonical.z-t.canonical.z;return!(i<0)&&t.canonical.x===this.canonical.x>>i&&t.canonical.y===this.canonical.y>>i}children(i){if(this.overscaledZ>=i)return[new t(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let r=this.canonical.z+1,a=2*this.canonical.x,n=2*this.canonical.y;return[new t(r,this.wrap,r,a,n),new t(r,this.wrap,r,a+1,n),new t(r,this.wrap,r,a,n+1),new t(r,this.wrap,r,a+1,n+1)]}isLessThan(t){return this.wrap<t.wrap||!(this.wrap>t.wrap)&&(this.overscaledZ<t.overscaledZ||!(this.overscaledZ>t.overscaledZ)&&(this.canonical.x<t.canonical.x||!(this.canonical.x>t.canonical.x)&&this.canonical.y<t.canonical.y))}wrapped(){return new t(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(i){return new t(this.overscaledZ,i,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return 2**(this.overscaledZ-this.canonical.z)}toUnwrapped(){return new u3(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}getTilePoint(t){return this.canonical.getTilePoint(new l4(t.x-this.wrap,t.y))}normalizeCoordinates(i,r,a=8192){if(i>=0&&i<a&&r>=0&&r<a)return{tileID:this,x:i,y:r};let n=Math.floor(i/a),o=Math.floor(r/a),s=this.canonical.z,l=1<<s,c=this.canonical.y+o;if(c<0||c>=l)return null;let u=this.canonical.x+n,h=this.wrap;return u<0?(h-=Math.ceil(-u/l),u=(u%l+l)%l):u>=l&&(h+=Math.floor(u/l),u%=l),{tileID:new t(this.overscaledZ,h,s,u,c),x:i-n*a,y:r-o*a}}};function u4(t,i,r,a,n){(t*=2)<0&&(t=-1*t-1);let o=1<<r;return(o*o*t+o*n+a).toString(36)+r.toString(36)+i.toString(36)}let u6=6378137*Math.PI;function u8(t,i,r){let a=2*u6/256/2**r;return[t*a-u6,i*a-u6]}function u7(t,i){let r=Math.abs(2*t.wrap)-(t.wrap<0),a=Math.abs(2*i.wrap)-(i.wrap<0);return t.overscaledZ-i.overscaledZ||a-r||i.canonical.y-t.canonical.y||i.canonical.x-t.canonical.x}nT("CanonicalTileID",u2),nT("OverscaledTileID",u5,{omit:["terrainRttPosMatrix32f"]});let u9="_geojsonTileLayer";var he=class{constructor(t){this._stringToNumber={},this._numberToString=[];for(let i=0;i<t.length;i++){let r=t[i];this._stringToNumber[r]=i,this._numberToString[i]=r}}encode(t){return this._stringToNumber[t]}decode(t){if(t>=this._numberToString.length)throw Error(`Out of bounds. Index requested n=${t} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[t]}},ht=class{constructor(t,i,r,a,n){for(let n in this.type="Feature",this._vectorTileFeature=t,this._x=r,this._y=a,this._z=i,t.properties)"string"==typeof t.properties[n]&&t.properties[n].startsWith("__$json__:")&&(t.properties[n]=JSON.parse(t.properties[n].slice(10)));this.properties=t.properties,this.id=n}projectPoint(t,i,r,a){return[(t.x+i)*360/a-180,360/Math.PI*Math.atan(Math.exp((1-(t.y+r)*2/a)*Math.PI))-90]}projectLine(t,i,r,a){return t.map(t=>this.projectPoint(t,i,r,a))}get geometry(){if(this._geometry)return this._geometry;let t=this._vectorTileFeature,i=t.extent*2**this._z,r=t.extent*this._x,a=t.extent*this._y,n=t.loadGeometry();switch(t.type){case 1:{let t=[];for(let i of n)t.push(i[0]);let o=this.projectLine(t,r,a,i);this._geometry=1===t.length?{type:"Point",coordinates:o[0]}:{type:"MultiPoint",coordinates:o};break}case 2:{let t=n.map(t=>this.projectLine(t,r,a,i));this._geometry=1===t.length?{type:"LineString",coordinates:t[0]}:{type:"MultiLineString",coordinates:t};break}case 3:{let t=lH(n),o=[];for(let n of t)o.push(n.map(t=>this.projectLine(t,r,a,i)));this._geometry=1===o.length?{type:"Polygon",coordinates:o[0]}:{type:"MultiPolygon",coordinates:o};break}default:throw Error(`unknown feature type: ${t.type}`)}return this._geometry}set geometry(t){this._geometry=t}toJSON(){let t={geometry:this.geometry};for(let i in this)"_geometry"!==i&&"_vectorTileFeature"!==i&&"_x"!==i&&"_y"!==i&&"_z"!==i&&(t[i]=this[i]);return t}},hi=class{constructor(t,i,r){this._name=t,this.dataBuffer=i,"number"==typeof r?this._size=r:(this.nullabilityBuffer=r,this._size=r.size())}getValue(t){return this.nullabilityBuffer&&!this.nullabilityBuffer.get(t)?null:this.getValueFromBuffer(t)}has(t){return this.nullabilityBuffer?.get(t)||!this.nullabilityBuffer}get name(){return this._name}get size(){return this._size}},hr=class extends hi{},ha=class extends hr{getValueFromBuffer(t){return this.dataBuffer[t]}},hn=class extends hr{getValueFromBuffer(t){return this.dataBuffer[t]}},ho=class extends hi{constructor(t,i,r,a){super(t,i,a),this.delta=r}},hs=class extends ho{constructor(t,i,r,a,n){super(t,n?Int32Array.of(i):Uint32Array.of(i),r,a)}getValueFromBuffer(t){return this.dataBuffer[0]+t*this.delta}},hl=class extends hi{constructor(t,i,r,a){super(t,a?Int32Array.of(i):Uint32Array.of(i),r)}getValueFromBuffer(t){return this.dataBuffer[0]}},hc=class{constructor(t,i,r,a,n=4096){if(this._name=t,this._geometryVector=i,this._idVector=r,this._propertyVectors=a,this._extent=n,0===t.length)throw Error("Missing layer name")}get name(){return this._name}get idVector(){return this._idVector}get geometryVector(){return this._geometryVector}get propertyVectors(){return this._propertyVectors??[]}
365getPropertyVector(t){return this.propertyVectorsMap||=new Map(this.propertyVectors.map(t=>[t.name,t])),this.propertyVectorsMap.get(t)}get numFeatures(){return this.geometryVector.numGeometries}get extent(){return this._extent}getFeatures(){let t=[],i=this.geometryVector.getGeometries();for(let r=0;r<this.numFeatures;r++){let a;if(this.idVector){let t=this.idVector.getValue(r);null!==t&&(a=this.containsMaxSafeIntegerValues(this.idVector)?Number(t):t)}let n={coordinates:i[r],type:this.geometryVector.geometryType(r)},o={};for(let t of this.propertyVectors){if(!t)continue;let i=t.name,a=t.getValue(r);null!==a&&(o[i]=a)}t.push({id:a,geometry:n,properties:o})}return t}containsMaxSafeIntegerValues(t){return t instanceof ha||t instanceof hl||t instanceof hs||t instanceof hn}},hu,hh,hd,hf,hp=class{constructor(t){this.value=t}get(){return this.value}set(t){this.value=t}increment(){return this.value++}add(t){this.value+=t}};(dw=hf||={}).NONE="NONE",dw.DELTA="DELTA",dw.COMPONENTWISE_DELTA="COMPONENTWISE_DELTA",dw.RLE="RLE",dw.MORTON="MORTON",(dk=dI||={}).NONE="NONE",dk.FAST_PFOR="FAST_PFOR",dk.VARINT="VARINT";let hm=new Uint32Array(33);hm[0]=0;for(let t=1;t<=32;t++)hm[t]=32===t?0xffffffff:0xffffffff>>>32-t;let hg=function(){var t;if(!Number.isFinite(65536))return 65536;let i=(t=Math.floor(65536))-t%256;return 0===i?256:i}(),hy=3*hg/256+hg|0;function h_(){let t=new Uint8Array(hy);return{dataToBePacked:Array(33),dataPointers:new Int32Array(33),byteContainer:t,byteContainerI32:new Int32Array(t.buffer,t.byteOffset,t.byteLength>>>2),exceptionSizes:new Int32Array(33)}}function hv(t,i,r){let a=new Uint32Array(r),n=0,o=i.get();for(let i=0;i<a.length;i++){let i=t[o++],r=127&i;if(i<128||(r|=(127&(i=t[o++]))<<7,i<128)||(r|=(127&(i=t[o++]))<<14,i<128)||(r|=(127&(i=t[o++]))<<21,i<128)){a[n++]=r;continue}r|=(15&(i=t[o++]))<<28,a[n++]=r}return i.set(o),a}function hb(t,i,r){let a=new BigUint64Array(r);for(let r=0;r<a.length;r++)a[r]=function(t,i){let r=0n,a=0,n=i.get();for(;n<t.length;){let i=t[n++];if(r|=BigInt(127&i)<<BigInt(a),!(128&i))break;if((a+=7)>=64)throw Error("Varint too long")}return i.set(n),r}(t,i);return a}function hx(t){return t>>>1^-(1&t)}function hw(t){return t>>1n^-(1n&t)}function hk(t){return t%2==1?-((t+1)/2):t/2}function hT(t,i,r){if(void 0===r){r=0;for(let a=0;a<i;a++)r+=t[a]}let a=new Uint32Array(r),n=0;for(let r=0;r<i;r++){let o=t[r],s=t[r+i];a.fill(s,n,n+o),n+=o}return a}function hS(t,i,r){if(void 0===r){r=0;for(let a=0;a<i;a++)r+=Number(t[a])}let a=new BigUint64Array(r),n=0;for(let r=0;r<i;r++){let o=Number(t[r]),s=t[r+i];a.fill(s,n,n+o),n+=o}return a}function hA(t,i,r){let a=new Float64Array(r),n=0;for(let r=0;r<i;r++){let o=t[r],s=t[r+i];a.fill(s,n,n+o),n+=o}return a}function hC(t){let i=new Int32Array(t.length);i[0]=hx(t[0]);let r=t.length/4*4,a=1;if(r>=4)for(;a<r-4;a+=4){let r=t[a],n=t[a+1],o=t[a+2],s=t[a+3];i[a]=hx(r)+i[a-1],i[a+1]=hx(n)+i[a],i[a+2]=hx(o)+i[a+1],i[a+3]=hx(s)+i[a+2]}for(;a!==t.length;++a)i[a]=hx(t[a])+i[a-1];return i}function hE(t){let i=new BigInt64Array(t.length);i[0]=hw(t[0]);let r=t.length/4*4,a=1;if(r>=4)for(;a<r-4;a+=4){let r=t[a],n=t[a+1],o=t[a+2],s=t[a+3];i[a]=hw(r)+i[a-1],i[a+1]=hw(n)+i[a],i[a+2]=hw(o)+i[a+1],i[a+3]=hw(s)+i[a+2]}for(;a!==i.length;++a)i[a]=hw(t[a])+i[a-1];return i}function hM(t){let i=t.length/4*4,r=1;if(i>=4)for(let a=t[0];r<i-4;r+=4)a=t[r]+=a,a=t[r+1]+=a,a=t[r+2]+=a,a=t[r+3]+=a;for(;r!==t.length;)t[r]+=t[r-1],++r}function hP(t,i,r,a){if(t.length<2)return new Int32Array(t);let n=new Int32Array(t.length),o=hx(t[0]),s=hx(t[1]);n[0]=hD(Math.round(o*i),r,a),n[1]=hD(Math.round(s*i),r,a);let l=t.length/16,c=2;if(l>=4)for(;c<l-4;c+=4){let l=t[c],u=t[c+1],h=hx(l)+o,d=hx(u)+s;n[c]=hD(Math.round(h*i),r,a),n[c+1]=hD(Math.round(d*i),r,a);let f=t[c+2],p=t[c+3];o=hx(f)+h,s=hx(p)+d,n[c+2]=hD(Math.round(o*i),r,a),n[c+3]=hD(Math.round(s*i),r,a)}for(;c!==t.length;c+=2)o+=hx(t[c]),s+=hx(t[c+1]),n[c]=hD(Math.round(o*i),r,a),n[c+1]=hD(Math.round(s*i),r,a);return n}function hD(t,i,r){return Math.min(r,Math.max(i,t))}function hI(t){let i=new Uint32Array(t.length);i[0]=hx(t[0])>>>0;for(let r=1;r<t.length;r++)i[r]=i[r-1]+hx(t[r])>>>0;return i}function hz(t){let i=new BigUint64Array(t.length);i[0]=BigInt.asUintN(64,hw(t[0]));for(let r=1;r<t.length;r++)i[r]=BigInt.asUintN(64,i[r-1]+hw(t[r]));return i}(dT=dz||={}).PRESENT="PRESENT",dT.DATA="DATA",dT.OFFSET="OFFSET",dT.LENGTH="LENGTH",(dS=dL||={}).NONE="NONE",dS.SINGLE="SINGLE",dS.SHARED="SHARED",dS.VERTEX="VERTEX",dS.MORTON="MORTON",dS.FSST="FSST",(dA=dF||={}).VERTEX="VERTEX",dA.INDEX="INDEX",dA.STRING="STRING",dA.KEY="KEY",(dC=dR||={}).VAR_BINARY="VAR_BINARY",dC.GEOMETRIES="GEOMETRIES",dC.PARTS="PARTS",dC.RINGS="RINGS",dC.TRIANGLES="TRIANGLES",dC.SYMBOL="SYMBOL",dC.DICTIONARY="DICTIONARY";
365let hL=[dz.PRESENT,dz.DATA,dz.OFFSET,dz.LENGTH],hF=[hf.NONE,hf.DELTA,hf.COMPONENTWISE_DELTA,hf.RLE,hf.MORTON],hR=[dI.NONE,dI.FAST_PFOR,dI.VARINT],hO=[dL.NONE,dL.SINGLE,dL.SHARED,dL.VERTEX,dL.MORTON,dL.FSST],hB=[dF.VERTEX,dF.INDEX,dF.STRING,dF.KEY],hj=[dR.VAR_BINARY,dR.GEOMETRIES,dR.PARTS,dR.RINGS,dR.TRIANGLES,dR.SYMBOL,dR.DICTIONARY];function hN(t,i){var r,a;let n,o,s=function(t,i){let r=t[i.get()],a=hL[r>>4],n={};switch(a){case dz.DATA:n={dictionaryType:hO[15&r]};break;case dz.OFFSET:n={offsetType:hB[15&r]};break;case dz.LENGTH:n={lengthType:hj[15&r]}}i.increment();let o=t[i.get()],s=hF[o>>5],l=hF[o>>2&7],c=hR[3&o];i.increment();let u=hv(t,i,2),h=u[0];return{physicalStreamType:a,logicalStreamType:n,logicalLevelTechnique1:s,logicalLevelTechnique2:l,physicalLevelTechnique:c,numValues:h,byteLength:u[1],decompressedCount:h}}(t,i);return s.logicalLevelTechnique1===hf.MORTON?(r=s,n=hv(t,i,2),{physicalStreamType:r.physicalStreamType,logicalStreamType:r.logicalStreamType,logicalLevelTechnique1:r.logicalLevelTechnique1,logicalLevelTechnique2:r.logicalLevelTechnique2,physicalLevelTechnique:r.physicalLevelTechnique,numValues:r.numValues,byteLength:r.byteLength,decompressedCount:r.decompressedCount,numBits:n[0],coordinateShift:n[1]}):(hf.RLE===s.logicalLevelTechnique1||hf.RLE===s.logicalLevelTechnique2)&&dI.NONE!==s.physicalLevelTechnique?(a=s,o=hv(t,i,2),{physicalStreamType:a.physicalStreamType,logicalStreamType:a.logicalStreamType,logicalLevelTechnique1:a.logicalLevelTechnique1,logicalLevelTechnique2:a.logicalLevelTechnique2,physicalLevelTechnique:a.physicalLevelTechnique,numValues:a.numValues,byteLength:a.byteLength,decompressedCount:o[1],runs:o[0],numRleValues:o[1]}):s}(dE=dO||={})[dE.FLAT=0]="FLAT",dE[dE.CONST=1]="CONST",dE[dE.SEQUENCE=2]="SEQUENCE",dE[dE.DICTIONARY=3]="DICTIONARY",dE[dE.FSST_DICTIONARY=4]="FSST_DICTIONARY";var h$=class{constructor(t,i){this.values=t,this._size=i}get(t){let i=Math.floor(t/8);return(this.values[i]>>t%8&1)==1}set(t,i){let r=Math.floor(t/8);this.values[r]=this.values[r]|!!i<<t%8}getInt(t){let i=Math.floor(t/8);return this.values[i]>>t%8&1}size(){return this._size}getBuffer(){return this.values}};function hV(t,i,r){if(!i)return t;let a=i.size(),n=new t.constructor(a),o=0;for(let s=0;s<a;s++)n[s]=i.get(s)?t[o++]:r;return n}function hU(t,i,r){for(let a=0;a<t;a++){let t=hN(i,r);r.add(t.byteLength)}}function hG(t,i,r,a,n){let o=function(t,i,r,a){let n=new Uint8Array(i),o=0,s=a.get()+r;for(;o<i&&!(a.get()>=s);){let r=t[a.increment()];if(r<=127){let s=r+3,l=t[a.increment()],c=Math.min(o+s,i);n.fill(l,o,c),o=c}else{let s=256-r;for(let r=0;r<s&&o<i;r++)n[o++]=t[a.increment()]}}return a.set(s),n}(t,Math.ceil(i/8),r,a);return n?function(t,i,r){if(!r)return t;let a=r.size(),n=new h$(t,i),o=new h$(new Uint8Array(Math.ceil(a/8)),a),s=0;for(let t=0;t<a;t++){let i=!!r.get(t)&&n.get(s++);o.set(t,i)}return o.getBuffer()}(o,i,n):o}function hq(t,i,r,a){let n=i.get(),o=n+r*Float32Array.BYTES_PER_ELEMENT,s=new Float32Array(new Uint8Array(t.subarray(n,o)).buffer);return i.set(o),a?hV(s,a,0):s}function hZ(t,i,r,a){let n=i.get(),o=n+r*Float64Array.BYTES_PER_ELEMENT,s=new Float64Array(new Uint8Array(t.subarray(n,o)).buffer);return i.set(o),a?hV(s,a,0):s}let hH=new TextDecoder;function hW(t,i,r){return r-i>=12?hH.decode(t.subarray(i,r)):function(t,i,r){let a="",n=i;for(;n<r;){let i,o,s,l=t[n],c=null,u=l>239?4:l>223?3:l>191?2:1;if(n+u>r)break;1===u?l<128&&(c=l):2===u?(192&(i=t[n+1]))==128&&(c=(31&l)<<6|63&i)<=127&&(c=null):3===u?(i=t[n+1],o=t[n+2],(192&i)==128&&(192&o)==128&&((c=(15&l)<<12|(63&i)<<6|63&o)<=2047||c>=55296&&c<=57343)&&(c=null)):4===u&&(i=t[n+1],o=t[n+2],s=t[n+3],(192&i)==128&&(192&o)==128&&(192&s)==128&&((c=(15&l)<<18|(63&i)<<12|(63&o)<<6|63&s)<=65535||c>=1114112)&&(c=null)),null===c?(c=65533,u=1):c>65535&&(c-=65536,a+=String.fromCharCode(c>>>10&1023|55296),c=56320|1023&c),a+=String.fromCharCode(c),n+=u}return a}(t,i,r)}function hX(t,i,r,a,n){let o;var s=hJ(t,i,r),l=r,c=a,u=n;switch(l.logicalLevelTechnique1){case hf.DELTA:if(l.logicalLevelTechnique2===hf.RLE){if(!u)return function(t,i,r){let a=new Int32Array(r),n=0,o=0;for(let r=0;r<i;r++){let s=t[r],l=hx(t[r+i]);for(let t=0;t<s;t++)o+=l,a[n++]=o}return a}(s,l.runs,l.numRleValues);o=hC(s=hT(s,l.runs,l.numRleValues))}else o=hC(s);break;case hf.RLE:o=function(t,i,r){if(void 0===r){r=0;for(let a=0;a<i;a++)r+=t[a]}let a=new Int32Array(r),n=0;for(let r=0;r<i;r++){let o=t[r],s=t[r+i];s=hx(s),a.fill(s,n,n+o),n+=o}return a}(s,l.runs,l.numRleValues);break;case hf.MORTON:hM(s),o=new Int32Array(s);break;case hf.COMPONENTWISE_DELTA:if(c&&!u)return hP(s,c.scale,c.min,c.max);o=function(t){if(t.length<2)return new Int32Array(t);let i=new Int32Array(t.length);i[0]=hx(t[0]),i[1]=hx(t[1]);let r=t.length/4*4,a=2;if(r>=4)for(;a<r-4;a+=4){let r=t[a],n=t[a+1],o=t[a+2],s=t[a+3];
vendor: 4,392 bytes, line 365
365i[a]=hx(r)+i[a-2],i[a+1]=hx(n)+i[a-1],i[a+2]=hx(o)+i[a],i[a+3]=hx(s)+i[a+1]}for(;a!==t.length;a+=2)i[a]=hx(t[a])+i[a-2],i[a+1]=hx(t[a+1])+i[a-1];return i}(s);break;case hf.NONE:o=function(t){let i=new Int32Array(t.length);for(let r=0;r<t.length;r++)i[r]=hx(t[r]);return i}(s);break;default:throw Error(`The specified Logical level technique is not supported: ${l.logicalLevelTechnique1}`)}return u?hV(o,u,0):o}function hY(t,i,r,a,n){return function(t,i,r,a){let n;switch(i.logicalLevelTechnique1){case hf.DELTA:n=i.logicalLevelTechnique2===hf.RLE?hI(hT(t,i.runs,i.numRleValues)):hI(t);break;case hf.RLE:n=hT(t,i.runs,i.numRleValues);break;case hf.MORTON:hM(t),n=t;break;case hf.COMPONENTWISE_DELTA:var o;n=r&&!a?(o=r.scale,new Uint32Array(hP(t,o,r.min,r.max))):function(t){if(t.length<2)return new Uint32Array(t);let i=new Uint32Array(t.length);i[0]=hx(t[0])>>>0,i[1]=hx(t[1])>>>0;for(let r=2;r<t.length;r+=2)i[r]=i[r-2]+hx(t[r])>>>0,i[r+1]=i[r-1]+hx(t[r+1])>>>0;return i}(t);break;case hf.NONE:n=t;break;default:throw Error(`The specified Logical level technique is not supported: ${i.logicalLevelTechnique1}`)}return a?hV(n,a,0):n}(hJ(t,i,r),r,a,n)}function hK(t,i,r){return function(t,i){if(i.logicalLevelTechnique1===hf.DELTA&&i.logicalLevelTechnique2===hf.NONE){let i=new Int32Array(t.length+1);i[0]=0,i[1]=hx(t[0]);let r=i[1];for(let a=2;a!==i.length;++a)r+=hx(t[a-1]),i[a]=i[a-1]+r;return new Uint32Array(i)}if(i.logicalLevelTechnique1===hf.RLE&&i.logicalLevelTechnique2===hf.NONE)return function(t,i,r){let a=new Uint32Array(r+1);a[0]=0;let n=1,o=a[0];for(let r=0;r<i;r++){let s=t[r],l=t[r+i];for(let t=n;t<n+s;t++)a[t]=l+o,o=a[t];n+=s}return a}(t,i.runs,i.numRleValues);if(i.logicalLevelTechnique1===hf.NONE&&i.logicalLevelTechnique2===hf.NONE){let r=0;for(let i=0;i<t.length;i++)t[i]+=r,r=t[i];let a=new Uint32Array(i.numValues+1);return a[0]=0,a.set(t,1),a}if(i.logicalLevelTechnique1===hf.DELTA&&i.logicalLevelTechnique2===hf.RLE){let r=function(t,i,r){let a=new Int32Array(r+1);a[0]=0;let n=1,o=a[0];for(let r=0;r<i;r++){let s=t[r],l=t[r+i];l=hx(l);for(let t=n;t<n+s;t++)a[t]=l+o,o=a[t];n+=s}return a}(t,i.runs,i.numRleValues);return hM(r),new Uint32Array(r)}throw Error("Only delta encoding is supported for transforming length to offset streams yet.")}(hJ(t,i,r),r)}function hJ(t,i,r){let a=r.physicalLevelTechnique;switch(a){case dI.FAST_PFOR:var n,o;return n=r.numValues,function(t,i,r,a,n){let o=a.get();if(3&r)throw Error(`FastPFOR: invalid encodedByteLength=${r} at offset=${o} (encodedBytes.length=${t.length}; expected a multiple of 4 bytes for an int32 big-endian word stream)`);let s=r>>>2,l=function(t,i){if(i<=t.encodedWords.length)return t.encodedWords;let r=new Uint32Array(Math.max(16,2*i));return t.encodedWords=r,r}(n,s);!function(t,i,r,a){if(i<0||r<0||i+r>t.length)throw RangeError(`decodeBigEndianInt32sInto: out of bounds (offset=${i}, byteLength=${r}, bytes.length=${t.length})`);let n=Math.floor(r/4),o=r%4!=0,s=o?n+1:n;if(a.length<s)throw RangeError(`decodeBigEndianInt32sInto: out.length=${a.length} < ${s}`);if(n>0){let r=t.byteOffset+i;if(3&r)for(let r=0;r<n;r++){let n=i+4*r;a[r]=t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]}else{let i=new Uint32Array(t.buffer,r,n);for(let t=0;t<n;t++)a[t]=0|function(t){let i=t>>>0;return((255&i)<<24|(65280&i)<<8|i>>>8&65280|i>>>24&255)>>>0}(i[t])}}if(o){let o=i+4*n,s=r-4*n,l=0;for(let i=0;i<s;i++)l|=t[o+i]<<24-8*i;a[n]=0|l}}(t,o,r,l);let c=function(t,i,r){let a=0,n=0,o=new Uint32Array(i),s=r??h_();if(t.length>0){let i=0|t[a];if(a=a+1|0,255&i)throw Error(`FastPFOR decode: invalid alignedLength=${i} (expected multiple of 256)`);if(n+i>o.length)throw Error(`FastPFOR decode: output buffer too small (outPos=${n}, alignedLength=${i}, out.length=${o.length})`);a=function(t,i,r,a,n,o){let s=a+(n-n%256),l=a,c=r;for(;l!==s;){let r=Math.min(hg,s-l);c=function(t,i,r,a,n,o){let s=0|r,l=0|t[s];if(l<=0||s+l>t.length-1)throw Error(`FastPFOR decode: invalid whereMeta=${l} at pageStart=${s} (expected > 0 and pageStart+whereMeta < encoded.length=${t.length})`);let c=s+l|0,u=t[c]>>>0,h=u+3>>>2,d=c+1,f=d+h;if(f>=t.length)throw Error(`FastPFOR decode: invalid byteSize=${u} (metaInts=${h}, pageStart=${s}, packedEnd=${c}, byteContainerStart=${d}) causes bitmapPos=${f} out of bounds (encoded.length=${t.length})`);let p=function(t,i,r,a){a.byteContainer.length<r&&(a.byteContainer=new Uint8Array(2*r),a.byteContainerI32=void 0);
365let n=a.byteContainer,o=r>>>2;if(3&n.byteOffset)for(let r=0;r<o;r=r+1|0){let a=0|t[i+r|0],o=r<<2;n[o]=255&a,n[o+1|0]=a>>>8&255,n[o+2|0]=a>>>16&255,n[o+3|0]=a>>>24&255}else{let r=a.byteContainerI32;(!r||r.buffer!==n.buffer||r.byteOffset!==n.byteOffset||r.length<o)&&(r=a.byteContainerI32=new Int32Array(n.buffer,n.byteOffset,n.byteLength>>>2)),r.set(t.subarray(i,i+o))}let s=3&r;if(s>0){let r=0|t[i+o|0],a=o<<2;for(let t=0;t<s;t=t+1|0)n[a+t|0]=r>>>(t<<3)&255}return n}(t,d,u,o),m=function(t,i,r){let a=0|t[i++],n=r.dataToBePacked;for(let o=2;o<=32;o=o+1|0){if(!(a>>>o-1&1))continue;if(i>=t.length)throw Error(`FastPFOR decode: truncated exception stream header (bitWidth=${o}, streamWordIndex=${i}, needWords=1, availableWords=${t.length-i}, encodedWords=${t.length})`);let s=t[i++]>>>0,l=function(t){var i;return(i=t+31)-i%32}(s),c=s*o+31>>>5;if(i+c>t.length)throw Error(`FastPFOR decode: truncated exception stream (bitWidth=${o}, size=${s}, streamWordIndex=${i}, needWords=${c}, availableWords=${t.length-i}, encodedWords=${t.length})`);let u=n[o];(!u||u.length<l)&&(u=n[o]=new Uint32Array(l));let h=0;for(;h<s;h=h+32|0)(function(t,i,r,a,n){switch(n){case 2:let o,s,l;o=a,s=t[i]>>>0,l=t[i+1]>>>0,r[o++]=s>>>0&3,r[o++]=s>>>2&3,r[o++]=s>>>4&3,r[o++]=s>>>6&3,r[o++]=s>>>8&3,r[o++]=s>>>10&3,r[o++]=s>>>12&3,r[o++]=s>>>14&3,r[o++]=s>>>16&3,r[o++]=s>>>18&3,r[o++]=s>>>20&3,r[o++]=s>>>22&3,r[o++]=s>>>24&3,r[o++]=s>>>26&3,r[o++]=s>>>28&3,r[o++]=s>>>30&3,r[o++]=l>>>0&3,r[o++]=l>>>2&3,r[o++]=l>>>4&3,r[o++]=l>>>6&3,r[o++]=l>>>8&3,r[o++]=l>>>10&3,r[o++]=l>>>12&3,r[o++]=l>>>14&3,r[o++]=l>>>16&3,r[o++]=l>>>18&3,r[o++]=l>>>20&3,r[o++]=l>>>22&3,r[o++]=l>>>24&3,r[o++]=l>>>26&3,r[o++]=l>>>28&3,r[o]=l>>>30&3;return;case 3:let c,u,h,d;c=a,u=t[i]>>>0,h=t[i+1]>>>0,d=t[i+2]>>>0,r[c++]=u>>>0&7,r[c++]=u>>>3&7,r[c++]=u>>>6&7,r[c++]=u>>>9&7,r[c++]=u>>>12&7,r[c++]=u>>>15&7,r[c++]=u>>>18&7,r[c++]=u>>>21&7,r[c++]=u>>>24&7,r[c++]=u>>>27&7,r[c++]=(u>>>30|(1&h)<<2)&7,r[c++]=h>>>1&7,r[c++]=h>>>4&7,r[c++]=h>>>7&7,r[c++]=h>>>10&7,r[c++]=h>>>13&7,r[c++]=h>>>16&7,r[c++]=h>>>19&7,r[c++]=h>>>22&7,r[c++]=h>>>25&7,r[c++]=h>>>28&7,r[c++]=(h>>>31|(3&d)<<1)&7,r[c++]=d>>>2&7,r[c++]=d>>>5&7,r[c++]=d>>>8&7,r[c++]=d>>>11&7,r[c++]=d>>>14&7,r[c++]=d>>>17&7,r[c++]=d>>>20&7,r[c++]=d>>>23&7,r[c++]=d>>>26&7,r[c]=d>>>29&7;return;case 4:let f,p,m,g,y;f=a,p=t[i]>>>0,m=t[i+1]>>>0,g=t[i+2]>>>0,y=t[i+3]>>>0,r[f++]=p>>>0&15,r[f++]=p>>>4&15,r[f++]=p>>>8&15,r[f++]=p>>>12&15,r[f++]=p>>>16&15,r[f++]=p>>>20&15,r[f++]=p>>>24&15,r[f++]=p>>>28&15,r[f++]=m>>>0&15,r[f++]=m>>>4&15,r[f++]=m>>>8&15,r[f++]=m>>>12&15,r[f++]=m>>>16&15,r[f++]=m>>>20&15,r[f++]=m>>>24&15,r[f++]=m>>>28&15,r[f++]=g>>>0&15,r[f++]=g>>>4&15,r[f++]=g>>>8&15,r[f++]=g>>>12&15,r[f++]=g>>>16&15,r[f++]=g>>>20&15,r[f++]=g>>>24&15,r[f++]=g>>>28&15,r[f++]=y>>>0&15,r[f++]=y>>>4&15,r[f++]=y>>>8&15,r[f++]=y>>>12&15,r[f++]=y>>>16&15,r[f++]=y>>>20&15,r[f++]=y>>>24&15,r[f]=y>>>28&15;return;case 5:let _,v,b,x,w,k;_=a,v=t[i]>>>0,b=t[i+1]>>>0,x=t[i+2]>>>0,w=t[i+3]>>>0,k=t[i+4]>>>0,r[_++]=v>>>0&31,r[_++]=v>>>5&31,r[_++]=v>>>10&31,r[_++]=v>>>15&31,r[_++]=v>>>20&31,r[_++]=v>>>25&31,r[_++]=(v>>>30|(7&b)<<2)&31,r[_++]=b>>>3&31,r[_++]=b>>>8&31,r[_++]=b>>>13&31,r[_++]=b>>>18&31,r[_++]=b>>>23&31,r[_++]=(b>>>28|(1&x)<<4)&31,r[_++]=x>>>1&31,r[_++]=x>>>6&31,r[_++]=x>>>11&31,r[_++]=x>>>16&31,r[_++]=x>>>21&31,r[_++]=x>>>26&31,r[_++]=(x>>>31|(15&w)<<1)&31,r[_++]=w>>>4&31,r[_++]=w>>>9&31,r[_++]=w>>>14&31,r[_++]=w>>>19&31,r[_++]=w>>>24&31,r[_++]=(w>>>29|(3&k)<<3)&31,r[_++]=k>>>2&31,r[_++]=k>>>7&31,r[_++]=k>>>12&31,r[_++]=k>>>17&31,r[_++]=k>>>22&31,r[_]=k>>>27&31;return;case 6:let T,S,A,C,E,M,P;T=a,S=t[i]>>>0,A=t[i+1]>>>0,C=t[i+2]>
365>>0,E=t[i+3]>>>0,M=t[i+4]>>>0,P=t[i+5]>>>0,r[T++]=S>>>0&63,r[T++]=S>>>6&63,r[T++]=S>>>12&63,r[T++]=S>>>18&63,r[T++]=S>>>24&63,r[T++]=(S>>>30|(15&A)<<2)&63,r[T++]=A>>>4&63,r[T++]=A>>>10&63,r[T++]=A>>>16&63,r[T++]=A>>>22&63,r[T++]=(A>>>28|(3&C)<<4)&63,r[T++]=C>>>2&63,r[T++]=C>>>8&63,r[T++]=C>>>14&63,r[T++]=C>>>20&63,r[T++]=C>>>26&63,r[T++]=E>>>0&63,r[T++]=E>>>6&63,r[T++]=E>>>12&63,r[T++]=E>>>18&63,r[T++]=E>>>24&63,r[T++]=(E>>>30|(15&M)<<2)&63,r[T++]=M>>>4&63,r[T++]=M>>>10&63,r[T++]=M>>>16&63,r[T++]=M>>>22&63,r[T++]=(M>>>28|(3&P)<<4)&63,r[T++]=P>>>2&63,r[T++]=P>>>8&63,r[T++]=P>>>14&63,r[T++]=P>>>20&63,r[T]=P>>>26&63;return;case 7:let D,I,z,F,R,O,B,j;D=a,I=t[i]>>>0,z=t[i+1]>>>0,F=t[i+2]>>>0,R=t[i+3]>>>0,O=t[i+4]>>>0,B=t[i+5]>>>0,j=t[i+6]>>>0,r[D++]=I>>>0&127,r[D++]=I>>>7&127,r[D++]=I>>>14&127,r[D++]=I>>>21&127,r[D++]=(I>>>28|(7&z)<<4)&127,r[D++]=z>>>3&127,r[D++]=z>>>10&127,r[D++]=z>>>17&127,r[D++]=z>>>24&127,r[D++]=(z>>>31|(63&F)<<1)&127,r[D++]=F>>>6&127,r[D++]=F>>>13&127,r[D++]=F>>>20&127,r[D++]=(F>>>27|(3&R)<<5)&127,r[D++]=R>>>2&127,r[D++]=R>>>9&127,r[D++]=R>>>16&127,r[D++]=R>>>23&127,r[D++]=(R>>>30|(31&O)<<2)&127,r[D++]=O>>>5&127,r[D++]=O>>>12&127,r[D++]=O>>>19&127,r[D++]=(O>>>26|(1&B)<<6)&127,r[D++]=B>>>1&127,r[D++]=B>>>8&127,r[D++]=B>>>15&127,r[D++]=B>>>22&127,r[D++]=(B>>>29|(15&j)<<3)&127,r[D++]=j>>>4&127,r[D++]=j>>>11&127,r[D++]=j>>>18&127,r[D]=j>>>25&127;return;case 8:let N,$,V,U,G,q,Z,H,W;N=a,$=t[i]>>>0,V=t[i+1]>>>0,U=t[i+2]>>>0,G=t[i+3]>>>0,q=t[i+4]>>>0,Z=t[i+5]>>>0,H=t[i+6]>>>0,W=t[i+7]>>>0,r[N++]=$>>>0&255,r[N++]=$>>>8&255,r[N++]=$>>>16&255,r[N++]=$>>>24&255,r[N++]=V>>>0&255,r[N++]=V>>>8&255,r[N++]=V>>>16&255,r[N++]=V>>>24&255,r[N++]=U>>>0&255,r[N++]=U>>>8&255,r[N++]=U>>>16&255,r[N++]=U>>>24&255,r[N++]=G>>>0&255,r[N++]=G>>>8&255,r[N++]=G>>>16&255,r[N++]=G>>>24&255,r[N++]=q>>>0&255,r[N++]=q>>>8&255,r[N++]=q>>>16&255,r[N++]=q>>>24&255,r[N++]=Z>>>0&255,r[N++]=Z>>>8&255,r[N++]=Z>>>16&255,r[N++]=Z>>>24&255,r[N++]=H>>>0&255,r[N++]=H>>>8&255,r[N++]=H>>>16&255,r[N++]=H>>>24&255,r[N++]=W>>>0&255,r[N++]=W>>>8&255,r[N++]=W>>>16&255,r[N]=W>>>24&255;return;case 9:let X,Y,K,J,Q,ee,et,ei,er,ea;X=a,Y=t[i]>>>0,K=t[i+1]>>>0,J=t[i+2]>>>0,Q=t[i+3]>>>0,ee=t[i+4]>>>0,et=t[i+5]>>>0,ei=t[i+6]>>>0,er=t[i+7]>>>0,ea=t[i+8]>>>0,r[X++]=Y>>>0&511,r[X++]=Y>>>9&511,r[X++]=Y>>>18&511,r[X++]=(Y>>>27|(15&K)<<5)&511,r[X++]=K>>>4&511,r[X++]=K>>>13&511,r[X++]=K>>>22&511,r[X++]=(K>>>31|(255&J)<<1)&511,r[X++]=J>>>8&511,r[X++]=J>>>17&511,r[X++]=(J>>>26|(7&Q)<<6)&511,r[X++]=Q>>>3&511,r[X++]=Q>>>12&511,r[X++]=Q>>>21&511,r[X++]=(Q>>>30|(127&ee)<<2)&511,r[X++]=ee>>>7&511,r[X++]=ee>>>16&511,r[X++]=(ee>>>25|(3&et)<<7)&511,r[X++]=et>>>2&511,r[X++]=et>>>11&511,r[X++]=et>>>20&511,r[X++]=(et>>>29|(63&ei)<<3)&511,r[X++]=ei>>>6&511,r[X++]=ei>>>15&511,r[X++]=(ei>>>24|(1&er)<<8)&511,r[X++]=er>>>1&511,r[X++]=er>>>10&511,r[X++]=er>>>19&511,r[X++]=(er>>>28|(31&ea)<<4)&511,r[X++]=ea>>>5&511,r[X++]=ea>>>14&511,r[X]=ea>>>23&511;return;case 10:let en,eo,es,el,ec,eu,eh,ed,ef,ep,em;en=a,eo=t[i]>>>0,es=t[i+1]>>>0,el=t[i+2]>>>0,ec=t[i+3]>>>0,eu=t[i+4]>>>0,eh=t[i+5]>>>0,ed=t[i+6]>>>0,ef=t[i+7]>>>0,ep=t[i+8]>>>0,em=t[i+9]>>>0,r[en++]=eo>>>0&1023,r[en++]=eo>>>10&1023,r[en++]=eo>>>20&1023,r[en++]=(eo>
365>>30|(255&es)<<2)&1023,r[en++]=es>>>8&1023,r[en++]=es>>>18&1023,r[en++]=(es>>>28|(63&el)<<4)&1023,r[en++]=el>>>6&1023,r[en++]=el>>>16&1023,r[en++]=(el>>>26|(15&ec)<<6)&1023,r[en++]=ec>>>4&1023,r[en++]=ec>>>14&1023,r[en++]=(ec>>>24|(3&eu)<<8)&1023,r[en++]=eu>>>2&1023,r[en++]=eu>>>12&1023,r[en++]=eu>>>22&1023,r[en++]=eh>>>0&1023,r[en++]=eh>>>10&1023,r[en++]=eh>>>20&1023,r[en++]=(eh>>>30|(255&ed)<<2)&1023,r[en++]=ed>>>8&1023,r[en++]=ed>>>18&1023,r[en++]=(ed>>>28|(63&ef)<<4)&1023,r[en++]=ef>>>6&1023,r[en++]=ef>>>16&1023,r[en++]=(ef>>>26|(15&ep)<<6)&1023,r[en++]=ep>>>4&1023,r[en++]=ep>>>14&1023,r[en++]=(ep>>>24|(3&em)<<8)&1023,r[en++]=em>>>2&1023,r[en++]=em>>>12&1023,r[en]=em>>>22&1023;return;case 11:let eg,ey,e_,ev,eb,ex,ew,ek,eT,eS,eA,eC;eg=a,ey=t[i]>>>0,e_=t[i+1]>>>0,ev=t[i+2]>>>0,eb=t[i+3]>>>0,ex=t[i+4]>>>0,ew=t[i+5]>>>0,ek=t[i+6]>>>0,eT=t[i+7]>>>0,eS=t[i+8]>>>0,eA=t[i+9]>>>0,eC=t[i+10]>>>0,r[eg++]=ey>>>0&2047,r[eg++]=ey>>>11&2047,r[eg++]=(ey>>>22|(1&e_)<<10)&2047,r[eg++]=e_>>>1&2047,r[eg++]=e_>>>12&2047,r[eg++]=(e_>>>23|(3&ev)<<9)&2047,r[eg++]=ev>>>2&2047,r[eg++]=ev>>>13&2047,r[eg++]=(ev>>>24|(7&eb)<<8)&2047,r[eg++]=eb>>>3&2047,r[eg++]=eb>>>14&2047,r[eg++]=(eb>>>25|(15&ex)<<7)&2047,r[eg++]=ex>>>4&2047,r[eg++]=ex>>>15&2047,r[eg++]=(ex>>>26|(31&ew)<<6)&2047,r[eg++]=ew>>>5&2047,r[eg++]=ew>>>16&2047,r[eg++]=(ew>>>27|(63&ek)<<5)&2047,r[eg++]=ek>>>6&2047,r[eg++]=ek>>>17&2047,r[eg++]=(ek>>>28|(127&eT)<<4)&2047,r[eg++]=eT>>>7&2047,r[eg++]=eT>>>18&2047,r[eg++]=(eT>>>29|(255&eS)<<3)&2047,r[eg++]=eS>>>8&2047,r[eg++]=eS>>>19&2047,r[eg++]=(eS>>>30|(511&eA)<<2)&2047,r[eg++]=eA>>>9&2047,r[eg++]=eA>>>20&2047,r[eg++]=(eA>>>31|(1023&eC)<<1)&2047,r[eg++]=eC>>>10&2047,r[eg]=eC>>>21&2047;return;case 12:let eE,eM,eP,eD,eI,ez,eL,eF,eR,eO,eB,ej,eN;eE=a,eM=t[i]>>>0,eP=t[i+1]>>>0,eD=t[i+2]>>>0,eI=t[i+3]>>>0,ez=t[i+4]>>>0,eL=t[i+5]>>>0,eF=t[i+6]>>>0,eR=t[i+7]>>>0,eO=t[i+8]>>>0,eB=t[i+9]>>>0,ej=t[i+10]>>>0,eN=t[i+11]>>>0,r[eE++]=eM>>>0&4095,r[eE++]=eM>>>12&4095,r[eE++]=(eM>>>24|(15&eP)<<8)&4095,r[eE++]=eP>>>4&4095,r[eE++]=eP>>>16&4095,r[eE++]=(eP>>>28|(255&eD)<<4)&4095,r[eE++]=eD>>>8&4095,r[eE++]=eD>>>20&4095,r[eE++]=eI>>>0&4095,r[eE++]=eI>>>12&4095,r[eE++]=(eI>>>24|(15&ez)<<8)&4095,r[eE++]=ez>>>4&4095,r[eE++]=ez>>>16&4095,r[eE++]=(ez>>>28|(255&eL)<<4)&4095,r[eE++]=eL>>>8&4095,r[eE++]=eL>>>20&4095,r[eE++]=eF>>>0&4095,r[eE++]=eF>>>12&4095,r[eE++]=(eF>>>24|(15&eR)<<8)&4095,r[eE++]=eR>>>4&4095,r[eE++]=eR>>>16&4095,r[eE++]=(eR>>>28|(255&eO)<<4)&4095,r[eE++]=eO>>>8&4095,r[eE++]=eO>>>20&4095,r[eE++]=eB>>>0&4095,r[eE++]=eB>>>12&4095,r[eE++]=(eB>>>24|(15&ej)<<8)&4095,r[eE++]=ej>>>4&4095,r[eE++]=ej>>>16&4095,r[eE++]=(ej>>>28|(255&eN)<<4)&4095,r[eE++]=eN>>>8&4095,r[eE]=eN>>>20&4095;return;case 16:let e$,eV,eU,eG,eq,eZ,eH,eW,eX,eY,eK,eJ,eQ,e1,e0,e2,e3;e$=a,eV=t[i]>>>0,eU=t[i+1]>>>0,eG=t[i+2]>>>0,eq=t[i+3]>>>0,eZ=t[i+4]>>>0,eH=t[i+5]>>>0,eW=t[i+6]>>>0,eX=t[i+7]>>>0,eY=t[i+8]>>>0,eK=t[i+9]>>>0,eJ=t[i+10]>>>0,eQ=t[i+11]>>>0,e1=t[i+12]>>>0,e0=t[i+13]>>>0,e2=t[i+14]>>>0,e3=t[i+15]>>>0,r[e$++]=eV>>>0&65535,r[e$++]=eV>>>16&65535,r[e$++]=eU>>>0&65535,r[e$++]=eU>>>16&65535,r[e$++]=eG>>>0&65535,r[e$++]=eG>>>16&65535,r[e$++]=eq>>>0&65535,r[e$++]=eq>>>16&65535,r[e$++]=eZ>>>0&65535,r[e$++]=eZ>>>16&65535,r[e$++]=eH>>>0&65535,r[e$++]=eH>>>16&65535,r[e$++]=eW>>>0&65535,r[e$++]=eW>>>16&65535,r[e$++]=eX>>>0&65535,r[e$++]=eX>>>16&65535,r[e$++]=eY>>>0&65535,r[e$++]=eY>>>16&65535,r[e$++]=eK>>>0&65535,r[e$++]=eK>>>16&65535,r[e$++]=eJ>>>0&65535,r[e$++]=eJ>>>16&65535,r[e$++]=eQ>>>0&65535,r[e$++]=eQ>>>16&65535,r[e$++]=e1>>>0&65535,r[e$++]=e1>>>16&65535,r[e$++]=e0>>>0&65535,r[e$++]=e0>>>16&65535,r[e$++]=e2>>>0&65535,r[e$++]=e2>>>16&65535,r[e$++]=e3>>>0&65535,r[e$]=e3>>>16&65535;return;case 32:for(let n=0;n<32;n=n+1|0)r[a+n|0]=0|t[i+n|0];return}let e5=hm[n]>>>0,e4=i,e6=0,e8=t[e4]>>>0;for(let i=0;i<32;i++)if(e6+n<=32){let o=e8>>>e6&e5;r[a+i]=0|o,32===(e6+=n)&&(e6=0,e4++,31!==i&&(e8=t[e4]>>>0))}else{let o=32-e6,s=(e8>>>e6|((e8=t[++e4]>>>0)&hm[n-o]>>>0)<<o)&e5;r[a+i]=0|s,e6=n-o}})(t,i,u,h,o),i=i+o|0;i=i-((h-s|0)*o>>>5)|0,r.exceptionSizes[o]=s}return i}(t,f,o);return o.dataPointers.fill(0),function(t,i,r,a,n,o,s,l,c,u){let h=0|r,d=0;for(let i=0;i<s;i=i+1|0){let r=function(t,i,r,a){if(r+2>i)throw Error(`FastPFOR decode: byteContainer underflow at block=${a} (need 2 bytes for [bitWidth, exceptionCount], bytePos=${r}, byteSize=${i})`);let n=t[r++],o=t[r++];if(n>32)throw Error(`FastPFOR decode: invalid bitWidth=${n} at block=${a} (expected 0..32). This likely indicates corrupted or truncated input.`);return{bitWidth:n,exceptionCount:o,bytePosIn:r}}(l,c,d,i);d=r.bytePosIn;let a=r.bitWidth,s=r.exceptionCount,f=o+256*i|0;switch(a){case 0:n.fill(0,f,f+256);break;case 32:for(let i=0;i<256;i=i+1|0)n[f+i|0]=0|t[h+i|0];h=h+256|0;break;default:h=function(t,i,r,a,n){switch(n){case 1:let o=a,s=i;for(let i=0;i<8;i++){let i=t[s++]>>>0;r[o++]=i>>>0&1,r[o++]=i>>>1&1,r[o++]=i>>>2&1,r[o++]=i>>>3&1,r[o++]=i>>>4&1,r[o++]=i>>>5&1,r[o++]=i>>>6&1,r[o++]=i>>>7&1,r[o++]=i>>>8&1,r[o++]=i>>>9&1,r[o++]=i>>>10&1,r[o++]=i>>>11&1,r[o++]=i>>>12&1,r[o++]=i>>>13&1,r[o++]=i>>>14&1,r[o++]=i>>>15&1,r[o++]=i>>>16&1,r[o++]=i>>>17&1,r[o++]=i>>>18&1,r[o++]=i>>>19&1,r[o++]=i>>>20&1,r[o++]=i>>>21&1,r[o++]=i>>>22&1,r[o++]=i>>>23&1,r[o++]=i>>>24&1,r[o++]=i>>>25&1,r[o++]=i>>>26&1,r[o++]=i>>>27&1,r[o++]=i>>>28&1,r[o++]=i>>>29&1,r[o++]=i>>>30&1,r[o++]=i>>>31&1}break;case 2:!function(t,i,r,a){let n=a,o=i;for(let i=0;i<8;i++){let i=t[o++]>>>0,a=t[o++]>>>0;r[n++]=i>>>0&3,r[n++]=i>>>2&3,r[n++]=i>>>4&3,r[n++]=i>>>6&3,r[n++]=i>>>8&3,r[n++]=i>>>10&3,r[n++]=i>>>12&3,r[n++]=i>>>
36514&3,r[n++]=i>>>16&3,r[n++]=i>>>18&3,r[n++]=i>>>20&3,r[n++]=i>>>22&3,r[n++]=i>>>24&3,r[n++]=i>>>26&3,r[n++]=i>>>28&3,r[n++]=i>>>30&3,r[n++]=a>>>0&3,r[n++]=a>>>2&3,r[n++]=a>>>4&3,r[n++]=a>>>6&3,r[n++]=a>>>8&3,r[n++]=a>>>10&3,r[n++]=a>>>12&3,r[n++]=a>>>14&3,r[n++]=a>>>16&3,r[n++]=a>>>18&3,r[n++]=a>>>20&3,r[n++]=a>>>22&3,r[n++]=a>>>24&3,r[n++]=a>>>26&3,r[n++]=a>>>28&3,r[n++]=a>>>30&3}}(t,i,r,a);break;case 3:!function(t,i,r,a){let n=a,o=i;for(let i=0;i<8;i++){let i=t[o++]>>>0,a=t[o++]>>>0,s=t[o++]>>>0;r[n++]=i>>>0&7,r[n++]=i>>>3&7,r[n++]=i>>>6&7,r[n++]=i>>>9&7,r[n++]=i>>>12&7,r[n++]=i>>>15&7,r[n++]=i>>>18&7,r[n++]=i>>>21&7,r[n++]=i>>>24&7,r[n++]=i>>>27&7,r[n++]=(i>>>30|(1&a)<<2)&7,r[n++]=a>>>1&7,r[n++]=a>>>4&7,r[n++]=a>>>7&7,r[n++]=a>>>10&7,r[n++]=a>>>13&7,r[n++]=a>>>16&7,r[n++]=a>>>19&7,r[n++]=a>>>22&7,r[n++]=a>>>25&7,r[n++]=a>>>28&7,r[n++]=(a>>>31|(3&s)<<1)&7,r[n++]=s>>>2&7,r[n++]=s>>>5&7,r[n++]=s>>>8&7,r[n++]=s>>>11&7,r[n++]=s>>>14&7,r[n++]=s>>>17&7,r[n++]=s>>>20&7,r[n++]=s>>>23&7,r[n++]=s>>>26&7,r[n++]=s>>>29&7}}(t,i,r,a);break;case 4:!function(t,i,r,a){let n=a,o=i;for(let i=0;i<8;i++){let i=t[o++]>>>0,a=t[o++]>>>0,s=t[o++]>>>0,l=t[o++]>>>0;r[n++]=i>>>0&15,r[n++]=i>>>4&15,r[n++]=i>>>8&15,r[n++]=i>>>12&15,r[n++]=i>>>16&15,r[n++]=i>>>20&15,r[n++]=i>>>24&15,r[n++]=i>>>28&15,r[n++]=a>>>0&15,r[n++]=a>>>4&15,r[n++]=a>>>8&15,r[n++]=a>>>12&15,r[n++]=a>>>16&15,r[n++]=a>>>20&15,r[n++]=a>>>24&15,r[n++]=a>>>28&15,r[n++]=s>>>0&15,r[n++]=s>>>4&15,r[n++]=s>>>8&15,r[n++]=s>>>12&15,r[n++]=s>>>16&15,r[n++]=s>>>20&15,r[n++]=s>>>24&15,r[n++]=s>>>28&15,r[n++]=l>>>0&15,r[n++]=l>>>4&15,r[n++]=l>>>8&15,r[n++]=l>>>12&15,r[n++]=l>>>16&15,r[n++]=l>>>20&15,r[n++]=l>>>24&15,r[n++]=l>>>28&15}}(t,i,r,a);break;case 5:!function(t,i,r,a){let n=a,o=i;for(let i=0;i<8;i++){let i=t[o++]>>>0,a=t[o++]>>>0,s=t[o++]>>>0,l=t[o++]>>>0,c=t[o++]>>>0;r[n++]=i>>>0&31,r[n++]=i>>>5&31,r[n++]=i>>>10&31,r[n++]=i>>>15&31,r[n++]=i>>>20&31,r[n++]=i>>>25&31,r[n++]=(i>>>30|(7&a)<<2)&31,r[n++]=a>>>3&31,r[n++]=a>>>8&31,r[n++]=a>>>13&31,r[n++]=a>>>18&31,r[n++]=a>>>23&31,r[n++]=(a>>>28|(1&s)<<4)&31,r[n++]=s>>>1&31,r[n++]=s>>>6&31,r[n++]=s>>>11&31,r[n++]=s>>>16&31,r[n++]=s>>>21&31,r[n++]=s>>>26&31,r[n++]=(s>>>31|(15&l)<<1)&31,r[n++]=l>>>4&31,r[n++]=l>>>9&31,r[n++]=l>>>14&31,r[n++]=l>>>19&31,r[n++]=l>>>24&31,r[n++]=(l>>>29|(3&c)<<3)&31,r[n++]=c>>>2&31,r[n++]=c>>>7&31,r[n++]=c>>>12&31,r[n++]=c>>>17&31,r[n++]=c>>>22&31,r[n++]=c>>>27&31}}(t,i,r,a);break;case 6:!function(t,i,r,a){let n=a,o=i;for(let i=0;i<8;i++){let i=t[o++]>>>0,a=t[o++]>>>0,s=t[o++]>>>0,l=t[o++]>>>0,c=t[o++]>>>0,u=t[o++]>>>0;r[n++]=i>>>0&63,r[n++]=i>>>6&63,r[n++]=i>>>12&63,r[n++]=i>>>18&63,r[n++]=i>>>24&63,r[n++]=(i>>>30|(15&a)<<2)&63,r[n++]=a>>>4&63,r[n++]=a>>>10&63,r[n++]=a>>>16&63,r[n++]=a>>>22&63,r[n++]=(a>>>28|(3&s)<<4)&63,r[n++]=s>>>2&63,r[n++]=s>>>8&63,r[n++]=s>>>14&63,r[n++]=s>>>20&63,r[n++]=s>>>26&63,r[n++]=l>>>0&63,r[n++]=l>>>6&63,r[n++]=l>>>12&63,r[n++]=l>>>18&63,r[n++]=l>>>24&63,r[n++]=(l>>>30|(15&c)<<2)&63,r[n++]=c>>>4&63,r[n++]=c>>>10&63,r[n++]=c>>>16&63,r[n++]=c>>>22&63,r[n++]=(c>>>28|(3&u)<<4)&63,r[n++]=u>>>2&63,r[n++]=u>>>8&63,r[n++]=u>>>14&63,r[n++]=u>>>20&63,r[n++]=u>>>26&63}}(t,i,r,a);break;case 7:!function(t,i,r,a){let n=a,o=i;for(let i=0;i<8;i++){let i=t[o++]>>>0,a=t[o++]>>>0,s=t[o++]>>>0,l=t[o++]>>>0,c=t[o++]>>>0,u=t[o++]>>>0,h=t[o++]>>>0;r[n++]=i>>>0&127,r[n++]=i>>>7&127,r[n++]=i>>>14&127,r[n++]=i>>>21&127,r[n++]=(i>>>28|(7&a)<<4)&127,r[n++]=a>>>3&127,r[n++]=a>>>10&127,r[n++]=a>>>17&127,r[n++]=a>>>24&127,r[n++]=(a>>>31|(63&s)<<1)&127,r[n++]=s>>>6&127,r[n++]=s>>>13&127,r[n++]=s>>>20&127,r[n++]=(s>>>27|(3&l)<<5)&127,r[n++]=l>>>2&127,r[n++]=l>>>9&127,r[n++]=l>>>16&127,r[n++]=l>>>23&127,r[n++]=(l>>>30|(31&c)<<2)&127,r[n++]=c>>>5&127,r[n++]=c>>>12&127,r[n++]=c>>>19&127,r[n++]=(c>>>26|(1&u)<<6)&127,r[n++]=u>>>1&127,r[n++]=u>>>8&127,r[n++]=u>>>15&127,r[n++]=u>>>22&127,r[n++]=(u>>>29|(15&h)<<3)&127,r[n++]=h>>>4&127,r[n++]=h>>>11&127,r[n++]=h>>>18&127,r[n++]=h>>>25&127}}(t,i,r,a);break;case 8:!function(t,i,r,a){let n=a,o=i;for(let i=0;i<8;i++){let i=t[o++]>>>0,a=t[o++]>>>0,s=t[o++]>>>0,l=t[o++]>>>0,c=t[o++]>>>0,u=t[o++]>>>0,h=t[o++]>>>0,d=t[o++]>>>0;r[n++]=i>>>0&255,r[n++]=i>>>8&255,r[n++]=i>>>16&255,r[n++]=i>>>24&255,r[n++]=a>>>0&255,r[n++]=a>>>8&255,r[n++]=a>>>16&255,r[n++]=a>>>24&255,r[n++]=s>>>0&255,r[n++]=s>>>8&255,r[n++]=s>>>16&255,r[n++]=s>>>24&255,r[n++]=l>>>0&255,r[n++]=l>>>8&255,r[n++]=l>>>16&255,r[n++]=l>>>24&255,r[n++]=c>>>0&255,r[n++]=c>>>8&255,r[n++]=c>>>16&255,r[n++]=c>>>24&255,r[n++]=u>>>0&255,r[n++]=u>>>8&255,r[n++]=u>>>16&255,r[n++]=u>>>24&255,r[n++]=h>>>0&255,r[n++]=h>>>8&255,r[n++]=h>>>16&255,r[n++]=h>>>24&255,r[n++]=d>>>0&255,r[n++]=d>>>8&255,r[n++]=d>>>16&255,r[n++]=d>>>24&255}}(t,i,r,a);break;case 16:let l=a,c=i;for(let i=0;i<128;i++){let i=t[c++]>>>0;r[l++]=65535&i,r[l++]=i>>>16&65535}break;default:!function(t,i,r,a,n){let o=hm[n]>>>0,s=i,l=0,c=t[s]>>>0,u=a;for(let i=0;i<8;i++){for(let i=0;i<32;i++)if(l+n<=32){let a=c>>>l&o;r[u+i]=0|a,32===(l+=n)&&(l=0,s++,31!==i&&(c=t[s]>>>0))}else{let a=32-l,h=c>>>l;c=t[++s]>>>0;let d=n-a,f=(h|(c&-1>>>32-d>>>0)<<a)&o;r[u+i]=0|f,l=d}
365u+=32,l=0,i<7&&(c=t[s]>>>0)}}(t,i,r,a,n)}return i+(n<<3)|0}(t,h,n,f,a)}s>0&&(d=function(t,i,r,a,n,o,s,l,c){let{maxBits:u,exceptionBitWidth:h,bytePosIn:d}=function(t,i,r,a,n,o){if(r+1>i)throw Error(`FastPFOR decode: exception header underflow at block=${o} (need 1 byte for maxBits, bytePos=${r}, byteSize=${i})`);let s=t[r++];if(s<a||s>32)throw Error(`FastPFOR decode: invalid maxBits=${s} at block=${o} (bitWidth=${a}, expected ${a}..32)`);let l=s-a|0;if(l<1||l>32)throw Error(`FastPFOR decode: invalid exceptionBitWidth=${l} at block=${o} (bitWidth=${a}, maxBits=${s})`);if(r+n>i)throw Error(`FastPFOR decode: exception positions underflow at block=${o} (need=${n}, have=${i-r})`);return{maxBits:s,exceptionBitWidth:l,bytePosIn:r}}(n,o,s,r,a,c);if(s=d,1===h){let o=1<<r;for(let r=0;r<a;r=r+1|0){let r=n[s++];t[r+i|0]|=o}return s}let f=l.dataToBePacked[h];if(!f)throw Error(`FastPFOR decode: missing exception stream for exceptionBitWidth=${h} (bitWidth=${r}, maxBits=${u}) at block ${c}`);let p=l.dataPointers,m=0|p[h],g=0|l.exceptionSizes[h];if(m+a>g)throw Error(`FastPFOR decode: exception stream overflow for exceptionBitWidth=${h} (ptr=${m}, need ${a}, size=${g}) at block ${c}`);for(let o=0;o<a;o=o+1|0){let a=n[s++],o=0|f[m++];t[a+i|0]|=o<<r}return p[h]=m,s}(n,f,a,s,l,c,d,u,i))}if(h!==a)throw Error(`FastPFOR decode: packed region mismatch (pageStart=${i}, packedStart=${r}, consumedPackedEnd=${h}, expectedPackedEnd=${a}, packedWords=${a-r}, encoded.length=${t.length})`)}(t,s,s+1|0,c,i,0|a,n/256|0,p,u,o),m}(t,i,c,l,r,o),l=l+r|0}return c}(t,o,a,n,i,s),n=n+i|0}let l=t.length-a|0,c=i-n|0;return function(t,i,r,a,n,o){if(0===o)return;let s=0,l=i,c=i+r,u=n,h=n+o,d=0,f=0;for(;l<c&&u<h;){let i=t[l]>>>s&255;if(s+=8,l+=s>>>5,s&=31,d|=(127&i)<<f,128&i)a[u++]=0|d,d=0,f=0;else if((f+=7)>28)throw Error(`FastPFOR VByte: unterminated value (expected MSB=1 terminator within 5 bytes; shift=${f}, partial=${d}, decoded=${u-n}/${o}, inPos=${l}, inEnd=${c})`)}if(u!==h)throw Error(`FastPFOR VByte: truncated stream (decoded=${u-n}, expected=${o}, consumedWords=${l-i}/${r}, vbyteStart=${i}, vbyteEnd=${c})`)}(t,a,l,o,n,c),o}(l.subarray(0,s),i,n.decoderWorkspace);return a.add(r),c}(t,n,o=r.byteLength,i,function(t=16){if(t<0)throw RangeError(`initialEncodedWordCapacity must be >= 0, got ${t}`);return{encodedWords:new Uint32Array(Math.max(16,0|t)),decoderWorkspace:h_()}}(o>>>2));case dI.VARINT:return hv(t,i,r.numValues);case dI.NONE:return function(t,i,r){let a=i.get(),n=r*Uint32Array.BYTES_PER_ELEMENT,o=new DataView(t.buffer,t.byteOffset,t.byteLength),s=new Uint32Array(r);for(let t=0;t<r;t++)s[t]=o.getUint32(a+t*Uint32Array.BYTES_PER_ELEMENT,!0);return i.add(n),s}(t,i,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${a} is not supported (yet).`)}}function hQ(t,i,r){let a=r.physicalLevelTechnique;switch(a){case dI.VARINT:return hb(t,i,r.numValues);case dI.NONE:return function(t,i,r){let a=i.get(),n=r*BigUint64Array.BYTES_PER_ELEMENT,o=new DataView(t.buffer,t.byteOffset,t.byteLength),s=new BigUint64Array(r);for(let t=0;t<r;t++)s[t]=o.getBigUint64(a+t*BigUint64Array.BYTES_PER_ELEMENT,!0);return i.add(n),s}(t,i,r.numValues);default:throw Error(`Specified physicalLevelTechnique ${a} is not supported (yet).`)}}function h1(t,i,r){let a=hJ(t,i,r);return 1===a.length?r.logicalLevelTechnique1===hf.DELTA?hx(a[0]):a[0]:a[1]}function h0(t,i,r){var a=hJ(t,i,r);if(2===a.length){let t=hx(a[1]);return[t,t]}return[hx(a[2]),hx(a[3])]}function h2(t,i,r){var a=hb(t,i,r.numValues);if(2===a.length){let t=hw(a[1]);return[t,t]}return[hw(a[2]),hw(a[3])]}function h3(t,i,r,a){return h6(hQ(t,i,r),r,a)}function h5(t,i,r){let a=hQ(t,i,r);return 1===a.length?r.logicalLevelTechnique1===hf.DELTA?hw(a[0]):a[0]:a[1]}function h4(t,i,r){let a;switch(i.logicalLevelTechnique1){case hf.DELTA:if(i.logicalLevelTechnique2===hf.RLE){if(!r)return function(t,i,r){let a=new BigInt64Array(r),n=0,o=0n;for(let r=0;r<i;r++){let s=Number(t[r]),l=hw(t[r+i]);for(let t=0;t<s;t++)o+=l,a[n++]=o}return a}(t,i.runs,i.numRleValues);a=hE(t=hS(t,i.runs,i.numRleValues))}else a=hE(t);break;case hf.RLE:a=function(t,i,r){if(void 0===r){r=0;for(let a=0;a<i;a++)r+=Number(t[a])}let a=new BigInt64Array(r),n=0;for(let r=0;r<i;r++){let o=Number(t[r]),s=t[r+i];s=hw(s),a.fill(s,n,n+o),n+=o}return a}(t,i.runs,i.numRleValues);break;case hf.NONE:a=function(t){let i=new BigInt64Array(t.length);for(let r=0;r<t.length;r++)i[r]=hw(t[r]);return i}(t);break;default:throw Error(`The specified Logical level technique is not supported: ${i.logicalLevelTechnique1}`)}return r?hV(a,r,0n):a}function h6(t,i,r){let a;switch(i.logicalLevelTechnique1){case hf.DELTA:a=i.logicalLevelTechnique2===hf.RLE?hz(hS(t,i.runs,i.numRleValues)):hz(t);break;case hf.RLE:a=hS(t,i.runs,i.numRleValues);break;case hf.NONE:a=t;break;default:throw Error(`The specified Logical level technique is not supported: ${i.logicalLevelTechnique1}`)}return r?hV(a,r,0n):a}function h8(t,i,r,a,n="int32"){let o=t.logicalLevelTechnique1;if(o===hf.RLE)return 1===t.runs?dO.CONST:dO.FLAT;if(o!==hf.DELTA||t.logicalLevelTechnique2!==hf.RLE)return 1===t.numValues?dO.CONST:dO.FLAT;let s=i instanceof h$?i.size():i;if(t.numRleValues!==s)return dO.FLAT;if(1===t.runs)return dO.SEQUENCE;
vendor: 14,191 bytes, line 365
365if(2!==t.runs)return 1===t.numValues?dO.CONST:dO.FLAT;let l=a.get();if(t.physicalLevelTechnique===dI.VARINT)return!function(t,i,r){let a=new hp(i.get());if("int64"===r){let i=hb(t,a,4);return 2n===i[2]&&2n===i[3]}let n=hv(t,a,4);return 2===n[2]&&2===n[3]}(r,a,n)?1===t.numValues?dO.CONST:dO.FLAT:dO.SEQUENCE;let c=a.get(),u=new Int32Array(r.buffer,r.byteOffset+c,4);return a.set(l),2===u[2]&&2===u[3]?dO.SEQUENCE:1===t.numValues?dO.CONST:dO.FLAT}var h7=class extends hr{getValueFromBuffer(t){return this.dataBuffer[t]}},h9=class extends ho{constructor(t,i,r,a,n){super(t,n?BigInt64Array.of(i):BigUint64Array.of(i),r,a)}getValueFromBuffer(t){return this.dataBuffer[0]+BigInt(t)*this.delta}};function de(t,i,r){return{x:dt(t,i)-r,y:dt(t>>1,i)-r}}function dt(t,i){let r=0;for(let a=0;a<i;a++)r|=(t&1<<2*a)>>a;return r}function di(t,i,r,a,n,o,s){return t===dN.MORTON?function(t,i,r,a,n,o){let s=Array(n?a+1:a);for(let n=0;n<a;n++){let a=de(t[i[r+n]],o.numBits,o.coordinateShift);s[n]=new R(a.x,a.y)}return n&&(s[s.length-1]=s[0]),s}(i,r,a,n,o,s):function(t,i,r,a,n){let o=Array(n?a+1:a);for(let n=0;n<2*a;n+=2){let a=2*i[r+n/2],s=t[a],l=t[a+1];o[n/2]=new R(s,l)}return n&&(o[o.length-1]=o[0]),o}(i,r,a,n,o)}function dr(t,i,r,a){let n=Array(a?r+1:r);for(let a=0;a<2*r;a+=2){let r=t[i+a],o=t[i+a+1];n[a/2]=new R(r,o)}return a&&(n[n.length-1]=n[0]),n}(dM=dB||={})[dM.POINT=0]="POINT",dM[dM.LINESTRING=1]="LINESTRING",dM[dM.POLYGON=2]="POLYGON",dM[dM.MULTIPOINT=3]="MULTIPOINT",dM[dM.MULTILINESTRING=4]="MULTILINESTRING",dM[dM.MULTIPOLYGON=5]="MULTIPOLYGON",(dP=dj||={})[dP.POINT=0]="POINT",dP[dP.LINESTRING=1]="LINESTRING",dP[dP.POLYGON=2]="POLYGON",(dD=dN||={})[dD.MORTON=0]="MORTON",dD[dD.VEC_2=1]="VEC_2",dD[dD.VEC_3=2]="VEC_3";var da=class{constructor(t,i,r,a,n){this._vertexBufferType=t,this._topologyVector=i,this._vertexOffsets=r,this._vertexBuffer=a,this._mortonSettings=n}get vertexBufferType(){return this._vertexBufferType}get topologyVector(){return this._topologyVector}get vertexOffsets(){return this._vertexOffsets}get vertexBuffer(){return this._vertexBuffer}getSimpleEncodedVertex(t){let i=this.vertexOffsets?2*this.vertexOffsets[t]:2*t;return[this.vertexBuffer[i],this.vertexBuffer[i+1]]}getVertex(t){if(this.vertexOffsets&&this.mortonSettings){let i=this.vertexOffsets[t],r=de(this.vertexBuffer[i],this.mortonSettings.numBits,this.mortonSettings.coordinateShift);return[r.x,r.y]}let i=this.vertexOffsets?2*this.vertexOffsets[t]:2*t;return[this.vertexBuffer[i],this.vertexBuffer[i+1]]}getGeometries(){return function(t){let i=Array(t.numGeometries),r=1,a=1,n=1,o=0,s=0,l=0,c=t.mortonSettings,u=t.topologyVector,h=u.geometryOffsets,d=u.partOffsets,f=u.ringOffsets,p=t.vertexOffsets,m=!p||0===p.length,g=t.containsPolygonGeometry(),y=t.vertexBuffer;for(let u=0;u<t.numGeometries;u++){let _=t.geometryType(u);switch(_){case dB.POINT:{let u,g;if(m)u=y[s++],g=y[s++];else if(t.vertexBufferType===dN.MORTON){let t=de(y[p[l++]],c.numBits,c.coordinateShift);u=t.x,g=t.y}else{let t=2*p[l++];u=y[t],g=y[t+1]}i[o++]=[[new R(u,g)]],h&&n++,d&&r++,f&&a++}break;case dB.MULTIPOINT:{let u,d=h[n]-h[n-1];if(n++,m){u=Array(d);for(let t=0;t<d;t++){let i=y[s++],r=y[s++];u[t]=new R(i,r)}}else u=di(t.vertexBufferType,y,p,l,d,!1,c),l+=d;i[o++]=u.map(t=>[t]),r+=d,a+=d}break;case dB.LINESTRING:{let u,_;g?(u=f[a]-f[a-1],a++):u=d[r]-d[r-1],r++,m?(_=dr(y,s,u,!1),s+=2*u):(_=di(t.vertexBufferType,y,p,l,u,!1,c),l+=u),i[o++]=[_],h&&n++}break;case dB.POLYGON:{let u=d[r]-d[r-1];r++;let g=Array(u-1),_,v=f[a]-f[a-1];if(a++,m){_=dr(y,s,v,!0),s+=2*v;for(let t=0;t<g.length;t++)v=f[a]-f[a-1],a++,g[t]=dr(y,s,v,!0),s+=2*v}else{_=di(t.vertexBufferType,y,p,l,v,!0,c),l+=v;for(let i=0;i<g.length;i++)v=f[a]-f[a-1],a++,g[i]=di(t.vertexBufferType,y,p,l,v,!0,c),l+=v}i[o++]=[_].concat(g),h&&n++}break;case dB.MULTILINESTRING:{let u=h[n]-h[n-1];n++;let _=Array(u);for(let i=0;i<u;i++){let n;if(g?(n=f[a]-f[a-1],a++):n=d[r]-d[r-1],r++,m)_[i]=dr(y,s,n,!1),s+=2*n;else{let r=di(t.vertexBufferType,y,p,l,n,!1,c);_[i]=r,l+=n}}i[o++]=_}break;case dB.MULTIPOLYGON:{let u=h[n]-h[n-1];n++;let g=Array(u);for(let i=0;i<u;i++){let n=d[r]-d[r-1];r++;let o,u=Array(n-1),h=f[a]-f[a-1];a++,m?(o=dr(y,s,h,!0),s+=2*h):(o=di(t.vertexBufferType,y,p,l,h,!0,c),l+=h);for(let i=0;i<u.length;i++){let r=f[a]-f[a-1];a++,m?(u[i]=dr(y,s,r,!0),s+=2*r):(u[i]=di(t.vertexBufferType,y,p,l,r,!0,c),l+=r)}g[i]=[o].concat(u)}i[o++]=g.flat()}break;default:throw Error(`The specified geometry type (${_}) is currently not supported.`)}}return i}(this)}get mortonSettings(){return this._mortonSettings}},dn=class extends da{constructor(t,i,r,a,n,o,s){super(r,a,n,o,s),this._numGeometries=t,this._geometryType=i}geometryType(t){return this._geometryType}get numGeometries(){return this._numGeometries}containsPolygonGeometry(){return this._geometryType===dB.POLYGON||this._geometryType===dB.MULTIPOLYGON}containsSingleGeometryType(){return!0}};function ds(t,i,r,a){return new dl(dN.VEC_2,t,i,r,a)}var dl=class extends da{constructor(t,i,r,a,n,o){super(t,r,a,n,o),this._geometryTypes=i}geometryType(t){return this._geometryTypes[t]}get numGeometries(){return this._geometryTypes.length}containsPolygonGeometry(){for(let t=0;t<this.numGeometries;t++)if(this.geometryType(t)===dB.POLYGON||this.geometryType(t)===dB.MULTIPOLYGON)return!0;return!1}containsSingleGeometryType(){return!1}},dc=class{constructor(t,i,r,a){this._triangleOffsets=t,this._indexBuffer=i,this._vertexBuffer=r,this._topologyVector=a}get triangleOffsets(){return this._triangleOffsets}get indexBuffer(){return this._indexBuffer}get vertexBuffer(){return this._vertexBuffer}get topologyVector(){return this._topologyVector}getGeometries(){if(!this._topologyVector)throw Error("Cannot convert GpuVector to coordinates without topology information");let t=new Uint32Array(this.numGeometries);for(let i=0;i<this.numGeometries;i++)t[i]=this.geometryType(i);return ds(t,this._topologyVector,void 0,this._vertexBuffer).getGeometries()}[Symbol.iterator](){return null}},du=class extends dc{constructor(t,i,r,a,n,o){super(r,a,n,o),this._numGeometries=t,this._geometryType=i}geometryType(t){return this._geometryType}get numGeometries(){return this._numGeometries}containsSingleGeometryType(){return!0}},dh=class extends dc{constructor(t,i,r,a,n){super(i,r,a,n),this._geometryTypes=t}geometryType(t){return this._geometryTypes[t]}get numGeometries(){return this._geometryTypes.length}containsSingleGeometryType(){return!1}};function dd(t,i,r){let a=new Uint32Array(t.length+1),n=0;a[0]=n;let o=0;for(let s=0;s<t.length;s++)n=a[s+1]=n+(t[s]>r?i[o++]:1);return a}function df(t,i,r,a){let n=new Uint32Array(i[i.length-1]+1),o=0;n[0]=o;let s=1,l=0;for(let c=0;c<t.length;c++){let u=t[c],h=i[c+1]-i[c];if(5===u||2===u||a&&(4===u||1===u))for(let t=0;t<h;t++)o=n[s++]=o+r[l++];else for(let t=0;t<h;t++)n[s++]=++o}return n}var dp=class extends hi{constructor(t,i,r){super(t,i.getBuffer(),r),this.dataVector=i}getValueFromBuffer(t){return this.dataVector.get(t)}},dm=class extends hr{getValueFromBuffer(t){return this.dataBuffer[t]}},dg=class extends hi{constructor(t,i,r,a){super(t,a?BigInt64Array.of(i):BigUint64Array.of(i),r)}getValueFromBuffer(t){return this.dataBuffer[0]}},dy=class extends hi{constructor(t,i,r,a){super(t,r,a),this.offsetBuffer=i}},d_=class extends dy{constructor(t,i,r,a){super(t,i,r,a??i.length-1)}getValueFromBuffer(t){let i=this.offsetBuffer[t],r=this.offsetBuffer[t+1];return hW(this.dataBuffer,i,r)}},dv=class extends dy{constructor(t,i,r,a,n){super(t,r,a,n??i.length),this.indexBuffer=i,this.indexBuffer=i}getValueFromBuffer(t){let i=this.indexBuffer[t],r=this.offsetBuffer[i],a=this.offsetBuffer[i+1];return hW(this.dataBuffer,r,a)}},db=class extends dy{constructor(t,i,r,a,n,o,s,l){super(t,r,a,s??i.length),this.indexBuffer=i,this.symbolOffsetBuffer=n,this.symbolTableBuffer=o,this.sharedDictionaryCache=l}getValueFromBuffer(t){this.decodedDictionary??(this.decodedDictionary=this.sharedDictionaryCache?.decodedDictionary,this.decodedDictionary??(this.decodedDictionary=this.decodeDictionary(),this.sharedDictionaryCache&&(this.sharedDictionaryCache.decodedDictionary=this.decodedDictionary)));let i=this.indexBuffer[t],r=this.offsetBuffer[i],a=this.offsetBuffer[i+1];return hW(this.decodedDictionary,r,a)}decodeDictionary(){return this.symbolLengthBuffer??=this.offsetToLengthBuffer(this.symbolOffsetBuffer),function(t,i,r){let a=new Uint32Array(i.length);for(let t=1;t<i.length;t++)a[t]=a[t-1]+i[t-1];let n=new Uint8Array(function(t,i){let r=0;for(let a=0;a<i.length;a++){let n=i[a];255===n?(r++,a++):r+=t[n]}return r}(i,r)),o=0;for(let s=0;s<r.length;s++){let l=r[s];if(255===l)s++,n[o++]=r[s];else{let r=i[l],s=a[l];for(;r-- >0;)n[o++]=t[s++]}}return n}(this.symbolTableBuffer,this.symbolLengthBuffer,this.dataBuffer)}offsetToLengthBuffer(t){let i=new Uint32Array(t.length-1),r=t[0];for(let a=1;a<t.length;a++){let n=t[a];i[a-1]=n-r,r=n}return i}};function dx(t,i,r,a,n){let o,s,l,c,u,h=n,d,f;for(let t=0;t<a;t++){let t=hN(i,r);switch(t.physicalStreamType){case dz.PRESENT:{let a=new h$(hG(i,t.numValues,t.byteLength,r),t.numValues);h=n??a;break}case dz.OFFSET:s=hY(i,r,t,void 0,h);break;case dz.LENGTH:{let a=hK(i,r,t);dR.DICTIONARY===t.logicalStreamType.lengthType?o=a:dR.SYMBOL===t.logicalStreamType.lengthType?c=a:d=a;break}case dz.DATA:{let a=i.subarray(r.get(),r.get()+t.byteLength);r.add(t.byteLength);let n=t.logicalStreamType.dictionaryType;dL.FSST===n?u=a:dL.SINGLE===n||dL.SHARED===n?l=a:dL.NONE===n&&(f=a)}}}return function(t,i,r,a,n,o,s){if(i){if(!r||!a||!n||!o)throw Error(`Incomplete FSST dictionary string column "${t}"`);return new db(t,r,a,n,o,i,s)}}(t,u,s,o,l,c,h)??function(t,i,r,a,n){if(i){if(!r||!a)throw Error(`Incomplete dictionary string column "${t}"`);return n?new dv(t,r,a,i,n):new dv(t,r,a,i)}}(t,l,s,o,h)??function(t,i,r,a,n){if(i&&r){if(a)return n?new dv(t,a,i,r,n):new dv(t,a,i,r);if(n&&n.size()!==i.length-1){let a=new Uint32Array(n.size()),o=0;for(let t=0;t<n.size();t++)n.get(t)?a[t]=o++:a[t]=0;return new dv(t,a,i,r,n)}return n?new d_(t,i,r,n):new d_(t,i,r)}}(t,d,f,s,h)}var dw,dk,dT,dS,dA,dC,dE,dM,dP,dD,dI,dz,dL,dF,dR,dO,dB,dj,dN,d$,dV=class extends hi{constructor(t,i,r){super(t,new Uint8Array,r??i.length),this.values=i}getValueFromBuffer(t){return this.values[t]}};function dU(t,i,r,a){let n=Object.create(null),o=i;for(;o<r;){let i=dZ(t[o++],a);if("string"!=typeof i)throw Error(`Map key dictionary index does not resolve to a string: ${i}`);let s=dG(t,o,r,a);n[i]=s.value,o=s.nextIndex}return{value:n,nextIndex:o}}function dG(t,i,r,a){if(i>=r)throw Error("Unexpected end of map value stream");let n=t[i];if(n===C.FALSE)return{value:!1,nextIndex:i+1};if(n===C.TRUE)return{value:!0,nextIndex:i+1};if(n===C.START_MAP){let n=dq(t,i,r);return{value:dU(t,i+2,n,a).value,nextIndex:n}}if(n===C.START_LIST){let n=dq(t,i,r),o=[],s=i+2;for(;s<n;){let i=dG(t,s,n,a);o.push(i.value),s=i.nextIndex}return{value:o,nextIndex:n}}return{value:dZ(n,a),nextIndex:i+1}}function dq(t,i,r){if(i+1>=r)throw Error("Missing length for nested map/list payload");let a=t[i+1];if(a<2)throw Error(`Invalid nested payload length: ${a}`);let n=i+a;if(n>r)throw Error("Nested payload exceeds containing payload bounds");return n}function dZ(t,i){let r=t-C.COUNT;if(r<0||r>=i.length)throw Error(`Scalar dictionary index out of range: ${t}`);return i[r]}function dH(t,i){for(let r of i)t.push(r)}function dW(t){return t instanceof h$}(S=d$||={})[S.STRING=1]="STRING",S[S.INT32=2]="INT32",S[S.UINT32=4]="UINT32",S[S.INT64=8]="INT64",S[S.UINT64=16]="UINT64",S[S.FLOAT=32]="FLOAT",S[S.DOUBLE=64]="DOUBLE",S[S.PRESENCE=128]="PRESENCE",(A=C||={})[A.FALSE=0]="FALSE",A[A.TRUE=1]="TRUE",A[A.START_MAP=2]="START_MAP",A[A.START_LIST=3]="START_LIST",A[A.COUNT=4]="COUNT";function dX(t){switch(t){case 0:case 1:case 2:case 3:return{nullable:(1&t)!=0,columnScope:0,type:"scalarType",scalarType:{longID:(2&t)!=0,type:"logicalType",logicalType:0}};case 4:return{nullable:!1,columnScope:0,type:"complexType",complexType:{type:"physicalType",physicalType:0,children:[]}};case 30:return{nullable:!1,columnScope:0,type:"complexType",complexType:{type:"physicalType",physicalType:1,children:[]}};case 31:return{nullable:!0,columnScope:0,type:"complexType",complexType:{type:"physicalType",physicalType:2,children:[]}};default:let i;var r=t;switch(r){case 10:case 11:i=0;break;case 12:case 13:i=1;break;case 14:case 15:i=2;break;case 16:case 17:i=3;break;case 18:case 19:i=4;break;case 20:case 21:i=5;break;case 22:case 23:i=6;break;case 24:case 25:i=7;break;case 26:case 27:i=8;break;case 28:case 29:i=9;break;default:return null}return{nullable:!!(1&r),columnScope:0,type:"scalarType",scalarType:{longID:!1,type:"physicalType",physicalType:i}}}}function dY(t){return 30===t||31===t}let dK=new TextDecoder,dJ="0-3(ID), 4(GEOMETRY), 10-29(scalars), 30(STRUCT), 31(MAP)";function dQ(t,i){let r=hv(t,i,1)[0];if(0===r)return"";let a=i.get(),n=t.subarray(a,a+r);return i.add(r),dK.decode(n)}var d1=class{constructor(t,i){switch(this._featureData=t,this.properties=this._featureData.properties||{},this._featureData.geometry?.type){case dB.POINT:case dB.MULTIPOINT:this.type=1;break;case dB.LINESTRING:case dB.MULTILINESTRING:this.type=2;break;case dB.POLYGON:case dB.MULTIPOLYGON:this.type=3;break;default:this.type=0}this.extent=i,this.id=Number(this._featureData.id)}loadGeometry(){let t=[];for(let i of this._featureData.geometry.coordinates){let r=[];for(let t of i)r.push(new R(t.x,t.y));t.push(r)}return t}},d0=class{constructor(t){this.features=[],this.featureTable=t,this.name=t.name,this.extent=t.extent,this.version=2,this.features=t.getFeatures(),this.length=this.features.length}feature(t){return new d1(this.features[t],this.extent)}},d2=class{constructor(t){this.layers={};let i=function(t,i=!0){let r=new hp(0),a=[];for(;r.get()<t.length;){let s=hv(t,r,1)[0]>>>0,l=r.get()+s;if(l>t.length)throw Error(`Block overruns tile: ${l} > ${t.length}`);let c=hv(t,r,1)[0]>>>0;if(1!==c&&2!==c){r.set(l);continue}let[u,h]=function(t,i){let r={};r.featureTables=[];let a={};if(a.name=dQ(t,i),0===a.name.length)throw Error("Missing layer name");let n=hv(t,i,1)[0]>>>0,o=hv(t,i,1)[0]>>>0;a.columns=Array(o);for(let r=0;r<o;r++)a.columns[r]=function(t,i){let r,a=hv(t,i,1)[0]>>>0,n=dX(a);
365if(!n)throw Error(`Unsupported column type code ${a}. Supported: ${dJ}`);if(a>=10)r=dQ(t,i);else if(a<4)r="id";else if(4===a)r="geometry";else throw Error(`Unsupported column type code ${a}. Supported: ${dJ}`);let o={...n,name:r};if("complexType"===o.type&&dY(a)){let r=hv(t,i,1)[0]>>>0,a=o.complexType;a.children=Array(r);for(let n=0;n<r;n++)a.children[n]=function t(i,r){let a,n,o=hv(i,r,1)[0]>>>0,s=o>=10?dX(o):null;if(!s)throw Error(`Unsupported field type code ${o}. Supported: 10-29(scalars), 30(STRUCT), 31(MAP)`);let l={...s,name:dQ(i,r)};if("complexType"===l.type&&dY(o)){let a=l.complexType,n=hv(i,r,1)[0]>>>0;a.children=Array(n);for(let o=0;o<n;o++)a.children[o]=t(i,r)}return a=l.name,n=l.nullable,"scalarType"===l.type?{type:"scalarField",scalarField:l.scalarType,name:a,nullable:n}:{type:"complexField",complexField:l.complexType,name:a,nullable:n}}(t,i)}return o}(t,i);return r.featureTables.push(a),[r,n]}(t,r),d=u.featureTables[0],f=null,p=null,m=[],g=0;for(let a of d.columns){var n,o;let s=a.name;if("scalarType"===a.type&&a.scalarType?.type==="logicalType"&&0===a.scalarType.logicalType){let n=null;if(a.nullable){let i=hN(t,r),a=r.get(),o=hG(t,i.numValues,i.byteLength,r);r.set(a+i.byteLength),n=new h$(o,i.numValues)}let o=hN(t,r);g=n?n.size():o.decompressedCount,f=function(t,i,r,a,n,o,s=!1){let l=i.scalarType?.longID?6:4,c="number"==typeof o?void 0:o,u=h8(n,o,t,r,6===l?"int64":"int32");if(4===l)switch(u){case dO.FLAT:return new ha(a,hY(t,r,n,void 0,c),o);case dO.SEQUENCE:{let i=h0(t,r,n);return new hs(a,i[0],i[1],n.numRleValues,!1)}case dO.CONST:return new hl(a,h1(t,r,n),o,!1)}switch(u){case dO.FLAT:let h;return s?new hn(a,(h=function(t,i,r,a){if(r.physicalLevelTechnique===dI.VARINT)return function(t,i,r){switch(i.logicalLevelTechnique1){case hf.DELTA:return i.logicalLevelTechnique2===hf.RLE&&(t=hA(t,i.runs,i.numRleValues)),function(t){t[0]=hk(t[0]);let i=t.length/4*4,r=1;if(i>=4)for(;r<i-4;r+=4){let i=t[r],a=t[r+1],n=t[r+2],o=t[r+3];t[r]=hk(i)+t[r-1],t[r+1]=hk(a)+t[r],t[r+2]=hk(n)+t[r+1],t[r+3]=hk(o)+t[r+2]}for(;r!==t.length;++r)t[r]=hk(t[r])+t[r-1]}(t),t;case hf.RLE:var a,n;return a=t,n=i,r?function(t,i,r){let a=new Float64Array(r),n=0;for(let r=0;r<i;r++){let o=t[r],s=t[r+i];s=hk(s),a.fill(s,n,n+o),n+=o}return a}(a,n.runs,n.numRleValues):hA(a,n.runs,n.numRleValues);case hf.NONE:return r&&function(t){for(let i=0;i<t.length;i++)t[i]=hk(t[i])}(t),t;default:throw Error(`The specified Logical level technique is not supported: ${i.logicalLevelTechnique1}`)}}(function(t,i,r){let a=new Float64Array(r);for(let n=0;n<r;n++)a[n]=function(t,i){let r,a;return a=t[i.get()],i.increment(),r=127&a,a<128||(a=t[i.get()],i.increment(),r|=(127&a)<<7,a<128)||(a=t[i.get()],i.increment(),r|=(127&a)<<14,a<128)||(a=t[i.get()],i.increment(),r|=(127&a)<<21,a<128)?r:function(t,i,r){let a,n;if(n=i[r.get()],r.increment(),a=(112&n)>>4,n<128||(n=i[r.get()],r.increment(),a|=(127&n)<<3,n<128)||(n=i[r.get()],r.increment(),a|=(127&n)<<10,n<128)||(n=i[r.get()],r.increment(),a|=(127&n)<<17,n<128)||(n=i[r.get()],r.increment(),a|=(127&n)<<24,n<128)||(n=i[r.get()],r.increment(),a|=(1&n)<<31,n<128))return 0x100000000*a+(t>>>0);throw Error("Expected varint not more than 10 bytes")}(r|=(15&(a=t[i.get()]))<<28,t,i)}(t,i);return a}(t,i,r.numValues),r,a);let n=hQ(t,i,r),o=a?h4(n,r):h6(n,r);return Float64Array.from(o,Number)}(t,r,n,!1),c?hV(h,c,0):h),o):new h7(a,h3(t,r,n,c),o);case dO.SEQUENCE:{let i=h2(t,r,n);return new h9(a,i[0],i[1],n.numRleValues,!1)}case dO.CONST:return new dg(a,h5(t,r,n),o,!1)}throw Error("Vector type not supported for id column.")}(t,a,r,s,o,n??g,i)}else if("complexType"===a.type&&a.complexType?.type==="physicalType"&&0===a.complexType.physicalType){let i=hv(t,r,1)[0];if(0===g){let i=r.get();g=hN(t,r).decompressedCount,r.set(i)}p=function(t,i,r,a,n){var o,s,l,c,u,h,d,f,p,m,g;let y,_,v,b=hN(t,r),x,w,k,T;if(h8(b,a,t,r)===dO.CONST){let f=h1(t,r,b),p,m,g,y;for(let a=0;a<i-1;a++){let i=hN(t,r);switch(i.physicalStreamType){case dz.LENGTH:switch(i.logicalStreamType.lengthType){case dR.GEOMETRIES:p=hK(t,r,i);break;case dR.PARTS:m=hK(t,r,i);break;case dR.RINGS:g=hK(t,r,i);break;case dR.TRIANGLES:y=hK(t,r,i)}break;case dz.OFFSET:switch(i.logicalStreamType.offsetType){case dF.VERTEX:x=hY(t,r,i);break;case dF.INDEX:T=hY(t,r,i)}break;case dz.DATA:dL.VERTEX===i.logicalStreamType.dictionaryType?w=hX(t,r,i,n):(k={numBits:i.numBits,coordinateShift:i.coordinateShift},w=hY(t,r,i,n))}}return T?void 0!==p||void 0!==m?new du(a,f,y,T,w,{geometryOffsets:p,partOffsets:m,ringOffsets:g}):new du(a,f,y,T,w,void 0):void 0===k?(o={geometryOffsets:p,partOffsets:m,ringOffsets:g},s=x,l=w,new dn(a,f,dN.VEC_2,o,s,l)):(c={geometryOffsets:p,partOffsets:m,ringOffsets:g},u=x,h=w,d=k,new dn(a,f,dN.MORTON,c,u,h,d))}let S=hY(t,r,b),A,C,E,M;for(let a=0;a<i-1;a++){let i=hN(t,r);switch(i.physicalStreamType){case dz.LENGTH:switch(i.logicalStreamType.lengthType){case dR.GEOMETRIES:A=hY(t,r,i);break;case dR.PARTS:C=hY(t,r,i);break;case dR.RINGS:E=hY(t,r,i);break;case dR.TRIANGLES:M=hK(t,r,i)}break;case dz.OFFSET:switch(i.logicalStreamType.offsetType){case dF.VERTEX:x=hY(t,r,i);break;case dF.INDEX:T=hY(t,r,i)}break;case dz.DATA:dL.VERTEX===i.logicalStreamType.dictionaryType?w=hX(t,r,i,n):(k={numBits:i.numBits,coordinateShift:i.coordinateShift},w=hY(t,r,i,n))}}return A?(y=dd(S,A,2),C&&E?(_=df(S,y,C,!1),v=function(t,i,r,a){let n=new Uint32Array(r[r.length-1]+1),o=0;n[0]=o;let s=1,l=1,c=0;for(let u=0;u<t.length;u++){let h=t[u],d=i[u+1]-i[u];if(0!==h&&3!==h)for(let t=0;t<d;t++){let t=r[s]-r[s-1];s++;for(let i=0;i<t;i++)o=n[l++]=o+a[c++]}else for(let t=0;t<d;t++)n[l++]=++o,s++}return n}(S,y,_,E)):C&&(_=function(t,i,r){let a=new Uint32Array(i[i.length-1]+1),n=0;a[0]=n;let o=1,s=0;for(let l=0;l<t.length;l++){let c=t[l],u=i[l+1]-i[l];if(4===c||1===c)for(let t=0;t<u;t++)n=a[o++]=n+r[s++];else for(let t=0;t<u;t++)a[o++]=++n}return a}(S,y,C))):C&&E?(_=dd(S,C,1),v=df(S,_,E,!0)):C&&(_=dd(S,C,0)),T&&!_?new dh(S,M,T,w,void 0):T?new dh(S,M,T,w,{geometryOffsets:y,partOffsets:_,ringOffsets:v}):void 0===k?ds(S,{geometryOffsets:y,partOffsets:_,ringOffsets:v},x,w):(f={geometryOffsets:y,partOffsets:_,ringOffsets:v},p=x,m=w,g=k,new dl(dN.MORTON,S,f,p,m,g))}(t,i,r,g,void 0)}else{let i=!function(t){if("scalarType"===t.type){let i=t.scalarType;if("physicalType"===i.type)switch(i.physicalType){case 0:case 1:case 2:case 3:case 4:case 5:case 
3656:case 7:case 8:default:return!1;case 9:return!0}if("logicalType"===i.type)return!1}else if("complexType"===t.type){let i=t.complexType;if("physicalType"===i.type)switch(i.physicalType){case 0:case 1:case 2:return!0;default:return!1}}return console.warn("Unexpected column type in hasStreamCount",t),!1}(a)?1:hv(t,r,1)[0];if(0===i)continue;let s=(n=g,o=void 0,"scalarType"===a.type?o&&!o.has(a.name)?(hU(i,t,r),null):function(t,i,r,a,n,o){let s;if(0===t)return null;if(o.nullable){let t=hN(i,r),a=t.numValues,n=r.get(),o=hG(i,a,t.byteLength,r);r.set(n+t.byteLength),s=new h$(o,t.numValues)}let l=s??a;switch(n.physicalType){case 4:case 3:return function(t,i,r,a,n){let o=hN(t,i),s=h8(o,n,t,i),l=3===a.physicalType;if(s===dO.FLAT){let a=dW(n)?n:void 0,s=l?hX(t,i,o,void 0,a):hY(t,i,o,void 0,a);return new ha(r.name,s,n)}if(s===dO.SEQUENCE){let a=h0(t,i,o);return new hs(r.name,a[0],a[1],o.numRleValues,l)}let c=l?function(t,i,r){let a=hJ(t,i,r);return 1===a.length?hx(a[0]):hx(a[1])}(t,i,o):h1(t,i,o);return new hl(r.name,c,n,l)}(i,r,o,n,l);case 9:{let a=o.nullable?t-1:t;return dx(o.name,i,r,a,s)??null}case 0:return function(t,i,r,a){let n=hN(t,i),o=n.numValues,s=i.get(),l=dW(a)?a:void 0,c=hG(t,o,n.byteLength,i,l);i.set(s+n.byteLength);let u=new h$(c,o);return new dp(r.name,u,a)}(i,r,o,l);case 6:case 5:return function(t,i,r,a,n){let o=hN(t,i),s=h8(o,a,t,i,"int64"),l=5===n.physicalType;if(s===dO.FLAT){let n=dW(a)?a:void 0,s=l?h4(hQ(t,i,o),o,n):h3(t,i,o,n);return new h7(r.name,s,a)}if(s===dO.SEQUENCE){let a=h2(t,i,o);return new h9(r.name,a[0],a[1],o.numRleValues,l)}let c=l?function(t,i,r){let a=hQ(t,i,r);return 1===a.length?hw(a[0]):hw(a[1])}(t,i,o):h5(t,i,o);return new dg(r.name,c,a,l)}(i,r,o,l,n);case 7:return function(t,i,r,a){let n=hN(t,i),o=dW(a)?a:void 0,s=hq(t,i,n.numValues,o);return new dm(r.name,s,a)}(i,r,o,l);case 8:return function(t,i,r,a){let n=hN(t,i),o=dW(a)?a:void 0,s=hZ(t,i,n.numValues,o);return new hn(r.name,s,a)}(i,r,o,l);default:throw Error(`The specified data type for the field is currently not supported: ${n}`)}}(i,t,r,n,a.scalarType,a):a.complexType?.physicalType===2?function(t,i,r,a){let n=function(t){let i="complexType"===t.type?t.complexType.children:void 0;return i&&0!==i.length?i.map(i=>t.name+(i.name??"")):[t.name]}(r);if(0===a)return n.map(t=>new dV(t,[]));let o=function(t,i,r){let a=t[i.get()];i.add(1);let n=hY(t,i,hN(t,i)),o=r-1,s=[];a&d$.STRING&&(o-=function(t,i,r){let a=t[i.get()];i.add(1);let n=dx("",t,i,a);if(n)for(let t=0;t<n.size;t++)r.push(n.getValue(t));return a}(t,i,s)),o-=function(t,i,r,a){var n;let o=0;return r&d$.INT32?(dH(a,hX(t,i,hN(t,i))),o++):r&d$.INT64&&(dH(a,h4(hQ(t,i,n=hN(t,i)),n,void 0)),o++),r&d$.UINT32?(dH(a,hY(t,i,hN(t,i))),o++):r&d$.UINT64&&(dH(a,h3(t,i,hN(t,i))),o++),o}(t,i,a,s),o-=function(t,i,r,a){let n=0;return r&d$.FLOAT&&(dH(a,hq(t,i,hN(t,i).numValues)),n++),r&d$.DOUBLE&&(dH(a,hZ(t,i,hN(t,i).numValues)),n++),n}(t,i,a,s);let l,c=0;if(a&d$.PRESENCE){let r=function(t,i){let r=hN(t,i);if(r.physicalStreamType!==dz.PRESENT)throw Error(`Expected PRESENT stream for map column but found: ${r.physicalStreamType}`);let a=r.numValues,n=i.get(),o=new h$(hG(t,a,r.byteLength,i),a);return i.set(n+r.byteLength),{value:o,count:a}}(t,i);l=r.value,c=r.count,o--}let u=new Uint32Array;if(o>0&&(u=hY(t,i,hN(t,i)),o--),0!==o)throw Error(`Unexpected number of remaining streams while decoding map column: ${o}`);return{lengthStream:n,dictionary:s,presentStream:l,presentCount:c,flattenedValues:u}}(t,i,a),s=(o.presentStream?o.presentCount:o.lengthStream.length)/n.length,l=[],c=0,u=0;for(let t=0;t<n.length;t++){let i=function(t,i,r,a,n){let{lengthStream:o,flattenedValues:s,presentStream:l,dictionary:c}=t,u=i*r,h=r,d;if(l){d=new h$(new Uint8Array(Math.ceil(r/8)),r),h=0;for(let t=0;t<r;t++)l.get(u+t)&&(d.set(t,!0),h++)}let f=a+h;if(f>o.length)throw Error("Merged map counts underflow while decoding child streams");let p=Array(r),m=a,g=n;for(let t=0;t<r;t++){var y,_,v,b;if(l&&!l.get(u+t)){p[t]=null;continue}let i=g+o[m++];if(i>s.length)throw Error("Map value stream underflow while decoding feature payload");let r=(y=s,_=g,v=i,b=c,v-_==1||y[_]===C.START_LIST?dG(y,_,v,b):dU(y,_,v,b));p[t]=r.value,g=r.nextIndex}let x=0;for(let t=a;t<f;t++)x+=o[t];let w=n+x;if(g!==w)throw Error("Unused flattened map values remain after decode");return{value:p,nullabilityBuffer:d,countsEnd:f,valuesEnd:w}}(o,t,s,c,u);l.push(new dV(n[t],i.value,i.nullabilityBuffer)),c=i.countsEnd,u=i.valuesEnd}return l}(t,r,a,i):0===i?null:function(t,i,r,a){let n,o,s,l,c=!1;for(;!c;){let r=hN(t,i);switch(r.physicalStreamType){case dz.LENGTH:dR.DICTIONARY===r.logicalStreamType.lengthType?n=hK(t,i,r):s=hK(t,i,r);break;case dz.DATA:dL.SINGLE===r.logicalStreamType.dictionaryType||dL.SHARED===r.logicalStreamType.dictionaryType?(o=t.subarray(i.get(),i.get()+r.byteLength),c=!0):l=t.subarray(i.get(),i.get()+r.byteLength),i.add(r.byteLength)}}if("complexType"!==r.type)throw Error(`Shared dictionary column ${r.name} must be a complex (struct) column.`);if(!n||!o)throw Error(`Incomplete shared dictionary for column "${r.name}"`);let u=r.complexType.children,h=[],d=l?{}:void 0,f=0;for(let c of u){let u,p=hv(t,i,1)[0];if(0===p)continue;let m=c.name?`${r.name}${c.name}`:r.name;if(a&&!a.has(m)){hU(p,t,i);continue}if("scalarField"!==c.type||9!==c.scalarField.physicalType)throw Error("Currently only scalar string fields are implemented for a struct.");if(p>1&&!c.nullable||1===p&&c.nullable)throw Error(`The number of streams for the child field ${c.name} does not match its nullability. nullibilty: ${c.nullable}, numStreams: ${p}`);
vendor: 6,091 bytes, line 365
365if(c.nullable){let r=hN(t,i);u=new h$(hG(t,r.numValues,r.byteLength,i),r.numValues)}let g=hY(t,i,hN(t,i),void 0,u);if(l){if(!s)throw Error(`Incomplete shared FSST dictionary for column "${m}"`);h[f++]=new db(m,g,n,o,s,l,u,d)}else h[f++]=new dv(m,g,n,o,u)}return h}(t,r,a,o));if(s)if(Array.isArray(s))for(let t of s)m.push(t);else m.push(s)}}let y=new hc(d.name,p,f,m,h);a.push(y),r.set(l)}return a}(new Uint8Array(t));this.layers=i.reduce((t,i)=>({...t,[i.name]:new d0(i)}),{})}};function d3(t,i,r,a,n){return tn(t,(t,o)=>{let s=i instanceof nj?i.get(o):null;return"object"==typeof s&&s&&"evaluate"in s?s.evaluate(r,a,void 0,n):s})}function d5(t,i){return i-t}nT("FeatureIndex",class{constructor(t,i){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new nw(8192,16,0),this.grid3D=new nw(8192,16,0),this.featureIndexArray=new oM,this.promoteId=i}insert(t,i,r,a,n,o){let s=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,a,n);let l=o?this.grid3D:this.grid;for(let t of i){let i=[1/0,1/0,-1/0,-1/0];for(let r of t)i[0]=Math.min(i[0],r.x),i[1]=Math.min(i[1],r.y),i[2]=Math.max(i[2],r.x),i[3]=Math.max(i[3],r.y);i[0]<8192&&i[1]<8192&&i[2]>=0&&i[3]>=0&&l.insert(s,i[0],i[1],i[2],i[3])}}loadVTLayers(){return this.vtLayers||("mlt"===this.encoding?this.vtLayers=new d2(this.rawTileData).layers:this.vtLayers=new lX(new c5(this.rawTileData)).layers,this.sourceLayerCoder=new he(this.vtLayers?Object.keys(this.vtLayers).sort():[u9])),this.vtLayers}query(t,i,r,a){this.loadVTLayers();let n=t.params,o=8192/t.tileSize/t.scale,s=a$(n.filter,"queryRenderedFeatures filter",n.globalState),l=t.queryGeometry,c=t.queryPadding*o,u=lV.fromPoints(l),h=this.grid.query(u.minX-c,u.minY-c,u.maxX+c,u.maxY+c),d=lV.fromPoints(t.cameraQueryGeometry).expandBy(c);for(let i of this.grid3D.query(d.minX,d.minY,d.maxX,d.maxY,(i,r,a,n)=>(function(t,i,r,a,n){for(let o of t)if(i<=o.x&&r<=o.y&&a>=o.x&&n>=o.y)return!0;let o=[new R(i,r),new R(i,n),new R(a,n),new R(a,r)];if(t.length>2){for(let i of o)if(sP(t,i))return!0}for(let i=0;i<t.length-1;i++)if(function(t,i,r){let a=r[0],n=r[2];if(t.x<a.x&&i.x<a.x||t.x>n.x&&i.x>n.x||t.y<a.y&&i.y<a.y||t.y>n.y&&i.y>n.y)return!1;let o=th(t,i,r[0]);return o!==th(t,i,r[1])||o!==th(t,i,r[2])||o!==th(t,i,r[3])}(t[i],t[i+1],o))return!0;return!1})(t.cameraQueryGeometry,i-c,r-c,a+c,n+c)))h.push(i);h.sort(d5);let f={},p;for(let c of h){if(c===p)continue;p=c;let u=this.featureIndexArray.get(c),h=null;this.loadMatchingFeature(f,u.bucketIndex,u.sourceLayerIndex,u.featureIndex,s,n.layers,n.availableImages,i,r,a,(i,r,a)=>(h||=sb(i),r.queryIntersectsFeature({queryGeometry:l,feature:i,featureState:a,geometry:h,zoom:this.z,transform:t.transform,pixelsToTileUnits:o,pixelPosMatrix:t.pixelPosMatrix,unwrappedTileID:this.tileID.toUnwrapped(),getElevation:t.getElevation})))}return f}loadMatchingFeature(t,i,r,a,n,o,s,l,c,u,h){let d=this.bucketLayerIDs[i];if(o&&!d.some(t=>o.has(t)))return;let f=this.sourceLayerCoder.decode(r),p=this.vtLayers[f].feature(a);if(n.needGeometry){let t=sx(p,!0);if(!n.filter(new nD(this.tileID.overscaledZ),t,this.tileID.canonical))return}else if(!n.filter(new nD(this.tileID.overscaledZ),p))return;let m=this.getId(p,f);for(let i of d){if(o&&!o.has(i))continue;let r=l[i];if(!r)continue;let n={};m&&u&&(n=u.getState(r.sourceLayer||"_geojsonTileLayer",m));let d=e8({},c[i]);d.paint=d3(d.paint,r.paint,p,n,s),d.layout=d3(d.layout,r.layout,p,n,s);let f=!h||h(p,r,n);if(!f)continue;let g=new ht(p,this.z,this.x,this.y,m);g.layer=d;let y=t[i];void 0===y&&(y=t[i]=[]),y.push({featureIndex:a,feature:g,intersectionZ:f})}}lookupSymbolFeatures(t,i,r,a,n,o,s,l){let c={};this.loadVTLayers();let u=a$(n.filterSpec,"queryRenderedFeatures symbol filter",n.globalState);for(let n of t)this.loadMatchingFeature(c,r,a,n,u,o,s,l,i);return c}hasLayer(t){for(let i of this.bucketLayerIDs)for(let r of i)if(t===r)return!0;return!1}getId(t,i){let r=t.id;if(this.promoteId){let a="string"==typeof this.promoteId?this.promoteId:this.promoteId[i];"boolean"==typeof(r=t.properties[a])&&(r=Number(r)),void 0===r&&t.properties?.cluster&&this.promoteId&&(r=Number(t.properties.cluster_id))}return r}},{omit:["rawTileData","sourceLayerCoder"]});var d4=class{constructor(t,i){this.max=t,this.onRemove=i,this.reset()}reset(){for(let t in this.data)for(let i of this.data[t])i.timeout&&clearTimeout(i.timeout),this.onRemove(i.value);return this.data={},this.order=[],this}add(t,i,r){let a=t.wrapped().key;void 0===this.data[a]&&(this.data[a]=[]);let n={value:i,timeout:void 0};if(void 0!==r&&(n.timeout=setTimeout(()=>{this.remove(t,n)},r)),this.data[a].push(n),this.order.push(a),this.order.length>this.max){let t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this}has(t){return t.wrapped().key in this.data}getAndRemove(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null}_getAndRemoveByKey(t){let i=this.data[t].shift();return i.timeout&&clearTimeout(i.timeout),0===this.data[t].length&&delete this.data[t],this.order.splice(this.order.indexOf(t),1),i.value}getByKey(t){let i=this.data[t];return i?i[0].value:null}get(t){return this.has(t)?this.data[t.wrapped().key][0].value:null}remove(t,i){if(!this.has(t))return this;let r=t.wrapped().key,a=void 0===i?0:this.data[r].indexOf(i),n=this.data[r][a];return this.data[r].splice(a,1),n.timeout&&clearTimeout(n.timeout),0===this.data[r].length&&delete this.data[r],this.onRemove(n.value),this.order.splice(this.order.indexOf(r),1),this}setMaxSize(t){for(this.max=t;this.order.length>this.max;){let t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this}filter(t){let i=[];for(let r in this.data)for(let a of this.data[r])t(a.value)||i.push(a);for(let t of i)this.remove(t.value.tileID,t)}};r.d(i,{$:()=>l8,$n:()=>ta,$r:()=>ed,$t:()=>nL,A:()=>u_,Ai:()=>X,Ar:()=>eH,At:()=>sx,B:()=>cO,Bn:()=>e4,Br:()=>eL,Bt:()=>oJ,C:()=>uN,Ci:()=>Z,Cn:()=>tV,Cr:()=>tb,Di:()=>Y,Dn:()=>tj,Dr:()=>tr,Dt:()=>sW,E:()=>uD,Ei:()=>ee,En:()=>tq,Er:()=>tC,Et:()=>sH,F:()=>ut,Fi:()=>B,Fr:()=>ti,Ft:()=>sr,Gn:()=>e$,Gr:()=>eE,Gt:()=>oP,Hn:()=>eG,Hr:()=>eR,Ht:()=>
365oG,I:()=>c9,Ii:()=>O,In:()=>eX,Ir:()=>eB,It:()=>sa,J:()=>cr,Jr:()=>eT,Jt:()=>oH,Kn:()=>eN,Kr:()=>eM,Kt:()=>oZ,L:()=>ue,Li:()=>R,Lt:()=>sn,M:()=>uu,Mi:()=>N,Mn:()=>tF,Mr:()=>te,Mt:()=>o9,Ni:()=>$,Nn:()=>tR,Nr:()=>tu,Nt:()=>st,O:()=>uk,Oi:()=>K,On:()=>tB,Or:()=>tf,P:()=>ui,Pi:()=>j,Pr:()=>e6,Pt:()=>si,Qn:()=>ej,Qr:()=>eg,Qt:()=>nH,R:()=>c7,Rr:()=>eI,Rt:()=>so,S:()=>uU,Si:()=>q,Sr:()=>eW,T:()=>uL,Ti:()=>et,Tr:()=>tT,Tt:()=>sY,Un:()=>eU,Ur:()=>eP,Ut:()=>oX,V:()=>cS,Vn:()=>tl,Vr:()=>eO,Vt:()=>ov,Wn:()=>eV,Wr:()=>eD,Wt:()=>oD,X:()=>ct,Xn:()=>eY,Xr:()=>el,Y:()=>ci,Yn:()=>tw,Yr:()=>eS,Yt:()=>n2,Z:()=>l9,Zn:()=>eK,Zr:()=>en,Zt:()=>nV,_:()=>uK,_i:()=>G,_n:()=>tW,_r:()=>tt,_t:()=>lM,a:()=>ht,ai:()=>eb,an:()=>nx,ar:()=>e2,at:()=>l2,bi:()=>ei,br:()=>eZ,ci:()=>eu,cn:()=>a$,cr:()=>t_,ct:()=>l0,d:()=>u5,di:()=>ec,dn:()=>iG,dr:()=>tP,ei:()=>em,en:()=>nD,er:()=>e8,et:()=>l6,f:()=>u3,fi:()=>e_,fn:()=>iz,fr:()=>tI,g:()=>u1,gi:()=>U,gn:()=>tX,gr:()=>eJ,h:()=>u0,hi:()=>ek,hr:()=>tn,ii:()=>ep,in:()=>nb,ir:()=>tA,it:()=>l3,ji:()=>W,jn:()=>tL,jr:()=>eq,jt:()=>se,k:()=>uy,ki:()=>J,kr:()=>tx,kt:()=>sk,li:()=>eh,lr:()=>tD,lt:()=>lY,m:()=>u7,mi:()=>ev,mr:()=>e1,n:()=>d4,ni:()=>eo,nr:()=>td,nt:()=>l4,oi:()=>ex,ot:()=>lQ,p:()=>u4,pi:()=>ey,pn:()=>tJ,pr:()=>tp,pt:()=>lV,q:()=>ce,qn:()=>ts,qr:()=>eA,qt:()=>oI,ri:()=>ef,rr:()=>e0,rt:()=>l5,si:()=>ew,sn:()=>nv,sr:()=>tS,st:()=>l1,ti:()=>eo,tn:()=>nP,tr:()=>to,tt:()=>l7,u:()=>u2,ui:()=>ec,ur:()=>ty,vi:()=>V,vn:()=>tY,vr:()=>tm,vt:()=>lP,w:()=>uO,wi:()=>H,wr:()=>eQ,xi:()=>Q,xr:()=>tk,xt:()=>s2,y:()=>uX,yi:()=>er,yr:()=>e7,zn:()=>e3,zr:()=>eF,zt:()=>sl},{An:tO,Fn:85.051129,Jn:e5,K:t=>"fill-extrusion"===t.type,Ln:t=>new Promise((i,r)=>{let a=new Image;a.onload=()=>{i(a),URL.revokeObjectURL(a.src),a.onload=null,window.requestAnimationFrame(()=>a.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=")},a.onerror=()=>r(Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));let n=new Blob([new Uint8Array(t)],{type:"image/png"});a.src=URL.createObjectURL(n)}),Ot:t=>"circle"===t.type,Rn:tv,Sn:(t,i)=>tG(e8(t,{type:"json"}),i),St:t=>"hillshade"===t.type,Tn:tG,U:ck,W:t=>"line"===t.type,Xt:t=>"raster"===t.type,b:t=>"background"===t.type,bn:tN,ft:lU,hn:tK,mn:["type","source","source-layer","minzoom","maxzoom","filter","layout"],mt:t=>"fill"===t.type,on:nd,rn:n_,s:u9,un:i3,ut:6371008.8,v:t=>"custom"===t.type,wn:t=>{let i=window.document.createElement("video");return i.muted=!0,new Promise(r=>{for(let a of(i.onloadstart=()=>{r(i)},t)){let t=window.document.createElement("source");tq(a)||(i.crossOrigin="Anonymous"),t.src=a,i.appendChild(t)}})},wt:t=>"heatmap"===t.type,x:t=>"symbol"===t.type,xn:(t,i)=>tG(e8(t,{type:"arrayBuffer"}),i),yt:t=>"color-relief"===t.type})},41006(t,i,r){let a,n,o,s,l,c,u,h,d,f,p,m,g,y,_,v,b,x,w;var k,T=r(85012);function S(){var t=new T.Pi(4);return T.Pi!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t}let A={frame(t,i,r,a){let n=a||window,o=n.requestAnimationFrame(t=>{s(),i(t)}),{unsubscribe:s}=(0,T.kr)(t.signal,"abort",()=>{s(),n.cancelAnimationFrame(o),r(new T.jn(t.signal.reason))},!1)},frameAsync(t,i){return new Promise((r,a)=>{this.frame(t,r,a,i)})},getImageData(t,i=0){return this.getImageCanvasContext(t).getImageData(-i,-i,t.width+2*i,t.height+2*i)},getImageCanvasContext(t){let i;if((0,T.Ii)()&&!(0,T.Fi)())i=new OffscreenCanvas(t.width,t.height).getContext("2d",{willReadFrequently:!0});else{let r=window.document.createElement("canvas");r.width=t.width,r.height=t.height,i=r.getContext("2d",{willReadFrequently:!0})}if(!i)throw Error("failed to create canvas 2d context");return i.drawImage(t,0,0,t.width,t.height),i},resolveURL:t=>((a||=document.createElement("a")).href=t,a.href),get hardwareConcurrency(){return"u">typeof navigator&&navigator.hardwareConcurrency||4},get prefersReducedMotion(){return void 0===o?!!matchMedia&&(n??=matchMedia("(prefers-reduced-motion: reduce)")).matches:o},set prefersReducedMotion(e){o=e}},C=new class{constructor(){this._frozenAt=null}getCurrentTime(){return null===this._frozenAt?performance.now():this._frozenAt}setNow(t){this._frozenAt=t}restoreNow(){this._frozenAt=null}isFrozen(){return null!==this._frozenAt}};function E(){return C.getCurrentTime()}var M=class t{static{this.docStyle="u">typeof window&&window.document?.documentElement.style}static{this.selectProp=!t.docStyle||"userSelect"in t.docStyle?"userSelect":"webkitUserSelect"}static create(t,i,r){let a=window.document.createElement(t);return void 0!==i&&(a.className=i),r&&r.appendChild(a),a}static createNS(t,i){return window.document.createElementNS(t,i)}static disableDrag(){t.docStyle&&t.selectProp&&(t.userSelect=t.docStyle[t.selectProp],t.docStyle[t.selectProp]="none")}static enableDrag(){t.docStyle&&t.selectProp&&(t.docStyle[t.selectProp]=t.userSelect)}static suppressClickInternal(i){i.preventDefault(),i.stopPropagation(),window.removeEventListener("click",t.suppressClickInternal,!0)}static suppressClick(){window.addEventListener("click",t.suppressClickInternal,!0),window.setTimeout(()=>{window.removeEventListener("click",t.suppressClickInternal,!0)},0)}static getScale(t){let i=t.getBoundingClientRect();return{x:i.width/t.offsetWidth||1,y:i.height/t.offsetHeight||1,boundingClientRect:i}}static getPoint(t,i,r){let a=i.boundingClientRect;return new T.Li((r.clientX-a.left)/i.x-t.clientLeft,(r.clientY-a.top)/i.y-t.clientTop)}static mousePos(i,r){let a=t.getScale(i);return t.getPoint(i,a,r)}static touchPos(i,r){let a=[],n=t.getScale(i);for(let o of r)a.push(t.getPoint(i,n,o));return a}static sanitize(i){let r=new DOMParser().parseFromString(i,"text/html").body||document.createElement("body");for(let t of r.querySelectorAll("script, iframe"))t.remove();return t.clean(r),r.innerHTML}static isPossiblyDangerous(t,i){let r=i.replace(/\s+/g,"").toLowerCase();if(["src","href","xlink:href"].includes(t)&&(r.includes("javascript:")||r.includes("data:"))||"srcdoc"===t||t.startsWith("on"))return!0}static clean(i){for(let r of i.children)t.removeAttributes(r),t.clean(r)}static removeAttributes(i){for(let{name:r,value:a}of Array.from(i.attributes))t.isPossiblyDangerous(r,a)&&i.removeAttribute(r)}};(k=s||={}).resetRequestQueue=()=>{g=[],y=0,_=0,v={}},k.addThrottleControl=t=>{let i=_++;return v[i]=t,i},k.removeThrottleControl=t=>{delete v[t],x()},k.transformAndGetImage=async function(t,i,r,a,n=!0,o){let l=await t.transformRequest(i,r);return(0,T.Nn)(a.signal),s.getImage(l,a,n,o)},k.getImage=(t,i,r=!0,a)=>new Promise((n,o)=>{t.headers||={},t.headers.accept="image/webp,*/*",(0,T.er)(t,{type:"image"}
365),g.push({abortController:i,requestParameters:t,supportImageRefresh:r,imageBitmapOptions:a,state:"queued",onError:t=>{o(t)},onSuccess:t=>{n(t)}}),x()}),b=async t=>{t.state="running";let{requestParameters:i,supportImageRefresh:r,imageBitmapOptions:a,onError:n,onSuccess:o,abortController:s}=t,l=!1===r&&!a&&!(0,T.pr)(self)&&!(0,T.On)(i.url)&&(!i.headers||Object.keys(i.headers).reduce((t,i)=>t&&"accept"===i,!0));y++;let c=l?w(i,s):(0,T.Tn)(i,s);try{let i,r=await c;delete t.abortController,t.state="completed",r.data instanceof HTMLImageElement||(0,T.cr)(r.data)?o(r):o(r.data&&0!==r.data.byteLength?{data:await (i=r.data,"function"==typeof createImageBitmap?(0,T.Rn)(i,a):(0,T.Ln)(i)),cacheControl:r.cacheControl,expires:r.expires}:{data:null,cacheControl:r.cacheControl,expires:r.expires})}catch(i){delete t.abortController,n((0,T.Qn)(i))}finally{y--,x()}},x=()=>{let t=(()=>{for(let t of Object.keys(v))if(v[t]())return!0;return!1})()?T.An.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:T.An.MAX_PARALLEL_IMAGE_REQUESTS;for(let i=y;i<t&&g.length>0;i++){let t=g.shift();if(t.abortController.signal.aborted){i--;continue}b(t)}},w=(t,i)=>new Promise((r,a)=>{let n=new Image,o=t.url,s=t.credentials;s&&"include"===s?n.crossOrigin="use-credentials":(s&&"same-origin"===s||!(0,T.En)(o))&&(n.crossOrigin="anonymous"),i.signal.addEventListener("abort",()=>{n.src="",a(new T.jn(i.signal.reason))}),n.fetchPriority="high",n.onload=()=>{n.onerror=n.onload=null,r({data:n})},n.onerror=()=>{n.onerror=n.onload=null,i.signal.aborted||a(Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))},n.src=o}),s.resetRequestQueue();var P=class{constructor(t){this._transformRequestFn=t??null}transformRequest(t,i){return this._transformRequestFn&&this._transformRequestFn(t,i)||{url:t}}setTransformRequest(t){this._transformRequestFn=t}},D=class extends T._n{},I=class extends D{},z=class extends D{constructor(t={}){super("style.load",t)}},F=class extends D{constructor(t,i={}){super(t,i),this.dataType="style"}},R=class extends D{constructor(t,i={}){super(t,i),this.dataType="source"}},O=class extends D{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,i,r,a={}){r=r instanceof MouseEvent?r:new MouseEvent(t,r);let n=M.mousePos(i.getCanvas(),r),o=i.unproject(n);super(t,(0,T.er)({point:n,lngLat:o,originalEvent:r},a)),this._defaultPrevented=!1,this.target=i}},B=class extends D{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,i,r){let a="touchend"===t?r.changedTouches:r.touches,n=M.touchPos(i.getCanvasContainer(),a),o=n.map(t=>i.unproject(t)),s=n.reduce((t,i,r,a)=>t.add(i.div(a.length)),new T.Li(0,0)),l=i.unproject(s);super(t,{points:n,point:s,lngLats:o,lngLat:l,originalEvent:r}),this._defaultPrevented=!1}},j=class extends D{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,i){super("wheel",{originalEvent:i}),this._defaultPrevented=!1}},N=class extends D{},$=class extends D{constructor(t={}){super("terrain",t)}},V=class extends D{constructor(t={}){super("projectiontransition",t)}},U=class extends D{},G=class extends D{constructor(t={}){super("styleimagemissing",t)}};function q(t){t=t.slice();let i=Object.create(null);for(let r=0;r<t.length;r++)i[t[r].id]=t[r];for(let r=0;r<t.length;r++)"ref"in t[r]&&(t[r]=function(t,i){let r={};for(let i in t)"ref"!==i&&(r[i]=t[i]);return T.mn.forEach(t=>{t in i&&(r[t]=i[t])}),r}(t[r],i[t[r].ref]));return t}function Z(t,i){if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(let r=0;r<t.length;r++)if(!Z(t[r],i[r]))return!1;return!0}if("object"==typeof t&&t&&null!==i){if("object"!=typeof i||Object.keys(t).length!==Object.keys(i).length)return!1;for(let r in t)if(!Z(t[r],i[r]))return!1;return!0}return t===i}function H(t,i){t.push(i)}function W(t,i,r){H(r,{command:"addSource",args:[t,i[t]]})}function X(t,i,r){H(i,{command:"removeSource",args:[t]}),r[t]=!0}function Y(t,i,r,a,n,o){for(let s in i||={},t||={})Object.prototype.hasOwnProperty.call(t,s)&&(Z(t[s],i[s])||r.push({command:o,args:[a,s,i[s],n]}));for(let s in i)Object.prototype.hasOwnProperty.call(i,s)&&!Object.prototype.hasOwnProperty.call(t,s)&&(Z(t[s],i[s])||r.push({command:o,args:[a,s,i[s],n]}))}function K(t){return t.id}function J(t,i){return t[i.id]=i,t}function Q(t){let i=[];if("string"==typeof t)i.push({id:"default",url:t});else if(t&&t.length>0){let r=[];for(let{id:a,url:n}of t){let t=`${a}${n}`;r.includes(t)||(r.push(t),i.push({id:a,url:n}))}}return i}function ee(t,i,r){try{let a=new URL(t);return a.pathname+=`${i}${r}`,a.toString()}catch{throw Error(`Invalid sprite URL "${t}", must be absolute. Modify style specification directly or use TransformStyleFunction to correct the issue dynamically`)}}async function et(t,i,r,a){let n=Q(t),o=r>1?"@2x":"",l={},c={};for(let{id:t,url:r}of n){let n=await i.transformRequest(ee(r,o,".json"),"SpriteJSON");l[t]=(0,T.Sn)(n,a);let u=await i.transformRequest(ee(r,o,".png"),"SpriteImage");c[t]=s.getImage(u,a)}return await Promise.all([...Object.values(l),...Object.values(c)]),ei(l,c)}async function ei(t,i){let r={};for(let a in t){r[a]={};let n=(await i[a]).data;if(!n)throw Error(`Could not load sprite image for ${a}: the response is empty`);let o=A.getImageCanvasContext(n),s=(await t[a]).data;for(let t in s){let{width:i,height:n,x:l,y:c,sdf:u,pixelRatio:h,stretchX:d,stretchY:f,content:p,textFitWidth:m,textFitHeight:g}=s[t],y={width:i,height:n,x:l,y:c,context:o};r[a][t]={data:null,pixelRatio:h,sdf:u,stretchX:d,stretchY:f,content:p,textFitWidth:m,textFitHeight:g,spriteData:y}}}return r}var er=class extends T.vn{constructor(){super(),this.images={},this.updateVersion=0,this.loaded=!1,this.requestors=[],this.missingImageResolver=null,this._spriteImagesIds={},this._imagesIds=null,this._renderCallbacksDispatchedThisFrame={}}destroy(){for(let t of Object.keys(this.images))this.removeImage(t);this._spriteImagesIds={}}isLoaded(){return this.loaded}setLoaded(t){if(this.loaded!==t&&(this.loaded=t,t)){for(let{ids:t,promiseResolve:i}of this.requestors)i(this._getImagesForIds(t));this.requestors=[]}}getImage(t){let i=this.images[t];if(i&&!i.data&&i.spriteData){let t=i.spriteData;i.data=new T.Dt({width:t.width,height:t.height},t.context.getImageData(t.x,t.y,t.width,t.height).data),i.spriteData=null}return i}addImage(t,i){if(this.images[t])throw Error(`Image id ${t} already exist, use updateImage instead`);
vendor: 3,935 bytes, line 365
365this._validate(t,i)&&(this.images[t]=i,this._imagesIds=null,i.isWebGLImage&&this.updateImage(t,i,!1))}_validate(t,i){let r=!0,a=i.data||i.spriteData;return this._validateStretch(i.stretchX,a?.width)||(this.fire(new T.gn(Error(`Image "${t}" has invalid "stretchX" value`))),r=!1),this._validateStretch(i.stretchY,a?.height)||(this.fire(new T.gn(Error(`Image "${t}" has invalid "stretchY" value`))),r=!1),this._validateContent(i.content,i)||(this.fire(new T.gn(Error(`Image "${t}" has invalid "content" value`))),r=!1),r}_validateStretch(t,i){if(!t)return!0;let r=0;for(let a of t){if(a[0]<r||a[1]<a[0]||i<a[1])return!1;r=a[1]}return!0}_validateContent(t,i){if(!t)return!0;if(4!==t.length)return!1;let r=i.spriteData,a=r?.width||i.data.width,n=r?.height||i.data.height;return!(t[0]<0)&&!(a<t[0])&&!(t[1]<0)&&!(n<t[1])&&!(t[2]<0)&&!(a<t[2])&&!(t[3]<0)&&!(n<t[3])&&!(t[2]<t[0])&&t[3]>=t[1]}updateImage(t,i,r=!0){let a=this.images[t];if(r){let t=a.data||a.spriteData;if(t.width!==i.data.width||t.height!==i.data.height)throw Error(`size mismatch between old image (${t.width}x${t.height}) and new image (${i.data.width}x${i.data.height}).`)}i.version=(a.version??0)+1,this.images[t]=i,this.updateVersion++}removeImage(t){let i=this.images[t];i&&(delete this.images[t],this._imagesIds=null,i.userImage?.onRemove&&i.userImage.onRemove())}listImages(){return this._imagesIds??=Object.keys(this.images),this._imagesIds}_getSpriteImageId(t,i){return"default"===t?i:`${t}:${i}`}setSpriteImages(t,i){let r=this._spriteImagesIds[t]??[],a=[];for(let r in i){let n=this._getSpriteImageId(t,r);a.push(n),n in this.images?this.updateImage(n,i[r],!1):this.addImage(n,i[r])}let n=new Set(a),o=r.filter(t=>!n.has(t));for(let t of o)this.removeImage(t);return this._spriteImagesIds[t]=a,{loaded:a,removed:o}}removeSpriteImages(t){let i=this._spriteImagesIds[t]??[];for(let t of i)this.removeImage(t);return delete this._spriteImagesIds[t],i}removeAllSpriteImages(){let t=Object.values(this._spriteImagesIds).flat();for(let i of t)this.removeImage(i);return this._spriteImagesIds={},t}setMissingImageResolver(t){this.missingImageResolver=t}getImages(t){return new Promise((i,r)=>{let a=!0;if(!this.isLoaded())for(let i of t)this.images[i]||(a=!1);this.isLoaded()||a?i(this._getImagesForIds(t)):this.requestors.push({ids:t,promiseResolve:i})})}async _getImagesForIds(t){let i=new Set(t.filter(t=>!this.getImage(t))),r=this.missingImageResolver;r&&await Promise.allSettled(Array.from(i,t=>r(t)));let a={};for(let r of t){let t=this.getImage(r);t&&(i.delete(r),a[r]={data:t.data.clone(),pixelRatio:t.pixelRatio,sdf:t.sdf,version:t.version,stretchX:t.stretchX,stretchY:t.stretchY,content:t.content,textFitWidth:t.textFitWidth,textFitHeight:t.textFitHeight,hasRenderCallback:!!t.userImage?.render,isWebGLImage:t.isWebGLImage})}for(let t of i)this.fire(new G({id:t})),(0,T.Nr)(`Image "${t}" could not be loaded. Please make sure you have added the image before it is needed with map.addImage(), resolved it with map.setMissingStyleImageResolver(), or included it in a "sprite" property in your style.`);return a}beginFrame(){this._renderCallbacksDispatchedThisFrame={}}dispatchRenderCallbacks(t){for(let i of t){if(this._renderCallbacksDispatchedThisFrame[i])continue;this._renderCallbacksDispatchedThisFrame[i]=!0;let t=this.getImage(i);t||(0,T.Nr)(`Image with ID: "${i}" was not found`),(0,T.L)(t)&&this.updateImage(i,t)}}cloneImages(){let t={};for(let i in this.images){let r=this.images[i];t[i]={...r,data:r.data?r.data.clone():null}}return t}},ea=class{constructor(t){this._imageManager=t,this._entries={},this._image=new T.Dt({width:1,height:1}),this._dirty=!0}destroy(){this._texture&&=(this._texture.destroy(),null),this._entries={},this._image=new T.Dt({width:1,height:1}),this._dirty=!0}getPixelSize(){let{width:t,height:i}=this._image;return{width:t,height:i}}getPattern(t){let i=this._imageManager.getImage(t);if(!i)return null;let r=this._entries[t];
365if(r?.image!==i){let r={w:i.data.width+2,h:i.data.height+2,x:0,y:0};this._entries[t]={bin:r,position:new T.P(r,i),image:i}}else{if(r.position.version===i.version)return r.position;r.position.version=i.version}return this._update(),this._entries[t].position}bind(t){let i=t.gl;this._texture?this._dirty&&=(this._texture.update(this._image),!1):(this._texture=new T.xt(t,this._image,i.RGBA),this._dirty=!1),this._texture.bind(i.LINEAR,i.CLAMP_TO_EDGE)}_update(){for(let t in this._entries)this._imageManager.getImage(t)||delete this._entries[t];let t=[];for(let i in this._entries)t.push(this._entries[i].bin);let{w:i,h:r}=(0,T.F)(t),a=this._image;for(let t in a.resize({width:i||1,height:r||1}),this._entries){let{bin:i}=this._entries[t],r=i.x+1,n=i.y+1,o=this._entries[t].image.data,s=o.width,l=o.height;T.Dt.copy(o,a,{x:0,y:0},{x:r,y:n},{width:s,height:l}),T.Dt.copy(o,a,{x:0,y:l-1},{x:r,y:n-1},{width:s,height:1}),T.Dt.copy(o,a,{x:0,y:0},{x:r,y:n+l},{width:s,height:1}),T.Dt.copy(o,a,{x:s-1,y:0},{x:r-1,y:n},{width:1,height:l}),T.Dt.copy(o,a,{x:0,y:0},{x:r+s,y:n},{width:1,height:l})}this._dirty=!0}};let en={start:0,end:1114111},eo=0;function es(t,i){return t>i||t>1114111?null:{start:t,end:Math.min(i,1114111)}}var el=class{constructor(t){this.requestManager=t,this._faces={},this._registered=new Set}setFontFaces(t){for(let[i,r]of(this._unregisterAll(),this._faces={},Object.entries(t??{}))){let t=Array.isArray(r)?r:[r];this._faces[i]=t.map(t=>this._declareFontFace(i,t)).filter(t=>null!==t)}}hasFontFaces(){return Object.keys(this._faces).length>0}async getFontFamily(t,i){for(let r of t.split(","))for(let t of this._faces[r.trim()]??[])if(function(t,i){return t.ranges.some(({start:t,end:r})=>i>=t&&i<=r)}(t,i)&&(t.loaded??=this._loadFontFace(t),await t.loaded))return t.family;return null}_declareFontFace(t,i){let r="string"==typeof i?{url:i}:i;if("string"!=typeof r?.url)return(0,T.Nr)(`Ignoring the font face declared for "${t}": it has no URL.`),null;let a=`maplibre-gl-font-face-${eo++}`,n=r["unicode-range"];if(!n?.length)return{url:r.url,ranges:[en],family:a};let o=[];for(let t of n){let i=function(t){let i=/^u\+([0-9a-f]*)(\?+)$/i.exec(t);if(i){let[,t,r]=i;return t.length+r.length>6?null:es(parseInt(`${t}${"0".repeat(r.length)}`,16),parseInt(`${t}${"f".repeat(r.length)}`,16))}let r=/^u\+([0-9a-f]{1,6})(?:-([0-9a-f]{1,6}))?$/i.exec(t);if(!r)return null;let a=parseInt(r[1],16);return es(a,void 0===r[2]?a:parseInt(r[2],16))}(t);if(!i){(0,T.Nr)(`Ignoring the unicode range "${t}" of the font face at ${r.url}: it is not a valid range.`);continue}o.push(i)}return o.length?{url:r.url,ranges:o,family:a}:null}async _loadFontFace(t){let i;if(typeof FontFace>"u"||typeof document>"u"||!document.fonts)return(0,T.Nr)(`Ignoring the font face at ${t.url}: this environment has no CSS Font Loading API.`),!1;try{return i=new FontFace(t.family,await this._downloadFontFile(t.url)),!!Object.values(this._faces).some(i=>i.includes(t))&&(document.fonts.add(i),this._registered.add(i),await i.load(),!0)}catch(r){return i&&this._unregister(i),(0,T.Nr)(`Ignoring the font face at ${t.url}: ${(0,T.Qn)(r).message}`),!1}}async _downloadFontFile(t){let i=await this.requestManager.transformRequest(t,"Glyphs"),r=await (0,T.xn)(i,new AbortController);if(!r?.data)throw Error(`the response was empty for the font file at ${t}`);return r.data}_unregister(t){document.fonts?.delete(t),this._registered.delete(t)}_unregisterAll(){for(let t of this._registered)document.fonts?.delete(t);this._registered.clear()}destroy(){this._unregisterAll(),this._faces={}}};let ec=new Float64Array(256);for(let t=0;t<256;t++){let i=.5-(t/255)**(1/2.2);ec[t]=i*Math.abs(i)}ec[255]=-1e20;var eu=class{constructor({fontSize:t=24,buffer:i=3,radius:r=8,cutoff:a=.25,fontFamily:n="sans-serif",fontWeight:o="normal",fontStyle:s="normal",lang:l=null}={}){this.buffer=i,this.radius=r,this.cutoff=a,this.lang=l;let c=this.size=t+4*i,u=this._createCanvas(c),h=this.ctx=u.getContext("2d",{willReadFrequently:!0});h.font=`${s} ${o} ${t}px ${n}`,h.textBaseline="alphabetic",h.textAlign="left",h.fillStyle="black",this.gridOuter=new Float64Array(c*c),this.gridInner=new Float64Array(c*c),this.f=new Float64Array(c),this.z=new Float64Array(c+1),this.v=new Uint16Array(c)}_createCanvas(t){if("u">typeof OffscreenCanvas)return new OffscreenCanvas(t,t);let i=document.createElement("canvas");return i.width=i.height=t,i}draw(t){let{width:i,actualBoundingBoxAscent:r,actualBoundingBoxDescent:a,actualBoundingBoxLeft:n,actualBoundingBoxRight:o}=this.ctx.measureText(t),s=Math.ceil(r),l=Math.floor(-n),c=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(o)-l)),u=Math.max(0,Math.min(this.size-this.buffer,s+Math.ceil(a))),h=c+2*this.buffer,d=u+2*this.buffer,f=Math.max(h*d,0),p=new Uint8ClampedArray(f),m={data:p,width:h,height:d,glyphWidth:c,glyphHeight:u,glyphTop:s,glyphLeft:l,glyphAdvance:i};if(0===c||0===u)return m;let{ctx:g,buffer:y,gridInner:_,gridOuter:v}=this;this.lang&&(g.lang=this.lang),g.clearRect(y,y,c,u),g.fillText(t,y-l,y+s);let b=g.getImageData(y,y,c,u);v.fill(1e20,0,f),_.fill(0,0,f);let x=3;for(let t=0;t<u;t++){let i=(t+y)*h+y;for(let t=0;t<c;t++,x+=4,i++){let t=b.data[x];if(0===t)continue;let r=ec[t];v[i]=Math.max(0,r),_[i]=Math.max(0,-r)}}eh(v,0,0,h,d,h,this.f,this.v,this.z);let w=Math.min(y,1);eh(_,y-w,y-w,c+2*w,u+2*w,h,this.f,this.v,this.z);let k=255/this.radius,T=255*(1-this.cutoff);for(let t=0;t<f;t++){let i=Math.sqrt(v[t])-Math.sqrt(_[t]);p[t]=Math.round(T-k*i)}return m}};function eh(t,i,r,a,n,o,s,l,c){for(let u=i;u<i+a;u++)ed(t,r*o+u,o,n,s,l,c);for(let u=r;u<r+n;u++)ed(t,u*o+i,1,a,s,l,c)}function ed(t,i,r,a,n,o,s){o[0]=0,s[0]=-1e20,s[1]=1e20,n[0]=t[i];for(let l=1,c=0,u=0;l<a;l++){n[l]=t[i+l*r];let a=l*l;
vendor: 1,284 bytes, line 365
365do{let t=o[c];u=(n[l]-n[t]+a-t*t)/(l-t)/2}while(u<=s[c]&&--c>-1)o[++c]=l,s[c]=u,s[c+1]=1e20}for(let l=0,c=0;l<a;l++){for(;s[c+1]<l;)c++;let a=o[c],u=l-a;t[i+l*r]=n[a]+u*u}}let ef=T.hn.layout_symbol["text-font"].default.join(","),ep=(t,i)=>{let r=new eu(t);return r.buffer=i,r};var em=class{constructor(t,i,r,a=ep){this.requestManager=t,this.localIdeographFontFamily=i,this.entries={},this.lang=r,this.fontFaceManager=new el(t),this.createRasterizer=a}setURL(t){this.url=t}setFontFaces(t){this.fontFaceManager.setFontFaces(t),this.entries={}}async getGlyphs(t){let i=[];for(let r in t)for(let a of t[r])i.push(this._getAndCacheGlyphsPromise(r,a));let r=await Promise.all(i),a={};for(let{stack:t,id:i,glyph:n}of r)a[t]||={},a[t][i]=n&&{id:n.id,bitmap:n.bitmap.clone(),metrics:n.metrics};return a}async _getAndCacheGlyphsPromise(t,i){this.entries[t]??={glyphs:{},requests:{},ranges:{}};let r=this.entries[t],a=r.glyphs[i];if(void 0!==a)return{stack:t,id:i,glyph:a};let n=i.codePointAt(0),o=this.fontFaceManager.hasFontFaces()?await this.fontFaceManager.getFontFamily(t,n):null;return o?(a=r.glyphs[i]=await this._drawGlyph(r,t,i,o),{stack:t,id:i,glyph:a}):!this.url||(0,T.B)(i)||this._charUsesLocalIdeographFontFamily(n)?(a=r.glyphs[i]=await this._drawGlyph(r,t,i),{stack:t,id:i,glyph:a}
365):await this._downloadAndCacheRangePromise(t,i)}async _downloadAndCacheRangePromise(t,i){let r=i.codePointAt(0),a=this.entries[t],n=Math.floor(r/256);if(a.ranges[n])return{stack:t,id:i,glyph:null};a.requests[n]||=this._loadGlyphRange(t,n);try{let o=await a.requests[n];for(let t in o)a.glyphs[String.fromCodePoint(+t)]=o[+t];return a.ranges[n]=!0,{stack:t,id:i,glyph:o[r]||null}}catch(s){let o=a.glyphs[i]=await this._drawGlyph(a,t,i);return this._warnOnMissingGlyphRange(o,n,r,(0,T.Qn)(s)),{stack:t,id:i,glyph:o}}}async _loadGlyphRange(t,i){let r=256*i,a=r+255,n=await this.requestManager.transformRequest(this.url.replace("{fontstack}",t).replace("{range}",`${r}-${a}`),"Glyphs"),o=await (0,T.xn)(n,new AbortController);if(!o?.data)throw Error(`Could not load glyph range. range: ${i}, ${r}-${a}`);let s={};for(let t of(0,T.R)(o.data))s[t.id]=t;return s}_warnOnMissingGlyphRange(t,i,r,a){let n=256*i,o=r.toString(16).padStart(4,"0").toUpperCase();(0,T.Nr)(`Unable to load glyph range ${i}, ${n}-${n+255}. Rendering codepoint U+${o} locally instead. ${a}`)}_charUsesLocalIdeographFontFamily(t){return!!this.localIdeographFontFamily&&(0,T.V)(t)}async _drawGlyph(t,i,r,a){let n=(await this._getTinySDF(t,i,r,a)).draw(r),o=/^\p{gc=Cf}+$/u.test(r);return{id:r.codePointAt(0),bitmap:new T.Et({width:n.width||60,height:n.height||60},n.data),metrics:{width:o?0:n.glyphWidth/2||24,height:n.glyphHeight/2||24,left:n.glyphLeft/2+.5||0,top:n.glyphTop/2-27.5||-8,advance:o?0:n.glyphAdvance/2||24,isDoubleResolution:!0}}}_getTinySDF(t,i,r,a){let n=(0,T.B)(r);if(a){let i=n?"clusterTinySDFs":"fontFaceTinySDFs";return t[i]??={},t[i][a]||=this._createTinySDF(a,!1,n?3:1),t[i][a]}let o=i===ef&&""!==this.localIdeographFontFamily&&this._charUsesLocalIdeographFontFamily(r.codePointAt(0)),s=o?this.localIdeographFontFamily:i;if(n)return t.clusterTinySDFs??={},t.clusterTinySDFs[s]||=this._createTinySDF(s,!0,3),t.clusterTinySDFs[s];let l=o?"ideographTinySDF":"tinySDF";return t[l]||=this._createTinySDF(s),t[l]}async _createTinySDF(t,i=!0,r=1){let a=t?t.split(","):[];a.push("sans-serif");let n=a.map(t=>/[-\w]+/.test(t)?t:`'${CSS.escape(t)}'`).join(","),o=i?this._fontWeight(a[0]):void 0,s=i?this._fontStyle(a[
3650]):"normal";if("u">typeof document&&document.fonts?.load)try{await document.fonts.load(`${s} ${o||"normal"} 48px ${n}`)}catch(t){(0,T.Nr)(`Failed to load font "${n}": ${(0,T.Qn)(t).message}`)}return this.createRasterizer({fontSize:48,buffer:Math.max(6,Math.ceil(48*(r-1)/4)),radius:16,cutoff:.25,fontFamily:n,fontWeight:o,fontStyle:s,lang:this.lang},6)}_fontStyle(t){return/italic/i.test(t)?"italic":/oblique/i.test(t)?"oblique":"normal"}_fontWeight(t){let i;for(let[r,a]of Object.entries({thin:100,hairline:100,"extra light":200,"ultra light":200,light:300,normal:400,regular:400,medium:500,semibold:600,demibold:600,bold:700,"extra bold":800,"ultra bold":800,black:900,heavy:900,"extra black":950,"ultra black":950}))RegExp(`\\b${r}\\b`,"i").test(t)&&(i=`${a}`);return i}destroy(){for(let t in this.entries){let i=this.entries[t];i.tinySDF=null,i.ideographTinySDF=null,i.fontFaceTinySDFs={},i.glyphs={},i.requests={},i.ranges={}}this.entries={},this.fontFaceManager.destroy()}},eg=class extends T.vn{constructor(t,i){super(),this._transitionable=new T.$t(l||=new T.Qt({anchor:new T.Zt(T.hn.light.anchor,"anchor"),position:new T.Zt(T.hn.light.position,"position"),color:new T.Zt(T.hn.light.color,"color"),intensity:new T.Zt(T.hn.light.intensity,"intensity")}),"light",i),this.setLight(t),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}getCartesianPosition(){return(0,T.Or)(this.properties.get("position"))}setLight(t,i={}){this._validate(T.on.light,t,i)||this._transitionable.setValues(t)}updateTransitions(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(t){this.properties=this._transitioning.possiblyEvaluate(t)}_validate(t,i,r){return(0,T.an)(this,t,{value:i},r)}},ey=class extends T.vn{constructor(t,i){super(),this._transitionable=new T.$t(c||=new T.Qt({"sky-color":new T.Zt(T.hn.sky["sky-color"],"sky-color"),"horizon-color":new T.Zt(T.hn.sky["horizon-color"],"horizon-color"),"fog-color":new T.Zt(T.hn.sky["fog-color"],"fog-color"),"fog-ground-blend":new T.Zt(T.hn.sky["fog-ground-blend"],"fog-ground-blend"),"horizon-fog-blend":new T.Zt(T.hn.sky["horizon-fog-blend"],"horizon-fog-blend"),"sky-horizon-blend":new T.Zt(T.hn.sky["sky-horizon-blend"],"sky-horizon-blend"),"atmosphere-blend":new T.Zt(T.hn.sky["atmosphere-blend"],"atmosphere-blend")}),"sky",i),this.setSky(t),this._transitioning=this._transitionable.untransitioned(),this.recalculate(new T.en(0))}setSky(t,i={}){this._validate(T.on.sky,t,i)||(t||={"sky-color":"transparent","horizon-color":"transparent","fog-color":"transparent","fog-ground-blend":1,"atmosphere-blend":0},this._transitionable.setValues(t))}getSky(){return this._transitionable.serialize()}updateTransitions(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(t){this.properties=this._transitioning.possiblyEvaluate(t)}_validate(t,i,r={}){return(0,T.an)(this,t,{value:i},r)}calculateFogBlendOpacity(t){return t<60?0:t<70?(t-60)/10:1}},e_=class{constructor(t,i){this.width=t,this.height=i,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}}getDash(t,i){let r=t.join(",")+String(i);return this.dashEntry[r]||=this.addDash(t,i),this.dashEntry[r]}getDashRanges(t,i,r){let a=t.length%2==1,n=[],o=a?-t[t.length-1]*r:0,s=t[0]*r,l=!0;n.push({left:o,right:s,isDash:l,zeroLength:0===t[0]});let c=t[0];for(let i=1;i<t.length;i++){l=!l;let a=t[i];o=c*r,c+=a,s=c*r,n.push({left:o,right:s,isDash:l,zeroLength:0===a})}return n}addRoundDash(t,i,r){let a=i/2;for(let i=-r;i<=r;i++){let n=this.nextRow+r+i,o=this.width*n,s=0,l=t[0];for(let n=0;n<this.width;n++){n/l.right>1&&(l=t[++s]);let c=Math.min(Math.abs(n-l.left),Math.abs(n-l.right)),u,h=i/r*(a+1);if(l.isDash){let t=a-Math.abs(h);u=Math.sqrt(c*c+t*t)}else u=a-Math.sqrt(c*c+h*h);this.data[o+n]=Math.max(0,Math.min(255,u+128))}}}addRegularDash(t){for(let i=t.length-1;i>=0;--i){let r=t[i],a=t[i+1];r.zeroLength?t.splice(i,1):a?.isDash===r.isDash&&(a.left=r.left,t.splice(i,1))}let i=t[0],r=t[t.length-1];
365i.isDash===r.isDash&&(i.left=r.left-this.width,r.right=i.right+this.width);let a=this.width*this.nextRow,n=0,o=t[0];for(let i=0;i<this.width;i++){i/o.right>1&&(o=t[++n]);let r=Math.min(Math.abs(i-o.left),Math.abs(i-o.right)),s=o.isDash?r:-r;this.data[a+i]=Math.max(0,Math.min(255,s+128))}}addDash(t,i){let r=7*!!i,a=2*r+1;if(this.nextRow+a>this.height)return(0,T.Nr)("LineAtlas out of space"),null;let n=0;for(let i of t)n+=i;if(0!==n){let a=this.width/n,o=this.getDashRanges(t,this.width,a);i?this.addRoundDash(o,a,r):this.addRegularDash(o)}let o={y:this.nextRow+r,height:2*r,width:n};return this.nextRow+=a,this.dirty=!0,o}bind(t){let i=t.gl;this.texture?(i.bindTexture(i.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,i.texSubImage2D(i.TEXTURE_2D,0,0,0,this.width,this.height,i.ALPHA,i.UNSIGNED_BYTE,this.data))):(this.texture=i.createTexture(),i.bindTexture(i.TEXTURE_2D,this.texture),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.REPEAT),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.REPEAT),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),i.texImage2D(i.TEXTURE_2D,0,i.ALPHA,this.width,this.height,0,i.ALPHA,i.UNSIGNED_BYTE,this.data))}};function ev(t,i){if(i)try{return new Worker(t,{type:"module"})}catch(t){console.warn("Module worker not supported, falling back to classic worker",t)}return new Worker(t)}async function eb(t){let i=await fetch(t);if(!i.ok)throw Error(`Failed to fetch worker script (${i.status}): ${t}`);let r=new Blob([await i.text()],{type:"text/javascript"});return URL.createObjectURL(r)}async function ex(){let t=T.An.WORKER_URL||function(){let t="file:///home/runner/work/babysits/babysits/node_modules/.pnpm/[email protected]/node_modules/maplibre-gl/dist/maplibre-gl.mjs";if(!/^https?:/.test(t))return"";let i=t.endsWith("-dev.mjs")?"maplibre-gl-worker-dev.mjs":"maplibre-gl-worker.mjs";return new URL(`./${i}`,t).href}(),i=!t?.endsWith(".cjs");if(!function(t){if(!t)return!1;let i=globalThis.location;if(!i)return!1;try{return new URL(t,i.href).origin!==i.origin}catch{return!1}}(t))return ev(t,i);if(i){let a,n=(a=new Blob([`import ${JSON.stringify(r(98719)(t).href)}`],{type:"text/javascript"}),URL.createObjectURL(a));try{return ev(n,i)}finally{URL.revokeObjectURL(n)}}let a=await eb(t);try{return ev(a,i)}finally{URL.revokeObjectURL(a)}}var ew=class t{constructor(){this.active={},this.workersPromise=null}async acquire(i){if(this.active[i]=!0,!this.workersPromise){let i=[];for(;i.length<t.workerCount;)i.push(ex());this.workersPromise=Promise.all(i)}return(await this.workersPromise).slice()}release(t){if(delete this.active[t],0===this.numActive()&&this.workersPromise){let t=this.workersPromise;this.workersPromise=null,t.then(t=>{for(let i of t)i.terminate()})}}isPreloaded(){return!!this.active.maplibre_preloaded_worker_pool}numActive(){return Object.keys(this.active).length}};let ek=Math.floor(A.hardwareConcurrency/2);ew.workerCount=(0,T.ur)(globalThis)?Math.max(Math.min(ek,3),1):1;var eT=class{constructor(t,i){this.workerPool=t,this.actors=[],this.currentActor=0,this.id=i,this.removed=!1,this.actorsPromise=this.initActors(i)}async initActors(t){let i=await this.workerPool.acquire(t);if(this.removed)return[];if(this.actors=i.map((i,r)=>{let a=new T.g(i,t);return a.name=`Worker ${r}`,a}),!this.actors.length)throw Error("No actors found");return this.actors}async broadcast(t,i){return Promise.all((await this.actorsPromise).map(r=>r.sendAsync({type:t,data:i})))}async getActor(){let t=await this.actorsPromise;return this.currentActor=(this.currentActor+1)%t.length,t[this.currentActor]}async waitForInitComplete(){0===this.actors.length&&await this.actorsPromise}getReadyActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(t=!0){for(let t of(this.removed=!0,this.actors))t.remove();this.actors=[],t&&this.workerPool.release(this.id)}async registerMessageHandler(t,i){for(let r of(await this.actorsPromise))r.registerMessageHandler(t,i)}async unregisterMessageHandler(t){for(let i of(await this.actorsPromise))i.unregisterMessageHandler(t)}};function eS(t,i){let r=t.tileID,a=i.tileID;return r.overscaledZ-a.overscaledZ||r.canonical.y-a.canonical.y||r.wrap-a.wrap||r.canonical.x-a.canonical.x}function eA(t,i){let r=t.feature,a=i.getFeatureState(r.layer["source-layer"],r.id);r.source=r.layer.source,r.layer["source-layer"]&&(r.sourceLayer=r.layer["source-layer"]),r.state=a}async function eC(t,i,r,a){let n=t;if(t.url?n=(await (0,T.Sn)(await i.transformRequest(t.url,"Source"),r)).data:await A.frameAsync(r,a),!n)return null;let o=(0,T.yr)((0,T.er)(n,t),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in n&&n.vector_layers&&(o.vectorLayerIds=n.vector_layers.map(t=>
365t.id)),o}var eE=class t{constructor(t,i){t&&(i?this.setSouthWest(t).setNorthEast(i):Array.isArray(t)&&(4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1])))}setNorthEast(t){return this._ne=t instanceof T.lt?new T.lt(t.lng,t.lat):T.lt.convert(t),this}setSouthWest(t){return this._sw=t instanceof T.lt?new T.lt(t.lng,t.lat):T.lt.convert(t),this}extend(i){let r=this._sw,a=this._ne,n,o;if(i instanceof T.lt)n=i,o=i;else if(i instanceof t){if(n=i._sw,o=i._ne,!n||!o)return this}else return Array.isArray(i)?4===i.length||i.every(Array.isArray)?this.extend(t.convert(i)):this.extend(T.lt.convert(i)):i&&("lng"in i||"lon"in i)&&"lat"in i?this.extend(T.lt.convert(i)):this;return r||a?(r.lng=Math.min(n.lng,r.lng),r.lat=Math.min(n.lat,r.lat),a.lng=Math.max(o.lng,a.lng),a.lat=Math.max(o.lat,a.lat)):(this._sw=new T.lt(n.lng,n.lat),this._ne=new T.lt(o.lng,o.lat)),this}getCenter(){return new T.lt((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new T.lt(this.getWest(),this.getNorth())}getSouthEast(){return new T.lt(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(t){let{lng:i,lat:r}=T.lt.convert(t),a=this._sw.lat<=r&&r<=this._ne.lat,n=this._sw.lng<=i&&i<=this._ne.lng;return this._sw.lng>this._ne.lng&&(n=this._sw.lng>=i&&i>=this._ne.lng),a&&n}intersects(i){if(!((i=t.convert(i)).getNorth()>=this.getSouth()&&i.getSouth()<=this.getNorth()))return!1;let r=Math.abs(this.getEast()-this.getWest()),a=Math.abs(i.getEast()-i.getWest());if(r>=360||a>=360)return!0;let n=(0,T.Pr)(this.getWest(),-180,180),o=(0,T.Pr)(this.getEast(),-180,180),s=(0,T.Pr)(i.getWest(),-180,180),l=(0,T.Pr)(i.getEast(),-180,180),c=n>o,u=s>l;return!!c&&!!u||(c?l>=n||s<=o:u?o>=s||n<=l:s<=o&&l>=n)}static convert(i){return i instanceof t||!i?i:new t(i)}static fromLngLat(i,r=0){let a=360*r/0x2637f09,n=a/Math.cos(Math.PI/180*i.lat);return new t(new T.lt(i.lng-n,i.lat-a),new T.lt(i.lng+n,i.lat+a))}adjustAntiMeridian(){let i=new T.lt(this._sw.lng,this._sw.lat),r=new T.lt(this._ne.lng,this._ne.lat);return i.lng>r.lng?new t(i,new T.lt(r.lng+360,r.lat)):new t(i,r)}},eM=class{constructor(t,i,r){this.bounds=eE.convert(this.validateBounds(t)),this.minzoom=i||0,this.maxzoom=r||24}validateBounds(t){return Array.isArray(t)&&4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]}contains(t){let i=2**t.z,r={minX:Math.floor((0,T.ot)(this.bounds.getWest())*i),minY:Math.floor((0,T.st)(this.bounds.getNorth())*i),maxX:Math.ceil((0,T.ot)(this.bounds.getEast())*i),maxY:Math.ceil((0,T.st)(this.bounds.getSouth())*i)};return t.x>=r.minX&&t.x<r.maxX&&t.y>=r.minY&&t.y<r.maxY}},eP=class extends T.vn{constructor(t,i,r,a){if(super(),this.id=t,this.dispatcher=r,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,(0,T.er)(this,(0,T.yr)(i,["url","scheme","tileSize","promoteId","encoding"])),this._options=(0,T.er)({type:"vector"},i),this._collectResourceTiming=i.collectResourceTiming,512!==this.tileSize)throw Error("vector tile sources must have a tileSize of 512");this.setEventedParent(a)}async load(t=!1){this._loaded=!1,this.fire(new R("dataloading")),this._tileJSONRequest=new AbortController;try{let i=await eC(this._options,this.map._requestManager,this._tileJSONRequest,this.map._ownerWindow);this._tileJSONRequest=null,this._loaded=!0,i&&((0,T.er)(this,i),i.bounds&&(this.tileBounds=new eM(i.bounds,this.minzoom,this.maxzoom)),this.fire(new R("data",{sourceDataType:"metadata"})),this.fire(new R("data",{sourceDataType:"content",sourceDataChanged:t})))}catch(t){this._tileJSONRequest=null,this._loaded=!0,(0,T.Mn)(t)||this.fire(new T.gn((0,T.Qn)(t)))}}loaded(){return this._loaded}hasTile(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)}onAdd(t){this.map=t,this.load()}setSourceProperty(t){this._tileJSONRequest&&this._tileJSONRequest.abort(),t(),this.load(!0)}setTiles(t){return this.setSourceProperty(()=>{this.tiles=t,this._options.tiles=t}),this}setUrl(t){return this.setSourceProperty(()=>{this.url=t,this._options.url=t}),this}onRemove(){this._tileJSONRequest&&=(this._tileJSONRequest.abort(),null)}serialize(){return(0,T.er)({},this._options)}
vendor: 2,034 bytes, line 365
365async loadTile(t){let i=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),r={request:await this.map._requestManager.transformRequest(i,"Tile"),uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity,encoding:this.encoding,overzoomParameters:await this._getOverzoomParameters(t),etag:t.etag};r.request.collectResourceTiming=this._collectResourceTiming,await this.dispatcher.waitForInitComplete();let a="RT";if(t.actor&&"expired"!==t.state){if("loading"===t.state)return new Promise((i,r)=>{t.reloadPromise={resolve:i,reject:r}})}else t.actor=this.dispatcher.getReadyActor(),a="LT";t.abortController=new AbortController;try{let i=await t.actor.sendAsync({type:a,data:r},t.abortController);if(delete t.abortController,t.aborted)return;this._afterTileLoadWorkerResponse(t,i);let n={};return i?.etagUnmodified&&(n.unmodified=!0),n}catch(i){if(delete t.abortController,t.aborted||(0,T.Mn)(i))return;if(i&&404!==i.status)throw i;this._afterTileLoadWorkerResponse(t,null)}}async _getOverzoomParameters(t){if(t.tileID.canonical.z<=this.maxzoom||void 0===this.map._zoomLevelsToOverscale)return;let i=t.tileID.scaledTo(this.maxzoom).canonical,r=i.url(this.tiles,this.map.getPixelRatio(),this.scheme);return{maxZoomTileID:i,overzoomRequest:await this.map._requestManager.transformRequest(r,"Tile")}}_afterTileLoadWorkerResponse(t,i){if(i?.resourceTiming&&(t.resourceTiming=i.resourceTiming),i&&this.map._refreshExpiredTiles&&t.setExpiryData(i),t.etag=i?.etag,t.loadVectorData(i,this.map.painter),t.reloadPromise){let i=t.reloadPromise;t.reloadPromise=null,this.loadTile(t).then(i.resolve).catch(i.reject)}}async abortTile(t){t.abortController&&(t.abortController.abort(),delete t.abortController),t.actor&&await t.actor.sendAsync({type:"AT",data:{uid:t.uid,type:this.t
365ype,source:this.id}})}async unloadTile(t){t.unloadVectorData(),t.actor&&await t.actor.sendAsync({type:"RMT",data:{uid:t.uid,type:this.type,source:this.id}})}hasTransition(){return!1}},eD=class extends T.vn{constructor(t,i,r,a){super(),this.id=t,this.dispatcher=r,this.setEventedParent(a),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._premultiplyAlpha=!0,this._options=(0,T.er)({type:"raster"},i),(0,T.er)(this,(0,T.yr)(i,["url","scheme","tileSize"]))}async load(t=!1){this._loaded=!1,this.fire(new R("dataloading")),this._tileJSONRequest=new AbortController;try{let i=await eC(this._options,this.map._requestManager,this._tileJSONRequest,this.map._ownerWindow);this._tileJSONRequest=null,this._loaded=!0,i&&((0,T.er)(this,i),i.bounds&&(this.tileBounds=new eM(i.bounds,this.minzoom,this.maxzoom)),this.fire(new R("data",{sourceDataType:"metadata"})),this.fire(new R("data",{sourceDataType:"content",sourceDataChanged:t})))}catch(t){this._tileJSONRequest=null,this._loaded=!0,(0,T.Mn)(t)||this.fire(new T.gn((0,T.Qn)(t)))}}loaded(){return this._loaded}onAdd(t){this.map=t,this.load()}onRemove(){this._tileJSONRequest&&=(this._tileJSONRequest.abort(),null)}setSourceProperty(t){this._tileJSONRequest&&=(this._tileJSONRequest.abort(),null),t(),this.load(!0)}setTiles(t){return this.setSourceProperty(()=>{this.tiles=t,this._options.tiles=t}),this}setUrl(t){return this.setSourceProperty(()=>{this.url=t,this._options.url=t}),this}serialize(){return(0,T.er)({},this._options)}setPremultiplyAlpha(t){return this._premultiplyAlpha===t||this.setSourceProperty(()=>{this._premultiplyAlpha=t}),this}hasTile(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)}async loadTile(t){let i=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),r=this._premultiplyAlpha,a=r?void 0:{premultiplyAlpha:"none"};t.abortController=new AbortController;try{let n=await s.transformAndGetImage(this.map._requestManager,i,"Tile",t.abortController,this.map._refreshExpiredTiles,a);if(delete t.abortController,t.aborted){t.state="unloaded";return}if(n){this.map._refreshExpiredTiles&&(n.cacheControl||n.expires)&&t.setExpiryData({cacheControl:n.cacheControl,expires:n.expires});let i=this.map.painter.context,a=i.gl,o=n.data??new T.Dt({width:1,height:1},new Uint8Array(4));t.texture=this.map.painter.getTileTexture(o.width),t.texture?t.texture.update(o,{useMipmap:!0,premultiply:r}):(t.texture=new T.xt(i,o,a.RGBA,{useMipmap:!0,premultiply:r}),t.texture.bind(a.LINEAR,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST)),t.state="loaded"}}catch(i){if(delete t.abortController,t.aborted)t.state="unloaded";else if(i)throw t.state="errored",i}}async abortTile(t){t.abortController&&(t.abortController.abort(),delete t.abortController)}async unloadTile(t){t.texture&&this.map.painter.saveTileTexture(t.texture)}hasTransition(){return!1}},eI=class extends eD{constructor(t,i,r,a){super(t,i,r,a),this.type="raster-dem",this.maxzoom=22,this._options=(0,T.er)({type:"raster-dem"},i),this.encoding=i.encoding||"mapbox",this.redFactor=i.redFactor,this.greenFactor=i.greenFactor,this.blueFactor=i.blueFactor,this.baseShift=i.baseShift}async loadTile(t){let i=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);t.neighboringTiles=this._getNeighboringTiles(t.tileID),t.abortController=new AbortController;try{let r=await s.transformAndGetImage(this.map._requestManager,i,"Tile",t.abortController,this.map._refreshExpiredTiles,{colorSpaceConversion:"none"});if(delete t.abortController,t.aborted){t.state="unloaded";return}if(r){if(this.map._refreshExpiredTiles&&(r.cacheControl||r.expires)&&t.setExpiryData({cacheControl:r.cacheControl,expires:r.expires}),!r.data){t.state="loaded";return}let i=r.data,a=(0,T.cr)(i)&&(0,T.Ii)()?i:await this.readImageNow(i),n={type:this.type,uid:t.uid,source:this.id,rawImageData:a,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(t.actor&&"expired"!==t.state&&"reloading"!==t.state)return;await this.dispatcher.waitForInitComplete(),t.actor&&"expired"!==t.state||(t.actor=this.dispatcher.getReadyActor()),t.dem=await t.actor.sendAsync({type:"LDT",data:n}
365),t.needsHillshadePrepare=!0,t.needsTerrainPrepare=!0,t.needsColorReliefPrepare=!0,t.state="loaded"}}catch(i){if(delete t.abortController,t.aborted)t.state="unloaded";else if(i)throw t.state="errored",i}}async readImageNow(t){if("u">typeof VideoFrame&&(0,T.Fi)()){let i=t.width+4,r=t.height+4;try{return new T.Dt({width:i,height:r},await (0,T.Cr)(t,-2,-2,i,r))}catch{}}return A.getImageData(t,2)}_getNeighboringTiles(t){let i=t.canonical,r=2**i.z,a=(i.x-1+r)%r,n=0===i.x?t.wrap-1:t.wrap,o=(i.x+1+r)%r,s=i.x+1===r?t.wrap+1:t.wrap,l={};return l[new T.d(t.overscaledZ,n,i.z,a,i.y).key]={backfilled:!1},l[new T.d(t.overscaledZ,s,i.z,o,i.y).key]={backfilled:!1},i.y>0&&(l[new T.d(t.overscaledZ,n,i.z,a,i.y-1).key]={backfilled:!1},l[new T.d(t.overscaledZ,t.wrap,i.z,i.x,i.y-1).key]={backfilled:!1},l[new T.d(t.overscaledZ,s,i.z,o,i.y-1).key]={backfilled:!1}),i.y+1<r&&(l[new T.d(t.overscaledZ,n,i.z,a,i.y+1).key]={backfilled:!1},l[new T.d(t.overscaledZ,t.wrap,i.z,i.x,i.y+1).key]={backfilled:!1},l[new T.d(t.overscaledZ,s,i.z,o,i.y+1).key]={backfilled:!1}),l}async unloadTile(t){t.demTexture&&this.map.painter.saveTileTexture(t.demTexture),t.fbo&&(t.fbo.destroy(),delete t.fbo),t.dem&&delete t.dem,delete t.neighboringTiles,t.state="unloaded",t.actor&&await t.actor.sendAsync({type:"RDT",data:{type:this.type,uid:t.uid,source:this.id}})}};function ez(t,i){return i?t.properties[i]:t.id}function eL(t){if(!t)return{};let i={};
365return i.removeAll=t.removeAll,i.remove=new Set(t.remove||[]),i.add=new Map(t.add?.map(t=>[t.id,t])),i.update=new Map(t.update?.map(t=>[t.id,t])),i}function eF(t){return"GeometryCollection"===t.type?t.geometries.flatMap(t=>eF(t)):function t(i){return i&&0!==i.length?"number"==typeof i[0]?[i]:i.flatMap(i=>t(i)):[]}(t.coordinates)}function eR(t){let i=new eE,r;switch(t.type){case"FeatureCollection":r=t.features.flatMap(t=>eF(t.geometry));break;case"Feature":r=eF(t.geometry);break;default:r=eF(t)}if(0===r.length)return i;for(let t of r){let[r,a]=t;i.extend([r,a])}return i}var eO=class extends T.vn{constructor(t,i,r,a){super(),this.id=t,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._isUpdatingWorker=!1,this._pendingWorkerUpdate={data:i.data},this.actorPromise=r.getActor(),this.setEventedParent(a),this._data="string"==typeof i.data?{url:i.data}:{geojson:i.data},this._options=(0,T.er)({},i),this._collectResourceTiming=i.collectResourceTiming,void 0!==i.maxzoom&&(this.maxzoom=i.maxzoom),i.type&&(this.type=i.type),i.attribution&&(this.attribution=i.attribution),this.promoteId=i.promoteId,void 0!==i.clusterMaxZoom&&this.maxzoom<=i.clusterMaxZoom&&(0,T.Nr)(`The maxzoom value "${this.maxzoom}" is expected to be greater than the clusterMaxZoom value "${i.clusterMaxZoom}".`),this.workerOptions=(0,T.er)({source:this.id,geojsonVtOptions:{buffer:this._pixelsToTileUnits(void 0===i.buffer?128:i.buffer),tolerance:this._pixelsToTileUnits(void 0===i.tolerance?.375:i.tolerance),extent:8192,maxZoom:this.maxzoom,lineMetrics:i.lineMetrics||!1,generateId:i.generateId||!1,promoteId:"string"==typeof i.promoteId?i.promoteId:void 0,cluster:i.cluster||!1,clusterOptions:{maxZoom:this._getClusterMaxZoom(i.clusterMaxZoom),minPoints:Math.max(2,i.clusterMinPoints||2),extent:8192,radius:this._pixelsToTileUnits(i.clusterRadius||50),log:!1,generateId:i.generateId||!1}},clusterProperties:i.clusterProperties,filter:i.filter},i.workerOptions)}_hasPendingWorkerUpdate(){return void 0!==this._pendingWorkerUpdate.data||void 0!==this._pendingWorkerUpdate.diff||this._pendingWorkerUpdate.updateCluster}_pixelsToTileUnits(t){return t*(8192/this.tileSize)}_tileUnitsToPixels(t){return t/(8192/this.tileSize)}_getClusterMaxZoom(t){let i=t?Math.round(t):this.maxzoom-1;return Number.isInteger(t)||void 0===t||(0,T.Nr)(`Integer expected for option 'clusterMaxZoom': provided value "${t}" rounded to "${i}"`),i}async load(){await this._updateWorkerData()}onAdd(t){this.map=t,this.load()}setData(t){return this._data="string"==typeof t?{url:t}:{geojson:t},this._pendingWorkerUpdate={data:t},this._updateWorkerData()}updateData(t){return this._pendingWorkerUpdate.diff=function(t,i){let r;if(!t)return i||{};if(!i)return t||{};let a=eL(t),n=eL(i);var o,s=a,l=n;for(let t of(l.removeAll&&(s.add.clear(),s.update.clear(),s.remove.clear(),l.remove.clear()),l.remove))s.add.delete(t),s.update.delete(t);for(let[t,i]of l.update){let r=s.update.get(t);r&&(l.update.set(t,function(t,i){let r={id:t.id};if(i.removeAllProperties&&(delete t.removeProperties,delete t.addOrUpdateProperties,delete i.removeProperties),i.removeProperties&&t.addOrUpdateProperties){let r=new Set(i.removeProperties);t.addOrUpdateProperties=t.addOrUpdateProperties.filter(t=>!r.has(t.key))}return(t.removeAllProperties||i.removeAllProperties)&&(r.removeAllProperties=!0),(t.removeProperties||i.removeProperties)&&(r.removeProperties=[...t.removeProperties||[],...i.removeProperties||[]]),(t.addOrUpdateProperties||i.addOrUpdateProperties)&&(r.addOrUpdateProperties=[...t.addOrUpdateProperties||[],...i.addOrUpdateProperties||[]]),(t.newGeometry||i.newGeometry)&&(r.newGeometry=i.newGeometry||t.newGeometry),r}(r,i)),s.update.delete(t))}let c={};
vendor: 4,852 bytes, line 365
365if((a.removeAll||n.removeAll)&&(c.removeAll=!0),c.remove=new Set([...a.remove,...n.remove]),c.add=new Map([...a.add,...n.add]),c.update=new Map([...a.update,...n.update]),c.remove.size&&c.add.size)for(let t of c.add.keys())c.remove.delete(t);return r={},(o=c).removeAll&&(r.removeAll=o.removeAll),o.remove&&(r.remove=Array.from(o.remove)),o.add&&(r.add=Array.from(o.add.values())),o.update&&(r.update=Array.from(o.update.values())),r}(this._pendingWorkerUpdate.diff,t),this._updateWorkerData()}async getData(){return this._data.url&&await this.once("data"),this._data.geojson?this._data.geojson:{type:"FeatureCollection",features:Array.from(this._data.updateable.values())}}async getBounds(){return eR(await this.getData())}setClusterOptions(t){return this.workerOptions.geojsonVtOptions.cluster=t.cluster,void 0!==t.clusterRadius&&(this.workerOptions.geojsonVtOptions.clusterOptions.radius=this._pixelsToTileUnits(t.clusterRadius)),void 0!==t.clusterMaxZoom&&(this.workerOptions.geojsonVtOptions.clusterOptions.maxZoom=this._getClusterMaxZoom(t.clusterMaxZoom)),this._pendingWorkerUpdate.updateCluster=!0,this._updateWorkerData()}getClusterOptions(){let{cluster:t,clusterOptions:i}=this.workerOptions.geojsonVtOptions;return{cluster:t,clusterMaxZoom:i.maxZoom,clusterRadius:this._tileUnitsToPixels(i.radius)}}async getClusterExpansionZoom(t){return(await this.actorPromise).sendAsync({type:"GCEZ",data:{type:this.type,clusterId:t,source:this.id}})}async getClusterChildren(t){return(await this.actorPromise).sendAsync({type:"GCC",data:{type:this.type,clusterId:t,source:this.id}})}async getClusterLeaves(t,i,r){return(await this.actorPromise).sendAsync({type:"GCL",data:{type:this.type,source:this.id,clusterId:t,limit:i,offset:r}})}async _updateWorkerData(){if(this._isUpdatingWorker)return this._updatePromise;if(!this._hasPendingWorkerUpdate())return void(0,T.Nr)(`No pending worker updates for GeoJSONSource ${this.id}.`);let{data:t,diff:i,updateCluster:r}=this._pendingWorkerUpdate,a=this._getLoadGeoJSONParameters(t,i,r);void 0===t?i?this._pendingWorkerUpdate.diff=void 0:r&&(this._pendingWorkerUpdate.updateCluster=void 0):this._pendingWorkerUpdate.data=void 0,this._updatePromise=this._dispatchWorkerUpdate(a),await this._updatePromise}async _getLoadGeoJSONParameters(t,i,r){let a=(0,T.er)({type:this.type,source:this.id},this.workerOptions);return"string"==typeof t?(a.request=await this.map._requestManager.transformRequest(A.resolveURL(t),"Source"),a.request.collectResourceTiming=this._collectResourceTiming,a):void 0!==t?(a.data=t,a):i?(a.dataDiff=i,a):r?(a.updateCluster=!0,a):void 0}async _dispatchWorkerUpdate(t){this._isUpdatingWorker=!0,this.fire(new R("dataloading"));try{let i=await t,r=await (await this.actorPromise).sendAsync({type:"LD",data:i});if(this._isUpdatingWorker=!1,this._removed||r.abandoned)return void this.fire(new R("dataabort"));r.data&&(this._data={geojson:r.data});let a=this._applyDiffToSource(i.dataDiff),n=this._getShouldReloadTileOptions(a),o={};this._applyResourceTiming(o,r),this.fire(new R("data",{...o,sourceDataType:"metadata"})),this.fire(new R("data",{...o,sourceDataType:"content",shouldReloadTileOptions:n}))}catch(t){if(this._isUpdatingWorker=!1,this._removed)return void this.fire(new R("dataabort"));this.fire(new T.gn((0,T.Qn)(t)))}finally{this._hasPendingWorkerUpdate()&&await this._updateWorkerData()}}_applyResourceTiming(t,i){if(!this._collectResourceTiming)return;let r=i.resourceTiming?.[this.id];if(!r)return;let a=r.slice(0);a?.length&&(0,T.er)(t,{resourceTiming:a})}_applyDiffToSource(t){if(!t)return;let i="string"==typeof this.promoteId?this.promoteId:void 0;if(!this._data.url&&!this._data.updateable){let t=function(t,i){let r=new Map;if(null==t||null==t.type)return r;if("Feature"===t.type){let a=ez(t,i);return null==a?void 0:(r.set(a,t),r)}if("FeatureCollection"===t.type){let a=new Set;for(let n of t.features){let t=ez(n,i);if(null==t||a.has(t))return;a.add(t),r.set(t,n)}return r}}(this._data.geojson,i);if(!t)throw Error(`GeoJSONSource "${this.id}": GeoJSON data is not compatible with updateData`);this._data={updateable:t}}if(!this._data.updateable)return;let r=function(t,i,r){let a=[];if(i.removeAll)t.clear();else if(i.remove)for(let r of i.remove){let i=t.get(r);i&&(a.push(i.geometry),t.delete(r))}if(i.add)for(let n of i.add){let i=ez(n,r);if(null==i)continue;let o=t.get(i);o&&a.push(o.geometry),a.push(n.geometry),t.set(i,n)}if(i.update)for(let r of i.update){let i=t.get(r.id);if(!i)continue;let n=!!r.newGeometry,o=r.removeAllProperties||r.removeProperties?.length>0||r.addOrUpdateProperties?.length>0;if(!n&&!o)continue;a.push(i.geometry);let s={...i};if(t.set(r.id,s),n&&(a.push(r.newGeometry),s.geometry=r.newGeometry),o){if(s.properties=r.removeAllProperties?{}:{...s.properties||{}},r.removeProperties)for(let t of r.removeProperties)delete s.properties[t];
365if(r.addOrUpdateProperties)for(let{key:t,value:i}of r.addOrUpdateProperties)s.properties[t]=i}}return a}(this._data.updateable,t,i);if(!(t.removeAll||this._options.cluster))return r}_getShouldReloadTileOptions(t){if(t)return{affectedBounds:t.filter(Boolean).map(t=>eR(t))}}shouldReloadTile(t,{affectedBounds:i}){if("loading"===t.state)return!0;if("unloaded"===t.state)return!1;let{buffer:r,extent:a}=this.workerOptions.geojsonVtOptions,n=function({x:t,y:i,z:r},a=0){return new eE([(0,T.at)((t-a)/2**r),(0,T.it)((i+1+a)/2**r)],[(0,T.at)((t+1+a)/2**r),(0,T.it)((i-a)/2**r)])}(t.tileID.canonical,r/a);for(let t of i)if(n.intersects(t))return!0;return!1}loaded(){return!this._isUpdatingWorker&&!this._hasPendingWorkerUpdate()}async loadTile(t){let i=t.actor?"RT":"LT";t.actor=await this.actorPromise;let r={type:this.type,uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,subdivisionGranularity:this.map.style.projection.subdivisionGranularity};t.abortController=new AbortController;try{let a=await (await this.actorPromise).sendAsync({type:i,data:r},t.abortController);delete t.abortController,t.unloadVectorData(),t.aborted||t.loadVectorData(a,this.map.painter,"RT"===i)}catch(i){if(delete t.abortController,t.aborted||(0,T.Mn)(i))return;throw i}}async abortTile(t){t.abortController&&(t.abortController.abort(),delete t.abortController),t.aborted=!0}async unloadTile(t){t.unloadVectorData(),await (await this.actorPromise).sendAsync({type:"RMT",data:{uid:t.uid,type:this.t
365ype,source:this.id}})}onRemove(){this._removed=!0,this.actorPromise.then(t=>t.sendAsync({type:"RS",data:{type:this.type,source:this.id}}))}serialize(){return(0,T.er)({},this._options,{type:this.type,data:this._data.updateable?{type:"FeatureCollection",features:Array.from(this._data.updateable.values())}:this._data.url||this._data.geojson})}hasTransition(){return!1}};let eB=[0,0,1],ej=(t,i,r,a,n,o)=>{var s,l,c;let u,h;return{u_tl_parent:t,u_scale_parent:i,u_buffer_scale:1,u_image_warp:o,u_fade_t:r.mix,u_opacity:r.opacity*a.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:a.paint.get("raster-brightness-min"),u_brightness_high:a.paint.get("raster-brightness-max"),u_saturation_factor:(s=a.paint.get("raster-saturation"))>0?1-1/(1.001-s):-s,u_contrast_factor:(l=a.paint.get("raster-contrast"))>0?1/(1-l):1+l,u_spin_weights:(u=Math.sin(c=a.paint.get("raster-hue-rotate")*(Math.PI/180)),[(2*(h=Math.cos(c))+1)/3,(-Math.sqrt(3)*u-h+1)/3,(Math.sqrt(3)*u-h+1)/3]),u_coords_top:[n[0].x,n[0].y,n[1].x,n[1].y],u_coords_bottom:[n[3].x,n[3].y,n[2].x,n[2].y]}};var eN=class{constructor(t,i,r){this.vertexBuffer=t,this.indexBuffer=i,this.segments=r}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}};let e$=(0,T.Yt)([{name:"a_pos",type:"Int16",components:2}]);function eV(t,i){let r=function(t,i){let r=void 0===t.granularity?1:Math.max(t.granularity,1),a=r+2*!!t.generateBorders,n=r+(t.extendToNorthPole||t.generateBorders?1:0)+(t.extendToSouthPole||t.generateBorders?1:0),o=a+1,s=n+1,l=t.generateBorders?-1:0,c=t.generateBorders||t.extendToNorthPole?-1:0,u=r+ +!!t.generateBorders,h=r+(t.generateBorders||t.extendToSouthPole?1:0),d=a*n*6,f=o*s>65536;if(f&&"16bit"===i)throw Error("Granularity is too large and meshes would not fit inside 16 bit vertex indices.");let p=f||"32bit"===i,m=new Int16Array(o*s*2),g=0;for(let i=c;i<=h;i++)for(let a=l;a<=u;a++){let n=a/r*8192;-1===a&&(n=-64),a===r+1&&(n=8256);let o=i/r*8192;-1===i&&(o=t.extendToNorthPole?-32768:-64),i===r+1&&(o=t.extendToSouthPole?32767:8256),m[g++]=n,m[g++]=o}let y=p?new Uint32Array(d):new Uint16Array(d),_=0;for(let t=0;t<n;t++)for(let i=0;i<a;i++){let r=i+t*o,a=i+1+t*o,n=i+(t+1)*o,s=i+1+(t+1)*o;y[_++]=r,y[_++]=n,y[_++]=a,y[_++]=a,y[_++]=n,y[_++]=s}return{vertices:m.buffer.slice(0),indices:y.buffer.slice(0),uses32bitIndices:p}}(i,"16bit"),a=T.Gt.deserialize({arrayBuffer:r.vertices,length:r.vertices.byteLength/2/2}),n=T.Jt.deserialize({arrayBuffer:r.indices,length:r.indices.byteLength/2/3});return new eN(t.createVertexBuffer(a,e$.members),t.createIndexBuffer(n),T.Bt.simpleSegment(0,0,a.length,n.length))}var eU=class extends T.vn{constructor(t,i,r,a){super(),this.imageWarp=eB,this.flippedWindingOrder=!1,this._warp="auto",this._imageDirty=!1,this._subdividedQuad=!1,this._subdividedMesh=null,this.id=t,this.dispatcher=r,this.coordinates=i.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(a),this.options=i}async load(t){if(void 0===this.options.url){this._loaded=!0,this._finishLoading();return}this._loaded=!1,this.fire(new R("dataloading")),this.url=this.options.url,this._abortController=new AbortController;try{let i=await s.transformAndGetImage(this.map._requestManager,this.url,"Image",this._abortController);this._abortController=null,this._loaded=!0,i?.data?(this._setImage(i.data),t&&(this.coordinates=t),this._finishLoading()):this.fire(new T.gn(Error(`Could not load image ${this.url}: the response is empty`)))}catch(t){if((0,T.Mn)(t))return;this._abortController=null,this._loaded=!0,this.fire(new T.gn((0,T.Qn)(t)))}}loaded(){return this._loaded}updateImage(t){return this._abortController&&=(this._abortController.abort(),null),"image"in t?(this._loaded=!0,this._setImage(t.image),t.coordinates&&(this.coordinates=t.coordinates),this._finishLoading()):t.url&&(this.options.url=t.url,this.load(t.coordinates)),this}_setImage(t){this.image=t,this._imageDirty=!0}getMesh(t,i){return!this._subdividedQuad||i?null:(this._subdividedMesh??=eV(t,{granularity:16}),this._subdividedMesh)}_disposeTexture(){this.texture?.destroy(),this.texture=null}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new R("data",{sourceDataType:"metadata"})))}onAdd(t){this.map=t,this.load()}onRemove(){this._abortController&&=(this._abortController.abort(),null),this._disposeTexture(),this._subdividedMesh?.destroy(),this._subdividedMesh=null,this.image=null,this.tiles={}}setWarp(t){return this._warp===t||(this._warp=t,this.tileCoords&&this.setCoordinates(this.coordinates)),this}getWarp(){return this._warp}setCoordinates(t){var i,r;let a,n,o,s,l,c;this.coordinates=t;let u=t.map(T.nt.fromLngLat);return this.tileID=(i=u,n=Math.max(0,Math.floor(-Math.log(Math.max((a=T.pt.fromPoints(i)).width(),a.height()))/Math.LN2)),o=2**n,new T.u(n,Math.floor((a.minX+a.maxX)/2*o),Math.floor((a.minY+a.maxY)/2*o))),this.terrainTileRanges=this._getOverlappingTileRanges(u),this.minzoom=this.maxzoom=this.tileID.z,this.tileCoords=u.map(t=>
365this.tileID.getTilePoint(t)._round()),this.imageWarp=function(t,i){if("flat"===i||eG(t))return eB;let[r,a,n,o]=t,s=r.x-a.x+n.x-o.x,l=r.y-a.y+n.y-o.y,c=[a.x-n.x,a.y-n.y,o.x-n.x,o.y-n.y],[u,h,d,f]=c,p=c[0]*c[3]-c[2]*c[1],m=(s*f-d*l)/p,g=(u*l-s*h)/p,y=[1,1+m,1+m+g,1+g],_=Math.max(...y)/Math.min(...y),v="perspective"===i?0:Math.max(0,(1-4/_)/(1-4/512));return!(_>=1&&_<=512)||v>=1?eB:[m,g,v]}(this.tileCoords,this._warp),this._subdividedQuad=this.imageWarp[2]>0&&!eG(this.tileCoords),this.flippedWindingOrder=(s=(r=this.tileCoords)[1].x-r[0].x,l=r[1].y-r[0].y,c=r[2].x-r[0].x,s*(r[2].y-r[0].y)-l*c<0),this.fire(new R("data",{sourceDataType:"content"})),this}prepare(){if(0===Object.keys(this.tiles).length||!this.image)return;let t=this.map.painter.context,i=t.gl;this.texture?this._imageDirty&&(this.texture.update(this.image),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE)):(this.texture=new T.xt(t,this.image,i.RGBA),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE)),this._imageDirty=!1;let r=!1;for(let t in this.tiles){let i=this.tiles[t];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture,r=!0)}r&&this.fire(new R("data",{sourceDataType:"idle",sourceId:this.id}))}async loadTile(t){this.tileID?.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={}):t.state="errored"}serialize(){let t={type:"image",coordinates:this.coordinates};return void 0!==this.options.url&&(t.url=this.options.url),t}hasTransition(){return!1}_getOverlappingTileRanges(t){let{minX:i,minY:r,maxX:a,maxY:n}=T.pt.fromPoints(t),o={};for(let t=0;t<=25;t++){let s=2**t,l=Math.floor(i*s),c=Math.floor(r*s),u=Math.floor(a*s),h=Math.floor(n*s),d=(l%s+s)%s,f=u%s,p=Math.floor(l/s),m=Math.floor(u/s);o[t]={minWrap:p,maxWrap:m,minTileXWrapped:d,maxTileXWrapped:f,minTileY:c,maxTileY:h}}return o}};function eG(t){let[i,r,a,n]=t;return i.x+a.x===r.x+n.x&&i.y+a.y===r.y+n.y}var eq=class extends eU{constructor(t,i,r,a){super(t,i,r,a),this._onPlayingHandler=()=>{this.map?.triggerRepaint()},this.roundZoom=!0,this.type="video",this.options=i}async load(){this._loaded=!1;let t=this.options;for(let i of(this.urls=[],t.urls))this.urls.push((await this.map._requestManager.transformRequest(i,"Source")).url);try{let t=await (0,T.wn)(this.urls);if(this._loaded=!0,!t)return;this.video=t,this.video.loop=!0,this.video.addEventListener("playing",this._onPlayingHandler),this.map&&this.video.play(),this._finishLoading()}catch(t){this.fire(new T.gn((0,T.Qn)(t)))}}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(t){if(this.video){let i=this.video.seekable;t<i.start(0)||t>i.end(0)?this.fire(new T.gn(new T.pn(`sources.${this.id}`,null,`Playback for this video can be set only between the ${i.start(0)} and ${i.end(0)}-second mark.`))):this.video.currentTime=t}}getVideo(){return this.video}onAdd(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}onRemove(){super.onRemove(),this.video&&(this.video.removeEventListener("playing",this._onPlayingHandler),this.video.pause())}prepare(){if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;let t=this.map.painter.context,i=t.gl;this.texture?this.video.paused||(this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE),i.texSubImage2D(i.TEXTURE_2D,0,0,0,i.RGBA,i.UNSIGNED_BYTE,this.video)):(this.texture=new T.xt(t,this.video,i.RGBA),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE));let r=!1;for(let t in this.tiles){let i=this.tiles[t];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture,r=!0)}r&&this.fire(new R("data",{sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},eZ=class extends eU{constructor(t,i,r,a){super(t,i,r,a),i.coordinates?(!Array.isArray(i.coordinates)||4!==i.coordinates.length||i.coordinates.some(t=>!Array.isArray(t)||2!==t.length||t.some(t=>"number"!=typeof t)))&&this.fire(new T.gn(new T.pn(`sources.${t}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new T.gn(new T.pn(`sources.${t}`,null,'missing required property "coordinates"'))),i.animate&&"boolean"!=typeof i.animate&&this.fire(new T.gn(new T.pn(`sources.${t}
365`,null,'optional "animate" property must be a boolean value'))),i.canvas?"string"==typeof i.canvas||i.canvas instanceof HTMLCanvasElement||this.fire(new T.gn(new T.pn(`sources.${t}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new T.gn(new T.pn(`sources.${t}`,null,'missing required property "canvas"'))),this.options=i,this.animate=void 0===i.animate||i.animate}async load(){(this._loaded=!0,this.canvas||=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions())?this.fire(new T.gn(Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&=(this.prepare(),!1)},this._finishLoading())}getCanvas(){return this.canvas}onAdd(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this._playing=!1,super.onRemove()}prepare(){let t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),this._hasInvalidDimensions()||0===Object.keys(this.tiles).length)return;let i=this.map.painter.context,r=i.gl;this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):(this.texture=new T.xt(i,this.canvas,r.RGBA,{premultiply:!0}),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE));let a=!1;for(let t in this.tiles){let i=this.tiles[t];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture,a=!0)}a&&this.fire(new R("data",{sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",animate:this.animate,canvas:this.options.canvas,coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let t of[this.canvas.width,this.canvas.height])if(isNaN(t)||t<=0)return!0;return!1}};let eH={},eW="RTLPluginLoaded";var eX=class extends T.vn{constructor(...t){super(...t),this.status="unavailable",this.url=null,this.dispatcher=(h||(h=new eT(u||=new ew,T.bn)).registerMessageHandler("GR",(t,i,r)=>(0,T.Tn)(i,r)),h)}_syncState(t){return this.status=t,this.dispatcher.broadcast("SRPS",{pluginStatus:t,pluginURL:this.url}).catch(t=>{throw this.status="error",t})}getRTLTextPluginStatus(){return this.status}clearRTLTextPlugin(){this.status="unavailable",this.url=null}async setRTLTextPlugin(t,i=!1){if(this.url)throw Error("setRTLTextPlugin cannot be called multiple times.");if(this.url=A.resolveURL(t),!this.url)throw Error(`requested url ${t} is invalid`);if("unavailable"===this.status)if(!i)return this._requestImport();else this.status="deferred",this._syncState(this.status);else if("requested"===this.status)return this._requestImport()}async _requestImport(){await this._syncState("loading"),this.status="loaded",this.fire(new T._n(eW))}lazyLoad(){"unavailable"===this.status?this.status="requested":"deferred"===this.status&&this._requestImport()}};let eY=null;function eK(){return eY||=new eX}var eJ=class{constructor(t,i){this.timeAdded=0,this.fadeEndTime=0,this.fadeOpacity=1,this.tileID=t,this.uid=(0,T.Mr)(),this.uses=0,this.tileSize=i,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rttObjects=[],this.rttFingerprint={},this.expiredRequestCount=0,this.state="loading",this.featureStateRevision=-1}isRenderable(t){return this.hasData()&&(!this.fadeEndTime||0!==this.fadingDirection||this.fadeOpacity>0)&&(t||!this.holdingForSymbolFade())}setCrossFadeLogic({fadingRole:t,fadingDirection:i,fadingParentID:r,fadeEndTime:a}){this.resetFadeLogic(),this.fadingRole=t,this.fadingDirection=i,this.fadingParentID=r,this.fadeEndTime=a}setSelfFadeLogic(t){this.resetFadeLogic(),this.selfFading=!0,this.fadeEndTime=t}resetFadeLogic(){this.fadingRole=null,this.fadingDirection=null,this.fadingParentID=null,this.selfFading=!1,this.timeAdded=E(),this.fadeEndTime=0,this.fadeOpacity=1}wasRequested(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state}clearTextures(t){this.demTexture&&t.saveTileTexture(this.demTexture),this.demTexture=null}getRTT(t){return this.rttObjects[t]}acquireRTT(t,i,r){return this.rttObjects[i]=t.acquireRTT(r)}releaseRTT(t){if(0!==this.rttObjects.length){for(let i of this.rttObjects)i&&t.releaseRTT(i);this.rttObjects.length=0}}loadVectorData(t,i,r){if(t?.etagUnmodified===!0){this.state="loaded";return}if(this.hasData()&&this.unloadVectorData(),this.state="loaded",!t){this.collisionBoxArray=new T.Vt;return}for(let a in t.featureIndex&&(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestEncoding=t.encoding,this.latestFeatureIndex.rawTileData=t.rawTileData,this.latestFeatureIndex.encoding=t.encoding):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData,this.latestFeatureIndex.encoding=this.latestEncoding)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=function(t,i){let r={};if(!i)return r;for(let a of t){let t=a.layerIds.map(t=>
365i.getLayer(t)).filter(Boolean);if(0!==t.length)for(let i of(a.layers=t,a.stateDependentLayerIds&&(a.stateDependentLayers=a.stateDependentLayerIds.map(i=>t.filter(t=>t.id===i)[0])),t))r[i.id]=a}return r}(t.buckets,i?.style),this.hasSymbolBuckets=!1,this.buckets){let t=this.buckets[a];if(t instanceof T.S)if(this.hasSymbolBuckets=!0,r)t.justReloaded=!0;else break}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let t in this.buckets){let i=this.buckets[t];if(i instanceof T.S&&i.hasRTLText){this.hasRTLText=!0,eK().lazyLoad();break}}for(let t in this.queryPadding=0,this.buckets){let r=this.buckets[t];this.queryPadding=Math.max(this.queryPadding,i.style.getLayer(t).queryRadius(r))}t.imageAtlas&&(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&&(this.glyphAtlasImage=t.glyphAtlasImage),this.dashPositions=t.dashPositions}unloadVectorData(){for(let t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.imageAtlas=null,this.dashPositions=null,this.latestFeatureIndex=null,this.state="unloaded"}getBucket(t){return this.buckets[t.id]}upload(t){for(let i in this.buckets){let r=this.buckets[i];r.uploadPending()&&r.upload(t)}let i=t.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new T.xt(t,this.imageAtlas.image,i.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&=(this.glyphAtlasTexture=new T.xt(t,this.glyphAtlasImage,i.ALPHA),null)}prepare(t){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)}queryRenderedFeatures(t,i,r,a,n,o,s,l,c,u,h){return this.latestFeatureIndex?.rawTileData?this.latestFeatureIndex.query({queryGeometry:a,cameraQueryGeometry:n,scale:o,tileSize:this.tileSize,pixelPosMatrix:u,transform:l,params:s,queryPadding:this.queryPadding*c,getElevation:h},t,i,r):{}}querySourceFeatures(t,i){let r=this.latestFeatureIndex;if(!r?.rawTileData)return;let a=r.loadVTLayers(),n=i?.sourceLayer?i.sourceLayer:"",o=a._geojsonTileLayer||a[n];if(!o)return;let s=(0,T.cn)(i?.filter,`querySourceFeatures[${n}].filter`,i?.globalState),{z:l,x:c,y:u}=this.tileID.canonical,h={z:l,x:c,y:u};for(let i=0;i<o.length;i++){let a=o.feature(i);if(s.needGeometry){let t=(0,T.At)(a,!0);if(!s.filter(new T.en(this.tileID.overscaledZ),t,this.tileID.canonical))continue}else if(!s.filter(new T.en(this.tileID.overscaledZ),a))continue;let d=r.getId(a,n),f=new T.a(a,l,c,u,d);f.tile=h,t.push(f)}}hasData(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state}patternsLoaded(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length}setExpiryData(t){let i=this.expirationTime;if(t.cacheControl){let i=(0,T.vr)(t.cacheControl);i["max-age"]&&(this.expirationTime=Date.now()+1e3*i["max-age"])}else t.expires&&(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){let t=Date.now(),r=!1;if(this.expirationTime>t)r=!1;else if(i)if(this.expirationTime<i)r=!0;else{let a=this.expirationTime-i;a?this.expirationTime=t+Math.max(a,3e4):r=!0}else r=!0;r?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}}getExpiryTimeout(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-new Date().getTime(),0x7fffffff)}setFeatureState(t,i,r){if(!this.latestFeatureIndex?.rawTileData||0===Object.keys(t).length||this.featureStateRevision===r)return;this.featureStateRevision=r;let a=this.latestFeatureIndex.loadVTLayers();for(let r in this.buckets){if(!i.style.hasLayer(r))continue;let n=this.buckets[r],o=n.layers[0].sourceLayer||"_geojsonTileLayer",s=a[o],l=t[o];if(!s||!l||0===l.length)continue;n.update(l,s,this.imageAtlas?.patternPositions||{},this.dashPositions||{});let c=i?.style?.getLayer(r);c&&(this.queryPadding=Math.max(this.queryPadding,c.queryRadius(n)))}}holdingForSymbolFade(){return void 0!==this.symbolFadeHoldUntil}symbolFadeFinished(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<E()}clearSymbolFadeHold(){this.symbolFadeHoldUntil=void 0}setSymbolHoldDuration(t){this.symbolFadeHoldUntil=E()+t}
365setDependencies(t,i){let r={};for(let t of i)r[t]=!0;this.dependencies[t]=r}hasDependency(t,i){for(let r of t){let t=this.dependencies[r];if(t){for(let r of i)if(t[r])return!0}}return!1}};function eQ(t){let i=[];for(let r in t)i.push({id:r,state:t[r]});return i}var e1=class{constructor(){this.state={},this.stateChanges={},this.deletedStates={},this.revision=0}updateState(t,i,r){let a=String(i);if(this.stateChanges[t]||={},this.stateChanges[t][a]||={},(0,T.er)(this.stateChanges[t][a],r),null===this.deletedStates[t])for(let i in this.deletedStates[t]={},this.state[t])if(i===a)for(let n in this.deletedStates[t][a]={},this.state[t][i])void 0===r[n]&&(this.deletedStates[t][a][n]=null);else this.deletedStates[t][i]=null;else if(this.deletedStates[t]?.[a]===null)for(let i in this.deletedStates[t][a]={},this.state[t][a])void 0===r[i]&&(this.deletedStates[t][a][i]=null);else for(let i in r)this.deletedStates[t]?.[a]?.[i]===null&&delete this.deletedStates[t][a][i]}removeFeatureState(t,i,r){if(null===this.deletedStates[t])return;let a=String(i);if(this.deletedStates[t]||={},r&&void 0!==i)null!==this.deletedStates[t][a]&&(this.deletedStates[t][a]||={},this.deletedStates[t][a][r]=null);else if(void 0!==i)if(this.stateChanges[t]?.[a])for(r in this.deletedStates[t][a]={},this.stateChanges[t][a])this.deletedStates[t][a][r]=null;else this.deletedStates[t][a]=null;else this.deletedStates[t]=null}getState(t,i){let r=String(i),a=this.state[t]||{},n=this.stateChanges[t]||{},o=(0,T.er)({},a[r],n[r]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){let r=this.deletedStates[t][i];if(null===r)return{};for(let t in r)delete o[t]}return o}initializeTileState(t,i){let r={};for(let t in this.state)r[t]=eQ(this.state[t]);t.setFeatureState(r,i,this.revision)}coalesceChanges(t,i){let r={};for(let t in this.stateChanges)for(let i in this.state[t]||={},r[t]||={},this.stateChanges[t])this.state[t][i]||={},(0,T.er)(this.state[t][i],this.stateChanges[t][i]),r[t][i]=this.state[t][i];for(let t in this.deletedStates)if(this.state[t]||={},r[t]||={},null===this.deletedStates[t])for(let i in this.state[t])this.state[t][i]={},r[t][i]={};else for(let i in this.deletedStates[t]){if(null===this.deletedStates[t][i])this.state[t][i]={};else for(let r of Object.keys(this.deletedStates[t][i]))delete this.state[t][i][r];r[t][i]=this.state[t][i]}if(this.stateChanges={},this.deletedStates={},0===Object.keys(r).length)return;this.revision++;let a={};for(let t in r)a[t]=eQ(r[t]);t.setFeatureState(a,i,this.revision)}},e0=class t{constructor(t,i){this.min=t,this.max=i,this.center=(0,T.ci)([],(0,T.Xr)([],this.min,this.max),.5)}quadrant(i){let r=[i%2==0,i<2],a=(0,T.Zr)(this.min),n=(0,T.Zr)(this.max);for(let t=0;t<r.length;t++)a[t]=r[t]?this.min[t]:this.center[t],n[t]=r[t]?this.center[t]:this.max[t];return n[2]=this.max[2],new t(a,n)}distanceX(t){return Math.max(Math.min(this.max[0],t[0]),this.min[0])-t[0]}distanceY(t){return Math.max(Math.min(this.max[1],t[1]),this.min[1])-t[1]}intersectsFrustum(t){let i=!0;for(let r of t.planes){let t=this.intersectsPlane(r);if(0===t)return 0;1===t&&(i=!1)}return i?2:t.aabb.min[0]>this.max[0]||t.aabb.min[1]>this.max[1]||t.aabb.min[2]>this.max[2]||t.aabb.max[0]<this.min[0]||t.aabb.max[1]<this.min[1]||t.aabb.max[2]<this.min[2]?0:1}intersectsPlane(t){let i=t[3],r=t[3];for(let a=0;a<3;a++)t[a]>0?(i+=t[a]*this.min[a],r+=t[a]*this.max[a]):(r+=t[a]*this.min[a],i+=t[a]*this.max[a]);return i>=0?2:r<0?0:1}},e2=class t{constructor(t,i,r){this.points=t,this.planes=i,this.aabb=r}static fromInvProjectionMatrix(i,r=1,a=0,n,o){let s=o?[[6,5,4],[0,1,2],[0,3,7],[2,1,5],[3,2,6],[0,4,5]]:[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]],l=2**a,c=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(t=>{var a,n,o,s;let c,u;return a=t,n=i,o=r,s=l,u=1/(c=(0,T.Yr)([],a,n))[3]/o*s,(0,T.qr)(c,c,[u,u,1/c[3],u])});n&&function(t,i,r,a){var n,o;let s,l,c,u=4*!!a,h=4*!a,d=0,f=[],p=[];for(let i=0;i<4;i++){let r=(0,T.ui)([],t[i+h],t[i+u]),a=(0,T.ni)(r);(0,T.ci)(r,r,1/a),f.push(a),p.push(r)}for(let i=0;i<4;i++){let a=(0,T.Sr)(t[i+u],p[i],r);d=null!==a&&a>=0?Math.max(d,a):Math.max(d,f[i])}let m=(n=t,o=i,s=(0,T.ui)([],n[o[0]],n[o[1]]),l=(0,T.ui)([],n[o[2]],n[o[1]]),c=[0,0,0,0],(0,T.
365ii)(c,(0,T.Qr)([],s,l)),c[3]=-(0,T.ei)(c,n[o[0]]),c),g=function(t,i){let r=(0,T.ti)(t),a=(0,T.Jr)([],t,1/r),n=(0,T.ui)([],i,(0,T.ci)([],a,(0,T.ei)(i,a))),o=(0,T.ti)(n);if(o>0){let t=Math.sqrt(1-a[3]*a[3]),r=(0,T.ci)([],a,-a[3]),s=(0,T.Xr)([],r,(0,T.ci)([],n,t/o));return(0,T.br)(i,s)}return null}(r,m);null!==g&&(d=Math.min(d,g/(0,T.ei)(p[0],m)));for(let i=0;i<4;i++){let r=Math.min(d,f[i]);t[i+h]=[t[i+u][0]+p[i][0]*r,t[i+u][1]+p[i][1]*r,t[i+u][2]+p[i][2]*r,1]}}(c,s[0],n,o);let u=s.map(t=>{let i=(0,T.ui)([],c[t[0]],c[t[1]]),r=(0,T.ui)([],c[t[2]],c[t[1]]),a=(0,T.ii)([],(0,T.Qr)([],i,r)),n=-(0,T.ei)(a,c[t[1]]);return a.concat(n)}),h=[1/0,1/0,1/0],d=[-1/0,-1/0,-1/0];for(let t of c)for(let i=0;i<3;i++)h[i]=Math.min(h[i],t[i]),d[i]=Math.max(d[i],t[i]);return new t(c,u,new e0(h,d))}};function e3(t,i,r){let a=0,n=(r-i)/10;for(let o=0;o<10;o++){let s=i+(o+.5)/10*(r-i);a+=n*Math.cos(s)**t}return a}function e5(t,i){return function(r,a,n,o,s){let l=2*((t-1)/(0,T.Dr)(Math.cos((0,T.Yn)(89.25-s))/Math.cos((0,T.Yn)(89.25)))-1),c=Math.acos(n/o),u=2*e3(l-1,0,(0,T.Yn)(s/2)),h=Math.min((0,T.Yn)(89.25),c+(0,T.Yn)(s/2)),d=e3(l-1,Math.min(h,c-(0,T.Yn)(s/2)),h),f=Math.atan(a/n),p=Math.hypot(a,n),m=r;return m+=(0,T.Dr)(o/p/Math.max(.5,Math.cos((0,T.Yn)(s/2)))),m+=l*(0,T.Dr)(Math.cos(f))/2,m-=(0,T.Dr)(Math.max(1,d/u/i))/2}}let e4=e5(9.314,3);function e6(t,i){return Math.max(0,(i.roundZoom?Math.round:Math.floor)(t.zoom+(0,T.Dr)(t.tileSize/i.tileSize)))}function e8(t,i){var r;let a,n,o,s=t.getCameraFrustum(),l=t.getClippingPlane();if(l&&i.maxContentElevation>0){let r=Math.hypot(l[0],l[1],l[2]);if(r>0){let a=1+i.maxContentElevation/T.ut,n=Math.cos(Math.acos((0,T.Bn)(-l[3]/r,-1,1))+Math.acos(1/a));l=[l[0],l[1],l[2],-n*r],s=function(t,i,r){let a=t.planes[1],n=t.points.map(t=>{if(Math.abs(a[0]*t[0]+a[1]*t[1]+a[2]*t[2]+a[3])>1e-6)return t;let n=[t[0]-r[0],t[1]-r[1],t[2]-r[2]],o=a[0]*n[0]+a[1]*n[1]+a[2]*n[2];if(o>=-1e-9)return t;let s=-(i/o);return[t[0]+n[0]*s,t[1]+n[1]*s,t[2]+n[2]*s,t[3]]}),o=t.planes.map((t,r)=>1===r?[t[0],t[1],t[2],t[3]+i]:t),s=[1/0,1/0,1/0],l=[-1/0,-1/0,-1/0];for(let t of n)for(let i=0;i<3;i++)s[i]=Math.min(s[i],t[i]),l[i]=Math.max(l[i],t[i]);return new e2(n,o,new e0(s,l))}(s,Math.sqrt(a*a-1),t.cameraPosition)}}let c=(0,T.Y)(t),u=T.nt.fromLngLat(t.center,t.elevation),h=(r=i.maxContentElevation,a=89.25-t.pitch-t.fov/2,n=(0,T.Bn)((15-a)/15,0,1),o=Math.max(500,r??0),t.elevation+n*o),d=t.getCoveringTilesDetailsProvider(),f=d.allowVariableZoom(t,i),p=e6(t,i),m=i.minzoom||0,g=void 0===i.maxzoom?t.maxZoom:i.maxzoom,y=Math.min(Math.max(0,p),g),_=2**y,v=[_*c.x,_*c.y,0],b=[_*u.x,_*u.y,0],x=Math.hypot(u.x-c.x,u.y-c.y),w=Math.abs(u.z-c.z),k=Math.hypot(x,w),S=t=>({zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}),A=[],C=[];if(t.renderWorldCopies&&d.allowWorldCopies())for(let t=1;t<=3;t++)A.push(S(-t)),A.push(S(t));for(A.push(S(0));A.length>0;){let r=A.pop(),a=r.x,n=r.y,o=r.fullyVisible,_={x:a,y:n,z:r.zoom},x=d.getTileBoundingVolume(_,r.wrap,h,i);if(!o){let t=function(t,i,r){let a=i.intersectsFrustum(t);if(!r||0===a)return a;let n=i.intersectsPlane(r);return 0===n?0:2===a&&2===n?2:1}(s,x,l);if(0===t)continue;o=2===t}let S=d.distanceToTile2d(c.x,c.y,_,x),E=p;f&&(E=(i.calculateTileZoom||e4)(t.zoom+(0,T.Dr)(t.tileSize/i.tileSize),S,w,k,t.fov));let M=Math.min(E=Math.max(0,E=(i.roundZoom?Math.round:Math.floor)(E)),g);if(r.wrap=d.getWrap(u,_,r.wrap),r.zoom>=M){if(r.zoom<m)continue;let t=y-r.zoom,o=v[0]-.5-(a<<t),s=v[1]-.5-(n<<t),l=i.reparseOverscaled?Math.max(r.zoom,E):r.zoom;C.push({tileID:new T.d(r.zoom===g?l:r.zoom,r.wrap,r.zoom,a,n),distanceSq:(0,T.Vr)([b[0]-.5-a,b[1]-.5-n]),tileDistanceToCamera:Math.sqrt(o*o+s*s)});continue}for(let t=0;t<4;t++){let i=(a<<1)+t%2,s=(n<<1)+(t>>1),l=r.zoom+1;A.push({zoom:l,x:i,y:s,wrap:r.wrap,fullyVisible:o})}}return C.sort((t,i)=>t.distanceSq-i.distanceSq).map(t=>t.tileID)}function e7(t){return"raster"===t||"image"===t||"video"===t}function e9(t,i,r,a,n,o,s){if(r[0].overscaledZ>=o)return!1;let l=!1;for(let o of r){let r=t.getLoadedTile(o);if(!r)continue;let{fadingRole:c,fadingDirection:u,fadingParentID:h}=r;0===c&&0===u&&h||(r.setCrossFadeLogic({fadingRole:0,fadingDirection:0,fadingParentID:i.tileID,fadeEndTime:n+s}),i.setCrossFadeLogic({fadingRole:1,fadingDirection:1,fadeEndTime:n+s})),a[o.key]=o,l=!0}return l}function te(t,i){t.needsHillshadePrepare=!0,t.needsTerrainPrepare=!0,t.needsColorReliefPrepare=!0;let r=i.tileID.canonical.x-t.tileID.canonical.x,a=i.tileID.canonical.y-t.tileID.canonical.y,n=2**t.tileID.canonical.z,o=i.tileID.key;(0!==r||0!==a)&&(Math.abs(a)>1||(Math.abs(r)>1&&(1===Math.abs(r+n)?r+=n:1===Math.abs(r-n)&&(r-=n)),i.dem&&t.dem&&(t.dem.backfillBorder(i.dem,r,a),t.neighboringTiles?.[o]&&
365(t.neighboringTiles[o].backfilled=!0))))}var tt=class{constructor(){this._tiles={}}handleWrapJump(t){let i={};for(let r in this._tiles){let a=this._tiles[r];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+t),i[a.tileID.key]=a}this._tiles=i}setFeatureState(t,i,r){for(let a in this._tiles)this._tiles[a].setFeatureState(t,i,r)}getAllTiles(){return Object.values(this._tiles)}getAllIds(t=!1){return t?Object.values(this._tiles).map(t=>t.tileID).sort(T.m).map(t=>t.key):Object.keys(this._tiles)}getTileById(t){return this._tiles[t]}setTile(t,i){this._tiles[t]=i}deleteTileById(t){delete this._tiles[t]}getLoadedTile(t){let i=this.getTileById(t.key);return i?.hasData()?i:null}isIdRenderable(t,i=!1){return this.getTileById(t)?.isRenderable(i)}getRenderableIds(t=0,i){let r=[];for(let t of this.getAllIds())this.isIdRenderable(t,i)&&r.push(this.getTileById(t));return i?r.sort((i,r)=>{let a=i.tileID,n=r.tileID,o=new T.Li(a.canonical.x,a.canonical.y)._rotate(-t),s=new T.Li(n.canonical.x,n.canonical.y)._rotate(-t);return a.overscaledZ-n.overscaledZ||s.y-o.y||s.x-o.x}).map(t=>t.tileID.key):r.map(t=>t.tileID).sort(T.m).map(t=>t.key)}},ti=class t extends T.vn{static{this.maxUnderzooming=10}static{this.maxOverzooming=3}constructor(t,i,r){super(),this._maxContentElevationSeen=0,this.id=t,this.dispatcher=r,this.on("data",t=>{this._dataHandler(t)}),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=((t,i,r,a)=>{let n=new((t=>{switch(t){case"geojson":return eO;case"image":return eU;case"raster":return eD;case"raster-dem":return eI;case"vector":return eP;case"video":return eq;case"canvas":return eZ}return eH[t]})(i.type))(t,i,r,a);if(n.id!==t)throw Error(`Expected Source id to be ${t} instead of ${n.id}`);return n})(t,i,r,this),this._inViewTiles=new tt,this._outOfViewCache=new T.n(0,t=>this._unloadTile(t)),this._timers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._rasterFadeDuration=0,this._maxFadingAncestorLevels=5,this._state=new e1,this._didEmitContent=!1,this._updated=!1}onAdd(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._maxTileCacheZoomLevels=t?t._maxTileCacheZoomLevels:null,this._source?.onAdd&&this._source.onAdd(t)}onRemove(t){for(let t of this._inViewTiles.getAllTiles())t.unloadVectorData();this.clearTiles(),this._source?.onRemove&&this._source.onRemove(t),this._inViewTiles=new tt}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if((void 0!==this.used||void 0!==this.usedForTerrain)&&!this.used&&!this.usedForTerrain)return!0;if(!this._updated)return!1;for(let t of this._inViewTiles.getAllTiles())if("loaded"!==t.state&&"errored"!==t.state)return!1;return!0}getSource(){return this._source}getState(){return this._state}pause(){this._paused=!0}resume(){if(!this._paused)return;let t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}async _loadTile(t,i,r,a){try{let n=await this._source.loadTile(t);this._tileLoaded(t,i,r,a,n)}catch(i){t.state="errored",404===i.status?this.update(this.transform,this.terrain):this._source.fire(new T.gn((0,T.Qn)(i),{tile:t}))}}_unloadTile(t){this._source.unloadTile&&this._source.unloadTile(t)}_abortTile(t){this._source.abortTile&&this._source.abortTile(t),this._source.fire(new R("dataabort",{tile:t,coord:t.tileID}))}serialize(){return this._source.serialize()}prepare(t){for(let i of(this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._inViewTiles,this.map?this.map.painter:null),this._inViewTiles.getAllTiles()))i.upload(t),i.prepare(this.map.style.imageManager)}getIds(){return this._inViewTiles.getAllIds(!0)}getRenderableIds(t){return this._inViewTiles.getRenderableIds(this.transform?.bearingInRadians,t)}hasRenderableParent(t){let i=t.overscaledZ-1;if(i>=this._source.minzoom){let r=this.getLoadedTile(t.scaledTo(i));if(r)return this._inViewTiles.isIdRenderable(r.tileID.key)}return!1}reload(t,i){if(this._paused){this._shouldReloadOnResume=!0;return}for(let r of(this._outOfViewCache.reset(),this._inViewTiles.getAllIds())){let a=this._inViewTiles.getTileById(r);(!i||this._source.shouldReloadTile(a,i))&&(t?this._reloadTile(r,"errored"===a.state?"loading":"expired"):"errored"!==a.state&&this._reloadTile(r,"reloading"))}}async _reloadTile(t,i){let r=this._inViewTiles.getTileById(t);if(!r)return;let a=r.hasData();"loading"!==r.state&&(r.state=i),await this._loadTile(r,t,i,a)}_tileLoaded(t,i,r,a,n){a||(t.timeAdded=E(),t.selfFading&&(t.fadeEndTime=t.timeAdded+this._rasterFadeDuration)),"expired"===r&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(i,t),!n?.unmodified&&("raster-dem"===this.getSource().type&&t.dem&&function(t,i){for(let r of i.getRenderableIds()){if
365(!t.neighboringTiles?.[r])continue;let a=i.getTileById(r);t.neighboringTiles[r].backfilled||te(t,a),a.neighboringTiles?.[t.tileID.key]?.backfilled||te(a,t)}}(t,this._inViewTiles),t.featureStateRevision=-1,this._state.initializeTileState(t,this.map?this.map.painter:null),t.aborted||this._source.fire(new R("data",{tile:t,coord:t.tileID})))}getTile(t){return this.getTileByID(t.key)}getTileByID(t){return this._inViewTiles.getTileById(t)}_retainLoadedChildren(i,r){let a=this._getLoadedDescendents(r),n=new Set;for(let o of r){let r=a[o.key];if(!r?.length){n.add(o);continue}let s=o.overscaledZ+t.maxOverzooming,l=r.filter(t=>t.tileID.overscaledZ<=s);if(!l.length){n.add(o);continue}let c=Math.min(...l.map(t=>t.tileID.overscaledZ)),u=l.filter(t=>t.tileID.overscaledZ===c).map(t=>t.tileID);for(let t of u)i[t.key]=t;this._areDescendentsComplete(u,c,o.overscaledZ)||n.add(o)}return n}_getLoadedDescendents(t){let i={};for(let r of this._inViewTiles.getAllTiles().filter(t=>t.hasData()))for(let a of t)r.tileID.isChildOf(a)&&(i[a.key]||=[],i[a.key].push(r));return i}_areDescendentsComplete(t,i,r){return 1===t.length&&t[0].isOverscaled()?t[0].overscaledZ===i:4**(i-r)===t.length}getLoadedTile(t){return this._inViewTiles.getLoadedTile(t)}updateCacheSize(t){let i=Math.floor((Math.ceil(t.width/this._source.tileSize)+1)*(Math.ceil(t.height/this._source.tileSize)+1)*(null===this._maxTileCacheZoomLevels?T.An.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),r="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,i):i;this._outOfViewCache.setMaxSize(r)}handleWrapJump(t){let i=Math.round((t-(void 0===this._prevLng?t:this._prevLng))/360);this._prevLng=t,i&&(this._inViewTiles.handleWrapJump(i),this._resetTileReloadTimers())}_updateMaxContentElevation(){let t=this._maxContentElevationSeen,i=this.map?.style?._layers;if(!i)return t;let r=this._inViewTiles.getAllTiles();for(let a in i){let n=i[a];if(!("symbol"!==n.type||n.source!==this.id||n.isHidden(this.transform.zoom))&&n.layout)for(let i of(t=Math.max(t,n.layout.get("symbol-height-offset").constantOr(0)),r)){let r=i.getBucket(n);r&&r.maxHeightOffset>t&&(t=r.maxHeightOffset)}}return this._maxContentElevationSeen=t,t}update(t,i){let r;if(!this._sourceLoaded||this._paused)return;this.transform=t,this.terrain=i,this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng),this.used||this.usedForTerrain?this._source.tileID?r=t.getVisibleUnwrappedCoordinates(this._source.tileID).map(t=>new T.d(t.canonical.z,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y)):(r=e8(t,{tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:"vector"===this._source.type&&void 0!==this.map._zoomLevelsToOverscale?Math.max(this._source.maxzoom,t.maxZoom-this.map._zoomLevelsToOverscale):this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:i,calculateTileZoom:this._source.calculateTileZoom,maxContentElevation:this._updateMaxContentElevation()}),this._source.hasTile&&(r=r.filter(t=>this._source.hasTile(t)))):r=[],this.usedForTerrain&&(r=this._addTerrainIdealTiles(r));let a=0===r.length&&!this._updated&&this._didEmitContent;this._updated=!0,a&&this.fire(new R("data",{sourceDataType:"idle",sourceId:this.id}));let n=e6(t,this._source),o=this._updateRetainedTiles(r,n),s=e7(this._source.type);s&&this._rasterFadeDuration>0&&!i&&function(t,i,r,a,n,o,s){let l=E(),c=(0,T.ar)(i);for(let u of i){let i=t.getTileById(u.key);(0===i.fadingDirection||0===i.fadeOpacity)&&i.resetFadeLogic(),!function(t,i,r,a,n,o,s){if(!i.hasData())return!1;let{tileID:l,fadingRole:c,fadingDirection:u,fadingParentID:h}=i;if(0===c&&1===u&&h)return r[h.key]=h,!0;let d=Math.max(l.overscaledZ-n,o);for(let n=l.overscaledZ-1;n>=d;n--){let o=l.scaledTo(n),c=t.getLoadedTile(o);if(c)return i.setCrossFadeLogic({fadingRole:0,fadingDirection:1,fadingParentID:c.tileID,fadeEndTime:a+s}),c.setCrossFadeLogic({fadingRole:1,fadingDirection:0,fadeEndTime:a+s}),r[o.key]=o,!0}return!1}(t,i,r,l,a,n,s)&&(function(t,i,r,a,n,o){if(!i.hasData())return!1;let s=i.tileID.children(n),l=e9(t,i,s,r,a,n,o);if(l)return!0;for(let c of s)e9(t,i,c.children(n),r,a,n,o)&&(l=!0);return l}(t,i,r,l,o,s)||function(t,i,r,a){let n=t.tileID;return!!t.selfFading||!t.hasData()&&!!i.has(n)&&(t.setSelfFadeLogic(r+a),!0)}(i,c,l,s)||i.resetFadeLogic())}}(this._inViewTiles,r,o,this._maxFadingAncestorLevels,this._source.minzoom,this._source.maxzoom,this._rasterFadeDuration),s?this._cleanUpRasterTiles(o):this._cleanUpVectorTiles(o)}
365_cleanUpRasterTiles(t){for(let i of this._inViewTiles.getAllIds())t[i]||this._removeTile(i)}_cleanUpVectorTiles(t){for(let i of this._inViewTiles.getAllIds()){let r=this._inViewTiles.getTileById(i);if(t[i]){r.clearSymbolFadeHold();continue}if(!r.hasSymbolBuckets){this._removeTile(i);continue}r.holdingForSymbolFade()?r.symbolFadeFinished()&&this._removeTile(i):r.setSymbolHoldDuration(this.map._fadeDuration)}}_addTerrainIdealTiles(t){let i=[];for(let r of t)if(r.canonical.z>this._source.minzoom){let t=r.scaledTo(r.canonical.z-1);i.push(t);let a=r.scaledTo(Math.max(this._source.minzoom,Math.min(r.canonical.z,5)));i.push(a)}return t.concat(i)}releaseSymbolFadeTiles(){for(let t of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(t).holdingForSymbolFade()&&this._removeTile(t)}_updateRetainedTiles(i,r){let a=new Set;for(let t of i)this._addTile(t).hasData()||a.add(t);let n=i.reduce((t,i)=>(t[i.key]=i,t),{}),o=this._retainLoadedChildren(n,a),s={},l=Math.max(r-t.maxUnderzooming,this._source.minzoom);for(let t of o){let i=this._inViewTiles.getTileById(t.key),r=i?.wasRequested();for(let a=t.overscaledZ-1;a>=l;--a){let o=t.scaledTo(a);if(s[o.key])break;if(s[o.key]=!0,(i=this.getTile(o))||!r||(i=this._addTile(o)),i){let t=i.hasData();if((t||!this.map?.cancelPendingTileRequestsWhileZooming||r)&&(n[o.key]=o),r=i.wasRequested(),t)break}}}return n}_addTile(t){let i=this._inViewTiles.getTileById(t.key);if(i)return i;(i=this._outOfViewCache.getAndRemove(t))&&(i.resetFadeLogic(),this._setTileReloadTimer(t.key,i),i.tileID=t,this._state.initializeTileState(i,this.map?this.map.painter:null));let r=i;return i||(i=new eJ(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(i,t.key,i.state,!1)),i.uses++,this._inViewTiles.setTile(t.key,i),r||this._source.fire(new R("dataloading",{tile:i,coord:i.tileID})),i}_setTileReloadTimer(t,i){this._clearTileReloadTimer(t);let r=i.getExpiryTimeout();if(r){let i=()=>{this._reloadTile(t,"expired"),delete this._timers[t]};this._timers[t]=setTimeout(i,r)}}_clearTileReloadTimer(t){let i=this._timers[t];i&&(clearTimeout(i),delete this._timers[t])}_resetTileReloadTimers(){for(let t in this._timers)clearTimeout(this._timers[t]),delete this._timers[t];for(let t of this._inViewTiles.getAllIds()){let i=this._inViewTiles.getTileById(t);this._setTileReloadTimer(t,i)}}refreshTiles(t){for(let i of this._inViewTiles.getAllIds()){let r=this._inViewTiles.getTileById(i);(this._inViewTiles.isIdRenderable(i)||"errored"==r.state)&&t.some(t=>t.equals(r.tileID.canonical))&&this._reloadTile(i,"expired")}}_removeTile(t){let i=this._inViewTiles.getTileById(t);i&&(i.uses--,this._inViewTiles.deleteTileById(t),this._clearTileReloadTimer(t),i.uses>0||(i.hasData()&&"reloading"!==i.state?this._outOfViewCache.add(i.tileID,i,i.getExpiryTimeout()):(i.aborted=!0,this._abortTile(i),this._unloadTile(i))))}_dataHandler(t){if("source"===t.dataType){if("metadata"===t.sourceDataType){this._sourceLoaded=!0;return}"content"===t.sourceDataType&&this._sourceLoaded&&!this._paused&&(this.reload(t.sourceDataChanged,t.shouldReloadTileOptions),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}}resetMaxContentElevation(){this._maxContentElevationSeen=0}clearTiles(){for(let t of(this._shouldReloadOnResume=!1,this._paused=!1,this.resetMaxContentElevation(),this._inViewTiles.getAllIds()))this._removeTile(t);this._outOfViewCache.reset()}tilesIn(t,i,r){let a=[],n=this.transform;if(!n)return a;let o=n.getCoveringTilesDetailsProvider().allowWorldCopies(),s=r?n.getCameraQueryGeometry(t):t,l=t=>n.screenPointToMercatorCoordinate(t,this.terrain),c=this.transformBbox(t,l,!o),u=this.transformBbox(s,l,!o),h=this.getIds(),d=T.pt.fromPoints(u);for(let t of h){let r=this._inViewTiles.getTileById(t);if(r.holdingForSymbolFade())continue;let s=o?[r.tileID]:[r.tileID.unwrapTo(-1),r.tileID.unwrapTo(0)],l=2**(n.zoom-r.tileID.overscaledZ),h=i*r.queryPadding*8192/r.tileSize/l;for(let t of s){let i=d.map(i=>t.getTilePoint(new T.nt(i.x,i.y)));if(i.expandBy(h),i.intersects(T.ft)){let i=c.map(i=>t.getTilePoint(i)),n=u.map(i=>t.getTilePoint(i));a.push({tile:r,tileID:o?t:t.unwrapTo(0),queryGeometry:i,cameraQueryGeometry:n,scale:l})}}}return a}transformBbox(t,i,r){let a=t.map(i);if(r){let r=T.pt.fromPoints(t);r.shrinkBy(.001*Math.min(r.width(),r.height()));let n=r.map(i);T.pt.fromPoints(a).covers(n)||(a=a.map(t=>t.x>.5?new T.nt(t.x-1,t.y,t.z):t))}return a}getVisibleCoordinates(t){let i=this.getRenderableIds(t).map(t=>this._inViewTiles.getTileById(t).tileID);return this.transform&&this.transform.populateCache(i),i}hasTransition(){return!!this._source.hasTransition()||e7(this._source.type)&&function(t,i){if(i<=0)return!1;let r=E();for(let i of t.getAllTiles())if(i.fadeEndTime>=r)return!0;return!1}(this._inViewTiles,this._rasterFadeDuration)}setRasterFadeDuration(t){this._rasterFadeDuration=t}setFeatureState(t,i,r){t||=T.s,this._state.updateState(t,i,r)}removeFeatureState(t,i,r){t||=T.s,this._state.removeFeatureState(t,i,r)}getFeatureState(t,i){return t||=T.s,this._state.getState(t,i)}
vendor: 4,315 bytes, line 365
365setDependencies(t,i,r){let a=this._inViewTiles.getTileById(t);a&&a.setDependencies(i,r)}reloadTilesForDependencies(t,i){for(let r of this._inViewTiles.getAllIds())this._inViewTiles.getTileById(r).hasDependency(t,i)&&this._reloadTile(r,"reloading");this._outOfViewCache.filter(r=>!r.hasDependency(t,i))}areTilesLoaded(){for(let t of this._inViewTiles.getAllTiles())if("loaded"!==t.state&&"errored"!==t.state)return!1;return!0}},tr=class{constructor(t,i){this.reset(t,i)}reset(t,i){this.points=t||[],this._distances=[0];for(let t=1;t<this.points.length;t++)this._distances[t]=this._distances[t-1]+this.points[t].dist(this.points[t-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(i||0,.5*this.length),this.paddedLength=this.length-2*this.padding}lerp(t){if(1===this.points.length)return this.points[0];t=(0,T.Bn)(t,0,1);let i=1,r=this._distances[i],a=t*this.paddedLength+this.padding;for(;r<a&&i<this._distances.length;)r=this._distances[++i];let n=i-1,o=this._distances[n],s=r-o,l=s>0?(a-o)/s:0;return this.points[n].mult(1-l).add(this.points[i].mult(l))}};function ta(t,i,r,a,n){return n?t?t(i,r)+a:0===a?void 0:a:a}function tn(t,i){let r=!0;return"always"===t||("never"===t||"never"===i)&&(r=!1),r}var to=class{constructor(t,i,r){let a=this.boxCells=[],n=this.circleCells=[];this.xCellCount=Math.ceil(t/r),this.yCellCount=Math.ceil(i/r);for(let t=0;t<this.xCellCount*this.yCellCount;t++)a.push([]),n.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=i,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/i,this.boxUid=0,this.circleUid=0}keysLength(){return this.boxKeys.length+this.circleKeys.length}insert(t,i,r,a,n){this._forEachCell(i,r,a,n,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(i),this.bboxes.push(r),this.bboxes.push(a),this.bboxes.push(n)}insertCircle(t,i,r,a){this._forEachCell(i-a,r-a,i+a,r+a,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(i),this.circles.push(r),this.circles.push(a)}_insertBoxCell(t,i,r,a,n,o){this.boxCells[n].push(o)}_insertCircleCell(t,i,r,a,n,o){this.circleCells[n].push(o)}_query(t,i,r,a,n,o,s){if(r<0||t>this.width||a<0||i>this.height)return[];let l=[];if(t<=0&&i<=0&&this.width<=r&&this.height<=a){if(n)return[{key:null,x1:t,y1:i,x2:r,y2:a}];for(let t=0;t<this.boxKeys.length;t++)l.push({key:this.boxKeys[t],x1:this.bboxes[4*t],y1:this.bboxes[4*t+1],x2:this.bboxes[4*t+2],y2:this.bboxes[4*t+3]});for(let t=0;t<this.circleKeys.length;t++){let i=this.circles[3*t],r=this.circles[3*t+1],a=this.circles[3*t+2];l.push({key:this.circleKeys[t],x1:i-a,y1:r-a,x2:i+a,y2:r+a})}}else this._forEachCell(t,i,r,a,this._queryCell,l,{hitTest:n,overlapMode:o,seenUids:{box:{},circle:{}}},s);return l}query(t,i,r,a){return this._query(t,i,r,a,!1,null)}hitTest(t,i,r,a,n,o){return this._query(t,i,r,a,!0,n,o).length>0}hitTestCircle(t,i,r,a,n){let o=t-r,s=t+r,l=i-r,c=i+r;if(s<0||o>this.width||c<0||l>this.height)return!1;let u=[];return this._forEachCell(o,l,s,c,this._queryCellCircle,u,{hitTest:!0,overlapMode:a,circle:{x:t,y:i,radius:r},seenUids:{box:{},circle:{}}},n),u.length>0}_queryCell(t,i,r,a,n,o,s,l){let{seenUids:c,hitTest:u,overlapMode:h}=s,d=this.boxCells[n];if(null!==d){let n=this.bboxes;for(let s of d)if(!c.box[s]){c.box[s]=!0;let d=4*s,f=this.boxKeys[s];if(t<=n[d+2]+1e-6&&i<=n[d+3]+1e-6&&r>=n[d+0]-1e-6&&a>=n[d+1]-1e-6&&(!l||l(f))&&(!u||!tn(h,f.overlapMode))&&(o.push({key:f,x1:n[d],y1:n[d+1],x2:n[d+2],y2:n[d+3]}),u))return!0}}let f=this.circleCells[n];if(null!==f){let n=this.circles;for(let s of f)if(!c.circle[s]){c.circle[s]=!0;let d=3*s,f=this.circleKeys[s];if(this._circleAndRectCollide(n[d],n[d+1],n[d+2],t,i,r,a)&&(!l||l(f))&&(!u||!tn(h,f.overlapMode))){let t=n[d],i=n[d+1],r=n[d+2];if(o.push({key:f,x1:t-r,y1:i-r,x2:t+r,y2:i+r}),u)return!0}}}return!1}_queryCellCircle(t,i,r,a,n,o,s,l){let{circle:c,seenUids:u,overlapMode:h}=s,d=this.boxCells[n];if(null!==d){let t=this.bboxes;for(let i of d)if(!u.box[i]){u.box[i]=!0;let r=4*i,a=this.boxKeys[i];if(this._circleAndRectCollide(c.x,c.y,c.radius,t[r+0],t[r+1],t[r+2],t[r+3])&&(!l||l(a))&&!tn(h,a.overlapMode))return o.push(!0),!0}}let f=this.circleCells[n];if(null!==f){let t=this.circles;for(let i of f)if(!u.circle[i]){u.circle[i]=!0;let r=3*i,a=this.circleKeys[i];
365if(this._circlesCollide(t[r],t[r+1],t[r+2],c.x,c.y,c.radius)&&(!l||l(a))&&!tn(h,a.overlapMode))return o.push(!0),!0}}}_forEachCell(t,i,r,a,n,o,s,l){let c=this._convertToXCellCoord(t),u=this._convertToYCellCoord(i),h=this._convertToXCellCoord(r),d=this._convertToYCellCoord(a);for(let f=c;f<=h;f++)for(let c=u;c<=d;c++){let u=this.xCellCount*c+f;if(n.call(this,t,i,r,a,u,o,s,l))return}}_convertToXCellCoord(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))}_convertToYCellCoord(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))}_circlesCollide(t,i,r,a,n,o){let s=a-t,l=n-i,c=r+o;return c*c>s*s+l*l}_circleAndRectCollide(t,i,r,a,n,o,s){let l=(o-a)/2,c=Math.abs(t-(a+l));if(c>l+r)return!1;let u=(s-n)/2,h=Math.abs(i-(n+u));if(h>u+r)return!1;if(c<=l||h<=u)return!0;let d=c-l,f=h-u;return d*d+f*f<=r*r}};let ts=(0,T.vi)();function tl(t,i,r){let a=(0,T.vi)();if(!t){var n,o,s,l,c;let{vecSouth:t,vecEast:r}=tc(i),u=S();u[0]=r[0],u[1]=r[1],u[2]=t[0],u[3]=t[1],n=u[0],o=u[1],s=u[2],(c=n*(l=u[3])-s*o)&&(c=1/c,u[0]=l*c,u[1]=-o*c,u[2]=-s*c,u[3]=n*c),a[0]=u[0],a[1]=u[1],a[4]=u[2],a[5]=u[3]}return(0,T.Ai)(a,a,[1/r,1/r,1]),a}function tc(t){let i=Math.cos(t.rollInRadians),r=Math.sin(t.rollInRadians),a=Math.cos(t.pitchInRadians),n=Math.cos(t.bearingInRadians),o=Math.sin(t.bearingInRadians),s=(0,T.Rr)();s[0]=-n*a*r-o*i,s[1]=-o*a*r+n*i;let l=(0,T.zr)(s);l<1e-9?(0,T.Hr)(s):(0,T.Br)(s,s,1/l);let c=(0,T.Rr)();c[0]=n*a*i-o*r,c[1]=o*a*i+n*r;let u=(0,T.zr)(c);return u<1e-9?(0,T.Hr)(c):(0,T.Br)(c,c,1/u),{vecEast:c,vecSouth:s}}function tu(t,i,r){return ta(t.getElevation,i,r,t.heightOffset??0,t.heightAnchorGround??!0)}function th(t,i,r,a){let n;null==a?tT(n=[t,i,0,1],n,r):(n=[t,i,a,1],(0,T.Yr)(n,n,r));let o=n[3];return{point:new T.Li(n[0]/o,n[1]/o),signedDistanceFromCamera:o,isOccluded:!1}}function td(t,i,r,a,n,o,s,l){let c=o.glyphStartIndex+o.numGlyphs,u=o.lineStartIndex,h=o.lineStartIndex+o.lineLength,d=i.getoffsetX(o.glyphStartIndex),f=i.getoffsetX(c-1),p=tx(t*d,r,a,n,o.segment,u,h,l,s);if(!p)return null;let m=tx(t*f,r,a,n,o.segment,u,h,l,s);return!m||l.projectionCache.anyProjectionOccluded?null:{first:p,last:m}}function tf(t,i,r,a){return 1===t&&Math.abs(r.y-i.y)>Math.abs(r.x-i.x)*a?{useVertical:!0}:(2===t?i.y<r.y:i.x>r.x)?{needsFlipping:!0}:null}function tp(t){let{projectionContext:i,pitchedLabelPlaneMatrixInverse:r,symbol:a,fontSize:n,flip:o,keepUpright:s,glyphOffsetArray:l,dynamicLayoutVertexArray:c,aspectRatio:u,rotateToLine:h}=t,d=n/24,f=a.lineOffsetX*d,p=a.lineOffsetY*d,m;if(a.numGlyphs>1){let t=a.glyphStartIndex+a.numGlyphs,n=a.lineStartIndex,c=a.lineStartIndex+a.lineLength,g=td(d,l,f,p,o,a,h,i);if(!g)return{notEnoughRoom:!0};let y=t_(g.first.point.x,g.first.point.y,i,r),_=t_(g.last.point.x,g.last.point.y,i,r);if(s&&!o){let t=tf(a.writingMode,y,_,u);if(t)return t}m=[g.first];for(let r=a.glyphStartIndex+1;r<t-1;r++){let t=tx(d*l.getoffsetX(r),f,p,o,a.segment,n,c,i,h);if(!t)return{notEnoughRoom:!0};m.push(t)}m.push(g.last)}else{if(s&&!o){let t=ty(i.tileAnchorPoint.x,i.tileAnchorPoint.y,i).point,n=a.lineStartIndex+a.segment+1,o=new T.Li(i.lineVertexArray.getx(n),i.lineVertexArray.gety(n)),s=ty(o.x,o.y,i),l=s.signedDistanceFromCamera>0?s.point:tm(i.tileAnchorPoint,o,t,1,i),c=t_(t.x,t.y,i,r),h=t_(l.x,l.y,i,r),d=tf(a.writingMode,c,h,u);if(d)return d}let t=tx(d*l.getoffsetX(a.glyphStartIndex),f,p,o,a.segment,a.lineStartIndex,a.lineStartIndex+a.lineLength,i,h);if(!t||i.projectionCache.anyProjectionOccluded)return{notEnoughRoom:!0};m=[t]}for(let t of m)(0,T.C)(c,t.point,t.angle);return{}}function tm(t,i,r,a,n){let o=t.add(t.sub(i)._unit()),s=ty(o.x,o.y,n).point,l=r.sub(s);return r.add(l._mult(a/l.mag()))}function tg(t,i,r){let a=i.projectionCache;if(a.projections[t])return a.projections[t];let n=new T.Li(i.lineVertexArray.getx(t),i.lineVertexArray.gety(t)),o=ty(n.x,n.y,i);if(o.signedDistanceFromCamera>0)return a.projections[t]=o.point,a.anyProjectionOccluded||=o.isOccluded,o.point;let s=t-r.direction,l=0===r.distanceFromAnchor?i.tileAnchorPoint:new T.Li(i.lineVertexArray.getx(s),i.lineVertexArray.gety(s)),c=r.absOffsetX-r.distanceFromAnchor+1;return tm(l,n,r.previousVertex,c,i)}function ty(t,i,r){let a=t+r.translation[0],n=i+r.translation[1],o;
365return r.pitchWithMap?(o=th(a,n,r.pitchedLabelPlaneMatrix,tu(r,a,n))).isOccluded=!1:((o=r.transform.projectTileCoordinates(a,n,r.unwrappedTileID,tu(r,a,n))).point.x=(.5*o.point.x+.5)*r.width,o.point.y=(-(.5*o.point.y)+.5)*r.height),o}function t_(t,i,r,a){if(r.pitchWithMap){let n=[t,i,0,1];(0,T.Yr)(n,n,a);let o=n[0]/n[3],s=n[1]/n[3];return r.transform.projectTileCoordinates(o,s,r.unwrappedTileID,tu(r,o,s)).point}return{x:t/r.width*2-1,y:1-i/r.height*2}}function tv(t,i,r){return r.transform.projectTileCoordinates(t,i,r.unwrappedTileID,tu(r,t,i))}function tb(t,i,r){return t._unit()._perp()._mult(i*r)}function tx(t,i,r,a,n,o,s,l,c){let u=a?t-i:t+i,h=u>0?1:-1,d=0;a&&(h*=-1,d=Math.PI),h<0&&(d+=Math.PI);let f=h>0?o+n:o+n+1,p;l.projectionCache.cachedAnchorPoint?p=l.projectionCache.cachedAnchorPoint:(p=ty(l.tileAnchorPoint.x,l.tileAnchorPoint.y,l).point,l.projectionCache.cachedAnchorPoint=p);let m=p,g=p,y,_,v=0,b=0,x=Math.abs(u),w=[],k;for(;v+b<=x;){if((f+=h)<o||f>=s)return null;v+=b,g=m,_=y;let t={absOffsetX:x,direction:h,distanceFromAnchor:v,previousVertex:g};if(m=tg(f,l,t),0===r)w.push(g),k=m.sub(g);else{let i,a=m.sub(g);i=0===a.mag()?tb(tg(f+h,l,t).sub(m),r,h):tb(a,r,h),_||=g.add(i),y=function(t,i,r,a,n,o,s,l,c){if(l.projectionCache.offsets[t])return l.projectionCache.offsets[t];let u=r.add(i);if(t+c.direction<a||t+c.direction>=n)return l.projectionCache.offsets[t]=u,u;let h=tg(t+c.direction,l,c),d=tb(h.sub(r),s,c.direction),f=r.add(d),p=h.add(d);return l.projectionCache.offsets[t]=(0,T.nr)(o,u,f,p)||u,l.projectionCache.offsets[t]}(f,i,m,o,s,_,r,l,t),w.push(_),k=y.sub(_)}b=k.mag()}let S=(x-v)/b,A=k._mult(S)._add(_||g),C=d+Math.atan2(m.y-g.y,m.x-g.x);return w.push(A),{point:A,angle:c?C:0,path:w}}let tw=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function tk(t,i){for(let r=0;r<t;r++){let t=i.length;i.resize(t+4),i.float32.set(tw,3*t)}}function tT(t,i,r){let a=i[0],n=i[1];return t[0]=r[0]*a+r[4]*n+r[12],t[1]=r[1]*a+r[5]*n+r[13],t[3]=r[3]*a+r[7]*n+r[15],t}var tS=class{constructor(t,i=new to(t.width+200,t.height+200,25),r=new to(t.width+200,t.height+200,25)){this.transform=t,this.grid=i,this.ignoredGrid=r,this.pitchFactor=Math.cos(t.pitch*Math.PI/180)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+100,this.screenBottomBoundary=t.height+100,this.gridRightBoundary=t.width+200,this.gridBottomBoundary=t.height+200,this.perspectiveRatioCutoff=.6}placeCollisionBox(t,i,r,a,n,o,s,l,c,u,h,d,f=0,p=!0){let m=t.anchorPointX+l[0],g=t.anchorPointY+l[1],y=this.projectAndGetPerspectiveRatio(m,g,n,ta(u,m,g,f,p),d),_=r*y.perspectiveRatio,v;if(o||s)v=this._projectCollisionBox(t,_,a,n,o,s,l,y,u,h,d,f,p);else{let i=y.x+(h?h.x*_:0),r=y.y+(h?h.y*_:0);v={allPointsOccluded:!1,box:[i+t.x1*_,r+t.y1*_,i+t.x2*_,r+t.y2*_]}}let[b,x,w,k]=v.box,T=o?v.allPointsOccluded:y.isOccluded,S=T;return S||=y.perspectiveRatio<this.perspectiveRatioCutoff,(S||=!this.isInsideGrid(b,x,w,k))||"always"!==i&&this.grid.hitTest(b,x,w,k,i,c)?{box:[b,x,w,k],placeable:!1,offscreen:!1,occluded:T}:{box:[b,x,w,k],placeable:!0,offscreen:this.isOffscreen(b,x,w,k),occluded:T}}placeCollisionCircles(t,i,r,a,n,o,s,l,c,u,h,d,f,p){let m=[],g=new T.Li(i.anchorX,i.anchorY),y=this.getPerspectiveRatio(g.x,g.y,o,p?.(g.x,g.y)),_=(c?n*this.transform.getPitchedTextCorrection(i.anchorX,i.anchorY,o)/y:n*y)/24,v=i.lineOffsetX*_,b=i.lineOffsetY*_,x={getElevation:p,pitchedLabelPlaneMatrix:s,lineVertexArray:r,pitchWithMap:c,projectionCache:{projections:{},offsets:{},cachedAnchorPoint:void 0,anyProjectionOccluded:!1},transform:this.transform,tileAnchorPoint:g,unwrappedTileID:o,width:this.transform.width,height:this.transform.height,translation:f},w=td(_,a,v,b,!1,i,!1,x),k=!1,S=!1,A=!0;if(w){let i=.5*h*y+d,r=new T.Li(-100,-100),a=new T.Li(this.screenRightBoundary,this.screenBottomBoundary),n=new tr,o=w.first,s=w.last,f=[];for(let t=o.path.length-1;t>=1;t--)f.push(o.path[t]);for(let t=1;t<s.path.length;t++)f.push(s.path[t]);let p=2.5*i;if(c){let t=this.projectPathToScreenSpace(f,x);f=t.some(t=>t.signedDistanceFromCamera<=0)?[]:t.map(t=>t.point)}let g=[];if(f.length>0){let t=f[0].clone(),i=f[0].clone();for(let r=1;r<f.length;r++)t.x=Math.min(t.x,f[r].x),t.y=Math.min(t.y,f[r].y),i.x=Math.max(i.x,f[r].x),i.y=Math.max(i.y,f[r].y);g=t.x>=r.x&&i.x<=a.x&&t.y>=r.y&&i.y<=a.y?[f]:i.x<r.x||t.x>a.x||i.y<r.y||t.y>a.y?[]:(0,T.O)([f],r.x,r.y,a.x,a.y)}for(let r of g){n.reset(r,.25*i);let a=0;a=n.length<=.5*i?1:Math.ceil(n.paddedLength/p)+1;for(let r=0;r<a;r++){let o=r/Math.max(a-1,1),s=n.lerp(o),c=s.x+100,h=s.y+100;m.push(c,h,i,0);let d=c-i,f=h-i,p=c+i,g=h+i;if(A&&=this.isOffscreen(d,f,p,g),S||=this.isInsideGrid(d,f,p,g),"always"!==t&&this.grid.hitTestCircle(c,h,i,t,u)&&(k=!0,!l))return{circles:[],offscreen:!1,collisionDetected:k}}}}return{circles:!l&&k||!S||y<this.perspectiveRatioCutoff?[]:m,offscreen:A,collisionDetected:k}}projectPathToScreenSpace(t,i){var r;let a;return function(t){let i=0,r=0,a=0,n=0;for(let o=0;o<t.length;o++)t[o].isOccluded?(a=o+1,n=0):++n>r&&(r=n,i=a);return t.slice(i,i+r)}
365((a=1/((r=i.pitchedLabelPlaneMatrix)[0]*r[5]-r[1]*r[4]),ts[0]=r[5]*a,ts[1]=-r[1]*a,ts[2]=0,ts[3]=0,ts[4]=-r[4]*a,ts[5]=r[0]*a,ts[6]=0,ts[7]=0,ts[8]=0,ts[9]=0,ts[10]=1/r[10],ts[11]=0,ts[12]=0,ts[13]=0,ts[14]=0,ts[15]=1/r[15],t.map(t=>{let r=th(t.x,t.y,ts,tu(i,t.x,t.y)),a=i.transform.projectTileCoordinates(r.point.x,r.point.y,i.unwrappedTileID,tu(i,r.point.x,r.point.y));return a.point.x=(.5*a.point.x+.5)*i.width,a.point.y=(-(.5*a.point.y)+.5)*i.height,a})))}queryRenderedSymbols(t){if(0===t.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};let i=[],r=new T.pt;for(let a of t){let t=new T.Li(a.x+100,a.y+100);r.extend(t),i.push(t)}let{minX:a,minY:n,maxX:o,maxY:s}=r,l=this.grid.query(a,n,o,s).concat(this.ignoredGrid.query(a,n,o,s)),c={},u={};for(let t of l){let r=t.key;if(void 0===c[r.bucketInstanceId]&&(c[r.bucketInstanceId]={}),c[r.bucketInstanceId][r.featureIndex])continue;let a=[new T.Li(t.x1,t.y1),new T.Li(t.x2,t.y1),new T.Li(t.x2,t.y2),new T.Li(t.x1,t.y2)];(0,T.kt)(i,a)&&(c[r.bucketInstanceId][r.featureIndex]=!0,void 0===u[r.bucketInstanceId]&&(u[r.bucketInstanceId]=[]),u[r.bucketInstanceId].push(r.featureIndex))}return u}insertCollisionBox(t,i,r,a,n,o){(r?this.ignoredGrid:this.grid).insert({bucketInstanceId:a,featureIndex:n,collisionGroupID:o,overlapMode:i},t[0],t[1],t[2],t[3])}insertCollisionCircles(t,i,r,a,n,o){let s=r?this.ignoredGrid:this.grid,l={bucketInstanceId:a,featureIndex:n,collisionGroupID:o,overlapMode:i};for(let i=0;i<t.length;i+=4)s.insertCircle(l,t[i],t[i+1],t[i+2])}projectAndGetPerspectiveRatio(t,i,r,a,n){if(n){let r;null==a?tT(r=[t,i,0,1],r,n):(r=[t,i,a,1],(0,T.Yr)(r,r,n));let o=r[3];return{x:(r[0]/o+1)/2*this.transform.width+100,y:(-r[1]/o+1)/2*this.transform.height+100,perspectiveRatio:.5+.5*(this.transform.cameraToCenterDistance/o),isOccluded:!1,signedDistanceFromCamera:o}}{let n=this.transform.projectTileCoordinates(t,i,r,a);return{x:(n.point.x+1)/2*this.transform.width+100,y:(-n.point.y+1)/2*this.transform.height+100,perspectiveRatio:.5+.5*(this.transform.cameraToCenterDistance/n.signedDistanceFromCamera),isOccluded:n.isOccluded,signedDistanceFromCamera:n.signedDistanceFromCamera}}}getPerspectiveRatio(t,i,r,a){let n=this.transform.projectTileCoordinates(t,i,r,a);return .5+.5*(this.transform.cameraToCenterDistance/n.signedDistanceFromCamera)}isOffscreen(t,i,r,a){return r<100||t>=this.screenRightBoundary||a<100||i>this.screenBottomBoundary}isInsideGrid(t,i,r,a){return r>=0&&t<this.gridRightBoundary&&a>=0&&i<this.gridBottomBoundary}getViewportMatrix(){let t=(0,T.Si)([]);return(0,T.ji)(t,t,[-100,-100,0]),t}_projectCollisionBox(t,i,r,a,n,o,s,l,c,u,h,d=0,f=!0){let p=1,m=0,g=0,y=1,_=t.anchorPointX+s[0],v=t.anchorPointY+s[1];if(o&&!n){let t=this.projectAndGetPerspectiveRatio(_+1,v,a,ta(c,_+1,v,d,f),h),i=t.x-l.x,r=Math.atan((t.y-l.y)/i)+(i<0?Math.PI:0),n=Math.sin(r),o=Math.cos(r);p=o,m=n,g=-n,y=o}else if(!o&&n){let t=tc(this.transform);p=t.vecEast[0],m=t.vecEast[1],g=t.vecSouth[0],y=t.vecSouth[1]}let b=l.x,x=l.y,w=i;if(n&&(b=_,x=v,w=2**-(this.transform.zoom-r.overscaledZ)*this.transform.getPitchedTextCorrection(_,v,a),!u)){let t=l.signedDistanceFromCamera/this.transform.cameraToCenterDistance;w*=(0,T.Bn)(.5+.5*t,0,4)}u&&(b+=p*u.x*w+g*u.y*w,x+=m*u.x*w+y*u.y*w);let k=t.x1*w,S=t.x2*w,A=(k+S)/2,C=t.y1*w,E=t.y2*w,M=(C+E)/2,P=[];for(let{offsetX:t,offsetY:i}of[{offsetX:k,offsetY:C},{offsetX:A,offsetY:C},{offsetX:S,offsetY:C},{offsetX:S,offsetY:M},{offsetX:S,offsetY:E},{offsetX:A,offsetY:E},{offsetX:k,offsetY:E},{offsetX:k,offsetY:M}])P.push(new T.Li(b+p*t+g*i,x+m*t+y*i));let D=!1;if(n){let t=P.map(t=>this.projectAndGetPerspectiveRatio(t.x,t.y,a,ta(c,t.x,t.y,d,f),h));D=t.some(t=>!t.isOccluded),P=t.map(t=>
365new T.Li(t.x,t.y))}else D=!0;return{box:(0,T.rr)(P),allPointsOccluded:!D}}},tA=class{constructor(t,i,r,a){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?i:-i))):a&&r?1:0,this.placed=r}isHidden(){return 0===this.opacity&&!this.placed}},tC=class{constructor(t,i,r,a,n){this.text=new tA(t?t.text:null,i,r,n),this.icon=new tA(t?t.icon:null,i,a,n)}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}},tE=class{constructor(t,i,r){this.text=t,this.icon=i,this.skipFade=r}},tM=class{constructor(t,i,r,a,n){this.bucketInstanceId=t,this.featureIndex=i,this.sourceLayerIndex=r,this.bucketIndex=a,this.tileID=n}},tP=class{constructor(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}}get(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){let i=++this.maxGroupID;this.collisionGroups[t]={ID:i,predicate:t=>t.collisionGroupID===i}}return this.collisionGroups[t]}};function tD(t,i,r,a,n){let{horizontalAlign:o,verticalAlign:s}=(0,T.M)(t);return new T.Li(-(o-.5)*i+a[0]*n,-(s-.5)*r+a[1]*n)}var tI=class{constructor(t,i,r,a,n){this.transform=t.clone(),this.terrain=i,this.collisionIndex=new tS(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=r,this.retainedQueryData={},this.collisionGroups=new tP(a),this.collisionCircleArrays={},this.collisionBoxArrays=new Map,this.prevPlacement=n,n&&(n.prevPlacement=void 0),this.placedOrientations={}}_getTerrainElevationFunc(t){let i=this.terrain;if(i)return(r,a)=>i.getElevation(t,r,a)}getBucketParts(t,i,r,a){let n=r.getBucket(i),o=r.latestFeatureIndex;if(!n||!o||i.id!==n.layerIds[0])return;let s=r.collisionBoxArray,l=n.layers[0].layout,c=n.layers[0].paint,u=2**(this.transform.zoom-r.tileID.overscaledZ),h=r.tileSize/8192,d=r.tileID.toUnwrapped(),f="map"===l.get("text-rotation-alignment"),p=(0,T.Ir)(r,1,this.transform.zoom),m=(0,T.jr)(this.collisionIndex.transform,r,c.get("text-translate"),c.get("text-translate-anchor")),g=(0,T.jr)(this.collisionIndex.transform,r,c.get("icon-translate"),c.get("icon-translate-anchor")),y=tl(f,this.transform,p);this.retainedQueryData[n.bucketInstanceId]=new tM(n.bucketInstanceId,o,n.sourceLayerIndex,n.index,r.tileID);let _={bucket:n,layout:l,translationText:m,translationIcon:g,unwrappedTileID:d,pitchedLabelPlaneMatrix:y,scale:u,textPixelRatio:h,holdingForFade:r.holdingForSymbolFade(),collisionBoxArray:s,partiallyEvaluatedTextSize:(0,T.A)(n.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(n.sourceID)};if(a)for(let i of n.sortKeyRanges){let{sortKey:r,symbolInstanceStart:a,symbolInstanceEnd:n}=i;t.push({sortKey:r,symbolInstanceStart:a,symbolInstanceEnd:n,parameters:_})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:n.symbolInstances.length,parameters:_})}attemptAnchorPlacement(t,i,r,a,n,o,s,l,c,u,h,d,f,p,m,g,y,_,v,b,x,w){let k=T.E[t.textAnchor],S=[t.textOffset0,t.textOffset1],A=tD(k,r,a,S,n),C=this.collisionIndex.placeCollisionBox(i,d,l,c,u,s,o,g,h.predicate,v,A,b,x,w);if((!_||this.collisionIndex.placeCollisionBox(_,d,l,c,u,s,o,y,h.predicate,v,A,b,x,w).placeable)&&C.placeable){let t;if(this.prevPlacement?.variableOffsets[f.crossTileID]&&this.prevPlacement?.placements[f.crossTileID]?.text&&(t=this.prevPlacement.variableOffsets[f.crossTileID].anchor),0===f.crossTileID)throw Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[f.crossTileID]={textOffset:S,width:r,height:a,anchor:k,textBoxScale:n,prevAnchor:t},this.markUsedJustification(p,k,f,m),p.allowVerticalPlacement&&(this.markUsedOrientation(p,m,f),this.placedOrientations[f.crossTileID]=m),{shift:A,placedGlyphBoxes:C}}}placeLayerBucketPart(t,i,r){let{bucket:a,layout:n,translationText:o,translationIcon:s,unwrappedTileID:l,pitchedLabelPlaneMatrix:c,textPixelRatio:u,holdingForFade:h,collisionBoxArray:d,partiallyEvaluatedTextSize:f,collisionGroup:p}=t.parameters,m=n.get("text-optional"),g=n.get("icon-optional"),y=(0,T.w)(n,"text-overlap","text-allow-overlap"),_="always"===y,v=(0,T.w)(n,"icon-overlap","icon-allow-overlap"),b="always"===v,x="map"===n.get("text-rotation-alignment"),w="map"===n.get("text-pitch-alignment"),k="none"!==n.get("icon-text-fit"),S="viewport-y"===n.get("symbol-z-order"),A="ground"===n.get("symbol-height-anchor"),C=_&&(b||!a.hasIconData()||g),E=b&&(_||!a.hasTextData()||m);!a.collisionArrays&&d&&a.deserializeCollisionBoxes(d);let M=this.retainedQueryData[a.bucketInstanceId].tileID,P=this._getTerrainElevationFunc(M),D=this.transform.getFastPathSimpleProjectionMatrix(M),I=(t,d,b)=>{if(i[t.crossTileID])return;if(h){this.placements[t.crossTileID]=new tE(!1,!1,!1);return}let S=t.heightOffset,I=!1,z=!1,F=!0,R=null,O={box:null,placeable:!1,offscreen:null,occluded:!1},B={box:null,placeable:!1,offscreen:null},j=null,N=null,$=null,V=0,U=0,G=0;d.textFeatureIndex?V=d.textFeatureIndex:t.useRuntimeCollisionCircles&&(V=t.featureIndex),d.verticalTextFeatureIndex&&(U=d.verticalTextFeatureIndex);let q=d.textBox;if(q){let i=i=>{let r=1;if(a.allowVerticalPlacement&&!i&&this.prevPlacement){let i=this.prevPlacement.placedOrientations[t.crossTileID];i&&(this.placedOrientations[t.crossTileID]=i,r=i,this.markUsedOrientation(a,r,t))}return r},n=(i,r)=>{if(a.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&d.verticalTextBox){for(let t of a.writingModes)if(2===t?B=O=r():O=i(),O?.placeable)break}else O=i()},c=t.textAnchorOffsetStartIndex,h=t.textAnchorOffsetEndIndex;if(h===c){let r=(i,r)=>{let n=this.collisionIndex.placeCollisionBox(i,y,u,M,l,w,x,o,p.predicate,P,void 0,D,S,A);return n?.placeable&&(this.markUsedOrientation(a,r,t),this.placedOrientations[t.crossTileID]=r),n};n(()=>r(q,1),()=>{let i=d.verticalTextBox;return a.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&i?r(i,2):{box:null,offscreen:null}}),i(O?.placeable)}else{let f=T.E[this.prevPlacement?.variableOffsets[t.crossTileID]?.anchor],m=(i,n,d)=>{let m=i.x2-i.x1,g=i.y2-i.y1,_=t.textBoxScale,b=k&&"never"===v?n:null,T=null,C="never"===y?1:2,E="never";f&&C++;for(let r=0;r<C;r++){for(let r=c;r<h;r++){let n=a.textAnchorOffsets.get(r);if(f&&n.textAnchor!==f)continue;let c=this.attemptAnchorPlacement(n,i,m,g,_,x,w,u,M,l,p,E,t,a,d,o,s,b,P,D,S,A);if(c&&(T=c.placedGlyphBoxes,T?.placeable))return I=!0,R=c.shift,T}f?f=null:E=y}return r&&!T&&(T={box:this.collisionIndex.placeCollisionBox(q,"always",u,M,l,w,x,o,p.predicate,P,void 0,D,S,A).box,offscreen:!1,placeable:!1,occluded:!1}),T};n(()=>m(q,d.iconBox,1),()=>{let i=d.verticalTextBox,r=O?.placeable;return a.allowVerticalPlacement&&!r&&t.numVerticalGlyphVertices>0&&i?m(i,d.verticalIconBox,2):{box:null,occluded:!0,offscreen:null}}),O&&(I=O.placeable,F=O.offscreen);let g=i(O?.placeable);if(!I&&this.prevPlacement){let i=this.prevPlacement.variableOffsets[t.crossTileID];i&&(this.variableOffsets[t.crossTileID]=i,this.markUsedJustification(a,i.anchor,t,g))}}}if(j=O,I=j?.placeable,F=j?.offscreen,t.useRuntimeCollisionCircles&&t.centerJustifiedTextSymbolIndex>=0){let i=a.text.placedSymbolArray.get(t.centerJustifiedTextSymbolIndex),s=(0,T.k)(a.textSizeData,f,i),u=n.get("text-padding"),h=t.collisionCircleDiameter;(N=this.collisionIndex.placeCollisionCircles(y,i,a.lineVertexArray,a.glyphOffsetArray,s,l,c,r,w,p.predicate,h,u,o,P)).circles.length&&N.collisionDetected&&!r&&(0,T.Nr)("Collisions detected, but collision boxes are not shown"),I=_||N.circles.length>0&&!N.collisionDetected,F&&=N.offscreen}if(d.iconFeatureIndex&&(G=d.iconFeatureIndex),d.iconBox){let t=t=>this.collisionIndex.placeCollisionBox(t,v,u,M,l,w,x,s,p.predicate,P,k&&R?R:void 0,D,S,A);z=B&&B.placeable&&d.verticalIconBox?($=t(d.verticalIconBox)).placeable:($=t(d.iconBox)).placeable,F&&=$.offscreen}let Z=m||0===t.numHorizontalGlyphVertices&&0===t.numVerticalGlyphVertices,H=g||0===t.numIconVertices;Z||H?H?Z||(z&&=I):I=z&&I:z=I=z&&I;let W=I&&j.placeable,X=z&&$.placeable;if(W&&(B&&B.placeable&&U?this.collisionIndex.insertCollisionBox(j.box,y,n.get("text-ignore-placement"),a.bucketInstanceId,U,p.ID):this.collisionIndex.insertCollisionBox(j.box,y,n.get("text-ignore-placement"),a.bucketInstanceId,V,p.ID)),X&&this.collisionIndex.insertCollisionBox($.box,v,n.get("icon-ignore-placement"),a.bucketInstanceId,G,p.ID),N&&I&&this.collisionIndex.insertCollisionCircles(N.circles,y,n.get("text-ignore-placement"),a.bucketInstanceId,V,p.ID),r&&this.storeCollisionData(a.bucketInstanceId,b,d,j,$,N),0===t.crossTileID)throw Error("symbolInstance.crossTileID can't be 0");if(0===a.bucketInstanceId)throw Error("bucket.bucketInstanceId can't be 0");let Y=(I||C)&&!j?.occluded,K=(z||E)&&!$?.occluded;this.placements[t.crossTileID]=new tE(Y,K,F||a.justReloaded),i[t.crossTileID]=!0};if(S){if(0!==t.symbolInstanceStart)throw Error("bucket.bucketInstanceId should be 0");
365let i=a.getSortedSymbolIndexes(-this.transform.bearingInRadians);for(let t=i.length-1;t>=0;--t){let r=i[t];I(a.symbolInstances.get(r),a.collisionArrays[r],r)}}else for(let i=t.symbolInstanceStart;i<t.symbolInstanceEnd;i++)I(a.symbolInstances.get(i),a.collisionArrays[i],i);a.justReloaded=!1}storeCollisionData(t,i,r,a,n,o){if(r.textBox||r.iconBox){let o,s;this.collisionBoxArrays.has(t)?o=this.collisionBoxArrays.get(t):(o=new Map,this.collisionBoxArrays.set(t,o)),o.has(i)?s=o.get(i):(s={text:null,icon:null},o.set(i,s)),r.textBox&&(s.text=a.box),r.iconBox&&(s.icon=n.box)}if(o){let i=this.collisionCircleArrays[t];void 0===i&&(i=this.collisionCircleArrays[t]=[]);for(let t=0;t<o.circles.length;t+=4)i.push(o.circles[t+0]-100),i.push(o.circles[t+1]-100),i.push(o.circles[t+2]),i.push(+!!o.collisionDetected)}}markUsedJustification(t,i,r,a){let n={left:r.leftJustifiedTextSymbolIndex,center:r.centerJustifiedTextSymbolIndex,right:r.rightJustifiedTextSymbolIndex},o;for(let s of(o=2===a?r.verticalPlacedTextSymbolIndex:n[(0,T.T)(i)],[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex,r.verticalPlacedTextSymbolIndex]))s>=0&&(o>=0&&s!==o?t.text.placedSymbolArray.get(s).crossTileID=0:t.text.placedSymbolArray.get(s).crossTileID=r.crossTileID)}markUsedOrientation(t,i,r){let a=1===i||3===i?i:0;for(let i of[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex])t.text.placedSymbolArray.get(i).placedOrientation=a;r.verticalPlacedTextSymbolIndex&&(t.text.placedSymbolArray.get(r.verticalPlacedTextSymbolIndex).placedOrientation=2===i?i:0)}commit(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;let i=this.prevPlacement,r=!1;this.prevZoomAdjustment=i?i.zoomAdjustment(this.transform.zoom):0;let a=i?i.symbolFadeChange(t):1,n=i?i.opacities:{},o=i?i.variableOffsets:{},s=i?i.placedOrientations:{};for(let t in this.placements){let i=this.placements[t],o=n[t];o?(this.opacities[t]=new tC(o,a,i.text,i.icon),r||=i.text!==o.text.placed,r||=i.icon!==o.icon.placed):(this.opacities[t]=new tC(null,a,i.text,i.icon,i.skipFade),r||=i.text||i.icon)}for(let t in n){let i=n[t];if(!this.opacities[t]){let n=new tC(i,a,!1,!1);n.isHidden()||(this.opacities[t]=n,r||=i.text.placed,r||=i.icon.placed)}}for(let t in o)this.variableOffsets[t]||!this.opacities[t]||this.opacities[t].isHidden()||(this.variableOffsets[t]=o[t]);for(let t in s)this.placedOrientations[t]||!this.opacities[t]||this.opacities[t].isHidden()||(this.placedOrientations[t]=s[t]);if(i&&void 0===i.lastPlacementChangeTime)throw Error("Last placement time for previous placement is not defined");r?this.lastPlacementChangeTime=t:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=i?i.lastPlacementChangeTime:t)}updateLayerOpacities(t,i){let r={};for(let a of i){let i=a.getBucket(t);i&&a.latestFeatureIndex&&t.id===i.layerIds[0]&&this.updateBucketOpacities(i,a.tileID,r,a.collisionBoxArray)}}updateBucketOpacities(t,i,r,a){t.hasTextData()&&(t.text.opacityVertexArray.clear(),t.text.hasVisibleVertices=!1),t.hasIconData()&&(t.icon.opacityVertexArray.clear(),t.icon.hasVisibleVertices=!1),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexArray.clear(),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexArray.clear();let n=t.layers[0],o=n.layout,s=new tC(null,0,!1,!1,!0),l=o.get("text-allow-overlap"),c=o.get("icon-allow-overlap"),u=n._unevaluatedLayout.hasValue("text-variable-anchor")||n._unevaluatedLayout.hasValue("text-variable-anchor-offset"),h="map"===o.get("text-rotation-alignment"),d="map"===o.get("text-pitch-alignment"),f="none"!==o.get("icon-text-fit"),p=new tC(null,0,l&&(c||!t.hasIconData()||o.get("icon-optional")),c&&(l||!t.hasTextData()||o.get("text-optional")),!0);!t.collisionArrays&&a&&(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData())&&t.deserializeCollisionBoxes(a);let m=(t,i,r)=>{for(let a=0;a<i/4;a++)t.opacityVertexArray.emplaceBack(r);t.hasVisibleVertices||=r!==tF},g=this.collisionBoxArrays.get(t.bucketInstanceId);for(let i=0;i<t.symbolInstances.length;i++){let a=t.symbolInstances.get(i),{numHorizontalGlyphVertices:n,numVerticalGlyphVertices:o,crossTileID:l}=a,c=r[l],y=this.opacities[l];c?y=s:y||(y=p,this.opacities[l]=y),r[l]=!0;let _=n>0||o>0,v=a.numIconVertices>0,b=this.placedOrientations[a.crossTileID],x=2===b,w=1===b||3===b;if(_){let i=tL(y.text),r=x?tF:i;m(t.text,n,r);let s=w?tF:i;m(t.text,o,s);let l=y.text.isHidden();for(let i of[a.rightJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.leftJustifiedTextSymbolIndex])i>=0&&(t.text.placedSymbolArray.get(i).hidden=l||x?1:0);a.verticalPlacedTextSymbolIndex>=0&&(t.text.placedSymbolArray.get(a.verticalPlacedTextSymbolIndex).hidden=l||w?1:0);let c=this.variableOffsets[a.crossTileID];c&&this.markUsedJustification(t,c.anchor,a,b);let u=this.placedOrientations[a.crossTileID];u&&(this.markUsedJustification(t,"left",a,u),this.markUsedOrientation(t,u,a))}if(v){let i=tL(y.icon),r=!(f&&a.verticalPlacedIconSymbolIndex&&x);if(a.placedIconSymbolIndex>=0){let n=r?i:tF;m(t.icon,a.numIconVertices,n),t.icon.placedSymbolArray.get(a.placedIconSymbolIndex).hidden=y.icon.isHidden()}
vendor: 4,831 bytes, line 365
365if(a.verticalPlacedIconSymbolIndex>=0){let n=r?tF:i;m(t.icon,a.numVerticalIconVertices,n),t.icon.placedSymbolArray.get(a.verticalPlacedIconSymbolIndex).hidden=y.icon.isHidden()}}let k=g?.has(i)?g.get(i):{text:null,icon:null};if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){let r=t.collisionArrays[i];if(r){let i=new T.Li(0,0);if(r.textBox||r.verticalTextBox){let a=!0;if(u){let t=this.variableOffsets[l];t?(i=tD(t.anchor,t.width,t.height,t.textOffset,t.textBoxScale),h&&i._rotate(d?-this.transform.bearingInRadians:this.transform.bearingInRadians)):a=!1}if(r.textBox||r.verticalTextBox){let n;r.textBox&&(n=x),r.verticalTextBox&&(n=w),tz(t.textCollisionBox.collisionVertexArray,y.text.placed,!a||n,k.text,i.x,i.y)}}if(r.iconBox||r.verticalIconBox){let a=!(w||!r.verticalIconBox),n;r.iconBox&&(n=a),r.verticalIconBox&&(n=!a),tz(t.iconCollisionBox.collisionVertexArray,y.icon.placed,n,k.icon,f?i.x:0,f?i.y:0)}}}}if(t.sortFeatures(-this.transform.bearingInRadians),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexBuffer&&t.iconCollisionBox.collisionVertexBuffer.updateData(t.iconCollisionBox.collisionVertexArray),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexBuffer&&t.textCollisionBox.collisionVertexBuffer.updateData(t.textCollisionBox.collisionVertexArray),t.text.opacityVertexArray.length!==t.text.layoutVertexArray.length/4)throw Error(`bucket.text.opacityVertexArray.length (= ${t.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${t.text.layoutVertexArray.length}) / 4`);if(t.icon.opacityVertexArray.length!==t.icon.layoutVertexArray.length/4)throw Error(`bucket.icon.opacityVertexArray.length (= ${t.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${t.icon.layoutVertexArray.length}) / 4`);t.bucketInstanceId in this.collisionCircleArrays&&(t.collisionCircleArray=this.collisionCircleArrays[t.bucketInstanceId],delete this.collisionCircleArrays[t.bucketInstanceId])}symbolFadeChange(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(t){return Math.max(0,(this.transform.zoom-t)/1.5)}hasTransitions(t){return this.stale||t-this.lastPlacementChangeTime<this.fadeDuration}stillRecent(t,i){let r=this.zoomAtLastRecencyCheck===i?1-this.zoomAdjustment(i):1;return this.zoomAtLastRecencyCheck=i,this.commitTime+this.fadeDuration*r>t}setStale(){this.stale=!0}};function tz(t,i,r,a,n,o){a&&0!==a.length||(a=[0,0,0,0]);let s=a[0]-100,l=a[1]-100,c=a[2]-100,u=a[3]-100;t.emplaceBack(+!!i,+!!r,n||0,o||0,s,l),t.emplaceBack(+!!i,+!!r,n||0,o||0,c,l),t.emplaceBack(+!!i,+!!r,n||0,o||0,c,u),t.emplaceBack(+!!i,+!!r,n||0,o||0,s,u)}function tL(t){if(0===t.opacity&&!t.placed)return 0;if(1===t.opacity&&t.placed)return 0xffffffff;let i=+!!t.placed,r=Math.floor(127*t.opacity);return 0x2000000*r+0x1000000*i+131072*r+65536*i+512*r+256*i+2*r+i}let tF=0;var tR=class{constructor(t){this._sortAcrossTiles="viewport-y"!==t.layout.get("symbol-z-order")&&!t.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(t,i,r,a,n){let o=this._bucketParts;for(;this._currentTileIndex<t.length;){let r=t[this._currentTileIndex];if(i.getBucketParts(o,a,r,this._sortAcrossTiles),this._currentTileIndex++,n())return!0}for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,o.sort((t,i)=>t.sortKey-i.sortKey));this._currentPartIndex<o.length;){let t=o[this._currentPartIndex];if(i.placeLayerBucketPart(t,this._seenCrossTileIDs,r),this._currentPartIndex++,n())return!0}return!1}},tO=class{constructor(t,i,r,a,n,o,s,l){this.placement=new tI(t,i,o,s,l),this._currentPlacementIndex=r.length-1,this._forceFullPlacement=a,this._showCollisionBoxes=n,this._done=!1}isDone(){return this._done}continuePlacement(t,i,r){let a=E(),n=()=>!this._forceFullPlacement&&E()-a>2;for(;this._currentPlacementIndex>=0;){let a=i[t[this._currentPlacementIndex]],o=this.placement.collisionIndex.transform.zoom;if((0,T.x)(a)&&a.layout&&(!a.minzoom||a.minzoom<=o)&&(!a.maxzoom||a.maxzoom>o)){if(this._inProgressLayer||=new tR(a),this._inProgressLayer.continuePlacement(r[a.source],this.placement,this._showCollisionBoxes,a,n))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(t){return this.placement.commit(t),this.placement}};let tB=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array
vendor: 9,014 bytes, lines 365-389
365],tj=new Uint32Array(96);var tN=class t{static from(i){if(!i||void 0===i.byteLength||i.buffer)throw Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");let[r,a]=new Uint8Array(i,0,2);if(219!==r)throw Error("Data does not appear to be in a KDBush format.");let n=a>>4;if(1!==n)throw Error(`Got v${n} data when expected v1.`);let o=tB[15&a];if(!o)throw Error("Unrecognized array type.");let[s]=new Uint16Array(i,2,1),[l]=new Uint32Array(i,4,1);return new t(l,s,o,void 0,i)}constructor(t,i=64,r=Float64Array,a=ArrayBuffer,n){if(isNaN(t)||t<0)throw Error(`Unexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+i,2),65535),this.ArrayType=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;let o=tB.indexOf(this.ArrayType),s=2*t*this.ArrayType.BYTES_PER_ELEMENT,l=t*this.IndexArrayType.BYTES_PER_ELEMENT,c=(8-l%8)%8;if(o<0)throw Error(`Unexpected typed array class: ${r}.`);if(n)this.data=n,this.ids=new this.IndexArrayType(n,8,t),this.coords=new r(n,8+l+c,2*t),this._pos=2*t,this._finished=!0;else{let n=this.data=new a(8+s+l+c);this.ids=new this.IndexArrayType(n,8,t),this.coords=new r(n,8+l+c,2*t),this._pos=0,this._finished=!1,new Uint8Array(n,0,2).set([219,16+o]),new Uint16Array(n,2,1)[0]=i,new Uint32Array(n,4,1)[0]=t}}add(t,i){let r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=i,r}finish(){let t=this._pos>>1;if(t!==this.numItems)throw Error(`Added ${t} items when expected ${this.numItems}.`);return function t(i,r,a,n,o,s){if(o-n<=a)return;let l=n+o>>1;(function t(i,r,a,n,o,s){for(;o>n;){if(o-n>600){let l=o-n+1,c=a-n+1,u=Math.log(l),h=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*h*(l-h)/l)*(c-l/2<0?-1:1);t(i,r,a,Math.max(n,Math.floor(a-c*h/l+d)),Math.min(o,Math.floor(a+(l-c)*h/l+d)),s)}let l=r[2*a+s],c=n,u=o;for(t$(i,r,n,a),r[2*o+s]>l&&t$(i,r,n,o);c<u;){for(t$(i,r,c,u),c++,u--;r[2*c+s]<l;)c++;for(;r[2*u+s]>l;)u--}r[2*n+s]===l?t$(i,r,n,u):t$(i,r,++u,o),u<=a&&(n=u+1),a<=u&&(o=u-1)}})(i,r,l,n,o,s),t(i,r,a,n,l-1,1-s),t(i,r,a,l+1,o,1-s)}(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,i,r,a){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:n,coords:o,nodeSize:s}=this;tj[0]=0,tj[1]=n.length-1,tj[2]=0;let l=3,c=[];for(;l>0;){let u=tj[--l],h=tj[--l],d=tj[--l];if(h-d<=s){for(let s=d;s<=h;s++){let l=o[2*s],u=o[2*s+1];l>=t&&l<=r&&u>=i&&u<=a&&c.push(n[s])}continue}let f=d+h>>1,p=o[2*f],m=o[2*f+1];p>=t&&p<=r&&m>=i&&m<=a&&c.push(n[f]),(0===u?t<=p:i<=m)&&(tj[l++]=d,tj[l++]=f-1,tj[l++]=1-u),(0===u?r>=p:a>=m)&&(tj[l++]=f+1,tj[l++]=h,tj[l++]=1-u)}return c}within(t,i,r){let a=[];return this.withinInto(t,i,r,a),a}withinInto(t,i,r,a){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:n,coords:o,nodeSize:s}=this;tj[0]=0,tj[1]=n.length-1,tj[2]=0;let l=3,c=0,u=r*r;for(;l>0;){let h=tj[--l],d=tj[--l],f=tj[--l];if(d-f<=s){for(let r=f;r<=d;r++)tU(o[2*r],o[2*r+1],t,i)<=u&&(a[c++]=n[r]);continue}let p=f+d>>1,m=o[2*p],g=o[2*p+1];tU(m,g,t,i)<=u&&(a[c++]=n[p]),(0===h?t-r<=m:i-r<=g)&&(tj[l++]=f,tj[l++]=p-1,tj[l++]=1-h),(0===h?t+r>=m:i+r>=g)&&(tj[l++]=p+1,tj[l++]=d,tj[l++]=1-h)}return c}};function t$(t,i,r,a){tV(t,r,a),tV(i,2*r,2*a),tV(i,2*r+1,2*a+1)}function tV(t,i,r){let a=t[i];t[i]=t[r],t[r]=a}function tU(t,i,r,a){let n=t-r,o=i-a;return n*n+o*o}var tG=class{constructor(t,i,r){this.tileID=t,this.bucketInstanceId=r,this._symbolsByKey={};let a=new Map;for(let t=0;t<i.length;t++){let r=i.get(t),n=r.key,o=a.get(n);o?o.push(r):a.set(n,[r])}for(let[t,i]of a){let r={positions:i.map(t=>({x:Math.floor(.03125*t.anchorX),y:Math.floor(.03125*t.anchorY)})),crossTileIDs:i.map(t=>t.crossTileID)};if(r.positions.length>128){let t=new tN(r.positions.length,16,Uint16Array);for(let{x:i,y:a}of r.positions)t.add(i,a);t.finish(),delete r.positions,r.index=t}this._symbolsByKey[t]=r}}getScaledCoordinates(t,i){let{x:r,y:a,z:n}=this.tileID.canonical,{x:o,y:s,z:l}=i.canonical,c=.03125/2**(l-n);return{x:Math.floor((8192*o+t.anchorX)*c-8192*r*.03125),y:Math.floor((8192*s+t.anchorY)*c-8192*a*.03125)}}findMatches(t,i,r){let a=this.tileID.canonical.z<i.canonical.z?1:2**(this.tileID.canonical.z-i.canonical.z);for(let n=0;n<t.length;n++){let o=t.get(n);if(o.crossTileID)continue;let s=this._symbolsByKey[o.key];if(!s)continue;let l=this.getScaledCoordinates(o,i);s.index?this.findMatchesForIndexedEntry(s,o,l,a,r):s.positions&&this.findMatchesForNonIndexedEntry(s,o,l,a,r)}}findMatchesForIndexedEntry(t,i,r,a,n){let o=t.index.range(r.x-a,r.y-a,r.x+a,r.y+a),s=1/0;for(let i of o)i<s&&!n[t.crossTileIDs[i]]&&(s=i);if(1/0!==s){let r=t.crossTileIDs[s];n[r]=!0,i.crossTileID=r}}findMatchesForNonIndexedEntry(t,i,r,a,n){for(let o=0;o<t.positions.length;o++){let s=t.positions[o],l=t.crossTileIDs[o];if(Math.abs(s.x-r.x)<=a&&Math.abs(s.y-r.y)<=a&&!n[l]){n[l]=!0,i.crossTileID=l;break}}}getCrossTileIDsLists(){return Object.values(this._symbolsByKey).map(({crossTileIDs:t})=>t)}},tq=class{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}},tZ=class{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(t){let i=Math.round((t-this.lng)/360);if(0!==i)for(let t in this.indexes){let r=this.indexes[t],a={};for(let t in r){let n=r[t];n.tileID=n.tileID.unwrapTo(n.tileID.wrap+i),a[n.tileID.key]=n}this.indexes[t]=a}this.lng=t}addBucket(t,i,r){if(this.indexes[t.overscaledZ]?.[t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===i.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(let t=0;t<i.symbolInstances.length;t++)i.symbolInstances.get(t).crossTileID=0;this.usedCrossTileIDs[t.overscaledZ]||={};let a=this.usedCrossTileIDs[t.overscaledZ];for(let r in this.indexes){let n=this.indexes[r];if(Number(r)>t.overscaledZ)for(let r in n){let o=n[r];o.tileID.isChildOf(t)&&o.findMatches(i.symbolInstances,t,a)}else{let o=n[t.scaledTo(Number(r)).key];o&&o.findMatches(i.symbolInstances,t,a)}}for(let t=0;t<i.symbolInstances.length;t++){let n=i.symbolInstances.get(t);n.crossTileID||(n.crossTileID=r.generate(),a[n.crossTileID]=!0)}return void 0===this.indexes[t.overscaledZ]&&(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new tG(t,i.symbolInstances,i.bucketInstanceId),!0}removeBucketCrossTileIDs(t,i){for(let r of i.getCrossTileIDsLists())for(let i of r)delete this.usedCrossTileIDs[t][i]}removeStaleBuckets(t){let i=!1;for(let r in this.indexes){let a=this.indexes[r];for(let n in a)t[a[n].bucketInstanceId]||(this.removeBucketCrossTileIDs(r,a[n]),delete a[n],i=!0)}return i}},tH=class{constructor(){this.layerIndexes={},this.crossTileIDs=new tq,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}}addLayer(t,i,r){let a=this.layerIndexes[t.id];void 0===a&&(a=this.layerIndexes[t.id]=new tZ);let n=!1,o={};for(let s of(a.handleWrapJump(r),i)){let i=s.getBucket(t);t.id===i?.layerIds[0]&&(i.bucketInstanceId||=(this.maxBucketInstanceId+=1,this.maxBucketInstanceId),a.addBucket(s.tileID,i,this.crossTileIDs)&&(n=!0),o[i.bucketInstanceId]=!0)}return a.removeStaleBuckets(o)&&(n=!0),n}pruneUnusedLayers(t){let i={};for(let r of t)i[r]=!0;for(let t in this.layerIndexes)i[t]||delete this.layerIndexes[t]}},tW=`uniform vec4 u_color;uniform float u_opacity;void main() {fragColor=u_color*u_opacity;
366#ifdef OVERDRAW_INSPECTOR
367fragColor=vec4(1.0);
368#endif
369}`,tX=`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);fragColor=mix(color1,color2,u_mix)*u_opacity;
370#ifdef OVERDRAW_INSPECTOR
371fragColor=vec4(1.0);
372#endif
373}`,tY=`in vec3 v_data;flat in float v_visibility;
374#pragma maplibre: define highp vec4 color
375#pragma maplibre: define mediump float radius
376#pragma maplibre: define lowp float blur
377#pragma maplibre: define lowp float opacity
378#pragma maplibre: define highp vec4 stroke_color
379#pragma maplibre: define mediump float stroke_width
380#pragma maplibre: define lowp float stroke_opacity
381void main() {
382#pragma maplibre: initialize highp vec4 color
383#pragma maplibre: initialize mediump float radius
384#pragma maplibre: initialize lowp float blur
385#pragma maplibre: initialize lowp float opacity
386#pragma maplibre: initialize highp vec4 stroke_color
387#pragma maplibre: initialize mediump float stroke_width
388#pragma maplibre: initialize lowp float stroke_opacity
389vec2 extrude=v_data.xy;float extrude_length=length(extrude);float antialiased_blur=v_data.z;float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius
389/(radius+stroke_width));fragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);const float epsilon=0.5/255.0;if (fragColor.r < epsilon && fragColor.g < epsilon && fragColor.b < epsilon && fragColor.a < epsilon) {discard;}
390#ifdef OVERDRAW_INSPECTOR
391fragColor=vec4(1.0);
392#endif
393}`,tK=`uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform highp float u_globe_extrude_scale;uniform vec2 u_translate;layout(location=0) in ivec2 a_pos;out vec3 v_data;flat out float v_visibility;
394#pragma maplibre: define highp vec4 color
395#pragma maplibre: define mediump float radius
396#pragma maplibre: define lowp float blur
397#pragma maplibre: define lowp float opacity
398#pragma maplibre: define highp vec4 stroke_color
399#pragma maplibre: define mediump float stroke_width
400#pragma maplibre: define lowp float stroke_opacity
401void main(void) {
402#pragma maplibre: initialize highp vec4 color
403#pragma maplibre: initialize mediump float radius
404#pragma maplibre: initialize lowp float blur
405#pragma maplibre: initialize lowp float opacity
406#pragma maplibre: initialize highp vec4 stroke_color
407#pragma maplibre: initialize mediump float stroke_width
408#pragma maplibre: initialize lowp float stroke_opacity
409ivec2 pos_raw=a_pos+32768;vec2 extrude=vec2(pos_raw & 7)/7.0*2.0-1.0;vec2 circle_center=vec2(pos_raw >> 3)+u_translate;float ele=get_elevation(circle_center);v_visibility=calculate_visibility(projectTileWithElevation(circle_center,ele));if (u_pitch_with_map) {
410#ifdef GLOBE
411vec3 center_vector=projectToSphere(circle_center);
412#endif
413float angle_scale=u_globe_extrude_scale;vec2 corner_position=circle_center;if (u_scale_with_map) {angle_scale*=(radius+stroke_width);corner_position+=extrude*u_extrude_scale*(radius+stroke_width);} else {
414#ifdef GLOBE
415vec4 projected_center=interpolateProjection(circle_center,center_vector,ele);
416#else
417vec4 projected_center=projectTileWithElevation(circle_center,ele);
418#endif
419corner_position+=extrude*u_extrude_scale*(radius+stroke_width)*(projected_center.w/u_camera_to_center_distance);angle_scale*=(radius+stroke_width)*(projected_center.w/u_camera_to_center_distance);}
420#ifdef GLOBE
421vec2 angles=extrude*angle_scale;vec3 corner_vector=globeRotateVector(center_vector,angles);gl_Position=interpolateProjection(corner_position,corner_vector,ele);
422#else
423gl_Position=projectTileWithElevation(corner_position,ele);
424#endif
425} else {gl_Position=projectTileWithElevation(circle_center,ele);if (gl_Position.z/gl_Position.w > 1.0) {gl_Position.xy=vec2(10000.0);}if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`,tJ="void main() {fragColor=vec4(1.0);}";let tQ={prelude:t1(`#ifdef GL_ES
426precision mediump float;
427#else
428#if !defined(lowp)
429#define lowp
430#endif
431#if !defined(mediump)
432#define mediump
433#endif
434#if !defined(highp)
435#define highp
436#endif
437#endif
438out highp vec4 fragColor;layout(std140) uniform ProjectionUBO {highp mat4 u_projection_matrix;highp mat4 u_projection_fallback_matrix;highp vec4 u_projection_tile_mercator_coords;highp vec4 u_projection_clipping_plane;highp float u_projection_transition;highp int u_projection_clip_antimeridian;};layout(std140) uniform FrameUBO {highp vec2 u_units_to_pixels;highp vec2 u_world_size;highp float u_camera_to_center_distance;highp float u_symbol_fade_change;highp float u_aspect_ratio;highp float u_device_pixel_ratio;highp vec2 u_viewport_size;highp vec2 u_pixel_extrude_scale;highp float u_pitch;};`,`#ifdef GL_ES
439precision highp float;
440#else
441#if !defined(lowp)
442#define lowp
443#endif
444#if !defined(mediump)
445#define mediump
446#endif
447#if !defined(highp)
448#define highp
449#endif
450#endif
451vec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const uint packedOpacity) {return vec2(float(packedOpacity >> 1u)/127.0,float(packedOpacity & 1u));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0
452);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);
452return (tile_units_to_pixels*pos+offset)/pattern_size;}mat3 rotationMatrixFromAxisAngle(vec3 u,float angle) {float c=cos(angle);float s=sin(angle);float c2=1.0-c;return mat3(u.x*u.x*c2+      c,u.x*u.y*c2-u.z*s,u.x*u.z*c2+u.y*s,u.y*u.x*c2+u.z*s,u.y*u.y*c2+    c,u.y*u.z*c2-u.x*s,u.z*u.x*c2-u.y*s,u.z*u.y*c2+u.x*s,u.z*u.z*c2+    c
453);}
454#ifdef TERRAIN3D
455uniform sampler2D u_terrain;uniform highp sampler2D u_depth;layout(std140) uniform TerrainUBO {highp mat4 u_terrain_matrix;highp vec4 u_terrain_unpack;highp float u_terrain_dim;highp float u_terrain_exaggeration;};
456#endif
457const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitShifts=vec4(1.)/bitSh;highp float unpack(highp vec4 color) {return dot(color,bitShifts);}highp float depthOpacity(vec3 frag) {
458#ifdef TERRAIN3D
459highp float d=unpack(texture(u_depth,frag.xy*0.5+0.5))+0.0001-frag.z;return 1.0-max(0.0,min(1.0,-d*500.0));
460#else
461return 1.0;
462#endif
463}float calculate_visibility(vec4 pos) {
464#ifdef TERRAIN3D
465vec3 frag=pos.xyz/pos.w;highp float d=depthOpacity(frag);if (d > 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0;
466#else
467return 1.0;
468#endif
469}float ele(ivec2 pos) {
470#ifdef TERRAIN3D
471vec4 rgb=(texelFetch(u_terrain,pos,0)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a;
472#else
473return 0.0;
474#endif
475}float get_elevation(vec2 pos) {
476#ifdef TERRAIN3D
477#ifdef GLOBE
478if ((pos.y <-32767.5) || (pos.y > 32766.5)) {return 0.0;}
479#endif
480vec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.5;vec2 f=fract(coord);ivec2 c=ivec2(floor(coord));ivec2 hi=textureSize(u_terrain,0)-1;float tl=ele(clamp(c,ivec2(0),hi));float tr=ele(clamp(c+ivec2(1,0),ivec2(0),hi));float bl=ele(clamp(c+ivec2(0,1),ivec2(0),hi));float br=ele(clamp(c+ivec2(1,1),ivec2(0),hi));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration;
481#else
482return 0.0;
483#endif
484}const float PI=3.141592653589793;
485#define PROJECTION_UBO
486layout(std140) uniform ProjectionUBO {highp mat4 u_projection_matrix;highp mat4 u_projection_fallback_matrix;highp vec4 u_projection_tile_mercator_coords;highp vec4 u_projection_clipping_plane;highp float u_projection_transition;highp int u_projection_clip_antimeridian;};layout(std140) uniform FrameUBO {highp vec2 u_units_to_pixels;highp vec2 u_world_size;highp float u_camera_to_center_distance;highp float u_symbol_fade_change;highp float u_aspect_ratio;highp float u_device_pixel_ratio;highp vec2 u_viewport_size;highp vec2 u_pixel_extrude_scale;highp float u_pitch;};`),projectionMercator:t1(`
487void clipAntimeridian() {}`,"float projectLineThickness(float tileY) {return 1.0;}float projectCircleRadius(float tileY) {return 1.0;}vec4 projectTile(vec2 p) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);return result;}vec4 projectTile(vec2 p,vec2 rawPos) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);if (rawPos.y <-32767.5 || rawPos.y > 32766.5) {result.z=-10000000.0;}return result;}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_projection_matrix*vec4(posInTile,elevation,1.0);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {return projectTileWithElevation(posInTile,elevation);}"),projectionGlobe:t1("in highp float v_projection_tile_x;void clipAntimeridian() {if (u_projection_clip_antimeridian !=0 && (v_projection_tile_x < 0.0 || v_projection_tile_x >=8192.0)) {discard;}}",`#define GLOBE_RADIUS 6371008.8
488#ifndef PROJECTION_UBO
489uniform highp vec4 u_projection_tile_mercator_coords;uniform highp vec4 u_projection_clipping_plane;uniform highp float u_projection_transition;uniform mat4 u_projection_fallback_matrix;
490#endif
491out highp float v_projection_tile_x;vec3 globeRotateVector(vec3 vec,vec2 angles) {vec3 axisRight=vec3(vec.z,0.0,-vec.x);vec3 axisUp=cross(axisRight,vec);axisRight=normalize(axisRight);axisUp=normalize(axisUp);vec2 t=tan(angles);return normalize(vec+axisRight*t.x+axisUp*t.y);}mat3 globeGetRotationMatrix(vec3 spherePos) {vec3 axisRight=vec3(spherePos.z,0.0,-spherePos.x);vec3 axisDown=cross(axisRight,spherePos);axisRight=normalize(axisRight);axisDown=normalize(axisDown);return mat3(axisRight,axisDown,spherePos
492);}float circumferenceRatioAtTileY(float tileY) {float mercator_pos_y=u_projection_tile_mercator_coords.y+u_projection_tile_mercator_coords.w*tileY;float t=exp(PI-(mercator_pos_y*PI*2.0));return (2.0*t)/(t*t+1.0);}float projectLineThickness(float tileY) {float thickness=1.0/circumferenceRatioAtTileY(tileY);if (u_projection_transition < 0.999) {return mix(1.0,thickness,u_projection_transition);} else {return thickness;}}vec3 projectToSphere(vec2 translatedPos,vec2 rawPos) {vec2 mercator_pos=u_projection_tile_mercator_coords.xy+u_projection_tile_mercator_coords.zw*translatedPos;float spherical_x=mercator_pos.x*PI*2.0+PI;float t=exp(PI-(mercator_pos.y*PI*2.0));
492float t2=t*t;float denom=t2+1.0;float sin_sy=(t2-1.0)/denom;float cos_sy=(2.0*t)/denom;vec3 pos=vec3(sin(spherical_x)*cos_sy,sin_sy,cos(spherical_x)*cos_sy
493);if (rawPos.y <-32767.5) {pos=vec3(0.0,1.0,0.0);}if (rawPos.y > 32766.5) {pos=vec3(0.0,-1.0,0.0);}return pos;}vec3 projectToSphere(vec2 posInTile) {return projectToSphere(posInTile,vec2(0.0,0.0));}float globeComputeClippingZ(vec3 spherePos) {return (1.0-(dot(spherePos,u_projection_clipping_plane.xyz)+u_projection_clipping_plane.w));}vec4 interpolateProjection(vec2 posInTile,vec3 spherePos,float elevation) {v_projection_tile_x=posInTile.x;vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);globePosition.z=globeComputeClippingZ(elevatedPos)*globePosition.w;if (u_projection_transition > 0.999) {return globePosition;}vec4 flatPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);const float z_globeness_threshold=0.2;vec4 result=globePosition;result.z=mix(0.0,globePosition.z,clamp((u_projection_transition-z_globeness_threshold)/(1.0-z_globeness_threshold),0.0,1.0));result.xyw=mix(flatPosition.xyw,globePosition.xyw,u_projection_transition);if ((posInTile.y <-32767.5) || (posInTile.y > 32766.5)) {result=globePosition;const float poles_hidden_anim_percentage=0.02;result.z=mix(globePosition.z,100.0,pow(max((1.0-u_projection_transition)/poles_hidden_anim_percentage,0.0),8.0));}return result;}vec4 interpolateProjectionFor3D(vec2 posInTile,vec3 spherePos,float elevation) {v_projection_tile_x=posInTile.x;vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);if (u_projection_transition > 0.999) {return globePosition;}vec4 fallbackPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);return mix(fallbackPosition,globePosition,u_projection_transition);}vec4 projectTile(vec2 posInTile) {return interpolateProjection(posInTile,projectToSphere(posInTile),0.0);}vec4 projectTile(vec2 posInTile,vec2 rawPos) {return interpolateProjection(posInTile,projectToSphere(posInTile,rawPos),0.0);}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return interpolateProjection(posInTile,projectToSphere(posInTile),elevation);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {vec3 spherePos=projectToSphere(posInTile,posInTile);return interpolateProjectionFor3D(posInTile,spherePos,elevation);}`),background:t1(tW,"layout(location=0) in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),backgroundPattern:t1(tX,"uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;layout(location=0) in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;void main() {gl_Position=projectTile(a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:t1(tY,tK),clippingMask:t1(tJ,"layout(location=0) in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),heatmap:t1(`uniform highp float u_intensity;in vec2 v_extrude;
494#pragma maplibre: define highp float weight
495#define GAUSS_COEF 0.3989422804014327
496void main() {
497#pragma maplibre: initialize highp float weight
498float d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);fragColor=vec4(val,1.0,1.0,1.0);
499#ifdef OVERDRAW_INSPECTOR
500fragColor=vec4(1.0);
501#endif
502}`,`uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;uniform highp float u_globe_extrude_scale;layout(location=0) in ivec2 a_pos;out vec2 v_extrude;
503#pragma maplibre: define highp float weight
504#pragma maplibre: define mediump float radius
505const highp float ZERO=1.0/255.0/16.0;
506#define GAUSS_COEF 0.3989422804014327
507void main(void) {
508#pragma maplibre: initialize highp float weight
509#pragma maplibre: initialize mediump float radius
510ivec2 pos_raw=a_pos+32768;vec2 unscaled_extrude=vec2(pos_raw & 7)/7.0*2.0-1.0;float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 circle_center=vec2(pos_raw >> 3);
511#ifdef GLOBE
512vec2 angles=v_extrude*radius*u_globe_extrude_scale;vec3 center_vector=projectToSphere(circle_center);vec3 corner_vector=globeRotateVector(center_vector,angles);gl_Position=interpolateProjection(circle_center+extrude,corner_vector,0.0);
513#else
514gl_Position=projectTileFor3D(circle_center+extrude,get_elevation(circle_center));
515#endif
516}`),heatmapTexture:t1(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;in vec2 v_pos;void main() {float t=texture(u_image,v_pos).r;vec4 color=texture(u_color_ramp,vec2(t,0.5));fragColor=color*u_opacity;
517#ifdef OVERDRAW_INSPECTOR
518fragColor=vec4(0.0);
519#endif
520}`,"uniform mat4 u_matrix;layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world_size,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:t1("flat in float v_placed;flat in float v_notUsed;void main() {float alpha=0.5;fragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {fragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {fragColor*=.1;}}","layout(location=0) in vec2 a_anchor_pos;layout(location=1) in vec2 a_placed;layout(location=2) in vec2 a_box_real;flat out float v_placed;flat out float v_notUsed;void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:t1("flat in float v_radius;in vec2 v_extrude;flat in float v_collision;void main() {float alpha=0.5;float stroke_radius=0.9;float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);fragColor=color*alpha*opacity_t;}","layout(location=0) in vec2 a_pos;layout(location=1) in float a_radius;layout(location=2) in vec2 a_flags;flat out float v_radius;out vec2 v_extrude;flat out float v_collision;void main() {float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_collision=collision;gl_Position=vec4((a_pos/u_viewport_size*2.0-1.0)*vec2(1.0,-1.0),0.0,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),colorRelief:t1(`#ifdef GL_ES
521precision highp float;
522#endif
523uniform sampler2D u_image;uniform vec4 u_unpack;uniform sampler2D u_elevation_stops;uniform sampler2D u_color_stops;uniform int u_color_ramp_size;uniform float u_opacity;in vec2 v_pos;float getElevation(vec2 coord) {vec4 data=texture(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack);}float getElevationStop(int stop) {vec4 data=texelFetch(u_elevation_stops,ivec2(stop,0),0)*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {float el=getElevation(v_pos);int r=(u_color_ramp_size-1);int l=0;float el_l=getElevationStop(l);float el_r=getElevationStop(r);while(r-l > 1){int m=(r+l)/2;float el_m=getElevationStop(m);if(el < el_m){r=m;el_r=el_m;}else
524{l=m;el_l=el_m;}}float x=(float(l)+(el-el_l)/(el_r-el_l)+0.5)/float(u_color_ramp_size);fragColor=u_opacity*texture(u_color_stops,vec2(x,0));
525#ifdef OVERDRAW_INSPECTOR
526fragColor=vec4(1.0);
527#endif
528}`,"uniform vec2 u_dimension;layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);highp vec2 epsilon=2.0/u_dimension;float scale=(u_dimension.x-4.0)/u_dimension.x;v_pos=(a_pos/8192.0)*scale+epsilon;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),debug:t1("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);fragColor=mix(u_color,overlay_color,overlay_color.a);}","layout(location=0) in vec2 a_pos;out vec2 v_uv;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=projectTileWithElevation(a_pos*u_overlay_scale,get_elevation(a_pos));}"),depth:t1(tJ,`layout(location=0) in vec2 a_pos;void main() {
529#ifdef GLOBE
530gl_Position=projectTileFor3D(a_pos,0.0);
531#else
532gl_Position=u_projection_matrix*vec4(a_pos,0.0,1.0);
533#endif
534}`),fill:t1(`#pragma maplibre: define highp vec4 color
535#pragma maplibre: define lowp float opacity
536void main() {
537#pragma maplibre: initialize highp vec4 color
538#pragma maplibre: initialize lowp float opacity
539fragColor=color*opacity;
540#ifdef OVERDRAW_INSPECTOR
541fragColor=vec4(1.0);
542#endif
543}`,`uniform vec2 u_fill_translate;layout(location=0) in vec2 a_pos;
544#pragma maplibre: define highp vec4 color
545#pragma maplibre: define lowp float opacity
546void main() {
547#pragma maplibre: initialize highp vec4 color
548#pragma maplibre: initialize lowp float opacity
549if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}gl_Position=projectTile(a_pos+u_fill_translate,a_pos);}`),fillOutline:t1(`in vec2 v_pos;
550#ifdef GLOBE
551in float v_depth;
552#endif
553#pragma maplibre: define highp vec4 outline_color
554#pragma maplibre: define lowp float opacity
555void main() {
556#pragma maplibre: initialize highp vec4 outline_color
557#pragma maplibre: initialize lowp float opacity
558float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);fragColor=outline_color*(alpha*opacity);
559#ifdef GLOBE
560if (v_depth > 1.0) {discard;}
561#endif
562#ifdef OVERDRAW_INSPECTOR
563fragColor=vec4(1.0);
564#endif
565}`,`uniform vec2 u_fill_translate;layout(location=0) in vec2 a_pos;out vec2 v_pos;
566#ifdef GLOBE
567out float v_depth;
568#endif
569#pragma maplibre: define highp vec4 outline_color
570#pragma maplibre: define lowp float opacity
571void main() {
572#pragma maplibre: initialize highp vec4 outline_color
573#pragma maplibre: initialize lowp float opacity
574if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world_size;
575#ifdef GLOBE
576v_depth=gl_Position.z/gl_Position.w;
577#endif
578}`),fillOutlinePattern:t1(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;uniform bool u_sdf_pattern;in vec2 v_pos_a;in vec2 v_pos_b;in vec2 v_pos;
579#ifdef GLOBE
580in float v_depth;
581#endif
582#pragma maplibre: define lowp float opacity
583#pragma maplibre: define highp vec4 color
584#pragma maplibre: define lowp vec4 pattern_from
585#pragma maplibre: define lowp vec4 pattern_to
586void main() {
587#pragma maplibre: initialize lowp float opacity
588#pragma maplibre: initialize highp vec4 color
589#pragma maplibre: initialize mediump vec4 pattern_from
590#pragma maplibre: initialize mediump vec4 pattern_to
591vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);if (u_sdf_pattern) {highp float sdf_edge=(256.0-64.0)/256.0;highp float sdf_gamma_a=max(fwidth(color1.a)*0.5,1.0/255.0/16.0);highp float sdf_gamma_b=max(fwidth(color2.a)*0.5,1.0/255.0/16.0);float sdf_alpha_a=smoothstep(sdf_edge-sdf_gamma_a,sdf_edge+sdf_gamma_a,color1.a);float sdf_alpha_b=smoothstep(sdf_edge-sdf_gamma_b,sdf_edge+sdf_gamma_b,color2.a);fragColor=mix(color*sdf_alpha_a,color*sdf_alpha_b,u_fade)*alpha*opacity;} else {fragColor=mix(color1,color2,u_fade)*alpha*opacity;}
592#ifdef GLOBE
593if (v_depth > 1.0) {discard;}
594#endif
595#ifdef OVERDRAW_INSPECTOR
596fragColor=vec4(1.0);
597#endif
598}`,`uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;uniform vec2 u_fill_translate;layout(location=0) in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;out vec2 v_pos;
599#ifdef GLOBE
600out float v_depth;
601#endif
602#pragma maplibre: define lowp float opacity
603#pragma maplibre: define highp vec4 color
604#pragma maplibre: define lowp vec4 pattern_from
605#pragma maplibre: define lowp vec4 pattern_to
606#pragma maplibre: define lowp float pixel_ratio_from
607#pragma maplibre: define lowp float pixel_ratio_to
608void main() {
609#pragma maplibre: initialize lowp float opacity
610#pragma maplibre: initialize highp vec4 color
611#pragma maplibre: initialize mediump vec4 pattern_from
612#pragma maplibre: initialize mediump vec4 pattern_to
613#pragma maplibre: initialize lowp float pixel_ratio_from
614#pragma maplibre: initialize lowp float pixel_ratio_to
615if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world_size;
616#ifdef GLOBE
617v_depth=gl_Position.z/gl_Position.w;
618#endif
619}`),fillPattern:t1(`#ifdef GL_ES
620precision highp float;
621#endif
622uniform vec2 u_texsize;uniform float u_fade;uniform bool u_sdf_pattern;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;
623#pragma maplibre: define lowp float opacity
624#pragma maplibre: define highp vec4 color
625#pragma maplibre: define lowp vec4 pattern_from
626#pragma maplibre: define lowp vec4 pattern_to
627void main() {
628#pragma maplibre: initialize lowp float opacity
629#pragma maplibre: initialize highp vec4 color
630#pragma maplibre: initialize mediump vec4 pattern_from
631#pragma maplibre: initialize mediump vec4 pattern_to
632vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);if (u_sdf_pattern) {highp float sdf_edge=(256.0-64.0)/256.0;highp float sdf_gamma_a=max(fwidth(color1.a)*0.5,1.0/255.0/16.0);highp float sdf_gamma_b=max(fwidth(color2.a)*0.5,1.0/255.0/16.0);float sdf_alpha_a=smoothstep(sdf_edge-sdf_gamma_a,sdf_edge+sdf_gamma_a,color1.a);float sdf_alpha_b=smoothstep(sdf_edge-sdf_gamma_b,sdf_edge+sdf_gamma_b,color2.a);fragColor=mix(color*sdf_alpha_a,color*sdf_alpha_b,u_fade)*opacity;} else {fragColor=mix(color1,color2,u_fade)*opacity;}
633#ifdef OVERDRAW_INSPECTOR
634fragColor=vec4(1.0);
635#endif
636}`,`uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;uniform vec2 u_fill_translate;layout(location=0) in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;
637#pragma maplibre: define lowp float opacity
638#pragma maplibre: define highp vec4 color
639#pragma maplibre: define lowp vec4 pattern_from
640#pragma maplibre: define lowp vec4 pattern_to
641#pragma maplibre: define lowp float pixel_ratio_from
642#pragma maplibre: define lowp float pixel_ratio_to
643void main() {
644#pragma maplibre: initialize lowp float opacity
645#pragma maplibre: initialize highp vec4 color
646#pragma maplibre: initialize mediump vec4 pattern_from
647#pragma maplibre: initialize mediump vec4 pattern_to
648#pragma maplibre: initialize lowp float pixel_ratio_from
649#pragma maplibre: initialize lowp float pixel_ratio_to
650if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float to
650Scale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:t1(`in vec4 v_color;void main() {fragColor=v_color;
651#ifdef OVERDRAW_INSPECTOR
652fragColor=vec4(1.0);
653#endif
654}`,`uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp vec3 u_lightpos_globe;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec2 u_fill_translate;layout(location=0) in vec2 a_pos;layout(location=1) in ivec4 a_normal_ed;
655#ifdef TERRAIN3D
656layout(location=2) in vec2 a_centroid;
657#endif
658out vec4 v_color;
659#pragma maplibre: define highp float base
660#pragma maplibre: define highp float height
661#pragma maplibre: define highp vec4 color
662void main() {
663#pragma maplibre: initialize highp float base
664#pragma maplibre: initialize highp float height
665#pragma maplibre: initialize highp vec4 color
666vec3 normal=vec3(a_normal_ed.xyz);float gradient_base=max(0.0,base);float gradient_height=max(0.0,height);
667#ifdef TERRAIN3D
668float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);
669#else
670float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;
671#endif
672base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=float(a_normal_ed.x & 1);float elevation=t > 0.0 ? height : base;vec2 posInTile=a_pos+u_fill_translate;
673#ifdef GLOBE
674vec3 spherePos=projectToSphere(posInTile,a_pos);gl_Position=interpolateProjectionFor3D(posInTile,spherePos,elevation);
675#else
676gl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0);
677#endif
678float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;vec3 normalForLighting=normal/16384.0;float directional=clamp(dot(normalForLighting,u_lightpos),0.0,1.0);
679#ifdef GLOBE
680mat3 rotMatrix=globeGetRotationMatrix(spherePos);normalForLighting=rotMatrix*normalForLighting;directional=mix(directional,clamp(dot(normalForLighting,u_lightpos_globe),0.0,1.0),u_projection_transition);
681#endif
682directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+gradient_base)*pow(gradient_height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),fillExtrusionPattern:t1(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;in vec4 v_lighting;
683#pragma maplibre: define lowp float base
684#pragma maplibre: define lowp float height
685#pragma maplibre: define lowp vec4 pattern_from
686#pragma maplibre: define lowp vec4 pattern_to
687#pragma maplibre: define lowp float pixel_ratio_from
688#pragma maplibre: define lowp float pixel_ratio_to
689void main() {
690#pragma maplibre: initialize lowp float base
691#pragma maplibre: initialize lowp float height
692#pragma maplibre: initialize mediump vec4 pattern_from
693#pragma maplibre: initialize mediump vec4 pattern_to
694#pragma maplibre: initialize lowp float pixel_ratio_from
695#pragma maplibre: initialize lowp float pixel_ratio_to
696vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);fragColor=mixedColor*v_lighting;
697#ifdef OVERDRAW_INSPECTOR
698fragColor=vec4(1.0);
699#endif
700}`,`uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec2 u_fill_translate;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp vec3 u_lightpos_globe;uniform lowp float u_lightintensity;layout(location=0) in vec2 a_pos;layout(location=1) in ivec4 a_normal_ed;
701#ifdef TERRAIN3D
702layout(location=2) in vec2 a_centroid;
703#endif
704#ifdef GLOBE
705out vec3 v_sphere_pos;
706#endif
707out vec2 v_pos_a;out vec2 v_pos_b;out vec4 v_lighting;
708#pragma maplibre: define lowp float base
709#pragma maplibre: define lowp float height
710#pragma maplibre: define lowp vec4 pattern_from
711#pragma maplibre: define lowp vec4 pattern_to
712#pragma maplibre: define lowp float pixel_ratio_from
713#pragma maplibre: define lowp float pixel_ratio_to
714void main() {
715#pragma maplibre: initialize lowp float base
716#pragma maplibre: initialize lowp float height
717#pragma maplibre: initialize mediump vec4 pattern_from
718#pragma maplibre: initialize mediump vec4 pattern_to
719#pragma maplibre: initialize lowp float pixel_ratio_from
720#pragma maplibre: initialize lowp float pixel_ratio_to
721vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=vec3(a_normal_ed.xyz);float edgedistance=float(a_normal_ed.w);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;float gradient_base=max(0.0,base);float gradient_height=max(0.0,height);
722#ifdef TERRAIN3D
723float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);
724#else
725float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;
726#endif
727base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=float(a_normal_ed.x & 1);float elevation=t > 0.0 ? height : base;vec2 posInTile=a_pos+u_fill_translate;
728#ifdef GLOBE
729vec3 spherePos=projectToSphere(posInTile,a_pos);vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);v_sphere_pos=elevatedPos;gl_Position=interpolateProjectionFor3D(posInTile,spherePos,elevation);
730#else
731gl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0);
732#endif
733vec2 pos=a_normal_ed.x==1 && a_normal_ed.y==0 && a_normal_ed.z==16384
734? a_pos
735: vec2(edgedistance,elevation*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+gradient_base)*pow(gradient_height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),hillshadePrepare:t1(`#ifdef GL_ES
736precision highp float;
737#endif
738uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(ivec2 texel) {vec4 data=texelFetch(u_image,texel,0)*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {ivec2 pos=ivec2(gl_FragCoord.xy)+ivec2(1);float tileSize=u_dimension.x-4.0;float a=getElevation(pos+ivec2(-1,-1));float b=getElevation(pos+ivec2(0,-1));float c=getElevation(pos+ivec2(1,-1));float d=getElevation(pos+ivec2(-1,0));float e=getElevation(pos);float f=getElevation(pos+ivec2(1,0));float g=getElevation(pos+ivec2(-1,1));float h=getElevation(pos+ivec2(0,1));float i=getElevation(pos+ivec2(1,1));float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))*tileSize/p
738ow(2.0,exaggeration+(28.2562-u_zoom));fragColor=clamp(vec4(deriv.x/8.0+0.5,deriv.y/8.0+0.5,1.0,1.0),0.0,1.0);
739#ifdef OVERDRAW_INSPECTOR
740fragColor=vec4(1.0);
741#endif
742}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;layout(location=0) in vec2 a_pos;layout(location=1) in vec2 a_texture_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:t1(`uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_latrange;uniform float u_exaggeration;uniform vec4 u_accent;uniform int u_method;uniform float u_altitudes[NUM_ILLUMINATION_SOURCES];uniform float u_azimuths[NUM_ILLUMINATION_SOURCES];uniform vec4 u_shadows[NUM_ILLUMINATION_SOURCES];uniform vec4 u_highlights[NUM_ILLUMINATION_SOURCES];
743#define PI 3.141592653589793
744#define STANDARD 0
745#define COMBINED 1
746#define IGOR 2
747#define MULTIDIRECTIONAL 3
748#define BASIC 4
749float get_aspect(vec2 deriv){return deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);}void igor_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float aspect=get_aspect(deriv);float azimuth=u_azimuths[0]+PI;float slope_stength=atan(length(deriv))*2.0/PI;float aspect_strength=1.0-abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);float shadow_strength=slope_stength*aspect_strength;float highlight_strength=slope_stength*(1.0-aspect_strength);fragColor=u_shadows[0]*shadow_strength+u_highlights[0]*highlight_strength;}void standard_hillshade(vec2 deriv){float azimuth=u_azimuths[0]+PI;float slope=atan(0.625*length(deriv));float aspect=get_aspect(deriv);float intensity=u_exaggeration;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadows[0],u_highlights[0],shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);fragColor=accent_color*(1.0-shade_color.a)+shade_color;}void basic_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float azimuth=u_azimuths[0]+PI;float cos_az=cos(azimuth);float sin_az=sin(azimuth);float cos_alt=cos(u_altitudes[0]);float sin_alt=sin(u_altitudes[0]);float cang=(sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv));float shade=clamp(cang,0.0,1.0);if(shade > 0.5){fragColor=u_highlights[0]*(2.0*shade-1.0);}else
750{fragColor=u_shadows[0]*(1.0-2.0*shade);}}void multidirectional_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;fragColor=vec4(0,0,0,0);for(int i=0; i < NUM_ILLUMINATION_SOURCES; i++){float cos_alt=cos(u_altitudes[i]);float sin_alt=sin(u_altitudes[i]);float cos_az=-cos(u_azimuths[i]);float sin_az=-sin(u_azimuths[i]);float cang=(sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv));float shade=clamp(cang,0.0,1.0);if(shade > 0.5){fragColor+=u_highlights[i]*(2.0*shade-1.0)/float(NUM_ILLUMINATION_SOURCES);}else
751{fragColor+=u_shadows[i]*(1.0-2.0*shade)/float(NUM_ILLUMINATION_SOURCES);}}}void combined_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float azimuth=u_azimuths[0]+PI;float cos_az=cos(azimuth);float sin_az=sin(azimuth);float cos_alt=cos(u_altitudes[0]);float sin_alt=sin(u_altitudes[0]);float cang=acos((sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv)));cang=clamp(cang,0.0,PI/2.0);float shade=cang*atan(length(deriv))*4.0/PI/PI;float highlight=(PI/2.0-cang)*atan(length(deriv))*4.0/PI/PI;fragColor=u_shadows[0]*shade+u_highlights[0]*highlight;}void main() {vec2 size=vec2(textureSize(u_image,0));vec2 texturePos=(v_pos*(size-2.0)+1.0)/size;vec4 pixel=texture(u_image,texturePos);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));vec2 deriv=((pixel.rg*8.0)-4.0)/scaleFactor;if (u_method==BASIC) {basic_hillshade(deriv);} else if (u_method==COMBINED) {combined_hillshade(deriv);} else if (u_method==IGOR) {igor_hillshade(deriv);} else if (u_method==MULTIDIRECTIONAL) {multidirectional_hillshade(deriv);} else if (u_method==STANDARD) {standard_hillshade(deriv);} else {standard_hillshade(deriv);}
752#ifdef OVERDRAW_INSPECTOR
753fragColor=vec4(1.0);
754#endif
755}`,"uniform mat4 u_matrix;layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);v_pos=a_pos/8192.0;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),line:t1(`flat in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;
756#ifdef GLOBE
757in float v_depth;
758#endif
759#pragma maplibre: define highp vec4 color
760#pragma maplibre: define lowp float blur
761#pragma maplibre: define lowp float opacity
762void main() {
763#pragma maplibre: initialize highp vec4 color
764#pragma maplibre: initialize lowp float blur
765#pragma maplibre: initialize lowp float opacity
766clipAntimeridian();float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);fragColor=color*(alpha*opacity);
767#ifdef GLOBE
768if (v_depth > 1.0) {discard;}
769#endif
770#ifdef OVERDRAW_INSPECTOR
771fragColor=vec4(1.0);
772#endif
773}`,`
774#define scale 0.015873016
775layout(location=0) in ivec2 a_pos_normal;layout(location=1) in uvec4 a_data;uniform vec2 u_translation;uniform mediump float u_ratio;out vec2 v_normal;flat out vec2 v_width2;out float v_gamma_scale;out highp float v_linesofar;
776#ifdef GLOBE
777out float v_depth;
778#endif
779#pragma maplibre: define highp vec4 color
780#pragma maplibre: define lowp float blur
781#pragma maplibre: define lowp float opacity
782#pragma maplibre: define mediump float gapwidth
783#pragma maplibre: define lowp float offset
784#pragma maplibre: define mediump float width
785void main() {
786#pragma maplibre: initialize highp vec4 color
787#pragma maplibre: initialize lowp float blur
788#pragma maplibre: initialize lowp float opacity
789#pragma maplibre: initialize mediump float gapwidth
790#pragma maplibre: initialize lowp float offset
791#pragma maplibre: initialize mediump float width
792if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=vec2(ivec2(a_data.xy)-128);float a_direction=float(int(a_data.z & 3u)-1);v_linesofar=float((a_data.z >> 2u)+a_data.w*64u)*2.0;vec2 pos=vec2(a_pos_normal >> 1);mediump vec2 normal=vec2(a_pos_normal & 1);normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);
792float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
793#ifdef GLOBE
794v_depth=gl_Position.z/gl_Position.w;
795#endif
796#ifdef TERRAIN3D
797v_gamma_scale=1.0;
798#else
799float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
800#endif
801v_width2=vec2(outset,inset);}`),lineGradient:t1(`uniform sampler2D u_image;flat in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec2 v_uv;
802#ifdef GLOBE
803in float v_depth;
804#endif
805#pragma maplibre: define lowp float blur
806#pragma maplibre: define lowp float opacity
807void main() {
808#pragma maplibre: initialize lowp float blur
809#pragma maplibre: initialize lowp float opacity
810clipAntimeridian();float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture(u_image,v_uv);fragColor=color*(alpha*opacity);
811#ifdef GLOBE
812if (v_depth > 1.0) {discard;}
813#endif
814#ifdef OVERDRAW_INSPECTOR
815fragColor=vec4(1.0);
816#endif
817}`,`
818#define scale 0.015873016
819layout(location=0) in ivec2 a_pos_normal;layout(location=1) in uvec4 a_data;layout(location=2) in float a_uv_x;layout(location=3) in float a_split_index;uniform vec2 u_translation;uniform mediump float u_ratio;uniform float u_image_height;out vec2 v_normal;flat out vec2 v_width2;out float v_gamma_scale;out highp vec2 v_uv;
820#ifdef GLOBE
821out float v_depth;
822#endif
823#pragma maplibre: define lowp float blur
824#pragma maplibre: define lowp float opacity
825#pragma maplibre: define mediump float gapwidth
826#pragma maplibre: define lowp float offset
827#pragma maplibre: define mediump float width
828void main() {
829#pragma maplibre: initialize lowp float blur
830#pragma maplibre: initialize lowp float opacity
831#pragma maplibre: initialize mediump float gapwidth
832#pragma maplibre: initialize lowp float offset
833#pragma maplibre: initialize mediump float width
834if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=vec2(ivec2(a_data.xy)-128);float a_direction=float(int(a_data.z & 3u)-1);highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=vec2(a_pos_normal >> 1);mediump vec2 normal=vec2(a_pos_normal & 1);normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
835#ifdef GLOBE
836v_depth=gl_Position.z/gl_Position.w;
837#endif
838#ifdef TERRAIN3D
839v_gamma_scale=1.0;
840#else
841float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
842#endif
843v_width2=vec2(outset,inset);}`),linePattern:t1(`#ifdef GL_ES
844precision highp float;
845#endif
846uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;in vec2 v_normal;flat in vec2 v_width2;in float v_linesofar;in float v_gamma_scale;flat in float v_width;
847#ifdef GLOBE
848in float v_depth;
849#endif
850#pragma maplibre: define lowp vec4 pattern_from
851#pragma maplibre: define lowp vec4 pattern_to
852#pragma maplibre: define lowp float pixel_ratio_from
853#pragma maplibre: define lowp float pixel_ratio_to
854#pragma maplibre: define lowp float blur
855#pragma maplibre: define lowp float opacity
856void main() {
857#pragma maplibre: initialize mediump vec4 pattern_from
858#pragma maplibre: initialize mediump vec4 pattern_to
859#pragma maplibre: initialize lowp float pixel_ratio_from
860#pragma maplibre: initialize lowp float pixel_ratio_to
861#pragma maplibre: initialize lowp float blur
862#pragma maplibre: initialize lowp float opacity
863clipAntimeridian();vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture(u_image,pos_a),texture(u_image,pos_b),u_fade);fragColor=color*alpha*opacity;
864#ifdef GLOBE
865if (v_depth > 1.0) {discard;}
866#endif
867#ifdef OVERDRAW_INSPECTOR
868fragColor=vec4(1.0);
869#endif
870}`,`
871#define scale 0.015873016
872#define LINE_DISTANCE_SCALE 2.0
873layout(location=0) in ivec2 a_pos_normal;layout(location=1) in uvec4 a_data;uniform vec2 u_translation;uniform mediump float u_ratio;out vec2 v_normal;flat out vec2 v_width2;out float v_linesofar;out float v_gamma_scale;flat out float v_width;
874#ifdef GLOBE
875out float v_depth;
876#endif
877#pragma maplibre: define lowp float blur
878#pragma maplibre: define lowp float opacity
879#pragma maplibre: define lowp float offset
880#pragma maplibre: define mediump float gapwidth
881#pragma maplibre: define mediump float width
882#pragma maplibre: define lowp float floorwidth
883#pragma maplibre: define lowp vec4 pattern_from
884#pragma maplibre: define lowp vec4 pattern_to
885#pragma maplibre: define lowp float pixel_ratio_from
886#pragma maplibre: define lowp float pixel_ratio_to
887void main() {
888#pragma maplibre: initialize lowp float blur
889#pragma maplibre: initialize lowp float opacity
890#pragma maplibre: initialize lowp float offset
891#pragma maplibre: initialize mediump float gapwidth
892#pragma maplibre: initialize mediump float width
893#pragma maplibre: initialize lowp float floorwidth
894#pragma maplibre: initialize mediump vec4 pattern_from
895#pragma maplibre: initialize mediump vec4 pattern_to
896#pragma maplibre: initialize lowp float pixel_ratio_from
897#pragma maplibre: initialize lowp float pixel_ratio_to
898if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=vec2(ivec2(a_data.xy)-128);float a_direction=float(int(a_data.z & 3u)-1);float a_linesofar=float((a_data.z >> 2u)+a_data.w*64u)*LINE_DISTANCE_SCALE;vec2 pos=vec2(a_pos_normal >> 1);mediump vec2 normal=vec2(a_pos_normal & 1);normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);
898float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
899#ifdef GLOBE
900v_depth=gl_Position.z/gl_Position.w;
901#endif
902#ifdef TERRAIN3D
903v_gamma_scale=1.0;
904#else
905float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
906#endif
907v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:t1(`uniform lowp float u_lineatlas_width;uniform sampler2D u_image;uniform float u_mix;in vec2 v_normal;flat in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale;
908#ifdef GLOBE
909in float v_depth;
910#endif
911#pragma maplibre: define highp vec4 color
912#pragma maplibre: define lowp float blur
913#pragma maplibre: define lowp float opacity
914#pragma maplibre: define mediump float width
915#pragma maplibre: define lowp float floorwidth
916#pragma maplibre: define mediump vec4 dasharray_from
917#pragma maplibre: define mediump vec4 dasharray_to
918void main() {
919#pragma maplibre: initialize highp vec4 color
920#pragma maplibre: initialize lowp float blur
921#pragma maplibre: initialize lowp float opacity
922#pragma maplibre: initialize mediump float width
923#pragma maplibre: initialize lowp float floorwidth
924#pragma maplibre: initialize mediump vec4 dasharray_from
925#pragma maplibre: initialize mediump vec4 dasharray_to
926clipAntimeridian();float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture(u_image,v_tex_a).a;float sdfdist_b=texture(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);
926float sdfgamma=(u_lineatlas_width/256.0/u_device_pixel_ratio)/min(dasharray_from.w,dasharray_to.w);alpha*=smoothstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);fragColor=color*(alpha*opacity);
927#ifdef GLOBE
928if (v_depth > 1.0) {discard;}
929#endif
930#ifdef OVERDRAW_INSPECTOR
931fragColor=vec4(1.0);
932#endif
933}`,`
934#define scale 0.015873016
935#define LINE_DISTANCE_SCALE 2.0
936layout(location=0) in ivec2 a_pos_normal;layout(location=1) in uvec4 a_data;uniform vec2 u_translation;uniform mediump float u_ratio;uniform float u_tileratio;uniform float u_crossfade_from;uniform float u_crossfade_to;uniform float u_lineatlas_height;out vec2 v_normal;flat out vec2 v_width2;out vec2 v_tex_a;out vec2 v_tex_b;out float v_gamma_scale;
937#ifdef GLOBE
938out float v_depth;
939#endif
940#pragma maplibre: define highp vec4 color
941#pragma maplibre: define lowp float blur
942#pragma maplibre: define lowp float opacity
943#pragma maplibre: define mediump float gapwidth
944#pragma maplibre: define lowp float offset
945#pragma maplibre: define mediump float width
946#pragma maplibre: define lowp float floorwidth
947#pragma maplibre: define mediump vec4 dasharray_from
948#pragma maplibre: define mediump vec4 dasharray_to
949void main() {
950#pragma maplibre: initialize highp vec4 color
951#pragma maplibre: initialize lowp float blur
952#pragma maplibre: initialize lowp float opacity
953#pragma maplibre: initialize mediump float gapwidth
954#pragma maplibre: initialize lowp float offset
955#pragma maplibre: initialize mediump float width
956#pragma maplibre: initialize lowp float floorwidth
957#pragma maplibre: initialize mediump vec4 dasharray_from
958#pragma maplibre: initialize mediump vec4 dasharray_to
959if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=vec2(ivec2(a_data.xy)-128);float a_direction=float(int(a_data.z & 3u)-1);float a_linesofar=float((a_data.z >> 2u)+a_data.w*64u)*LINE_DISTANCE_SCALE;vec2 pos=vec2(a_pos_normal >> 1);mediump vec2 normal=vec2(a_pos_normal & 1);normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
960#ifdef GLOBE
961v_depth=gl_Position.z/gl_Position.w;
962#endif
963#ifdef TERRAIN3D
964v_gamma_scale=1.0;
965#else
966float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
967#endif
968float u_patternscale_a_x=u_tileratio/dasharray_from.w/u_crossfade_from;float u_patternscale_a_y=-dasharray_from.z/2.0/u_lineatlas_height;float u_patternscale_b_x=u_tileratio/dasharray_to.w/u_crossfade_to;float u_patternscale_b_y=-dasharray_to.z/2.0/u_lineatlas_height;v_tex_a=vec2(a_linesofar*u_patternscale_a_x/floorwidth,normal.y*u_patternscale_a_y+(float(dasharray_from.y)+0.5)/u_lineatlas_height);v_tex_b=vec2(a_linesofar*u_patternscale_b_x/floorwidth,normal.y*u_patternscale_b_y+(float(dasharray_to.y)+0.5)/u_lineatlas_height);v_width2=vec2(outset,inset);}`),lineGradientSDF:t1(`uniform sampler2D u_image;uniform sampler2D u_image_dash;uniform float u_mix;uniform lowp float u_lineatlas_width;in vec2 v_normal;flat in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale;in highp vec2 v_uv;
969#ifdef GLOBE
970in float v_depth;
971#endif
972#pragma maplibre: define lowp float blur
973#pragma maplibre: define lowp float opacity
974#pragma maplibre: define mediump float width
975#pragma maplibre: define lowp float floorwidth
976#pragma maplibre: define mediump vec4 dasharray_from
977#pragma maplibre: define mediump vec4 dasharray_to
978void main() {
979#pragma maplibre: initialize lowp float blur
980#pragma maplibre: initialize lowp float opacity
981#pragma maplibre: initialize mediump float width
982#pragma maplibre: initialize lowp float floorwidth
983#pragma maplibre: initialize mediump vec4 dasharray_from
984#pragma maplibre: initialize mediump vec4 dasharray_to
985clipAntimeridian();float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture(u_image,v_uv);float sdfdist_a=texture(u_image_dash,v_tex_a).a;float sdfdist_b=texture(u_image_dash,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);
985float sdfgamma=(u_lineatlas_width/256.0)/min(dasharray_from.w,dasharray_to.w);float dash_alpha=smoothstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);fragColor=color*(alpha*dash_alpha*opacity);
986#ifdef GLOBE
987if (v_depth > 1.0) {discard;}
988#endif
989#ifdef OVERDRAW_INSPECTOR
990fragColor=vec4(1.0);
991#endif
992}`,`
993#define scale 0.015873016
994#define LINE_DISTANCE_SCALE 2.0
995layout(location=0) in ivec2 a_pos_normal;layout(location=1) in uvec4 a_data;layout(location=2) in float a_uv_x;layout(location=3) in float a_split_index;uniform vec2 u_translation;uniform mediump float u_ratio;uniform float u_image_height;uniform float u_tileratio;uniform float u_crossfade_from;uniform float u_crossfade_to;uniform float u_lineatlas_height;out vec2 v_normal;flat out vec2 v_width2;out float v_gamma_scale;out highp vec2 v_uv;out vec2 v_tex_a;out vec2 v_tex_b;
996#ifdef GLOBE
997out float v_depth;
998#endif
999#pragma maplibre: define lowp float blur
1000#pragma maplibre: define lowp float opacity
1001#pragma maplibre: define mediump float gapwidth
1002#pragma maplibre: define lowp float offset
1003#pragma maplibre: define mediump float width
1004#pragma maplibre: define lowp float floorwidth
1005#pragma maplibre: define mediump vec4 dasharray_from
1006#pragma maplibre: define mediump vec4 dasharray_to
1007void main() {
1008#pragma maplibre: initialize lowp float blur
1009#pragma maplibre: initialize lowp float opacity
1010#pragma maplibre: initialize mediump float gapwidth
1011#pragma maplibre: initialize lowp float offset
1012#pragma maplibre: initialize mediump float width
1013#pragma maplibre: initialize lowp float floorwidth
1014#pragma maplibre: initialize mediump vec4 dasharray_from
1015#pragma maplibre: initialize mediump vec4 dasharray_to
1016if (opacity < 0.01) {gl_Position=vec4(-2.0,-2.0,-2.0,1.0);return;}float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=vec2(ivec2(a_data.xy)-128);float a_direction=float(int(a_data.z & 3u)-1);float a_linesofar=float((a_data.z >> 2u)+a_data.w*64u)*LINE_DISTANCE_SCALE;float texel_height=1.0/u_image_height;float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=vec2(a_pos_normal >> 1);mediump vec2 normal=vec2(a_pos_normal & 1);normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
1017#ifdef GLOBE
1018v_depth=gl_Position.z/gl_Position.w;
1019#endif
1020#ifdef TERRAIN3D
1021v_gamma_scale=1.0;
1022#else
1023float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
1024#endif
1025float u_patternscale_a_x=u_tileratio/dasharray_from.w/u_crossfade_from;float u_patternscale_a_y=-dasharray_from.z/2.0/u_lineatlas_height;float u_patternscale_b_x=u_tileratio/dasharray_to.w/u_crossfade_to;float u_patternscale_b_y=-dasharray_to.z/2.0/u_lineatlas_height;v_tex_a=vec2(a_linesofar*u_patternscale_a_x/floorwidth,normal.y*u_patternscale_a_y+(float(dasharray_from.y)+0.5)/u_lineatlas_height);v_tex_b=vec2(a_linesofar*u_patternscale_b_x/floorwidth,normal.y*u_patternscale_b_y+(float(dasharray_to.y)+0.5)/u_lineatlas_height);v_width2=vec2(outset,inset);}`),layerOpacity:t1(`uniform sampler2D u_image;uniform float u_opacity;in vec2 v_pos;void main() {fragColor=texture(u_image,v_pos)*u_opacity;
1026#ifdef OVERDRAW_INSPECTOR
1027fragColor=vec4(0.0);
1028#endif
1029}`,"layout(location=0) in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=vec4(a_pos.x*2.0-1.0,1.0-a_pos.y*2.0,0.0,1.0);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),raster:t1(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;in vec3 v_pos0;in vec3 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture(u_image0,v_pos0.xy/v_pos0.z);vec4 color1=texture(u_image1,v_pos1.xy/v_pos1.z);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);fragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);
1030#ifdef OVERDRAW_INSPECTOR
1031fragColor=vec4(1.0);
1032#endif
1033}`,`uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;uniform vec3 u_image_warp;uniform vec4 u_coords_top;uniform vec4 u_coords_bottom;layout(location=0) in vec2 a_pos;out vec3 v_pos0;out vec3 v_pos1;void main() {vec2 fractionalPos=a_pos/8192.0;vec2 topLeft=u_coords_top.xy;vec2 topRight=u_coords_top.zw;vec2 bottomLeft=u_coords_bottom.xy;vec2 bottomRight=u_coords_bottom.zw;
1033vec2 bilinearPos=mix(mix(topLeft,topRight,fractionalPos.x),mix(bottomLeft,bottomRight,fractionalPos.x),fractionalPos.y);float denominator=dot(u_image_warp.xy,fractionalPos)+1.0;vec2 acrossTop=topRight-topLeft+u_image_warp.x*topRight;vec2 downLeft=bottomLeft-topLeft+u_image_warp.y*bottomLeft;vec2 projectivePos=(acrossTop*fractionalPos.x+downLeft*fractionalPos.y+topLeft)/denominator;vec2 position=mix(projectivePos,bilinearPos,u_image_warp.z);gl_Position=projectTile(position,position);vec2 texturePos=((fractionalPos-0.5)/u_buffer_scale)+0.5;
1034#ifdef GLOBE
1035if (a_pos.y <-32767.5) {texturePos.y=0.0;}if (a_pos.y > 32766.5) {texturePos.y=1.0;}
1036#endif
1037float perspectiveRatio=mix(1.0/denominator,1.0,u_image_warp.z);v_pos0=vec3(texturePos*perspectiveRatio,perspectiveRatio);vec2 parentPos=(texturePos*u_scale_parent)+u_tl_parent;v_pos1=vec3(parentPos*perspectiveRatio,perspectiveRatio);}`),symbolIcon:t1(`uniform sampler2D u_texture;in vec2 v_tex;flat in float v_total_opacity;void main() {fragColor=texture(u_texture,v_tex)*v_total_opacity;
1038#ifdef OVERDRAW_INSPECTOR
1039fragColor=vec4(1.0);
1040#endif
1041}`,`layout(location=0) in vec4 a_pos_offset;layout(location=1) in uvec4 a_data;layout(location=2) in vec4 a_pixeloffset;layout(location=3) in vec3 a_projected_pos;layout(location=4) in uint a_fade_opacity;layout(location=5) in float a_height_offset;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform bool u_rotate_symbol;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;uniform bool u_is_offset;uniform bool u_height_anchor_ground;out vec2 v_tex;flat out float v_total_opacity;
1042#pragma maplibre: define lowp float opacity
1043void main() {
1044#pragma maplibre: initialize lowp float opacity
1045vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=vec2(a_data.xy);vec2 a_size=vec2(a_data.zw);float a_size_min=float(a_data.z >> 1u);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=a_height_offset+(u_height_anchor_ground ? get_elevation(a_pos) : 0.0);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_symbol_fade_change :-u_symbol_fade_change;float visibility=calculate_visibility(projectedPoint);v_total_opacity=opacity*max(0.0,min(visibility,fade_opacity[0]+fade_change));if (v_total_opacity < 0.1){gl_Position=vec4(-2.,-2.,-2.,1.);return;}highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
1046camera_to_anchor_distance/u_camera_to_center_distance :
1047u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);if (!u_is_offset) {size*=perspective_ratio;}float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;
1048#ifdef GLOBE
1049if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
1050#endif
1051vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;}`),symbolSDF:t1(`#define SDF_PX 8.0
1052uniform bool u_is_halo;uniform bool u_is_plain;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform bool u_is_text;in vec2 v_data0;in vec3 v_data1;
1053#pragma maplibre: define highp vec4 fill_color
1054#pragma maplibre: define highp vec4 halo_color
1055#pragma maplibre: define lowp float halo_width
1056#pragma maplibre: define lowp float halo_blur
1057void main() {
1058#pragma maplibre: initialize highp vec4 fill_color
1059#pragma maplibre: initialize highp vec4 halo_color
1060#pragma maplibre: initialize lowp float halo_width
1061#pragma maplibre: initialize lowp float halo_blur
1062float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float total_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float inner_edge=(256.0-64.0)/256.0;lowp float dist=texture(u_texture,tex).a;lowp vec4 color_alpha_out_text,color_alpha_out_halo;if (u_is_plain){highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(inner_edge-gamma_scaled,inner_edge+gamma_scaled,dist);color_alpha_out_text=total_opacity*alpha*fill_color;}if (u_is_halo) {float gamma_halo=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);float inner_edge_halo=inner_edge+gamma_halo*gamma_scale;highp float gamma_scaled_halo=gamma_halo*gamma_scale;highp float alpha_halo=smoothstep(inner_edge_halo-gamma_scaled_halo,inner_edge_halo+gamma_scaled_halo,dist);highp float halo_edge=(6.0-halo_width/fontScale)/SDF_PX;alpha_halo= min(smoothstep(halo_edge-gamma_scaled_halo,halo_edge+gamma_scaled_halo,dist),1.0-alpha_halo);color_alpha_out_halo=total_opacity*alpha_halo*halo_color;}if (u_is_plain && u_is_halo) {fragColor=color_alpha_out_text+(1.-color_alpha_out_text.a)*color_alpha_out_halo;} else if (u_is_halo){fragColor=color_alpha_out_halo;} else {fragColor=color_alpha_out_text;}
1063#ifdef OVERDRAW_INSPECTOR
1064fragColor=vec4(1.0);
1065#endif
1066}`,`layout(location=0) in vec4 a_pos_offset;layout(location=1) in uvec4 a_data;layout(location=2) in vec4 a_pixeloffset;layout(location=3) in vec3 a_projected_pos;layout(location=4) in uint a_fade_opacity;layout(location=5) in float a_height_offset;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform bool u_rotate_symbol;uniform vec2 u_texsize;uniform vec2 u_translation;uniform float u_pitched_scale;uniform bool u_is_offset;uniform bool u_height_anchor_ground;out vec2 v_data0;out vec3 v_data1;
1067#pragma maplibre: define highp vec4 fill_color
1068#pragma maplibre: define highp vec4 halo_color
1069#pragma maplibre: define lowp float opacity
1070#pragma maplibre: define lowp float halo_width
1071#pragma maplibre: define lowp float halo_blur
1072void main() {
1073#pragma maplibre: initialize highp vec4 fill_color
1074#pragma maplibre: initialize highp vec4 halo_color
1075#pragma maplibre: initialize lowp float opacity
1076#pragma maplibre: initialize lowp float halo_width
1077#pragma maplibre: initialize lowp float halo_blur
1078vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=vec2(a_data.xy);vec2 a_size=vec2(a_data.zw);float a_size_min=float(a_data.z >> 1u);vec2 a_pxoffset=a_pixeloffset.xy/16.0;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=a_height_offset+(u_height_anchor_ground ? get_elevation(a_pos) : 0.0);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_symbol_fade_change :-u_symbol_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));float total_opacity=opacity*interpolated_fade_opacity;if (total_opacity < 0.1){gl_Position=vec4(-2.,-2.,-2.,1.);return;}highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
1079camera_to_anchor_distance/u_camera_to_center_distance :
1080u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);if (!u_is_offset) {size*=perspective_ratio;}float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;
1081#ifdef GLOBE
1082if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
1083#endif
1084vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,total_opacity);}`),symbolTextAndIcon:t1(`#define SDF_PX 8.0
1085#define SDF 1.0
1086#define ICON 0.0
1087uniform bool u_is_halo;uniform bool u_is_text;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;in vec4 v_data0;in vec3 v_data1;flat in float v_is_sdf;
1088#pragma maplibre: define highp vec4 fill_color
1089#pragma maplibre: define highp vec4 halo_color
1090#pragma maplibre: define lowp float halo_width
1091#pragma maplibre: define lowp float halo_blur
1092void main() {
1093#pragma maplibre: initialize highp vec4 fill_color
1094#pragma maplibre: initialize highp vec4 halo_color
1095#pragma maplibre: initialize lowp float halo_width
1096#pragma maplibre: initialize lowp float halo_blur
1097float total_opacity=v_data1[2];if (v_is_sdf==ICON) {vec2 tex_icon=v_data0.zw;
1097fragColor=texture(u_texture_icon,tex_icon)*total_opacity;
1098#ifdef OVERDRAW_INSPECTOR
1099fragColor=vec4(1.0);
1100#endif
1101return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;lowp float dist=texture(u_texture,tex).a;lowp vec4 color_alpha_out,color_alpha_out_halo;if (u_is_text) {highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);color_alpha_out=fill_color*(alpha*total_opacity);}if (u_is_halo) {highp float gamma_halo=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);lowp float buff_halo=(6.0-halo_width/fontScale)/SDF_PX;highp float gamma_scaled_halo=gamma_halo*gamma_scale;highp float alpha_halo=smoothstep(buff_halo-gamma_scaled_halo,buff_halo+gamma_scaled_halo,dist);color_alpha_out_halo=halo_color*(alpha_halo*total_opacity);}if (u_is_text && u_is_halo) {fragColor=color_alpha_out+(1.-color_alpha_out.a)*color_alpha_out_halo;} else if (u_is_halo) {fragColor=color_alpha_out_halo;} else {fragColor=color_alpha_out;}
1102#ifdef OVERDRAW_INSPECTOR
1103fragColor=vec4(1.0);
1104#endif
1105}`,`layout(location=0) in vec4 a_pos_offset;layout(location=1) in uvec4 a_data;layout(location=2) in vec3 a_projected_pos;layout(location=3) in uint a_fade_opacity;layout(location=4) in float a_height_offset;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;uniform bool u_is_offset;uniform bool u_height_anchor_ground;out vec4 v_data0;out vec3 v_data1;flat out float v_is_sdf;
1106#pragma maplibre: define highp vec4 fill_color
1107#pragma maplibre: define highp vec4 halo_color
1108#pragma maplibre: define lowp float opacity
1109#pragma maplibre: define lowp float halo_width
1110#pragma maplibre: define lowp float halo_blur
1111void main() {
1112#pragma maplibre: initialize highp vec4 fill_color
1113#pragma maplibre: initialize highp vec4 halo_color
1114#pragma maplibre: initialize lowp float opacity
1115#pragma maplibre: initialize lowp float halo_width
1116#pragma maplibre: initialize lowp float halo_blur
1117vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=vec2(a_data.xy);vec2 a_size=vec2(a_data.zw);float a_size_min=float(a_data.z >> 1u);float is_sdf=float(a_data.z & 1u);float ele=a_height_offset+(u_height_anchor_ground ? get_elevation(a_pos) : 0.0);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_symbol_fade_change :-u_symbol_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));float total_opacity=opacity*interpolated_fade_opacity;if (total_opacity < 0.1){gl_Position=vec4(-2.,-2.,-2.,1.);return;}highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
1118camera_to_anchor_distance/u_camera_to_center_distance :
1119u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);if (!u_is_offset) {size*=perspective_ratio;}float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;
1120#ifdef GLOBE
1121if(u_pitch_with_map && !u_is_along_line) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
1122#endif
1123vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec3(gamma_scale,size,total_opacity);v_is_sdf=is_sdf;}`),terrain:t1("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;uniform bool u_is_globe_mode;in vec2 v_texture_pos;in float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture(u_texture,vec2(v_texture_pos.x,1.0-v_texture_pos.y));if (!u_is_globe_mode && u_fog_ground_blend_opacity > 0.0 && v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);
1123float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);fragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {fragColor=surface_color;}}","layout(location=0) in vec3 a_pos3d;uniform mat4 u_fog_matrix;uniform float u_ele_delta;out vec2 v_texture_pos;out float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:t1("in float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {fragColor=pack(v_depth);}","layout(location=0) in vec3 a_pos3d;uniform float u_ele_delta;out float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);v_depth=gl_Position.z/gl_Position.w;}"),atmosphere:t1(`#ifdef GL_ES
1124precision highp float;
1125#endif
1126in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;/**Shader use from https:*Made some change to adapt to MapLibre Globe geometry*/const float PI=3.141592653589793;const int iSteps=5;const int jSteps=3;/*radius of the planet*/const float EARTH_RADIUS=6371e3;/*radius of the atmosphere*/const float ATMOS_RADIUS=6471e3;vec2 rsi(vec3 r0,vec3 rd,float sr) {float a=dot(rd,rd);float b=2.0*dot(rd,r0);float c=dot(r0,r0)-(sr*sr);float d=(b*b)-4.0*a*c;if (d < 0.0) return vec2(1e5,-1e5);return vec2((-b-sqrt(d))/(2.0*a),(-b+sqrt(d))/(2.0*a));}vec4 atmosphere(vec3 r,vec3 r0,vec3 pSun,float iSun,float rPlanet,float rAtmos,vec3 kRlh,float kMie,float shRlh,float shMie,float g) {pSun=normalize(pSun);r=normalize(r);vec2 p=rsi(r0,r,rAtmos);if (p.x > p.y) {return vec4(0.0,0.0,0.0,1.0);}if (p.x < 0.0) {p.x=0.0;}vec3 pos=r0+r*p.x;vec2 p2=rsi(r0,r,rPlanet);if (p2.x <=p2.y && p2.x > 0.0) {p.y=min(p.y,p2.x);}float iStepSize=(p.y-p.x)/float(iSteps);float iTime=p.x+iStepSize*0.5;vec3 totalRlh=vec3(0,0,0);vec3 totalMie=vec3(0,0,0);float iOdRlh=0.0;float iOdMie=0.0;float mu=dot(r,pSun);float mumu=mu*mu;float gg=g*g;float pRlh=3.0/(16.0*PI)*(1.0+mumu);float pMie=3.0/(8.0*PI)*((1.0-gg)*(mumu+1.0))/(pow(1.0+gg-2.0*mu*g,1.5)*(2.0+gg));for (int i=0; i < iSteps; i++) {vec3 iPos=r0+r*iTime;float iHeight=length(iPos)-rPlanet;float odStepRlh=exp(-iHeight/shRlh)*iStepSize;float odStepMie=exp(-iHeight/shMie)*iStepSize;iOdRlh+=odStepRlh;iOdMie+=odStepMie;float jStepSize=rsi(iPos,pSun,rAtmos).y/float(jSteps);float jTime=jStepSize*0.5;float jOdRlh=0.0;float jOdMie=0.0;for (int j=0; j < jSteps; j++) {vec3 jPos=iPos+pSun*jTime;float jHeight=length(jPos)-rPlanet;jOdRlh+=exp(-jHeight/shRlh)*jStepSize;jOdMie+=exp(-jHeight/shMie)*jStepSize;jTime+=jStepSize;}vec3 attn=exp(-(kMie*(iOdMie+jOdMie)+kRlh*(iOdRlh+jOdRlh)));totalRlh+=odStepRlh*attn;totalMie+=odStepMie*attn;iTime+=iStepSize;}float opacity=exp(-(length(kRlh)*length(totalRlh)+kMie*length(totalMie)));vec3 color=iSun*(pRlh*kRlh*totalRlh+pMie*kMie*totalMie);return vec4(color,opacity);}void main() {vec3 scale_camera_pos=-u_globe_position*EARTH_RADIUS/u_globe_radius;vec4 color=atmosphere(normalize(view_direction),scale_camera_pos,u_sun_pos,22.0,EARTH_RADIUS,ATMOS_RADIUS,vec3(5.5e-6,13.0e-6,22.4e-6),21e-6,8e3,1.2e3,0.758
1127);color.rgb=1.0-exp(-1.0*color.rgb);color=pow(color,vec4(1.0/2.2));fragColor=vec4(color.rgb,1.0-color.a)*u_atmosphere_blend;}`,"layout(location=0) in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 view_direction;void main() {view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,0.0,1.0);}"),sky:t1("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform vec2 u_horizon;uniform vec2 u_horizon_normal;uniform float u_sky_horizon_blend;uniform float u_sky_blend;uniform vec3 u_globe_position;uniform float u_globe_radius;in vec3 v_view_direction;void main() {float x=gl_FragCoord.x;float y=gl_FragCoord.y;float blend=(y-u_horizon.y)*u_horizon_normal.y+(x-u_horizon.x)*u_horizon_normal.x;if (u_sky_blend > 0.0) {vec3 ray=normalize(v_view_direction);float globe_distance=length(u_globe_position);float angle_to_globe_center=acos(clamp(dot(ray,u_globe_position)/globe_distance,-1.0,1.0));float horizon_angle=asin(min(u_globe_radius/globe_distance,1.0));blend=mix(blend,(angle_to_globe_center-horizon_angle)*u_camera_to_center_distance*u_device_pixel_ratio,u_sky_blend);}if (blend > 0.0) {if (blend < u_sky_horizon_blend) {fragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {fragColor=u_sky_color;}}fragColor=mix(fragColor,vec4(vec3(0.0),0.0),u_sky_blend);}","layout(location=0) in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 v_view_direction;void main() {v_view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,1.0,1.0);}")};function t1(t,i){let r=/#pragma maplibre: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,a=i.match(/in ([\w]+) ([\w]+)/g),n=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),o=i.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),s=o?o.concat(n):n,l=a?a.length:0,c={};return{fragmentSource:t=t.replace(r,(t,i,r,a,n)=>(c[n]=!0,"define"===i?`
1128#ifndef HAS_UNIFORM_u_${n}
1129in ${r} ${a} ${n};
1130#else
1131uniform ${r} ${a} u_${n};
1132#endif
1133`:`
1134#ifdef HAS_UNIFORM_u_${n}
1135    ${r} ${a} ${n} = u_${n};
1136#endif
1137`)),vertexSource:i=i.replace(r,(t,i,r,a,n)=>{let o="float"===a?"vec2":"vec4",s=n.match(/color/)?"color":o;return c[n]?"define"===i?`
1138#ifndef HAS_UNIFORM_u_${n}
1139uniform lowp float u_${n}_t;
1140layout(location = ${l++}) in ${r} ${o} a_${n};
1141out ${r} ${a} ${n};
1142#else
1143uniform ${r} ${a} u_${n};
1144#endif
1145`:"vec4"===s?`
1146#ifndef HAS_UNIFORM_u_${n}
1147    ${n} = a_${n};
1148#else
1149    ${r} ${a} ${n} = u_${n};
1150#endif
1151`:`
1152#ifndef HAS_UNIFORM_u_${n}
1153    ${n} = unpack_mix_${s}(a_${n}, u_${n}_t);
1154#else
1155    ${r} ${a} ${n} = u_${n};
1156#endif
1157`:"define"===i?`
1158#ifndef HAS_UNIFORM_u_${n}
1159uniform lowp float u_${n}_t;
1160layout(location = ${l++}) in ${r} ${o} a_${n};
1161#else
1162uniform ${r} ${a} u_${n};
1163#endif
1164`:"vec4"===s?`
1165#ifndef HAS_UNIFORM_u_${n}
1166    ${r} ${a} ${n} = a_${n};
1167#else
1168    ${r} ${a} ${n} = u_${n};
1169#endif
1170`:`
1171#ifndef HAS_UNIFORM_u_${n}
1172    ${r} ${a} ${n} = unpack_mix_${s}(a_${n}, u_${n}_t);
1173#else
1174    ${r} ${a} ${n} = u_${n};
1175#endif
1176`}),staticAttributes:a,staticUniforms:s}}let t0="#define PROJECTION_MERCATOR",t2="mercator";var t3=class{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return t2}get shaderDefine(){return t0}get shaderPreludeCode(){return tQ.projectionMercator}get vertexShaderPreludeCode(){return tQ.projectionMercator.vertexSource}get subdivisionGranularity(){return T.vt.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}destroy(){}getMeshFromTileID(t,i,r,a,n){if(this._cachedMesh)return this._cachedMesh;let o=new T.Gt;o.emplaceBack(0,0),o.emplaceBack(8192,0),o.emplaceBack(0,8192),o.emplaceBack(8192,8192);let s=t.createVertexBuffer(o,e$.members),l=T.Bt.simpleSegment(0,0,4,2),c=new T.Jt;
1176c.emplaceBack(1,0,2),c.emplaceBack(1,2,3);let u=t.createIndexBuffer(c);return this._cachedMesh=new eN(s,u,l),this._cachedMesh}recalculate(){}hasTransition(){return!1}},t5=class t{constructor(t=0,i=0,r=0,a=0){if(isNaN(t)||t<0||isNaN(i)||i<0||isNaN(r)||r<0||isNaN(a)||a<0)throw Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=i,this.left=r,this.right=a}interpolate(t,i,r){return null!=i.top&&null!=t.top&&(this.top=T.un.number(t.top,i.top,r)),null!=i.bottom&&null!=t.bottom&&(this.bottom=T.un.number(t.bottom,i.bottom,r)),null!=i.left&&null!=t.left&&(this.left=T.un.number(t.left,i.left,r)),null!=i.right&&null!=t.right&&(this.right=T.un.number(t.right,i.right,r)),this}getCenter(t,i){let r=(0,T.Bn)((this.left+t-this.right)/2,0,t),a=(0,T.Bn)((this.top+i-this.bottom)/2,0,i);return new T.Li(r,a)}equals(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right}clone(){return new t(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}};function t4(t,i){if(!t.renderWorldCopies||t.lngRange)return;let r=i.lng-t.center.lng;i.lng+=r>180?-360:360*(r<-180)}function t6(t){return Math.max(0,Math.floor(t))}var t8=class{constructor(t,i){this.applyConstrain=(t,i)=>null===this._constrainOverride?this._callbacks.defaultConstrain(t,i):this._constrainOverride(t,i),this._callbacks=t,this._tileSize=512,this._renderWorldCopies=i?.renderWorldCopies===void 0||!!i?.renderWorldCopies,this._minZoom=i?.minZoom||0,this._maxZoom=i?.maxZoom||22,this._minPitch=i?.minPitch===void 0||i?.minPitch===null?0:i?.minPitch,this._maxPitch=i?.maxPitch===void 0||i?.maxPitch===null?60:i?.maxPitch,this._constrainOverride=i?.constrainOverride??null,this.setMaxBounds(),this._width=0,this._height=0,this._center=new T.lt(0,0),this._elevation=0,this._zoom=0,this._tileZoom=t6(this._zoom),this._scale=(0,T.Fr)(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new t5,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(t,i,r){this._constrainOverride=t.constrainOverride,this._latRange=t.latRange,this._lngRange=t.lngRange,this._width=t.width,this._height=t.height,this._center=t.center,this._elevation=t.elevation,this._minElevationForCurrentTile=t.minElevationForCurrentTile,this._zoom=t.zoom,this._tileZoom=t6(this._zoom),this._scale=(0,T.Fr)(this._zoom),this._bearingInRadians=t.bearingInRadians,this._fovInRadians=t.fovInRadians,this._pitchInRadians=t.pitchInRadians,this._rollInRadians=t.rollInRadians,this._unmodified=t.unmodified,this._edgeInsets=new t5(t.padding.top,t.padding.bottom,t.padding.left,t.padding.right),this._minZoom=t.minZoom,this._maxZoom=t.maxZoom,this._minPitch=t.minPitch,this._maxPitch=t.maxPitch,this._renderWorldCopies=t.renderWorldCopies,this._cameraToCenterDistance=t.cameraToCenterDistance,this._nearZ=t.nearZ,this._farZ=t.farZ,this._autoCalculateNearFarZ=!r&&t.autoCalculateNearFarZ,i&&this.constrainInternal(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(t){this._minElevationForCurrentTile=t}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(t){if(this._minZoom===t)return;this._minZoom=t;let i=this._unmodified;this.setZoom(this.applyConstrain(this._center,this.zoom).zoom),this._unmodified=i}get maxZoom(){return this._maxZoom}setMaxZoom(t){if(this._maxZoom===t)return;this._maxZoom=t;let i=this._unmodified;this.setZoom(this.applyConstrain(this._center,this.zoom).zoom),this._unmodified=i}get minPitch(){return this._minPitch}setMinPitch(t){if(this._minPitch===t)return;this._minPitch=t;let i=this._unmodified;this.setPitch(Math.max(this.pitch,t)),this._unmodified=i}get maxPitch(){return this._maxPitch}setMaxPitch(t){if(this._maxPitch===t)return;this._maxPitch=t;let i=this._unmodified;this.setPitch(Math.min(this.pitch,t)),this._unmodified=i}get renderWorldCopies(){return this._renderWorldCopies}setRenderWorldCopies(t){void 0===t?t=!0:null===t&&(t=!1),this._renderWorldCopies=t}get constrainOverride(){return this._constrainOverride}setConstrainOverride(t){void 0===t&&(t=null),this._constrainOverride!==t&&(this._constrainOverride=t,this.constrainInternal(),this._calcMatrices())}get worldSize(){return this._tileSize*this._scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new T.Li(this._width,this._height)}get bearing(){return this._bearingInRadians/Math.PI*180}setBearing(t){var i,r,a,n,o,s,l,c,u;let h=(0,T.Pr)(t,-180,180)*Math.PI/180;this._bearingInRadians!==h&&(this._unmodified=!1,this._bearingInRadians=h,this._calcMatrices(),this._rotationMatrix=S(),i=this._rotationMatrix,r=this._rotationMatrix,a=-this._bearingInRadians,n=r[0],o=r[1],s=r[2],l=r[3],c=Math.sin(a),u=Math.cos(a),i[0]=n*u+s*c,i[1]=o*u+l*c,i[2]=-(n*c)+s*u,i[3]=-(o*c)+l*u)}get rotationMatrix(){return this._rotationMatrix}get pitchInRadians(){return this._pitchInRadians}get pitch(){return this._pitchInRadians/Math.PI*180}setPitch(t){let i=(0,T.Bn)(t,this.minPitch,this.maxPitch)/180*Math.PI;this._pitchInRadians!==i&&(this._unmodified=!1,this._pitchInRadians=i,this._calcMatrices())}get rollInRadians(){return this._rollInRadians}get roll(){return this._rollInRadians/Math.PI*180}setRoll(t){let i=t/180*Math.PI;this._rollInRadians!==i&&(this._unmodified=!1,this._rollInRadians=i,this._calcMatrices())}get fovInRadians(){return this._fovInRadians}get fov(){return(0,T.xr)(this._fovInRadians)}setFov(t){t=(0,T.Bn)(t,.1,150),this.fov!==t&&(this._unmodified=!1,this._fovInRadians=(0,T.Yn)(t),this._calcMatrices())}get zoom(){return this._zoom}setZoom(t){let i=this.applyConstrain(this._center,t).zoom;this._zoom!==i&&(this._unmodified=!1,this._zoom=i,this._tileZoom=Math.max(0,Math.floor(i)),this._scale=(0,T.Fr)(i),this.constrainInternal(),this._calcMatrices())}get center(){return this._center}setCenter(t){(t.lat!==this._center.lat||t.lng!==this._center.lng)&&(this._unmodified=!1,this._center=t,this.constrainInternal(),this._calcMatrices())}get elevation(){return this._elevation}setElevation(t){t!==this._elevation&&(this._elevation=t,this.constrainInternal(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}setPadding(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this._width,this._height)}get pixelsPerMeter(){return this._pixelPerMeter}get unmodified(){return this._unmodified}get cameraToCenterDistance(){return this._cameraToCenterDistance}get nearZ(){return this._nearZ}get farZ(){return this._farZ}get autoCalculateNearFarZ(){return this._autoCalculateNearFarZ}overrideNearFarZ(t,i){this._autoCalculateNearFarZ=!1,this._nearZ=t,this._farZ=i,this._calcMatrices()}clearNearFarZOverride(){this._autoCalculateNearFarZ=!0,this._calcMatrices()}isPaddingEqual(t){return this._edgeInsets.equals(t)}interpolatePadding(t,i,r){this._unmodified=!1,this._edgeInsets.interpolate(t,i,r),this.constrainInternal(),this._calcMatrices()}resize(t,i,r=!0){this._width=t,this._height=i,r&&this.constrainInternal(),this._calcMatrices()}getMaxBounds(){return this._latRange?.length!==2||this._lngRange?.length!==2?null:new eE([this._lngRange[0],this._latRange[0]],[this._lngRange[1],this._latRange[1]])}setMaxBounds(t){t?(this._lngRange=[t.getWest(),t.getEast()],this._latRange=[t.getSouth(),t.getNorth()],this.constrainInternal()):(this._lngRange=null,this._latRange=[-T.Fn,T.Fn])}getCameraQueryGeometry(t,i){if(1===i.length)return[i[0],t];{let{minX:r,minY:a,maxX:n,maxY:o}=T.pt.fromPoints(i).extend(t);return[new T.Li(r,a),new T.Li(n,a),new T.Li(n,o),new T.Li(r,o),new T.Li(r,a)]}}constrainInternal(){if(!this.center||!this._width||!this._height||this._constraining)return;this._constraining=!0;let t=this._unmodified,{center:i,zoom:r}=this.applyConstrain(this.center,this.zoom);this.setCenter(i),this.setZoom(r),this._unmodified=t,this._constraining=!1}
1176_calcMatrices(){if(this._pixelPerMeter=(0,T.ct)(1,this.center.lat)*this.worldSize,!this._width||!this._height)return;this._pixelsToGLUnits=[2/this._width,-2/this._height];let t=(0,T.Si)(new Float64Array(16));(0,T.Ai)(t,t,[this._width/2,-this._height/2,1]),(0,T.ji)(t,t,[1,-1,0]),this._clipSpaceToPixelsMatrix=t,t=(0,T.Si)(new Float64Array(16)),(0,T.Ai)(t,t,[1,-1,1]),(0,T.ji)(t,t,[-1,-1,0]),(0,T.Ai)(t,t,[2/this._width,2/this._height,1]),this._pixelsToClipSpaceMatrix=t;let i=this.fovInRadians/2;this._cameraToCenterDistance=.5/Math.tan(i)*this._height,this._callbacks.calcMatrices()}calculateCenterFromCameraLngLatAlt(t,i,r,a){let n=void 0===r?this.bearing:r,o=a=void 0===a?this.pitch:a,{distanceToCenter:s,clampedElevation:l}=this._distanceToCenterFromAltElevationPitch(i,this.elevation,o),{x:c,y:u}=(0,T.J)(o,n),h=T.nt.fromLngLat(t,i),d=(0,T.rt)(1,h.y),f,p,m=0;do{if((m+=1)>10)break;let t=c*(p=s/d),i=u*p;d=1/(f=new T.nt(h.x+t,h.y+i)).meterInMercatorCoordinateUnits()}while(Math.abs(s-p*d)>1e-12)return{center:f.toLngLat(),elevation:l,zoom:(0,T.Dr)(this.height/2/Math.tan(this.fovInRadians/2)/p/this.tileSize)}}recalculateZoomAndCenter(t){if(this.elevation-t==0)return;let i=1/this.worldSize,r=(0,T.ct)(1,this.center.lat)*this.worldSize,a=T.nt.fromLngLat(this.center,this.elevation),n=a.x/i,o=a.y/i,s=a.z/i,l=this.pitch,c=this.bearing,{x:u,y:h,z:d}=(0,T.J)(l,c),f=this.cameraToCenterDistance,{distanceToCenter:p,clampedElevation:m}=this._distanceToCenterFromAltElevationPitch((s+f*d)/r,t,l),g=p*r,y=new T.nt((n+-(f*u)+u*g)*i,(o+-(f*h)+h*g)*i,0).toLngLat(),_=(0,T.ct)(1,y.lat),v=(0,T.Dr)(this.height/2/Math.tan(this.fovInRadians/2)/p/_/this.tileSize);this._elevation=m,this._center=y,this.setZoom(v)}_distanceToCenterFromAltElevationPitch(t,i,r){let a=-Math.cos((0,T.Yn)(r)),n=t-i,o,s=i;return a*n>=0||.1>Math.abs(a)?s=t+(o=1e4)*a:o=-n/a,{distanceToCenter:o,clampedElevation:s}}getCameraPoint(){let t=Math.tan(this.pitchInRadians)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new T.Li(t*Math.sin(this.rollInRadians),t*Math.cos(this.rollInRadians)))}getMercatorTileCoordinates(t){if(!t)return[0,0,1,1];let i=t.canonical.z>=0?1<<t.canonical.z:2**t.canonical.z;return[t.canonical.x/i,t.canonical.y/i,1/i/8192,1/i/8192]}},t7=class{distanceToTile2d(t,i,r,a){return Math.hypot(a.distanceX([t,i]),a.distanceY([t,i]))}getWrap(t,i,r){return r}getTileBoundingVolume(t,i,r,a){let n=Math.min(0,r),o=Math.max(0,r);if(a?.terrain){let r=new T.d(t.z,i,t.z,t.x,t.y),s=a.terrain.getMinMaxElevation(r);n=s.minElevation??n,o=s.maxElevation??o}let s=1<<t.z;return new e0([i+t.x/s,t.y/s,n],[i+(t.x+1)/s,(t.y+1)/s,o])}allowVariableZoom(t,i){let r=t.fov*(Math.abs(Math.cos(t.rollInRadians))*t.height+Math.abs(Math.sin(t.rollInRadians))*t.width)/t.height,a=(0,T.Bn)(78.5-r/2,0,60);return!!i.terrain||t.pitch>a}allowWorldCopies(){return!0}prepareNextFrame(){}};let t9=(0,T.Yt)([{name:"a_pos3d",type:"Int16",components:3}]);var ie=class extends T.vn{constructor(t){super(),this._lastTilesetChange=E(),this.tileManager=t,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.deltaZoom=1,this.tileSize=t._source.tileSize*2**this.deltaZoom,t.usedForTerrain=!0,t.tileSize=this.tileSize}destruct(){this.tileManager.usedForTerrain=!1,this.tileManager.tileSize=null,this.releaseAllRTT()}getSource(){return this.tileManager._source}update(t,i){this.tileManager.update(t,i),this._renderableTilesKeys=[];let r={},a=!1;for(let n of e8(t,{tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:i,calculateTileZoom:this.tileManager._source.calculateTileZoom}))r[n.key]=!0,this._renderableTilesKeys.push(n.key),this._tiles[n.key]||(n.terrainRttPosMatrix32f=new Float32Array(16),(0,T.Ti)(n.terrainRttPosMatrix32f,0,8192,8192,0,0,1),this._tiles[n.key]=new eJ(n,this.tileSize),this._lastTilesetChange=E(),a=!0);for(let t in this._tiles)r[t]||(this._tiles[t].releaseRTT(this.tileManager.map.painter),delete this._tiles[t],a=!0);return a}releaseRTT(t){for(let i in this._tiles){let r=this._tiles[i];(r.tileID.equals(t)||r.tileID.isChildOf(t)||t.isChildOf(r.tileID))&&r.releaseRTT(this.tileManager.map.painter)}}releaseAllRTT(){for(let t in this._tiles)this._tiles[t].releaseRTT(this.tileManager.map.painter)}getRenderableTiles(){return this._renderableTilesKeys.map(t=>this.getTileByID(t))}getTileByID(t){return this._tiles[t]}getTerrainCoords(t,i){return i?this._getTerrainCoordsForTileRanges(t,i):this._getTerrainCoordsForRegularTile(t)}_getTerrainCoordsForRegularTile(t){let i={};for(let r of this._renderableTilesKeys){let a=this._tiles[r].tileID,n=t.clone(),o=(0,T.Wn)();if(a.canonical.equals(t.canonical))(0,T.Ti)(o,0,8192,8192,0,0,1);else if(a.canonical.isChildOf(t.canonical)){let i=a.canonical.z-t.canonical.z,r=a.canonical.x-(a.canonical.x>>i<<i),n=a.canonical.y-(a.canonical.y>>i<<i),s=8192>>i;(0,T.Ti)(o,0,s,s,0,0,1),(0,T.ji)(o,o,[-r*s,-n*s,0])}else{if(!t.canonical.isChildOf(a.canonical))continue;let i=t.canonical.z-a.canonical.z,r=t.canonical.x-(t.canonical.x>>i<<i),n=t.canonical.y-(t.canonical.y>>i<<i),s=8192>>i;(0,T.Ti)(o,0,8192,8192,0,0,1),(0,T.ji)(o,o,[r*s,n*s,0]),(0,T.Ai)(o,o,[1/2**i,1/2**i,0])}n.terrainRttPosMatrix32f=new Float32Array(o),i[r]=n}return i}_getTerrainCoordsForTileRanges(t,i){let r={};for(let a of this._renderableTilesKeys){let n=this._tiles[a].tileID;if(!this._isWithinTileRanges(n,i))continue;let o=t.clone(),s=(0,T.Wn)();if(n.canonical.z===t.canonical.z){let i=t.canonical.x-n.canonical.x+t.wrap*(1<<t.canonical.z),r=t.canonical.y-n.canonical.y;(0,T.Ti)(s,0,8192,8192,0,0,1),(0,T.ji)(s,s,[8192*i,8192*r,0])}else if(n.canonical.z>t.canonical.z){let i=n.canonical.z-t.canonical.z,r=n.canonical.x-(n.canonical.x>>i<<i)+t.wrap*(1<<n.canonical.z),a=n.canonical.y-(n.canonical.y>>i<<i),o=t.canonical.x-(n.canonical.x>>i),l=t.canonical.y-(n.canonical.y>>i),c=8192>>i;(0,T.Ti)(s,0,c,c,0,0,1),(0,T.ji)(s,s,[-r*c+8192*o,-a*c+8192*l,0])}else{let i=t.canonical.z-n.canonical.z,r=t.canonical.x-(t.canonical.x>>i<<i)+t.wrap*(1<<t.canonical.z),a=t.canonical.y-(t.canonical.y>>i<<i),o=(t.canonical.x>>i)-n.canonical.x,l=(t.canonical.y>>
1176i)-n.canonical.y,c=8192<<i;(0,T.Ti)(s,0,c,c,0,0,1),(0,T.ji)(s,s,[8192*r+o*c,8192*a+l*c,0])}o.terrainRttPosMatrix32f=new Float32Array(s),r[a]=o}return r}getSourceTile(t,i){let r=this.tileManager._source,a=t.overscaledZ-this.deltaZoom;if(a>r.maxzoom&&(a=r.maxzoom),a<r.minzoom)return;this._sourceTileCache[t.key]||=t.scaledTo(a).key;let n=this.findTileInCaches(this._sourceTileCache[t.key]);if(!n?.dem&&i)for(;a>=r.minzoom&&!n?.dem;)n=this.findTileInCaches(t.scaledTo(a--).key);return n}findTileInCaches(t){let i=this.tileManager.getTileByID(t);return i||(i=this.tileManager._outOfViewCache.getByKey(t))}anyTilesAfterTime(t=E()){return this._lastTilesetChange>=t}_isWithinTileRanges(t,i){let r=i[t.canonical.z];return!!r&&(t.wrap>r.minWrap||t.wrap<r.maxWrap||t.canonical.x>=r.minTileXWrapped&&t.canonical.x<=r.maxTileXWrapped&&t.canonical.y>=r.minTileY&&t.canonical.y<=r.maxTileY)}};let it=8192*(1-1e-12);var ii=class{constructor(t,i,r,a="auto"){this._meshCache={},this.painter=t,this.tileManager=new ie(i),this.options=r,this.exaggeration="number"==typeof r.exaggeration?r.exaggeration:1,this._terrainSkirtLength=a,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache=new Map,this._elevationSamplerCache=new Map}destroy(){for(let t in this._fbo&&=(this._fbo.destroy(),null),this._fboDepthTexture&&=(this._fboDepthTexture.destroy(),null),this._emptyDemTexture&&=(this._emptyDemTexture.destroy(),null),this._emptyDepthTexture&&=(this._emptyDepthTexture.destroy(),null),this._meshCache)this._meshCache[t].destroy();this._meshCache={},this.tileManager.destruct()}getDEMElevation(t,i,r,a=8192){let n=t.normalizeCoordinates(i,r,a);if(!n)return 0;let o=this.getElevationSampler(n.tileID);return o?o(n.x,n.y,a):0}getElevationForLngLatZoom(t,i){if(!(0,T.h)(i,t.wrap()))return 0;let{tileID:r,mercatorX:a,mercatorY:n}=this._getOverscaledTileIDFromLngLatZoom(t,i);return this.getElevation(r,a%8192,n%8192,8192)}getElevationForLngLat(t,i){let r=this.getCoverageIndex();if(r){let i=T.nt.fromLngLat(t),a=ia(r,this.exaggeration,i.x,i.y);if(a.demLoaded)return a.elevation}let a=e8(i,{maxzoom:this.tileManager.maxzoom,minzoom:this.tileManager.minzoom,tileSize:512,terrain:this}),n=0;for(let t of a)t.canonical.z>n&&(n=Math.min(t.canonical.z,this.tileManager.maxzoom));return this.getElevationForLngLatZoom(t,n)}getElevation(t,i,r,a=8192){return this.getDEMElevation(t,i,r,a)*this.exaggeration}resetElevationCache(){this._elevationSamplerCache.clear(),this._coverageIndex=void 0}getCoverageIndex(){return void 0===this._coverageIndex&&(this._coverageIndex=this._buildCoverageIndex()),this._coverageIndex}_buildCoverageIndex(){let t=[],i=new Map,r=0,a=0;for(let n of this.tileManager.getRenderableTiles()){if(!n)continue;let{canonical:o,wrap:s}=n.tileID;t.includes(o.z)||t.push(o.z);let l=this.getElevationSampler(n.tileID);i.set(`${s}/${o.z}/${o.x}/${o.y}`,l);let{minElevation:c,maxElevation:u}=this.getMinMaxElevation(n.tileID);r=Math.min(r,c??0),a=Math.max(a,u??0)}return 0===i.size?null:(t.sort((t,i)=>i-t),{zooms:t,samplerPerTile:i,minElevation:r-10,maxElevation:a+10})}getElevationSampler(t){let i=t.key,r=this._elevationSamplerCache.get(i);if(r)return r;let a=this.tileManager.getSourceTile(t,!0),n=a?.dem;if(!a||!n)return null;let o=this._getDEMTileMatrix(t,a),s=o[0]*n.dim,l=o[5]*n.dim,c=o[12]*n.dim+-.5,u=o[13]*n.dim+-.5,h=(t,i,r)=>{let a=8192===r?1:8192/r;return n.sampleBilinear(t*a*s+c,i*a*l+u)};return this._elevationSamplerCache.set(i,h),h}_getDEMTileMatrix(t,i){let r=`${i.tileID.key}/${t.key}`,a=this._demMatrixCache.get(r);if(a)return a;let n=t.canonical.z-i.tileID.canonical.z,o=t.canonical.x-(t.canonical.x>>n<<n),s=t.canonical.y-(t.canonical.y>>n<<n),l=(0,T.xi)(new Float64Array(16),[1/(8192<<n),1/(8192<<n),0]);return(0,T.ji)(l,l,[8192*o,8192*s,0]),this._demMatrixCache.set(r,l),l}getTerrainData(t){if(!this._emptyDemTexture){let t=this.painter.context,i=new T.Dt({width:1,height:1},new Uint8Array(4));this._emptyDepthTexture=new T.xt(t,i,t.gl.RGBA,{premultiply:!1}),this._emptyDemUnpack=[0,0,0,0],this._emptyDemTexture=new T.xt(t,new T.Dt({width:1,height:1}),t.gl.RGBA,{premultiply:!1}),this._emptyDemTexture.bind(t.gl.NEAREST,t.gl.CLAMP_TO_EDGE),this._emptyDemMatrix=(0,T.Si)([])}let i=this.tileManager.getSourceTile(t,!0);if(i?.dem&&(!i.demTexture||i.needsTerrainPrepare)){let t=this.painter.context;i.demTexture||=this.painter.getTileTexture(i.dem.stride),i.demTexture?i.demTexture.update(i.dem.getPixels(),{premultiply:!1}):i.demTexture=new T.xt(t,i.dem.getPixels(),t.gl.RGBA,{premultiply:!1}),i.demTexture.bind(t.gl.NEAREST,t.gl.CLAMP_TO_EDGE),i.needsTerrainPrepare=!1}let r=i?this._getDEMTileMatrix(t,i):this._emptyDemMatrix;return{u_depth:2,u_terrain:3,u_terrain_dim:i?.dem?.dim||1,u_terrain_matrix:r,u_terrain_unpack:i?.dem?.getUnpackVector()||this._emptyDemUnpack,u_terrain_exaggeration:this.exaggeration,texture:(i?.demTexture||this._emptyDemTexture).texture,depthTexture:(this._fboDepthTexture||this._emptyDepthTexture).texture,tile:i}}getFramebuffer(){let t=this.painter,i=t.width/devicePixelRatio,r=t.height/devicePixelRatio;return this._fbo&&(this._fbo.width!==i||this._fbo.height!==r)&&(this._fbo.destroy(),this._fboDepthTexture.destroy(),delete this._fbo,delete this._fboDepthTexture),this._fboDepthTexture||(this._fboDepthTexture=new T.xt(t.context,{width:i,height:r,data:null},t.context.gl.RGBA,{premultiply:!1}),this._fboDepthTexture.bind(t.context.gl.NEAREST,t.context.gl.CLAMP_TO_EDGE)),this._fbo||(this._fbo=t.context.createFramebuffer(i,r,!0,!1),this._fbo.depthAttachment.set(t.context.createRenderbuffer(t.context.gl.DEPTH_COMPONENT16,i,r))),this._fbo.colorAttachment.set(this._fboDepthTexture.texture),this._fbo}depthAtPoint(t){let i=new Uint8Array(4),r=this.painter.context,a=r.gl;return r.bindFramebuffer.set(this.getFramebuffer().framebuffer),a.readPixels(t.x,this.painter.height/devicePixelRatio-t.y-1,1,1,a.RGBA,a.UNSIGNED_BYTE,i),r.bindFramebuffer.set(null),(i[0]/0x1000000+i[1]/65536+i[2]/256+i[3])/256}getTerrainMesh(t){let i=this.painter.style.projection?.transitionState>0,r=i&&0===t.canonical.y,a=i&&t.canonical.y===(1<<t.canonical.z)-1,n=`m_${r?"n":""}_${a?"s":""}`;if(this._meshCache[n])return this._meshCache[n];let o=this.painter.context,s=new T.Wt,l=new T.Jt,c=this.meshSize,u=8192/c,h=c*c;for(let t=0;t<=c;t++)for(let i=0;i<=c;i++)s.emplaceBack(i*u,t*u,0);for(let t=0;t<h;t+=c+1)for(let i=0;i<c;i++)l.emplaceBack(i+t,c+i+t+1,c+i+t+2),l.emplaceBack(i+t,c+i+t+2,i+t+1);"none"!==this._terrainSkirtLength&&this._buildSkirts(s,l,c,u,r,a);let d=new eN(o.createVertexBuffer(s,t9.members),o.createIndexBuffer(l),T.Bt.simpleSegment(0,0,s.length,l.length));return this._meshCache[n]=d,d}getSkirtLength(t){return 2*Math.PI*T.ut/2**Math.max(t,0)/5}getMinTileElevationForLngLatZoom(t,i){if(!(0,T.h)(i,t.wrap()))return 0;let{tileID:r}=this._getOverscaledTileIDFromLngLatZoom(t,i);return this.getMinMaxElevation(r).minElevation??0}getMinMaxElevation(t){let i=this.tileManager.getSourceTile(t,!0),r={minElevation:null,maxElevation:null};return i?.dem&&(r.minElevation=i.dem.min*this.exaggeration,r.maxElevation=i.dem.max*this.exaggeration),r}_getOverscaledTileIDFromLngLatZoom(t,i){let r=T.nt.fromLngLat(t.wrap()),a=(1<<i)*8192,n=r.x*a,o=r.y*a,s=Math.floor(n/8192),l=Math.floor(o/8192);return{tileID:new T.d(i,0,i,s,l),mercatorX:n,mercatorY:o}}_buildSkirts(t,i,r,a,n,o){let s=t.length,l=s+(r+1),c=(r+1)*r,u=n?-32768:0,h=+!n,d=o?32767:8192,f=+!o;for(let i=0;i<=r;i++)t.emplaceBack(i*a,u,h);for(let i=0;i<=r;i++)t.emplaceBack(i*a,d,f);for(let t=0;t<r;t++)i.emplaceBack(c+t,l+t,l+t+1),i.emplaceBack(c+t,l+t+1,c+t+1),i.emplaceBack(0+t,s+t+1,s+t),i.emplaceBack(0+t,0+t+1,s+t+1);let p=t.length,m=p+(r+1)*2;for(let i of[0,1])for(let n=0;n<=r;n++)for(let r of[0,1])t.emplaceBack(8192*i,n*a,r);for(let t=0;t<2*r;t+=2)i.emplaceBack(p+t,p+t+1,p+t+3),i.emplaceBack(p+t,p+t+3,p+t+2),i.emplaceBack(m+t,m+t+3,m+t+1),i.emplaceBack(m+t,m+t+2,m+t+3)}};let ir={covered:!1,demLoaded:!1,elevation:0};function ia(t,i,r,a){if(a<0||a>=1)return ir;let n=Math.floor(r),o=r-n;for(let r of t.zooms){let s=1<<r,l=o*s,c=a*s,u=Math.floor(l),h=Math.floor(c),d=`${n}/${r}/${u}/${h}`;if(!t.samplerPerTile.has(d))continue;let f=t.samplerPerTile.get(d);return f?{covered:!0,demLoaded:!0,elevation:f(Math.min((l-u)*8192,it),Math.min((c-h)*8192,it),8192)*i}:{covered:!0,demLoaded:!1,elevation:0}}return ir}function io(t,i){return t.covered&&i<=t.elevation+1e-6}function is(t,i,r,a,n){for(let o=0;o<40&&a-r>n;o++){let n=(r+a)/2;i(t,n)?a=n:r=n}return{lo:r,hi:a}}
1176var il=class t{get pixelsToClipSpaceMatrix(){return this._helper.pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._helper.clipSpaceToPixelsMatrix}get pixelsToGLUnits(){return this._helper.pixelsToGLUnits}get centerOffset(){return this._helper.centerOffset}get size(){return this._helper.size}get rotationMatrix(){return this._helper.rotationMatrix}get centerPoint(){return this._helper.centerPoint}get pixelsPerMeter(){return this._helper.pixelsPerMeter}setMinZoom(t){this._helper.setMinZoom(t)}setMaxZoom(t){this._helper.setMaxZoom(t)}setMinPitch(t){this._helper.setMinPitch(t)}setMaxPitch(t){this._helper.setMaxPitch(t)}setRenderWorldCopies(t){this._helper.setRenderWorldCopies(t)}setBearing(t){this._helper.setBearing(t)}setPitch(t){this._helper.setPitch(t)}setRoll(t){this._helper.setRoll(t)}setFov(t){this._helper.setFov(t)}setZoom(t){this._helper.setZoom(t)}setCenter(t){this._helper.setCenter(t)}setElevation(t){this._helper.setElevation(t)}setMinElevationForCurrentTile(t){this._helper.setMinElevationForCurrentTile(t)}setPadding(t){this._helper.setPadding(t)}interpolatePadding(t,i,r){this._helper.interpolatePadding(t,i,r)}isPaddingEqual(t){return this._helper.isPaddingEqual(t)}resize(t,i,r=!0){this._helper.resize(t,i,r)}getMaxBounds(){return this._helper.getMaxBounds()}setMaxBounds(t){this._helper.setMaxBounds(t)}setConstrainOverride(t){this._helper.setConstrainOverride(t)}overrideNearFarZ(t,i){this._helper.overrideNearFarZ(t,i)}clearNearFarZOverride(){this._helper.clearNearFarZOverride()}getCameraQueryGeometry(t){return this._helper.getCameraQueryGeometry(this.getCameraPoint(),t)}get tileSize(){return this._helper.tileSize}get tileZoom(){return this._helper.tileZoom}get scale(){return this._helper.scale}get worldSize(){return this._helper.worldSize}get width(){return this._helper.width}get height(){return this._helper.height}get lngRange(){return this._helper.lngRange}get latRange(){return this._helper.latRange}get minZoom(){return this._helper.minZoom}get maxZoom(){return this._helper.maxZoom}get zoom(){return this._helper.zoom}get center(){return this._helper.center}get minPitch(){return this._helper.minPitch}get maxPitch(){return this._helper.maxPitch}get pitch(){return this._helper.pitch}get pitchInRadians(){return this._helper.pitchInRadians}get roll(){return this._helper.roll}get rollInRadians(){return this._helper.rollInRadians}get bearing(){return this._helper.bearing}get bearingInRadians(){return this._helper.bearingInRadians}get fov(){return this._helper.fov}get fovInRadians(){return this._helper.fovInRadians}get elevation(){return this._helper.elevation}get minElevationForCurrentTile(){return this._helper.minElevationForCurrentTile}get padding(){return this._helper.padding}get unmodified(){return this._helper.unmodified}get renderWorldCopies(){return this._helper.renderWorldCopies}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}get constrainOverride(){return this._helper.constrainOverride}get nearZ(){return this._helper.nearZ}get farZ(){return this._helper.farZ}get autoCalculateNearFarZ(){return this._helper.autoCalculateNearFarZ}setTransitionState(t){}constructor(t){this._posMatrixCache=new Map,this._alignedPosMatrixCache=new Map,this._fogMatrixCacheF32=new Map,this.defaultConstrain=(t,i)=>{i=(0,T.Bn)(+i,this.minZoom,this.maxZoom);let r={center:new T.lt(t.lng,t.lat),zoom:i},a=this._helper._lngRange;this._helper._renderWorldCopies||null!==a||(a=[-179.9999999999,180-1e-10]);let n=this.tileSize*(0,T.Fr)(r.zoom),o=0,s=n,l=0,c=n,u=0,h=0,{x:d,y:f}=this.size;if(this._helper._latRange){let t=this._helper._latRange;o=(0,T.st)(t[1])*n,(s=(0,T.st)(t[0])*n)-o<f&&(u=f/(s-o))}a&&(l=(0,T.Pr)((0,T.ot)(a[0])*n,0,n),(c=(0,T.Pr)((0,T.ot)(a[1])*n,0,n))<l&&(c+=n),c-l<d&&(h=d/(c-l)));let{x:p,y:m}=(0,T.$)(n,t),g,y,_=Math.max(h||0,u||0);if(_){let t=new T.Li(h?(c+l)/2:p,u?(s+o)/2:m);return r.center=(0,T.tt)(n,t).wrap(),r.zoom+=(0,T.Dr)(_),r}if(this._helper._latRange){let t=f/2;m-t<o&&(y=o+t),m+t>s&&(y=s-t)}if(a){let t=(l+c)/2,i=p;
1176this._helper._renderWorldCopies&&(i=(0,T.Pr)(p,t-n/2,t+n/2));let r=d/2;i-r<l&&(g=l+r),i+r>c&&(g=c-r)}if(void 0!==g||void 0!==y){let t=new T.Li(g??p,y??m);r.center=(0,T.tt)(n,t).wrap()}return r},this.applyConstrain=(t,i)=>this._helper.applyConstrain(t,i),this._helper=new t8({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(t,i)=>this.defaultConstrain(t,i)},t),this._coveringTilesDetailsProvider=new t7}clone(){let i=new t;return i.apply(this,!1),i}apply(t,i,r){this._helper.apply(t,i,r)}get cameraPosition(){return this._cameraPosition}get projectionMatrix(){return this._projectionMatrix}get modelViewProjectionMatrix(){return this._viewProjMatrix}get inverseProjectionMatrix(){return this._invProjMatrix}get mercatorMatrix(){return this._mercatorMatrix}getVisibleUnwrappedCoordinates(t){let i=[new T.f(0,t)];if(this._helper._renderWorldCopies){let r=this.screenPointToMercatorCoordinate(new T.Li(0,0)),a=this.screenPointToMercatorCoordinate(new T.Li(this._helper._width,0)),n=this.screenPointToMercatorCoordinate(new T.Li(this._helper._width,this._helper._height)),o=this.screenPointToMercatorCoordinate(new T.Li(0,this._helper._height)),s=Math.floor(Math.min(r.x,a.x,n.x,o.x)),l=Math.floor(Math.max(r.x,a.x,n.x,o.x));for(let r=s-1;r<=l+1;r++)0!==r&&i.push(new T.f(r,t))}return i}getCameraFrustum(){return e2.fromInvProjectionMatrix(this._invViewProjMatrix,this.worldSize)}getClippingPlane(){return null}getCoveringTilesDetailsProvider(){return this._coveringTilesDetailsProvider}recalculateZoomAndCenter(t){let i=this.screenPointToLocation(this.centerPoint,t),r=t?t.getElevationForLngLat(i,this):0;this._helper.recalculateZoomAndCenter(r)}setLocationAtPoint(t,i,r=this.elevation){let a=r-this.elevation,n=this.screenPointToMercatorCoordinateAtZ(i,a),o=this.screenPointToMercatorCoordinateAtZ(this.centerPoint,0),s=T.nt.fromLngLat(t),l=new T.nt(s.x-(n.x-o.x),s.y-(n.y-o.y));this.setCenter(l?.toLngLat()),this._helper._renderWorldCopies&&this.setCenter(this.center.wrap())}locationToScreenPoint(t,i){return i?this.coordinatePoint(T.nt.fromLngLat(t),i.getElevationForLngLat(t,this),this._pixelMatrix3D):this.coordinatePoint(T.nt.fromLngLat(t))}screenPointToLocation(t,i){return this.screenPointToMercatorCoordinate(t,i)?.toLngLat()}screenPointToLocationAtElevation(t,i){return this.screenPointToMercatorCoordinateAtZ(t,i-this.elevation)?.toLngLat()}screenPointToMercatorCoordinate(t,i){if(i){let r=this.screenTerrainPointToMercatorCoordinate(t,i);if(null!=r)return r}return this.screenPointToMercatorCoordinateAtZ(t)}screenTerrainPointToMercatorCoordinate(t,i){let r=i.getCoverageIndex();if(!r)return null;let{near:a,far:n}=this.getRaySegmentFromPixel(t),o=this.worldSize,s=n[0]-a[0],l=n[1]-a[1],c=n[2]-a[2],u={index:r,exaggeration:i.exaggeration,near:a,dx:s,dy:l,dz:c,worldSize:o},h=0,d=1;if(0===c){if(a[2]>r.maxElevation||a[2]<r.minElevation)return null}else{let t=(r.maxElevation-a[2])/c,i=(r.minElevation-a[2])/c;if((h=Math.max(h,Math.min(t,i)))>(d=Math.min(d,Math.max(t,i))))return null}let f=Math.hypot(s,l),p=(0,T.Bn)(Math.ceil(f*(d-h)/4),1,512),m=0,g=!iu(u,0);for(let t=0;t<=p;t++){let i=h+(d-h)*t/p;if(g){if(iu(u,i)){let{lo:t,hi:r}=is(u,iu,m,i,.001/f),n=ic(u,t),h=ic(u,r),d=a[2]+t*c-n.elevation,p=a[2]+r*c-h.elevation,g=n.covered&&d>p?(0,T.Bn)(t+d*(r-t)/(d-p),t,r):r;return new T.nt((a[0]+g*s)/o,(a[1]+g*l)/o,ic(u,g).elevation)}}else g=!iu(u,i);m=i}return null}getRaySegmentFromPixel(t){let i=[t.x,t.y,0,1],r=[t.x,t.y,1,1];(0,T.Yr)(i,i,this._pixelMatrixInverse),(0,T.Yr)(r,r,this._pixelMatrixInverse);let a=i[3],n=r[3],o=this.elevation;return{near:[i[0]/a,i[1]/a,i[2]/a+o],far:[r[0]/n,r[1]/n,r[2]/n+o]}}screenPointToMercatorCoordinateAtZ(t,i){let r=i||0,{near:a,far:n}=this.getRaySegmentFromPixel(t),o=a[2]===n[2]?0:(r+this.elevation-a[2])/(n[2]-a[2]);return new T.nt(T.un.number(a[0],n[0],o)/this.worldSize,T.un.number(a[1],n[1],o)/this.worldSize,r)}coordinatePoint(t,i=0,r=this._pixelMatrix){let a=[t.x*this.worldSize,t.y*this.worldSize,i,1];(0,T.Yr)(a,a,r);let n=a[3];return n>0?new T.Li(a[0]/n,a[1]/n):this._offScreenPointBehindCamera(a[0],a[1],n)}_offScreenPointBehindCamera(t,i,r){let a=this.width/2,n=this.height/2,o=t-a*r,s=i-n*r;0===o&&0===s&&(s=1);let l=a+this.width,c=n+this.height,u=Math.min(0===o?1/0:l/Math.abs(o),0===s?1/0:c/Math.abs(s));return new T.Li(a+o*u,n+s*u)}getBounds(){let t=Math.max(0,this._helper._height/2-(0,T.Z)(this));return new eE().extend(this.screenPointToLocation(new T.Li(0,t))).extend(this.screenPointToLocation(new T.Li(this._helper._width,t))).extend(this.screenPointToLocation(new T.Li(this._helper._width,this._helper._height))).extend(this.screenPointToLocation(new T.Li(0,this._helper._height)))}
1176isPointOnMapSurface(t,i){return i?null!=this.screenTerrainPointToMercatorCoordinate(t,i):t.y>this.height/2-(0,T.Z)(this)}calculatePosMatrix(t,i=!1,r=!1){let a=t.key??(0,T.p)(t.wrap,t.canonical.z,t.canonical.z,t.canonical.x,t.canonical.y),n=i?this._alignedPosMatrixCache:this._posMatrixCache;if(n.has(a)){let t=n.get(a);return r?t.f32:t.f64}let o=(0,T.q)(t,this.worldSize);(0,T.wi)(o,i?this._alignedProjMatrix:this._viewProjMatrix,o);let s={f64:o,f32:new Float32Array(o)};return n.set(a,s),r?s.f32:s.f64}calculateFogMatrix(t){let i=t.key,r=this._fogMatrixCacheF32;if(r.has(i))return r.get(i);let a=(0,T.q)(t,this.worldSize);return(0,T.wi)(a,this._fogMatrix,a),r.set(i,new Float32Array(a)),r.get(i)}calculateCenterFromCameraLngLatAlt(t,i,r,a){return this._helper.calculateCenterFromCameraLngLatAlt(t,i,r,a)}calculateCameraOptionsFromTo(t,i,r,a){let n=T.nt.fromLngLat(t,i),o=T.nt.fromLngLat(r,a),s=o.x-n.x,l=o.y-n.y,c=o.z-n.z,u=Math.hypot(s,l,c);if(0===u)throw Error("Can't calculate camera options with same From and To");let h=Math.hypot(s,l),d=(0,T.Dr)(this.cameraToCenterDistance/u/this.tileSize),f=(0,T.xr)(Math.atan2(s,-l)),p=(0,T.xr)(Math.acos(h/u));return p=c<0?90-p:90+p,{center:o.toLngLat(),elevation:a,zoom:d,pitch:p,bearing:f}}_calculateNearFarZIfNeeded(t,i,r){if(!this._helper.autoCalculateNearFarZ)return;let a=Math.min(this.elevation,this.minElevationForCurrentTile,this.getCameraAltitude()-100),n=t-a*this._helper._pixelPerMeter/Math.cos(i),o=a<0?n:t,s=Math.PI/2+this.pitchInRadians,l=(0,T.Yn)(this.fov)*(Math.abs(Math.cos((0,T.Yn)(this.roll)))*this.height+Math.abs(Math.sin((0,T.Yn)(this.roll)))*this.width)/this.height*(.5+r.y/this.height),c=Math.sin(l)*o/Math.sin((0,T.Bn)(Math.PI-s-l,.01,Math.PI-.01)),u=(0,T.Z)(this),h=Math.atan(u/this._helper.cameraToCenterDistance),d=(0,T.Yn)(.75),f=h>d?2*h*(.5+r.y/(2*u)):d,p=Math.min(c,Math.sin(f)*o/Math.sin((0,T.Bn)(Math.PI-s-f,.01,Math.PI-.01)));this._helper._farZ=(Math.cos(Math.PI/2-i)*p+o)*1.01,this._helper._nearZ=this._helper._height/50}_calcMatrices(){var t,i;let r,a=this.centerOffset,n=(0,T.$)(this.worldSize,this.center),o=n.x,s=n.y,l=(0,T.Yn)(Math.min(this.pitch,89.25)),c=Math.max(this._helper.cameraToCenterDistance/2,this._helper.cameraToCenterDistance+this._helper._elevation*this._helper._pixelPerMeter/Math.cos(l));this._calculateNearFarZIfNeeded(c,l,a),r=new Float64Array(16),(0,T.Ei)(r,this.fovInRadians,this._helper._width/this._helper._height,this._helper._nearZ,this._helper._farZ),this._invProjMatrix=new Float64Array(16),t=this._invProjMatrix,i=r,t[0]=1/i[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1/i[5],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=0,t[11]=1/i[14],t[12]=0,t[13]=0,t[14]=-1,t[15]=i[10]/i[14],r[8]=-(2*a.x)/this._helper._width,r[9]=2*a.y/this._helper._height,this._projectionMatrix=(0,T.gi)(r),(0,T.Ai)(r,r,[1,-1,1]),(0,T.ji)(r,r,[0,0,-this._helper.cameraToCenterDistance]),(0,T.ki)(r,r,-this.rollInRadians),(0,T.Di)(r,r,this.pitchInRadians),(0,T.ki)(r,r,-this.bearingInRadians),(0,T.ji)(r,r,[-o,-s,0]),this._mercatorMatrix=(0,T.Ai)([],r,[this.worldSize,this.worldSize,this.worldSize]),(0,T.Ai)(r,r,[1,1,this._helper._pixelPerMeter]),this._pixelMatrix=(0,T.wi)(new Float64Array(16),this.clipSpaceToPixelsMatrix,r),(0,T.ji)(r,r,[0,0,-this.elevation]),this._viewProjMatrix=r,this._invViewProjMatrix=(0,T.Ci)([],r);let u=[0,0,-1,1];(0,T.Yr)(u,u,this._invViewProjMatrix),this._cameraPosition=[u[0]/u[3],u[1]/u[3],u[2]/u[3]],this._fogMatrix=new Float64Array(16),(0,T.Ei)(this._fogMatrix,this.fovInRadians,this.width/this.height,c,this._helper._farZ),this._fogMatrix[8]=-(2*a.x)/this.width,this._fogMatrix[9]=2*a.y/this.height,(0,T.Ai)(this._fogMatrix,this._fogMatrix,[1,-1,1]),(0,T.ji)(this._fogMatrix,this._fogMatrix,[0,0,-this.cameraToCenterDistance]),(0,T.ki)(this._fogMatrix,this._fogMatrix,-this.rollInRadians),(0,T.Di)(this._fogMatrix,this._fogMatrix,this.pitchInRadians),(0,T.ki)(this._fogMatrix,this._fogMatrix,-this.bearingInRadians),(0,T.ji)(this._fogMatrix,this._fogMatrix,[-o,-s,0]),(0,T.Ai)(this._fogMatrix,this._fogMatrix,[1,1,this._helper._pixelPerMeter]),(0,T.ji)(this._fogMatrix,this._fogMatrix,[0,0,-this.elevation]),this._pixelMatrix3D=(0,T.wi)(new Float64Array(16),this.clipSpaceToPixelsMatrix,r);let h=this._helper._width%2/2,d=this._helper._height%2/2,f=Math.cos(this.bearingInRadians),p=Math.sin(-this.bearingInRadians),m=o-Math.round(o)+f*h+p*d,g=s-Math.round(s)+f*d+p*h,y=new Float64Array(r);if((0,T.ji)(y,y,[m>.5?m-1:m,g>.5?g-1:g,0]),this._alignedProjMatrix=y,!(r=(0,T.Ci)(new Float64Array(16),this._pixelMatrix)))throw Error("failed to invert matrix");this._pixelMatrixInverse=r,this._clearMatrixCaches()}_clearMatrixCaches(){this._posMatrixCache.clear(),this._alignedPosMatrixCache.clear(),this._fogMatrixCacheF32.clear()}maxPitchScaleFactor(){if(!this._pixelMatrixInverse)return 1;let t=this.screenPointToMercatorCoordinate(new T.Li(0,0)),i=[t.x*this.worldSize,t.y*this.worldSize,0,1];return(0,T.Yr)(i,i,this._pixelMatrix)[3]/this._helper.cameraToCenterDistance}getCameraPoint(){return this._helper.getCameraPoint()}getCameraAltitude(){return Math.cos(this.pitchInRadians)*this.cameraToCenterDistance/this.pixelsPerMeter+this.elevation}getCameraLngLat(){let t=(0,T.ct)(1,this.center.lat)*this.worldSize,i=this._helper.cameraToCenterDistance/t;return(0,T.X)(this.center,this.elevation,this.pitch,this.bearing,i).toLngLat()}lngLatToCameraDepth(t,i){let r=T.nt.fromLngLat(t),a=[r.x*this.worldSize,r.y*this.worldSize,i,1];return(0,T.Yr)(a,a,this._viewProjMatrix),a[2]/a[3]}getProjectionData(t){let{overscaledTileID:i,aligned:r,applyTerrainMatrix:a}=t,n=this._helper.getMercatorTileCoordinates(i),o=i?this.calculatePosMatrix(i,r,!0):null,s;return{mainMatrix:s=i?.terrainRttPosMatrix32f&&a?i.terrainRttPosMatrix32f:o||(0,T.Hn)(),tileMercatorCoords:n,clippingPlane:[0,0,0,0],projectionTransition:0,fallbackMatrix:s,clipAntimeridian:!1}}isLocationOccluded(t){return!1}getPixelScale(){return 1}getCircleRadiusCorrection(){return 1}getPitchedTextCorrection(t,i,r){return 1}transformLightDirection(t){return(0,T.Zr)(t)}getRayDirectionFromPixel(t){throw Error("Not implemented.")}projectTileCoordinates(t,i,r,a){let n=this.calculatePosMatrix(r),o;null==a?tT(o=[t,i,0,1],o,n):(o=[t,i,a,1],(0,T.Yr)(o,o,n));let s=o[3];
1176return{point:new T.Li(o[0]/s,o[1]/s),signedDistanceFromCamera:s,isOccluded:!1}}populateCache(t){for(let i of t)this.calculatePosMatrix(i)}getProjectionDataForCustomLayer(t=!0){let i=new T.d(0,0,0,0,0),r=this.getProjectionData({overscaledTileID:i,applyGlobeMatrix:t}),a=(0,T.q)(i,this.worldSize);(0,T.wi)(a,this._viewProjMatrix,a);let n=[8192,8192,this.worldSize/this._helper.pixelsPerMeter],o=(0,T.Wn)();return(0,T.Ai)(o,a,n),{...r,tileMercatorCoords:[0,0,1,1],fallbackMatrix:o,mainMatrix:o}}getFastPathSimpleProjectionMatrix(t){return this.calculatePosMatrix(t)}};function ic(t,i){return ia(t.index,t.exaggeration,(t.near[0]+i*t.dx)/t.worldSize,(t.near[1]+i*t.dy)/t.worldSize)}function iu(t,i){return io(ic(t,i),t.near[2]+i*t.dz)}function ih(){(0,T.Nr)("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}function id(t){if(t.useSlerp)if(t.k<1){let i=(0,T.Er)(t.startEulerAngles.roll,t.startEulerAngles.pitch,t.startEulerAngles.bearing),r=(0,T.Er)(t.endEulerAngles.roll,t.endEulerAngles.pitch,t.endEulerAngles.bearing),a=new Float64Array(4);(0,T.Kr)(a,i,r,t.k);let n=(0,T.sr)(a);t.tr.setRoll(n.roll),t.tr.setPitch(n.pitch),t.tr.setBearing(n.bearing)}else t.tr.setRoll(t.endEulerAngles.roll),t.tr.setPitch(t.endEulerAngles.pitch),t.tr.setBearing(t.endEulerAngles.bearing);else t.tr.setRoll(T.un.number(t.startEulerAngles.roll,t.endEulerAngles.roll,t.k)),t.tr.setPitch(T.un.number(t.startEulerAngles.pitch,t.endEulerAngles.pitch,t.k)),t.tr.setBearing(T.un.number(t.startEulerAngles.bearing,t.endEulerAngles.bearing,t.k))}function ip(t,i,r,a,n){let o=n.padding,s=(0,T.$)(n.worldSize,r.getNorthWest()),l=(0,T.$)(n.worldSize,r.getNorthEast()),c=(0,T.$)(n.worldSize,r.getSouthEast()),u=(0,T.$)(n.worldSize,r.getSouthWest
1176()),h=(0,T.Yn)(-a),d=s.rotate(h),f=l.rotate(h),p=c.rotate(h),m=u.rotate(h),g=new T.Li(Math.max(d.x,f.x,m.x,p.x),Math.max(d.y,f.y,m.y,p.y)),y=new T.Li(Math.min(d.x,f.x,m.x,p.x),Math.min(d.y,f.y,m.y,p.y)),_=g.sub(y),v=n.width-(o.left+o.right+i.left+i.right),b=n.height-(o.top+o.bottom+i.top+i.bottom),x=v/_.x,w=b/_.y;if(w<0||x<0)return void ih();let k=Math.min((0,T.Dr)(n.scale*Math.min(x,w)),t.maxZoom),S=T.Li.convert(t.offset),A=(i.left-i.right)/2,C=(i.top-i.bottom)/2,E=new T.Li(A,C).rotate((0,T.Yn)(a)),M=S.add(E).mult(n.scale/(0,T.Fr)(k));return{center:(0,T.tt)(n.worldSize,s.add(c).div(2).sub(M)),zoom:k,bearing:a}}var im=class{get useGlobeControls(){return!1}handlePanInertia(t,i){let r=t.mag(),a=Math.abs((0,T.Z)(i));return{easingOffset:t.mult(Math.min(.75*a/r,1)),easingCenter:i.center}}handleMapControlsRollPitchBearingZoom(t,i){t.bearingDelta&&i.setBearing(i.bearing+t.bearingDelta),t.pitchDelta&&i.setPitch(i.pitch+t.pitchDelta),t.rollDelta&&i.setRoll(i.roll+t.rollDelta),t.zoomDelta&&i.setZoom(i.zoom+t.zoomDelta)}handleMapControlsPan(t,i,r){.01>t.around.distSqr(i.centerPoint)||i.setLocationAtPoint(r,t.around,t.aroundElevation)}cameraForBoxAndBearing(t,i,r,a,n){return ip(t,i,r,a,n)}handleJumpToCenterZoom(t,i){let r=void 0===i.zoom?t.zoom:+i.zoom;t.zoom!==r&&t.setZoom(+i.zoom),void 0!==i.center&&t.setCenter(T.lt.convert(i.center))}handleEaseTo(t,i){let r=t.zoom,a=t.padding,n={roll:t.roll,pitch:t.pitch,bearing:t.bearing},o={roll:void 0===i.roll?t.roll:i.roll,pitch:void 0===i.pitch?t.pitch:i.pitch,bearing:void 0===i.bearing?t.bearing:i.bearing},s=void 0!==i.zoom,l=!t.isPaddingEqual(i.padding),c=!1,u=s?+i.zoom:t.zoom,h=t.centerPoint.add(i.offsetAsPoint),d=t.screenPointToLocation(h),{center:f,zoom:p}=t.applyConstrain(T.lt.convert(i.center||d),u??r);t4(t,f);let m=(0,T.$)(t.worldSize,d),g=(0,T.$)(t.worldSize,f).sub(m),y=(0,T.Fr)(p-r);return{easeFunc:s=>{if(c&&t.setZoom(T.un.number(r,p,s)),(0,T.Tr)(n,o)||id({startEulerAngles:n,endEulerAngles:o,tr:t,k:s,useSlerp:n.roll!=o.roll}),l&&(t.interpolatePadding(a,i.padding,s),h=t.centerPoint.add(i.offsetAsPoint)),i.around)t.setLocationAtPoint(i.around,i.aroundPoint);else{let i=(0,T.Fr)(t.zoom-r),a=(p>r?Math.min(2,y):Math.max(.5,y))**(1-s),n=(0,T.tt)(t.worldSize,m.add(g.mult(s*a)).mult(i));t.setLocationAtPoint(t.renderWorldCopies?n.wrap():n,h)}},isZooming:c=p!==r,elevationCenter:f}}handleFlyTo(t,i){let r=void 0!==i.zoom,a=t.zoom,n=t.applyConstrain(T.lt.convert(i.center||i.locationAtOffset),r?+i.zoom:a),o=n.center,s=n.zoom;t4(t,o);let l=t.worldSize,c=(0,T.$)(l,i.locationAtOffset),u=(0,T.$)(l,o).sub(c),h=u.mag(),d=(0,T.Fr)(s-a),f=Math.min(Math.max(void 0===i.minZoom?t.minZoom:+i.minZoom,t.minZoom),a,s),p=t.applyConstrain(o,f).zoom;return{easeFunc:(i,r,n,h)=>{t.setZoom(1===i?s:a+(0,T.Dr)(r));let d=1===i?o:(0,T.tt)(l,c.add(u.mult(n)));t.setLocationAtPoint(t.renderWorldCopies?d.wrap():d,h)},scaleOfZoom:d,targetCenter:o,scaleOfMinZoom:(0,T.Fr)(p-a),pixelPathLength:h}}};let ig=new T.vt({fill:new T._t(128,2),line:new T._t(512,0),tile:new T._t(128,32),stencil:new T._t(128,1),circle:3});var iy=class{constructor(){this._tileMeshCache={}}get name(){return"vertical-perspective"}get transitionState(){return 1}get useSubdivision(){return!0}get shaderVariantName(){return"globe"}get shaderDefine(){return"#define GLOBE"}get shaderPreludeCode(){return tQ.projectionGlobe}get vertexShaderPreludeCode(){return tQ.projectionMercator.vertexSource}get subdivisionGranularity(){return ig}get useGlobeControls(){return!0}destroy(){}_getMeshKey(t){return`${t.granularity.toString(36)}_${t.generateBorders?"b":""}${t.extendToNorthPole?"n":""}${t.extendToSouthPole?"s":""}`}getMeshFromTileID(t,i,r,a,n){let o=("stencil"===n?ig.stencil:ig.tile).getGranularityForZoomLevel(i.z),s=0===i.y&&a,l=i.y===(1<<i.z)-1&&a;return this._getMesh(t,{granularity:o,generateBorders:r,extendToNorthPole:s,extendToSouthPole:l})}_getMesh(t,i){let r=this._getMeshKey(i);if(r in this._tileMeshCache)return this._tileMeshCache[r];let a=eV(t,i);return this._tileMeshCache[r]=a,a}recalculate(t){}hasTransition(){return!1}},i_=class extends T.vn{constructor(t,i){super(),this._transitionable=new T.$t(d||=new T.Qt({type:new T.Zt(T.hn.projection.type,"type")}),"projection",i),this.setProjection(t),this._transitioning=this._transitionable.untransitioned(),this.recalculate(new T.en(0)),this._mercatorProjection=new t3,this._verticalPerspectiveProjection=new iy}get transitionState(){let t=this.properties.get("type");if("string"==typeof t&&"mercator"===t)return 0;if("string"==typeof t&&"vertical-perspective"===t)return 1;if(t instanceof T.dn){if(t.from===t.to)return+("mercator"!==t.from);if("vertical-perspective"===t.from&&"mercator"===t.to)return 1-t.transition;if("mercator"===t.from&&"vertical-perspective"===t.to)return t.transition}return 1}get useGlobeRendering(){return this.transitionState>0}get currentProjection(){return this.useGlobeRendering?this._verticalPerspectiveProjection:this._mercatorProjection}get name(){return"globe"}get useSubdivision(){return this.currentProjection.useSubdivision}get shaderVariantName(){return this.currentProjection.shaderVariantName}get shaderDefine(){return this.currentProjection.shaderDefine}get shaderPreludeCode(){return this.currentProjection.shaderPreludeCode}get vertexShaderPreludeCode(){return this.currentProjection.vertexShaderPreludeCode}get subdivisionGranularity(){return this.currentProjection.subdivisionGranularity}get useGlobeControls(){return this.transitionState>0}destroy(){this._mercatorProjection.destroy(),this._verticalPerspectiveProjection.destroy()}getMeshFromTileID(t,i,r,a,n){return this.currentProjection.getMeshFromTileID(t,i,r,a,n)}setProjection(t){this._transitionable.setValue("type",t?.type||"mercator")}updateTransitions(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()||this.currentProjection.hasTransition()}recalculate(t){this.properties=this._transitioning.possiblyEvaluate(t)}};function iv(t){return 2*Math.PI*iw(t.worldSize,t.center.lat)}function ib(t,i,r,a,n){let o=1/(1<<n),s=(0,T.gr)((t/8192*o+r*o)*Math.PI*2+Math.PI,2*Math.PI),l=2*Math.atan(Math.exp(Math.PI-(i/8192*o+a*o)*Math.PI*2))-.5*Math.PI,c=Math.cos(l),u=new Float64Array(3);return u[0]=Math.sin(s)*c,u[1]=Math.sin(l),u[2]=Math.cos(s)*c,u}function ix(t){var i,r;let a,n;return i=t.lng*Math.PI/180,a=Math.cos(r=t.lat*Math.PI/180),(n=new Float64Array(3))[0]=Math.sin(i)*a,n[1]=Math.sin(r),n[2]=Math.cos(i)*a,n}function iw(t,i){return t/(2*Math.PI)/Math.cos(i*Math.PI/180)}function ik(t){let i=(0,T.Yr)((0,T.Kn)(),[0,0,0,1],t.modelViewProjectionMatrix);return(0,T.Yr)(i,i,t.inverseProjectionMatrix),[i[0]/i[3],i[1]/i[3],i[2]/i[3]]}function iT(t){let i=Math.asin(t[1])/Math.PI*180,r=Math.sqrt(t[0]*t[0]+t[2]*t[2]);if(r>1e-6){let a=t[0]/r,n=Math.acos(t[2]/r),o=(a>0?n:-n)/Math.PI*180;return new T.lt((0,T.Pr)(o,-180,180),i)}return new T.lt(0,i)}let iS=.98*Math.PI;function iA(t,i){let r=t.cameraPosition,a=(0,T.ni)(r);if(a<=1)return t.screenPointToLocation(i);let n=(0,T.Gn)();(0,T.ii)(n,r);let o=t.getRayDirectionFromPixel(i),s=-(0,T.ei)(o,n),l=(0,T.Gn)();(0,T.li)(l,o,n,s);let c=(0,T.ni)(l);if(c<1e-9)return t.screenPointToLocation(i);let u=Math.atan2(c,s),h=.9*Math.asin(1/a);if(u<h)return t.screenPointToLocation(i);let d=a*Math.sin(h),f=Math.asin((0,T.Bn)(d,-1,1))-h,p=a*Math.cos(h)/Math.sqrt(Math.max(1-d*d,1e-12))-1,m=iS-f,g=u-h,y=f+p*g*m/(m+p*g),_=(0,T.Gn)();(0,T.ci)(_,l,1/c);let v=(0,T.Gn)();return(0,T.ci)(v,n,Math.cos((0,T.Bn)(y,0,iS))),(0,T.li)(v,v,_,Math.sin((0,T.Bn)(y,0,iS))),(0,T.ii)(v,v),iT(v)}function iC(t){return Math.cos(t*Math.PI/180)}function iE(t,i){let r=iC(t),a=iC(i);return(0,T.Dr)(a/r)}function iM(t){let i=.5*t,r=Math.sin(i),a=Math.cos(i);return Math.log(r+a)-Math.log(a-r)}function iP(t,i,r,a){let n=t.lat+r*a;if(Math.abs(r)>1){let o=(Math.sign(t.lat+r)===Math.sign(t.lat)?Math.abs(t.lat):-Math.abs(t.lat))*Math.PI/180,s=Math.abs(t.lat+r)*Math.PI/180,l=iM(o+a*(s-o)),c=iM(o),u=iM(s),h=t.lng+(l-c)/(u-c)*i;return new T.lt(h,n)}{let r=t.lng+i*a;return new T.lt(r,n)}}function iD(t,i,r=1){let a=(0,T.ei)(t,i),n=r*r,o=(0,T.Gn)(),s=(0,T.Gn)();(0,T.ci)(s,i,a),(0,T.ui)(o,t,s);let l=n-(0,T.ei)(o,o);if(l<0)return null;
1176let c=(0,T.ei)(t,t)-n,u=-a+(a<0?1:-1)*Math.sqrt(l),h=c/u;return{tMin:Math.min(h,u),tMax:Math.max(h,u)}}var iI=class{constructor(t){this._cachePrevious=new Map,this._cache=new Map,this._hadAnyChanges=!1,this._boundingVolumeFactory=t}swapBuffers(){if(!this._hadAnyChanges)return;let t=this._cachePrevious;this._cachePrevious=this._cache,this._cache=t,this._cache.clear(),this._hadAnyChanges=!1}getTileBoundingVolume(t,i,r,a){let n=`${t.z}_${t.x}_${t.y}_${a?.terrain?"t":""}_${Math.round(r)}`,o=this._cache.get(n);if(o)return o;let s=this._cachePrevious.get(n);if(s)return this._cache.set(n,s),s;let l=this._boundingVolumeFactory(t,i,r,a);return this._cache.set(n,l),this._hadAnyChanges=!0,l}},iz=class t{constructor(t,i,r,a){this.min=r,this.max=a,this.points=t,this.planes=i}static fromAabb(i,r){let a=[];for(let t=0;t<8;t++)a.push([(1&t)==1?r[0]:i[0],(t>>1&1)==1?r[1]:i[1],(t>>2&1)==1?r[2]:i[2]]);return new t(a,[[-1,0,0,r[0]],[1,0,0,-i[0]],[0,-1,0,r[1]],[0,1,0,-i[1]],[0,0,-1,r[2]],[0,0,1,-i[2]]],i,r)}static fromCenterSizeAngles(i,r,a){let n=(0,T.Ur)([],a[0],a[1],a[2]),o=(0,T.mi)([],[r[0],0,0],n),s=(0,T.mi)([],[0,r[1],0],n),l=(0,T.mi)([],[0,0,r[2]],n),c=[...i],u=[...i];for(let t=0;t<8;t++)for(let r=0;r<3;r++){let a=i[r]+o[r]*((1&t)==1?1:-1)+s[r]*((t>>1&1)==1?1:-1)+l[r]*((t>>2&1)==1?1:-1);c[r]=Math.min(c[r],a),u[r]=Math.max(u[r],a)}let h=[];for(let t=0;t<8;t++){let r=[...i];(0,T.Xr)(r,r,(0,T.ci)([],o,(1&t)==1?1:-1)),(0,T.Xr)(r,r,(0,T.ci)([],s,(t>>1&1)==1?1:-1)),(0,T.Xr)(r,r,(0,T.ci)([],l,(t>>2&1)==1?1:-1)),h.push(r)}return new t(h,[[...o,-(0,T.ei)(o,h[0])],[...s,-(0,T.ei)(s,h[0])],[...l,-(0,T.ei)(l,h[0])],[-o[0],-o[1],-o[2],-(0,T.ei)(o,h[7])],[-s[0],-s[1],-s[2],-(0,T.ei)(s,h[7])],[-l[0],-l[1],-l[2],-(0,T.ei)(l,h[7])]],c,u)}intersectsFrustum(t){let i=!0,r=this.points.length,a=this.planes.length,n=t.planes.length,o=t.points.length;for(let a=0;a<n;a++){let n=t.planes[a],o=0;for(let t=0;t<r;t++){let i=this.points[t];n[0]*i[0]+n[1]*i[1]+n[2]*i[2]+n[3]>=0&&o++}if(0===o)return 0;o<r&&(i=!1)}if(i)return 2;for(let i=0;i<a;i++){let r=this.planes[i],a=0;for(let i=0;i<o;i++){let n=t.points[i];r[0]*n[0]+r[1]*n[1]+r[2]*n[2]+r[3]>=0&&a++}if(0===a)return 0}return 1}intersectsPlane(t){let i=this.points.length,r=0;for(let a=0;a<i;a++){let i=this.points[a];t[0]*i[0]+t[1]*i[1]+t[2]*i[2]+t[3]>=0&&r++}return r===i?2:+(0!==r)}};function iL(t,i,r){let a=t-i;return a<0?-a:Math.max(0,a-r)}function iF(t,i,r,a,n){let o=t-r;return Math.max(o<0?Math.min(-o,1+o-n):o>n?Math.min(Math.max(o-n,0),1-o):0,iL(i,a,n))}var iR=class{constructor(){this._boundingVolumeCache=new iI(this._computeTileBoundingVolume)}prepareNextFrame(){this._boundingVolumeCache.swapBuffers()}distanceToTile2d(t,i,r,a){let n=1<<r.z,o=1/n,s=r.x/n,l=r.y/n;return Math.min(Math.min(Math.min(2,iF(t,i,s,l,o)),iF(t,i,s+.5,-l-o,o)),iF(t,i,s+.5,2-l-o,o))}getWrap(t,i,r){let a=1<<i.z,n=1/a,o=i.x/a,s=iL(t.x,o,n),l=iL(t.x,o-1,n),c=iL(t.x,o+1,n),u=Math.min(s,l,c);return u===c?1:u===l?-1:0}allowVariableZoom(t,i){return e6(t,i)>4}allowWorldCopies(){return!1}getTileBoundingVolume(t,i,r,a){return this._boundingVolumeCache.getTileBoundingVolume(t,i,r,a)}_computeTileBoundingVolume(t,i,r,a){let n=Math.min(0,r),o=Math.max(0,r);if(a?.terrain){let r=new T.d(t.z,i,t.z,t.x,t.y),s=a.terrain.getMinMaxElevation(r);n=s.minElevation??n,o=Math.max(s.maxElevation??o,o)}if(n/=T.ut,o/=T.ut,n+=1,o+=1,t.z<=0)return iz.fromAabb([-o,-o,-o],[o,o,o]);if(1===t.z)return iz.fromAabb([0===t.x?-o:0,0===t.y?0:-o,-o],[0===t.x?0:o,0===t.y?o:0,o]);{let i=[ib(0,0,t.x,t.y,t.z),ib(8192,0,t.x,t.y,t.z),ib(8192,8192,t.x,t.y,t.z),ib(0,8192,t.x,t.y,t.z)],r=[];for(let t of i)r.push((0,T.ci)([],t,o));if(o!==n)for(let t of i)r.push((0,T.ci)([],t,n));0===t.y&&r.push([0,1,0]),t.y===(1<<t.z)-1&&r.push([0,-1,0]);let a=[1,1,1],s=[-1,-1,-1];for(let t of r)for(let i=0;i<3;i++)a[i]=Math.min(a[i],t[i]),s[i]=Math.max(s[i],t[i]);let l=ib(4096,4096,t.x,t.y,t.z),c=(0,T.Qr)([],[0,1,0],l);(0,T.ii)(c,c);let u=(0,T.Qr)([],l,c);(0,T.ii)(u,u);let h=(0,T.Qr)([],i[2],i[1]);(0,T.ii)(h,h);let d=(0,T.Qr)([],i[0],i[3]);(0,T.ii)(d,d),r.push((0,T.ci)([],l,o)),t.y>=(1<<t.z)/2&&r.push((0,T.ci)([],ib(4096,0,t.x,t.y,t.z),o)),t.y<(1<<t.z)/2&&r.push((0,T.ci)([],ib(4096,8192,t.x,t.y,t.z),o));let f=iO(l,r),p=iO(u,r),m=[-l[0],-l[1],-l[2],f.max],g=[l[0],l[1],l[2],-f.min],y=[-u[0],-u[1],-u[2],p.max],_=[u[0],u[1],u[2],-p.min],v=[...h,0],b=[...d,0],x=[];return 0===t.y?x.push((0,T.Ar)(b,v,m),(0,T.Ar)(b,v,g)):x.push((0,T.Ar)(y,v,m),(0,T.Ar)(y,v,g),(0,T.Ar)(y,b,m),(0,T.Ar)(y,b,g)),t.y===(1<<t.z)-1?x.push((0,T.Ar)(b,v,m),(0,T.Ar)(b,v,g)):x.push((0,T.Ar)(_,v,m),(0,T.Ar)(_,v,g),(0,T.Ar)(_,b,m),(0,T.Ar)(_,b,g)),new iz(x,[m,g,y,_,v,b],a,s)}}};function iO(t,i){let r=1/0,a=-1/0;for(let n of i){let i=(0,T.ei)(t,n);r=Math.min(r,i),a=Math.max(a,i)}return{min:r,max:a}}
1176var iB=class t{get pixelsToClipSpaceMatrix(){return this._helper.pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._helper.clipSpaceToPixelsMatrix}get pixelsToGLUnits(){return this._helper.pixelsToGLUnits}get centerOffset(){return this._helper.centerOffset}get size(){return this._helper.size}get rotationMatrix(){return this._helper.rotationMatrix}get centerPoint(){return this._helper.centerPoint}get pixelsPerMeter(){return this._helper.pixelsPerMeter}setMinZoom(t){this._helper.setMinZoom(t)}setMaxZoom(t){this._helper.setMaxZoom(t)}setMinPitch(t){this._helper.setMinPitch(t)}setMaxPitch(t){this._helper.setMaxPitch(t)}setRenderWorldCopies(t){this._helper.setRenderWorldCopies(t)}setBearing(t){this._helper.setBearing(t)}setPitch(t){this._helper.setPitch(t)}setRoll(t){this._helper.setRoll(t)}setFov(t){this._helper.setFov(t)}setZoom(t){this._helper.setZoom(t)}setCenter(t){this._helper.setCenter(t)}setElevation(t){this._helper.setElevation(t)}setMinElevationForCurrentTile(t){this._helper.setMinElevationForCurrentTile(t)}setPadding(t){this._helper.setPadding(t)}interpolatePadding(t,i,r){this._helper.interpolatePadding(t,i,r)}isPaddingEqual(t){return this._helper.isPaddingEqual(t)}resize(t,i){this._helper.resize(t,i)}getMaxBounds(){return this._helper.getMaxBounds()}setMaxBounds(t){this._helper.setMaxBounds(t)}setConstrainOverride(t){this._helper.setConstrainOverride(t)}overrideNearFarZ(t,i){this._helper.overrideNearFarZ(t,i)}clearNearFarZOverride(){this._helper.clearNearFarZOverride()}getCameraQueryGeometry(t){return this._helper.getCameraQueryGeometry(this.getCameraPoint(),t)}get tileSize(){return this._helper.tileSize}get tileZoom(){return this._helper.tileZoom}get scale(){return this._helper.scale}get worldSize(){return this._helper.worldSize}get width(){return this._helper.width}get height(){return this._helper.height}get lngRange(){return this._helper.lngRange}get latRange(){return this._helper.latRange}get minZoom(){return this._helper.minZoom}get maxZoom(){return this._helper.maxZoom}get zoom(){return this._helper.zoom}get center(){return this._helper.center}get minPitch(){return this._helper.minPitch}get maxPitch(){return this._helper.maxPitch}get pitch(){return this._helper.pitch}get pitchInRadians(){return this._helper.pitchInRadians}get roll(){return this._helper.roll}get rollInRadians(){return this._helper.rollInRadians}get bearing(){return this._helper.bearing}get bearingInRadians(){return this._helper.bearingInRadians}get fov(){return this._helper.fov}get fovInRadians(){return this._helper.fovInRadians}get elevation(){return this._helper.elevation}get minElevationForCurrentTile(){return this._helper.minElevationForCurrentTile}get padding(){return this._helper.padding}get unmodified(){return this._helper.unmodified}get renderWorldCopies(){return this._helper.renderWorldCopies}get constrainOverride(){return this._helper.constrainOverride}get nearZ(){return this._helper.nearZ}get farZ(){return this._helper.farZ}get autoCalculateNearFarZ(){return this._helper.autoCalculateNearFarZ}setTransitionState(t){}constructor(t){this._cachedClippingPlane=(0,T.Kn)(),this._projectionMatrix=(0,T.Un)(),this._globeViewProjMatrix32f=(0,T.Hn)(),this._globeViewProjMatrixF64=(0,T.Un)(),this._globeViewProjMatrixF64Inverted=(0,T.Un)(),this._globeProjMatrixInverted=(0,T.Un)(),this._cameraPosition=(0,T.Gn)(),this.defaultConstrain=(t,i)=>{let r=(0,T.Bn)(t.lat,-T.Fn,T.Fn),a=(0,T.Bn)(+i,this.minZoom+iE(0,r),this.maxZoom);return{center:new T.lt(t.lng,r),zoom:a}},this.applyConstrain=(t,i)=>this._helper.applyConstrain(t,i),this._helper=new t8({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(t,i)=>this.defaultConstrain(t,i)},t),this._coveringTilesDetailsProvider=new iR}clone(){let i=new t;return i.apply(this,!1),i}apply(t,i){this._helper.apply(t,i)}get projectionMatrix(){return this._projectionMatrix}get modelViewProjectionMatrix(){return this._globeViewProjMatrixF64}get inverseProjectionMatrix(){return this._globeProjMatrixInverted}get cameraPosition(){let t=(0,T.Gn)();return t[0]=this._cameraPosition[0],t[1]=this._cameraPosition[1],t[2]=this._cameraPosition[2],t}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}getProjectionData(t){let{overscaledTileID:i,applyGlobeMatrix:r}=t,a=this._helper.getMercatorTileCoordinates(i);return{mainMatrix:this._globeViewProjMatrix32f,tileMercatorCoords:a,clippingPlane:this._cachedClippingPlane,projectionTransition:+!!r,fallbackMatrix:this._globeViewProjMatrix32f,clipAntimeridian:i?.canonical.z===0}}_computeClippingPlane(t){let i=this.pitchInRadians,r=this.cameraToCenterDistance/t,a=Math.sin(i)*r,n=Math.cos(i)*r+1,o=1/Math.sqrt(a*a+n*n)*1,s=-a,l=n,c=Math.sqrt(s*s+l*l),u=[0,s/=c,l/=c];(0,T.si)(u,u,[0,0,0],-this.bearingInRadians),(0,T.ai)(u,u,[0,0,0],-1*this.center.lat*Math.PI/180),(0,T.oi)(u,u,[0,0,0],this.center.lng*Math.PI/180);let h=1/(0,T.ni)(u);return(0,T.ci)(u,u,h),[...u,-o*h]}isLocationOccluded(t){return!this.isSurfacePointVisible(ix(t))}transformLightDirection(t){let i=this._helper._center.lng*Math.PI/180,r=this._helper._center.lat*Math.PI/180,a=Math.cos(r),n=[Math.sin(i)*a,Math.sin(r),Math.cos(i)*a],o=[n[2],0,-n[0]],s=[0,0,0];
1176(0,T.Qr)(s,o,n),(0,T.ii)(o,o),(0,T.ii)(s,s);let l=[o[0]*t[0]+s[0]*t[1]+n[0]*t[2],o[1]*t[0]+s[1]*t[1]+n[1]*t[2],o[2]*t[0]+s[2]*t[1]+n[2]*t[2]],c=[0,0,0];return(0,T.ii)(c,l),c}getPixelScale(){return 1/Math.cos(this._helper._center.lat*Math.PI/180)}getCircleRadiusCorrection(){return Math.cos(this._helper._center.lat*Math.PI/180)}getPitchedTextCorrection(t,i,r){var a,n;let o=(0,T.et)(t,i,r.canonical),s=(a=o.x,n=o.y,[(0,T.gr)(a*Math.PI*2+Math.PI,2*Math.PI),2*Math.atan(Math.exp(Math.PI-n*Math.PI*2))-.5*Math.PI]);return this.getCircleRadiusCorrection()/Math.cos(s[1])}projectTileCoordinates(t,i,r,a){let n,o=r.canonical,s=ib(t,i,o.x,o.y,o.z),l=1+(a??0)/T.ut,c=s[0]*l,u=s[1]*l,h=s[2]*l,d=[c,u,h,1];if((0,T.Yr)(d,d,this._globeViewProjMatrixF64),l<=1){let t=this._cachedClippingPlane;n=t[0]*s[0]+t[1]*s[1]+t[2]*s[2]+t[3]<0}else n=this._isLineOfSightBlocked(c,u,h);return{point:new T.Li(d[0]/d[3],d[1]/d[3]),signedDistanceFromCamera:d[3],isOccluded:n}}_isLineOfSightBlocked(t,i,r){let a=this._cameraPosition,n=t-a[0],o=i-a[1],s=r-a[2],l=n*n+o*o+s*s;if(0===l)return!1;let c=(0,T.Bn)(-(a[0]*n+a[1]*o+a[2]*s)/l,0,1),u=a[0]+c*n,h=a[1]+c*o,d=a[2]+c*s;return u*u+h*h+d*d<1}_calcMatrices(){let t=iw(this.worldSize,this.center.lat),i=(0,T.Wn)();this._helper.autoCalculateNearFarZ&&(this._helper._nearZ=.5,this._helper._farZ=this.cameraToCenterDistance+2*t),(0,T.Ei)(i,this.fovInRadians,this.width/this.height,this._helper._nearZ,this._helper._farZ);let r=this.centerOffset;i[8]=-(2*r.x)/this._helper._width,i[9]=2*r.y/this._helper._height,this._projectionMatrix=(0,T.gi)(i),this._globeProjMatrixInverted=(0,T.Wn)(),(0,T.Ci)(this._globeProjMatrixInverted,i),(0,T.ji)(i,i,[0,0,-this.cameraToCenterDistance]),(0,T.ki)(i,i,this.rollInRadians),(0,T.Di)(i,i,-this.pitchInRadians),(0,T.ki)(i,i,this.bearingInRadians),(0,T.ji)(i,i,[0,0,-t]);let a=(0,T.Gn)();a[0]=t,a[1]=t,a[2]=t,(0,T.Di)(i,i,this.center.lat*Math.PI/180),(0,T.Oi)(i,i,-this.center.lng*Math.PI/180),(0,T.Ai)(i,i,a),this._globeViewProjMatrixF64=i,this._globeViewProjMatrix32f=new Float32Array(i),this._globeViewProjMatrixF64Inverted=(0,T.Wn)(),(0,T.Ci)(this._globeViewProjMatrixF64Inverted,i);let n=(0,T.Gn)();this._cameraPosition=(0,T.Gn)(),this._cameraPosition[2]=this.cameraToCenterDistance/t,(0,T.si)(this._cameraPosition,this._cameraPosition,n,-this.rollInRadians),(0,T.ai)(this._cameraPosition,this._cameraPosition,n,this.pitchInRadians),(0,T.si)(this._cameraPosition,this._cameraPosition,n,-this.bearingInRadians),(0,T.Xr)(this._cameraPosition,this._cameraPosition,[0,0,1]),(0,T.ai)(this._cameraPosition,this._cameraPosition,n,-this.center.lat*Math.PI/180),(0,T.oi)(this._cameraPosition,this._cameraPosition,n,this.center.lng*Math.PI/180),this._cachedClippingPlane=this._computeClippingPlane(t);let o=(0,T.gi)(this._globeViewProjMatrixF64Inverted);(0,T.Ai)(o,o,[1,1,-1]),this._cachedFrustum=e2.fromInvProjectionMatrix(o,1,0,this._cachedClippingPlane,!0)}calculateFogMatrix(t){(0,T.Nr)("calculateFogMatrix is not supported on globe projection.");let i=(0,T.Wn)();return(0,T.Si)(i),i}getVisibleUnwrappedCoordinates(t){return[new T.f(0,t)]}getCameraFrustum(){return this._cachedFrustum}getClippingPlane(){return this._cachedClippingPlane}getCoveringTilesDetailsProvider(){return this._coveringTilesDetailsProvider}recalculateZoomAndCenter(t){t?(0,T.Nr)("terrain is not fully supported on vertical perspective projection."):this._helper.recalculateZoomAndCenter(0)}maxPitchScaleFactor(){return 1}getCameraPoint(){return this._helper.getCameraPoint()}getCameraAltitude(){return((0,T.ni)(this._cameraPosition)-1)*T.ut}getCameraLngLat(){let t=(0,T.Gn)();return(0,T.ii)(t,this._cameraPosition),iT(t)}lngLatToCameraDepth(t,i){let r=ix(t);(0,T.ci)(r,r,1+i/T.ut);let a=(0,T.Kn)();return(0,T.Yr)(a,[r[0],r[1],r[2],1],this._globeViewProjMatrixF64),a[2]/a[3]}populateCache(t){}getBounds(){let t=.5*this.width,i=.5*this.height,r=[new T.Li(0,0),new T.Li(t,0),new T.Li(this.width,0),new T.Li(this.width,i),new T.Li(this.width,this.height),new T.Li(t,this.height),new T.Li(0,this.height),new T.Li(0,i)],a=[];for(let t of r)a.push(this.unprojectScreenPoint(t));let n=0,o=0,s=0,l=0,c=this.center;for(let t of a){let i=(0,T.Xn)(c.lng,t.lng),r=(0,T.Xn)(c.lat,t.lat);
1176i<o&&(o=i),i>n&&(n=i),r<l&&(l=r),r>s&&(s=r)}let u=[c.lng+o,c.lat+l,c.lng+n,c.lat+s];return this.isSurfacePointOnScreen([0,1,0])&&(u[3]=90,u[0]=-180,u[2]=180),this.isSurfacePointOnScreen([0,-1,0])&&(u[1]=-90,u[0]=-180,u[2]=180),new eE(u)}calculateCenterFromCameraLngLatAlt(t,i,r,a){return this._helper.calculateCenterFromCameraLngLatAlt(t,i,r,a)}calculateCameraOptionsFromTo(t,i,r,a){let n=T.lt.convert(r),o=ix(T.lt.convert(t));(0,T.ci)(o,o,1+i/T.ut);let s=ix(n),l=(0,T.ci)((0,T.Gn)(),s,1+a/T.ut),c=(0,T.di)((0,T.Gn)(),o,s),u=(0,T.ni)(c);if(u<1e-12||1e-12>(0,T.$r)(o,l))throw Error("Can't calculate camera options with same From and To");let h=(0,T.Gn)();(0,T.oi)(c,c,h,-(0,T.Yn)(n.lng)),(0,T.ai)(c,c,h,(0,T.Yn)(n.lat));let d=(0,T.xr)(Math.acos((0,T.Bn)(c[2]/u,-1,1))),f=Math.hypot(c[0],c[1])<1e-9*u?this.bearing:(0,T.xr)(Math.atan2(-c[0],-c[1]));return{center:n,elevation:a,zoom:(0,T.Dr)(this.cameraToCenterDistance/u/iw(this.tileSize,n.lat)),pitch:d,bearing:f}}setLocationAtPoint(t,i,r){let a=ix(this.unprojectScreenPoint(i)),n=ix(t),o=(0,T.Gn)();(0,T.hi)(o);let s=(0,T.Gn)();(0,T.oi)(s,a,o,-this.center.lng*Math.PI/180),(0,T.ai)(s,s,o,this.center.lat*Math.PI/180);let l=n[0]*n[0]+n[2]*n[2],c=s[0]*s[0];if(l<c)return;let u=Math.sqrt(l-c),h=(0,T.In)(n[0],n[2],s[0],u),d=(0,T.In)(n[0],n[2],s[0],-u),f=(0,T.Gn)();(0,T.oi)(f,n,o,-h);let p=(0,T.In)(f[1],f[2],s[1],s[2]),m=(0,T.Gn)();(0,T.oi)(m,n,o,-d);let g=(0,T.In)(m[1],m[2],s[1],s[2]),y=.5*Math.PI,_=p>=-y&&p<=y,v=g>=-y&&g<=y,b,x;if(_&&v){let t=this.center.lng*Math.PI/180,i=this.center.lat*Math.PI/180;(0,T.Zn)(h,t)+(0,T.Zn)(p,i)<(0,T.Zn)(d,t)+(0,T.Zn)(g,i)?(b=h,x=p):(b=d,x=g)}else if(_)b=h,x=p;else{if(!v)return;b=d,x=g}let w=b/Math.PI*180,k=x/Math.PI*180,S=this.center.lat;this.setCenter(new T.lt(w,(0,T.Bn)(k,-90,90))),this.setZoom(this.zoom+iE(S,this.center.lat))}locationToScreenPoint(t,i){let r=ix(t);if(i){let a=i.getElevationForLngLatZoom(t,this._helper._tileZoom);(0,T.ci)(r,r,1+a/T.ut)}return this._projectSurfacePointToScreen(r)}_projectSurfacePointToScreen(t){let i=(0,T.Kn)();return(0,T.Yr)(i,[...t,1],this._globeViewProjMatrixF64),i[0]/=i[3],i[1]/=i[3],new T.Li((.5*i[0]+.5)*this.width,(-(.5*i[1])+.5)*this.height)}screenPointToMercatorCoordinate(t,i){if(i){let r=this.screenTerrainPointToMercatorCoordinate(t,i);if(r)return r}return T.nt.fromLngLat(this.unprojectScreenPoint(t))}screenTerrainPointToMercatorCoordinate(t,i){let r=i.getCoverageIndex();if(!r)return null;let a=this.cameraPosition,n=this.getRayDirectionFromPixel(t),o=iD(a,n,1+r.maxElevation/T.ut);if(!o)return null;let s=iD(a,n,1+r.minElevation/T.ut),l=Math.max(o.tMin,0),c=s?s.tMin:o.tMax;if(c<=l)return null;let u={index:r,exaggeration:i.exaggeration,origin:a,direction:n},h=0;for(let t=0;t<=256;t++){let i=l+(c-l)*t/256;if(iN(u,i)){let{hi:t}=is(u,iN,h,i,1e-12),{sample:r,mercator:a}=ij(u,t);return new T.nt(a.x,a.y,r.elevation)}h=i}return null}screenPointToLocation(t,i){return this.screenPointToMercatorCoordinate(t,i)?.toLngLat()}screenPointToLocationAtElevation(t,i){return this.screenPointToLocation(t)}isPointOnMapSurface(t,i){return!!iD(this._cameraPosition,this.getRayDirectionFromPixel(t))}getRayDirectionFromPixel(t){let i=(0,T.Kn)();i[0]=t.x/this.width*2-1,i[1]=-((t.y/this.height*2-1)*1),i[2]=1,i[3]=1,(0,T.Yr)(i,i,this._globeViewProjMatrixF64Inverted),i[0]/=i[3],i[1]/=i[3],i[2]/=i[3];let r=(0,T.Gn)();r[0]=i[0]-this._cameraPosition[0],r[1]=i[1]-this._cameraPosition[1],r[2]=i[2]-this._cameraPosition[2];let a=(0,T.Gn)();return(0,T.ii)(a,r),a}isSurfacePointVisible(t){let i=this._cachedClippingPlane;return i[0]*t[0]+i[1]*t[1]+i[2]*t[2]+i[3]>=0}isSurfacePointOnScreen(t){if(!this.isSurfacePointVisible(t))return!1;let i=(0,T.Kn)();return(0,T.Yr)(i,[...t,1],this._globeViewProjMatrixF64),i[0]/=i[3],i[1]/=i[3],i[2]/=i[3],i[0]>-1&&i[0]<1&&i[1]>-1&&i[1]<1&&i[2]>-1&&i[2]<1}unprojectScreenPoint(t){var i,r;let a,n,o,s=this._cameraPosition,l=this.getRayDirectionFromPixel(t),c=iD(s,l);if(c){let t=(0,T.Gn)();(0,T.Xr)(t,s,[l[0]*c.tMin,l[1]*c.tMin,l[2]*c.tMin]);let i=(0,T.Gn)();return(0,T.ii)(i,t),iT(i)}let u=this._cachedClippingPlane,h=u[0]*l[0]+u[1]*l[1]+u[2]*l[2],d=-(0,T.br)(u,s)/h,f=(0,T.Gn)();if(d>
11760)(0,T.Xr)(f,s,[l[0]*d,l[1]*d,l[2]*d]);else{let t=(0,T.Gn)();(0,T.Xr)(t,s,[2*l[0],2*l[1],2*l[2]]);let i=(0,T.br)(this._cachedClippingPlane,t);(0,T.ui)(f,t,[this._cachedClippingPlane[0]*i,this._cachedClippingPlane[1]*i,this._cachedClippingPlane[2]*i])}let p=((a=(0,T.Gn)())[0]=-(u[0]*u[3]),a[1]=-(u[1]*u[3]),a[2]=-(u[2]*u[3]),{center:a,radius:Math.sqrt(1-u[3]*u[3])});return iT((i=p.center,r=p.radius,n=(0,T.Gn)(),(0,T.ui)(n,f,i),o=(0,T.Gn)(),(0,T.li)(o,i,n,r/(0,T.ti)(n)),o))}getProjectionDataForCustomLayer(t=!0){let i=this.getProjectionData({overscaledTileID:new T.d(0,0,0,0,0),applyGlobeMatrix:t});return i.tileMercatorCoords=[0,0,1,1],i}getFastPathSimpleProjectionMatrix(t){}};function ij(t,i){let r=(0,T.Gn)();(0,T.li)(r,t.origin,t.direction,i);let a=(0,T.ni)(r),n=(0,T.Gn)();(0,T.ci)(n,r,1/a);let o=iT(n),s=T.nt.fromLngLat(o),l=new T.nt(s.x,(0,T.Bn)(s.y,0,.999999999)),c=ia(t.index,t.exaggeration,l.x,l.y),u=Math.abs(o.lat)>85.051129?0:c.elevation;return{sample:{...c,elevation:u},radius:a,mercator:l}}function iN(t,i){let{sample:r,radius:a}=ij(t,i);return io(r,(a-1)*T.ut)}var i$=class t{get pixelsToClipSpaceMatrix(){return this._helper.pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._helper.clipSpaceToPixelsMatrix}get pixelsToGLUnits(){return this._helper.pixelsToGLUnits}get centerOffset(){return this._helper.centerOffset}get size(){return this._helper.size}get rotationMatrix(){return this._helper.rotationMatrix}get centerPoint(){return this._helper.centerPoint}get pixelsPerMeter(){return this._helper.pixelsPerMeter}setMinZoom(t){this._helper.setMinZoom(t)}setMaxZoom(t){this._helper.setMaxZoom(t)}setMinPitch(t){this._helper.setMinPitch(t)}setMaxPitch(t){this._helper.setMaxPitch(t)}setRenderWorldCopies(t){this._helper.setRenderWorldCopies(t)}setBearing(t){this._helper.setBearing(t)}setPitch(t){this._helper.setPitch(t)}setRoll(t){this._helper.setRoll(t)}setFov(t){this._helper.setFov(t)}setZoom(t){this._helper.setZoom(t)}setCenter(t){this._helper.setCenter(t)}setElevation(t){this._helper.setElevation(t)}setMinElevationForCurrentTile(t){this._helper.setMinElevationForCurrentTile(t)}setPadding(t){this._helper.setPadding(t)}interpolatePadding(t,i,r){this._helper.interpolatePadding(t,i,r)}isPaddingEqual(t){return this._helper.isPaddingEqual(t)}resize(t,i,r=!0){this._helper.resize(t,i,r)}getMaxBounds(){return this._helper.getMaxBounds()}setMaxBounds(t){this._helper.setMaxBounds(t)}setConstrainOverride(t){this._helper.setConstrainOverride(t)}overrideNearFarZ(t,i){this._helper.overrideNearFarZ(t,i)}clearNearFarZOverride(){this._helper.clearNearFarZOverride()}getCameraQueryGeometry(t){return this._helper.getCameraQueryGeometry(this.getCameraPoint(),t)}get tileSize(){return this._helper.tileSize}get tileZoom(){return this._helper.tileZoom}get scale(){return this._helper.scale}get worldSize(){return this._helper.worldSize}get width(){return this._helper.width}get height(){return this._helper.height}get lngRange(){return this._helper.lngRange}get latRange(){return this._helper.latRange}get minZoom(){return this._helper.minZoom}get maxZoom(){return this._helper.maxZoom}get zoom(){return this._helper.zoom}get center(){return this._helper.center}get minPitch(){return this._helper.minPitch}get maxPitch(){return this._helper.maxPitch}get pitch(){return this._helper.pitch}get pitchInRadians(){return this._helper.pitchInRadians}get roll(){return this._helper.roll}get rollInRadians(){return this._helper.rollInRadians}get bearing(){return this._helper.bearing}get bearingInRadians(){return this._helper.bearingInRadians}get fov(){return this._helper.fov}get fovInRadians(){return this._helper.fovInRadians}get elevation(){return this._helper.elevation}get minElevationForCurrentTile(){return this._helper.minElevationForCurrentTile}get padding(){return this._helper.padding}get unmodified(){return this._helper.unmodified}get renderWorldCopies(){return this._helper.renderWorldCopies}get cameraToCenterDistance(){return this._helper.cameraToCenterDistance}get constrainOverride(){return this._helper.constrainOverride}get nearZ(){return this._helper.nearZ}get farZ(){return this._helper.farZ}get autoCalculateNearFarZ(){return this._helper.autoCalculateNearFarZ}get isGlobeRendering(){return this._globeness>0}setTransitionState(t){this._globeness=t,this._calcMatrices(),this._verticalPerspectiveTransform.getCoveringTilesDetailsProvider().prepareNextFrame(),this._mercatorTransform.getCoveringTilesDetailsProvider().prepareNextFrame()}get currentTransform(){return this.isGlobeRendering?this._verticalPerspectiveTransform:this._mercatorTransform}constructor(t){this._globeness=1,this.defaultConstrain=(t,i)=>this.currentTransform.defaultConstrain(t,i),this.applyConstrain=(t,i)=>this._helper.applyConstrain(t,i),this._helper=new t8({calcMatrices:()=>this._calcMatrices(),defaultConstrain:(t,i)=>this.defaultConstrain(t,i)},t),this._globeness=1,this._mercatorTransform=new il,this._verticalPerspectiveTransform=new iB}clone(){let i=new t;return i._globeness=this._globeness,i.apply(this,!1),i}apply(t,i){this._helper.apply(t,i),this._mercatorTransform.apply(this,!1),this._verticalPerspectiveTransform.apply(this,!1)}get projectionMatrix(){return this.currentTransform.projectionMatrix}get modelViewProjectionMatrix(){return this.currentTransform.modelViewProjectionMatrix}get inverseProjectionMatrix(){return this.currentTransform.inverseProjectionMatrix}get cameraPosition(){return this.currentTransform.cameraPosition}getProjectionData(t){let i=this._mercatorTransform.getProjectionData(t),r=this._verticalPerspectiveTransform.getProjectionData(t);return{mainMatrix:this.isGlobeRendering?r.mainMatrix:i.mainMatrix,clippingPlane:r.clippingPlane,tileMercatorCoords:r.tileMercatorCoords,projectionTransition:t.applyGlobeMatrix?this._globeness:0,fallbackMatrix:i.fallbackMatrix,clipAntimeridian:r.clipAntimeridian}}isLocationOccluded(t){return this.currentTransform.isLocationOccluded(t)}transformLightDirection(t){return this.currentTransform.transformLightDirection(t)}getPixelScale(){return(0,T.mr)(this._mercatorTransform.getPixelScale(),this._verticalPerspectiveTransform.getPixelScale(),this._globeness)}getCircleRadiusCorrection(){return(0,T.mr)(this._mercatorTransform.getCircleRadiusCorrection(),this._verticalPerspectiveTransform.getCircleRadiusCorrection(),this._globeness)}getPitchedTextCorrection(t,i,r){let a=this._mercatorTransform.getPitchedTextCorrection(t,i,r),n=this._verticalPerspectiveTransform.getPitchedTextCorrection(t,i,r);return(0,T.mr)(a,n,this._globeness)}projectTileCoordinates(t,i,r,a){return this.currentTransform.projectTileCoordinates(t,i,r,a)}_calcMatrices(){this._helper._width&&this._helper._height&&(this._verticalPerspectiveTransform.apply(this,!1),this._helper._nearZ=this._verticalPerspectiveTransform.nearZ,this._helper._farZ=this._verticalPerspectiveTransform.farZ,this._mercatorTransform.apply(this,!0,this.isGlobeRendering),this._helper._nearZ=this._mercatorTransform.nearZ,this._helper._farZ=this._mercatorTransform.farZ)}calculateFogMatrix(t){return this.currentTransform.calculateFogMatrix(t)}getVisibleUnwrappedCoordinates(t){return this.currentTransform.getVisibleUnwrappedCoordinates(t)}getCameraFrustum(){return this.currentTransform.getCameraFrustum()}getClippingPlane(){return this.currentTransform.getClippingPlane()}getCoveringTilesDetailsProvider(){return this.currentTransform.getCoveringTilesDetailsProvider()}recalculateZoomAndCenter(t){this.currentTransform.recalculateZoomAndCenter(t)}maxPitchScaleFactor(){return this._mercatorTransform.maxPitchScaleFactor()}getCameraPoint(){return this._helper.getCameraPoint()}getCameraAltitude(){return this.currentTransform.getCameraAltitude()}getCameraLngLat(){return this.currentTransform.getCameraLngLat()}lngLatToCameraDepth(t,i){return this.currentTransform.lngLatToCameraDepth(t,i)}populateCache(t){this._mercatorTransform.populateCache(t),this._verticalPerspectiveTransform.populateCache(t)}getBounds(){return this.currentTransform.getBounds()}calculateCenterFromCameraLngLatAlt(t,i,r,a){return this._helper.calculateCenterFromCameraLngLatAlt(t,i,r,a)}calculateCameraOptionsFromTo(t,i,r,a){return this.currentTransform.calculateCameraOptionsFromTo(t,i,r,a)}setLocationAtPoint(t,i,r){if(!this.isGlobeRendering){this._mercatorTransform.setLocationAtPoint(t,i,r),this.apply(this._mercatorTransform,!1);return}this._verticalPerspectiveTransform.setLocationAtPoint(t,i,r),this.apply(this._verticalPerspectiveTransform,!1)}locationToScreenPoint(t,i){return this.currentTransform.locationToScreenPoint(t,i)}screenPointToMercatorCoordinate(t,i){return this.currentTransform.screenPointToMercatorCoordinate(t,i)}screenTerrainPointToMercatorCoordinate(t,i){return this.currentTransform.screenTerrainPointToMercatorCoordinate(t,i)}screenPointToLocation(t,i){return this.currentTransform.screenPointToLocation(t,i)}screenPointToLocationAtElevation(t,i){return this.currentTransform.screenPointToLocationAtElevation(t,i)}
1176isPointOnMapSurface(t,i){return this.currentTransform.isPointOnMapSurface(t,i)}getRayDirectionFromPixel(t){return this._verticalPerspectiveTransform.getRayDirectionFromPixel(t)}getProjectionDataForCustomLayer(t=!0){let i=this._mercatorTransform.getProjectionDataForCustomLayer(t);if(!this.isGlobeRendering)return i;let r=this._verticalPerspectiveTransform.getProjectionDataForCustomLayer(t);return r.fallbackMatrix=i.mainMatrix,r.projectionTransition=this._globeness,r}getFastPathSimpleProjectionMatrix(t){return this.currentTransform.getFastPathSimpleProjectionMatrix(t)}},iV=class t{get useGlobeControls(){return!0}handlePanInertia(t,i){let r,a,n,o,s=(r=t.rotate(i.bearingInRadians),a=i.zoom+iE(i.center.lat,0),n=(0,T.mr)(1/iC(i.center.lat),1/iC(Math.min(Math.abs(i.center.lat),60)),(0,T.wr)(a,7,3,0,1)),o=360/iv({worldSize:i.worldSize,center:{lat:i.center.lat}}),new T.lt(i.center.lng-r.x*o*n,(0,T.Bn)(i.center.lat+r.y*o,-T.Fn,T.Fn)));return Math.abs(s.lng-i.center.lng)>180&&(s.lng=i.center.lng+179.5*Math.sign(s.lng-i.center.lng)),{easingCenter:s,easingOffset:new T.Li(0,0)}}handleMapControlsRollPitchBearingZoom(t,i){let r=t.around,a=i.screenPointToLocation(r);t.bearingDelta&&i.setBearing(i.bearing+t.bearingDelta),t.pitchDelta&&i.setPitch(i.pitch+t.pitchDelta),t.rollDelta&&i.setRoll(i.roll+t.rollDelta);let n=i.zoom;t.zoomDelta&&i.setZoom(i.zoom+t.zoomDelta);let o=i.zoom-n;if(0===o)return;let s=(0,T.Xn)(i.center.lng,a.lng),l=s/(Math.abs(s/180)+1),c=(0,T.Xn)(i.center.lat,a.lat),u=i.getRayDirectionFromPixel(r),h=i.cameraPosition,d=-1*(0,T.ei)(h,u),f=(0,T.Gn)();(0,T.Xr)(f,h,[u[0]*d,u[1]*d,u[2]*d]);let p=(0,T.ni)(f),m=Math.exp(-(.5*Math.max(p-1-.3,0))),g=(0,T.wr)(p,.95,.999,0,1),y=iw(i.worldSize,i.center.lat)/Math.min(i.width,i.height),_=(0,T.wr)(y,.9,.5,1,.25),v=Math.min(m,(0,T.mr)(1,_,g)),b=(1-(0,T.Fr)(-o))*v,x=i.center.lat,w=i.zoom,k=new T.lt(i.center.lng+l*b,(0,T.Bn)(i.center.lat+c*b,-T.Fn,T.Fn));i.setLocationAtPoint(a,r);let S=i.center,A=Math.max((0,T.wr)(Math.abs(s),45,85,0,1),g)**.25,C=(0,T.Xn)(S.lng,k.lng),E=(0,T.Xn)(S.lat,k.lat);i.setCenter(new T.lt(S.lng+C*A,S.lat+E*A).wrap()),i.setZoom(w+iE(x,i.center.lat))}handleMapControlsPan(t,i,r){t.panDelta&&function(t,i,r,a,n=!0){var o,s,l,c,u,h,d;let f,p,m,g,y,_,v,b,x,w,k,S,A,C,E=iA(t,r),M=i;if(a)M=iA(t,r.sub(a));else if(!t.isPointOnMapSurface(r))return;let P=ix(E),D=ix(M),I=(o=t.center,s=t.bearing,(0,T.Ur)((0,T.Kn)(),-o.lng,-o.lat,s)),z=(0,T.Qr)((0,T.Gn)(),D,P),F=Math.sqrt((0,T.ei)(z,z)),R=Math.acos((0,T.Bn)((0,T.ei)(D,P),-1,1))/2,O=Math.sin(R),B=F?(0,T.Wr)(z[1]/F*O,-z[0]/F*O,z[2]/F*O,Math.cos(R)):(0,T.Wr)(0,0,0,1),{lng:j,lat:N,bearing:$}=(k=(l=(0,T.Gr)((0,T.Kn)(),I,B))[0],S=l[1],A=l[2],{lng:-(180*Math.atan2(2*((C=l[3])*k+S*A),1-2*(k*k+S*S)))/Math.PI,lat:-(180*Math.asin((0,T.Bn)(2*(C*S-A*k),-1,1)))/Math.PI,bearing:180*Math.atan2(2*(C*A+k*S),1-2*(S*S+A*A))/Math.PI}),V=t.center.lat,U=t.zoom,G=(0,T.Bn)(N,-90,90),q=n?(c=t,u=r,h=a,d=j,f=c.center.lng,m=(p=c.center.lat)>=0?90:-90,g=c.locationToScreenPoint(new T.lt(0,m)),y=u.x-g.x,_=u.y-g.y,b=(v=(0,T.Bn)(1-(T.Fn-Math.abs(p))/12,0,1))*v*(3-2*v),x=(0,T.gr)(d-f+180,360)-180,w=0,b>0&&h&&(w=(m>0?1:-1)*((y*h.y-_*h.x)/Math.max(y*y+_*_,400))*180/Math.PI),f+(1-b)*x+b*w):j;t.setCenter(new T.lt((0,T.Pr)(q,-180,180),G)),n||t.setBearing($),t.setZoom(U+iE(V,t.center.lat))}(i,r,i.isPointOnMapSurface(t.around)?t.around:i.centerPoint,t.panDelta)}cameraForBoxAndBearing(i,r,a,n,o){let s=ip(i,r,a,n,o),l=r.left/o.width*2-1,c=(o.width-r.right)/o.width*2-1,u=-(r.top/o.height*2)+1,h=-((o.height-r.bottom)/o.height*2)+1,d=0>(0,T.Xn)(a.getWest(),a.getEast()),f=d?a.getEast():a.getWest(),p=d?a.getWest():a.getEast(),m=Math.max(a.getNorth(),a.getSouth()),g=Math.min(a.getNorth(),a.getSouth()),y=f+.5*(0,T.Xn)(f,p),_=m+.5*(0,T.Xn)(m,g),v=o.clone();v.setCenter(s.center),v.setBearing(s.bearing),v.setPitch(0),v.setRoll(0),v.setZoom(s.zoom);let b=v.modelViewProjectionMatrix,x=[ix(a.getNorthWest()),ix(a.getNorthEast()),ix(a.getSouthWest
1176()),ix(a.getSouthEast()),ix(new T.lt(p,_)),ix(new T.lt(f,_)),ix(new T.lt(y,m)),ix(new T.lt(y,g))],w=ix(s.center),k=1/0;for(let i of x)l<0&&(k=t.getLesserNonNegativeNonNull(k,t.solveVectorScale(i,w,b,"x",l))),c>0&&(k=t.getLesserNonNegativeNonNull(k,t.solveVectorScale(i,w,b,"x",c))),u>0&&(k=t.getLesserNonNegativeNonNull(k,t.solveVectorScale(i,w,b,"y",u))),h<0&&(k=t.getLesserNonNegativeNonNull(k,t.solveVectorScale(i,w,b,"y",h)));return Number.isFinite(k)&&0!==k?(s.zoom=Math.min(v.zoom+(0,T.Dr)(k),i.maxZoom),s):void ih()}handleJumpToCenterZoom(t,i){let r=t.center.lat,a=t.applyConstrain(i.center?T.lt.convert(i.center):t.center,t.zoom).center;t.setCenter(a.wrap());let n=void 0===i.zoom?t.zoom+iE(r,a.lat):+i.zoom;t.zoom!==n&&t.setZoom(n)}handleEaseTo(t,i){let r=t.zoom,a=t.center,n=t.padding,o={roll:t.roll,pitch:t.pitch,bearing:t.bearing},s={roll:void 0===i.roll?t.roll:i.roll,pitch:void 0===i.pitch?t.pitch:i.pitch,bearing:void 0===i.bearing?t.bearing:i.bearing},l=void 0!==i.zoom,c=!t.isPaddingEqual(i.padding),u=!1,h=i.center?T.lt.convert(i.center):a,d=t.applyConstrain(h,r).center;t4(t,d);let f=t.clone();f.setCenter(d),f.setZoom(l?+i.zoom:r+iE(a.lat,h.lat)),f.setBearing(i.bearing);let p=new T.Li((0,T.Bn)(t.centerPoint.x+i.offsetAsPoint.x,0,t.width),(0,T.Bn)(t.centerPoint.y+i.offsetAsPoint.y,0,t.height));f.setLocationAtPoint(d,p);let m=(i.offset&&i.offsetAsPoint.mag())>0?f.center:d,g=l?+i.zoom:r+iE(a.lat,m.lat),y=r+iE(a.lat,0),_=g+iE(m.lat,0),v=(0,T.Xn)(a.lng,m.lng),b=(0,T.Xn)(a.lat,m.lat),x=(0,T.Fr)(_-y);return{easeFunc:r=>{if((0,T.Tr)(o,s)||id({startEulerAngles:o,endEulerAngles:s,tr:t,k:r,useSlerp:o.roll!=s.roll}),c&&t.interpolatePadding(n,i.padding,r),i.around)(0,T.Nr)("Easing around a point is not supported under globe projection."),t.setLocationAtPoint(i.around,i.aroundPoint);else{let i=iP(a,v,b,r*(_>y?Math.min(2,x):Math.max(.5,x))**(1-r));t.setCenter(i.wrap())}if(u){let i=T.un.number(y,_,r)+iE(0,t.center.lat);t.setZoom(i)}},isZooming:u=g!==r,elevationCenter:m}}handleFlyTo(t,i){let r,a,n=void 0!==i.zoom,o=t.center,s=t.zoom,l=t.padding,c=!t.isPaddingEqual(i.padding),u=t.applyConstrain(T.lt.convert(i.center||i.locationAtOffset),s).center,h=n?+i.zoom:t.zoom+iE(t.center.lat,u.lat),d=t.clone();d.setCenter(u),d.setZoom(h),d.setBearing(i.bearing);let f=new T.Li((0,T.Bn)(t.centerPoint.x+i.offsetAsPoint.x,0,t.width),(0,T.Bn)(t.centerPoint.y+i.offsetAsPoint.y,0,t.height));d.setLocationAtPoint(u,f);let p=d.center;t4(t,p);let m=(r=ix(o),a=ix(p),Math.acos((0,T.ei)(r,a))/(2*Math.PI)*iv(t)),g=s+iE(o.lat,0),y=h+iE(p.lat,0),_=(0,T.Fr)(y-g),v=Math.min(Math.max("number"==typeof i.minZoom?+i.minZoom:t.minZoom,t.minZoom)+iE(p.lat,0),g,y)+iE(0,p.lat),b=t.applyConstrain(p,v).zoom+iE(p.lat,0),x=(0,T.Fr)(b-g),w=(0,T.Xn)(o.lng,p.lng),k=(0,T.Xn)(o.lat,p.lat);return{easeFunc:(r,a,n,s)=>{let u=iP(o,w,k,n);c&&t.interpolatePadding(l,i.padding,r);let d=1===r?p:u;t.setCenter(d.wrap());let f=g+(0,T.Dr)(a);t.setZoom(1===r?h:f+iE(0,d.lat))},scaleOfZoom:_,targetCenter:p,scaleOfMinZoom:x,pixelPathLength:m}}static solveVectorScale(t,i,r,a,n){let o="x"===a?[r[0],r[4],r[8],r[12]]:[r[1],r[5],r[9],r[13]],s=[r[3],r[7],r[11],r[15]],l=t[0]*o[0]+t[1]*o[1]+t[2]*o[2],c=t[0]*s[0]+t[1]*s[1]+t[2]*s[2],u=i[0]*o[0]+i[1]*o[1]+i[2]*o[2],h=i[0]*s[0]+i[1]*s[1]+i[2]*s[2],d=(u+o[3]-n*h-n*s[3])/(u-l-n*h+n*c);return u+n*c===l+n*h||s[3]*(l-u)+o[3]*(h-c)+l*h==u*c?null:d}static getLesserNonNegativeNonNull(t,i){return null!==i&&i>=0&&i<t?i:t}},iU=class{constructor(t){this._globe=t,this._mercatorCameraHelper=new im,this._verticalPerspectiveCameraHelper=new iV}get useGlobeControls(){return this._globe.useGlobeRendering}get currentHelper(){return this.useGlobeControls?this._verticalPerspectiveCameraHelper:this._mercatorCameraHelper}handlePanInertia(t,i){return this.currentHelper.handlePanInertia(t,i)}handleMapControlsRollPitchBearingZoom(t,i){this.currentHelper.handleMapControlsRollPitchBearingZoom(t,i)}handleMapControlsPan(t,i,r){this.currentHelper.handleMapControlsPan(t,i,r)}cameraForBoxAndBearing(t,i,r,a,n){return this.currentHelper.cameraForBoxAndBearing(t,i,r,a,n)}handleJumpToCenterZoom(t,i){this.currentHelper.handleJumpToCenterZoom(t,i)}handleEaseTo(t,i){return this.currentHelper.handleEaseTo(t,i)}handleFlyTo(t,i){return this.currentHelper.handleFlyTo(t,i)}};let iG=function(){let t={},i=T.hn.$version;for(let r in T.hn.$root){let a=T.hn.$root[r];if(a.required){let n=null;null!=(n="version"===r?i:"array"===a.type?[]:{})&&(t[r]=n)}}return t}();var iq=class extends T.vn{constructor(t,i={}){super(),this._rtlPluginLoaded=()=>{for(let t in this.tileManagers){let i=this.tileManagers[t].getSource().type;("vector"===i||"geojson"===i)&&this.tileManagers[t].reload()}},this.map=t,this.dispatcher=new eT(u||=new ew,t._getMapId()),this.dispatcher.registerMessageHandler("GG",(t,i)=>this.getGlyphs(t,i)),this.dispatcher.registerMessageHandler("GI",(t,i)=>this.getImages(t,i)),this.dispatcher.registerMessageHandler("GDA",(t,i)=>this.getDashes(t,i)),this.imageManager=new er,this.imageManager.setEventedParent(this),this.imageManager.setMissingImageResolver(t._missingStyleImageResolver),this.patternAtlas=new ea(this.imageManager);let r=t._container?.lang||"u">typeof document&&document.documentElement?.lang||void 0;this.glyphManager=new em(t._requestManager,i.localIdeographFontFamily,r),this.lineAtlas=new e_(256,512),this.crossTileSymbolIndex=new tH,this._setInitialValues(),this._resetUpdates(),this.dispatcher.broadcast("SR",(0,T.Cn)()),eK().on(eW,this._rtlPluginLoaded),this.on("data",t=>{if("source"!==t.dataType||"metadata"!==t.sourceDataType)return;let i=this.tileManagers[t.sourceId];if(!i)return;let r=i.getSource();if(r?.vectorLayerIds)for(let t in this._layers){let i=this._layers[t];
1176i.source===r.id&&this._validateLayer(i)}})}_setInitialValues(){this._layers={},this._order=[],this.tileManagers={},this.zoomHistory=new T.tn,this._imagesListDirty=!1,this._globalState={},this._serializedLayers={},this.stylesheet=null,this.light=null,this.sky=null,this.projection&&(this.projection.destroy(),delete this.projection),this._loaded=!1,this._changed=!1,this._updatedLayers={},this._updatedSources={},this._changedImages={},this._glyphsDidChange=!1,this._updatedPaintProps={},this._layerOrderChanged=!1,this._symbolPlacementTriggered=!1,this._placedProjectionTransition=void 0,this.crossTileSymbolIndex=new(this.crossTileSymbolIndex?.constructor||Object),this.pauseablePlacement=void 0,this.placement=void 0,this.z=0}setGlobalStateProperty(t,i){this._checkLoaded();let r=null===i?this.stylesheet.state?.[t]?.default??null:i;if((0,T.qn)(r,this._globalState[t]))return this;this._globalState[t]=r,this._applyGlobalStateChanges([t])}getGlobalState(){return this._globalState}setGlobalState(t){this._checkLoaded();let i=[];for(let r in t)(0,T.qn)(this._globalState[r],t[r].default)||(i.push(r),this._globalState[r]=t[r].default);this._applyGlobalStateChanges(i)}_applyGlobalStateChanges(t){if(0===t.length)return;let i=new Set,r={};for(let a of t)for(let t in r[a]=this._globalState[a],this._layers){let r=this._layers[t],n=r.getLayoutAffectingGlobalStateRefs(),o=r.getPaintAffectingGlobalStateRefs(),s=r.getVisibilityAffectingGlobalStateRefs();if(n.has(a)&&i.add(r.source),o.has(a))for(let{name:t,value:i}of o.get(a))this._updatePaintProperty(r,t,i);s?.has(a)&&(r.recalculateVisibility(),this._updateLayer(r))}for(let t in this.dispatcher.broadcast("UGS",r),this.tileManagers)i.has(t)&&(this._reloadSource(t),this._changed=!0)}async loadURL(t,i={},r){this.fire(new F("dataloading")),i.validate="boolean"!=typeof i.validate||i.validate,this._loadStyleRequest=new AbortController;let a=this._loadStyleRequest;try{let n=await this.map._requestManager.transformRequest(t,"Style");(0,T.Nn)(a.signal);let o=await (0,T.Sn)(n,a);this._loadStyleRequest===a&&(this._loadStyleRequest=null),this._load(o.data,i,r)}catch(t){this._loadStyleRequest===a&&(this._loadStyleRequest=null),t&&!a.signal.aborted&&this.fire(new T.gn((0,T.Qn)(t)))}}loadJSON(t,i={},r){this.fire(new F("dataloading")),this._frameRequest=new AbortController,A.frameAsync(this._frameRequest,this.map._ownerWindow).then(()=>{this._frameRequest=null,i.validate=!1!==i.validate,this._load(t,i,r)}).catch(()=>{})}loadEmpty(){this.fire(new F("dataloading")),this._load(iG,{validate:!1})}_load(t,i,r){let a=i.transformStyle?i.transformStyle(r,t):t;if(!(i.validate&&(0,T.sn)(this,a))){for(let t in a={...a},this._loaded=!0,this.stylesheet=a,a.sources)this.addSource(t,a.sources[t],{validate:!1});a.sprite?this._loadSprite(a.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(a.glyphs),this.glyphManager.setFontFaces(a["font-faces"]),this._createLayers(),this.light=new eg(this.stylesheet.light??{},this._globalState),this._setProjectionInternal(this.stylesheet.projection?.type||"mercator"),this.sky=new ey(this.stylesheet.sky,this._globalState),this.map.setTerrain(this.stylesheet.terrain??null,{validate:!1}),this.fire(new F("data")),this.fire(new z)}}_createLayers(){let t=q(this.stylesheet.layers);for(let i of(this.setGlobalState(this.stylesheet.state??null),this.dispatcher.broadcast("SL",t),this._order=t.map(t=>t.id),this._layers={},this._serializedLayers=null,t)){let t=(0,T._)(i,this._globalState);if(t.setEventedParent(this,{layer:{id:i.id}}),this._layers[i.id]=t,(0,T.Xt)(t)&&this.tileManagers[t.source]){let r=i.paint?.["raster-fade-duration"]??t.paint.get("raster-fade-duration");this.tileManagers[t.source].setRasterFadeDuration(r)}}}async _loadSprite(t,i=!1,r){let a;this.imageManager.setLoaded(!1);let n=new AbortController;this._spriteRequest=n;try{let r=await et(t,this.map._requestManager,this.map.getPixelRatio(),n);if(!r)return;for(let t in r){let{loaded:a,removed:n}=this.imageManager.setSpriteImages(t,r[t]);this._markImagesChanged(n),i&&this._markImagesChanged(a)}}catch(t){a=t,n.signal.aborted||this.fire(new T.gn(a))}finally{this._spriteRequest=null,this.imageManager.setLoaded(!0),i&&(this._changed=!0),this.dispatcher.broadcast("SI",this.imageManager.listImages()),this.fire(new F("data")),r?.(a)}}_unloadSprite(){this._markImagesChanged(this.imageManager.removeAllSpriteImages()),this._imagesListDirty=!0,this._changed=!0,this.fire(new F("data"))}_validateLayer(t){let i=this.tileManagers[t.source];if(!i)return;let r=t.sourceLayer;if(!r)return;let a=i.getSource();("geojson"===a.type||a.vectorLayerIds&&!a.vectorLayerIds.includes(r))&&this.fire(new T.gn(Error(`Source layer "${r}" does not exist on source "${a.id}" as specified by style layer "${t.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let t in this.tileManagers)if(!this.tileManagers[t].loaded())return!1;return this.imageManager.isLoaded()}_serializeByIds(t,i=!1){let r=this._serializedAllLayers();if(!t||0===t.length)return Object.values(i?(0,T.Vn)(r):r);let a=[];for(let n of t)if(r[n]){let t=i?(0,T.Vn)(r[n]):r[n];a.push(t)}return a}_serializedAllLayers(){let t=this._serializedLayers;if(t)return t;for(let i of(t=this._serializedLayers={},Object.keys(this._layers))){let r=this._layers[i];"custom"!==r.type&&(t[i]=r.serialize())}return t}hasTransitions(){if(this.light?.hasTransition()||this.sky?.hasTransition()||this.projection?.hasTransition())return!0;for(let t in this.tileManagers)if(this.tileManagers[t].hasTransition())return!0;for(let t in this._layers)if(this._layers[t].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw Error("Style is not done loading.")}update(t){if(!this._loaded)return;let i=this._changed;if(i){this._imagesListDirty&&=(this.dispatcher.broadcast("SI",this.imageManager.listImages()),!1);let i=Object.keys(this._updatedLayers),r=Object.keys(this._removedLayers);for(let t in(i.length||r.length)&&this._updateWorkerLayers(i,r),this._updatedSources){let i=this._updatedSources[t];if("reload"===i)this._reloadSource(t);else if("clear"===i)this._clearSource(t);else throw Error(`Invalid action ${i}`)}for(let i in this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs(),this._updatedPaintProps)this._layers[i].updateTransitions(t);this._resetUpdates()}let r={};for(let t in this.tileManagers){let i=this.tileManagers[t];r[t]=i.used,i.used=!1}let a=this.imageManager.listImages();for(let i of this._order){let r=this._layers[i];r.recalculate(t,a),!r.isHidden(t.zoom)&&r.source&&(this.tileManagers[r.source].used=!0)}for(let t in r){let i=this.tileManagers[t];!!r[t]!=!!i.used&&i.fire(new R("data",{sourceDataType:"visibility",sourceId:t}))}this.light.recalculate(t),this.sky.recalculate(t),this.projection.recalculate(t),this.z=t.zoom,i&&this.fire(new F("data"))}_updateTilesForChangedImages(){let t=Object.keys(this._changedImages);if(t.length){for(let i in this.tileManagers)this.tileManagers[i].reloadTilesForDependencies(["icons","patterns"],t);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let t in this.tileManagers)this.tileManagers[t].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(t,i){this.dispatcher.broadcast("UL",{layers:this._serializeByIds(t,!1),removedIds:i})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(t,i={}){this._checkLoaded();let r=this.serialize();if(t=i.transformStyle?i.transformStyle(r,t):t,(i.validate??!0)&&(0,T.sn)(this,t))return!1;(t=(0,T.Vn)(t)).layers=q(t.layers);let a=function(t,i){if(!t)return[{command:"setStyle",args:[i]}];let r=[];
1176try{if(!Z(t.version,i.version))return[{command:"setStyle",args:[i]}];Z(t.center,i.center)||r.push({command:"setCenter",args:[i.center]}),Z(t.state,i.state)||r.push({command:"setGlobalState",args:[i.state]}),Z(t.centerAltitude,i.centerAltitude)||r.push({command:"setCenterAltitude",args:[i.centerAltitude]}),Z(t.zoom,i.zoom)||r.push({command:"setZoom",args:[i.zoom]}),Z(t.bearing,i.bearing)||r.push({command:"setBearing",args:[i.bearing]}),Z(t.pitch,i.pitch)||r.push({command:"setPitch",args:[i.pitch]}),Z(t.roll,i.roll)||r.push({command:"setRoll",args:[i.roll]}),Z(t.sprite,i.sprite)||r.push({command:"setSprite",args:[i.sprite]}),Z(t.glyphs,i.glyphs)||r.push({command:"setGlyphs",args:[i.glyphs]}),Z(t["font-faces"],i["font-faces"])||r.push({command:"setFontFaces",args:[i["font-faces"]]}),Z(t.transition,i.transition)||r.push({command:"setTransition",args:[i.transition]}),Z(t.light,i.light)||r.push({command:"setLight",args:[i.light]}),Z(t.terrain,i.terrain)||r.push({command:"setTerrain",args:[i.terrain]}),Z(t.sky,i.sky)||r.push({command:"setSky",args:[i.sky]}),Z(t.projection,i.projection)||r.push({command:"setProjection",args:[i.projection]});let a={},n=[];!function(t,i,r,a){let n;for(n in t||={},i||={},t)Object.prototype.hasOwnProperty.call(t,n)&&(Object.prototype.hasOwnProperty.call(i,n)||X(n,r,a));for(n in i){var o;Object.prototype.hasOwnProperty.call(i,n)&&(Object.prototype.hasOwnProperty.call(t,n)?Z(t[n],i[n])||("geojson"===t[n].type&&"geojson"===i[n].type&&function(t,i,r){let a;for(a in t[r])if(Object.prototype.hasOwnProperty.call(t[r],a)&&"data"!==a&&!Z(t[r][a],i[r][a]))return!1;for(a in i[r])if(Object.prototype.hasOwnProperty.call(i[r],a)&&"data"!==a&&!Z(t[r][a],i[r][a]))return!1;return!0}(t,i,n)?H(r,{command:"setGeoJSONSourceData",args:[n,i[n].data]}):(o=i,X(n,r,a),W(n,o,r))):W(n,i,r))}}(t.sources,i.sources,n,a);let o=[];t.layers&&t.layers.forEach(t=>{"source"in t&&a[t.source]?r.push({command:"removeLayer",args:[t.id]}):o.push(t)}),r=r.concat(n),function(t,i,r){t||=[],i||=[];let a=t.map(K),n=i.map(K),o=t.reduce(J,{}),s=i.reduce(J,{}),l=a.slice(),c=Object.create(null),u,h,d,f,p;for(let t=0,i=0;t<a.length;t++)u=a[t],Object.prototype.hasOwnProperty.call(s,u)?i++:(H(r,{command:"removeLayer",args:[u]}),l.splice(l.indexOf(u,i),1));for(let t=0,i=0;t<n.length;t++)u=n[n.length-1-t],l[l.length-1-t]!==u&&(Object.prototype.hasOwnProperty.call(o,u)?(H(r,{command:"removeLayer",args:[u]}),l.splice(l.lastIndexOf(u,l.length-i),1)):i++,f=l[l.length-t],H(r,{command:"addLayer",args:[s[u],f]}),l.splice(l.length-t,0,u),c[u]=!0);for(let t=0;t<n.length;
1176t++)if(h=o[u=n[t]],d=s[u],!(c[u]||Z(h,d))){if(!Z(h.source,d.source)||!Z(h["source-layer"],d["source-layer"])||!Z(h.type,d.type)){H(r,{command:"removeLayer",args:[u]}),H(r,{command:"addLayer",args:[d,f=l[l.lastIndexOf(u)+1]]});continue}for(p in Y(h.layout,d.layout,r,u,null,"setLayoutProperty"),Y(h.paint,d.paint,r,u,null,"setPaintProperty"),Z(h.filter,d.filter)||H(r,{command:"setFilter",args:[u,d.filter]}),Z(h.minzoom,d.minzoom)&&Z(h.maxzoom,d.maxzoom)||H(r,{command:"setLayerZoomRange",args:[u,d.minzoom,d.maxzoom]}),h)Object.prototype.hasOwnProperty.call(h,p)&&"layout"!==p&&"paint"!==p&&"filter"!==p&&"metadata"!==p&&"minzoom"!==p&&"maxzoom"!==p&&(0===p.indexOf("paint.")?Y(h[p],d[p],r,u,p.slice(6),"setPaintProperty"):Z(h[p],d[p])||H(r,{command:"setLayerProperty",args:[u,p,d[p]]}));for(p in d)Object.prototype.hasOwnProperty.call(d,p)&&!Object.prototype.hasOwnProperty.call(h,p)&&"layout"!==p&&"paint"!==p&&"filter"!==p&&"metadata"!==p&&"minzoom"!==p&&"maxzoom"!==p&&(0===p.indexOf("paint.")?Y(h[p],d[p],r,u,p.slice(6),"setPaintProperty"):Z(h[p],d[p])||H(r,{command:"setLayerProperty",args:[u,p,d[p]]}))}}(o,i.layers,r)}catch(t){console.warn("Unable to compute style diff:",t),r=[{command:"setStyle",args:[i]}]}return r}(r,t),n=this._getOperationsToPerform(a);if(n.unimplemented.length>0)throw Error(`Unimplemented: ${n.unimplemented.join(", ")}.`);if(0===n.operations.length)return!1;for(let t of n.operations)t();return this.stylesheet=t,this._serializedLayers=null,this.fire(new z({style:this})),!0}_getOperationsToPerform(t){let i=[],r=[];for(let a of t)switch(a.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":case"setRoll":continue;case"addLayer":i.push(()=>
1176this.addLayer.apply(this,a.args));break;case"removeLayer":i.push(()=>this.removeLayer.apply(this,a.args));break;case"setPaintProperty":i.push(()=>this.setPaintProperty.apply(this,a.args));break;case"setLayoutProperty":i.push(()=>this.setLayoutProperty.apply(this,a.args));break;case"setFilter":i.push(()=>this.setFilter.apply(this,a.args));break;case"addSource":i.push(()=>this.addSource.apply(this,a.args));break;case"removeSource":i.push(()=>this.removeSource.apply(this,a.args));break;case"setLayerZoomRange":i.push(()=>this.setLayerZoomRange.apply(this,a.args));break;case"setLight":i.push(()=>this.setLight.apply(this,a.args));break;case"setGeoJSONSourceData":i.push(()=>this.setGeoJSONSourceData.apply(this,a.args));break;case"setGlyphs":i.push(()=>this.setGlyphs.apply(this,a.args));break;case"setFontFaces":i.push(()=>this.setFontFaces.apply(this,a.args));break;case"setSprite":i.push(()=>this.setSprite.apply(this,a.args));break;case"setTerrain":i.push(()=>this.map.setTerrain.apply(this,a.args));break;case"setSky":i.push(()=>
1176this.setSky.apply(this,a.args));break;case"setProjection":this.setProjection.apply(this,a.args);break;case"setGlobalState":i.push(()=>this.setGlobalState.apply(this,a.args));break;case"setTransition":i.push(()=>{});break;default:r.push(a.command)}return{operations:i,unimplemented:r}}addImage(t,i){this.getImage(t)?this.fire(new T.gn(Error(`An image named "${t}" already exists.`))):(this.imageManager.addImage(t,i),this._afterImageUpdated(t))}updateImage(t,i){this.imageManager.updateImage(t,i)}getImage(t){return this.imageManager.getImage(t)}setMissingImageResolver(t){this.imageManager.setMissingImageResolver(t)}removeImage(t){this.getImage(t)?(this.imageManager.removeImage(t),this._afterImageUpdated(t)):this.fire(new T.gn(Error(`An image named "${t}" does not exist.`)))}_markImagesChanged(t){for(let i of t)this._changedImages[i]=!0}_afterImageUpdated(t){this._changedImages[t]=!0,this._imagesListDirty=!0,this._changed=!0,this.fire(new F("data"))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(t,i,r={}){if(this._checkLoaded(),void 0!==this.tileManagers[t])throw Error(`Source "${t}" already exists.`);if(!i.type)throw Error(`The type property must be defined, but only the following properties were given: ${Object.keys(i).join(", ")}.`);if(T.rn.has(i.type)&&this._validate(T.on.source,`sources.${t}`,i,null,r))return;this.map?._collectResourceTiming&&(i.collectResourceTiming=!0);let a=this.tileManagers[t]=new ti(t,i,this.dispatcher);a.style=this,a.setEventedParent(this,()=>({isSourceLoaded:a.loaded(),source:a.serialize(),sourceId:t})),a.onAdd(this.map),this._changed=!0}removeSource(t){if(this._checkLoaded(),void 0===this.tileManagers[t])throw Error(`There is no source with this ID=${t}`);for(let i in this._layers)if(this._layers[i].source===t)return this.fire(new T.gn(Error(`Source "${t}" cannot be removed while layer "${i}" is using it.`)));let i=this.tileManagers[t];delete this.tileManagers[t],delete this._updatedSources[t],i.fire(new R("data",{sourceDataType:"metadata",sourceId:t})),i.setEventedParent(null),i.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(t,i){if(this._checkLoaded(),void 0===this.tileManagers[t])throw Error(`There is no source with this ID=${t}`);let r=this.tileManagers[t].getSource();if("geojson"!==r.type)throw Error(`geojsonSource.type is ${r.type}, which is !== 'geojson`);r.setData(i),this._changed=!0}getSource(t){return this.tileManagers[t]?.getSource()}addLayer(t,i,r={}){let a;this._checkLoaded();let n=t.id;if(this.getLayer(n))return void this.fire(new T.gn(Error(`Layer "${n}" already exists on this map.`)));if("custom"===t.type){if((0,T.in)(this,(0,T.y)(t)))return;a=(0,T._)(t,this._globalState)}else{if("source"in t&&"object"==typeof t.source&&(this.addSource(n,t.source),t=(0,T.Vn)(t),t=(0,T.er)(t,{source:n})),this._validate(T.on.layer,`layers.${n}`,t,{arrayIndex:-1},r))return;a=(0,T._)(t,this._globalState),this._validateLayer(a),a.setEventedParent(this,{layer:{id:n}})}let o=i?this._order.indexOf(i):this._order.length;if(i&&-1===o)return void this.fire(new T.gn(Error(`Cannot add layer "${n}" before non-existing layer "${i}".`)));if(this._order.splice(o,0,n),this._layerOrderChanged=!0,this._layers[n]=a,this._removedLayers[n]&&a.source&&"custom"!==a.type){let t=this._removedLayers[n];delete this._removedLayers[n],t.type===a.type?(this._updatedSources[a.source]="reload",this.tileManagers[a.source].pause()):this._updatedSources[a.source]="clear"}this._updateLayer(a),a.onAdd&&a.onAdd(this.map)}moveLayer(t,i){if(this._checkLoaded(),this._changed=!0,!this._layers[t])return void this.fire(new T.gn(Error(`The layer '${t}' does not exist in the map's style and cannot be moved.`)));if(t===i)return;if(i&&!this._order.includes(i))return void this.fire(new T.gn(Error(`Cannot move layer "${t}" before non-existing layer "${i}".`)));let r=this._order.indexOf(t);this._order.splice(r,1);let a=i?this._order.indexOf(i):this._order.length;this._order.splice(a,0,t),this._layerOrderChanged=!0}removeLayer(t){this._checkLoaded();let i=this._layers[t];if(!i)return void this.fire(new T.gn(Error(`Cannot remove non-existing layer "${t}".`)));i.setEventedParent(null);let r=this._order.indexOf(t);this._order.splice(r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[t]=i,delete this._layers[t],this._serializedLayers&&delete this._serializedLayers[t],delete this._updatedLayers[t],delete this._updatedPaintProps[t],"symbol"===i.type&&i.source&&this.tileManagers[i.source]?.resetMaxContentElevation(),i.onRemove&&i.onRemove(this.map)}getLayer(t){return this._layers[t]}
1176getLayersOrder(){return[...this._order]}hasLayer(t){return t in this._layers}setLayerZoomRange(t,i,r){this._checkLoaded();let a=this.getLayer(t);a?(a.minzoom!==i||a.maxzoom!==r)&&(null!=i&&(a.minzoom=i),null!=r&&(a.maxzoom=r),this._updateLayer(a)):this.fire(new T.gn(Error(`Cannot set the zoom range of non-existing layer "${t}".`)))}setFilter(t,i,r={}){this._checkLoaded();let a=this.getLayer(t);if(!a)return void this.fire(new T.gn(Error(`Cannot filter non-existing layer "${t}".`)));if(!(0,T.qn)(a.filter,i)){if(null==i){a.setFilter(void 0),this._updateLayer(a);return}this._validate(T.on.filter,`layers.${a.id}.filter`,i,null,r)||(a.setFilter((0,T.Vn)(i)),this._updateLayer(a))}}getFilter(t){return(0,T.Vn)(this.getLayer(t).filter)}setLayoutProperty(t,i,r,a={}){this._checkLoaded();let n=this.getLayer(t);n?(0,T.qn)(n.getLayoutProperty(i),r)||(n.setLayoutProperty(i,r,a),this._updateLayer(n)):this.fire(new T.gn(Error(`Cannot style non-existing layer "${t}".`)))}getLayoutProperty(t,i){let r=this.getLayer(t);return r?r.getLayoutProperty(i):void this.fire(new T.gn(Error(`Cannot get style of non-existing layer "${t}".`)))}setPaintProperty(t,i,r,a={}){this._checkLoaded();let n=this.getLayer(t);n?(0,T.qn)(n.getPaintProperty(i),r)||this._updatePaintProperty(n,i,r,a):this.fire(new T.gn(Error(`Cannot style non-existing layer "${t}".`)))}_updatePaintProperty(t,i,r,a={}){t.setPaintProperty(i,r,a)&&this._updateLayer(t),(0,T.Xt)(t)&&"raster-fade-duration"===i&&this.tileManagers[t.source].setRasterFadeDuration(r),this._changed=!0,this._updatedPaintProps[t.id]=!0,"symbol"===t.type&&this.triggerSymbolPlacement(),this._serializedLayers=null}getPaintProperty(t,i){return this.getLayer(t).getPaintProperty(i)}setFeatureState(t,i){this._checkLoaded();let r=t.source,a=t.sourceLayer,n=this.tileManagers[r];if(void 0===n)return void this.fire(new T.gn(Error(`The source '${r}' does not exist in the map's style.`)));let o=n.getSource().type;if("geojson"===o&&a)return void this.fire(new T.gn(Error("GeoJSON sources cannot have a sourceLayer parameter.")));if("vector"===o&&!a)return void this.fire(new T.gn(Error("The sourceLayer parameter must be provided for vector source types.")));if(void 0===t.id)return void this.fire(new T.gn(Error("The feature id parameter must be provided.")));let s=["__proto__","constructor","prototype"];i&&Object.keys(i).some(t=>s.includes(t))?this.fire(new T.gn(Error(`The feature state should not include one of the following keys: ${s}`))):n.setFeatureState(a,t.id,i)}removeFeatureState(t,i){this._checkLoaded();let r=t.source,a=this.tileManagers[r];if(void 0===a)return void this.fire(new T.gn(Error(`The source '${r}' does not exist in the map's style.`)));let n=a.getSource().type,o="vector"===n?t.sourceLayer:void 0;"vector"!==n||o?i&&"string"!=typeof t.id&&"number"!=typeof t.id?this.fire(new T.gn(Error("A feature id is required to remove its specific state property."))):a.removeFeatureState(o,t.id,i):this.fire(new T.gn(Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(t){this._checkLoaded();let i=t.source,r=t.sourceLayer,a=this.tileManagers[i];return void 0===a?void this.fire(new T.gn(Error(`The source '${i}' does not exist in the map's style.`))):"vector"!==a.getSource().type||r?(void 0===t.id&&this.fire(new T.gn(Error("The feature id parameter must be provided."))),a.getFeatureState(r,t.id)):void this.fire(new T.gn(Error("The sourceLayer parameter must be provided for vector source types.")))}getTransition(){return(0,T.er)({duration:300,delay:0},this.stylesheet?.transition)}serialize(){if(!this._loaded)return;let t=(0,T.hr)(this.tileManagers,t=>t.serialize()),i=this._serializeByIds(this._order,!0),r=this.map.getTerrain()||void 0,a=this.stylesheet;return(0,T.tr)({version:a.version,name:a.name,metadata:a.metadata,light:a.light,sky:a.sky,center:a.center,zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,sprite:a.sprite,glyphs:a.glyphs,"font-faces":a["font-faces"],transition:a.transition,projection:a.projection,state:a.state,sources:t,layers:i,terrain:r},t=>void 0!==t)}_updateLayer(t){this._updatedLayers[t.id]=!0,t.source&&!this._updatedSources[t.source]&&"raster"!==this.tileManagers[t.source].getSource().type&&(this._updatedSources[t.source]="reload",this.tileManagers[t.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(t){let i=t=>"fill-extrusion"===this._layers[t].type,r={},a=[];for(let n=this._order.length-1;n>=0;n--){let o=this._order[n];if(i(o))for(let i of(r[o]=n,t)){let t=i[o];if(t)for(let i of t)a.push(i)}}a.sort((t,i)=>i.intersectionZ-t.intersectionZ);let n=[];for(let o=this._order.length-1;o>=0;o--){let s=this._order[o];if(i(s))for(let t=a.length-1;t>=0;t--){let i=a[t].feature;if(r[i.layer.id]<o)break;n.push(i),a.pop()}else for(let i of t){let t=i[s];if(t)for(let i of t)n.push(i.feature)}}return n}
vendor: 14,672 bytes, line 1176
1176queryRenderedFeatures(t,i,r){i?.filter&&this._validate(T.on.filter,"queryRenderedFeatures.filter",i.filter,null,i);let a={};if(i?.layers){if(!(Array.isArray(i.layers)||i.layers instanceof Set))return this.fire(new T.gn(Error("parameters.layers must be an Array or a Set of strings"))),[];for(let t of i.layers){let i=this._layers[t];if(!i)return this.fire(new T.gn(Error(`The layer '${t}' does not exist in the map's style and cannot be queried for features.`))),[];a[i.source]=!0}}let n=[];i.availableImages=this.imageManager.listImages();let o=this._serializedAllLayers(),s=i.layers instanceof Set?i.layers:Array.isArray(i.layers)?new Set(i.layers):null,l={...i,layers:s,globalState:this._globalState};for(let s in this.tileManagers)(!i.layers||a[s])&&n.push(function(t,i,r,a,n,o,s){let l=function(t,i,r){if(t)for(let a of t){let t=i[a];if(t?.source===r&&"fill-extrusion"===t.type)return!0}else for(let t in i){let a=i[t];if(a.source===r&&"fill-extrusion"===a.type)return!0}return!1}(n?.layers??null,i,t.id),c=o.maxPitchScaleFactor(),u=t.tilesIn(a,c,l);u.sort(eS);let h=[];for(let a of u)h.push({wrappedTileID:a.tileID.wrapped().key,queryResults:a.tile.queryRenderedFeatures(i,r,t.getState(),a.queryGeometry,a.cameraQueryGeometry,a.scale,n,o,c,function(t,i){let r=(0,T.vi)();return(0,T.ji)(r,r,[1,1,0]),(0,T.Ai)(r,r,[.5*t.width,.5*t.height,1]),t.calculatePosMatrix?(0,T.wi)(r,r,t.calculatePosMatrix(i.toUnwrapped())):r}(o,a.tileID),s?(t,i)=>s(a.tileID,t,i):void 0)});var d=function(t){let i={},r={};for(let{queryResults:a,wrappedTileID:n}of t){r[n]||={};let t=r[n];for(let r in a){let n=a[r];t[r]||={};let o=t[r];for(let t of(i[r]||=[],n))o[t.featureIndex]||(o[t.featureIndex]=!0,i[r].push(t))}}return i}(h),f=t;for(let t in d)for(let i of d[t])eA(i,f);return d}(this.tileManagers[s],this._layers,o,t,l,r,this.map.terrain?(t,i,r)=>this.map.terrain.getElevation(t,i,r):void 0));return this.placement&&n.push(function(t,i,r,a,n,o,s){let l={},c=o.queryRenderedSymbols(a),u=[];for(let t of Object.keys(c).map(Number))u.push(s[t]);for(let r of(u.sort(eS),u)){let a=r.featureIndex.lookupSymbolFeatures(c[r.bucketInstanceId],i,r.bucketIndex,r.sourceLayerIndex,{filterSpec:n.filter,globalState:n.globalState},n.layers,n.availableImages,t);for(let t in a){l[t]||=[];let i=a[t];for(let a of(i.sort((t,i)=>{let a=r.featureSortOrder;if(a){let r=a.indexOf(t.featureIndex);return a.indexOf(i.featureIndex)-r}return i.featureIndex-t.featureIndex}),i))l[t].push(a)}}var h=l,d=t,f=r;for(let t in h)for(let i of h[t])eA(i,f[d[t].source]);return h}(this._layers,o,this.tileManagers,t,l,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(n)}querySourceFeatures(t,i){i?.filter&&this._validate(T.on.filter,"querySourceFeatures.filter",i.filter,null,i);let r=this.tileManagers[t];return r?function(t,i){let r=t.getRenderableIds().map(i=>t.getTileByID(i)),a=[],n={};for(let t of r){let r=t.tileID.canonical.key;n[r]||(n[r]=!0,t.querySourceFeatures(a,i))}return a}(r,i?{...i,globalState:this._globalState}:{globalState:this._globalState}):[]}getLight(){return this.light.getLight()}setLight(t,i={}){this._checkLoaded();let r=this.light.getLight(),a=!1;for(let i in t)if(!(0,T.qn)(t[i],r[i])){a=!0;break}if(!a)return;let n={now:E(),transition:(0,T.er)({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(t,i),this.light.updateTransitions(n)}getProjection(){return this.stylesheet?.projection}setProjection(t){this._checkLoaded();let i=t??{type:"mercator"};if(this.stylesheet.projection=t,this.projection){if(this.projection.name===i.type)return;this.projection.destroy(),delete this.projection}this._setProjectionInternal(i.type)}getSky(){return this.stylesheet?.sky}setSky(t,i={}){this._checkLoaded();let r=this.getSky(),a=!1;if(!t&&!r)return;if(t&&!r)a=!0;else if(!t&&r)a=!0;else for(let i in t)if(!(0,T.qn)(t[i],r[i])){a=!0;break}if(!a)return;let n={now:E(),transition:(0,T.er)({duration:300,delay:0},this.stylesheet.transition)};this.stylesheet.sky=t,this.sky.setSky(t,i),this.sky.updateTransitions(n)}_setProjectionInternal(t){let i=function(t,i,r){let a={constrainOverride:i};if(Array.isArray(t)){let i=new i_({type:t},r);return{projection:i,transform:new i$(a),cameraHelper:new iU(i)}}switch(t){case"mercator":return{projection:new t3,transform:new il(a),cameraHelper:new im};case"globe":{let t=new i_({type:["interpolate",["linear"],["zoom"],11,"vertical-perspective",12,"mercator"]},{});return{projection:t,transform:new i$(a),cameraHelper:new iU(t)}}case"vertical-perspective":return{projection:new iy,transform:new iB(a),cameraHelper:new iV};default:return(0,T.Nr)(`Unknown projection name: ${t}. Falling back to mercator projection.`),{projection:new t3,transform:new il(a),cameraHelper:new im}}}(t,this.map._camera?.transform.constrainOverride,this._globalState);for(let t in this.projection=i.projection,this.map.migrateProjection(i.transform,i.cameraHelper),this.tileManagers)this.tileManagers[t].reload()}_validate(t,i,r,a,n={}){return!1!==n.validate&&(0,T.an)(this,t,{key:i,style:this.serialize(),value:r,...a},n)}_remove(t=!0){for(let t in this._frameRequest&&=(this._frameRequest.abort(),null),this._loadStyleRequest&&=(this._loadStyleRequest.abort(),null),this._spriteRequest&&=(this._spriteRequest.abort(),null),eK().off(eW,this._rtlPluginLoaded),this._layers)this._layers[t].setEventedParent(null);for(let t in this.tileManagers){let i=this.tileManagers[t];i.setEventedParent(null),i.onRemove(this.map)}this.imageManager.setEventedParent(null),this.setEventedParent(null),t&&this.dispatcher.broadcast("RM",void 0),this.dispatcher.remove(t)}_clearSource(t){this.tileManagers[t].clearTiles()}_reloadSource(t){this.tileManagers[t].resume(),this.tileManagers[t].reload()}_updateSources(t){for(let i in this.tileManagers)this.tileManagers[i].update(t,this.map.terrain)}_generateCollisionBoxes(){for(let t in this.tileManagers)this._reloadSource(t)}triggerSymbolPlacement(){this._symbolPlacementTriggered=!0}_placementInputsChanged(t,i,r){let a=this.pauseablePlacement;return!a||this._symbolPlacementTriggered||this._placedProjectionTransition!==this.projection?.transitionState||a._showCollisionBoxes!==i||a.placement.collisionGroups.crossSourceCollisions!==r||a.placement.transform.renderWorldCopies!==t.renderWorldCopies||!(0,T.bi)(a.placement.transform.modelViewProjectionMatrix,t.modelViewProjectionMatrix)}_updatePlacement(t,i,r,a,n=!1){let o=!1,s=!1,l={};for(let i of this._order){let r=this._layers[i];if("symbol"!==r.type)continue;if(!l[r.source]){let t=this.tileManagers[r.source];l[r.source]=t.getRenderableIds(!0).map(i=>t.getTileByID(i)).sort((t,i)=>i.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(i.tileID)?-1:1))}let a=this.crossTileSymbolIndex.addLayer(r,l[r.source],t.center.lng);o||=a}this.crossTileSymbolIndex.pruneUnusedLayers(this._order),n||=this._layerOrderChanged||0===r;let c=o||this._placementInputsChanged(t,i,a),u=this.pauseablePlacement?.isDone()&&!this.placement.stillRecent(E(),t.zoom);if((n||!this.pauseablePlacement||u&&(c||this.placement.stale))&&(this._symbolPlacementTriggered=!1,this._placedProjectionTransition=this.projection?.transitionState,this.pauseablePlacement=new tO(t,this.map.terrain,this._order,n,i,r,a,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?c&&this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,l),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(E()),s=!0),o&&this.pauseablePlacement.placement.setStale()),s||o)for(let t of this._order){let i=this._layers[t];"symbol"===i.type&&this.placement.updateLayerOpacities(i,l[i.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(E())}_releaseSymbolFadeTiles(){for(let t in this.tileManagers)this.tileManagers[t].releaseSymbolFadeTiles()}async getImages(t,i){let r=await this.imageManager.getImages(i.icons);this._updateTilesForChangedImages();let a=this.tileManagers[i.source];return a&&a.setDependencies(i.tileID.key,i.type,i.icons),r}async getGlyphs(t,i){let r=await this.glyphManager.getGlyphs(i.stacks),a=this.tileManagers[i.source];return a&&a.setDependencies(i.tileID.key,i.type,[""]),r}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(t,i={}){this._checkLoaded(),t&&this._validate(T.on.glyphs,"glyphs",t,null,i)||(this._changed=!0,this._glyphsDidChange=!0,this.stylesheet.glyphs=t,this.glyphManager.entries={},this.glyphManager.setURL(t))}getFontFaces(){return this.stylesheet["font-faces"]||null}setFontFaces(t){this._checkLoaded(),this._changed=!0,this._glyphsDidChange=!0,this.stylesheet["font-faces"]=t,this.glyphManager.setFontFaces(t)}async getDashes(t,i){let r={};for(let[t,a]of Object.entries(i.dashes))r[t]=this.lineAtlas.getDash(a.dasharray,a.round);return r}addSprite(t,i,r={},a){this._checkLoaded();let n=[{id:t,url:i}],o=[...Q(this.stylesheet.sprite),...n];this._validate(T.on.sprite,"sprite",o,null,r)||(this.stylesheet.sprite=o,this._loadSprite(n,!0,a))}removeSprite(t){this._checkLoaded();let i=Q(this.stylesheet.sprite);if(!i.find(i=>i.id===t))return void this.fire(new T.gn(Error(`Sprite "${t}" doesn't exists on this map.`)));let r=this.imageManager.removeSpriteImages(t);this._markImagesChanged(r),i.splice(i.findIndex(i=>i.id===t),1),this.stylesheet.sprite=i.length>0?i:void 0,this._imagesListDirty=!0,this._changed=!0,this.fire(new F("data"))}getSprite(){return Q(this.stylesheet.sprite)}setSprite(t,i={},r){this._checkLoaded(),!(t&&this._validate(T.on.sprite,"sprite",t,null,i))&&(this.stylesheet.sprite=t,t?this._loadSprite(t,!0,r):(this._unloadSprite(),r&&r(null)))}destroy(){for(let t in this._frameRequest&&=(this._frameRequest.abort(),null),this._loadStyleRequest&&=(this._loadStyleRequest.abort(),null),this._spriteRequest&&=(this._spriteRequest.abort(),null),this.tileManagers){let i=this.tileManagers[t];i.setEventedParent(null),i.onRemove(this.map)}for(let t in this.tileManagers={},this.imageManager&&(this.imageManager.setEventedParent(null),this.imageManager.destroy(),this.patternAtlas.destroy()),this.glyphManager&&this.glyphManager.destroy(),this._layers){let i=this._layers[t];i.setEventedParent(null),i.onRemove&&i.onRemove(this.map)}this._setInitialValues(),this.setEventedParent(null),this.dispatcher.unregisterMessageHandler("GG"),this.dispatcher.unregisterMessageHandler("GI"),this.dispatcher.unregisterMessageHandler("GDA"),this.dispatcher.remove(!0),this._listeners={},this._oneTimeListeners={}}};let iZ=(0,T.Yt)([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);var iH=class{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(t,i,r,a,n,o,s,l,c){this.context=t;let u=this.boundPaintVertexBuffers.length!==a.length;for(let t=0;!u&&t<a.length;t++)this.boundPaintVertexBuffers[t]!==a[t]&&(u=!0);!this.vao||this.boundProgram!==i||this.boundLayoutVertexBuffer!==r||u||this.boundIndexBuffer!==n||this.boundVertexOffset!==o||this.boundDynamicVertexBuffer!==s||this.boundDynamicVertexBuffer2!==l||this.boundDynamicVertexBuffer3!==c?this.freshBind(i,r,a,n,o,s,l,c):t.bindVertexArray.set(this.vao)}freshBind(t,i,r,a,n,o,s,l){let c=t.numAttributes,u=this.context,h=u.gl;for(let c of(this.vao&&this.destroy(),this.vao=u.createVertexArray(),u.bindVertexArray.set(this.vao),this.boundProgram=t,this.boundLayoutVertexBuffer=i,this.boundPaintVertexBuffers=r,this.boundIndexBuffer=a,this.boundVertexOffset=n,this.boundDynamicVertexBuffer=o,this.boundDynamicVertexBuffer2=s,this.boundDynamicVertexBuffer3=l,i.enableAttributes(h,t),r))c.enableAttributes(h,t);for(let a of(o&&o.enableAttributes(h,t),s&&s.enableAttributes(h,t),l&&l.enableAttributes(h,t),i.bind(),i.setVertexAttribPointers(h,t,n),r))a.bind(),a.setVertexAttribPointers(h,t,n);o&&(o.bind(),o.setVertexAttribPointers(h,t,n)),a&&a.bind(),s&&(s.bind(),s.setVertexAttribPointers(h,t,n)),l&&(l.bind(),l.setVertexAttribPointers(h,t,n)),u.currentNumAttributes=c}destroy(){this.vao&&=(this.context.deleteVertexArray(this.vao),null)}};let iW=(t,i,r,a,n)=>({u_texture:0,u_ele_delta:t,u_fog_matrix:i,u_fog_color:r?r.properties.get("fog-color"):T.fn.white,u_fog_ground_blend:r?r.properties.get("fog-ground-blend"):1,u_fog_ground_blend_opacity:n?0:r?r.calculateFogBlendOpacity(a):0,u_horizon_color:r?r.properties.get("horizon-color"):T.fn.white,u_horizon_fog_blend:r?r.properties.get("horizon-fog-blend"):1,u_is_globe_mode:+!!n}),iX=t=>({u_ele_delta:t}),iY={ProjectionUBO:0,TerrainUBO:1,FrameUBO:2},iK={float:[1,1],int:[1,1],vec2:[2,2],vec4:[4,4],mat4:[16,4]};function iJ(t){let i={},r=0;for(let{name:a,type:n}of t){let[t,o]=iK[n];r=Math.ceil(r/o)*o,i[a]=r,r+=t}return{offsets:i,contentWords:r,sizeWords:4*Math.ceil(r/4)}}var iQ=class{constructor(t,i,r){this.context=t,this.binding=i,this.contentWords=r.contentWords;let a=t.gl;this.buffer=a.createBuffer(),a.bindBuffer(a.UNIFORM_BUFFER,this.buffer),a.bufferData(a.UNIFORM_BUFFER,4*r.sizeWords,a.DYNAMIC_DRAW),a.bindBufferBase(a.UNIFORM_BUFFER,i,this.buffer),this.uploaded=new Float32Array(r.sizeWords),this.pending=new Float32Array(r.sizeWords),this.uploadedWords=new Uint32Array(this.uploaded.buffer),this.pendingWords=new Uint32Array(this.pending.buffer),this.hasData=!1,this.bindingDirty=!1}upload(){let t=this.context.gl,i=!this.hasData;if(!i){let t=this.pendingWords,r=this.uploadedWords;for(let a=0;a<this.contentWords;a++)if(t[a]!==r[a]){i=!0;break}}this.bind(),i&&(t.bindBuffer(t.UNIFORM_BUFFER,this.buffer),t.bufferSubData(t.UNIFORM_BUFFER,0,this.pending),this.uploaded.set(this.pending),this.hasData=!0)}bind(){if(!this.bindingDirty)return;let t=this.context.gl;t.bindBufferBase(t.UNIFORM_BUFFER,this.binding,this.buffer),this.bindingDirty=!1}destroy(){let t=this.context.gl;this.buffer&&(t.deleteBuffer(this.buffer),delete this.buffer)}};let i1=iJ([{name:"u_projection_matrix",type:"mat4"},{name:"u_projection_fallback_matrix",type:"mat4"},{name:"u_projection_tile_mercator_coords",type:"vec4"},{name:"u_projection_clipping_plane",type:"vec4"},{name:"u_projection_transition",type:"float"},{name:"u_projection_clip_antimeridian",type:"int"}]),i0=i1.offsets,i2=iJ([{name:"u_terrain_matrix",type:"mat4"},{name:"u_terrain_unpack",type:"vec4"},{name:"u_terrain_dim",type:"float"},{name:"u_terrain_exaggeration",type:"float"}]),i3=i2.offsets;function i5(t){let i=[];for(let r of t){if(null===r)continue;let t=r.split(" ");i.push(t.pop())}return i}var i4=class{constructor(t,i,r,a,n,o,s,l,c=[]){let u=t.gl;this.program=u.createProgram();let h=i5(i.staticAttributes),d=r?r.getBinderAttributes():[],f=h.c
1176oncat(d),p=tQ.prelude.staticUniforms?i5(tQ.prelude.staticUniforms):[],m=i.staticUniforms?i5(i.staticUniforms):[],g=r?r.getBinderUniforms():[],y=p.concat(m).concat(g),_=[];for(let t of y)_.includes(t)||_.push(t);let v=r?r.defines():[];v.unshift("#version 300 es"),n&&v.push("#define OVERDRAW_INSPECTOR;"),o&&v.push("#define TERRAIN3D;"),l&&v.push(l),c&&v.push(...c);let b=v.concat(tQ.prelude.fragmentSource,s.fragmentSource,i.fragmentSource).join(`
1177`),x=v.concat(tQ.prelude.vertexSource,s.vertexSource,i.vertexSource).join(`
1178`),w=u.createShader(u.FRAGMENT_SHADER);if(u.isContextLost()){this.failedToCreate=!0;return}u.shaderSource(w,b),u.compileShader(w),u.attachShader(this.program,w);let k=u.createShader(u.VERTEX_SHADER);if(u.isContextLost()){this.failedToCreate=!0;return}u.shaderSource(k,x),u.compileShader(k),u.attachShader(this.program,k),this.attributes={};let S={};if(this.numAttributes=f.length,u.linkProgram(this.program),!u.getProgramParameter(this.program,u.LINK_STATUS)){if(u.isContextLost()){this.failedToCreate=!0;return}throw u.getShaderParameter(w,u.COMPILE_STATUS)?u.getShaderParameter(k,u.COMPILE_STATUS)?Error(`Program failed to link: ${u.getProgramInfoLog(this.program)}`):Error(`Could not compile vertex shader: ${u.getShaderInfoLog(k)}`):Error(`Could not compile fragment shader: ${u.getShaderInfoLog(w)}`)}var A=this.program;for(let[t,i]of Object.entries(iY)){let r=u.getUniformBlockIndex(A,t);r!==u.INVALID_INDEX&&u.uniformBlockBinding(A,r,i)}let C=function(t,i){let r=new Set([t.INT,t.INT_VEC2,t.INT_VEC3,t.INT_VEC4,t.UNSIGNED_INT,t.UNSIGNED_INT_VEC2,t.UNSIGNED_INT_VEC3,t.UNSIGNED_INT_VEC4]),a=new Set,n=t.getProgramParameter(i,t.ACTIVE_ATTRIBUTES);for(let o=0;o<n;o++){let n=t.getActiveAttrib(i,o);n&&r.has(n.type)&&a.add(n.name)}return a}(u,this.program);for(let t of f){if(!t)continue;let i=u.getAttribLocation(this.program,t);i>=0&&(this.attributes[t]={location:i,isInteger:C.has(t)})}for(let t of(u.deleteShader(k),u.deleteShader(w),_))if(t&&!S[t]){let i=u.getUniformLocation(this.program,t);i&&(S[t]=i)}this.fixedUniforms=a(t,S),this.terrainUniforms={u_depth:new T.Mt(t,S.u_depth),u_terrain:new T.Mt(t,S.u_terrain)},this.binderUniforms=r?r.getUniforms(t,S):[]}draw(t,i,r,a,n,o,s,l,c,u,h,d,f,p,m,g,y,_,v){var b,x;let w,k=t.gl;if(this.failedToCreate)return;if(t.program.set(this.program),t.projectionUniformBuffer.bind(),t.terrainUniformBuffer.bind(),t.frameUniformBuffer.bind(),t.setDepthMode(r),t.setStencilMode(a),t.setColorMode(n),t.setCullFace(o),l){let i;for(let i in t.activeTexture.set(k.TEXTURE2),k.bindTexture(k.TEXTURE_2D,l.depthTexture),t.activeTexture.set(k.TEXTURE3),k.bindTexture(k.TEXTURE_2D,l.texture),this.terrainUniforms)this.terrainUniforms[i].set(l[i]);b=t.terrainUniformBuffer,(i=b.pending).set(l.u_terrain_matrix,i3.u_terrain_matrix),i.set(l.u_terrain_unpack,i3.u_terrain_unpack),i[i3.u_terrain_dim]=l.u_terrain_dim,i[i3.u_terrain_exaggeration]=l.u_terrain_exaggeration,b.upload()}if(c&&(x=t.projectionUniformBuffer,(w=x.pending).set(c.mainMatrix,i0.u_projection_matrix),w.set(c.fallbackMatrix,i0.u_projection_fallback_matrix),w.set(c.tileMercatorCoords,i0.u_projection_tile_mercator_coords),w.set(c.clippingPlane,i0.u_projection_clipping_plane),w[i0.u_projection_transition]=c.projectionTransition,x.pendingWords[i0.u_projection_clip_antimeridian]=+!!c.clipAntimeridian,x.upload()),s)for(let t in this.fixedUniforms)this.fixedUniforms[t].set(s[t]);g&&g.setUniforms(t,this.binderUniforms,p,{zoom:m});let T=0;switch(i){case k.LINES:T=2;break;case k.TRIANGLES:T=3;break;case k.LINE_STRIP:T=1}for(let r of f.get())r.vaos||={},r.vaos[u]||=new iH,r.vaos[u].bind(t,this,h,g?g.getPaintVertexBuffers():[],d,r.vertexOffset,y,_,v),k.drawElements(i,r.primitiveLength*T,k.UNSIGNED_SHORT,r.primitiveOffset*T*2)}};function i6(t,i,r){let a=1/(0,T.Ir)(r,1,i.transform.tileZoom),n=2**r.tileID.overscaledZ,o=r.tileSize*2**i.transform.tileZoom/n,s=o*(r.tileID.canonical.x+r.tileID.wrap*n),l=o*r.tileID.canonical.y;return{u_image:0,u_texsize:r.imageAtlasTexture.size,u_scale:[a,t.fromScale,t.toScale],u_fade:t.t,u_pixel_coord_upper:[s>>16,l>>16],u_pixel_coord_lower:[65535&s,65535&l]}}let i8=(t,i,r,a)=>{let n=t.style.light,o=n.getCartesianPosition(),s=(0,T.Mi)();"viewport"===n.properties.get("anchor")&&(0,T.Ni)(s,t.transform.bearingInRadians),(0,T.fi)(o,o,s);let l=t.transform.transformLightDirection(o),c=n.properties.get("color");return{u_lightpos:o,u_lightpos_globe:l,u_lightintensity:n.properties.get("intensity"),u_lightcolor:[c.r,c.g,c.b],u_vertical_gradient:+i,u_opacity:r,u_fill_translate:a}},i7=(t,i,r,a,n,o,s)=>
1178(0,T.er)(i8(t,i,r,a),i6(o,t,s),{u_height_factor:-(2**n.overscaledZ)/s.tileSize/8}),i9=(t,i,r,a,n)=>(0,T.er)(i6(i,t,r),{u_fill_translate:a,u_sdf_pattern:+!!n}),re=t=>({u_fill_translate:t}),rt=t=>({u_fill_translate:t}),ri=(t,i,r,a,n)=>i9(t,i,r,a,n),rr=(t,i,r,a,n)=>{let o=t.transform,s,l,c=0;if("map"===r.paint.get("circle-pitch-alignment")){let t=(0,T.Ir)(i,1,o.zoom);s=!0,l=[t,t],c=t/(8192*2**i.tileID.overscaledZ)*2*Math.PI*n}else s=!1,l=o.pixelsToGLUnits;return{u_scale_with_map:+("map"===r.paint.get("circle-pitch-scale")),u_pitch_with_map:+s,u_extrude_scale:l,u_globe_extrude_scale:c,u_translate:a}},ra=(t,i=1)=>({u_color:t,u_overlay:0,u_overlay_scale:i}),rn=(t,i,r,a)=>{let n=(0,T.Ir)(t,1,i)/(8192*2**t.tileID.overscaledZ)*2*Math.PI*a;return{u_extrude_scale:(0,T.Ir)(t,1,i),u_intensity:r,u_globe_extrude_scale:n}},ro=(t,i,r,a)=>{let n=(0,T.vi)();return(0,T.Ti)(n,0,t.width,t.height,0,0,1),{u_matrix:n,u_image:r,u_color_ramp:a,u_opacity:i.paint.get("heatmap-opacity")}},rs=(t,i,r)=>{var a;let n,o,s=r.paint.get("hillshade-accent-color"),l;switch(r.paint.get("hillshade-method")){case"basic":l=4;break;case"combined":l=1;break;case"igor":l=2;break;case"multidirectional":l=3;break;default:l=0}let c=r.getIlluminationProperties();for(let i=0;i<c.directionRadians.length;i++)"viewport"===r.paint.get("hillshade-illumination-anchor")&&(c.directionRadians[i]+=t.transform.bearingInRadians);return{u_image:0,u_latrange:(a=i.tileID,n=2**a.canonical.z,o=a.canonical.y,[new T.nt(0,o/n).toLngLat().lat,new T.nt(0,(o+1)/n).toLngLat().lat]),u_exaggeration:r.paint.get("hillshade-exaggeration"),u_altitudes:c.altitudeRadians,u_azimuths:c.directionRadians,u_accent:s,u_method:l,u_highlights:c.highlightColor,u_shadows:c.shadowColor}},rl=(t,i)=>{let r=i.stride,a=(0,T.vi)();return(0,T.Ti)(a,0,8192,-8192,0,0,1),(0,T.ji)(a,a,[0,-8192,0]),{u_matrix:a,u_image:1,u_dimension:[r,r],u_zoom:t.overscaledZ,u_unpack:i.getUnpackVector()}},rc=(t,i,r=0)=>({u_image:0,u_unpack:i.getUnpackVector(),u_dimension:[i.stride,i.stride],u_elevation_stops:1,u_color_stops:4,u_color_ramp_size:r,u_opacity:t.paint.get("color-relief-opacity")}),ru=(t,i,r,a)=>{let n=t.transform;return{u_translation:rg(t,i,r),u_ratio:a/(0,T.Ir)(i,1,n.zoom)}},rh=(t,i,r,a,n)=>(0,T.er)(ru(t,i,r,a),{u_image:0,u_image_height:n}),rd=(t,i,r,a,n)=>{let o=t.transform,s=rm(i,o);return{u_translation:rg(t,i,r),u_texsize:i.imageAtlasTexture.size,u_ratio:a/(0,T.Ir)(i,1,o.zoom),u_image:0,u_scale:[s,n.fromScale,n.toScale],u_fade:n.t}},rf=(t,i,r,a,n)=>{let o=rm(i,t.transform);return(0,T.er)(ru(t,i,r,a),{u_tileratio:o,u_crossfade_from:n.fromScale,u_crossfade_to:n.toScale,u_image:0,u_mix:n.t,u_lineatlas_width:t.lineAtlas.width,u_lineatlas_height:t.lineAtlas.height})},rp=(t,i,r,a,n,o)=>{let s=rm(i,t.transform);return(0,T.er)(ru(t,i,r,a),{u_image:0,u_image_height:o,u_tileratio:s,u_crossfade_from:n.fromScale,u_crossfade_to:n.toScale,u_image_dash:1,u_mix:n.t,u_lineatlas_width:t.lineAtlas.width,u_lineatlas_height:t.lineAtlas.height})};function rm(t,i){return 1/(0,T.Ir)(t,1,i.tileZoom)}function rg(t,i,r){return(0,T.jr)(t.transform,i,r.paint.get("line-translate"),r.paint.get("line-translate-anchor"))}let ry=(t,i,r,a,n,o,s,l,c,u,h,d,f,p,m)=>({u_is_size_zoom_constant:+("constant"===t||"source"===t),u_is_size_feature_constant:+("constant"===t||"camera"===t),u_size_t:i?i.uSizeT:0,u_size:i?i.uSize:0,u_rotate_symbol:+r,u_label_plane_matrix:l,u_coord_matrix:c,u_is_text:+h,u_pitch_with_map:+a,u_is_along_line:n,u_is_variable_anchor:o,u_texsize:d,u_texture:0,u_translation:u,u_pitched_scale:f,u_is_offset:p,u_height_anchor_ground:+m}),r_=(t,i,r,a,n,o,s,l,c,u,h,d,f,p,m,g)=>{let y=s.transform;return(0,T.er)(ry(t,i,r,a,n,o,s,l,c,u,h,d,p,m,g),{u_gamma_scale:a?Math.cos(y.pitch*Math.PI/180)*y.cameraToCenterDistance:1,u_is_halo:+!!f,u_is_plain:1})},rv=(t,i,r,a,n,o,s,l,c,u,h,d,f,p,m)=>(0,T.er)(r_(t,i,r,a,n,o,s,l,c,u,!0,h,!0,f,p,m),{u_texsize_icon:d,u_texture_icon:1}),rb=(t,i)=>({u_opacity:t,u_color:i}),rx=(t,i,r,a,n)=>(0,T.er)(function(t,i,r,a){let n=r.patternAtlas.getPattern(t.from.toString()),o=r.patternAtlas.getPattern(t.to.toString()),{width:s,height:l}=r.patternAtlas.getPixelSize(),c=2**a.tileID.overscaledZ,u=a.tileSize*2**r.transform.tileZoom/c,h=u*(a.tileID.canonical.x+a.tileID.wrap*c),d=u*a.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:n.tl,u_pattern_br_a:n.br,u_pattern_tl_b:o.tl,u_pattern_br_b:o.br,u_texsize:[s,l],u_mix:i.t,u_pattern_size_a:n.displaySize,u_pattern_size_b:
1178o.displaySize,u_scale_a:i.fromScale,u_scale_b:i.toScale,u_tile_units_to_pixels:1/(0,T.Ir)(a,1,r.transform.tileZoom),u_pixel_coord_upper:[h>>16,d>>16],u_pixel_coord_lower:[65535&h,65535&d]}}(r,n,i,a),{u_opacity:t}),rw=(t,i)=>({}),rk={fillExtrusion:(t,i)=>({u_lightpos:new T.Pt(t,i.u_lightpos),u_lightpos_globe:new T.Pt(t,i.u_lightpos_globe),u_lightintensity:new T.jt(t,i.u_lightintensity),u_lightcolor:new T.Pt(t,i.u_lightcolor),u_vertical_gradient:new T.jt(t,i.u_vertical_gradient),u_opacity:new T.jt(t,i.u_opacity),u_fill_translate:new T.Nt(t,i.u_fill_translate)}),fillExtrusionPattern:(t,i)=>({u_lightpos:new T.Pt(t,i.u_lightpos),u_lightpos_globe:new T.Pt(t,i.u_lightpos_globe),u_lightintensity:new T.jt(t,i.u_lightintensity),u_lightcolor:new T.Pt(t,i.u_lightcolor),u_vertical_gradient:new T.jt(t,i.u_vertical_gradient),u_height_factor:new T.jt(t,i.u_height_factor),u_opacity:new T.jt(t,i.u_opacity),u_fill_translate:new T.Nt(t,i.u_fill_translate),u_image:new T.Mt(t,i.u_image),u_texsize:new T.Nt(t,i.u_texsize),u_pixel_coord_upper:new T.Nt(t,i.u_pixel_coord_upper),u_pixel_coord_lower:new T.Nt(t,i.u_pixel_coord_lower),u_scale:new T.Pt(t,i.u_scale),u_fade:new T.jt(t,i.u_fade)}),fill:(t,i)=>({u_fill_translate:new T.Nt(t,i.u_fill_translate)}),fillPattern:(t,i)=>({u_image:new T.Mt(t,i.u_image),u_texsize:new T.Nt(t,i.u_texsize),u_pixel_coord_upper:new T.Nt(t,i.u_pixel_coord_upper),u_pixel_coord_lower:new T.Nt(t,i.u_pixel_coord_lower),u_scale:new T.Pt(t,i.u_scale),u_fade:new T.jt(t,i.u_fade),u_sdf_pattern:new T.Mt(t,i.u_sdf_pattern),u_fill_translate:new T.Nt(t,i.u_fill_translate)}),fillOutline:(t,i)=>({u_fill_translate:new T.Nt(t,i.u_fill_translate)}),fillOutlinePattern:(t,i)=>({u_image:new T.Mt(t,i.u_image),u_texsize:new T.Nt(t,i.u_texsize),u_pixel_coord_upper:new T.Nt(t,i.u_pixel_coord_upper),u_pixel_coord_lower:new T.Nt(t,i.u_pixel_coord_lower),u_scale:new T.Pt(t,i.u_scale),u_fade:new T.jt(t,i.u_fade),u_sdf_pattern:new T.Mt(t,i.u_sdf_pattern),u_fill_translate:new T.Nt(t,i.u_fill_translate)}),circle:(t,i)=>({u_scale_with_map:new T.Mt(t,i.u_scale_with_map),u_pitch_with_map:new T.Mt(t,i.u_pitch_with_map),u_extrude_scale:new T.Nt(t,i.u_extrude_scale),u_globe_extrude_scale:new T.jt(t,i.u_globe_extrude_scale),u_translate:new T.Nt(t,i.u_translate)}),collisionBox:rw,collisionCircle:rw,debug:(t,i)=>({u_color:new T.It(t,i.u_color),u_overlay:new T.Mt(t,i.u_overlay),u_overlay_scale:new T.jt(t,i.u_overlay_scale)}),depth:rw,clippingMask:rw,heatmap:(t,i)=>({u_extrude_scale:new T.jt(t,i.u_extrude_scale),u_intensity:new T.jt(t,i.u_intensity),u_globe_extrude_scale:new T.jt(t,i.u_globe_extrude_scale)}),heatmapTexture:(t,i)=>({u_matrix:new T.zt(t,i.u_matrix),u_image:new T.Mt(t,i.u_image),u_color_ramp:new T.Mt(t,i.u_color_ramp),u_opacity:new T.jt(t,i.u_opacity)}),hillshade:(t,i)=>({u_image:new T.Mt(t,i.u_image),u_latrange:new T.Nt(t,i.u_latrange),u_exaggeration:new T.jt(t,i.u_exaggeration),u_altitudes:new T.Rt(t,i.u_altitudes),u_azimuths:new T.Rt(t,i.u_azimuths),u_accent:new T.It(t,i.u_accent),u_method:new T.Mt(t,i.u_method),u_shadows:new T.Lt(t,i.u_shadows),u_highlights:new T.Lt(t,i.u_highlights)}),hillshadePrepare:(t,i)=>({u_matrix:new T.zt(t,i.u_matrix),u_image:new T.Mt(t,i.u_image),u_dimension:new T.Nt(t,i.u_dimension),u_zoom:new T.jt(t,i.u_zoom),u_unpack:new T.Ft(t,i.u_unpack)}),colorRelief:(t,i)=>({u_image:new T.Mt(t,i.u_image),u_unpack:new T.Ft(t,i.u_unpack),u_dimension:new T.Nt(t,i.u_dimension),u_elevation_stops:new T.Mt(t,i.u_elevation_stops),u_color_stops:new T.Mt(t,i.u_color_stops),u_color_ramp_size:new T.Mt(t,i.u_color_ramp_size),u_opacity:new T.jt(t,i.u_opacity)}),line:(t,i)=>({u_translation:new T.Nt(t,i.u_translation),u_ratio:new T.jt(t,i.u_ratio)}),lineGradient:(t,i)=>({u_translation:new T.Nt(t,i.u_translation),u_ratio:new T.jt(t,i.u_ratio),u_image:new T.Mt(t,i.u_image),u_image_height:new T.jt(t,i.u_image_height)}),linePattern:(t,i)=>({u_translation:new T.Nt(t,i.u_translation),u_texsize:new T.Nt(t,i.u_texsize),u_ratio:new T.jt(t,i.u_ratio),u_image:new T.Mt(t,i.u_image),u_scale:new T.Pt(t,i.u_scale),u_fade:new T.jt(t,i.u_fade)}),lineSDF:(t,i)=>({u_translation:new T.Nt(t,i.u_translation),u_ratio:new T.jt(t,i.u_ratio),u_image:new T.Mt(t,i.u_image),u_mix:new T.jt(t,i.u_mix),u_tileratio:new T.jt(t,i.u_tileratio),u_crossfade_from:new T.jt(t,i.u_crossfade_from),u_crossfade_to:new T.jt(t,i.u_crossfade_to),u_lineatlas_width:new T.jt(t,i.u_lineatlas_width),u_lineatlas_height:new T.jt(t,i.u_lineatlas_height)}),lineGradientSDF:(t,i)=>({u_translation:new T.Nt(t,i.u_translation),u_ratio:new T.jt(t,i.u_ratio),u_image:new T.Mt(t,i.u_image),u_image_height:new T.jt(t,i.u_image_height),u_tileratio:new T.jt(t,i.u_tileratio),u_crossfade_from:new T.jt(t,i.u_crossfade_from),u_crossfade_to:new T.jt(t,i.u_crossfade_to),u_image_dash:new T.Mt(t,i.u_image_dash),u_mix:new T.jt(t,i.u_mix),u_lineatlas_width:new T.jt(t,i.u_lineatlas_width),u_lineatlas_height:new T.jt(t,i.u_lineatlas_height)}),layerOpacity:(t,i)=>({u_image:new T.Mt(t,i.u_image),u_opacity:new T.jt(t,i.u_opacity)}),raster:(t,i)=>({u_tl_parent:new T.Nt(t,i.u_tl_parent),u_scale_parent:new T.jt(t,i.u_scale_parent),u_buffer_scale:new T.jt(t,i.u_buffer_scale),u_image_warp:new T.Pt(t,i.u_image_warp),u_fade_t:new T.jt(t,i.u_fade_t),u_opacity:new T.jt(t,i.u_opacity),u_image0:new T.Mt(t,i.u_image0),u_image1:new T.Mt(t,i.u_image1),u_brightness_low:new T.jt(t,i.u_brightness_low),u_brightness_high:new T.jt(t,i.u_brightness_high),u_saturation_factor:new T.jt(t,i.u_saturation_factor),u_contrast_factor:new T.jt(t,i.u_contrast_factor),u_spin_weights:new T.Pt(t,i.u_spin_weights),u_coords_top:new T.Ft(t,i.u_coords_top),u_coords_bottom:new T.Ft(t,i.u_coords_bottom)}),symbolIcon:(t,i)=>({u_is_size_zoom_constant:new T.Mt(t,i.u_is_size_zoom_constant),u_is_size_feature_constant:new T.Mt(t,i.u_is_size_feature_constant),u_size_t:new T.jt(t,i.u_size_t),u_size:new T.jt(t,i.u_size),u_rotate_symbol:new T.Mt(t,i.u_rotate_symbol),u_label_plane_matrix:new T.zt(t,
1178i.u_label_plane_matrix),u_coord_matrix:new T.zt(t,i.u_coord_matrix),u_is_text:new T.Mt(t,i.u_is_text),u_pitch_with_map:new T.Mt(t,i.u_pitch_with_map),u_is_along_line:new T.Mt(t,i.u_is_along_line),u_is_variable_anchor:new T.Mt(t,i.u_is_variable_anchor),u_texsize:new T.Nt(t,i.u_texsize),u_texture:new T.Mt(t,i.u_texture),u_translation:new T.Nt(t,i.u_translation),u_pitched_scale:new T.jt(t,i.u_pitched_scale),u_is_offset:new T.Mt(t,i.u_is_offset),u_height_anchor_ground:new T.Mt(t,i.u_height_anchor_ground)}),symbolSDF:(t,i)=>({u_is_size_zoom_constant:new T.Mt(t,i.u_is_size_zoom_constant),u_is_size_feature_constant:new T.Mt(t,i.u_is_size_feature_constant),u_size_t:new T.jt(t,i.u_size_t),u_size:new T.jt(t,i.u_size),u_rotate_symbol:new T.Mt(t,i.u_rotate_symbol),u_label_plane_matrix:new T.zt(t,i.u_label_plane_matrix),u_coord_matrix:new T.zt(t,i.u_coord_matrix),u_is_text:new T.Mt(t,i.u_is_text),u_pitch_with_map:new T.Mt(t,i.u_pitch_with_map),u_is_along_line:new T.Mt(t,i.u_is_along_line),u_is_variable_anchor:new T.Mt(t,i.u_is_variable_anchor),u_texsize:new T.Nt(t,i.u_texsize),u_texture:new T.Mt(t,i.u_texture),u_gamma_scale:new T.jt(t,i.u_gamma_scale),u_is_halo:new T.Mt(t,i.u_is_halo),u_is_plain:new T.Mt(t,i.u_is_plain),u_translation:new T.Nt(t,i.u_translation),u_pitched_scale:new T.jt(t,i.u_pitched_scale),u_is_offset:new T.Mt(t,i.u_is_offset),u_height_anchor_ground:new T.Mt(t,i.u_height_anchor_ground)}),symbolTextAndIcon:(t,i)=>({u_is_size_zoom_constant:new T.Mt(t,i.u_is_size_zoom_constant),u_is_size_feature_constant:new T.Mt(t,i.u_is_size_feature_constant),u_size_t:new T.jt(t,i.u_size_t),u_size:new T.jt(t,i.u_size),u_rotate_symbol:new T.Mt(t,i.u_rotate_symbol),u_label_plane_matrix:new T.zt(t,i.u_label_plane_matrix),u_coord_matrix:new T.zt(t,i.u_coord_matrix),u_is_text:new T.Mt(t,i.u_is_text),u_pitch_with_map:new T.Mt(t,i.u_pitch_with_map),u_is_along_line:new T.Mt(t,i.u_is_along_line),u_is_variable_anchor:new T.Mt(t,i.u_is_variable_anchor),u_texsize:new T.Nt(t,i.u_texsize),u_texsize_icon:new T.Nt(t,i.u_texsize_icon),u_texture:new T.Mt(t,i.u_texture),u_texture_icon:new T.Mt(t,i.u_texture_icon),u_gamma_scale:new T.jt(t,i.u_gamma_scale),u_is_halo:new T.Mt(t,i.u_is_halo),u_translation:new T.Nt(t,i.u_translation),u_pitched_scale:new T.jt(t,i.u_pitched_scale),u_is_offset:new T.Mt(t,i.u_is_offset),u_height_anchor_ground:new T.Mt(t,i.u_height_anchor_ground)}),background:(t,i)=>({u_opacity:new T.jt(t,i.u_opacity),u_color:new T.It(t,i.u_color)}),backgroundPattern:(t,i)=>({u_opacity:new T.jt(t,i.u_opacity),u_image:new T.Mt(t,i.u_image),u_pattern_tl_a:new T.Nt(t,i.u_pattern_tl_a),u_pattern_br_a:new T.Nt(t,i.u_pattern_br_a),u_pattern_tl_b:new T.Nt(t,i.u_pattern_tl_b),u_pattern_br_b:new T.Nt(t,i.u_pattern_br_b),u_texsize:new T.Nt(t,i.u_texsize),u_mix:new T.jt(t,i.u_mix),u_pattern_size_a:new T.Nt(t,i.u_pattern_size_a),u_pattern_size_b:new T.Nt(t,i.u_pattern_size_b),u_scale_a:new T.jt(t,i.u_scale_a),u_scale_b:new T.jt(t,i.u_scale_b),u_pixel_coord_upper:new T.Nt(t,i.u_pixel_coord_upper),u_pixel_coord_lower:new T.Nt(t,i.u_pixel_coord_lower),u_tile_units_to_pixels:new T.jt(t,i.u_tile_units_to_pixels)}),terrain:(t,i)=>({u_texture:new T.Mt(t,i.u_texture),u_ele_delta:new T.jt(t,i.u_ele_delta),u_fog_matrix:new T.zt(t,i.u_fog_matrix),u_fog_color:new T.It(t,i.u_fog_color),u_fog_ground_blend:new T.jt(t,i.u_fog_ground_blend),u_fog_ground_blend_opacity:new T.jt(t,i.u_fog_ground_blend_opacity),u_horizon_color:new T.It(t,i.u_horizon_color),u_horizon_fog_blend:new T.jt(t,i.u_horizon_fog_blend),u_is_globe_mode:new T.jt(t,i.u_is_globe_mode)}),terrainDepth:(t,i)=>({u_ele_delta:new T.jt(t,i.u_ele_delta)}),atmosphere:(t,i)=>({u_sun_pos:new T.Pt(t,i.u_sun_pos),u_atmosphere_blend:new T.jt(t,i.u_atmosphere_blend),u_globe_position:new T.Pt(t,i.u_globe_position),u_globe_radius:new T.jt(t,i.u_globe_radius),u_inv_proj_matrix:new T.zt(t,i.u_inv_proj_matrix)}),sky:(t,i)=>({u_sky_color:new T.It(t,i.u_sky_color),u_horizon_color:new T.It(t,i.u_horizon_color),u_horizon:new T.Nt(t,i.u_horizon),u_horizon_normal:new T.Nt(t,i.u_horizon_normal),u_sky_horizon_blend:new T.jt(t,i.u_sky_horizon_blend),u_sky_blend:new T.jt(t,i.u_sky_blend),u_inv_proj_matrix:new T.zt(t,
vendor: 9,080 bytes, line 1178
1178i.u_inv_proj_matrix),u_globe_position:new T.Pt(t,i.u_globe_position),u_globe_radius:new T.jt(t,i.u_globe_radius)})};var rT=class{constructor(t,i,r){this.context=t;let a=t.gl;this.buffer=a.createBuffer(),this.dynamicDraw=!!r,this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),a.bufferData(a.ELEMENT_ARRAY_BUFFER,i.arrayBuffer,this.dynamicDraw?a.DYNAMIC_DRAW:a.STATIC_DRAW),this.dynamicDraw||i.freeBufferAfterUpload()}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(t){let i=this.context.gl;if(!this.dynamicDraw)throw Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),i.bufferSubData(i.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)}destroy(){let t=this.context.gl;this.buffer&&(t.deleteBuffer(this.buffer),delete this.buffer)}};let rS={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};var rA=class{constructor(t,i,r,a){this.length=i.length,this.attributes=r,this.itemSize=i.bytesPerElement,this.dynamicDraw=a,this.context=t;let n=t.gl;this.buffer=n.createBuffer(),t.bindVertexBuffer.set(this.buffer),n.bufferData(n.ARRAY_BUFFER,i.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||i.freeBufferAfterUpload()}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(t){if(t.length!==this.length)throw Error(`Length of new data is ${t.length}, which doesn't match current length of ${this.length}`);let i=this.context.gl;this.bind(),i.bufferSubData(i.ARRAY_BUFFER,0,t.arrayBuffer)}enableAttributes(t,i){for(let r of this.attributes){let a=i.attributes[r.name];void 0!==a&&t.enableVertexAttribArray(a.location)}}setVertexAttribPointers(t,i,r){for(let a of this.attributes){let n=i.attributes[a.name];if(void 0!==n){let i=a.offset+this.itemSize*(r||0);n.isInteger?t.vertexAttribIPointer(n.location,a.components,t[rS[a.type]],this.itemSize,i):t.vertexAttribPointer(n.location,a.components,t[rS[a.type]],!1,this.itemSize,i)}}}destroy(){let t=this.context.gl;this.buffer&&(t.deleteBuffer(this.buffer),delete this.buffer)}},rC=class{constructor(t){this.gl=t.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(t){}getDefault(){return this.default}setDefault(){this.set(this.default)}},rE=class extends rC{getDefault(){return T.fn.transparent}set(t){let i=this.current;(t.r!==i.r||t.g!==i.g||t.b!==i.b||t.a!==i.a||this.dirty)&&(this.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)}},rM=class extends rC{getDefault(){return 1}set(t){(t!==this.current||this.dirty)&&(this.gl.clearDepth(t),this.current=t,this.dirty=!1)}},rP=class extends rC{getDefault(){return 0}set(t){(t!==this.current||this.dirty)&&(this.gl.clearStencil(t),this.current=t,this.dirty=!1)}},rD=class extends rC{getDefault(){return[!0,!0,!0,!0]}set(t){let i=this.current;(t[0]!==i[0]||t[1]!==i[1]||t[2]!==i[2]||t[3]!==i[3]||this.dirty)&&(this.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)}},rI=class extends rC{getDefault(){return!0}set(t){(t!==this.current||this.dirty)&&(this.gl.depthMask(t),this.current=t,this.dirty=!1)}},rz=class extends rC{getDefault(){return 255}set(t){(t!==this.current||this.dirty)&&(this.gl.stencilMask(t),this.current=t,this.dirty=!1)}},rL=class extends rC{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(t){let i=this.current;(t.func!==i.func||t.ref!==i.ref||t.mask!==i.mask||this.dirty)&&(this.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t,this.dirty=!1)}},rF=class extends rC{getDefault(){let t=this.gl;return[t.KEEP,t.KEEP,t.KEEP]}set(t){let i=this.current;(t[0]!==i[0]||t[1]!==i[1]||t[2]!==i[2]||this.dirty)&&(this.gl.stencilOp(t[0],t[1],t[2]),this.current=t,this.dirty=!1)}},rR=class extends rC{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;let i=this.gl;t?i.enable(i.STENCIL_TEST):i.disable(i.STENCIL_TEST),this.current=t,this.dirty=!1}},rO=class extends rC{getDefault(){return[0,1]}set(t){let i=this.current;(t[0]!==i[0]||t[1]!==i[1]||this.dirty)&&(this.gl.depthRange(t[0],t[1]),this.current=t,this.dirty=!1)}},rB=class extends rC{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;let i=this.gl;t?i.enable(i.DEPTH_TEST):i.disable(i.DEPTH_TEST),this.current=t,this.dirty=!1}},rj=class extends rC{getDefault(){return this.gl.LESS}set(t){(t!==this.current||this.dirty)&&(this.gl.depthFunc(t),this.current=t,this.dirty=!1)}},rN=class extends rC{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;let i=this.gl;t?i.enable(i.BLEND):i.disable(i.BLEND),this.current=t,this.dirty=!1}},r$=class extends rC{getDefault(){let t=this.gl;return[t.ONE,t.ZERO]}set(t){let i=this.current;(t[0]!==i[0]||t[1]!==i[1]||this.dirty)&&(this.gl.blendFunc(t[0],t[1]),this.current=t,this.dirty=!1)}},rV=class extends rC{getDefault(){return T.fn.transparent}set(t){let i=this.current;(t.r!==i.r||t.g!==i.g||t.b!==i.b||t.a!==i.a||this.dirty)&&(this.gl.blendColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)}},rU=class extends rC{getDefault(){return this.gl.FUNC_ADD}set(t){(t!==this.current||this.dirty)&&(this.gl.blendEquation(t),this.current=t,this.dirty=!1)}},rG=class extends rC{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;let i=this.gl;t?i.enable(i.CULL_FACE):i.disable(i.CULL_FACE),this.current=t,this.dirty=!1}},rq=class extends rC{getDefault(){return this.gl.BACK}set(t){(t!==this.current||this.dirty)&&(this.gl.cullFace(t),this.current=t,this.dirty=!1)}},rZ=class extends rC{getDefault(){return this.gl.CCW}set(t){(t!==this.current||this.dirty)&&(this.gl.frontFace(t),this.current=t,this.dirty=!1)}},rH=class extends rC{getDefault(){return null}set(t){(t!==this.current||this.dirty)&&(this.gl.useProgram(t),this.current=t,this.dirty=!1)}},rW=class extends rC{getDefault(){return this.gl.TEXTURE0}set(t){(t!==this.current||this.dirty)&&(this.gl.activeTexture(t),this.current=t,this.dirty=!1)}},rX=class extends rC{getDefault(){let t=this.gl;return[0,0,t.drawingBufferWidth,t.drawingBufferHeight]}set(t){let i=this.current;(t[0]!==i[0]||t[1]!==i[1]||t[2]!==i[2]||t[3]!==i[3]||this.dirty)&&(this.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)}},rY=class extends rC{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;let i=this.gl;i.bindFramebuffer(i.FRAMEBUFFER,t),this.current=t,this.dirty=!1}},rK=class extends rC{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;let i=this.gl;i.bindRenderbuffer(i.RENDERBUFFER,t),this.current=t,this.dirty=!1}},rJ=class extends rC{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;let i=this.gl;i.bindTexture(i.TEXTURE_2D,t),this.current=t,this.dirty=!1}},rQ=class extends rC{getDefault(){return null}set(t){if(t===this.current&&!this.dirty)return;let i=this.gl;i.bindBuffer(i.ARRAY_BUFFER,t),this.current=t,this.dirty=!1}},r1=class extends rC{getDefault(){return null}set(t){let i=this.gl;i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,t),this.current=t,this.dirty=!1}},r0=class extends rC{getDefault(){return null}set(t){(t!==this.current||this.dirty)&&(this.gl.bindVertexArray(t),this.current=t,this.dirty=!1)}},r2=class extends rC{getDefault(){return 4}set(t){if(t===this.current&&!this.dirty)return;let i=this.gl;i.pixelStorei(i.UNPACK_ALIGNMENT,t),this.current=t,this.dirty=!1}},r3=class extends rC{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;let i=this.gl;i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t,this.dirty=!1}},r5=class extends rC{getDefault(){return!1}set(t){if(t===this.current&&!this.dirty)return;let i=this.gl;i.pixelStorei(i.UNPACK_FLIP_Y_WEBGL,t),this.current=t,this.dirty=!1}},r4=class extends rC{constructor(t,i){super(t),this.context=t,this.parent=i}getDefault(){return null}},r6=class extends r4{setDirty(){this.dirty=!0}set(t){if(t===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let i=this.gl;i.framebufferTexture2D(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.TEXTURE_2D,t,0),this.current=t,this.dirty=!1}},r8=class extends r4{set(t){if(t===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let i=this.gl;i.framebufferRenderbuffer(i.FRAMEBUFFER,i.DEPTH_ATTACHMENT,i.RENDERBUFFER,t),this.current=t,this.dirty=!1}},r7=class extends r4{set(t){if(t===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);let i=this.gl;i.framebufferRenderbuffer(i.FRAMEBUFFER,i.DEPTH_STENCIL_ATTACHMENT,i.RENDERBUFFER,t),this.current=t,this.dirty=!1}},r9=class{constructor(t,i,r,a,n){this.context=t,this.width=i,this.height=r;let o=t.gl,s=this.framebuffer=o.createFramebuffer();if(this.colorAttachment=new r6(t,s),a)this.depthAttachment=n?new r7(t,s):new r8(t,s);else if(n)throw Error("Stencil cannot be set without depth")}destroy(){let t=this.context.gl,i=this.colorAttachment.get();if(i&&t.deleteTexture(i),this.depthAttachment){let i=this.depthAttachment.get();i&&t.deleteRenderbuffer(i)}t.deleteFramebuffer(this.framebuffer)}};let ae=iJ([{name:"u_units_to_pixels",type:"vec2"},{name:"u_world_size",type:"vec2"}
vendor: 6,263 bytes, line 1178
1178,{name:"u_camera_to_center_distance",type:"float"},{name:"u_symbol_fade_change",type:"float"},{name:"u_aspect_ratio",type:"float"},{name:"u_device_pixel_ratio",type:"float"},{name:"u_viewport_size",type:"vec2"},{name:"u_pixel_extrude_scale",type:"vec2"},{name:"u_pitch",type:"float"}]),at=ae.offsets;var ai=class{constructor(t,i,r){this.blendFunction=t,this.blendColor=i,this.mask=r}};ai.Replace=[1,0],ai.disabled=new ai(ai.Replace,T.fn.transparent,[!1,!1,!1,!1]),ai.unblended=new ai(ai.Replace,T.fn.transparent,[!0,!0,!0,!0]),ai.alphaBlended=new ai([1,771],T.fn.transparent,[!0,!0,!0,!0]);var ar=class{constructor(t){this.gl=t,this.clearColor=new rE(this),this.clearDepth=new rM(this),this.clearStencil=new rP(this),this.colorMask=new rD(this),this.depthMask=new rI(this),this.stencilMask=new rz(this),this.stencilFunc=new rL(this),this.stencilOp=new rF(this),this.stencilTest=new rR(this),this.depthRange=new rO(this),this.depthTest=new rB(this),this.depthFunc=new rj(this),this.blend=new rN(this),this.blendFunc=new r$(this),this.blendColor=new rV(this),this.blendEquation=new rU(this),this.cullFace=new rG(this),this.cullFaceSide=new rq(this),this.frontFace=new rZ(this),this.program=new rH(this),this.activeTexture=new rW(this),this.viewport=new rX(this),this.bindFramebuffer=new rY(this),this.bindRenderbuffer=new rK(this),this.bindTexture=new rJ(this),this.bindVertexBuffer=new rQ(this),this.bindElementBuffer=new r1(this),this.bindVertexArray=new r0(this),this.pixelStoreUnpack=new r2(this),this.pixelStoreUnpackPremultiplyAlpha=new r3(this),this.pixelStoreUnpackFlipY=new r5(this),this.extTextureFilterAnisotropic=t.getExtension("EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.maxTextureSize=t.getParameter(t.MAX_TEXTURE_SIZE),t.getExtension("EXT_color_buffer_half_float"),t.getExtension("EXT_color_buffer_float"),this.projectionUniformBuffer=new iQ(this,iY.ProjectionUBO,i1),this.terrainUniformBuffer=new iQ(this,iY.TerrainUBO,i2),this.frameUniformBuffer=new iQ(this,iY.FrameUBO,ae)}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.bindVertexArray.dirty=!0,this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0,this.projectionUniformBuffer.bindingDirty=!0,this.terrainUniformBuffer.bindingDirty=!0,this.frameUniformBuffer.bindingDirty=!0}setCustomLayerDefaults(){this.unbindVAO(),this.cullFace.setDefault(),this.activeTexture.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}createIndexBuffer(t,i){return new rT(this,t,i)}createVertexBuffer(t,i,r){return new rA(this,t,i,r)}createRenderbuffer(t,i,r){let a=this.gl,n=a.createRenderbuffer();return this.bindRenderbuffer.set(n),a.renderbufferStorage(a.RENDERBUFFER,t,i,r),this.bindRenderbuffer.set(null),n}createFramebuffer(t,i,r,a){return new r9(this,t,i,r,a)}clear({color:t,depth:i,stencil:r}){let a=this.gl,n=0;t&&(n|=a.COLOR_BUFFER_BIT,this.clearColor.set(t),this.colorMask.set([!0,!0,!0,!0])),void 0!==i&&(n|=a.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(i),this.depthMask.set(!0)),void 0!==r&&(n|=a.STENCIL_BUFFER_BIT,this.clearStencil.set(r),this.stencilMask.set(255)),a.clear(n)}setCullFace(t){!1===t.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(t.mode),this.frontFace.set(t.frontFace))}setDepthMode(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1)}setStencilMode(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1)}setColorMode(t){(0,T.qn)(t.blendFunction,ai.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(t.blendFunction),this.blendColor.set(t.blendColor)),this.colorMask.set(t.mask)}createVertexArray(){return this.gl.createVertexArray()}deleteVertexArray(t){this.gl.deleteVertexArray(t)}unbindVAO(){this.bindVertexArray.set(null)}},aa=class{constructor(t,i,r){this.func=t,this.mask=i,this.range=r}};aa.ReadOnly=!1,aa.ReadWrite=!0,aa.disabled=new aa(519,aa.ReadOnly,[0,1]);var an=class{constructor(t,i,r,a,n,o){this.test=t,this.ref=i,this.mask=r,this.fail=a,this.depthFail=n,this.pass=o}};an.disabled=new an({func:519,mask:0},0,0,7680,7680,7680);var ao=class{constructor(t,i,r){this.enable=t,this.mode=i,this.frontFace=r}};function as(t,i,r,a,n){let o=t.context,s=t.transform,l=o.gl,c=t.useProgram("collisionBox"),u=[],h=0,d=0;for(let f of a){let a=i.getTile(f).getBucket(r);
1178if(!a)continue;let p=n?a.textCollisionBox:a.iconCollisionBox,m=a.collisionCircleArray;m.length>0&&(u.push({circleArray:m,circleOffset:d,coord:f}),h+=m.length/4,d=h),p&&c.draw(o,l.LINES,aa.disabled,an.disabled,t.colorModeForRenderPass(),ao.disabled,null,t.style.map.terrain?.getTerrainData(f),s.getProjectionData({overscaledTileID:f,applyGlobeMatrix:!0,applyTerrainMatrix:!0}),r.id,p.layoutVertexBuffer,p.indexBuffer,p.segments,null,t.transform.zoom,null,null,p.collisionVertexBuffer)}if(!n||!u.length)return;let p=t.useProgram("collisionCircle"),m=new T.Ht;m.resize(4*h),m._trim();let g=0;for(let t of u)for(let i=0;i<t.circleArray.length/4;i++){let r=4*i,a=t.circleArray[r+0],n=t.circleArray[r+1],o=t.circleArray[r+2],s=t.circleArray[r+3];m.emplace(g++,a,n,o,s,0),m.emplace(g++,a,n,o,s,1),m.emplace(g++,a,n,o,s,2),m.emplace(g++,a,n,o,s,3)}(!f||f.length<2*h)&&(f=function(t){let i=2*t,r=new T.Kt;r.resize(i),r._trim();for(let t=0;t<i;t++){let i=6*t;r.uint16[i+0]=4*t+0,r.uint16[i+1]=4*t+1,r.uint16[i+2]=4*t+2,r.uint16[i+3]=4*t+2,r.uint16[i+4]=4*t+3,r.uint16[i+5]=4*t+0}return r}(h));let y=o.createIndexBuffer(f,!0),_=o.createVertexBuffer(m,T.U.members,!0);for(let i of u)p.draw(o,l.TRIANGLES,aa.disabled,an.disabled,t.colorModeForRenderPass(),ao.disabled,null,t.style.map.terrain?.getTerrainData(i.coord),null,r.id,_,y,T.Bt.simpleSegment(0,2*i.circleOffset,i.circleArray.length,i.circleArray.length/2),null,t.transform.zoom,null,null,null);_.destroy(),y.destroy()}ao.disabled=new ao(!1,1029,2305),ao.backCCW=new ao(!0,1029,2305),ao.frontCCW=new ao(!0,1028,2305);let al=(0,T.Si)(new Float32Array(16));function ac(t,i,r,a,n,o,s,l,c,u,h,d,f){let p=t.context,m=p.gl,g=t.transform,y="map"===l,_="map"===c,v="viewport"!==l&&"point"!==r.layout.get("symbol-placement"),b=y&&!_&&!v,x=!r.layout.get("symbol-sort-key").isConstant(),w=!1,k=t.getDepthModeForSublayer(0,aa.ReadOnly),S=r._unevaluatedLayout.hasValue("text-variable-anchor")||r._unevaluatedLayout.hasValue("text-variable-anchor-offset"),A=[],C=g.getCircleRadiusCorrection();for(let l of a){let a=i.getTile(l),c=a.getBucket(r);if(!c)continue;let h=n?c.text:c.icon;if(!h?.segments.get().length||!h.hasVisibleVertices)continue;let d=h.programConfigurations.get(r.id),p=n||c.sdfIcons,k=n?c.textSizeData:c.iconSizeData,E=_||0!==g.pitch,M=t.useProgram(c.iconsInText&&n?"symbolTextAndIcon":p?"symbolSDF":"symbolIcon",d),P=(0,T.A)(k,g.zoom),D=t.style.map.terrain?.getTerrainData(l),I,z=[0,0],F,R,O=null,B;if(n){if(F=a.glyphAtlasTexture,R=m.LINEAR,I=a.glyphAtlasTexture.size,c.iconsInText){z=a.imageAtlasTexture.size,O=a.imageAtlasTexture;let i="composite"===k.kind||"camera"===k.kind;B=E||t.options.rotating||t.options.zooming||i?m.LINEAR:m.NEAREST}}else{let i=1!==r.layout.get("icon-size").constantOr(0)||c.iconsNeedLinear;F=a.imageAtlasTexture,R=p||t.options.rotating||t.options.zooming||i||E?m.LINEAR:m.NEAREST,I=a.imageAtlasTexture.size}let j=(0,T.Ir)(a,1,t.transform.zoom),N=tl(y,t.transform,j),$=function(t,i,r,a){if(t){let t=(0,T.vi)();if(!i){let{vecSouth:i,vecEast:a}=tc(r);t[0]=a[0],t[1]=a[1],t[4]=i[0],t[5]=i[1]}return(0,T.Ai)(t,t,[a,a,1]),t}return r.pixelsToClipSpaceMatrix}(_,y,t.transform,j),V=(0,T.jr)(g,a,o,s),U=g.getProjectionData({overscaledTileID:l,applyGlobeMatrix:!f,applyTerrainMatrix:!0}),G=S&&c.hasTextData(),q="none"!==r.layout.get("icon-text-fit")&&G&&c.hasIconData(),Z=r._unevaluatedLayout.hasValue("icon-offset"),H="ground"===r.layout.get("symbol-height-anchor");if(v){let i=(0,T.vi)();!function(t,i){let r=1/(i[0]*i[0]+i[1]*i[1]+i[2]*i[2]),a=1/(i[8]*i[8]+i[9]*i[9]+i[10]*i[10]),n=i[0]*r,o=i[4]*r,s=i[8]*a,l=i[1]*r,c=i[5]*r,u=i[9]*a,h=i[2]*r,d=i[6]*r,f=i[10]*a;t[0]=n,t[1]=o,t[2]=s,t[4]=l,t[5]=c,t[6]=u,t[8]=h,t[9]=d,t[10]=f;let p=i[12],m=i[13],g=i[14];t[12]=-n*p-l*m-h*g,t[13]=-o*p-c*m-d*g,t[14]=-s*p-u*m-f*g,t[3]=0,t[7]=0,t[11]=0,t[15]=1}(i,N);let a=t.style.map.terrain?(i,r)=>t.style.map.terrain.getElevation(l,i,r):void 0;!function(t,i,r,a,n,o,s,l,c,u,h,d,f){let p=r?t.textSizeData:t.iconSizeData,m=(0,T.A)(p,i.transform.zoom),g=[256/i.width*2+1,256/i.height*2+1],y=r?t.text.dynamicLayoutVertexArray:t.icon.dynamicLayoutVertexArray;y.clear();let _=t.lineVertexArray,v=r?t.text.placedSymbolArray:t.icon.placedSymbolArray,b=i.transform.width/i.transform.height,x=!1;for(let r=0;r<v.length;r++){var w;let k=v.get(r);if(k.hidden||2===k.writingMode&&!x){tk(k.numGlyphs,y);continue}x=!1;
1178let S=new T.Li(k.anchorX,k.anchorY),A={getElevation:f,pitchedLabelPlaneMatrix:a,lineVertexArray:_,pitchWithMap:o,projectionCache:{projections:{},offsets:{},cachedAnchorPoint:void 0,anyProjectionOccluded:!1},transform:i.transform,tileAnchorPoint:S,unwrappedTileID:c,width:u,height:h,translation:d},C=tv(k.anchorX,k.anchorY,A);if(w=C.point,!(w.x>=-g[0]&&w.x<=g[0]&&w.y>=-g[1])||!(w.y<=g[1])){tk(k.numGlyphs,y);continue}let E=C.signedDistanceFromCamera,M=.5+i.transform.cameraToCenterDistance/E*.5,P=(0,T.k)(p,m,k),D=o?P*i.transform.getPitchedTextCorrection(k.anchorX,k.anchorY,c)/M:P*M,I=tp({projectionContext:A,pitchedLabelPlaneMatrixInverse:n,symbol:k,fontSize:D,flip:!1,keepUpright:s,glyphOffsetArray:t.glyphOffsetArray,dynamicLayoutVertexArray:y,aspectRatio:b,rotateToLine:l});x=I.useVertical,(I.notEnoughRoom||x||I.needsFlipping&&tp({projectionContext:A,pitchedLabelPlaneMatrixInverse:n,symbol:k,fontSize:D,flip:!0,keepUpright:s,glyphOffsetArray:t.glyphOffsetArray,dynamicLayoutVertexArray:y,aspectRatio:b,rotateToLine:l}).notEnoughRoom)&&tk(k.numGlyphs,y)}r?t.text.dynamicLayoutVertexBuffer.updateData(y):t.icon.dynamicLayoutVertexBuffer.updateData(y)}(c,t,n,N,i,_,u,"map"===r.layout.get("text-rotation-alignment"),l.toUnwrapped(),g.width,g.height,V,a)}let W=n&&S||q,X=_?N:t.transform.clipSpaceToPixelsMatrix,Y=v||W?al:X,K=p&&0!==r.paint.get(n?"text-halo-width":"icon-halo-width").constantOr(1),J={program:M,buffers:h,uniformValues:p?c.iconsInText?rv(k.kind,P,b,_,v,W,t,Y,$,V,I,z,C,Z,H):r_(k.kind,P,b,_,v,W,t,Y,$,V,n,I,K,C,Z,H):ry(k.kind,P,b,_,v,W,t,Y,$,V,n,I,C,Z,H),projectionData:U,atlasTexture:F,atlasTextureIcon:O,atlasInterpolation:R,atlasInterpolationIcon:B,isSDF:p,hasHalo:K};
1178if(x&&c.canOverlap)for(let t of(w=!0,h.segments.get()))A.push({segments:new T.Bt([t]),sortKey:t.sortKey,state:J,terrainData:D});else A.push({segments:h.segments,sortKey:0,state:J,terrainData:D})}w&&A.sort((t,i)=>t.sortKey-i.sortKey);let E=r.paint.get(n?"text-halo-width":"icon-halo-width").constantOr(null)??1/0,M=24*r.layout.get("text-letter-spacing").constantOr(0)<0||E>1;for(let i of A){let a=i.state;p.activeTexture.set(m.TEXTURE0),a.atlasTexture.bind(a.atlasInterpolation,m.CLAMP_TO_EDGE),a.atlasTextureIcon&&(p.activeTexture.set(m.TEXTURE1),a.atlasTextureIcon&&a.atlasTextureIcon.bind(a.atlasInterpolationIcon,m.CLAMP_TO_EDGE));let n=a.isSDF&&a.hasHalo;if(n){let n=a.uniformValues;n.u_is_halo=1,M&&(n.u_is_plain=0,au(a.buffers,i.segments,r,t,a.program,k,h,d,n,a.projectionData,i.terrainData),n.u_is_halo=0,n.u_is_plain=1)}au(a.buffers,i.segments,r,t,a.program,k,h,d,a.uniformValues,a.projectionData,i.terrainData),n&&!M&&(a.uniformValues.u_is_halo=0)}}function au(t,i,r,a,n,o,s,l,c,u,h){let d=a.context,f=d.gl;n.draw(d,f.TRIANGLES,o,s,l,ao.backCCW,c,h,u,r.id,t.layoutVertexBuffer,t.indexBuffer,i,r.paint,a.transform.zoom,t.programConfigurations.get(r.id),t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer)}function ah(t,i,r){let a=t.gl,n=a.createTexture();a.bindTexture(a.TEXTURE_2D,n),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR),a.texStorage2D(a.TEXTURE_2D,1,a.RGBA16F,i,r);let o=t.createFramebuffer(i,r,!1,!1);return o.colorAttachment.set(n),o}function ad(t,i){return i.colorRampTexture||=new T.xt(t,i.colorRamp,t.gl.RGBA),i.colorRampTexture}function af(t,i,r,a){let n=t.context,o=n.bindFramebuffer.get(),s=n.viewport.get(),[,,l,c]=s;return function(t,i,r){let a=t.context.gl;if(!t.layerOpacityFbo){let n=t.context.createFramebuffer(i,r,!0,!0),o=a.createTexture();a.bindTexture(a.TEXTURE_2D,o),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR),a.texImage2D(a.TEXTURE_2D,0,a.RGBA,i,r,0,a.RGBA,a.UNSIGNED_BYTE,null),n.colorAttachment.set(o),n.depthAttachment.set(t.context.createRenderbuffer(a.DEPTH_STENCIL,i,r)),t.layerOpacityFbo=n,t.context.bindFramebuffer.set(t.layerOpacityFbo.framebuffer);return}if(t.layerOpacityFbo.width===i&&t.layerOpacityFbo.height===r)return t.context.bindFramebuffer.set(t.layerOpacityFbo.framebuffer);let n=t.layerOpacityFbo;a.bindTexture(a.TEXTURE_2D,n.colorAttachment.get()),a.texImage2D(a.TEXTURE_2D,0,a.RGBA,i,r,0,a.RGBA,a.UNSIGNED_BYTE,null),t.context.bindRenderbuffer.set(n.depthAttachment.get()),a.renderbufferStorage(a.RENDERBUFFER,a.DEPTH_STENCIL,i,r),t.context.bindRenderbuffer.set(null),n.width=i,n.height=r,t.context.bindFramebuffer.set(n.framebuffer)}(t,l,c),n.viewport.set([0,0,l,c]),n.clear({color:T.fn.transparent,depth:1,stencil:0}),t.currentStencilSource=void 0,t.renderTileClippingMasks(i,r,a),{compositeTarget:o,compositeViewport:s}}function ap(t,i,r,a){let n=t.context,o=n.gl;n.bindFramebuffer.set(r.compositeTarget),n.viewport.set(r.compositeViewport),n.activeTexture.set(o.TEXTURE0),o.bindTexture(o.TEXTURE_2D,t.layerOpacityFbo.colorAttachment.get()),t.useProgram("layerOpacity").draw(n,o.TRIANGLES,aa.disabled,an.disabled,t.colorModeForRenderPass(),ao.disabled,{u_image:0,u_opacity:i},null,null,a.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments,a.paint,t.transform.zoom),t.currentStencilSource=void 0}function am(t,i,r,a,n,o,s,l){let c=256;if(n.stepInterpolant){let a=i.getSource().maxzoom,n=s.canonical.z===a?Math.ceil(1<<t.transform.maxZoom-s.canonical.z):1,l=o.maxLineLength/8192*1024*n;c=(0,T.Bn)((0,T._r)(l),256,r.maxTextureSize)}return l.gradient=(0,T.Tt)({expression:n.gradientExpression(),evaluationKey:"lineProgress",resolution:c,image:l.gradient||void 0,clips:o.lineClipsArray}),l.texture?l.texture.update(l.gradient):l.texture=new T.xt(r,l.gradient,a.RGBA),l.version=n.gradientVersion,l.texture}function ag(t,i,r,a,n,o){let{isRenderingToTexture:s}=n,l=t.getDepthModeForSublayer(0,aa.ReadOnly),c=t.colorModeForRenderPass(),u=r.paint.get("line-dasharray"),h=u.constantOr(1),d=r.paint.get("line-pattern"),f=d.constantOr(1),p=r.paint.get("line-gradient"),m=r.getCrossfadeParameters(),g;g=f?"linePattern":h&&p?"lineGradientSDF":h?"lineSDF":p?"lineGradient":"line";let y=t.context,_=y.gl,v=t.transform,b=!0;for(let n of a){let a=i.getTile(n);if(f&&!a.patternsLoaded())continue;let x=a.getBucket(r);
1178if(!x)continue;let w=x.programConfigurations.get(r.id),k=t.context.program.get(),T=t.useProgram(g,w),S=b||T.program!==k,A=o?t.getTerrainDataForTile(n,s):null,C=d.constantOr(null),E=u?.constantOr(null);if(C&&a.imageAtlas){let t=a.imageAtlas,i=t.patternPositions[C.to.toString()],r=t.patternPositions[C.from.toString()];i&&r&&w.setConstantPatternPositions(i,r)}else if(E){let i="round"===r.layout.get("line-cap").constantOr(null),a=t.lineAtlas.getDash(E.to,i),n=t.lineAtlas.getDash(E.from,i);w.setConstantDashPositions(a,n)}let M=v.getProjectionData({overscaledTileID:n,applyGlobeMatrix:!s,applyTerrainMatrix:!0}),P=v.getPixelScale(),D;f?(D=rd(t,a,r,P,m),y.activeTexture.set(_.TEXTURE0),a.imageAtlasTexture.bind(_.LINEAR,_.CLAMP_TO_EDGE),w.updatePaintBuffers(m)):h&&p?(D=rp(t,a,r,P,m,x.lineClipsArray.length),function(t,i,r,a,n,o,s,l,c){let u=o.gradients[n.id],h=u.texture;n.gradientVersion!==u.version&&(h=am(t,i,r,a,n,o,s,u)),r.activeTexture.set(a.TEXTURE0),h.bind(n.stepInterpolant?a.NEAREST:a.LINEAR,a.CLAMP_TO_EDGE),r.activeTexture.set(a.TEXTURE1),t.lineAtlas.bind(r),l.updatePaintBuffers(c)}(t,i,y,_,r,x,n,w,m)):h?(D=rf(t,a,r,P,m),(S||t.lineAtlas.dirty)&&(y.activeTexture.set(_.TEXTURE0),t.lineAtlas.bind(y)),w.updatePaintBuffers(m)):p?(D=rh(t,a,r,P,x.lineClipsArray.length),function(t,i,r,a,n,o,s){let l=o.gradients[n.id],c=l.texture;n.gradientVersion!==l.version&&(c=am(t,i,r,a,n,o,s,l)),r.activeTexture.set(a.TEXTURE0),c.bind(n.stepInterpolant?a.NEAREST:a.LINEAR,a.CLAMP_TO_EDGE)}(t,i,y,_,r,x,n)):D=ru(t,a,r,P);let I=t.stencilModeForClipping(n);T.draw(y,_.TRIANGLES,l,I,c,ao.disabled,D,A,M,r.id,x.layoutVertexBuffer,x.indexBuffer,x.segments,r.paint,t.transform.zoom,w,x.layoutVertexBuffer2),b=!1}}function ay(t,i,r,a,n){if(!r||!a?.imageAtlas)return;let o=a.imageAtlas.patternPositions,s=o[r.to.toString()],l=o[r.from.toString()];if(!s&&l&&(s=l),!l&&s&&(l=s),!s||!l){let t=n.getPaintProperty(i);s=o[t],l=o[t]}s&&l&&t.setConstantPatternPositions(s,l)}function a_(t,i,r,a,n){let{isRenderingToTexture:o}=n,s=t.colorModeForRenderPass();ab(t,i,r,a,t.getDepthModeForSublayer(1,aa.ReadOnly),s,!1,o),av(t,i,r,a,n)}function av(t,i,r,a,n){if(!r.paint.get("fill-antialias"))return;let{isRenderingToTexture:o}=n,s=t.colorModeForRenderPass();ab(t,i,r,a,t.getDepthModeForSublayer(2*!!r.getPaintProperty("fill-outline-color"),aa.ReadOnly),s,!0,o)}function ab(t,i,r,a,n,o,s,l){let c=t.context.gl,u="fill-pattern",h=r.paint.get(u),d=h?.constantOr(1),f=r.getCrossfadeParameters(),p,m,g,y,_,v=t.transform,b=r.paint.get("fill-translate"),x=r.paint.get("fill-translate-anchor");s?(m=d&&!r.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",p=c.LINES):(m=d?"fillPattern":"fill",p=c.TRIANGLES);let w=h.constantOr(null);for(let h of a){let a=i.getTile(h);if(d&&!a.patternsLoaded())continue;let k=a.getBucket(r);if(!k)continue;let S=k.sdfPatterns[r.id]??!1,A=k.programConfigurations.get(r.id),C=t.useProgram(m,A),E=t.getTerrainDataForTile(h,l);d&&(t.context.activeTexture.set(c.TEXTURE0),a.imageAtlasTexture.bind(c.LINEAR,c.CLAMP_TO_EDGE),A.updatePaintBuffers(f)),ay(A,u,w,a,r);let M=v.getProjectionData({overscaledTileID:h,applyGlobeMatrix:!l,applyTerrainMatrix:!0}),P=(0,T.jr)(v,a,b,x);s?(y=k.indexBuffer2,_=k.segments2,g="fillOutlinePattern"===m&&d?ri(t,f,a,P,S):rt(P)):(y=k.indexBuffer,_=k.segments,g=d?i9(t,f,a,P,S):re(P));let D=t.stencilModeForClipping(h);C.draw(t.context,p,n,D,o,ao.backCCW,g,E,M,r.id,k.layoutVertexBuffer,y,_,r.paint,t.transform.zoom,A)}}function ax(t,i,r,a,n,o,s,l){let c=t.context,u=c.gl,h="fill-extrusion-pattern",d=r.paint.get(h),f=d.constantOr(1),p=r.getCrossfadeParameters(),m=r.paint.get("fill-extrusion-opacity"),g=d.constantOr(null),y=t.transform;for(let d of a){let a=i.getTile(d),_=a.getBucket(r);if(!_)continue;let v=t.style.map.terrain?.getTerrainData(d),b=_.programConfigurations.get(r.id),x=t.useProgram(f?"fillExtrusionPattern":"fillExtrusion",b);f&&(t.context.activeTexture.set(u.TEXTURE0),a.imageAtlasTexture.bind(u.LINEAR,u.CLAMP_TO_EDGE),b.updatePaintBuffers(p));let w=y.getProjectionData({overscaledTileID:d,applyGlobeMatrix:!l,applyTerrainMatrix:!0});ay(b,h,g,a,r);let k=(0,T.jr)(y,a,r.paint.get("fill-extrusion-translate"),r.paint.get("fill-extrusion-translate-anchor")),S=r.paint.get("fill-extrusion-vertical-gradient"),A=f?i7(t,S,m,k,d,p,a):i8(t,S,m,k);x.draw(c,c.gl.TRIANGLES,n,o,s,ao.backCCW,A,v,w,r.id,_.layoutVertexBuffer,_.indexBuffer,_.segments,r.paint,t.transform.zoom,b,t.style.map.terrain&&_.centroidVertexBuffer)}}function aw(t,i,r,a,n,o,s,l,c){let u=t.style.projection,h=t.context,d=t.transform,f=h.gl,p=[`#define NUM_ILLUMINATION_SOURCES ${r.paint.get("hillshade-highlight-color").values.length}`],m=t.useProgram("hillshade",null,!1,p),g=!t.options.moving;for(let p of a){let a=i.getTile(p),y=a.fbo;if(!y)continue;let _=u.getMeshFromTileID(h,p.canonical,l,!0,"raster"),v=t.getTerrainDataForTile(p,c);h.activeTexture.set(f.TEXTURE0),f.bindTexture(f.TEXTURE_2D,y.colorAttachment.get());let b=d.getProjectionData({overscaledTileID:p,aligned:g,applyGlobeMatrix:!c,applyTerrainMatrix:!0});m.draw(h,f.TRIANGLES,o,n[p.overscaledZ],s,ao.backCCW,rs(t,a,r),v,b,r.id,_.vertexBuffer,_.indexBuffer,_.segments)}}let ak=0;function aT(t,i,r,a,n,o,s,l,c){let u=t.style.projection,h=t.context,d=t.transform,f=h.gl,p=t.useProgram("colorRelief"),m=!t.options.moving,g="nearest"===r.paint.get("resampling")?f.NEAREST:f.LINEAR,y=!0,_=0;for(let v of a){let a=i.getTile(v),b=a.dem;if(!b?.data)continue;if(y){let t=ak||=f.getParameter(f.MAX_TEXTURE_SIZE),{elevationTexture:i,
1178colorTexture:a}=r.getColorRampTextures(h,t,b.getUnpackVector());h.activeTexture.set(f.TEXTURE1),i.bind(f.NEAREST,f.CLAMP_TO_EDGE),h.activeTexture.set(f.TEXTURE4),a.bind(f.LINEAR,f.CLAMP_TO_EDGE),y=!1,_=i.size[0]}let x=b.stride;h.activeTexture.set(f.TEXTURE0),(!a.demTexture||a.needsColorReliefPrepare)&&(h.pixelStoreUnpackPremultiplyAlpha.set(!1),a.demTexture||=t.getTileTexture(x)??new T.xt(h,{width:x,height:x,data:null},f.RGBA),a.demTexture.update(b.getPixels(),{premultiply:!1}),a.needsColorReliefPrepare=!1),a.demTexture.bind(g,f.CLAMP_TO_EDGE);let w=u.getMeshFromTileID(h,v.canonical,l,!0,"raster"),k=t.getTerrainDataForTile(v,c),S=d.getProjectionData({overscaledTileID:v,aligned:m,applyGlobeMatrix:!c,applyTerrainMatrix:!0});p.draw(h,f.TRIANGLES,o,n[v.overscaledZ],s,ao.backCCW,rc(r,a.dem,_),k,S,r.id,w.vertexBuffer,w.indexBuffer,w.segments)}}let aS=[new T.Li(0,0),new T.Li(8192,0),new T.Li(8192,8192),new T.Li(0,8192)];function aA(t,i,r,a,n,o,s,l,c,u=!1,h=!1,d=null){let f=a[a.length-1].overscaledZ,p=t.context,m=p.gl,g=t.useProgram("raster"),y=t.transform,_=t.style.projection,v=t.colorModeForRenderPass(),b=!t.options.moving,x=r.paint.get("raster-opacity"),w="nearest"===r.paint.get("resampling")||"nearest"===r.paint.get("raster-resampling")?m.NEAREST:m.LINEAR,k=r.paint.get("raster-fade-duration"),S=!!t.style.map.terrain;for(let A of a){let a=t.getDepthModeForSublayer(A.overscaledZ-f,1===x?aa.ReadWrite:aa.ReadOnly,m.LESS),C=i.getTile(A);p.activeTexture.set(m.TEXTURE0),C.texture.bind(w,m.CLAMP_TO_EDGE,m.LINEAR_MIPMAP_NEAREST),p.activeTexture.set(m.TEXTURE1);let{parentTile:M,parentScaleBy:P,parentTopLeft:D,fadeValues:I}=function(t,i,r,a){let n={parentTile:null,parentScaleBy:1,parentTopLeft:[0,0],fadeValues:{tileOpacity:1,parentTileOpacity:1,fadeMix:{opacity:1,mix:0}}};if(0===r||a)return n;if(t.fadingParentID){let a=i.getLoadedTile(t.fadingParentID);if(!a)return n;let o=2**(a.tileID.overscaledZ-t.tileID.overscaledZ);return{parentTile:a,parentScaleBy:o,parentTopLeft:[t.tileID.canonical.x*o%1,t.tileID.canonical.y*o%1],fadeValues:function(t,i,r){let a=E(),n=(a-t.timeAdded)/r,o=(a-i.timeAdded)/r,s=1===t.fadingDirection,l=(0,T.Bn)(n,0,1),c=(0,T.Bn)(1-o,0,1),u=s?l:c;return{tileOpacity:u,parentTileOpacity:s?c:l,fadeMix:{opacity:1,mix:1-u}}}(t,a,r)}}return t.selfFading?{parentTile:null,parentScaleBy:1,parentTopLeft:[0,0],fadeValues:function(t,i){let r=(E()-t.timeAdded)/i,a=(0,T.Bn)(r,0,1);return{tileOpacity:a,fadeMix:{opacity:a,mix:0}}}(t,r)}:n}(C,i,k,S);C.fadeOpacity=I.tileOpacity,M?(M.fadeOpacity=I.parentTileOpacity,M.texture.bind(w,m.CLAMP_TO_EDGE,m.LINEAR_MIPMAP_NEAREST)):C.texture.bind(w,m.CLAMP_TO_EDGE,m.LINEAR_MIPMAP_NEAREST),C.texture.useMipmap&&p.extTextureFilterAnisotropic&&t.transform.pitch>t.options.anisotropicFilterPitch&&m.texParameterf(m.TEXTURE_2D,p.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,p.extTextureFilterAnisotropicMax);let z=t.getTerrainDataForTile(A,h),F=y.getProjectionData({overscaledTileID:A,aligned:b,applyGlobeMatrix:!h,applyTerrainMatrix:!0}),R=ej(D,P,I.fadeMix,r,l,c),O=d??_.getMeshFromTileID(p,A.canonical,o,s,"raster"),B=n?n[A.overscaledZ]:an.disabled;g.draw(p,m.TRIANGLES,a,B,v,u?ao.frontCCW:ao.backCCW,R,z,F,r.id,O.vertexBuffer,O.indexBuffer,O.segments)}}let aC=new T.fn(1,0,0,1),aE=new T.fn(0,1,0,1),aM=new T.fn(0,0,1,1),aP=new T.fn(1,0,1,1),aD=new T.fn(0,1,1,1);function aI(t,i,r,a){aL(t,0,i+r/2,t.transform.width,r,a)}function az(t,i,r,a){aL(t,i-r/2,0,r,t.transform.height,a)}function aL(t,i,r,a,n,o){let s=t.context,l=s.gl;l.enable(l.SCISSOR_TEST),l.scissor(i*t.pixelRatio,r*t.pixelRatio,a*t.pixelRatio,n*t.pixelRatio),s.clear({color:o}),l.disable(l.SCISSOR_TEST)}function aF(t,i){if(!i.mesh){let r=new T.Gt;r.emplaceBack(-1,-1),r.emplaceBack(1,-1),r.emplaceBack(1,1),r.emplaceBack(-1,1);let a=new T.Jt;a.emplaceBack(0,1,2),a.emplaceBack(0,2,3),i.mesh=new eN(t.createVertexBuffer(r,e$.members),t.createIndexBuffer(a),T.Bt.simpleSegment(0,0,r.length,a.length))}return i.mesh}let aR={symbol:function(t,i,r,a,n,o){if("translucent"!==o.currentPass)return;let{isRenderingToTexture:s}=o,l=an.disabled,c=t.colorModeForRenderPass();(r._unevaluatedLayout.hasValue("text-variable-anchor")||r._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&function(t,i,r,a,n,o,s,l,c){let u=i.transform,h=i.style.map.terrain,d="map"===n,f="map"===o;for(let n of t){let t=a.getTile(n),o=t.getBucket(r);
1178if(!o?.text?.segments.get().length)continue;let p=o.textSizeData,m=(0,T.A)(p,u.zoom),g=(0,T.Ir)(t,1,i.transform.zoom),y=tl(d,i.transform,g),_="none"!==r.layout.get("icon-text-fit")&&o.hasIconData();if(m){let i=2**(u.zoom-t.tileID.overscaledZ),a=h?(t,i)=>h.getElevation(n,t,i):void 0;!function(t,i,r,a,n,o,s,l,c,u,h,d,f){let p=t.text.placedSymbolArray,m=t.text.dynamicLayoutVertexArray,g=t.icon.dynamicLayoutVertexArray,y={};m.clear();for(let g=0;g<p.length;g++){let _=p.get(g),v=t.allowVerticalPlacement&&!_.placedOrientation,b=_.hidden||!_.crossTileID||v?null:a[_.crossTileID];if(b){let a=new T.Li(_.anchorX,_.anchorY),p={getElevation:d,heightOffset:_.heightOffset,heightAnchorGround:f,width:n.width,height:n.height,pitchedLabelPlaneMatrix:o,lineVertexArray:null,pitchWithMap:r,transform:n,projectionCache:null,tileAnchorPoint:a,translation:u,unwrappedTileID:h},g=r?tv(a.x,a.y,p):ty(a.x,a.y,p),v=.5+n.cameraToCenterDistance/g.signedDistanceFromCamera*.5,x=(0,T.k)(t.textSizeData,l,_)*v/24;r&&(x*=t.tilePixelRatio/s);let{width:w,height:k,anchor:S,textOffset:A,textBoxScale:C}=b,E=function(t,i,r,a,n,o){let{horizontalAlign:s,verticalAlign:l}=(0,T.M)(t);return new T.Li((-(s-.5)*i/n+a[0])*o,(-(l-.5)*r/n+a[1])*o)}(S,w,k,A,C,x),M=n.getPitchedTextCorrection(a.x+u[0],a.y+u[1],h),P=function(t,i,r,a,n,o){let s=i.tileAnchorPoint.add(new T.Li(i.translation[0],i.translation[1]));if(i.pitchWithMap){let t=a.mult(o);r||(t=t.rotate(-n));let l=s.add(t);return th(l.x,l.y,i.pitchedLabelPlaneMatrix,tu(i,l.x,l.y)).point}if(r){let r=ty(i.tileAnchorPoint.x+1,i.tileAnchorPoint.y,i).point.sub(t),n=Math.atan(r.y/r.x)+(r.x<0?Math.PI:0);return t.add(a.rotate(n))}return t.add(a)}(g.point,p,i,E,-n.bearingInRadians,M),D=t.allowVerticalPlacement&&2===_.placedOrientation?Math.PI/2:0;for(let t=0;t<_.numGlyphs;t++)(0,T.C)(m,P,D);c&&_.associatedIconIndex>=0&&(y[_.associatedIconIndex]={shiftedAnchor:P,angle:D})}else tk(_.numGlyphs,m)}if(c){g.clear();let i=t.icon.placedSymbolArray;for(let t=0;t<i.length;t++){let r=i.get(t);if(r.hidden)tk(r.numGlyphs,g);else{let i=y[t];if(i)for(let t=0;t<r.numGlyphs;t++)(0,T.C)(g,i.shiftedAnchor,i.angle);else tk(r.numGlyphs,g)}}t.icon.dynamicLayoutVertexBuffer.updateData(g)}t.text.dynamicLayoutVertexBuffer.updateData(m)}(o,d,f,c,u,y,i,m,_,(0,T.jr)(u,t,s,l),n.toUnwrapped(),a,"ground"===r.layout.get("symbol-height-anchor"))}}}(a,t,r,i,r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),n),0!==r.paint.get("icon-opacity").constantOr(1)&&ac(t,i,r,a,!1,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),r.layout.get("icon-rotation-alignment").constantOr("viewport"),r.layout.get("icon-pitch-alignment"),r.layout.get("icon-keep-upright"),l,c,s),0!==r.paint.get("text-opacity").constantOr(1)&&ac(t,i,r,a,!0,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),r.layout.get("text-keep-upright"),l,c,s),i.map.showCollisionBoxes&&(as(t,i,r,a,!0),as(t,i,r,a,!1))},circle:function(t,i,r,a,n){if("translucent"!==n.currentPass)return;let{isRenderingToTexture:o}=n,s=r.paint.get("circle-opacity"),l=r.paint.get("circle-stroke-width"),c=r.paint.get("circle-stroke-opacity"),u=!r.layout.get("circle-sort-key").isConstant();if(0===s.constantOr(1)&&(0===l.constantOr(1)||0===c.constantOr(1)))return;let h=t.context,d=h.gl,f=t.transform,p=t.getDepthModeForSublayer(0,aa.ReadOnly),m=an.disabled,g=t.colorModeForRenderPass(),y=[],_=f.getCircleRadiusCorrection();for(let n of a){let a=i.getTile(n),s=a.getBucket(r);if(!s)continue;let l=r.paint.get("circle-translate"),c=r.paint.get("circle-translate-anchor"),h=(0,T.jr)(f,a,l,c),d=s.programConfigurations.get(r.id),p=t.useProgram("circle",d),m=s.layoutVertexBuffer,g=s.indexBuffer,v=t.style.map.terrain?.getTerrainData(n),b={programConfiguration:d,program:p,layoutVertexBuffer:m,indexBuffer:g,uniformValues:rr(t,a,r,h,_),terrainData:v,projectionData:f.getProjectionData({overscaledTileID:n,applyGlobeMatrix:!o,applyTerrainMatrix:!0})};if(u)for(let t of s.segments.get())y.push({segments:new T.Bt([t]),sortKey:t.sortKey,state:b});else y.push({segments:s.segments,sortKey:0,state:b})}for(let i of(u&&y.sort((t,i)=>t.sortKey-i.sortKey),y)){let{programConfiguration:a,program:n,layoutVertexBuffer:o,indexBuffer:s,uniformValues:l,terrainData:c,projectionData:u}=i.state,f=i.segments;n.draw(h,d.TRIANGLES,p,m,g,ao.backCCW,l,c,u,r.id,o,s,f,r.paint,t.transform.zoom,a)}},heatmap:function(t,i,r,a,n){if(0===r.paint.get("heatmap-opacity"))return;let o=t.context,{isRenderingToTexture:s,isRenderingGlobe:l}=n;if(t.style.map.terrain){for(let o of a){let a=i.getTile(o);i.hasRenderableParent(o)||("offscreen"===n.currentPass?function(t,i,r,a,n){let o=t.context,s=o.gl,l=an.disabled,c=new ai([s.ONE,s.ONE],T.fn.transparent,[!0,!0,!0,!0]),u=i.getBucket(r);
1178if(!u)return;let h=a.key,d=r.heatmapFbos.get(h);d||(d=ah(o,i.tileSize,i.tileSize),r.heatmapFbos.set(h,d)),o.bindFramebuffer.set(d.framebuffer),o.viewport.set([0,0,i.tileSize,i.tileSize]),o.clear({color:T.fn.transparent});let f=u.programConfigurations.get(r.id),p=t.useProgram("heatmap",f,!n),m=t.transform.getProjectionData({overscaledTileID:i.tileID,applyGlobeMatrix:!0,applyTerrainMatrix:!0}),g=t.style.map.terrain.getTerrainData(a);p.draw(o,s.TRIANGLES,aa.disabled,l,c,ao.disabled,rn(i,t.transform.zoom,r.paint.get("heatmap-intensity"),1),g,m,r.id,u.layoutVertexBuffer,u.indexBuffer,u.segments,r.paint,t.transform.zoom,f)}(t,a,r,o,l):"translucent"===n.currentPass&&function(t,i,r,a,n){let o=t.context,s=o.gl,l=t.transform;o.setColorMode(t.colorModeForRenderPass());let c=ad(o,i),u=r.key,h=i.heatmapFbos.get(u);if(!h)return;o.activeTexture.set(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,h.colorAttachment.get()),o.activeTexture.set(s.TEXTURE1),c.bind(s.LINEAR,s.CLAMP_TO_EDGE);let d=l.getProjectionData({overscaledTileID:r,applyTerrainMatrix:n,applyGlobeMatrix:!a});t.useProgram("heatmapTexture").draw(o,s.TRIANGLES,aa.disabled,an.disabled,t.colorModeForRenderPass(),ao.disabled,ro(t,i,0,1),null,d,i.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments,i.paint,l.zoom),h.destroy(),i.heatmapFbos.delete(u)}(t,r,o,s,l))}o.viewport.set([0,0,t.width,t.height])}else{var c,u;let o,s,l;"offscreen"===n.currentPass?function(t,i,r,a){var n,o,s;let l,c,u=t.context,h=u.gl,d=t.transform,f=an.disabled,p=new ai([h.ONE,h.ONE],T.fn.transparent,[!0,!0,!0,!0]);for(let m of(n=u,o=t,s=r,l=n.gl,n.activeTexture.set(l.TEXTURE1),n.viewport.set([0,0,o.width/4,o.height/4]),(c=s.heatmapFbos.get("big-fb"))?(l.bindTexture(l.TEXTURE_2D,c.colorAttachment.get()),n.bindFramebuffer.set(c.framebuffer)):(c=ah(n,o.width/4,o.height/4),s.heatmapFbos.set("big-fb",c)),u.clear({color:T.fn.transparent}),a)){if(i.hasRenderableParent(m))continue;let a=i.getTile(m),n=a.getBucket(r);if(!n)continue;let o=n.programConfigurations.get(r.id),s=t.useProgram("heatmap",o),l=d.getProjectionData({overscaledTileID:m,applyGlobeMatrix:!0,applyTerrainMatrix:!1}),c=d.getCircleRadiusCorrection();s.draw(u,h.TRIANGLES,aa.disabled,f,p,ao.backCCW,rn(a,d.zoom,r.paint.get("heatmap-intensity"),c),null,l,r.id,n.layoutVertexBuffer,n.indexBuffer,n.segments,r.paint,d.zoom,o)}u.viewport.set([0,0,t.width,t.height])}(t,i,r,a):"translucent"===n.currentPass&&(c=t,u=r,s=(o=c.context).gl,o.setColorMode(c.colorModeForRenderPass()),(l=u.heatmapFbos.get("big-fb"))&&(o.activeTexture.set(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,l.colorAttachment.get()),o.activeTexture.set(s.TEXTURE1),ad(o,u).bind(s.LINEAR,s.CLAMP_TO_EDGE),c.useProgram("heatmapTexture").draw(o,s.TRIANGLES,aa.disabled,an.disabled,c.colorModeForRenderPass(),ao.disabled,ro(c,u,0,1),null,null,u.id,c.viewportBuffer,c.quadTriangleIndexBuffer,c.viewportSegments,u.paint,c.transform.zoom)))}},line:function(t,i,r,a,n){if("translucent"!==n.currentPass)return;let o=r.paint.get("line-opacity"),s=r.paint.get("line-width"),l=r.paint.get("line-layer-opacity");if(0===o.constantOr(1)||0===s.constantOr(1)||0===l)return;let c=!!t.style.map.terrain;if(l<1){let o=af(t,r,a,c);ag(t,i,r,a,n,c),ap(t,l,o,r);return}ag(t,i,r,a,n,c)},fill:function(t,i,r,a,n){let o=r.paint.get("fill-color"),s=r.paint.get("fill-opacity"),l=r.paint.get("fill-layer-opacity");if(0===s.constantOr(1)||0===l)return;if(l<1){if("translucent"!==n.currentPass)return;let o=af(t,r,a,!!t.style.map.terrain);a_(t,i,r,a,n),ap(t,l,o,r);return}let c=r.paint.get("fill-pattern"),u=t.opaquePassEnabledForLayer()&&!c.constantOr(1)&&1===o.constantOr(T.fn.transparent).a&&1===s.constantOr(0);if(u&&"opaque"===n.currentPass){let{isRenderingToTexture:o}=n,s=t.colorModeForRenderPass();ab(t,i,r,a,t.getDepthModeForSublayer(1,aa.ReadWrite),s,!1,o);return}u&&"translucent"===n.currentPass?av(t,i,r,a,n):"translucent"===n.currentPass&&a_(t,i,r,a,n)},fillExtrusion:function(t,i,r,a,n){let o=r.paint.get("fill-extrusion-opacity");if(0===o)return;let{isRenderingToTexture:s}=n;if("translucent"===n.currentPass){let l=new aa(t.context.gl.LEQUAL,aa.ReadWrite,n.depthRangeFor3D);if(1!==o||r.paint.get("fill-extrusion-pattern").constantOr(1))ax(t,i,r,a,l,an.disabled,ai.disabled,s),ax(t,i,r,a,l,t.stencilModeFor3D(),t.colorModeForRenderPass(),s);else{let n=t.colorModeForRenderPass();ax(t,i,r,a,l,an.disabled,n,s)}}},hillshade:function(t,i,r,a,n){if("offscreen"!==n.currentPass&&"translucent"!==n.currentPass)return;let{isRenderingToTexture:o}=n,s=t.context,l=t.style.projection.useSubdivision,c=t.getDepthModeForSublayer(0,aa.ReadOnly),u=t.colorModeForRenderPass();if("offscreen"===n.currentPass)(function(t,i,r,a,n,o,s){let l=t.context,c=l.gl,u="nearest"===a.paint.get("resampling")?c.NEAREST:c.LINEAR;for(let h of r){let r=i.getTile(h),d=r.dem;if(!d?.data||!r.needsHillshadePrepare)continue;let f=d.dim+2,p=d.stride,m=d.getPixels();if(l.activeTexture.set(c.TEXTURE1),l.pixelStoreUnpackPremultiplyAlpha.set(!1),r.demTexture||=t.getTileTexture(p),r.demTexture){let t=r.demTexture;t.update(m,{premultiply:!1}),t.bind(c.NEAREST,c.CLAMP_TO_EDGE)}else r.demTexture=new T.xt(l,m,c.RGBA,{premultiply:!1}),r.demTexture.bind(c.NEAREST,c.CLAMP_TO_EDGE);l.activeTexture.set(c.TEXTURE0);let g=r.fbo;if(!g){let t=new T.xt(l,{width:f,height:f,data:null},c.RGBA);t.bind(u,c.CLAMP_TO_EDGE),(g=r.fbo=l.createFramebuffer(f,f,!0,!1)).colorAttachment.set(t.texture)}l.bindFramebuffer.set(g.framebuffer),l.viewport.set([0,0,f,f]),t.useProgram("hillshadePrepare").draw(l,c.TRIANGLES,n,o,s,ao.disabled,rl(r.tileID,d),null,null,a.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments),r.needsHillshadePrepare=!1}})(t,i,a,r,c,an.disabled,u),s.viewport.set([0,0,t.width,t.height]);else if("translucent"===n.currentPass)if(l){let[n,s,l]=t.stencilConfigForOverlapTwoPass(a);aw(t,i,r,l,n,c,u,!1,o),aw(t,i,r,l,s,c,u,!0,o)}else{let[n,s]=t.getStencilConfigForOverlapAndUpdateStencilID(a);aw(t,i,r,s,n,c,u,!1,o)}},colorRelief:function(t,i,r,a,n){if("translucent"!==n.currentPass||!a.length)return;let{isRenderingToTexture:o}=n,s=t.style.projection.useSubdivision,l=t.getDepthModeForSublayer(0,aa.ReadOnly),c=t.colorModeForRenderPass();if(s){let[n,s,u]=t.stencilConfigForOverlapTwoPass(a);aT(t,i,r,u,n,l,c,!1,o),aT(t,i,r,u,s,l,c,!0,o)}else{let[n,s]=t.getStencilConfigForOverlapAndUpdateStencilID(a);aT(t,i,r,s,n,l,c,!1,o)}},raster:function(t,i,r,a,n){if("translucent"!==n.currentPass||0===r.paint.get("raster-opacity")||!a.length)return;let{isRenderingToTexture:o}=n,s=i.getSource(),l=t.style.projection.useSubdivision;if(s instanceof eU)aA(t,i,r,a,null,!1,!1,s.tileCoords,s.imageWarp,s.flippedWindingOrder,o,s.getMesh(t.context,l));else if(l){let[n,s,l]=t.stencilConfigForOverlapTwoPass(a);aA(t,i,r,l,n,!1,!0,aS,eB,!1,o),aA(t,i,r,l,s,!0,!0,aS,eB,!1,o)}else{let[n,s]=t.getStencilConfigForOverlapAndUpdateStencilID(a);aA(t,i,r,s,n,!1,!0,aS,eB,!1,o)}},background:function(t,i,r,a,n){let o=r.paint.get("background-color"),s=r.paint.get("background-opacity");if(0===s)return;let{isRenderingToTexture:l}=n,c=t.context,u=c.gl,h=t.style.projection,d=t.transform,f=d.tileSize,p=r.paint.get("background-pattern");if(t.isPatternMissing(p))return;let m=!p&&1===o.a&&1===s&&t.opaquePassEnabledForLayer()?"opaque":"translucent";if(n.currentPass!==m)return;let g=an.disabled,y=t.getDepthModeForSublayer(0,"opaque"===m?aa.ReadWrite:aa.ReadOnly),_=t.colorModeForRenderPass(),v=t.useProgram(p?"backgroundPattern":"background"),b=a||e8(d,{tileSize:f,terrain:t.style.map.terrain});p&&(c.activeTexture.set(u.TEXTURE0),t.patternAtlas.bind(t.context));let x=r.getCrossfadeParameters();for(let i of b){let a=d.getProjectionData({overscaledTileID:i,applyGlobeMatrix:!l,applyTerrainMatrix:!0}),n=p?rx(s,t,p,{tileID:i,tileSize:f},x):rb(s,o),m=t.getTerrainDataForTile(i,l),b=h.getMeshFromTileID(c,i.canonical,!1,!0,"raster");v.draw(c,u.TRIANGLES,y,g,_,ao.backCCW,n,m,a,r.id,b.vertexBuffer,b.indexBuffer,b.segments)}},sky:function(t,i){var r,a;let n,o,s,l,c=t.context,u=c.gl,h=(r=t.transform,a=t.pixelRatio,n=Math.cos(r.rollInRadians),o=Math.sin(r.rollInRadians),s=(0,T.Z)(r),l=r.getProjectionData({overscaledTileID:null,applyGlobeMatrix:!0,applyTerrainMatrix:!0}).projectionTransition,{u_sky_color:i.properties.get("sky-color"),u_horizon_color:i.properties.get("horizon-color"),u_horizon:[(r.width/2-s*o)*a,(r.height/2+s*n)*a],u_horizon_normal:[-o,n],u_sky_horizon_blend:i.properties.get("sky-horizon-blend")*r.height/2*a,u_sky_blend:l,u_inv_proj_matrix:r.inverseProjectionMatrix,u_globe_position:ik(r),u_globe_radius:iw(r.worldSize,r.center.lat)}),d=new aa(u.LEQUAL,aa.ReadWrite,[0,1]),f=an.disabled,p=t.colorModeForRenderPass(),m=t.useProgram("sky"),g=aF(c,i);m.draw(c,u.TRIANGLES,d,f,p,ao.disabled,h,null,void 0,"sky",g.vertexBuffer,g.indexBuffer,g.segments)},atmosphere:function(t,i,r){var a;let n,o,s=t.context,l=s.gl,c=t.useProgram("atmosphere"),u=new aa(l.LEQUAL,aa.ReadOnly,[0,1]),h=t.transform,d=(a=t.transform,n=r.getCartesianPosition(),(0,T.ri)(n,n),o=(0,T.Si)(new Float64Array(16)),"map"===r.properties.get("anchor")&&((0,T.ki)(o,o,a.rollInRadians),(0,T.Di)(o,o,-a.pitchInRadians),(0,T.ki)(o,o,a.bearingInRadians),(0,T.Di)(o,o,a.center.lat*Math.PI/180),(0,T.Oi)(o,o,-a.center.lng*Math.PI/180)
1178),(0,T.pi)(n,n,o),n),f=h.getProjectionData({overscaledTileID:null,applyGlobeMatrix:!0,applyTerrainMatrix:!0}),p=i.properties.get("atmosphere-blend")*f.projectionTransition;if(0===p)return;let m=iw(h.worldSize,h.center.lat),g={u_sun_pos:d,u_atmosphere_blend:p,u_globe_position:ik(h),u_globe_radius:m,u_inv_proj_matrix:h.inverseProjectionMatrix},y=aF(s,i);c.draw(s,l.TRIANGLES,u,an.disabled,ai.alphaBlended,ao.disabled,g,null,null,"atmosphere",y.vertexBuffer,y.indexBuffer,y.segments)},custom:function(t,i,r,a){let{isRenderingGlobe:n}=a,o=t.context,s=r.implementation,l=t.style.projection,c=t.transform,u=c.getProjectionDataForCustomLayer(n),h={farZ:c.farZ,nearZ:c.nearZ,fov:c.fov*Math.PI/180,modelViewProjectionMatrix:c.modelViewProjectionMatrix,projectionMatrix:c.projectionMatrix,shaderData:{variantName:l.shaderVariantName,vertexShaderPrelude:`const float PI = 3.141592653589793;
1179uniform mat4 u_projection_matrix;
1180${l.shaderPreludeCode.vertexSource}`,define:l.shaderDefine},defaultProjectionData:u,getProjectionData:t=>c.getProjectionData({overscaledTileID:new T.d(t.tileID.canonical.z,t.tileID.wrap??0,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),aligned:t.aligned,applyGlobeMatrix:t.applyGlobeMatrix,applyTerrainMatrix:t.applyTerrainMatrix})},d=s.renderingMode?s.renderingMode:"2d";if("offscreen"===a.currentPass){let i=s.prerender;i&&(t.setCustomLayerDefaults(),o.setColorMode(t.colorModeForRenderPass()),i.call(s,o.gl,h),o.setDirty(),t.setBaseState())}else if("translucent"===a.currentPass){t.setCustomLayerDefaults(),o.setColorMode(t.colorModeForRenderPass()),o.setStencilMode(an.disabled);let i="3d"===d?t.getDepthModeFor3D():t.getDepthModeForSublayer(0,aa.ReadOnly);o.setDepthMode(i),s.render(o.gl,h),o.setDirty(),t.setBaseState(),o.bindFramebuffer.set(null)}},debug:function(t,i,r){for(let a of r)!function(t,i,r){let a=t.context,n=a.gl,o=t.useProgram("debug"),s=aa.disabled,l=an.disabled,c=t.colorModeForRenderPass(),u="$debug",h=t.style.map.terrain?.getTerrainData(r);a.activeTexture.set(n.TEXTURE0);let d=Math.floor((i.getTileByID(r.key).latestRawTileData?.byteLength||0)/1024),f=512/Math.min(i.getTile(r).tileSize,512)*(r.overscaledZ/t.transform.zoom)*.5,p=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(p+=` => ${r.overscaledZ}`),function(t,i){t.initDebugOverlayCanvas();let r=t.debugOverlayCanvas,a=t.context.gl,n=t.debugOverlayCanvas.getContext("2d");n.clearRect(0,0,r.width,r.height),n.shadowColor="white",n.shadowBlur=2,n.lineWidth=1.5,n.strokeStyle="white",n.textBaseline="top",n.font="bold 36px Open Sans, sans-serif",n.fillText(i,5,5),n.strokeText(i,5,5),t.debugOverlayTexture.update(r),t.debugOverlayTexture.bind(a.LINEAR,a.CLAMP_TO_EDGE)}(t,`${p} ${d}kB`);let m=t.transform.getProjectionData({overscaledTileID:r,applyGlobeMatrix:!0,applyTerrainMatrix:!0});o.draw(a,n.TRIANGLES,s,l,ai.alphaBlended,ao.disabled,ra(T.fn.transparent,f),null,m,u,t.debugBuffer,t.quadTriangleIndexBuffer,t.debugSegments),o.draw(a,n.LINE_STRIP,s,l,c,ao.disabled,ra(T.fn.red),h,m,u,t.debugBuffer,t.tileBorderIndexBuffer,t.debugSegments)}(t,i,a)},debugPadding:function(t){var i,r,a,n;let o=t.transform.padding;aI(t,t.transform.height-(o.top||0),3,aC),aI(t,o.bottom||0,3,aE),az(t,o.left||0,3,aM),az(t,t.transform.width-(o.right||0),3,aP);let s=t.transform.centerPoint;i=t,r=s.x,a=t.transform.height-s.y,aL(i,r-1,a-10,2,20,n=aD),aL(i,r-10,a-1,20,2,n)},terrainDepth:function(t,i){let r=t.context,a=r.gl,n=t.transform,o=ai.unblended,s=new aa(a.LEQUAL,aa.ReadWrite,[0,1]),l=i.tileManager.getRenderableTiles(),c=t.useProgram("terrainDepth");for(let u of(r.bindFramebuffer.set(i.getFramebuffer().framebuffer),r.viewport.set([0,0,t.width/devicePixelRatio,t.height/devicePixelRatio]),r.clear({color:T.fn.white,depth:1}),l)){let t=i.getTerrainMesh(u.tileID),l=i.getTerrainData(u.tileID),h=n.getProjectionData({overscaledTileID:u.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0}),d=iX(i.getSkirtLength(n.zoom));c.draw(r,a.TRIANGLES,s,an.disabled,o,ao.backCCW,d,l,h,"terrain",t.vertexBuffer,t.indexBuffer,t.segments)}r.bindFramebuffer.set(null),r.viewport.set([0,0,t.width,t.height])}};var aO=class t{constructor(t,i){this.drawFunctions=aR,this.context=new ar(t),this.transform=i,this.layerOpacityFbo=null,this._tileTextures={},this._rttObjectRecyclePool=[],this._rttSharedFbo=null,this.terrainFacilitator={depthDirty:!0,matrix:(0,T.Si)(new Float64Array(16)),renderTime:0},this.setup(),this.numSublayers=ti.maxOverzooming+ti.maxUnderzooming+1,this.depthEpsilon=1/65536,this.crossTileSymbolIndex=new tH}resize(t,i,r){if(this.width=Math.floor(t*r),this.height=Math.floor(i*r),this.pixelRatio=r,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let t of this.style._order)this.style._layers[t].resize()}setup(){let t=this.context,i=new T.Gt;i.emplaceBack(0,0),i.emplaceBack(8192,0),i.emplaceBack(0,8192),i.emplaceBack(8192,8192),this.tileExtentBuffer=t.createVertexBuffer(i,e$.members),this.tileExtentSegments=T.Bt.simpleSegment(0,0,4,2);let r=new T.Gt;r.emplaceBack(0,0),r.emplaceBack(8192,0),r.emplaceBack(0,8192),r.emplaceBack(8192,8192),this.debugBuffer=t.createVertexBuffer(r,e$.members),this.debugSegments=T.Bt.simpleSegment(0,0,4,5);let a=new T.qt;a.emplaceBack(0,0,0,0),a.emplaceBack(8192,0,8192,0),a.emplaceBack(0,8192,0,8192),a.emplaceBack(8192,8192,8192,8192),this.rasterBoundsBuffer=t.createVertexBuffer(a,iZ.members),this.rasterBoundsSegments=T.Bt.simpleSegment(0,0,4,2);let n=new T.Gt;n.emplaceBack(0,0),n.emplaceBack(8192,0),n.emplaceBack(0,8192),n.emplaceBack(8192,8192),this.rasterBoundsBufferPosOnly=t.createVertexBuffer(n,e$.members),this.rasterBoundsSegmentsPosOnly=T.Bt.simpleSegment(0,0,4,5);let o=new T.Gt;
1180o.emplaceBack(0,0),o.emplaceBack(1,0),o.emplaceBack(0,1),o.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(o,e$.members),this.viewportSegments=T.Bt.simpleSegment(0,0,4,2);let s=new T.Ut;s.emplaceBack(0),s.emplaceBack(1),s.emplaceBack(3),s.emplaceBack(2),s.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(s);let l=new T.Jt;l.emplaceBack(1,0,2),l.emplaceBack(1,2,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(l);let c=this.context.gl;this.stencilClearMode=new an({func:c.ALWAYS,mask:0},0,255,c.ZERO,c.ZERO,c.ZERO),this.tileExtentMesh=new eN(this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}clearStencil(){let t=this.context,i=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let r=(0,T.vi)();(0,T.Ti)(r,0,this.width,this.height,0,0,1),(0,T.Ai)(r,r,[i.drawingBufferWidth,i.drawingBufferHeight,0]),this.useProgram("clippingMask",null,!0).draw(t,i.TRIANGLES,aa.disabled,this.stencilClearMode,ai.disabled,ao.disabled,null,null,{mainMatrix:r,tileMercatorCoords:[0,0,1,1],clippingPlane:[0,0,0,0],projectionTransition:0,fallbackMatrix:r,clipAntimeridian:!1},"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}renderTileClippingMasks(t,i,r){if(this.currentStencilSource===t.source||!t.isTileClipped()||!i?.length)return;this.currentStencilSource=t.source,this.nextStencilID+i.length>256&&this.clearStencil();let a=this.context;a.setColorMode(ai.disabled),a.setDepthMode(aa.disabled);let n={};for(let t of i)n[t.key]=this.nextStencilID++;this.style.projection.useSubdivision&&this._renderTileMasks(n,i,r,!0),this._renderTileMasks(n,i,r,!1),this._tileClippingMaskIDs=n}_renderTileMasks(t,i,r,a){let n=this.context,o=n.gl,s=this.style.projection,l=this.transform,c=this.useProgram("clippingMask");for(let u of i){let i=t[u.key],h=this.getTerrainDataForTile(u,r),d=s.getMeshFromTileID(this.context,u.canonical,a,!0,"stencil"),f=l.getProjectionData({overscaledTileID:u,applyGlobeMatrix:!r,applyTerrainMatrix:!0});c.draw(n,o.TRIANGLES,aa.disabled,new an({func:o.ALWAYS,mask:0},i,255,o.KEEP,o.KEEP,o.REPLACE),ai.disabled,r?ao.disabled:ao.backCCW,null,h,f,"$clipping",d.vertexBuffer,d.indexBuffer,d.segments)}}getTerrainDataForTile(t,i){return i&&this.style.projection?.name==="mercator"?null:this.style.map.terrain?.getTerrainData(t)||null}_renderTilesDepthBuffer(){let t=this.context,i=t.gl,r=this.style.projection,a=this.transform,n=this.useProgram("depth"),o=this.getDepthModeFor3D();for(let s of e8(a,{tileSize:a.tileSize})){let l=this.style.map.terrain?.getTerrainData(s),c=r.getMeshFromTileID(this.context,s.canonical,!0,!0,"raster"),u=a.getProjectionData({overscaledTileID:s,applyGlobeMatrix:!0,applyTerrainMatrix:!0});n.draw(t,i.TRIANGLES,o,an.disabled,ai.disabled,ao.backCCW,null,l,u,"$clipping",c.vertexBuffer,c.indexBuffer,c.segments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let t=this.nextStencilID++,i=this.context.gl;return new an({func:i.NOTEQUAL,mask:255},t,255,i.KEEP,i.KEEP,i.REPLACE)}stencilModeForClipping(t){let i=this.context.gl;return new an({func:i.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,i.KEEP,i.KEEP,i.REPLACE)}getStencilConfigForOverlapAndUpdateStencilID(t){let i=this.context.gl,r=t.sort((t,i)=>i.overscaledZ-t.overscaledZ),a=r[r.length-1].overscaledZ,n=r[0].overscaledZ-a+1;if(n>1){this.currentStencilSource=void 0,this.nextStencilID+n>256&&this.clearStencil();let t={};for(let r=0;r<n;r++)t[r+a]=new an({func:i.GEQUAL,mask:255},r+this.nextStencilID,255,i.KEEP,i.KEEP,i.REPLACE);return this.nextStencilID+=n,[t,r]}return[{[a]:an.disabled},r]}stencilConfigForOverlapTwoPass(t){let i=this.context.gl,r=t.sort((t,i)=>i.overscaledZ-t.overscaledZ),a=r[r.length-1].overscaledZ,n=r[0].overscaledZ-a+1;if(this.clearStencil(),n>1){let t={},o={};for(let r=0;r<n;r++)t[r+a]=new an({func:i.GREATER,mask:255},n+1+r,255,i.KEEP,i.KEEP,i.REPLACE),o[r+a]=new an({func:i.GREATER,mask:255},1+r,255,i.KEEP,i.KEEP,i.REPLACE);return this.nextStencilID=2*n+1,[t,o,r]}return this.nextStencilID=3,[{[a]:new an({func:i.GREATER,mask:255},2,255,i.KEEP,i.KEEP,i.REPLACE)},{[a]:new an({func:i.GREATER,mask:255},1,255,i.KEEP,i.KEEP,i.REPLACE)},r]}colorModeForRenderPass(){let t=this.context.gl;if(this._showOverdrawInspector){let i=1/8;return new ai([t.CONSTANT_COLOR,t.ONE],new T.fn(i,i,i,0),[!0,!0,!0,!0])}return"opaque"===this.renderOptions.currentPass?ai.unblended:ai.alphaBlended}getDepthModeForSublayer(t,i,r){if(!this.opaquePassEnabledForLayer())return aa.disabled;let a=1-((1+this.renderOptions.currentLayer)*this.numSublayers+t)*this.depthEpsilon;return new aa(r||this.context.gl.LEQUAL,i,[a,a])}getDepthModeFor3D(){return new aa(this.context.gl.LEQUAL,aa.ReadWrite,this.renderOptions.depthRangeFor3D)}opaquePassEnabledForLayer(){return this.renderOptions.currentLayer<this.renderOptions.opaquePassCutoff}render(t,i){var r,a;let n;this.style=t,this.options=i;let o=this.renderOptions=(r=this.transform,a=t.projection,{currentPass:"offscreen",currentLayer:0,opaquePassCutoff:1/0,depthRangeFor3D:[0,1],isRenderingToTexture:!1,transform:r,terrain:t.map.terrain??null,projectionTransition:n=a?.transitionState??0,isRenderingGlobe:n>0});this.lineAtlas=t.lineAtlas,this.imageManager=t.imageManager,this.patternAtlas=t.patternAtlas,this.glyphManager=t.glyphManager,this.symbolFadeChange=t.placement.symbolFadeChange(E()),function(t,i){let r=t.pending,{transform:a}=i,n=i.context.gl;r[at.u_units_to_pixels]=1/a.pixelsToGLUnits[0],r[at.u_units_to_pixels+1]=1/a.pixelsToGLUnits[1],r[at.u_world_size]=n.drawingBufferWidth,r[at.u_world_size+1]=n.drawingBufferHeight,r[at.u_camera_to_center_distance]=a.cameraToCenterDistance,r[at.u_symbol_fade_change]=i.options.fadeDuration?i.symbolFadeChange:1,r[at.u_aspect_ratio]=a.width/a.height,r[at.u_device_pixel_ratio]=i.pixelRatio,r[at.u_viewport_size]=a.width,r[at.u_viewport_size+1]=a.height,r[at.u_pixel_extrude_scale]=1/a.width,r[at.u_pixel_extrude_scale+1]=1/a.height,r[at.u_pitch]=a.pitch/360*2*Math.PI,t.upload()}(this.context.frameUniformBuffer,this),this.imageManager.beginFrame();let s=this.style._order,l=this.style.tileManagers,c={},u={},h={};for(let t in l){let i=l[t];i.used&&i.prepare(this.context),c[t]=i.getVisibleCoordinates(!1),u[t]=c[t].slice().reverse(),h[t]=i.getVisibleCoordinates(!0).reverse()}o.opaquePassCutoff=1/0;for(let t=0;t<s.length;t++){let i=s[t];if(this.style._layers[i].is3D()){o.opaquePassCutoff=t;break}}for(let t of(this.maybeDrawDepth(),this.renderToTexture&&(this.renderToTexture.prepareForRender(this.style,this.transform.zoom),o.opaquePassCutoff=0),o.currentPass="offscreen",s)){let i=this.style._layers[t];
1180if(!i.hasOffscreenPass()||i.isHidden(this.transform.zoom))continue;let r=u[i.source];("custom"===i.type||r.length)&&this.renderLayer(this,l[i.source],i,r,o)}if(this.context.viewport.set([0,0,this.width,this.height]),this.context.bindFramebuffer.set(null),this.context.clear({color:i.showOverdrawInspector?T.fn.black:T.fn.transparent,depth:1}),this.clearStencil(),this.style.sky&&this.drawFunctions.sky(this,this.style.sky),this._showOverdrawInspector=i.showOverdrawInspector,o.depthRangeFor3D=[0,1-(t._order.length+2)*this.numSublayers*this.depthEpsilon],!this.renderToTexture)for(o.currentPass="opaque",o.currentLayer=s.length-1;o.currentLayer>=0;o.currentLayer--){let t=this.style._layers[s[o.currentLayer]];if(t.isHidden(this.transform.zoom))continue;let i=l[t.source],r=c[t.source];this.renderTileClippingMasks(t,r,!1),this.renderLayer(this,i,t,r,o)}o.currentPass="translucent";let d=!1;for(o.currentLayer=0;o.currentLayer<s.length;o.currentLayer++){let t=this.style._layers[s[o.currentLayer]];if(t.isHidden(this.transform.zoom))continue;let i=l[t.source];if(this.renderToTexture?.renderLayer(t,o))continue;this.opaquePassEnabledForLayer()||d||(d=!0,o.isRenderingGlobe&&!this.style.map.terrain&&this._renderTilesDepthBuffer());let r=("symbol"===t.type?h:u)[t.source];this.renderTileClippingMasks(t,c[t.source],!!this.renderToTexture),this.renderLayer(this,i,t,r,o)}if(o.isRenderingGlobe&&this.drawFunctions.atmosphere(this,this.style.sky,this.style.light),this.options.showTileBoundaries){let t=function(t,i){let r=null,a=Object.values(t._layers).flatMap(r=>r.source&&!r.isHidden(i)?[t.tileManagers[r.source]]:[]),n=a.filter(t=>"vector"===t.getSource().type),o=a.filter(t=>"vector"!==t.getSource().type),s=t=>{(!r||r.getSource().maxzoom<t.getSource().maxzoom)&&(r=t)};for(let t of n)s(t);if(!r)for(let t of o)s(t);return r}(this.style,this.transform.zoom);t&&this.drawFunctions.debug(this,t,t.getVisibleCoordinates())}this.options.showPadding&&this.drawFunctions.debugPadding(this),this.context.setDefault()}markTerrainDepthDirty(){this.terrainFacilitator.depthDirty=!0}maybeDrawDepth(){if(!this.style?.projection||!this.style.map?.terrain)return;let t=this.terrainFacilitator.matrix,i=this.transform.modelViewProjectionMatrix,r=this.terrainFacilitator.depthDirty;r||=!(0,T.yi)(t,i),(r||=this.style.map.terrain.tileManager.anyTilesAfterTime(this.terrainFacilitator.renderTime))&&((0,T._i)(t,i),this.terrainFacilitator.renderTime=E(),this.terrainFacilitator.depthDirty=!1,this.drawFunctions.terrainDepth(this,this.style.map.terrain))}renderLayer(t,i,r,a,n){if(r.isHidden(this.transform.zoom)||"background"!==r.type&&"custom"!==r.type&&!(a||[]).length)return;this.id=r.id;let o=this.drawFunctions;(0,T.x)(r)?o.symbol(t,i,r,a,this.style.placement.variableOffsets,n):(0,T.Ot)(r)?o.circle(t,i,r,a,n):(0,T.wt)(r)?o.heatmap(t,i,r,a,n):(0,T.W)(r)?o.line(t,i,r,a,n):(0,T.mt)(r)?o.fill(t,i,r,a,n):(0,T.K)(r)?o.fillExtrusion(t,i,r,a,n):(0,T.St)(r)?o.hillshade(t,i,r,a,n):(0,T.yt)(r)?o.colorRelief(t,i,r,a,n):(0,T.Xt)(r)?o.raster(t,i,r,a,n):(0,T.b)(r)?o.background(t,i,r,a,n):(0,T.v)(r)&&o.custom(t,i,r,n)}static{this.MAX_TEXTURE_POOL_SIZE_PER_BUCKET=50}saveTileTexture(i){let r=this._tileTextures[i.size[0]];r?r.length<t.MAX_TEXTURE_POOL_SIZE_PER_BUCKET?r.push(i):i.destroy():this._tileTextures[i.size[0]]=[i]}getTileTexture(t){let i=this._tileTextures[t];return i&&i.length>0?i.pop():null}acquireRTT(t){let i=this.context.gl,r=this._rttObjectRecyclePool.pop();if(r)return r.size!==t&&(r.texture.update({width:t,height:t,data:null},{premultiply:!1,useMipmap:!0}),r.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE,i.LINEAR_MIPMAP_LINEAR),this.context.extTextureFilterAnisotropic&&i.texParameterf(i.TEXTURE_2D,this.context.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,this.context.extTextureFilterAnisotropicMax),r.size=t),r;let a=new T.xt(this.context,{width:t,height:t,data:null},i.RGBA,{premultiply:!1,useMipmap:!0});return a.bind(i.LINEAR,i.CLAMP_TO_EDGE,i.LINEAR_MIPMAP_LINEAR),this.context.extTextureFilterAnisotropic&&i.texParameterf(i.TEXTURE_2D,this.context.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,this.context.extTextureFilterAnisotropicMax),{texture:a,size:t}}bindRTT(t){let i=this.context.gl,r=t.size;if(!this._rttSharedFbo){let t=this.context.createFramebuffer(r,r,!0,!0),a=this.context.createRenderbuffer(i.DEPTH_STENCIL,r,r);t.depthAttachment.set(a),this._rttSharedFbo={fbo:t,depthRenderbuffer:a,size:r}}this._rttSharedFbo.size!==r&&(this.context.bindRenderbuffer.set(this._rttSharedFbo.depthRenderbuffer),i.renderbufferStorage(i.RENDERBUFFER,i.DEPTH_STENCIL,r,r),this.context.bindRenderbuffer.set(null),this._rttSharedFbo.fbo.width=r,this._rttSharedFbo.fbo.height=r,this._rttSharedFbo.size=r),this._rttSharedFbo.fbo.colorAttachment.set(t.texture.texture),this.context.bindFramebuffer.set(this._rttSharedFbo.fbo.framebuffer)}releaseRTT(t){this._rttObjectRecyclePool.push(t)}isPatternMissing(t){if(!t)return!1;if(!t.from||!t.to)return!0;let i=this.patternAtlas.getPattern(t.from.toString()),r=this.patternAtlas.getPattern(t.to.toString());return!i||!r}useProgram(t,i,r=!1,a=[]){this.cache||={};let n=!!this.style.map.terrain,o=this.style.projection,s=r?tQ.projectionMercator:o.shaderPreludeCode,l=r?t0:o.shaderDefine,c=`/${r?t2:o.shaderVariantName}`,u=t+(i?i.cacheKey:"")+c+(this._showOverdrawInspector?"/overdraw":"")+(n?"/terrain":"")+(a?`/${a.join("/")}`:"");return this.cache[u]||=new i4(this.context,tQ[t],i,rk[t],this._showOverdrawInspector,n,s,l,a),this.cache[u]}setCustomLayerDefaults(){this.context.setCustomLayerDefaults()}setBaseState(){let t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)}initDebugOverlayCanvas(){if(null==this.debugOverlayCanvas){this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;let t=this.context.gl;this.debugOverlayTexture=new T.xt(this.context,this.debugOverlayCanvas,t.RGBA)}}destroy(){if(this._tileTextures){for(let t in this._tileTextures){let i=this._tileTextures[t];
vendor: 5,454 bytes, line 1180
1180if(i)for(let t of i)t.destroy()}this._tileTextures={}}for(let t of this._rttObjectRecyclePool)t.texture.destroy();if(this._rttObjectRecyclePool=[],this._rttSharedFbo){this._rttSharedFbo.fbo.colorAttachment.set(null),this._rttSharedFbo.fbo.depthAttachment.set(null);let t=this.context.gl;t.deleteRenderbuffer(this._rttSharedFbo.depthRenderbuffer),t.deleteFramebuffer(this._rttSharedFbo.fbo.framebuffer),this._rttSharedFbo=null}if(this.layerOpacityFbo?.destroy(),this.layerOpacityFbo=null,this.tileExtentBuffer&&this.tileExtentBuffer.destroy(),this.debugBuffer&&this.debugBuffer.destroy(),this.rasterBoundsBuffer&&this.rasterBoundsBuffer.destroy(),this.rasterBoundsBufferPosOnly&&this.rasterBoundsBufferPosOnly.destroy(),this.viewportBuffer&&this.viewportBuffer.destroy(),this.tileBorderIndexBuffer&&this.tileBorderIndexBuffer.destroy(),this.quadTriangleIndexBuffer&&this.quadTriangleIndexBuffer.destroy(),this.tileExtentMesh&&this.tileExtentMesh.vertexBuffer?.destroy(),this.tileExtentMesh&&this.tileExtentMesh.indexBuffer?.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),this.context.projectionUniformBuffer.destroy(),this.context.terrainUniformBuffer.destroy(),this.context.frameUniformBuffer.destroy(),this.cache){for(let t in this.cache){let i=this.cache[t];i?.program&&this.context.gl.deleteProgram(i.program)}this.cache={}}this.context&&this.context.setDefault()}overLimit(){let{drawingBufferWidth:t,drawingBufferHeight:i}=this.context.gl;return this.width!==t||this.height!==i}},aB=class extends Error{constructor(t,i){super("WebGL2 is required to display this map. We are sorry, but it seems that your browser does not support WebGL2, a technology for rendering 3D graphics on the web. Read more on https://wiki.openstreetmap.org/wiki/This_map_requires_WebGL"),this.name="GPUInitializationError",this.requestedAttributes=t,this.statusMessage=i?.statusMessage??null}};function aj(t,i){let r=!1,a=null,n,o=()=>{a=null,r&&=(t(...n),a=setTimeout(o,i),!1)};return(...t)=>(r=!0,n=t,a||o(),a)}var aN=class{constructor(t){this._getHashParams=()=>new URLSearchParams(window.location.hash.replace("#","")),this._getCurrentHash=()=>{let t=this._getHashParams();return this._hashName?(t.get(this._hashName)||"").split("/"):([...t.keys()][0]??"").split("/")},this._onHashChange=()=>{let t=this._getCurrentHash();if(!this._isValidHash(t))return!1;let i=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:i,pitch:+(t[4]||0)}),!0},this._updateHashUnthrottled=()=>{let t=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,t)},this._removeHash=()=>{let t=this._getHashParams();if(this._hashName)t.delete(this._hashName);else{let i=Array.from(t.keys());i.length>0&&t.delete(i[0])}let i=decodeURIComponent(t.toString()).replace(/=&/g,"&").replace(/=$/g,""),r=i?`#${i}`:"",a=window.location.href.replace(/(#.+)?$/,r);a=a.replace("&&","&"),window.history.replaceState(window.history.state,null,a)},this._updateHash=aj(this._updateHashUnthrottled,300),this._hashName=t&&encodeURIComponent(t)}addTo(t){return this._map=t,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(t){let i=this._map.getCenter(),r=Math.round(100*this._map.getZoom())/100,a=10**Math.ceil((r*Math.LN2+Math.log(512/360/.5))/Math.LN10),n=Math.round(i.lng*a)/a,o=Math.round(i.lat*a)/a,s=this._map.getBearing(),l=this._map.getPitch(),c="";if(c+=t?`/${n}/${o}/${r}`:`${r}/${o}/${n}`,(s||l)&&(c+=`/${Math.round(10*s)/10}`),l&&(c+=`/${Math.round(l)}`),this._hashName){let t=this._getHashParams();return t.set(this._hashName,c),`#${decodeURIComponent(t.toString()).replace(/=&/g,"&").replace(/=$/g,"")}`}return`#${c}`}_isValidHash(t){if(t.length<3||t.some(t=>isNaN(+t)))return!1;try{new T.lt(+t[2],+t[1])}catch{return!1}let i=+t[0],r=+(t[3]||0),a=+(t[4]||0);return i>=this._map.getMinZoom()&&i<=this._map.getMaxZoom()&&r>=-180&&r<=180&&a>=this._map.getMinPitch()&&a<=this._map.getMaxPitch()}};let a$={linearity:.3,easing:(0,T.zn)(0,0,.3,1)},aV=(0,T.er)({deceleration:2500,maxSpeed:1400},a$),aU=(0,T.er)({deceleration:20,maxSpeed:1400},a$),aG=(0,T.er)({deceleration:1e3,maxSpeed:360},a$),aq=(0,T.er)({deceleration:1e3,maxSpeed:90},a$),aZ=(0,T.er)({deceleration:1e3,maxSpeed:360},a$);var aH=class{constructor(t){this._map=t,this.clear()}clear(){this._inertiaBuffer=[]}record(t){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:E(),settings:t})}_drainInertiaBuffer(){let t=this._inertiaBuffer,i=E();for(;t.length>0&&i-t[0].time>160;)t.shift()}_getVelocityEntries(){let t=this._inertiaBuffer,i=E()-60,r=Math.max(0,t.length-2);for(;r>0&&t[r-1].time>=i;)r--;return t.slice(r)}_onMoveEnd(t){this._drainInertiaBuffer();let i=this._getVelocityEntries();if(i.length<2)return void this.clear();let r={zoom:0,bearing:0,pitch:0,roll:0,pan:new T.Li(0,0),pinchAround:void 0,around:void 0};for(let{settings:t}of i)t.around&&(r.around=t.around),t.pinchAround&&(r.pinchAround=t.pinchAround);for(let{settings:t}of i.slice(1))r.zoom+=t.zoomDelta||0,r.bearing+=t.bearingDelta||0,r.pitch+=t.pitchDelta||0,r.roll+=t.rollDelta||0,t.panDelta&&r.pan._add(t.panDelta);
vendor: 5,900 bytes, line 1180
1180if(!r.pan.mag()&&!r.zoom&&!r.bearing&&!r.pitch&&!r.roll)return void this.clear();let a=E()-i[0].time,n={};if(r.pan.mag()){let i=aX(r.pan.mag(),a,(0,T.er)({},aV,t||{})),o=r.pan.mult(i.amount/r.pan.mag()),s=this._map._camera.cameraHelper.handlePanInertia(o,this._map._camera.transform);n.center=s.easingCenter,n.offset=s.easingOffset,aW(n,i)}if(r.zoom){let t=aX(r.zoom,a,aU);n.zoom=(0,T.$n)(this._map.getZoom()+t.amount,this._map.getZoomSnap(),t.amount),aW(n,t)}if(r.bearing){let t=aX(r.bearing,a,aG);n.bearing=this._map.getBearing()+(0,T.Bn)(t.amount,-179,179),aW(n,t)}if(r.pitch){let t=aX(r.pitch,a,aq);n.pitch=this._map.getPitch()+t.amount,aW(n,t)}if(r.roll){let t=aX(r.roll,a,aZ);n.roll=this._map.getRoll()+(0,T.Bn)(t.amount,-179,179),aW(n,t)}if(n.zoom||n.bearing){let t=void 0===r.pinchAround?r.around:r.pinchAround;n.around=t?this._map.unproject(t):this._map.getCenter()}return this.clear(),(0,T.er)(n,{noMoveStart:!0})}};function aW(t,i){(!t.duration||t.duration<i.duration)&&(t.duration=i.duration,t.easing=i.easing)}function aX(t,i,r){let{maxSpeed:a,linearity:n,deceleration:o}=r,s=(0,T.Bn)(t*n/(i/1e3),-a,a),l=Math.abs(s)/(o*n);return{easing:r.easing,duration:1e3*l,amount:l/2*s}}var aY=class{constructor(t,i){this._map=t,this._clickTolerance=i.clickTolerance}reset(){delete this._mousedownPos}wheel(t){return this._firePreventable(new j(this._map,t))}mousedown(t,i){return this._mousedownPos=i,this._firePreventable(new O(t.type,this._map,t))}mouseup(t){this._map.fire(new O(t.type,this._map,t))}click(t,i){this._mousedownPos&&this._mousedownPos.dist(i)>=this._clickTolerance||this._map.fire(new O(t.type,this._map,t))}dblclick(t){return this._firePreventable(new O(t.type,this._map,t))}mouseover(t){this._map.fire(new O(t.type,this._map,t))}mouseout(t){this._map.fire(new O(t.type,this._map,t))}touchstart(t){return this._firePreventable(new B(t.type,this._map,t))}touchmove(t){this._map.fire(new B(t.type,this._map,t))}touchend(t){this._map.fire(new B(t.type,this._map,t))}touchcancel(t){this._map.fire(new B(t.type,this._map,t))}_firePreventable(t){if(this._map.fire(t),t.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}},aK=class{constructor(t){this._map=t}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(t){this._map.fire(new O(t.type,this._map,t))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new O("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(t){this._delayContextMenu?this._contextMenuEvent=t:this._ignoreContextMenu||this._map.fire(new O(t.type,this._map,t)),this._map.listens("contextmenu")&&t.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}},aJ=class{constructor(t,i,r){this._map=t,this._tr=r,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=i.clickTolerance||1,i.boxZoom&&"object"==typeof i.boxZoom&&(this._boxZoomEnd=i.boxZoom.boxZoomEnd)}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(t,i){this.isEnabled()&&t.shiftKey&&0===t.button&&(M.disableDrag(),this._startPos=this._lastPos=i,this._active=!0)}mousemoveWindow(t,i){if(!this._active||this._lastPos.equals(i)||!this._box&&i.dist(this._startPos)<this._clickTolerance)return;let r=this._startPos;this._lastPos=i,this._box||(this._box=M.create("div","maplibregl-boxzoom",this._container),this._container.classList.add("maplibregl-crosshair"),this._fireEvent("boxzoomstart",t));let a=Math.min(r.x,i.x),n=Math.max(r.x,i.x),o=Math.min(r.y,i.y),s=Math.max(r.y,i.y);this._box.style.transform=`translate(${a}px,${o}px)`,this._box.style.width=`${n-a}px`,this._box.style.height=`${s-o}px`}mouseupWindow(t,i){if(!this._active||0!==t.button)return;let r=this._startPos;if(this.reset(),M.suppressClick(),r.x!==i.x||r.y!==i.y)return(this._map.fire(new N("boxzoomend",{originalEvent:t})),this._boxZoomEnd)?void this._boxZoomEnd(this._map,r,i,t):{cameraAnimation:t=>t.fitScreenCoordinates(r,i,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",t)}keydown(t){this._active&&27===t.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",t))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&=(this._box.remove(),null),M.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(t,i){return this._map.fire(new N(t,{originalEvent:i}))}};function aQ(t,i){if(t.length!==i.length)throw Error(`The number of touches and points are not equal - touches ${t.length}, points ${i.length}`);let r={};for(let a=0;a<t.length;a++)r[t[a].identifier]=i[a];return r}var a1=class{constructor(t){this.reset(),this.numTouches=t.numTouches}reset(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1}touchstart(t,i,r){(this.centroid||r.length>this.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=t.timeStamp),r.length===this.numTouches&&(this.centroid=function(t){let i=new T.Li(0,0);for(let r of t)i._add(r);return i.div(t.length)}(i),this.touches=aQ(r,i)))}touchmove(t,i,r){if(this.aborted||!this.centroid)return;let a=aQ(r,i);for(let t in this.touches){let i=this.touches[t],r=a[t];(!r||r.dist(i)>30)&&(this.aborted=!0)}}touchend(t,i,r){if((!this.centroid||t.timeStamp-this.startTime>500)&&(this.aborted=!0),0===r.length){let t=!this.aborted&&this.centroid;if(this.reset(),t)return t}}},a0=class{constructor(t){this.singleTap=new a1(t),this.numTaps=t.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(t,i,r){this.singleTap.touchstart(t,i,r)}touchmove(t,i,r){this.singleTap.touchmove(t,i,r)}touchend(t,i,r){let a=this.singleTap.touchend(t,i,r);
1180if(a){let i=t.timeStamp-this.lastTime<500,r=!this.lastTap||30>this.lastTap.dist(a);if(i&&r||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=a,this.count===this.numTaps)return this.reset(),a}}},a2=class{constructor(t,i){this._tr=i,this._zoomIn=new a0({numTouches:1,numTaps:2}),this._zoomOut=new a0({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(t,i,r){this._zoomIn.touchstart(t,i,r),this._zoomOut.touchstart(t,i,r)}touchmove(t,i,r){this._zoomIn.touchmove(t,i,r),this._zoomOut.touchmove(t,i,r)}touchend(t,i,r){let a=this._zoomIn.touchend(t,i,r),n=this._zoomOut.touchend(t,i,r),o=this._tr;return a?(this._active=!0,t.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:i=>i.easeTo({duration:300,zoom:(0,T.$n)(o.zoom+1,i.getZoomSnap()),around:o.unproject(a)},{originalEvent:t})}):n?(this._active=!0,t.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:i=>i.easeTo({duration:300,zoom:(0,T.$n)(o.zoom-1,i.getZoomSnap()),around:o.unproject(n)},{originalEvent:t})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},a3=class{constructor(t){this._enabled=!!t.enable,this._moveStateManager=t.moveStateManager,this._clickTolerance=t.clickTolerance||1,this._moveFunction=t.move,this._activateOnStart=!!t.activateOnStart,t.assignEvents(this),this.reset()}reset(t){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(t)}_move(...t){let i=this._moveFunction(...t);if(i.bearingDelta||i.pitchDelta||i.rollDelta||i.around||i.panDelta)return this._active=!0,i}dragStart(t,i){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(t)&&(this._moveStateManager.startMove(t),this._lastPoint=Array.isArray(i)?i[0]:i,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(t,i){if(!this.isEnabled())return;let r=this._lastPoint;if(!r)return;if(t.preventDefault(),!this._moveStateManager.isValidMoveEvent(t))return void this.reset(t);let a=Array.isArray(i)?i[0]:i;if(!(!this._moved&&a.dist(r)<this._clickTolerance))return this._moved=!0,this._lastPoint=a,this._move(r,a)}dragEnd(t){this.isEnabled()&&this._lastPoint&&this._moveStateManager.isValidEndEvent(t)&&(this._moved&&M.suppressClick(),this.reset(t))}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}getClickTolerance(){return this._clickTolerance}};let a5={0:1,2:2};var a4=class{constructor(t){this._correctEvent=t.checkCorrectEvent}startMove(t){this._eventButton=t.button}endMove(t){delete this._eventButton}isValidStartEvent(t){return this._correctEvent(t)}isValidMoveEvent(t){let i;return i=a5[this._eventButton],void 0!==t.buttons&&(t.buttons&i)===i}isValidEndEvent(t){return t.button===this._eventButton}},a6=class{constructor(){this._firstTouch=void 0}_isOneFingerTouch(t){return 1===t.targetTouches.length}_isSameTouchEvent(t){return t.targetTouches[0].identifier===this._firstTouch}startMove(t){this._firstTouch=t.targetTouches[0].identifier}endMove(t){delete this._firstTouch}isValidStartEvent(t){return this._isOneFingerTouch(t)}isValidMoveEvent(t){return this._isOneFingerTouch(t)&&this._isSameTouchEvent(t)}isValidEndEvent(t){return this._isOneFingerTouch(t)&&this._isSameTouchEvent(t)}},a8=class{constructor(t=new a4({checkCorrectEvent:()=>!0}),i=new a6){this.mouseMoveStateManager=t,this.oneFingerTouchMoveStateManager=i}_executeRelevantHandler(t,i,r){return t instanceof MouseEvent?i(t):"u">typeof TouchEvent&&t instanceof TouchEvent?r(t):void 0}startMove(t){this._executeRelevantHandler(t,t=>{this.mouseMoveStateManager.startMove(t)},t=>{this.oneFingerTouchMoveStateManager.startMove(t)})}endMove(t){this._executeRelevantHandler(t,t=>{this.mouseMoveStateManager.endMove(t)},t=>{this.oneFingerTouchMoveStateManager.endMove(t)})}isValidStartEvent(t){return!!this._executeRelevantHandler(t,t=>this.mouseMoveStateManager.isValidStartEvent(t),t=>this.oneFingerTouchMoveStateManager.isValidStartEvent(t))}isValidMoveEvent(t){return!!this._executeRelevantHandler(t,t=>this.mouseMoveStateManager.isValidMoveEvent(t),t=>this.oneFingerTouchMoveStateManager.isValidMoveEvent(t))}isValidEndEvent(t){return!!this._executeRelevantHandler(t,t=>this.mouseMoveStateManager.isValidEndEvent(t),t=>this.oneFingerTouchMoveStateManager.isValidEndEvent(t))}};let a7=t=>{t.mousedown=t.dragStart,t.mousemoveWindow=t.dragMove,t.mouseup=t.dragEnd,t.contextmenu=t=>{t.preventDefault()}};var a9=class{constructor(t,i){this._clickTolerance=t.clickTolerance||1,this._map=i,this.reset()}reset(){this._active=!1,this._touches={}
vendor: 20,093 bytes, line 1180
1180,this._sum=new T.Li(0,0)}_shouldBePrevented(t){return t<(this._map.cooperativeGestures.isEnabled()?2:1)}touchstart(t,i,r){return this._calculateTransform(t,i,r)}touchmove(t,i,r){if(this._active)return this._shouldBePrevented(r.length)?void this._map.cooperativeGestures.notifyGestureBlocked("touch_pan",t):(t.preventDefault(),this._calculateTransform(t,i,r))}touchend(t,i,r){this._calculateTransform(t,i,r),this._active&&this._shouldBePrevented(r.length)&&this.reset()}touchcancel(){this.reset()}_calculateTransform(t,i,r){r.length>0&&(this._active=!0);let a=aQ(r,i),n=new T.Li(0,0),o=new T.Li(0,0),s=0;for(let t in a){let i=a[t],r=this._touches[t];r&&(n._add(i),o._add(i.sub(r)),s++,a[t]=i)}if(this._touches=a,this._shouldBePrevented(s)||!o.mag())return;let l=o.div(s);if(this._sum._add(l),!(this._sum.mag()<this._clickTolerance))return{around:n.div(s),panDelta:l}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},ne=class{constructor(){this.reset()}reset(){this._active=!1,delete this._firstTwoTouches}touchstart(t,i,r){this._firstTwoTouches||r.length<2||(this._firstTwoTouches=[r[0].identifier,r[1].identifier],this._start([i[0],i[1]]))}touchmove(t,i,r){if(!this._firstTwoTouches)return;t.preventDefault();let[a,n]=this._firstTwoTouches,o=nt(r,i,a),s=nt(r,i,n);if(!o||!s)return;let l=this._aroundCenter?null:o.add(s).div(2);return this._move([o,s],l,t)}touchend(t,i,r){if(!this._firstTwoTouches)return;let[a,n]=this._firstTwoTouches,o=nt(r,i,a),s=nt(r,i,n);o&&s||(this._active&&M.suppressClick(),this.reset())}touchcancel(){this.reset()}enable(t){this._enabled=!0,this._aroundCenter=!!t&&"center"===t.around}disable(){this._enabled=!1,this.reset()}isEnabled(){return!!this._enabled}isActive(){return!!this._active}};function nt(t,i,r){for(let a=0;a<t.length;a++)if(t[a].identifier===r)return i[a]}function ni(t,i){return Math.log(t/i)/Math.LN2}var nr=class extends ne{constructor(){super(),this._zoomRate=1,this._zoomThreshold=.1}setZoomRate(t){this._zoomRate=t??1}setZoomThreshold(t){this._zoomThreshold=t??.1}reset(){super.reset(),delete this._distance,delete this._startDistance}_start(t){this._startDistance=this._distance=t[0].dist(t[1])}_move(t,i){let r=this._distance;if(this._distance=t[0].dist(t[1]),!(!this._active&&Math.abs(ni(this._distance,this._startDistance))<this._zoomThreshold))return this._active=!0,{zoomDelta:ni(this._distance,r)*this._zoomRate,pinchAround:i}}};function na(t,i){return 180*t.angleWith(i)/Math.PI}var nn=class extends ne{reset(){super.reset(),delete this._minDiameter,delete this._startVector,delete this._vector}_start(t){this._startVector=this._vector=t[0].sub(t[1]),this._minDiameter=t[0].dist(t[1])}_move(t,i,r){let a=this._vector;if(this._vector=t[0].sub(t[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:na(this._vector,a),pinchAround:i}}_isBelowThreshold(t){this._minDiameter=Math.min(this._minDiameter,t.mag());let i=25/(Math.PI*this._minDiameter)*360;return Math.abs(na(t,this._startVector))<i}};function no(t){return Math.abs(t.y)>Math.abs(t.x)}var ns=class extends ne{constructor(t){super(),this._currentTouchCount=0,this._map=t}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(t,i,r){super.touchstart(t,i,r),this._currentTouchCount=r.length}_start(t){this._lastPoints=t,no(t[0].sub(t[1]))&&(this._valid=!1)}_move(t,i,r){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;let a=t[0].sub(this._lastPoints[0]),n=t[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(a,n,r.timeStamp),this._valid)return this._lastPoints=t,this._active=!0,{pitchDelta:-((a.y+n.y)/2*.5)}}gestureBeginsVertically(t,i,r){if(void 0!==this._valid)return this._valid;let a=t.mag()>=2,n=i.mag()>=2;if(!a&&!n)return;if(!a||!n)return void 0===this._firstMove&&(this._firstMove=r),r-this._firstMove<100&&void 0;let o=t.y>0==i.y>0;return no(t)&&no(i)&&o}};let nl=100,nc=15,nu=10;var nh=class{constructor(t,i){this._tr=i,this._panStep=nl,this._bearingStep=nc,this._pitchStep=nu,this._rotationDisabled=!1}reset(){this._active=!1}keydown(t){if(t.altKey||t.ctrlKey||t.metaKey)return;let i=0,r=0,a=0,n=0,o=0;switch(t.keyCode){case 61:case 107:case 171:case 187:i=1;break;case 189:case 109:case 173:i=-1;break;case 37:t.shiftKey?r=-1:(t.preventDefault(),n=-1);break;case 39:t.shiftKey?r=1:(t.preventDefault(),n=1);break;case 38:t.shiftKey?a=1:(t.preventDefault(),o=-1);break;case 40:t.shiftKey?a=-1:(t.preventDefault(),o=1);break;default:return}return this._rotationDisabled&&(r=0,a=0),{cameraAnimation:s=>{let l=this._tr;s.easeTo({duration:300,easeId:"keyboardHandler",easing:nd,zoom:i?(0,T.$n)(l.zoom+i*(t.shiftKey?2:1),s.getZoomSnap()):l.zoom,bearing:l.bearing+r*this._bearingStep,pitch:l.pitch+a*this._pitchStep,offset:[-n*this._panStep,-o*this._panStep],center:l.center},{originalEvent:t})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}};function nd(t){return t*(2-t)}var nf=class{constructor(t,i,r){this._onTimeout=t=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(t)},this._map=t,this._tr=r,this._triggerRenderFrame=i,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(t){this._defaultZoomRate=t}setWheelZoomRate(t){this._wheelZoomRate=t}isEnabled(){return!!this._enabled}isActive(){return!!this._active||void 0!==this._finishTimeout}isZooming(){return!!this._zooming}enable(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!t&&"center"===t.around)}disable(){this.isEnabled()&&(this._enabled=!1)}_shouldBePrevented(t){return!!this._map.cooperativeGestures.isEnabled()&&!(t.ctrlKey||this._map.cooperativeGestures.isBypassed(t))}wheel(t){if(!this.isEnabled())return;if(this._shouldBePrevented(t))return void this._map.cooperativeGestures.notifyGestureBlocked("wheel_zoom",t);let i=t.deltaMode===WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY,r=E(),a=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,0!==i&&i%4.000244140625==0?this._type="wheel":0!==i&&4>Math.abs(i)?this._type="trackpad":a>400?(this._type=null,this._lastValue=i,this._timeout=setTimeout(this._onTimeout,40,t)):this._type||(this._type=200>Math.abs(a*i)?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,i+=this._lastValue)),t.shiftKey&&i&&(i/=4),this._type&&(this._lastWheelEvent=t,this._delta-=i,this._active||this._start(t)),t.preventDefault()}_start(t){if(!this._delta)return;this._needsRerender=!1,this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let i=M.mousePos(this._map.getCanvas(),t),r=this._tr;this._aroundPoint=this._aroundCenter?r.transform.locationToScreenPoint(T.lt.convert(r.center)):i,this._needsRerender||(this._needsRerender=!0,this._triggerRenderFrame())}renderFrame(){if(!this._needsRerender||(this._needsRerender=!1,!this.isActive()))return;let t=this._tr.transform;if("number"==typeof this._lastExpectedZoom){let i=t.zoom-this._lastExpectedZoom;"number"==typeof this._startZoom&&(this._startZoom+=i),"number"==typeof this._targetZoom&&(this._targetZoom+=i)}if(0!==this._delta){let i="wheel"===this._type&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,r=2/(1+Math.exp(-Math.abs(this._delta*i)));this._delta<0&&0!==r&&(r=1/r);let a="number"==typeof this._targetZoom?(0,T.Fr)(this._targetZoom):t.scale,n=t.applyConstrain(t.getCameraLngLat(),(0,T.Dr)(a*r)).zoom,o=this._map.getZoomSnap();if("wheel"===this._type&&o>0){let i=(0,T.$n)(t.zoom,o);this._targetZoom=(0,T.$n)(n,o,n-i)}else this._targetZoom=n;"wheel"===this._type&&(this._startZoom=t.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let i="number"==typeof this._targetZoom?this._targetZoom:t.zoom,r=this._startZoom,a=this._easing,n=!1,o;if("wheel"===this._type&&r&&a){let t=Math.min((E()-this._lastWheelEventTime+5)/200,1),s=a(t);o=T.un.number(r,i,s),t<1?this._needsRerender=!0:n=!0}else o=i,n=!0;return this._active=!0,n&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._lastExpectedZoom,delete this._finishTimeout},200)),this._lastExpectedZoom=o,{noInertia:!0,needsRenderFrame:!n,zoomDelta:o-t.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(t){let i=T.Jn;if(this._prevEase){let t=this._prevEase,r=(E()-t.start)/t.duration,a=t.easing(r+.01)-t.easing(r),n=.27/Math.sqrt(a*a+1e-4)*.01,o=Math.sqrt(.0729-n*n);i=(0,T.zn)(n,o,.25,1)}return this._prevEase={start:E(),duration:t,easing:i},i}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,delete this._lastExpectedZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}},np=class{constructor(t,i){this._clickZoom=t,this._tapZoom=i}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}},nm=class{constructor(t,i){this._tr=i,this.reset()}reset(){this._active=!1}dblclick(t,i){return t.preventDefault(),{cameraAnimation:r=>{r.easeTo({duration:300,zoom:(0,T.$n)(this._tr.zoom+(t.shiftKey?-1:1),r.getZoomSnap()),around:this._tr.unproject(i)},{originalEvent:t})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},ng=class{constructor(){this._tap=new a0({numTouches:1,numTaps:1}),this._zoomRate=1,this.reset()}setZoomRate(t){this._zoomRate=t??1}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(t,i,r){if(!this._swipePoint)if(this._tapTime){let a=i[0],n=t.timeStamp-this._tapTime<500,o=30>this._tapPoint.dist(a);n&&o?r.length>0&&(this._swipePoint=a,this._swipeTouch=r[0].identifier):this.reset()}else this._tap.touchstart(t,i,r)}touchmove(t,i,r){if(this._tapTime){if(this._swipePoint){if(r[0].identifier!==this._swipeTouch)return;let a=i[0],n=a.y-this._swipePoint.y;return this._swipePoint=a,t.preventDefault(),this._active=!0,{zoomDelta:n/128*this._zoomRate}}}else this._tap.touchmove(t,i,r)}touchend(t,i,r){if(this._tapTime)this._swipePoint&&0===r.length&&this.reset();else{let a=this._tap.touchend(t,i,r);a&&(this._tapTime=t.timeStamp,this._tapPoint=a)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}},ny=class{constructor(t,i,r){this._el=t,this._mousePan=i,this._touchPan=r}enable(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}},n_=class{constructor(t,i,r,a){this._pitchWithRotate=t.pitchWithRotate,this._rollEnabled=t.rollEnabled,this._mouseRotate=i,this._mousePitch=r,this._mouseRoll=a}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable(),this._rollEnabled&&this._mouseRoll.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable(),this._mouseRoll.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())&&(!this._rollEnabled||this._mouseRoll.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()||this._mouseRoll.isActive()}},nv=class{constructor(t,i,r,a){this._el=t,this._touchZoom=i,this._touchRotate=r,this._tapDragZoom=a,this._rotationDisabled=!1,this._enabled=!0}enable(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}setZoomRate(t){this._touchZoom.setZoomRate(t),this._tapDragZoom.setZoomRate(t)}setZoomThreshold(t){this._touchZoom.setZoomThreshold(t)}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}},nb=class{constructor(t,i){this._bypassKey=navigator.userAgent.includes("Mac")?"metaKey":"ctrlKey",this._map=t,this._options=i,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;let t=this._map.getCanvasContainer();t.classList.add("maplibregl-cooperative-gestures"),this._container=M.create("div","maplibregl-cooperative-gesture-screen",t);let i=this._map._getUIString("CooperativeGesturesHandler.WindowsHelpText");"metaKey"===this._bypassKey&&(i=this._map._getUIString("CooperativeGesturesHandler.MacHelpText"));let r=this._map._getUIString("CooperativeGesturesHandler.MobileHelpText"),a=document.createElement("div");a.className="maplibregl-desktop-message",a.textContent=i,this._container.appendChild(a);let n=document.createElement("div");n.className="maplibregl-mobile-message",n.textContent=r,this._container.appendChild(n),this._container.setAttribute("aria-hidden","true")}_destroyUI(){this._container&&(this._container.remove(),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destroyUI()}isEnabled(){return this._enabled}isBypassed(t){return t[this._bypassKey]}notifyGestureBlocked(t,i){this._enabled&&(this._map.fire(new D("cooperativegestureprevented",{gestureType:t,originalEvent:i})),this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}},nx=class{constructor(t){this._camera=t}get transform(){return this._camera._requestedCameraState||this._camera.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(t){return this.transform.screenPointToLocation(T.Li.convert(t),this._camera.terrain)}};let nw=t=>t.zoom||t.drag||t.roll||t.pitch||t.rotate;var nk=class extends T._n{};function nT(t){return t.panDelta?.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta||t.rollDelta}var nS=class{get _ownerDocument(){return this._el?.ownerDocument||document}get _ownerWindow(){return this._el?.ownerDocument?.defaultView||window}constructor(t,i,r){this._terrainGestureAnchorElevation=null,this.handleWindowEvent=t=>{this.handleEvent(t,`${t.type}Window`)},this.handleEvent=(t,i)=>{if("blur"===t.type)return void this.stop(!0);this._updatingCamera=!0;let r="renderFrame"===t.type?void 0:t,a={needsRenderFrame:!1},n={},o={};for(let{handlerName:s,handler:l,allowed:c}of this._handlers){let u;if(l.isEnabled()){if(this._blockedByActive(o,c,s))l.reset();else if(l[i||t.type]){if((0,T.lr)(t,i||t.type)){let r=M.mousePos(this._map.getCanvas(),t);u=l[i||t.type](t,r)}else if((0,T.dr)(t,i||t.type)){let r=t.touches,a=this._getMapTouches(r),n=M.touchPos(this._map.getCanvas(),a);u=l[i||t.type](t,n,a)}else(0,T.fr)(i||t.type)||(u=l[i||t.type](t));this.mergeHandlerResult(a,n,u,s,r),u?.needsRenderFrame&&this._triggerRenderFrame()}(u||l.isActive())&&(o[s]=l)}}let s={};for(let t in this._previousActiveHandlers)o[t]||(s[t]=r);this._previousActiveHandlers=o,(Object.keys(s).length||nT(a))&&(this._changes.push([a,n,s]),this._triggerRenderFrame()),(Object.keys(o).length||nT(a))&&this._camera.stop(!0),this._updatingCamera=!1;let{cameraAnimation:l}=a;l&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],l(this._map))},this._map=t,this._camera=i,this._transformProvider=new nx(this._camera),this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new aH(t),this._bearingSnap=r.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(r);let a=this._el;for(let[t,i,r]of(this._listeners=[[a,"touchstart",{passive:!0}],[a,"touchmove",{passive:!1}],[a,"touchend",void 0],[a,"touchcancel",void 0],[a,"mousedown",void 0],[a,"mousemove",void 0],[a,"mouseup",void 0],[this._ownerDocument,"mousemove",{capture:!0}],[this._ownerDocument,"mouseup",void 0],[a,"mouseover",void 0],[a,"mouseout",void 0],[a,"dblclick",void 0],[a,"click",void 0],[a,"keydown",{capture:!1}],[a,"keyup",void 0],[a,"wheel",{passive:!1}],[a,"contextmenu",void 0],[this._ownerWindow,"blur",void 0]],this._listeners))t.addEventListener(i,t===this._ownerDocument?this.handleWindowEvent:this.handleEvent,r)}destroy(){for(let[t,i,r]of this._listeners)t.removeEventListener(i,t===this._ownerDocument?this.handleWindowEvent:this.handleEvent,r)}_addDefaultHandlers(t){let i=this._map,r=i.getCanvasContainer();this._add("mapEvent",new aY(i,t));let a=i.boxZoom=new aJ(i,t,this._transformProvider);this._add("boxZoom",a),t.interactive&&t.boxZoom&&a.enable();let n=i.cooperativeGestures=new nb(i,t.cooperativeGestures);this._add("cooperativeGestures",n),t.cooperativeGestures&&n.enable();let o=new a2(i,this._transformProvider),s=new nm(i,this._transformProvider);i.doubleClickZoom=new np(s,o),this._add("tapZoom",o),this._add("clickZoom",s),t.interactive&&t.doubleClickZoom&&i.doubleClickZoom.enable();let l=new ng;this._add("tapDragZoom",l);let c=i.touchPitch=new ns(i);this._add("touchPitch",c),t.interactive&&t.touchPitch&&i.touchPitch.enable(t.touchPitch);let u=()=>i.project(i.getCenter()),h=function({enable:t,clickTolerance:i,aroundCenter:r=!0,minPixelCenterThreshold:a=100,rotateSpeed:n=.8},o){return new a3({clickTolerance:i,move:(t,i)=>{let s=o();if(r&&Math.abs(s.y-t.y)>a)return{bearingDelta:(0,T.ir)(new T.Li(t.x,i.y),i,s)};let l=(i.x-t.x)*n;return r&&i.y<s.y&&(l=-l),{bearingDelta:l}},moveStateManager:new a4({checkCorrectEvent:t=>0===t.button&&t.ctrlKey||2===t.button&&!t.ctrlKey}),enable:t,assignEvents:a7})}(t,u),d=function({enable:t,clickTolerance:i,pitchSpeed:r=-.5}){return new a3({clickTolerance:i,move:(t,i)=>({pitchDelta:(i.y-t.y)*r}),moveStateManager:new a4({checkCorrectEvent:t=>0===t.button&&t.ctrlKey||2===t.button}),enable:t,assignEvents:a7})}(t),f=function({enable:t,clickTolerance:i,rollDegreesPerPixelMoved:r=.3},a){return new a3({clickTolerance:i,move:(t,i)=>{let n=a(),o=(i.x-t.x)*r;return i.y<n.y&&(o=-o),{rollDelta:o}},moveStateManager:new a4({checkCorrectEvent:t=>2===t.button&&t.ctrlKey}),enable:t,assignEvents:a7})}(t,u);i.dragRotate=new n_(t,h,d,f),this._add("mouseRotate",h,["mousePitch"]),this._add("mousePitch",d,["mouseRotate","mouseRoll"]),this._add("mouseRoll",f,["mousePitch"]),t.interactive&&t.dragRotate&&i.dragRotate.enable();let p=function({enable:t,clickTolerance:i}){return new a3({clickTolerance:i,move:(t,i)=>({around:i,panDelta:i.sub(t)}),activateOnStart:!0,moveStateManager:new a4({checkCorrectEvent:t=>0===t.button&&!t.ctrlKey}),enable:t,assignEvents:a7})}(t),m=new a9(t,i);i.dragPan=new ny(r,p,m),this._add("mousePan",p),this._add("touchPan",m,["touchZoom","touchRotate"]),t.interactive&&t.dragPan&&i.dragPan.enable(t.dragPan);let g=new nn,y=new nr;i.touchZoomRotate=new nv(r,y,g,l),this._add("touchRotate",g,["touchPan","touchZoom"]),this._add("touchZoom",y,["touchPan","touchRotate"]),t.interactive&&t.touchZoomRotate&&i.touchZoomRotate.enable(t.touchZoomRotate),this._add("blockableMapEvent",new aK(i));let _=i.scrollZoom=new nf(i,()=>
1180this._triggerRenderFrame(),this._transformProvider);this._add("scrollZoom",_,["mousePan"]),t.interactive&&t.scrollZoom&&i.scrollZoom.enable(t.scrollZoom);let v=i.keyboard=new nh(i,this._transformProvider);this._add("keyboard",v),t.interactive&&t.keyboard&&i.keyboard.enable()}_add(t,i,r){this._handlers.push({handlerName:t,handler:i,allowed:r}),this._handlersById[t]=i}stop(t){if(!this._updatingCamera){for(let{handler:t}of this._handlers)t.reset();this._inertia.clear(),this._fireEvents({},{},t),this._changes=[]}}isActive(){for(let{handler:t}of this._handlers)if(t.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!nw(this._eventsInProgress)||this.isZooming()}_blockedByActive(t,i,r){for(let a in t)if(a!==r&&!i?.includes(a))return!0;return!1}_getMapTouches(t){let i=[];for(let r of t){let t=r.target;this._el.contains(t)&&i.push(r)}return i}mergeHandlerResult(t,i,r,a,n){if(!r)return;(0,T.er)(t,r);let o={handlerName:a,originalEvent:r.originalEvent||n};void 0!==r.zoomDelta&&(i.zoom=o),void 0!==r.panDelta&&(i.drag=o),void 0!==r.rollDelta&&(i.roll=o),void 0!==r.pitchDelta&&(i.pitch=o),void 0!==r.bearingDelta&&(i.rotate=o)}_applyChanges(){let t={},i={},r={};for(let[a,n,o]of this._changes)a.panDelta&&(t.panDelta=(t.panDelta||new T.Li(0,0))._add(a.panDelta)),a.zoomDelta&&(t.zoomDelta=(t.zoomDelta||0)+a.zoomDelta),a.bearingDelta&&(t.bearingDelta=(t.bearingDelta||0)+a.bearingDelta),a.pitchDelta&&(t.pitchDelta=(t.pitchDelta||0)+a.pitchDelta),a.rollDelta&&(t.rollDelta=(t.rollDelta||0)+a.rollDelta),void 0!==a.around&&(t.around=a.around),void 0!==a.pinchAround&&(t.pinchAround=a.pinchAround),a.noInertia&&(t.noInertia=a.noInertia),(0,T.er)(i,n),(0,T.er)(r,o);this._updateMapTransform(t,i,r),this._changes=[]}_updateMapTransform(t,i,r){let a=this._map,n=this._camera.getTransformForUpdate(),o=a.terrain;if(!nT(t)&&!(o&&this._terrainMovement))return void this._fireEvents(i,r,!0);this._camera.stop(!0);let{panDelta:s,zoomDelta:l,bearingDelta:c,pitchDelta:u,rollDelta:h}=t,{around:d,aroundOnSurface:f}=this._resolveAround(t,o,n),p=o?this._terrainGestureElevation(o,d,f,n,i):void 0,m={panDelta:s,zoomDelta:l,rollDelta:h,pitchDelta:u,bearingDelta:c,around:d,aroundElevation:p};this._camera.cameraHelper.useGlobeControls&&!n.isPointOnMapSurface(d)&&(d=n.centerPoint);let g=this._computePreZoomAroundLoc(n,d,s,p);this._handleMapControls({terrain:o,tr:n,deltasForHelper:m,preZoomAroundLoc:g,combinedEventsInProgress:i,panDelta:s}),this._camera.applyUpdatedTransform(n),this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(i,r,!0)}_resolveAround(t,i,r){let a=void 0===t.pinchAround?t.around:t.pinchAround;return a||=this._camera.transform.centerPoint,i&&!r.isPointOnMapSurface(a)?{around:r.centerPoint,aroundOnSurface:!1}:{around:a,aroundOnSurface:!0}}_terrainGestureElevation(t,i,r,a,n){if(!r)return;if(!this._terrainMovement&&(n.drag||n.zoom)){let r=a.screenTerrainPointToMercatorCoordinate(i,t);this._terrainGestureAnchorElevation=r?r.z:null}if(null===this._terrainGestureAnchorElevation)return;let o=this._terrainGestureAnchorElevation;if(!(.01>i.distSqr(a.centerPoint))&&!(o-a.elevation>=.9*(a.getCameraAltitude()-a.elevation)))return o}_computePreZoomAroundLoc(t,i,r,a){if(.01>i.distSqr(t.centerPoint))return t.center;let n=r?i.sub(r):i;return void 0===a?t.screenPointToLocation(n):t.screenPointToLocationAtElevation(n,a)}_handleMapControls({terrain:t,tr:i,deltasForHelper:r,preZoomAroundLoc:a,combinedEventsInProgress:n,panDelta:o}){let s=this._camera.cameraHelper;if(s.handleMapControlsRollPitchBearingZoom(r,i),!t)return void s.handleMapControlsPan(r,i,a);if(s.useGlobeControls){!this._terrainMovement&&(n.drag||n.zoom)&&(this._terrainMovement=!0,this._camera.elevationFreeze=!0),s.handleMapControlsPan(r,i,a);return}if(!this._terrainMovement&&(n.drag||n.zoom)){this._terrainMovement=!0,this._camera.elevationFreeze=!0,s.handleMapControlsPan(r,i,a);return}void 0===r.aroundElevation&&n.drag&&this._terrainMovement&&o?i.setCenter(i.screenPointToLocation(i.centerPoint.sub(o))):s.handleMapControl
vendor: 1,655 bytes, line 1180
1180sPan(r,i,a)}_fireEvents(t,i,r){let a=nw(this._eventsInProgress),n=nw(t),o={};for(let i in t){let{originalEvent:r}=t[i];this._eventsInProgress[i]||(o[`${i}start`]=r),this._eventsInProgress[i]=t[i]}for(let t in!a&&n&&this._fireEvent("movestart",n.originalEvent),o)this._fireEvent(t,o[t]);for(let i in n&&this._fireEvent("move",n.originalEvent),t){let{originalEvent:r}=t[i];this._fireEvent(i,r)}let s={},l;for(let t in this._eventsInProgress){let{handlerName:r,originalEvent:a}=this._eventsInProgress[t];this._handlersById[r].isActive()||(delete this._eventsInProgress[t],l=i[r]||a,s[`${t}end`]=l)}for(let t in s)this._fireEvent(t,s[t]);let c=nw(this._eventsInProgress),u=(a||n)&&!c;if(u&&this._terrainMovement){this._camera.elevationFreeze=!1,this._terrainMovement=!1,this._terrainGestureAnchorElevation=null;let t=this._camera.getTransformForUpdate();this._map.getCenterClampedToGround()&&t.recalculateZoomAndCenter(this._map.terrain),this._camera.applyUpdatedTransform(t)}if(r&&u){this._updatingCamera=!0;let t=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),i=t=>0!==t&&-this._bearingSnap<t&&t<this._bearingSnap;t&&(t.essential||!A.prefersReducedMotion)?(i(t.bearing||this._map.getBearing())&&(t.bearing=0),t.freezeElevation=!0,this._map.easeTo(t,{originalEvent:l})):(this._map.fire(new I("moveend",{originalEvent:l})),i(this._map.getBearing())&&this._map.resetNorth()),this._updatingCamera=!1}}_fireEvent(t,i){this._map.fire(new I(t,i?{originalEvent:i}:{}))}_requestFrame(){return this._map.triggerRepaint(),this._map._renderTaskQueue.add(t=>{delete this._frameId,this.handleEvent(new nk("renderFrame",{timeStamp:t})),this._applyChanges()})}
1180_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame())}},nA=class extends T.vn{constructor(t){super(),this._renderFrameCallback=()=>{let t=Math.min((E()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(t)),t<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this.transform=new il,this.cameraHelper=new im,void 0!==t.minZoom&&this.transform.setMinZoom(t.minZoom),void 0!==t.maxZoom&&this.transform.setMaxZoom(t.maxZoom),void 0!==t.minPitch&&this.transform.setMinPitch(t.minPitch),void 0!==t.maxPitch&&this.transform.setMaxPitch(t.maxPitch),void 0!==t.renderWorldCopies&&this.transform.setRenderWorldCopies(t.renderWorldCopies),null!==t.transformConstrain&&this.transform.setConstrainOverride(t.transformConstrain),this._moving=!1,this._zooming=!1,this._bearingSnap=t.bearingSnap,this._zoomSnap=t.zoomSnap,this._requestRenderFrame=t.requestRenderFrame,this._cancelRenderFrame=t.cancelRenderFrame,this.terrain=t.terrain,this._centerClampedToGround=t.centerClampedToGround??!0,this.transformCameraUpdate=t.transformCameraUpdate??null,this._stopHandlers=t.stopHandlers??(()=>{}),this.on("moveend",()=>{delete this._requestedCameraState})}migrateProjection(t,i){if(t.apply(this.transform,!0),this.transform=t,this.cameraHelper=i,this._requestedCameraState){let i=t.clone();i.apply(this._requestedCameraState,!0),this._requestedCameraState=i}}getCenter(){return new T.lt(this.transform.center.lng,this.transform.center.lat)}setCenter(t,i){return this.jumpTo({center:t},i)}getCenterElevation(){return this.transform.elevation}setCenterElevation(t,i){return this.jumpTo({elevation:t},i),this}getCenterClampedToGround(){return this._centerClampedToGround}setCenterClampedToGround(t){this._centerClampedToGround=t}panBy(t,i,r){return t=T.Li.convert(t).mult(-1),this.panTo(this.transform.center,(0,T.er)({offset:t},i),r)}panTo(t,i,r){return this.easeTo((0,T.er)({center:t},i),r)}getZoom(){return this.transform.zoom}setZoom(t,i){return this.jumpTo({zoom:t},i),this}zoomTo(t,i,r){return this.easeTo((0,T.er)({zoom:t},i),r)}zoomIn(t,i){return this.zoomTo((0,T.$n)(this.getZoom()+1,this._zoomSnap),t,i),this}zoomOut(t,i){return this.zoomTo((0,T.$n)(this.getZoom()-1,this._zoomSnap),t,i),this}getVerticalFieldOfView(){return this.transform.fov}setVerticalFieldOfView(t,i){return t!=this.transform.fov&&(this.transform.setFov(t),this.fire(new I("movestart",i)).fire(new I("move",i)).fire(new I("moveend",i))),this}getBearing(){return this.transform.bearing}setZoomSnap(t){return this._zoomSnap=t,this}getZoomSnap(){return this._zoomSnap}setBearing(t,i){return this.jumpTo({bearing:t},i),this}getPadding(){return this.transform.padding}setPadding(t,i){return this.jumpTo({padding:t},i),this}rotateTo(t,i,r){return this.easeTo((0,T.er)({bearing:t},i),r)}resetNorth(t,i){return this.rotateTo(0,(0,T.er)({duration:1e3},t),i),this}resetNorthPitch(t,i){return this.easeTo((0,T.er)({bearing:0,pitch:0,roll:0,duration:1e3},t),i),this}snapToNorth(t,i){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(t,i):this}getPitch(){return this.transform.pitch}setPitch(t,i){return this.jumpTo({pitch:t},i),this}getRoll(){return this.transform.roll}setRoll(t,i){return this.jumpTo({roll:t},i),this}cameraForBounds(t,i){t=eE.convert(t).adjustAntiMeridian();let r=i?.bearing||0;return this._cameraForBoxAndBearing(t.getNorthWest(),t.getSouthEast(),r,i)}_cameraForBoxAndBearing(t,i,r,a){let n={top:0,bottom:0,right:0,left:0};if("number"==typeof(a=(0,T.er)({padding:n,offset:[0,0],maxZoom:this.transform.maxZoom},a)).padding){let t=a.padding;a.padding={top:t,bottom:t,right:t,left:t}}let o=(0,T.er)(n,a.padding);a.padding=o;let s=this.transform,l=new eE(t,i),c=this.cameraHelper.cameraForBoxAndBearing(a,o,l,r,s);return c&&this._zoomSnap&&(c.zoom=(0,T.$n)(c.zoom,this._zoomSnap,-1)),c}fitBounds(t,i,r){return this._fitInternal(this.cameraForBounds(t,i),i,r)}fitScreenCoordinates(t,i,r,a,n){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.screenPointToLocation(T.Li.convert(t)),this.transform.screenPointToLocation(T.Li.convert(i)),r,a),a,n)}_fitInternal(t,i,r){return t?(i=(0,T.er)(t,i),delete i.padding,i.linear?this.easeTo(i,r):this.flyTo(i,r)):this}jumpTo(t,i){this.stop(),void 0!==t.zoom&&this._zoomSnap&&(t.zoom=(0,T.$n)(t.zoom,this._zoomSnap));let r=this.getTransformForUpdate(),a=!1,n=!1,o=!1,s=r.zoom;this.terrain&&r.setElevation(this.terrain.getElevationForLngLat(t.center?T.lt.convert(t.center):r.center,r)),this.cameraHelper.handleJumpToCenterZoom(r,t);let l=r.zoom!==s;return void 0!==t.elevation&&r.elevation!==+t.elevation&&r.setElevation(+t.elevation),void 0!==t.bearing&&r.bearing!==+t.bearing&&(a=!0,r.setBearing(+t.bearing)),void 0!==t.pitch&&r.pitch!==+t.pitch&&(n=!0,r.setPitch(+t.pitch)),void 0!==t.roll&&r.roll!==+t.roll&&(o=!0,r.setRoll(+t.roll)),null==t.padding||r.isPaddingEqual(t.padding)||r.setPadding(t.padding),this.applyUpdatedTransform(r),this.fire(new I("movestart",i)).fire(new I("move",i)),l&&this.fire(new I("zoomstart",i)).fire(new I("zoom",i)).fire(new I("zoomend",i)),a&&this.fire(new I("rotatestart",i)).fire(new I("rotate",i)).fire(new I("rotateend",i)),n&&this.fire(new I("pitchstart",i)).fire(new I("pitch",i)).fire(new I("pitchend",
1180i)),o&&this.fire(new I("rollstart",i)).fire(new I("roll",i)).fire(new I("rollend",i)),this.fire(new I("moveend",i))}calculateCameraOptionsFromCameraLngLatAltRotation(t,i,r,a,n){let o=this.transform.calculateCenterFromCameraLngLatAlt(t,i,r,a);return{center:o.center,elevation:o.elevation,zoom:o.zoom,bearing:r,pitch:a,roll:n}}easeTo(t,i){this._stop(!1,t.easeId),void 0!==(t=(0,T.er)({offset:[0,0],duration:500,easing:T.Jn},t)).zoom&&this._zoomSnap&&(t.zoom=(0,T.$n)(t.zoom,this._zoomSnap)),(!1===t.animate||!t.essential&&A.prefersReducedMotion)&&(t.duration=0);let r=this.getTransformForUpdate(),a=this.getBearing(),n=r.pitch,o=r.roll,s=void 0===t.bearing?a:this._normalizeBearing(t.bearing,a),l=void 0===t.pitch?n:+t.pitch,c=void 0===t.roll?o:this._normalizeBearing(t.roll,o),u=void 0===t.padding?r.padding:t.padding,h=T.Li.convert(t.offset),d,f;t.around&&(d=T.lt.convert(t.around),f=r.locationToScreenPoint(d));let p={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching,rolling:this._rolling},m=this.cameraHelper.handleEaseTo(r,{bearing:s,pitch:l,roll:c,padding:u,around:d,aroundPoint:f,offsetAsPoint:h,offset:t.offset,zoom:t.zoom,center:t.center});return this._rotating||=a!==s,this._pitching||=l!==n,this._rolling||=c!==o,this._padding=!r.isPaddingEqual(u),this._zooming||=m.isZooming,this._easeId=t.easeId,this._prepareEase(i,t.noMoveStart,p),this.terrain&&this._prepareElevation(m.elevationCenter),this._ease(a=>
1180{m.easeFunc(a),this.terrain&&!t.freezeElevation&&this._updateElevation(a),this.applyUpdatedTransform(r),this._fireMoveEvents(i)},r=>{this.terrain&&t.freezeElevation&&this._finalizeElevation(),this._afterEase(i,r)},t),this}_prepareEase(t,i,r={}){this._moving=!0,i||r.moving||this.fire(new I("movestart",t)),this._zooming&&!r.zooming&&this.fire(new I("zoomstart",t)),this._rotating&&!r.rotating&&this.fire(new I("rotatestart",t)),this._pitching&&!r.pitching&&this.fire(new I("pitchstart",t)),this._rolling&&!r.rolling&&this.fire(new I("rollstart",t))}_prepareElevation(t){this._elevationCenter=t,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLat(t,this.transform),this.elevationFreeze=!0}_updateElevation(t){(void 0===this._elevationStart||void 0===this._elevationCenter)&&this._prepareElevation(this.transform.center),this.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom));let i=this.terrain.getElevationForLngLat(this._elevationCenter,this.transform);if(t<1&&i!==this._elevationTarget){let r=this._elevationTarget-this._elevationStart,a=(i-(r*t+this._elevationStart))/(1-t);this._elevationStart+=t*(r-a),this._elevationTarget=i}this.transform.setElevation(T.un.number(this._elevationStart,this._elevationTarget,t))}_finalizeElevation(){this.elevationFreeze=!1,this.getCenterClampedToGround()&&this.transform.recalculateZoomAndCenter(this.terrain)}getTransformForUpdate(){return this.transformCameraUpdate||this.terrain?(this._requestedCameraState||=this.transform.clone(),this._requestedCameraState):this.transform}_elevateCameraIfInsideTerrain(t){if(!this.terrain&&t.elevation>=0&&t.pitch<=90)return{};let i=t.getCameraLngLat(),r=t.getCameraAltitude(),a=this.terrain?this.terrain.getElevationForLngLatZoom(i,t.zoom):0;if(r<a){let r=t.calculateCameraOptionsFromTo(i,a,t.center,t.elevation);return{pitch:r.pitch,zoom:r.zoom}}return{}}applyUpdatedTransform(t){let i=[];if(i.push(t=>this._elevateCameraIfInsideTerrain(t)),this.transformCameraUpdate&&i.push(t=>this.transformCameraUpdate(t)),!i.length)return;let r=t.clone();for(let t of i){let i=r.clone(),{center:a,zoom:n,roll:o,pitch:s,bearing:l,elevation:c}=t(i);a&&i.setCenter(a),void 0!==c&&i.setElevation(c),void 0!==n&&i.setZoom(n),void 0!==o&&i.setRoll(o),void 0!==s&&i.setPitch(s),void 0!==l&&i.setBearing(l),r.apply(i,!1)}this.transform.apply(r,!1)}_fireMoveEvents(t){this.fire(new I("move",t)),this._zooming&&this.fire(new I("zoom",t)),this._rotating&&this.fire(new I("rotate",t)),this._pitching&&this.fire(new I("pitch",t)),this._rolling&&this.fire(new I("roll",t))}_afterEase(t,i){if(this._easeId&&i&&this._easeId===i)return;delete this._easeId;let r=this._zooming,a=this._rotating,n=this._pitching,o=this._rolling;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._rolling=!1,this._padding=!1,r&&this.fire(new I("zoomend",t)),a&&this.fire(new I("rotateend",t)),n&&this.fire(new I("pitchend",t)),o&&this.fire(new I("rollend",t)),this.fire(new I("moveend",t))}flyTo(t,i){if(!t.essential&&A.prefersReducedMotion){let r=(0,T.yr)(t,["center","zoom","bearing","pitch","roll","elevation","padding"]);return this.jumpTo(r,i)}this.stop(),void 0!==(t=(0,T.er)({offset:[0,0],speed:1.2,curve:1.42,easing:T.Jn},t)).zoom&&this._zoomSnap&&(t.zoom=(0,T.$n)(t.zoom,this._zoomSnap));let r=this.getTransformForUpdate(),a=r.bearing,n=r.pitch,o=r.roll,s=r.padding,l=void 0===t.bearing?a:this._normalizeBearing(t.bearing,a),c=void 0===t.pitch?n:+t.pitch,u=void 0===t.roll?o:this._normalizeBearing(t.roll,o),h=void 0===t.padding?r.padding:t.padding,d=T.Li.convert(t.offset),f=r.centerPoint.add(d),p=r.screenPointToLocation(f),m=this.cameraHelper.handleFlyTo(r,{bearing:l,pitch:c,roll:u,padding:h,locationAtOffset:p,offsetAsPoint:d,center:t.center,minZoom:t.minZoom,zoom:t.zoom}),g=t.curve,y=Math.max(r.width,r.height),_=y/m.scaleOfZoom,v=m.pixelPathLength,b=y/m.scaleOfMinZoom,x=(g=Math.min(g,Math.sqrt(b/v*2)))*g;function w(t){let i=(_*_-y*y+(t?-1:1)*x*x*v*v)/(2*(t?_:y)*x*v);return Math.log(Math.sqrt(i*i+1)-i)}function k(t){return(Math.exp(t)-Math.exp(-t))/2}function S(t){return(Math.exp(t)+Math.exp(-t))/2}let C=w(!1),E=function(t){return S(C)/S(C+g*t)},M=function(t){var i;
1180return y*((S(C)*(k(i=C+g*t)/S(i))-k(C))/x)/v},P=(w(!0)-C)/g;if(2e-6>Math.abs(v)||!isFinite(P)){if(1e-6>Math.abs(y-_))return this.easeTo(t,i);let r=_<y?-1:1;P=Math.abs(Math.log(_/y))/g,M=()=>0,E=t=>Math.exp(r*g*t)}if(void 0!==t.duration)t.duration=+t.duration;else{let i=void 0===t.screenSpeed?+t.speed:t.screenSpeed/g;t.duration=1e3*P/i}return t.maxDuration&&t.duration>t.maxDuration&&(t.duration=0),this._zooming=!0,this._rotating=a!==l,this._pitching=c!==n,this._rolling=u!==o,this._padding=!r.isPaddingEqual(h),this._prepareEase(i,!1),this.terrain&&this._prepareElevation(m.targetCenter),this._ease(p=>{let g=p*P,y=1/E(g),_=M(g);this._rotating&&r.setBearing(T.un.number(a,l,p)),this._pitching&&r.setPitch(T.un.number(n,c,p)),this._rolling&&r.setRoll(T.un.number(o,u,p)),this._padding&&(r.interpolatePadding(s,h,p),f=r.centerPoint.add(d)),m.easeFunc(p,y,_,f),this.terrain&&!t.freezeElevation&&this._updateElevation(p),this.applyUpdatedTransform(r),this._fireMoveEvents(i)},()=>{this.terrain&&t.freezeElevation&&this._finalizeElevation(),this._afterEase(i)},t),this}isEasing(){return!!this._easeFrameId}stop(t){return this._stop(t)}_stop(t,i){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let t=this._onEaseEnd;delete this._onEaseEnd,t.call(this,i)}return t||this._stopHandlers(),this}_ease(t,i,r){!1===r.animate||0===r.duration?(t(1),i()):(this._easeStart=E(),this._easeOptions=r,this._onEaseFrame=t,this._onEaseEnd=i,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(t,i){let r=Math.abs((t=(0,T.Pr)(t,-180,180))-i);return Math.abs(t-360-i)<r&&(t-=360),Math.abs(t+360-i)<r&&(t+=360),t}isMoving(){return this._moving}isZooming(){return this._zooming}isRotating(){return this._rotating}};let nC={compact:!0,customAttribution:'<a href="https://maplibre.org/" target="_blank">MapLibre</a>'};var nE=class{constructor(t=nC){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=t=>{t&&("terrain"===t.type||"style"===t.dataType||"source"===t.dataType&&("metadata"===t.sourceDataType||"visibility"===t.sourceDataType))&&this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?!1===this._compact?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=t}getDefaultPosition(){return"bottom-right"}onAdd(t){return this._map=t,this._compact=this.options.compact,this._container=M.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=M.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=M.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(t,i){let r=this._map._getUIString(`AttributionControl.${i}`);t.title=r,t.setAttribute("aria-label",r)}_updateAttributions(){if(!this._map.style)return;let t=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?t=t.concat(this.options.customAttribution.map(t=>"string"==typeof t?t:"")):"string"==typeof this.options.customAttribution&&t.push(this.options.customAttribution)),this._map.style.stylesheet){let t=this._map.style.stylesheet;this.styleOwner=t.owner,this.styleId=t.id}let i=this._map.style.tileManagers;for(let r in i){let a=i[r];if(a.used||a.usedForTerrain){let i=a.getSource();i.attribution&&!t.includes(i.attribution)&&t.push(i.attribution)}}(t=t.filter(t=>String(t).trim())).sort((t,i)=>t.length-i.length);let r=(t=t.filter((i,r)=>{for(let a=r+1;a<t.length;a++)if(t[a].includes(i))return!1;return!0})).join(" | ");r!==this._attribHTML&&(this._attribHTML=r,t.length?(this._innerContainer.innerHTML=M.sanitize(r),this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}},nM=class{constructor(t={}){this._updateCompact=()=>{let t=this._container.children;if(t.length){let i=t[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?!1!==this._compact&&i.classList.add("maplibregl-compact"):i.classList.remove("maplibregl-compact")}},this.options=t}getDefaultPosition(){return"bottom-left"}onAdd(t){this._map=t,this._compact=this.options?.compact,this._container=M.create("div","maplibregl-ctrl");let i=M.create("a","maplibregl-ctrl-logo");return i.target="_blank",i.rel="noopener nofollow",i.href="https://maplibre.org/",i.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),i.setAttribute("rel","noopener nofollow"),this._container.appendChild(i),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}},nP=class{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(t){let i=++this._id;return this._queue.push({callback:t,id:i,cancelled:!1}),i}remove(t){let i=this._currentlyRunning;for(let r of i?this._queue.concat(i):this._queue)if(r.id===t){r.cancelled=!0;return}}run(t=0){if(this._currentlyRunning)throw Error("Attempting to run(), but is already running.");let i=this._currentlyRunning=this._queue;this._queue=[];let r=!1,a;for(let n of i)if(!n.cancelled){try{n.callback(t)}catch(t){r||(r=!0,a=t)}if(this._cleared)break}if(this._cleared=!1,this._currentlyRunning=!1,r)throw a}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}};
1180let nD=["none","zoom","sourceTiles","visibleLayers","revision"];var nI=class{constructor(t,i,r,a){this._tileKeys=t.map(t=>t.key).sort().join(),this._revision=i,this._zoom=r,this._visibleLayerIds=a}difference(t){return this._revision===t?._revision?this._visibleLayerIds===t._visibleLayerIds?this._tileKeys===t._tileKeys?this._zoom===t._zoom?"none":"zoom":"sourceTiles":"visibleLayers":"revision"}};let nz={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0,"color-relief":!0};var nL=class{constructor(t,i){this.needsFollowUpFrame=!1,this.painter=t,this.terrain=i,this.rttSize=i.tileManager.tileSize*i.qualityFactor}getTexture(t){return t.getRTT(this._stacks.length-1).texture}prepareForRender(t,i){let r=i!==this._lastPrepareZoom;this._lastPrepareZoom=i,this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.tileManager.getRenderableTiles(),this._renderableLayerIds=t._order.filter(r=>!t._layers[r].isHidden(i));let a=this._renderableLayerIds.join(),n=new Set;for(let i of this._renderableLayerIds){let r=t._layers[i],a=r.source;a&&nz[r.type]&&n.add(a)}for(let r of(this._coordsAscending={},this._rttFingerprints={},n)){let n=t.tileManagers[r];if(!n)continue;this._coordsAscending[r]={};let o=this._coordsAscending[r],s=n.getSource(),l=s instanceof eU?s.terrainTileRanges:null;for(let t of n.getVisibleCoordinates()){let i=this.terrain.tileManager.getTerrainCoords(t,l);for(let t in i)o[t]||=[],o[t].push(i[t])}this._rttFingerprints[r]={};let c=this._rttFingerprints[r],u=n.getState().revision;for(let t in o)c[t]=new nI(o[t],u,i,a)}this.needsFollowUpFrame=!1;let o=r||this.painter.options.moving,s=!1;for(let t of this._renderableTiles){let i=this._textureDifference(t);"none"!==i&&("zoom"===i&&o||"visibleLayers"===i&&r?this.needsFollowUpFrame=!0:"zoom"===i||"sourceTiles"===i?(s?this.needsFollowUpFrame=!0:t.releaseRTT(this.painter),s=!0):t.releaseRTT(this.painter))}}_textureDifference(t){let i="none";for(let r in this._rttFingerprints){let a=this._rttFingerprints[r][t.tileID.key];if(!a)continue;let n=a.difference(t.rttFingerprint[r]);nD.indexOf(n)>nD.indexOf(i)&&(i=n)}return i}renderLayer(t,i){if(t.isHidden(this.painter.transform.zoom))return!1;let r={...i,isRenderingToTexture:!0},a=t.type,n=this.painter,o=this._renderableLayerIds[this._renderableLayerIds.length-1]===t.id;if(nz[a]&&(this._prevType&&nz[this._prevType]||this._stacks.push([]),this._prevType=a,this._stacks[this._stacks.length-1].push(t.id),!o))return!0;if(nz[this._prevType]||nz[a]&&o){this._prevType=a;let t=this._stacks.length-1,i=this._stacks[t]||[];for(let a of this._renderableTiles){if(this._rttTiles.push(a),a.getRTT(t))continue;let o=a.acquireRTT(n,t,this.rttSize);for(let t of(n.bindRTT(o),n.context.clear({color:T.fn.transparent,stencil:0}),n.currentStencilSource=void 0,i)){let i=n.style._layers[t],o=i.source?this._coordsAscending[i.source][a.tileID.key]:[a.tileID];n.context.viewport.set([0,0,this.rttSize,this.rttSize]),n.renderTileClippingMasks(i,o,!0),n.renderLayer(n,n.style.tileManagers[i.source],i,o,r),i.source&&(a.rttFingerprint[i.source]=this._rttFingerprints[i.source][a.tileID.key])}o.texture.generateMipmap()}return function(t,i,r,a){let{isRenderingGlobe:n}=a,o=t.context,s=o.gl,l=t.transform,c=t.colorModeForRenderPass(),u=t.getDepthModeFor3D(),h=t.useProgram("terrain");for(let a of(o.bindFramebuffer.set(null),o.viewport.set([0,0,t.width,t.height]),r)){let r=i.getTerrainMesh(a.tileID),d=t.renderToTexture.getTexture(a),f=i.getTerrainData(a.tileID);o.activeTexture.set(s.TEXTURE0),d.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_LINEAR);let p=iW(i.getSkirtLength(l.zoom),l.calculateFogMatrix(a.tileID.toUnwrapped()),t.style.sky,l.pitch,n),m=l.getProjectionData({overscaledTileID:a.tileID,applyTerrainMatrix:!1,applyGlobeMatrix:!0});h.draw(o,s.TRIANGLES,u,an.disabled,c,ao.backCCW,p,f,m,"terrain",r.vertexBuffer,r.indexBuffer,r.segments)}}(this.painter,this.terrain,this._rttTiles,r),this._rttTiles=[],nz[a]}return!1}};let nF={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"MapLibre logo","Map.Title":"Map","Marker.Title":"Map marker","NavigationControl.ResetBearing":"Drag to rotate map, click to reset north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","Popup.Close":"Close popup","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm","GlobeControl.Enable":"Enable globe","GlobeControl.Disable":"Disable globe","TerrainControl.Enable":"Enable terrain","TerrainControl.Disable":"Disable terrain","CooperativeGesturesHandler.WindowsHelpText":"Use Ctrl + scroll to zoom the map","CooperativeGesturesHandler.MacHelpText":"Use ⌘ + scroll to zoom the map","CooperativeGesturesHandler.MobileHelpText":"Use two fingers to move the map"},nR={hash:!1,interactive:!0,bearingSnap:7,zoomSnap:0,attributionControl:nC,maplibreLogo:!1,refreshExpiredTiles:!0,canvasContextAttributes:{antialias:!1,preserveDrawingBuffer:!1,powerPreference:"high-performance",failIfMajorPerformanceCaveat:!1,desynchronized:!1,contextType:void 0},scrollZoom:!0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,trackResize:!0,center:[0,0],elevation:0,zoom:0,bearing:0,pitch:0,roll:0,renderWorldCopies:!0,maxTileC
1180acheSize:null,maxTileCacheZoomLevels:T.An.MAX_TILE_CACHE_ZOOM_LEVELS,transformRequest:null,transformCameraUpdate:null,transformConstrain:null,fadeDuration:300,crossSourceCollisions:!0,clickTolerance:3,localIdeographFontFamily:"sans-serif",pitchWithRotate:!0,rollEnabled:!1,rotateSpeed:.8,pitchSpeed:-.5,reduceMotion:void 0,validateStyle:!0,maxCanvasSize:[4096,4096],cancelPendingTileRequestsWhileZooming:!0,centerClampedToGround:!0,terrainSkirtLength:"auto",zoomLevelsToOverscale:4,anisotropicFilterPitch:20};var nO=class extends T.vn{get _ownerWindow(){return this._container?.ownerDocument?.defaultView||window}constructor(t){super(),this._idleTriggered=!1,this._crossFadingFactor=1,this._renderTaskQueue=new nP,this._controls=[],this._mapId=(0,T.Mr)(),this._styleUrl=null,this._missingStyleImageResolver=null,this._lostContextStyle={style:null,images:null},this._contextLost=t=>{if(t.preventDefault(),this._frameRequest&&=(this._frameRequest.abort(),null),this.painter.destroy(),this._lostContextStyle=this._getStyleAndImages(),!this.style)return void this.fire(new U("webglcontextlost",{originalEvent:t}));for(let t of Object.values(this.style._layers))if("custom"===t.type&&console.warn(`Custom layer with id '${t.id}' cannot be restored after WebGL context loss. You will need to re-add it manually after context restoration.`),t._listeners)for(let[i]of Object.entries(t._listeners))console.warn(`Custom layer with id '${t.id}' had event listeners for event '${i}' which cannot be restored after WebGL context loss. You will need to re-add them manually after context restoration.`);this.style.destroy(),this.style=null,this.fire(new U("webglcontextlost",{originalEvent:t}))},this._contextRestored=t=>{if(this._lostContextStyle.style&&this.setStyle(this._lostContextStyle.style,{diff:!1}),this._lostContextStyle.images&&this.style)for(let t in this.style.imageManager.images=this._lostContextStyle.images,this._lostContextStyle.images){let i=this._lostContextStyle.images[t];i.isWebGLImage&&this.style.imageManager.updateImage(t,i,!1)}this._lostContextStyle={style:null,images:null};try{this._setupPainter()}catch(t){this.fire(new T.gn(t));return}this.resize(),this._update(),this._resizeInternal(),this.fire(new U("webglcontextrestored",{originalEvent:t}))},this._onMapScroll=t=>{if(t.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()};let i={...nR,...t,canvasContextAttributes:{...nR.canvasContextAttributes,...t.canvasContextAttributes}};if(null!=i.minZoom&&null!=i.maxZoom&&i.minZoom>i.maxZoom)throw Error("maxZoom must be greater than or equal to minZoom");if(null!=i.minPitch&&null!=i.maxPitch&&i.minPitch>i.maxPitch)throw Error("maxPitch must be greater than or equal to minPitch");if(null!=i.minPitch&&i.minPitch<0)throw Error("minPitch must be greater than or equal to 0");if(null!=i.maxPitch&&i.maxPitch>180)throw Error("maxPitch must be less than or equal to 180");this._camera=new nA({minZoom:i.minZoom,maxZoom:i.maxZoom,minPitch:i.minPitch,maxPitch:i.maxPitch,bearingSnap:i.bearingSnap,zoomSnap:i.zoomSnap,renderWorldCopies:i.renderWorldCopies,centerClampedToGround:i.centerClampedToGround,terrain:this.terrain,transformConstrain:i.transformConstrain,requestRenderFrame:t=>this._requestRenderFrame(t),cancelRenderFrame:t=>this._cancelRenderFrame(t),transformCameraUpdate:i.transformCameraUpdate,stopHandlers:()=>this._handlers?.stop(!1)}),this._camera.setEventedParent(this),this._interactive=i.interactive,this._maxTileCacheSize=i.maxTileCacheSize,this._maxTileCacheZoomLevels=i.maxTileCacheZoomLevels,this._canvasContextAttributes={...i.canvasContextAttributes},this._trackResize=!0===i.trackResize,this._terrainSkirtLength=i.terrainSkirtLength,this._refreshExpiredTiles=!0===i.refreshExpiredTiles,this._fadeDuration=i.fadeDuration,this._crossSourceCollisions=!0===i.crossSourceCollisions,this._collectResourceTiming=!0===i.collectResourceTiming,this._locale={...nF,...i.locale},this._clickTolerance=i.clickTolerance,this._overridePixelRatio=i.pixelRatio,this._maxCanvasSize=i.maxCanvasSize,this._zoomLevelsToOverscale=i.zoomLevelsToOverscale,this.cancelPendingTileRequestsWhileZooming=!0===i.cancelPendingTileRequestsWhileZooming,this.setAnisotropicFilterPitch(i.anisotropicFilterPitch),void 0!==i.reduceMotion&&(A.prefersReducedMotion=i.reduceMotion),this._requestManager=new P(i.transformRequest),this._container=this._resolveContainer(i.container),i.maxBounds&&this.setMaxBounds(i.maxBounds),this._setupContainer();try{this._setupPainter()}catch(t){throw this._cleanupContainer(),t}this._imageQueueHandle=s.addThrottleControl(()=>this.isMoving()),this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),this.on("terrain",()=>{this.painter.markTerrainDepthDirty(),this._update(!0)}),this.once("idle",()=>this._idleTriggered=!0),this._handlers=new nS(this,this._camera,i),"u">typeof window&&(this._ownerWindow.addEventListener("online",this._onWindowOnline,!1),this._setupResizeObserver());let r="string"==typeof i.hash&&i.hash||void 0;this._hash=i.hash?new aN(r).addTo(this):void 0,this._hash?._onHashChange()||(this.jumpTo({center:i.center,elevation:i.elevation,zoom:i.zoom,bearing:i.bearing,pitch:i.pitch,roll:i.roll}),i.bounds&&(this.resize(),this.fitBounds(i.bounds,(0,T.er)({},i.fitBoundsOptions,{duration:0}))));let a="string"==typeof i.style||i.style?.projection?.type!=="globe";this.resize(null,a),this._localIdeographFontFamily=i.localIdeographFontFamily,this._val
1180idateStyle=i.validateStyle,i.style&&this.setStyle(i.style,{localIdeographFontFamily:i.localIdeographFontFamily}),i.attributionControl&&this.addControl(new nE("boolean"==typeof i.attributionControl?void 0:i.attributionControl)),i.maplibreLogo&&this.addControl(new nM,i.logoPosition),this.on("style.load",()=>{if(a||this._resizeTransform(),this._camera.transform.unmodified){let t=(0,T.yr)(this.style.stylesheet,["center","zoom","bearing","pitch","roll"]);this.jumpTo(t)}}),this.on("data",t=>{this._update("style"===t.dataType),this.fire("style"===t.dataType?new F("styledata",t):new R("sourcedata",t))}),this.on("dataloading",t=>{this.fire("style"===t.dataType?new F("styledataloading",t):new R("sourcedataloading",t))}),this.on("dataabort",t=>{this.fire(new R("sourcedataabort",t))})}_getMapId(){return this._mapId}setGlobalStateProperty(t,i){return this.style.setGlobalStateProperty(t,i),this._update(!0)}getGlobalState(){return this.style.getGlobalState()}addControl(t,i){if(void 0===i&&(i=t.getDefaultPosition?t.getDefaultPosition():"top-right"),!t?.onAdd)return this.fire(new T.gn(Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let r=t.onAdd(this);this._controls.push(t);let a=this._controlPositions[i];return i.includes("bottom")?a.insertBefore(r,a.firstChild):a.appendChild(r),this}removeControl(t){if(!t?.onRemove)return this.fire(new T.gn(Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let i=this._controls.indexOf(t);return i>-1&&this._controls.splice(i,1),t.onRemove(this),this}hasControl(t){return this._controls.includes(t)}coveringTiles(t){return e8(this._camera.transform,t)}setTransformCameraUpdate(t){this._camera.transformCameraUpdate=t}getCenter(){return new T.lt(this._camera.transform.center.lng,this._camera.transform.center.lat)}setCenter(t,i){return this._camera.setCenter(t,i),this}getCenterElevation(){return this._camera.transform.elevation}setCenterElevation(t,i){return this._camera.setCenterElevation(t,i),this}setCenterClampedToGround(t){this._camera.setCenterClampedToGround(t)}panBy(t,i,r){return this._camera.panBy(t,i,r),this}panTo(t,i,r){return this._camera.panTo(t,i,r),this}getZoom(){return this._camera.transform.zoom}setZoom(t,i){return this._camera.setZoom(t,i),this}zoomTo(t,i,r){return this._camera.zoomTo(t,i,r),this}zoomIn(t,i){return this._camera.zoomIn(t,i),this}zoomOut(t,i){return this._camera.zoomOut(t,i),this}getVerticalFieldOfView(){return this._camera.transform.fov}setVerticalFieldOfView(t,i){return this._camera.setVerticalFieldOfView(t,i),this}getBearing(){return this._camera.transform.bearing}setBearing(t,i){return this._camera.setBearing(t,i),this}getZoomSnap(){return this._camera.getZoomSnap()}setZoomSnap(t){return this._camera.setZoomSnap(t),this}getPadding(){return this._camera.transform.padding}setPadding(t,i){return this._camera.setPadding(t,i),this}rotateTo(t,i,r){return this._camera.rotateTo(t,i,r),this}resetNorth(t,i){return this._camera.resetNorth(t,i),this}resetNorthPitch(t,i){return this._camera.resetNorthPitch(t,i),this}snapToNorth(t,i){return this._camera.snapToNorth(t,i),this}getPitch(){return this._camera.transform.pitch}setPitch(t,i){return this._camera.setPitch(t,i),this}getRoll(){return this._camera.transform.roll}setRoll(t,i){return this._camera.setRoll(t,i),this}cameraForBounds(t,i){return this._camera.cameraForBounds(t,i)}fitBounds(t,i,r){return this._camera.fitBounds(t,i,r),this}fitScreenCoordinates(t,i,r,a,n){return this._camera.fitScreenCoordinates(t,i,r,a,n),this}jumpTo(t,i){return this._camera.jumpTo(t,i),this}calculateCameraOptionsFromCameraLngLatAltRotation(t,i,r,a,n){return this._camera.calculateCameraOptionsFromCameraLngLatAltRotation(t,i,r,a,n)}easeTo(t,i){return this._camera.easeTo(t,i),this}flyTo(t,i){return this._camera.flyTo(t,i),this}stop(){return this._camera.stop(),this}queryTerrainElevation(t){return this.terrain?this.terrain.getElevationForLngLat(T.lt.convert(t),this._camera.transform):null}getCenterClampedToGround(){return this._camera.getCenterClampedToGroun
vendor: 4,906 bytes, line 1180
1180d()}calculateCameraOptionsFromTo(t,i,r,a){return null==a&&this.terrain&&(a=this.terrain.getElevationForLngLat(r,this._camera.transform)),this._camera.transform.calculateCameraOptionsFromTo(t,i,r,a??0)}resize(t,i=!0){if(null!==this._lostContextStyle.style)return this;this._resizeInternal(i);let r=!this._camera._moving;return r&&(this.stop(),this.fire(new I("movestart",t)).fire(new I("move",t))),this.fire(new D("resize",t)),r&&this.fire(new I("moveend",t)),this}_resizeInternal(t=!0){let[i,r]=this._containerDimensions(),a=this._getClampedPixelRatio(i,r);if(this._resizeCanvas(i,r,a),this.painter.resize(i,r,a),this.painter.overLimit()){let t=this.painter.context.gl;this._maxCanvasSize=[t.drawingBufferWidth,t.drawingBufferHeight];let a=this._getClampedPixelRatio(i,r);this._resizeCanvas(i,r,a),this.painter.resize(i,r,a)}this._resizeTransform(t)}_resizeTransform(t=!0){let[i,r]=this._containerDimensions();this._camera.transform.resize(i,r,t),this._camera._requestedCameraState?.resize(i,r,t)}_getClampedPixelRatio(t,i){let{0:r,1:a}=this._maxCanvasSize,n=this.getPixelRatio(),o=t*n,s=i*n,l=Math.min(o>r?r/o:1,s>a?a/s:1);return l<1&&(0,T.Nr)("The canvas is larger than maxCanvasSize and is rendered at a lower pixel ratio to fit. Increase maxCanvasSize, within MAX_TEXTURE_SIZE, to render at full resolution."),l*n}getPixelRatio(){return this._overridePixelRatio??devicePixelRatio}setPixelRatio(t){this._overridePixelRatio=t,this.resize()}getBounds(){return this._camera.transform.getBounds()}getMaxBounds(){return this._camera.transform.getMaxBounds()}setMaxBounds(t){return this._camera.transform.setMaxBounds(eE.convert(t)),this._update()}setMinZoom(t){if((t??=-2)>=-2&&t<=this._camera.transform.maxZoom){let i=this._camera.transform.zoom,r=this._camera.getTransformForUpdate();return r.setMinZoom(t),this._camera.applyUpdatedTransform(r),this._update(),i!==this._camera.transform.zoom&&this.fire(new I("zoomstart")).fire(new I("zoom")).fire(new I("zoomend")).fire(new I("movestart")).fire(new I("move")).fire(new I("moveend")),this}throw Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(t=!1){let i=this._camera.transform;return t?i.applyConstrain(i.center,i.minZoom).zoom:i.minZoom}setMaxZoom(t){if((t??=22)>=this._camera.transform.minZoom){let i=this._camera.transform.zoom,r=this._camera.getTransformForUpdate();return r.setMaxZoom(t),this._camera.applyUpdatedTransform(r),this._update(),i!==this._camera.transform.zoom&&this.fire(new I("zoomstart")).fire(new I("zoom")).fire(new I("zoomend")).fire(new I("movestart")).fire(new I("move")).fire(new I("moveend")),this}throw Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this._camera.transform.maxZoom}setMinPitch(t){if((t??=0)<0)throw Error("minPitch must be greater than or equal to 0");if(t>=0&&t<=this._camera.transform.maxPitch){let i=this._camera.transform.pitch,r=this._camera.getTransformForUpdate();return r.setMinPitch(t),this._camera.applyUpdatedTransform(r),this._update(),i!==this._camera.transform.pitch&&this.fire(new I("pitchstart")).fire(new I("pitch")).fire(new I("pitchend")).fire(new I("movestart")).fire(new I("move")).fire(new I("moveend")),this}throw Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this._camera.transform.minPitch}setMaxPitch(t){if((t??=60)>180)throw Error("maxPitch must be less than or equal to 180");if(t>=this._camera.transform.minPitch){let i=this._camera.transform.pitch,r=this._camera.getTransformForUpdate();return r.setMaxPitch(t),this._camera.applyUpdatedTransform(r),this._update(),i!==this._camera.transform.pitch&&this.fire(new I("pitchstart")).fire(new I("pitch")).fire(new I("pitchend")).fire(new I("movestart")).fire(new I("move")).fire(new I("moveend")),this}throw Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this._camera.transform.maxPitch}getAnisotropicFilterPitch(){return this._anisotropicFilterPitch}setAnisotropicFilterPitch(t){if((t??=20)>180)throw Error("anisotropicFilterPitch must be less than or equal to 180");if(t<0)throw Error("anisotropicFilterPitch must be greater than or equal to 0");return this._anisotropicFilterPitch=t,this._update()}getRenderWorldCopies(){return this._camera.transform.renderWorldCopies}setRenderWorldCopies(t){return this._camera.transform.setRenderWorldCopies(t),this._update()}setTransformConstrain(t){return this._camera.transform.setConstrainOverride(t),this._update()}project(t){return this._camera.transform.locationToScreenPoint(T.lt.convert(t),this.style&&this.terrain)}unproject(t){return this._camera.transform.screenPointToLocation(T.Li.convert(t),this.terrain)}isMoving(){return this._camera.isMoving()||this._handlers?.isMoving()||!1}isZooming(){return this._camera.isZooming()||this._handlers?.isZooming()||!1}isRotating(){return this._camera.isRotating()||this._handlers?.isRotating()||!1}
1180_createDelegatedListener(t,i,r){if("mouseenter"===t||"mouseover"===t){let a=!1;return{layers:i,listener:r,delegates:{mousemove:n=>{let o=i.filter(t=>this.getLayer(t)),s=0===o.length?[]:this.queryRenderedFeatures(n.point,{layers:o});s.length?a||(a=!0,r.call(this,new O(t,this,n.originalEvent,{features:s}))):a=!1},mouseout:()=>{a=!1}}}}if("mouseleave"===t||"mouseout"===t){let a=!1;return{layers:i,listener:r,delegates:{mousemove:n=>{let o=i.filter(t=>this.getLayer(t));(0===o.length?[]:this.queryRenderedFeatures(n.point,{layers:o})).length?a=!0:a&&(a=!1,r.call(this,new O(t,this,n.originalEvent)))},mouseout:i=>{a&&(a=!1,r.call(this,new O(t,this,i.originalEvent)))}}}}{let a=t=>{let a=i.filter(t=>this.getLayer(t)),n=0===a.length?[]:this.queryRenderedFeatures(t.point,{layers:a});n.length&&(t.features=n,r.call(this,t),delete t.features)};return{layers:i,listener:r,delegates:{[t]:a}}}}_saveDelegatedListener(t,i){this._delegatedListeners||={},this._delegatedListeners[t]||=[],this._delegatedListeners[t].push(i)}_removeDelegatedListener(t,i,r){if(!this._delegatedListeners?.[t])return;let a=this._delegatedListeners[t];for(let t=0;t<a.length;t++){let n=a[t];if(n.listener===r&&n.layers.length===i.length&&n.layers.every(t=>i.includes(t))){for(let t in n.delegates)this.off(t,n.delegates[t]);a.splice(t,1);return}}}on(t,i,r){if(void 0===r)return super.on(t,i);let a="string"==typeof i?[i]:i,n=this._createDelegatedListener(t,a,r);for(let i in this._saveDelegatedListener(t,n),n.delegates)this.on(i,n.delegates[i]);return{unsubscribe:()=>{this._removeDelegatedListener(t,a,r)}}}once(t,i,r){if(void 0===r)return super.once(t,i);let a="string"==typeof i?[i]:i,n=this._createDelegatedListener(t,a,r);for(let i in n.delegates){let o=n.delegates[i];n.delegates[i]=(...i)=>{this._removeDelegatedListener(t,a,r),o(...i)}}for(let i in this._saveDelegatedListener(t,n),n.delegates)this.once(i,n.delegates[i]);return this}off(t,i,r){if(void 0===r)return super.off(t,i);let a="string"==typeof i?[i]:i;return this._removeDelegatedListener(t,a,r),this}queryRenderedFeatures(t,i){if(!this.style)return[];let r,a=t instanceof T.Li||Array.isArray(t),n=a?t:[[0,0],[this._camera.transform.width,this._camera.transform.height]];if(i||=(a?{}:t)||{},n instanceof T.Li||"number"==typeof n[0])r=[T.Li.convert(n)];else{let t=T.Li.convert(n[0]),i=T.Li.convert(n[1]);r=[t,new T.Li(i.x,t.y),i,new T.Li(t.x,i.y),t]}return this.style.queryRenderedFeatures(r,i,this._camera.transform)}querySourceFeatures(t,i){return this.style.querySourceFeatures(t,i)}setStyle(t,i){return i=(0,T.er)({},{localIdeographFontFamily:this._localIdeographFontFamily,validate:this._val
1180idateStyle},i),this._styleUrl="string"==typeof t?t:null,!1!==i.diff&&i.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&t?(this._diffStyle(t,i),this):(this._localIdeographFontFamily=i.localIdeographFontFamily,this._updateStyle(t,i))}setTransformRequest(t){return this._requestManager.setTransformRequest(t),this}_getUIString(t){let i=this._locale[t];if(null==i)throw Error(`Missing UI string '${t}'`);return i}_updateStyle(t,i){if(this._diffStyleRequest?.abort(),this._diffStyleRequest=null,i.transformStyle&&this.style&&!this.style._loaded)return void this.style.once("style.load",()=>this._updateStyle(t,i));let r=this.style&&i.transformStyle?this.style.serialize():void 0;return(this.style&&(this.style.setEventedParent(null),this.style._remove(!t)),t)?(this.style=new iq(this,i||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof t?this.style.loadURL(t,i,r):this.style.loadJSON(t,i,r)):(this._frameRequest&&=(this._frameRequest.abort(),null),this.style?.projection?.destroy(),delete this.style),this}_lazyInitEmptyStyle(){this.style||(this.style=new iq(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}async _diffStyle(t,i){if(this._diffStyleRequest?.abort(),"string"==typeof t){this._diffStyleRequest=new AbortController;let r=this._diffStyleRequest;try{let a=await this._requestManager.transformRequest(t,"Style");if(r.signal.aborted){this._diffStyleRequest=null;return}let n=await (0,T.Sn)(a,r);this._diffStyleRequest=null,this._updateDiff(n.data,i)}catch(t){this._diffStyleRequest=null,(0,T.Mn)(t)||this.fire(new T.gn((0,T.Qn)(t)))}}else"object"==typeof t&&(this._diffStyleRequest=null,this._updateDiff(t,i))}_updateDiff(t,i){try{this.style.setState(t,i)&&this._update(!0)}catch(r){(0,T.Nr)(`Unable to perform style diff: ${(0,T.Qn)(r).message}.  Rebuilding the style from scratch.`),this._updateStyle(t,i)}}getStyle(){if(this.style)return this.style.serialize()}getStyleUrl(){return this._styleUrl}_getStyleAndImages(){return this.style?{style:this.style.serialize(),images:this.style.imageManager.cloneImages()}:{style:null,images:{}}}isStyleLoaded(){return this.style?this.style.loaded():void(0,T.Nr)("There is no style added to the map.")}addSource(t,i){return this._lazyInitEmptyStyle(),this.style.addSource(t,i),this._update(!0)}isSourceLoaded(t){let i=this.style?.tileManagers[t];return void 0===i?void this.fire(new T.gn(Error(`There is no tile manager with ID '${t}'`))):i.loaded()}setTerrain(t,i={}){if(this.style._checkLoaded(),t&&(0,T.an)(this,T.on.terrain,{value:t},i))return this;if(this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),t){let i=this.style.tileManagers[t.source];if(!i)throw Error(`cannot load terrain, because there exists no source with ID: ${t.source}`);for(let r in null===this.terrain&&i.reload(),this.style._layers){let i=this.style._layers[r];"hillshade"===i.type&&i.source===t.source&&(0,T.Nr)("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality."),"color-relief"===i.type&&i.source===t.source&&(0,T.Nr)("You are using the same source for a color-relief layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain&&this.terrain.destroy(),this.terrain=new ii(this.painter,i,t,this._terrainSkirtLength),this.painter.renderToTexture=new nL(this.painter,this.terrain),this._camera.terrain=this.terrain,this._camera.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this._camera.transform.center,this._camera.transform.tileZoom)),this._camera.transform.setElevation(this.terrain.getElevationForLngLat(this._camera.transform.center,this._camera.transform)),this._terrainDataCallback=i=>this._handleTerrainDataEvent(i,t.source),this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.destroy(),this.terrain=null,this.painter.renderToTexture=null,this._camera.terrain=null,this._camera.transform.setMinElevationForCurrentTile(0),this.getCenterClampedToGroun
1180d()&&this._camera.transform.setElevation(0);return this.style.triggerSymbolPlacement(),this.fire(new $({terrain:t})),this}_handleTerrainDataEvent(t,i){if("style"===t.dataType)return void this.terrain.tileManager.releaseAllRTT();let r=t.sourceId===i;if(r&&(this.terrain.resetElevationCache(),this.style.triggerSymbolPlacement()),r&&t.tile&&this.painter.markTerrainDepthDirty(),r&&t.tile&&!this._camera.elevationFreeze&&(this._camera.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this._camera.transform.center,this._camera.transform.tileZoom)),this.getCenterClampedToGround()&&this._camera.transform.setElevation(this.terrain.getElevationForLngLat(this._camera.transform.center,this._camera.transform))),t.tile){if(t.source?.type==="image")return void this.terrain.tileManager.releaseAllRTT();this.terrain.tileManager.releaseRTT(t.tile.tileID)}}getTerrain(){return this.terrain?.options??null}areTilesLoaded(){for(let t of Object.values(this.style?.tileManagers))if(!t.areTilesLoaded())return!1;return!0}removeSource(t){return this.style.removeSource(t),this._update(!0)}getSource(t){return this.style?.getSource(t)}setSourceTileLodParams(t,i,r){if(r){let a=this.getSource(r);if(!a)throw Error(`There is no source with ID "${r}", cannot set LOD parameters`);a.calculateTileZoom=e5(Math.max(1,t),Math.max(1,i))}else for(let r in this.style.tileManagers)this.style.tileManagers[r].getSource().calculateTileZoom=e5(Math.max(1,t),Math.max(1,i));return this._update(!0),this}refreshTiles(t,i){let r=this.style.tileManagers[t];if(!r)throw Error(`There is no tile manager with ID "${t}", cannot refresh tile`);void 0===i?r.reload(!0):r.refreshTiles(i.map(t=>new T.u(t.z,t.x,t.y)))}addImage(t,i,r={}){this._lazyInitEmptyStyle();let a=this._createStyleImage(i,r);return a&&(this.style.addImage(t,a),a.userImage?.onAdd&&a.userImage.onAdd(this,t)),this}setMissingStyleImageResolver(t){return this._missingStyleImageResolver=t,this.style?.setMissingImageResolver(t),this}_createStyleImage(t,i={}){let{pixelRatio:r=1,sdf:a=!1,stretchX:n,stretchY:o,content:s,textFitWidth:l,textFitHeight:c}=i;if(t instanceof HTMLImageElement||(0,T.cr)(t)){let{width:i,height:u,data:h}=A.getImageData(t);return{data:new T.Dt({width:i,height:u},h),pixelRatio:r,stretchX:n,stretchY:o,content:s,textFitWidth:l,textFitHeight:c,sdf:a,version:0}}if(void 0===t.width||void 0===t.height)return this.fire(new T.gn(Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`"))),null;{let{width:i,height:u,data:h}=t,d=(0,T.I)(t.data);return{data:d?new T.Dt({width:i,height:u}):new T.Dt({width:i,height:u},new Uint8Array(h)),pixelRatio:r,stretchX:n,stretchY:o,content:s,textFitWidth:l,textFitHeight:c,sdf:a,version:0,isWebGLImage:d,userImage:t}}}updateImage(t,i){let r=this.style.getImage(t);if(!r)return this.fire(new T.gn(Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let{width:a,height:n,data:o}=i instanceof HTMLImageElement||(0,T.cr)(i)?A.getImageData(i):i;if(void 0===a||void 0===n)return this.fire(new T.gn(Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(a!==r.data.width||n!==r.data.height)return this.fire(new T.gn(Error("The width and height of the updated image must be that same as the previous version of the image")));if(r.isWebGLImage=(0,T.I)(o),r.isWebGLImage)r.userImage=i;else{let t=!(i instanceof HTMLImageElement||(0,T.cr)(i));r.data.replace(o,t)}return this.style.updateImage(t,r),this}getImage(t){return this.style.getImage(t)}hasImage(t){return t?!!this.style.getImage(t):(this.fire(new T.gn(Error("Missing required image id"))),!1)}removeImage(t){this.style.removeImage(t)}async loadImage(t){let i=await s.getImage(await this._requestManager.transformRequest(t,"Image"),new AbortController);if(!i.data)throw Error(`Could not load image ${t}: the response is empty`);return i}listImages(){return this.style?.listImages()??[]}
vendor: 12,921 bytes, line 1180
1180addLayer(t,i){return this._lazyInitEmptyStyle(),this.style.addLayer(t,i),this._update(!0)}moveLayer(t,i){return this.style.moveLayer(t,i),this._update(!0)}removeLayer(t){return this.style.removeLayer(t),this._update(!0)}getLayer(t){return this.style?.getLayer(t)}getLayersOrder(){return this.style?.getLayersOrder()??[]}setLayerZoomRange(t,i,r){return this.style.setLayerZoomRange(t,i,r),this._update(!0)}setFilter(t,i,r={}){return this.style?.setFilter(t,i,r),this._update(!0)}getFilter(t){return this.style.getFilter(t)}setPaintProperty(t,i,r,a={}){return this.style?.setPaintProperty(t,i,r,a),this._update(!0)}getPaintProperty(t,i){return this.style.getPaintProperty(t,i)}setLayoutProperty(t,i,r,a={}){return this.style.setLayoutProperty(t,i,r,a),this._update(!0)}getLayoutProperty(t,i){return this.style.getLayoutProperty(t,i)}setGlyphs(t,i={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(t,i),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}setFontFaces(t){return this._lazyInitEmptyStyle(),this.style.setFontFaces(t),this._update(!0)}getFontFaces(){return this.style.getFontFaces()}addSprite(t,i,r={}){return this._lazyInitEmptyStyle(),this.style.addSprite(t,i,r,t=>{t||this._update(!0)}),this}removeSprite(t){return this._lazyInitEmptyStyle(),this.style.removeSprite(t),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(t,i={}){return this._lazyInitEmptyStyle(),this.style.setSprite(t,i,t=>{t||this._update(!0)}),this}setLight(t,i={}){return this._lazyInitEmptyStyle(),this.style.setLight(t,i),this._update(!0)}getLight(){return this.style.getLight()}setSky(t,i={}){return this._lazyInitEmptyStyle(),this.style.setSky(t,i),this._update(!0)}getSky(){return this.style.getSky()}setFeatureState(t,i){return this.style.setFeatureState(t,i),this._update()}removeFeatureState(t,i){return this.style.removeFeatureState(t,i),this._update()}getFeatureState(t){return this.style.getFeatureState(t)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let t=0,i=0;return this._container&&(t=this._container.clientWidth||400,i=this._container.clientHeight||300),[t,i]}_shouldHandleInitialResize(){if(!this._container?.clientWidth||!this._container.clientHeight)return!1;let[t,i]=this._containerDimensions();return t!==this._camera.transform.width||i!==this._camera.transform.height}_setupResizeObserver(){let t=!1,i=aj(t=>{this._trackResize&&!this._removed&&(this.resize(t),this.redraw())},50),r=this._ownerWindow.ResizeObserver??ResizeObserver;this._resizeObserver=new r(r=>{(t||(t=!0,this._shouldHandleInitialResize()))&&i(r)}),this._resizeObserver.observe(this._container)}_resolveContainer(t){if("string"==typeof t){let i=document.getElementById(t);if(!i)throw Error(`Container '${t}' not found.`);return i}if(t instanceof HTMLElement||t&&"object"==typeof t&&1===t.nodeType)return t;throw Error("Invalid type: 'container' must be a String or HTMLElement.")}_setupContainer(){let t=this._containerDimensions(),i=this._getClampedPixelRatio(t[0],t[1]),r=this._container;r.classList.add("maplibregl-map");let a=this._canvasContainer=M.create("div","maplibregl-canvas-container",r);this._interactive&&a.classList.add("maplibregl-interactive"),this._canvas=M.create("canvas","maplibregl-canvas",a),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex",this._interactive?"0":"-1"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._resizeCanvas(t[0],t[1],i);let n=this._controlContainer=M.create("div","maplibregl-control-container",r),o=this._controlPositions={};for(let t of["top-left","top-right","bottom-left","bottom-right"])o[t]=M.create("div",`maplibregl-ctrl-${t} `,n);this._container.addEventListener("scroll",this._onMapScroll,!1)}_cleanupContainer(){this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._container.removeEventListener("scroll",this._onMapScroll,!1),this._container.classList.remove("maplibregl-map")}_resizeCanvas(t,i,r){this._canvas.width=Math.floor(r*t),this._canvas.height=Math.floor(r*i),this._canvas.style.width=`${t}px`,this._canvas.style.height=`${i}px`}_setupPainter(){let t={...this._canvasContextAttributes,alpha:!0,depth:!0,stencil:!0,premultipliedAlpha:!0},i=null;this._canvas.addEventListener("webglcontextcreationerror",t=>{i=t},{once:!0});let r=this._canvas.getContext("webgl2",t);if(!r)throw new aB(t,i);this.painter=new aO(r,this._camera.transform)}migrateProjection(t,i){this._camera.migrateProjection(t,i),this.painter.transform=t,this.fire(new V({newProjection:this.style.projection.name}))}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(t){return this.style?._loaded&&(this._styleDirty||=t,this._sourcesDirty=!0,this.triggerRepaint()),this}_requestRenderFrame(t){return this._update(),this._renderTaskQueue.add(t)}_cancelRenderFrame(t){this._renderTaskQueue.remove(t)}_render(t){let i=this._idleTriggered?this._fadeDuration:0,r=this.style.projection?.transitionState>0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(t),this._removed)return;let a=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let t=this._camera.transform.zoom,r=E();this.style.zoomHistory.update(t,r);let n=new T.en(t,{now:r,fadeDuration:i,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),o=n.crossFadingFactor();(1!==o||o!==this._crossFadingFactor)&&(a=!0,this._crossFadingFactor=o),this.style.update(n)}let n=this.style.projection?.transitionState>0!==r;this._camera.transform.setTransitionState(this.style.projection?.transitionState),this.style&&(this._sourcesDirty||n)&&(this._sourcesDirty=!1,this.style._updateSources(this._camera.transform)),this.terrain?(this.terrain.tileManager.update(this._camera.transform,this.terrain)&&this.terrain.resetElevationCache(),this._camera.transform.setMinElevationForCurrentTile(this.terrain.getMinTileElevationForLngLatZoom(this._camera.transform.center,this._camera.transform.tileZoom)),!this._camera.elevationFreeze&&this.getCenterClampedToGround()&&this._camera.transform.setElevation(this.terrain.getElevationForLngLat(this._camera.transform.center,this._camera.transform))):(this._camera.transform.setMinElevationForCurrentTile(0),this.getCenterClampedToGround()&&this._camera.transform.setElevation(0)),this._placementDirty=this.style?._updatePlacement(this._camera.transform,this.showCollisionBoxes,i,this._crossSourceCollisions,n),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:i,showPadding:this.showPadding,anisotropicFilterPitch:this.getAnisotropicFilterPitch()}),this.fire(new D("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new D("load"))),this.style&&(this.style.hasTransitions()||a)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let o=this._sourcesDirty||this._styleDirty||this._placementDirty||this.painter.renderToTexture?.needsFollowUpFrame;return o||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new D("idle")),!this._loaded||this._fullyLoaded||o||(this._fullyLoaded=!0),this}redraw(){return this.style&&(this._frameRequest&&=(this._frameRequest.abort(),null),this._render(0)),this}remove(){for(let t of(this._hash&&this._hash.remove(),this._controls))t.onRemove(this);this._controls=[],this._frameRequest&&=(this._frameRequest.abort(),null),this._renderTaskQueue.clear(),this._diffStyleRequest?.abort(),this.painter.destroy(),this._handlers.destroy(),this.setStyle(null),"u">typeof window&&this._ownerWindow.removeEventListener("online",this._onWindowOnline,!1),s.removeThrottleControl(this._imageQueueHandle),this._resizeObserver?.disconnect();let t=this.painter.context.gl.getExtension("WEBGL_lose_context");t?.loseContext&&t.loseContext(),this._cleanupContainer(),this._removed=!0,this.fire(new D("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,A.frame(this._frameRequest,t=>{this._frameRequest=null;try{this._render(t)}catch(t){if(!(0,T.Mn)(t))throw t}},()=>{},this._ownerWindow))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(t){this._showTileBoundaries!==t&&(this._showTileBoundaries=t,this._update())}get showPadding(){return!!this._showPadding}set showPadding(t){this._showPadding!==t&&(this._showPadding=t,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(t){this._showCollisionBoxes!==t&&(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(t){this._showOverdrawInspector!==t&&(this._showOverdrawInspector=t,this._update())}get repaint(){return!!this._repaint}set repaint(t){this._repaint!==t&&(this._repaint=t,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(t){this._vertices=t,this._update()}get version(){return"6.9.1"}getCameraTargetElevation(){return this._camera.transform.elevation}getProjection(){return this.style.getProjection()}setProjection(t){return this._lazyInitEmptyStyle(),this.style.setProjection(t),this._update(!0)}};let nB={showCompass:!0,showZoom:!0,visualizePitch:!1,visualizeRoll:!0};var nj=class{constructor(t){this._updateZoomButtons=()=>{let t=this._map.getZoom(),i=t===this._map.getMaxZoom(),r=t===this._map.getMinZoom(!0);this._zoomInButton.disabled=i,this._zoomOutButton.disabled=r,this._zoomInButton.setAttribute("aria-disabled",i.toString()),this._zoomOutButton.setAttribute("aria-disabled",r.toString())},this._rotateCompassArrow=()=>{let t=this._map.getPitch(),i=this._map.getRoll(),r=this._map.getBearing(),a=1/Math.cos((0,T.Yn)(t))**.5;if(this.options.visualizePitch&&this.options.visualizeRoll){this._compassIcon.style.transform=`scale(${a}) rotateZ(${-i}deg) rotateX(${t}deg) rotateZ(${-r}deg)`;return}if(this.options.visualizePitch){this._compassIcon.style.transform=`scale(${a}) rotateX(${t}deg) rotateZ(${-r}deg)`;return}if(this.options.visualizeRoll){this._compassIcon.style.transform=`rotate(${-r-i}deg)`;return}this._compassIcon.style.transform=`rotate(${-r}deg)`},this._setButtonTitle=(t,i)=>{let r=this._map._getUIString(`NavigationControl.${i}`);t.title=r,t.setAttribute("aria-label",r)},this.options=(0,T.er)({},nB,t),this._container=M.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",t=>t.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",t=>this._map.zoomIn({},{originalEvent:t})),M.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",t=>this._map.zoomOut({},{originalEvent:t})),M.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",t=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:t}):this._map.resetNorth({},{originalEvent:t})}),this._compassIcon=M.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(t){return this._map=t,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("move",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this.options.visualizeRoll&&this._map.on("roll",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new nN(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){this._container.remove(),this.options.showZoom&&this._map.off("move",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this.options.visualizeRoll&&this._map.off("roll",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(t,i){let r=M.create("button",t,this._container);return r.type="button",r.addEventListener("click",i),r}},nN=class{constructor(t,i,r=!1){this.mousedown=t=>
1180{this.startMove(t,M.mousePos(this.element,t)),window.addEventListener("mousemove",this.mousemove),window.addEventListener("mouseup",this.mouseup)},this.mousemove=t=>{this.move(t,M.mousePos(this.element,t))},this.mouseup=t=>{this._rotatePitchHandler.dragEnd(t),this.offTemp()},this.touchstart=t=>{1===t.targetTouches.length?(this._startPos=this._lastPos=M.touchPos(this.element,t.targetTouches)[0],this.startMove(t,this._startPos),window.addEventListener("touchmove",this.touchmove,{passive:!1}),window.addEventListener("touchend",this.touchend)):this.reset()},this.touchmove=t=>{1===t.targetTouches.length?(this._lastPos=M.touchPos(this.element,t.targetTouches)[0],this.move(t,this._lastPos)):this.reset()},this.touchend=t=>{0===t.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),delete this._startPos,delete this._lastPos,this.offTemp()},this.reset=()=>{this._rotatePitchHandler.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10,this.element=i;let a=new a8;this._rotatePitchHandler=new a3({clickTolerance:3,move:(t,a)=>{let n=i.getBoundingClientRect(),o=new T.Li((n.bottom-n.top)/2,(n.right-n.left)/2);return{bearingDelta:(0,T.ir)(new T.Li(t.x,a.y),a,o),pitchDelta:r?-((a.y-t.y)*.5):void 0}},moveStateManager:a,enable:!0,assignEvents:()=>{}}),this.map=t,i.addEventListener("mousedown",this.mousedown),i.addEventListener("touchstart",this.touchstart,{passive:!1}),i.addEventListener("touchcancel",this.reset)}startMove(t,i){this._rotatePitchHandler.dragStart(t,i),M.disableDrag()}move(t,i){let r=this.map,{bearingDelta:a,pitchDelta:n}=this._rotatePitchHandler.dragMove(t,i)||{};a&&r.setBearing(r.getBearing()+a),n&&r.setPitch(r.getPitch()+n)}off(){let t=this.element;t.removeEventListener("mousedown",this.mousedown),t.removeEventListener("touchstart",this.touchstart),window.removeEventListener("touchmove",this.touchmove),window.removeEventListener("touchend",this.touchend),t.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){M.enableDrag(),window.removeEventListener("mousemove",this.mousemove),window.removeEventListener("mouseup",this.mouseup),window.removeEventListener("touchmove",this.touchmove),window.removeEventListener("touchend",this.touchend)}};async function n$(t=!1){if(void 0!==p&&!t)return p;if(void 0===window.navigator.permissions)return p=!!window.navigator.geolocation;try{p="denied"!==(await window.navigator.permissions.query({name:"geolocation"})).state}catch{p=!!window.navigator.geolocation}return p}function nV(t,i,r,a=!1){if(a||!r.getCoveringTilesDetailsProvider().allowWorldCopies())return t?.wrap();let n=new T.lt(t.lng,t.lat);if(t=new T.lt(t.lng,t.lat),i){let a=new T.lt(t.lng-360,t.lat),n=new T.lt(t.lng+360,t.lat),o=r.locationToScreenPoint(t).distSqr(i);r.locationToScreenPoint(a).distSqr(i)<o?t=a:r.locationToScreenPoint(n).distSqr(i)<o&&(t=n)}for(;Math.abs(t.lng-r.center.lng)>180;){let i=r.locationToScreenPoint(t);if(i.x>=0&&i.y>=0&&i.x<=r.width&&i.y<=r.height)break;t.lng>r.center.lng?t.lng-=360:t.lng+=360}return t.lng!==n.lng&&r.isPointOnMapSurface(r.locationToScreenPoint(t))?t:n}let nU={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function nG(t,i,r){let a=t.classList;for(let t in nU)a.remove(`maplibregl-${r}-anchor-${t}`);a.add(`maplibregl-${r}-anchor-${i}`)}let nq={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]},nZ="#3FB1CE";function nH(t,i,r=[]){let a=M.createNS("http://www.w3.org/2000/svg",t);for(let t in i)a.setAttributeNS(null,t,i[t]);for(let t of r)a.appendChild(t);return a}var nW=class extends T._n{},nX=class extends T._n{},nY=class extends T.vn{constructor(t){if(super(),this._onClick=t=>{this.fire(new nX("click",{originalEvent:t}))},this._onKeyPress=t=>{("Space"===t.code||"Enter"===t.code)&&this.togglePopup()},this._onKeyDown=t=>{if(!this._defaultMarker||!this._draggable||!this._map||!this._lngLat||t.composedPath()[0]!==this._element||t.altKey||t.ctrlKey||t.metaKey)return;let i=nq[t.key];if(!i)return;t.preventDefault(),t.stopPropagation();let r=t.shiftKey?10:1,a=this._map.project(this._lngLat);this.setLngLat(this._map.unproject(new T.Li(a.x+i[0]*r,a.y+i[1]*r))),this._keyboardDragActive||(this._keyboardDragActive=!0,this.fire(new nW("dragstart"))),this.fire(new nW("drag"))},this._onKeyUp=t=>{nq[t.key]&&this._endKeyboardDrag()},this._onBlur=()=>{this._endKeyboardDrag()},this._onMapClick=t=>{let i=t.originalEvent.target,r=this._element;this._popup&&(i===r||r.contains(i))&&this.togglePopup()},this._update=t=>{if(!this._map)return;let i=this._map.loaded()&&!this._map.isMoving();t?.type!=="terrain"&&(t?.type!=="render"||i)||this._map.once("render",this._update),this._lngLat=nV(this._lngLat,this._flatPos,this._map._camera.transform),this._flatPos=this._pos=this._map.project(this._lngLat)._add(this._offset),this._map.terrain&&(this._flatPos=this._map._camera.transform.locationToScreenPoint(this._lngLat)._add(this._offset));let r="";"viewport"===this._rotationAlignment||"auto"===this._rotationAlignment?r=`rotateZ(${this._rotation}deg)`:"map"===this._rotationAlignment&&(r=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let a="";"viewport"===this._pitchAlignment||"auto"===this._pitchAlignment?a="rotateX(0deg)":"map"===this._pitchAlignment&&(a=`rotateX(${this._map.getPitch()}deg)`),this._subpixelPositioning||t&&"moveend"!==t.type||(this._pos=this._pos.round()),this._element.style.transform=`${nU[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${a} ${r}`,A.frameAsync(new AbortController,this._map._ownerWindow).then(()=>{this._updateOpacity(t?.type==="moveend")}).catch(()=>{})},this._onMove=t=>{if(!this._isDragging){let i=this._clickTolerance||this._map._clickTolerance;this._isDragging=t.point.dist(this._pointerdownPos)>=i}this._isDragging&&(this._pos=t.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new nW("dragstart"))),this.fire(new nW("drag")))},this._onUp=()=>{this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new nW("dragend")),this._state="inactive"},this._addDragHandler=t=>{this._element.contains(t.originalEvent.target)&&(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._pointerdownPos=t.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},this._anchor=t?.anchor||"center",this._color=t?.color||nZ,this._scale=t?.scale||1,this._draggable=t?.draggable||!1,this._clickTolerance=t?.clickTolerance||0,this._subpixelPositioning=t?.subpixelPositioning||!1,this._isDragging=!1,this._roleManaged=!1,this._tabIndexManaged=!1,this._keyboardDragActive=!1,this._state="inactive",this._rotation=t?.rotation||0,this._rotationAlignment=t?.rotationAlignment||"auto",this._pitchAlignment=t?.pitchAlignment&&"auto"!==t.pitchAlignment?t.pitchAlignment:this._rotationAlignment,this.setOpacity(t?.opacity,t?.opacityWhenCovered),t?.element)this._element=t.element,this._offset=T.Li.convert(t?.offset||[0,0]);else{this._defaultMarker=!0,this._element=M.create("div");let i=(m||(m=nH("svg",{display:"block",height:"41px",width:"27px",viewBox:"0 0 27 41"},[nH("g",{"fill-rule":"nonzero"},[nH("g",{transform:"translate(3.0, 29.0)",fill:"#000000"},[["10.5","5.25002273"],["10.5","5.25002273"],["9.5","4.77275007"],["8.5","4.29549936"],["7.5","3.81822308"],["6.5","3.34094679"],["5.5","2.86367051"],["4.5","2.38636864"]].map(([t,i])=>nH("ellipse",{opacity:"0.04",cx:"10.5",cy:"5.80029008",rx:t,ry:i}))),nH("g",{fill:nZ},[nH("path",{d:"M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"})]),nH("g",{opacity:"0.25",fill:"#000000"},[nH("path",{d:"M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"})]),nH("g",{transform:"translate(6.0, 7.0)",fill:"#FFFFFF"}),nH("g",{transform:"translate(8.0, 8.0)"},[nH("circle",{fill:"#000000",opacity:"0.25",cx:"5.5",cy:"5.5",r:"5.4999962"}),nH("circle",{fill:"#FFFFFF",cx:"5.5",cy:"5.5",r:"5.4999962"})])])]))).cloneNode(!0);i.setAttributeNS(null,"height",`${41*this._scale}px`),i.setAttributeNS(null,"width",`${27*this._scale}px`),i.firstElementChild.children[1].setAttributeNS(null,"fill",this._color),this._element.appendChild(i),this._offset=T.Li.convert(t?.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",t=>{t.preventDefault()}),this._element.addEventListener("mousedown",t=>{t.preventDefault()}),nG(this._element,this._anchor,"marker"),t?.className)for(let i of t.className.split(" "))this._element.classList.add(i);this._popup=null}addTo(t){return this.remove(),this._map=t,this._defaultMarker&&!this._element.hasAttribute("aria-label")&&this._element.setAttribute("aria-label",t._getUIString("Marker.Title")),this._updateAccessibilityRole(),t.getCanvasContainer().appendChild(this._element),t.on("move",this._update),t.on("moveend",this._update),t.on("terrain",this._update),t.on("projectiontransition",this._update),this._element.addEventListener("click",this._onClick),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("terrain",this._update),this._map.off("projectiontransition",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),this._element.removeEventListener("click",this._onClick),this._element.removeEventListener("keydown",this._onKeyDown),this._element.removeEventListener("keyup",this._onKeyUp),this._element.removeEventListener("blur",this._onBlur),this._element.removeEventListener("keypress",this._onKeyPress),this._keyboardDragActive=!1,this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(t){return this._lngLat=T.lt.convert(t),this._pos=null,this._update(),this._popup&&this._popup.setLngLat(this._lngLat),this}getElement(){return this._element}setPopup(t){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress)),t){if(!("offset"in t.options)){let i=13.5/Math.SQRT2;t.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[
11800,-38.1],"bottom-left":[i,-((24.6+i)*1)],"bottom-right":[-i,-((24.6+i)*1)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=t,this._element.addEventListener("keypress",this._onKeyPress)}return this._updateTabIndex(),this._updateAccessibilityRole(),this}setSubpixelPositioning(t){return this._subpixelPositioning=t,this}_endKeyboardDrag(){this._keyboardDragActive&&(this._keyboardDragActive=!1,this.fire(new nW("dragend")))}getPopup(){return this._popup}togglePopup(){let t=this._popup;return this._element.style.opacity===this._opacityWhenCovered||t&&(t.isOpen()?t.remove():(t.setLngLat(this._lngLat),t.addTo(this._map))),this}_updateOpacity(t=!1){let{width:i,height:r}=this._map._camera.transform;if(!this._pos||this._pos.x<0||this._pos.y<0||this._pos.x>i||this._pos.y>r)return;let a=this._map?.terrain,n=this._map._camera.transform.isLocationOccluded(this._lngLat);if(!a||n){let t=n?this._opacityWhenCovered:this._opacity;this._element.style.opacity!==t&&(this._element.style.opacity=t,this._element.classList.toggle("maplibregl-marker-covered",n));return}if(t)this._opacityTimeout=null;else{if(this._opacityTimeout)return;this._opacityTimeout=setTimeout(()=>{this._opacityTimeout=null},100)}let o=this._map,s=o.terrain.depthAtPoint(this._pos),l=o.terrain.getElevationForLngLat(this._lngLat,o._camera.transform);if(o._camera.transform.lngLatToCameraDepth(this._lngLat,l)-s<.006){this._element.style.opacity=this._opacity,this._element.classList.remove("maplibregl-marker-covered");return}let c=-this._offset.y/o._camera.transform.pixelsPerMeter,u=Math.sin(o.getPitch()*Math.PI/180)*c,h=o.terrain.depthAtPoint(new T.Li(this._pos.x,this._pos.y-this._offset.y)),d=o._camera.transform.lngLatToCameraDepth(this._lngLat,l+u)-h>.006;this._popup?.isOpen()&&d&&this._popup.remove(),this._element.style.opacity=d?this._opacityWhenCovered:this._opacity,this._element.classList.toggle("maplibregl-marker-covered",d)}getOffset(){return this._offset}setOffset(t){return this._offset=T.Li.convert(t),this._update(),this}addClassName(t){this._element.classList.add(t)}removeClassName(t){this._element.classList.remove(t)}toggleClassName(t){return this._element.classList.toggle(t)}setDraggable(t){return this._draggable=!!t,this._element.classList.toggle("maplibregl-marker-draggable",this._draggable),this._map&&(t?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this._defaultMarker&&(this._draggable?(this._element.addEventListener("keydown",this._onKeyDown),this._element.addEventListener("keyup",this._onKeyUp),this._element.addEventListener("blur",this._onBlur)):(this._element.removeEventListener("keydown",this._onKeyDown),this._element.removeEventListener("keyup",this._onKeyUp),this._element.removeEventListener("blur",this._onBlur),this._endKeyboardDrag())),this._updateTabIndex(),this._updateAccessibilityRole(),this}isDraggable(){return this._draggable}_updateTabIndex(){this._popup||this._defaultMarker&&this._draggable?this._element.hasAttribute("tabindex")||(this._element.setAttribute("tabindex","0"),this._tabIndexManaged=!0):this._tabIndexManaged&&=("0"===this._element.getAttribute("tabindex")&&this._element.removeAttribute("tabindex"),!1)}_updateAccessibilityRole(){if(!this._defaultMarker||this._element.hasAttribute("role")&&!this._roleManaged)return;let t=this._draggable||this._popup?"button":"img";this._element.setAttribute("role",t),this._roleManaged=!0}setRotation(t){return this._rotation=t||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(t){return this._rotationAlignment=t||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(t){return this._pitchAlignment=t&&"auto"!==t?t:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}setOpacity(t,i){return(void 0===this._opacity||void 0===t&&void 0===i)&&(this._opacity="1",this._opacityWhenCovered="0.2"),void 0!==t&&(this._opacity=String(t)),void 0!==i&&(this._opacityWhenCovered=String(i)),this._map&&this._updateOpacity(!0),this}};let nK={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0}
1180,nJ=0,nQ=!1;var n1=class extends T._n{},n0=class extends T._n{},n2=class extends T._n{},n3=class extends T.vn{constructor(t){super(),this._onSuccess=t=>{if(this._map){if(this._isOutOfMapMaxBounds(t)){this._setErrorState(),this.fire(new n0("outofmaxbounds",t)),this._updateMarker(),this._finish();return}if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(t),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new n0("geolocate",t)),this._finish()}},this._updateCamera=t=>{let i=new T.lt(t.coords.longitude,t.coords.latitude),r=t.coords.accuracy,a=this._map.getBearing(),n=(0,T.er)({bearing:a},this.options.fitBoundsOptions),o=eE.fromLngLat(i,r);this._map.fitBounds(o,n,{geolocateSource:!0})},this._updateMarker=t=>{if(t){let i=new T.lt(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(i).addTo(this._map),this._userLocationDotMarker.setLngLat(i).addTo(this._map),this._accuracy=t.coords.accuracy,this._updateCircleRadiusIfNeeded()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onUpdate=()=>{this._updateCircleRadiusIfNeeded()},this._onError=t=>{if(this._map){if(1===t.code){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let t=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=t,this._geolocateButton.setAttribute("aria-label",t),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===t.code&&nQ)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new n2("error",t)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._onMoveStart=t=>{if(!this._map)return;let i=t?.[0]instanceof ResizeObserverEntry;t.geolocateSource||"ACTIVE_LOCK"!==this._watchState||i||this._map.isZooming()||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new n1("trackuserlocationend")),this.fire(new n1("userlocationlostfocus")))},this._setupUI=()=>{this._map&&(this._container.addEventListener("contextmenu",t=>{t.preventDefault()}),this._geolocateButton=M.create("button","maplibregl-ctrl-geolocate",this._container),M.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",this._geolocateButton.disabled=!0)},this._finishSetupUI=t=>{if(this._map){if(!1===t){(0,T.Nr)("Geolocation support is not available so the GeolocateControl will be disabled.");let t=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=t,this._geolocateButton.setAttribute("aria-label",t)}else{let t=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.disabled=!1,this._geolocateButton.title=t,this._geolocateButton.setAttribute("aria-label",t)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","fal
1180se"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=M.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new nY({element:this._dotElement}),this._circleElement=M.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new nY({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onUpdate),this._map.on("move",this._onUpdate),this._map.on("rotate",this._onUpdate),this._map.on("pitch",this._onUpdate)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",this._onMoveStart)}},this.options=(0,T.er)({},nK,t)}onAdd(t){return this._map=t,this._container=M.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),n$().then(t=>this._finishSetupUI(t)),this._container}onRemove(){void 0!==this._geolocationWatchID&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("movestart",this._onMoveStart),this._map.off("zoom",this._onUpdate),this._map.off("move",this._onUpdate),this._map.off("rotate",this._onUpdate),this._map.off("pitch",this._onUpdate),this._map=void 0,nJ=0,nQ=!1}_isOutOfMapMaxBounds(t){let i=this._map.getMaxBounds(),r=t.coords;return i&&(r.longitude<i.getWest()||r.longitude>i.getEast()||r.latitude<i.getSouth()||r.latitude>i.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":case"BACKGROUND_ERROR":case"OFF":case void 0:break;default:throw Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadiusIfNeeded(){let t=this._userLocationDotMarker.getLngLat();if(!this.options.showUserLocation||!this.options.showAccuracyCircle||!this._accuracy||!t)return;let i=this._map.project(t),r=this._map.unproject([i.x+100,i.y]),a=t.distanceTo(r)/100,n=2*this._accuracy/a;this._circleElement.style.width=`${n.toFixed(2)}px`,this._circleElement.style.height=`${n.toFixed(2)}px`}trigger(){if(!this._setup)return(0,T.Nr)("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new n1("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":nJ--,nQ=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new n1("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new n1("trackuserlocationstart")),this.fire(new n1("userlocationfocus"));break;default:throw Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw Error(`Unexpected watchState ${this._watchState}`)}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){let t;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++nJ>1?(t={maximumAge:6e5,timeout:0},nQ=!0):(t=this.options.positionOptions,nQ=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,t)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","fal
1180se"),this.options.showUserLocation&&this._updateMarker(null)}};T._n,T.vn;let n5={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",subpixelPositioning:!1,locationOccludedOpacity:void 0,padding:void 0};var n4=class extends T._n{},n6=class extends T.vn{constructor(t){super(),this._updateOpacity=()=>{void 0!==this.options.locationOccludedOpacity&&(this._map._camera.transform.isLocationOccluded(this.getLngLat())?this._container.style.opacity=`${this.options.locationOccludedOpacity}`:this._container.style.opacity="")},this.remove=()=>(this._content&&this._content.remove(),this._container&&(this._container.remove(),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("terrain",this._update),this._map.off("projectiontransition",this._update),this._map.off("mousemove",this._update),this._map.off("mouseup",this._update),this._map.off("drag",this._update),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map,this.fire(new n4("close"))),this),this._update=t=>{let i,r=this._lngLat||this._trackPointer;if(!this._map||!r||!this._content)return;if(!this._container){if(this._container=M.create("div","maplibregl-popup",this._map.getContainer()),this._tip=M.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let t of this.options.className.split(" "))this._container.classList.add(t);this._closeButton&&this._closeButton.setAttribute("aria-label",this._map._getUIString("Popup.Close")),this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._lngLat=nV(this._lngLat,this._flatPos,this._map._camera.transform,this._trackPointer),t&&"point"in t&&t.point&&(i=t.point),this._trackPointer&&!i)return;let a=this._flatPos=this._pos=this._trackPointer&&i?i:this._map.project(this._lngLat);this._map.terrain&&(this._flatPos=this._trackPointer&&i?i:this._map._camera.transform.locationToScreenPoint(this._lngLat));let n=this.options.anchor,o=function t(i){if(!i)return t(new T.Li(0,0));if("number"==typeof i){let t=Math.round(Math.abs(i)/Math.SQRT2);return{center:new T.Li(0,0),top:new T.Li(0,i),"top-left":new T.Li(t,t),"top-right":new T.Li(-t,t),bottom:new T.Li(0,-i),"bottom-left":new T.Li(t,-t),"bottom-right":new T.Li(-t,-t),left:new T.Li(i,0),right:new T.Li(-i,0)}}if(i instanceof T.Li||Array.isArray(i)){let t=T.Li.convert(i);return{center:t,top:t,"top-left":t,"top-right":t,bottom:t,"bottom-left":t,"bottom-right":t,left:t,right:t}}return{center:T.Li.convert(i.center||[0,0]),top:T.Li.convert(i.top||[0,0]),"top-left":T.Li.convert(i["top-left"]||[0,0]),"top-right":T.Li.convert(i["top-right"]||[0,0]),bottom:T.Li.convert(i.bottom||[0,0]),"bottom-left":T.Li.convert(i["bottom-left"]||[0,0]),"bottom-right":T.Li.convert(i["bottom-right"]||[0,0]),left:T.Li.convert(i.left||[0,0]),right:T.Li.convert(i.right||[0,0])}}(this.options.offset);if(!n){var s;let t=this._container.offsetWidth,i=this._container.offsetHeight,r=(s=this.options.padding)?{top:s.top??0,right:s.right??0,bottom:s.bottom??0,left:s.left??0}:{top:0,right:0,bottom:0,left:0},l;l=a.y+o.bottom.y<i+r.top?["top"]:a.y>this._map._camera.transform.height-i-r.bottom?["bottom"]:[],a.x<t/2+r.left?l.push("left"):a.x>this._map._camera.transform.width-t/2-r.right&&l.push("right"),n=0===l.length?"bottom":l.join("-")}let l=a.add(o[n]);this.options.subpixelPositioning||(l=l.round()),this._container.style.transform=`${nU[n]} translate(${l.x}px,${l.y}px)`,nG(this._container,n,"popup"),this._updateOpacity()},this._onClose=()=>{this.remove()},this.options=(0,T.er)(Object.create(n5),t)}addTo(t){return this._map&&this.remove(),this._map=t,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._map.on("terrain",this._update),this._map.on("projectiontransition",this._update),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._update),this._map.on("mouseup",this._update),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new n4("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(t){return this._lngLat=T.lt.convert(t),this._pos=null,this._flatPos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._update),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._flatPos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._update),this._map.on("drag",this._update),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(t){return this.setDOMContent(document.createTextNode(t))}setHTML(t){let i=document.createDocumentFragment(),r=document.createElement("body"),a;for(r.innerHTML=t;a=r.firstChild;)i.appendChild(a);return this.setDOMContent(i)}getMaxWidth(){return this._container?.style.maxWidth}setMaxWidth(t){return this.options.maxWidth=t,this._update(),this}setDOMContent(t){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=M.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(t),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(t){return this._container&&this._container.classList.add(t),this}removeClassName(t){return this._container&&this._container.classList.remove(t),this}setOffset(t){return this.options.offset=t,this._update(),this}toggleClassName(t){if(this._container)return this._container.classList.toggle(t)}setSubpixelPositioning(t){this.options.subpixelPositioning=t}setPadding(t){this.options.padding=t,this._update()}_createCloseButton(){this.options.closeButton&&(this._closeButton=M.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.innerHTML="&#215;",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;
1180let t=this._container.querySelector("a[href], [tabindex]:not([tabindex='-1']), [contenteditable]:not([contenteditable='false']), button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled])");t&&t.focus()}};function n8(t,i){return eK().setRTLTextPlugin(t,i)}function n7(t){T.An.WORKER_URL=t}r.d(i,{GeolocateControl:()=>n3,LngLatBounds:()=>eE,Map:()=>nO,Marker:()=>nY,NavigationControl:()=>nj,Popup:()=>n6,setRTLTextPlugin:()=>n8,setWorkerUrl:()=>n7})},25058(t,i,r){let a,n;var o=r(88394),s=Object.defineProperty,l=Math.pow,c=(t,i)=>s(t,"name",{value:i,configurable:!0}),u=(t,i,r)=>new Promise((a,n)=>{var o=t=>{try{l(r.next(t))}catch(t){n(t)}},s=t=>{try{l(r.throw(t))}catch(t){n(t)}},l=t=>t.done?a(t.value):Promise.resolve(t.value).then(o,s);l((r=r.apply(t,i)).next())});c((t,i)=>{let r=!1,a="";return new(L.GridLayer.extend({createTile:c((i,n)=>{let o=document.createElement("img"),s=new AbortController,l=s.signal;return o.cancel=()=>{s.abort()},r||(t.getHeader().then(t=>{1===t.tileType||6===t.tileType?console.error("Error: archive contains vector tiles, but leafletRasterLayer is for displaying raster tiles. See https://github.com/protomaps/PMTiles/tree/main/js for details."):2===t.tileType?a="image/png":3===t.tileType?a="image/jpeg":4===t.tileType?a="image/webp":5===t.tileType&&(a="image/avif")}),r=!0),t.getZxy(i.z,i.x,i.y,l).then(t=>{if(t){let i=new Blob([t.data],{type:a});o.src=window.URL.createObjectURL(i)}else o.style.display="none";o.cancel=void 0,n(void 0,o)}).catch(t=>{if("AbortError"!==t.name)throw t}),o},"createTile"),_removeTile:c(function(t){let i=this._tiles[t];i&&(i.el.cancel&&i.el.cancel(),i.el.src&&window.URL.revokeObjectURL(i.el.src),i.el.width=0,i.el.height=0,i.el.deleted=!0,L.DomUtil.remove(i.el),delete this._tiles[t],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)}))},"_removeTile")}))(i)},"leafletRasterLayer");var h=c(t=>(i,r)=>{if(r instanceof AbortController)return t(i,r);let a=new AbortController;return t(i,a).then(t=>r(void 0,t.data,t.cacheControl||"",t.expires||""),t=>r(t)).catch(t=>r(t)),{cancel:c(()=>a.abort(),"cancel")}},"v3compat"),d=class{constructor(t){this.tilev4=c((t,i)=>u(this,null,function*(){if("json"===t.type){let r=t.url.substr(10),a=this.tiles.get(r);if(a||(a=new F(r),this.tiles.set(r,a)),this.metadata){let r=yield a.getTileJson(t.url);return i.signal.throwIfAborted(),{data:r}}let n=yield a.getHeader();return i.signal.throwIfAborted(),(n.minLon>=n.maxLon||n.minLat>=n.maxLat)&&console.error(`Bounds of PMTiles archive ${n.minLon},${n.minLat},${n.maxLon},${n.maxLat} are not valid.`),{data:{tiles:[`${t.url}/{z}/{x}/{y}`],minzoom:n.minZoom,maxzoom:n.maxZoom,bounds:[n.minLon,n.minLat,n.maxLon,n.maxLat]}}}let r=new RegExp(/pmtiles:\/\/(.+)\/(\d+)\/(\d+)\/(\d+)/),a=t.url.match(r);if(!a)throw Error("Invalid PMTiles protocol URL");let n=a[1],o=this.tiles.get(n);o||(o=new F(n),this.tiles.set(n,o));let s=a[2],l=a[3],c=a[4],u=yield null==o?void 0:o.getZxy(+s,+l,+c,i.signal);if(i.signal.throwIfAborted(),u)return{data:new Uint8Array(u.data),cacheControl:u.cacheControl,expires:u.expires};let h=yield o.getHeader();if(1===h.tileType||6===h.tileType){if(this.errorOnMissingTile)throw Error("Tile not found.");return{data:new Uint8Array}}return{data:null}}),"tilev4"),this.tile=h(this.tilev4),this.tiles=new Map,this.metadata=(null==t?void 0:t.metadata)||!1,this.errorOnMissingTile=(null==t?void 0:t.errorOnMissingTile)||!1}add(t){this.tiles.set(t.source.getKey(),t)}get(t){return this.tiles.get(t)}};function f(t,i){return(i>>>0)*0x100000000+(t>>>0)}function p(t,i){let r=i.buf,a=r[i.pos++],n=(112&a)>>4;if(a<128||(n|=(127&(a=r[i.pos++]))<<3,a<128)||(n|=(127&(a=r[i.pos++]))<<10,a<128)||(n|=(127&(a=r[i.pos++]))<<17,a<128)||(n|=(127&(a=r[i.pos++]))<<24,a<128)||(n|=(1&(a=r[i.pos++]))<<31,a<128))return f(t,n);throw Error("Expected varint not more than 10 bytes")}function m(t){let i=t.buf,r=i[t.pos++],a=127&r;return r<128||(a|=(127&(r=i[t.pos++]))<<7,r<128)||(a|=(127&(r=i[t.pos++]))<<14,r<128)||(a|=(127&(r=i[t.pos++]))<<21,r<128)?a:p(a|=(15&(r=i[t.pos]))<<28,t)}function g(t,i,r,a,n){return 0===n?0!==a?[t-1-r,t-1-i]:[r,i]:[i,r]}function y(t,i,r){if(t>26)throw Error("Tile zoom level exceeds max safe number limit (26)");if(i>=1<<t||r>=1<<t)throw Error("tile x/y outside zoom level bounds");let a=((1<<t)*(1<<t)-1)/3,n=t-1,[o,s]=[i,r];for(let t=1<<n;t>0;t>>=1){let i=o&t,r=s&t;a+=(3*i^r)*(1<<n),[o,s]=g(t,o,s,i,r),n--}return a}function _(t){let i=3*t+1;return i<0x100000000?31-Math.clz32(i):63-Math.clz32(i/0x100000000)}c(d,"Protocol"),c(f,"toNum"),c(p,"readVarintRemainder"),c(m,"readVarint"),c(g,"rotate"),c(y,"zxyToTileId"),c(_,"tileIdToZ"),c(function(t){let i=_(t)>>1;if(i>26)throw Error("Tile zoom level exceeds max safe number limit (26)");let r=t-((1<<i)*(1<<i)-1)/3,a=0,n=0,o=1<<i;for(let t=1;t<o;t<<=1){let i=t&r/2,o=t&(r^i);[a,n]=g(t,a,n,i,o),r/=2,a+=i,n+=o}return[i,a,n]},"tileIdToZxy");var v=((a=v||{})[a.Unknown=0]="Unknown",a[a.None=1]="None",a[a.Gzip=2]="Gzip",a[a.Brotli=3]="Brotli",a[a.Zstd=4]="Zstd",a);function b(t,i){return u(this,null,function*(){if(1===i||0===i)return t;if(2===i){if(void 0===globalThis.DecompressionStream)return(0,o.Rq)(new Uint8Array(t));let i=new Response(t).body;if(!i)throw Error("Failed to read response stream");return new Response(i.pipeThrough(new globalThis.DecompressionStream("gzip"))).arrayBuffer()}throw Error("Compression method not supported")})}c(b,"defaultDecompress");var x=((n=x||{})[n.Unknown=0]="Unknown",n[n.Mvt=1]="Mvt",n[n.Png=2]="Png",n[n.Jpeg=3]="Jpeg",n[n.Webp=4]="Webp",n[n.Avif=5]="Avif",n[n.Mlt=6]="Mlt",n
1180);function w(t){return 1===t?".mvt":2===t?".png":3===t?".jpg":4===t?".webp":5===t?".avif":6===t?".mlt":""}function k(t,i){let r=0,a=t.length-1;for(;r<=a;){let n=a+r>>1,o=i-t[n].tileId;if(o>0)r=n+1;else{if(!(o<0))return t[n];a=n-1}}return a>=0&&(0===t[a].runLength||i-t[a].tileId<t[a].runLength)?t[a]:null}c(w,"tileTypeExt"),c(k,"findTile"),c(class{constructor(t){this.file=t}getKey(){return this.file.name}getBytes(t,i){return u(this,null,function*(){return{data:yield this.file.slice(t,t+i).arrayBuffer()}})}},"FileSource");var T=class{constructor(t,i=new Headers,r){var a,n;this.url=t,this.customHeaders=i,this.credentials=r,this.mustReload=!1;let o="";"navigator"in globalThis&&(o=null!=(n=null==(a=globalThis.navigator)?void 0:a.userAgent)?n:"");let s=o.indexOf("Windows")>-1,l=/Chrome|Chromium|Edg|OPR|Brave/.test(o);this.chromeWindowsNoCache=!1,s&&l&&(this.chromeWindowsNoCache=!0)}getKey(){return this.url}setHeaders(t){this.customHeaders=t}getBytes(t,i,r,a){return u(this,null,function*(){let n,o,s;o=r||(n=new AbortController).signal;let l=new Headers(this.customHeaders);l.set("range",`bytes=${t}-${t+i-1}`),this.mustReload?s="reload":this.chromeWindowsNoCache&&(s="no-store");let c=yield fetch(this.url,{signal:o,cache:s,headers:l,credentials:this.credentials});if(0===t&&416===c.status){let t=c.headers.get("Content-Range");if(!t||!t.startsWith("bytes */"))throw Error("Missing content-length on 416 response");let i=+t.substr(8);l.set("range",`bytes=0-${i-1}`),c=yield fetch(this.url,{signal:o,cache:"reload",headers:l,credentials:this.credentials})}let u=c.headers.get("Etag");if(null!=u&&u.startsWith("W/")&&(u=null),416===c.status||a&&u&&u!==a)throw this.mustReload=!0,new M(`Server returned non-matching ETag ${a} after one retry. Check browser extensions and servers for issues that may affect correct ETag headers.`);if(c.status>=300)throw Error(`Bad response code: ${c.status}`);let h=c.headers.get("Content-Length");if(200===c.status&&(!h||+h>i))throw n&&n.abort(),Error("Server returned no content-length header or content-length exceeding request. Check that your storage backend supports HTTP Byte Serving.");return{data:yield c.arrayBuffer(),etag:u||void 0,cacheControl:c.headers.get("Cache-Control")||void 0,expires:c.headers.get("Expires")||void 0}})}};function S(t,i){let r=t.getUint32(i+4,!0),a=t.getUint32(i+0,!0);return r*l(2,32)+a}function A(t,i){let r=new DataView(t),a=r.getUint8(7);if(a>3)throw Error(`Archive is spec version ${a} but this library supports up to spec version 3`);return{specVersion:a,rootDirectoryOffset:S(r,8),rootDirectoryLength:S(r,16),jsonMetadataOffset:S(r,24),jsonMetadataLength:S(r,32),leafDirectoryOffset:S(r,40),leafDirectoryLength:S(r,48),tileDataOffset:S(r,56),tileDataLength:S(r,64),numAddressedTiles:S(r,72),numTileEntries:S(r,80),numTileContents:S(r,88),clustered:1===r.getUint8(96),internalCompression:r.getUint8(97),tileCompression:r.getUint8(98),tileType:r.getUint8(99),minZoom:r.getUint8(100),maxZoom:r.getUint8(101),minLon:r.getInt32(102,!0)/1e7,minLat:r.getInt32(106,!0)/1e7,maxLon:r.getInt32(110,!0)/1e7,maxLat:r.getInt32(114,!0)/1e7,centerZoom:r.getUint8(118),centerLon:r.getInt32(119,!0)/1e7,centerLat:r.getInt32(123,!0)/1e7,etag:i}}function C(t){let i={buf:new Uint8Array(t),pos:0},r=m(i),a=[],n=0;for(let t=0;t<r;t++){let t=m(i);a.push({tileId:n+t,offset:0,length:0,runLength:1}),n+=t}for(let t=0;t<r;t++)a[t].runLength=m(i);for(let t=0;t<r;t++)a[t].length=m(i);for(let t=0;t<r;t++){let r=m(i);0===r&&t>0?a[t].offset=a[t-1].offset+a[t-1].length:a[t].offset=r-1}return a}c(T,"FetchSource"),c(S,"getUint64"),c(A,"bytesToHeader"),c(C,"deserializeIndex");var E=class extends Error{};c(E,"EtagMismatch");var M=E;function P(t,i){return u(this,null,function*(){let r=yield t.getBytes(0,16384);if(19792!==new DataView(r.data).getUint16(0,!0))throw Error("Wrong magic number for PMTiles archive");let a=A(r.data.slice(0,127),r.etag),n=r.data.slice(a.rootDirectoryOffset,a.rootDirectoryOffset+a.rootDirectoryLength),o=`${t.getKey()}|${a.etag||""}|${a.rootDirectoryOffset}|${a.rootDirectoryLength}`,s=C((yield i(n,a.internalCompression)));return[a,[o,s.length,s]]})}function D(t,i,r,a,n,o){return u(this,null,function*(){let s=yield t.getBytes(r,a,o,n.etag),l=C((yield i(s.data,n.internalCompression)));
vendor: 4,568 bytes, line 1180
1180if(0===l.length)throw Error("Empty directory is invalid");return l})}c(P,"getHeaderAndRoot"),c(D,"getDirectory"),c(class{constructor(t=100,i=!0,r=b){this.cache=new Map,this.maxCacheEntries=t,this.counter=1,this.decompress=r}getHeader(t){return u(this,null,function*(){let i=t.getKey(),r=this.cache.get(i);if(r)return r.lastUsed=this.counter++,r.data;let a=yield P(t,this.decompress);return a[1]&&this.cache.set(a[1][0],{lastUsed:this.counter++,data:a[1][2]}),this.cache.set(i,{lastUsed:this.counter++,data:a[0]}),this.prune(),a[0]})}getDirectory(t,i,r,a,n){return u(this,null,function*(){let o=`${t.getKey()}|${a.etag||""}|${i}|${r}`,s=this.cache.get(o);if(s)return s.lastUsed=this.counter++,s.data;let l=yield D(t,this.decompress,i,r,a,n);return this.cache.set(o,{lastUsed:this.counter++,data:l}),this.prune(),l})}prune(){if(this.cache.size>this.maxCacheEntries){let t=1/0,i;this.cache.forEach((r,a)=>{r.lastUsed<t&&(t=r.lastUsed,i=a)}),i&&this.cache.delete(i)}}invalidate(t){return u(this,null,function*(){this.cache.delete(t.getKey())})}},"ResolvedValueCache");var I=class{constructor(t=100,i=!0,r=b){this.cache=new Map,this.invalidations=new Map,this.pendingFetches=new Map,this.maxCacheEntries=t,this.counter=1,this.decompress=r}getHeader(t){return u(this,null,function*(){let i=t.getKey(),r=this.cache.get(i);if(r)return r.lastUsed=this.counter++,yield r.data;let a=new Promise((i,r)=>{P(t,this.decompress).then(t=>{t[1]&&this.cache.set(t[1][0],{lastUsed:this.counter++,data:Promise.resolve(t[1][2])}),i(t[0]),this.prune()}).catch(t=>{r(t)})});return this.cache.set(i,{lastUsed:this.counter++,data:a}),a})}trackSignal(t,i,r){i.refs++,r.addEventListener("abort",()=>{--i.refs<=0&&this.pendingFetches.get(t)===i&&(i.controller.abort(),this.cache.delete(t),this.pendingFetches.delete(t))},{once:!0})}getDirectory(t,i,r,a,n){return u(this,null,function*(){let o=`${t.getKey()}|${a.etag||""}|${i}|${r}`,s=this.cache.get(o);if(s){s.lastUsed=this.counter++;let t=this.pendingFetches.get(o);return t&&this.trackSignal(o,t,null!=n?n:new AbortController().signal),yield s.data}let l=new AbortController,c={controller:l,refs:0};this.trackSignal(o,c,null!=n?n:new AbortController().signal),this.pendingFetches.set(o,c);let u=new Promise((n,s)=>{D(t,this.decompress,i,r,a,l.signal).then(t=>{this.pendingFetches.delete(o),n(t),this.prune()}).catch(t=>{s(t)})});return this.cache.set(o,{lastUsed:this.counter++,data:u}),u})}prune(){if(this.cache.size>=this.maxCacheEntries){let t=1/0,i;this.cache.forEach((r,a)=>{r.lastUsed<t&&(t=r.lastUsed,i=a)}),i&&this.cache.delete(i)}}invalidate(t){return u(this,null,function*(){let i=t.getKey();if(this.invalidations.get(i))return yield this.invalidations.get(i);this.cache.delete(t.getKey());let r=new Promise((r,a)=>{this.getHeader(t).then(t=>{r(),this.invalidations.delete(i)}).catch(t=>{a(t)})});this.invalidations.set(i,r)})}};c(I,"SharedPromiseCache");var z=class{constructor(t,i,r){"string"==typeof t?this.source=new T(t):this.source=t,r?this.decompress=r:this.decompress=b,i?this.cache=i:this.cache=new I}getHeader(){return u(this,null,function*(){return yield this.cache.getHeader(this.source)})}getZxyAttempt(t,i,r,a){return u(this,null,function*(){let n=y(t,i,r),o=yield this.cache.getHeader(this.source);if(null==a||a.throwIfAborted(),t<o.minZoom||t>o.maxZoom)return;let s=o.rootDirectoryOffset,l=o.rootDirectoryLength;for(let t=0;t<=3;t++){let t=yield this.cache.getDirectory(this.source,s,l,o,a);null==a||a.throwIfAborted();let i=k(t,n);if(!i)return;if(i.runLength>0){let t=yield this.source.getBytes(o.tileDataOffset+i.offset,i.length,a,o.etag);return{data:yield this.decompress(t.data,o.tileCompression),cacheControl:t.cacheControl,expires:t.expires}}s=o.leafDirectoryOffset+i.offset,l=i.length}throw Error("Maximum directory depth exceeded")})}getZxy(t,i,r,a){return u(this,null,function*(){try{return yield this.getZxyAttempt(t,i,r,a)}catch(n){if(n instanceof M)return this.cache.invalidate(this.source),yield this.getZxyAttempt(t,i,r,a);throw n}})}getMetadataAttempt(){return u(this,null,function*(){let t=yield this.cache.getHeader(this.source),i=yield this.source.getBytes(t.jsonMetadataOffset,t.jsonMetadataLength,void 0,t.etag),r=yield this.decompress(i.data,t.internalCompression);return JSON.parse(new TextDecoder("utf-8").decode(r))})}getMetadata(){return u(this,null,function*(){try{return yield this.getMetadataAttempt()}catch(t){if(t instanceof M)return this.cache.invalidate(this.source),yield this.getMetadataAttempt();throw t}})}getTileJson(t){return u(this,null,function*(){let i=yield this.getHeader(),r
1180=yield this.getMetadata(),a=w(i.tileType);return{tilejson:"3.0.0",scheme:"xyz",tiles:[`${t}/{z}/{x}/{y}${a}`],vector_layers:r.vector_layers,attribution:r.attribution,description:r.description,name:r.name,version:r.version,bounds:[i.minLon,i.minLat,i.maxLon,i.maxLat],center:[i.centerLon,i.centerLat,i.centerZoom],minzoom:i.minZoom,maxzoom:i.maxZoom}})}};c(z,"PMTiles");var F=z;r.d(i,{Zs:()=>d})}};
1181//# sourceMappingURL=623.63bb6de03f.js.map

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