- Reverts the schneespur/ subdirectory restructure (b8e426b)
- Restores package.json and vite.config.js (needed for npm build, were
removed in an earlier cleanup before the restructure)
- Updates public/build/ assets with current Vite output (new content hashes)
20 lines
265 KiB
JavaScript
20 lines
265 KiB
JavaScript
function nu(e,i){return function(){return e.apply(i,arguments)}}const{toString:_h}=Object.prototype,{getPrototypeOf:di}=Object,{iterator:_i,toStringTag:iu}=Symbol,pi=(e=>i=>{const r=_h.call(i);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),zt=e=>(e=e.toLowerCase(),i=>pi(i)===e),mi=e=>i=>typeof i===e,{isArray:Ve}=Array,je=mi("undefined");function Tn(e){return e!==null&&!je(e)&&e.constructor!==null&&!je(e.constructor)&&Lt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ru=zt("ArrayBuffer");function ph(e){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(e):i=e&&e.buffer&&ru(e.buffer),i}const mh=mi("string"),Lt=mi("function"),ou=mi("number"),Sn=e=>e!==null&&typeof e=="object",gh=e=>e===!0||e===!1,ri=e=>{if(pi(e)!=="object")return!1;const i=di(e);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(iu in e)&&!(_i in e)},vh=e=>{if(!Sn(e)||Tn(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},yh=zt("Date"),wh=zt("File"),bh=e=>!!(e&&typeof e.uri<"u"),xh=e=>e&&typeof e.getParts<"u",Eh=zt("Blob"),Ph=zt("FileList"),Th=e=>Sn(e)&&Lt(e.pipe);function Sh(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Js=Sh(),Gs=typeof Js.FormData<"u"?Js.FormData:void 0,Lh=e=>{if(!e)return!1;if(Gs&&e instanceof Gs)return!0;const i=di(e);if(!i||i===Object.prototype||!Lt(e.append))return!1;const r=pi(e);return r==="formdata"||r==="object"&&Lt(e.toString)&&e.toString()==="[object FormData]"},Ch=zt("URLSearchParams"),[Ah,Oh,Mh,Rh]=["ReadableStream","Request","Response","Headers"].map(zt),Bh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ln(e,i,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let s,a;if(typeof e!="object"&&(e=[e]),Ve(e))for(s=0,a=e.length;s<a;s++)i.call(null,e[s],s,e);else{if(Tn(e))return;const l=r?Object.getOwnPropertyNames(e):Object.keys(e),c=l.length;let f;for(s=0;s<c;s++)f=l[s],i.call(null,e[f],f,e)}}function su(e,i){if(Tn(e))return null;i=i.toLowerCase();const r=Object.keys(e);let s=r.length,a;for(;s-- >0;)if(a=r[s],i===a.toLowerCase())return a;return null}const me=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,au=e=>!je(e)&&e!==me;function zr(...e){const{caseless:i,skipUndefined:r}=au(this)&&this||{},s={},a=(l,c)=>{if(c==="__proto__"||c==="constructor"||c==="prototype")return;const f=i&&su(s,c)||c,d=Dr(s,f)?s[f]:void 0;ri(d)&&ri(l)?s[f]=zr(d,l):ri(l)?s[f]=zr({},l):Ve(l)?s[f]=l.slice():(!r||!je(l))&&(s[f]=l)};for(let l=0,c=e.length;l<c;l++)e[l]&&Ln(e[l],a);return s}const Ih=(e,i,r,{allOwnKeys:s}={})=>(Ln(i,(a,l)=>{r&&Lt(a)?Object.defineProperty(e,l,{__proto__:null,value:nu(a,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,l,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:s}),e),Nh=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),kh=(e,i,r,s)=>{e.prototype=Object.create(i.prototype,s),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:i.prototype}),r&&Object.assign(e.prototype,r)},zh=(e,i,r,s)=>{let a,l,c;const f={};if(i=i||{},e==null)return i;do{for(a=Object.getOwnPropertyNames(e),l=a.length;l-- >0;)c=a[l],(!s||s(c,e,i))&&!f[c]&&(i[c]=e[c],f[c]=!0);e=r!==!1&&di(e)}while(e&&(!r||r(e,i))&&e!==Object.prototype);return i},Dh=(e,i,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=i.length;const s=e.indexOf(i,r);return s!==-1&&s===r},Fh=e=>{if(!e)return null;if(Ve(e))return e;let i=e.length;if(!ou(i))return null;const r=new Array(i);for(;i-- >0;)r[i]=e[i];return r},Zh=(e=>i=>e&&i instanceof e)(typeof Uint8Array<"u"&&di(Uint8Array)),Uh=(e,i)=>{const s=(e&&e[_i]).call(e);let a;for(;(a=s.next())&&!a.done;){const l=a.value;i.call(e,l[0],l[1])}},Hh=(e,i)=>{let r;const s=[];for(;(r=e.exec(i))!==null;)s.push(r);return s},qh=zt("HTMLFormElement"),jh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,s,a){return s.toUpperCase()+a}),Dr=(({hasOwnProperty:e})=>(i,r)=>e.call(i,r))(Object.prototype),Wh=zt("RegExp"),uu=(e,i)=>{const r=Object.getOwnPropertyDescriptors(e),s={};Ln(r,(a,l)=>{let c;(c=i(a,l,e))!==!1&&(s[l]=c||a)}),Object.defineProperties(e,s)},Vh=e=>{uu(e,(i,r)=>{if(Lt(e)&&["arguments","caller","callee"].includes(r))return!1;const s=e[r];if(Lt(s)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},$h=(e,i)=>{const r={},s=a=>{a.forEach(l=>{r[l]=!0})};return Ve(e)?s(e):s(String(e).split(i)),r},Kh=()=>{},Jh=(e,i)=>e!=null&&Number.isFinite(e=+e)?e:i;function Gh(e){return!!(e&&Lt(e.append)&&e[iu]==="FormData"&&e[_i])}const Yh=e=>{const i=new WeakSet,r=s=>{if(Sn(s)){if(i.has(s))return;if(Tn(s))return s;if(!("toJSON"in s)){i.add(s);const a=Ve(s)?[]:{};return Ln(s,(l,c)=>{const f=r(l);!je(f)&&(a[c]=f)}),i.delete(s),a}}return s};return r(e)},Xh=zt("AsyncFunction"),Qh=e=>e&&(Sn(e)||Lt(e))&&Lt(e.then)&&Lt(e.catch),lu=((e,i)=>e?setImmediate:i?((r,s)=>(me.addEventListener("message",({source:a,data:l})=>{a===me&&l===r&&s.length&&s.shift()()},!1),a=>{s.push(a),me.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Lt(me.postMessage)),tf=typeof queueMicrotask<"u"?queueMicrotask.bind(me):typeof process<"u"&&process.nextTick||lu,ef=e=>e!=null&&Lt(e[_i]),y={isArray:Ve,isArrayBuffer:ru,isBuffer:Tn,isFormData:Lh,isArrayBufferView:ph,isString:mh,isNumber:ou,isBoolean:gh,isObject:Sn,isPlainObject:ri,isEmptyObject:vh,isReadableStream:Ah,isRequest:Oh,isResponse:Mh,isHeaders:Rh,isUndefined:je,isDate:yh,isFile:wh,isReactNativeBlob:bh,isReactNative:xh,isBlob:Eh,isRegExp:Wh,isFunction:Lt,isStream:Th,isURLSearchParams:Ch,isTypedArray:Zh,isFileList:Ph,forEach:Ln,merge:zr,extend:Ih,trim:Bh,stripBOM:Nh,inherits:kh,toFlatObject:zh,kindOf:pi,kindOfTest:zt,endsWith:Dh,toArray:Fh,forEachEntry:Uh,matchAll:Hh,isHTMLForm:qh,hasOwnProperty:Dr,hasOwnProp:Dr,reduceDescriptors:uu,freezeMethods:Vh,toObjectSet:$h,toCamelCase:jh,noop:Kh,toFiniteNumber:Jh,findKey:su,global:me,isContextDefined:au,isSpecCompliantForm:Gh,toJSONObject:Yh,isAsyncFn:Xh,isThenable:Qh,setImmediate:lu,asap:tf,isIterable:ef},nf=y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),rf=e=>{const i={};let r,s,a;return e&&e.split(`
|
|
`).forEach(function(c){a=c.indexOf(":"),r=c.substring(0,a).trim().toLowerCase(),s=c.substring(a+1).trim(),!(!r||i[r]&&nf[r])&&(r==="set-cookie"?i[r]?i[r].push(s):i[r]=[s]:i[r]=i[r]?i[r]+", "+s:s)}),i};function of(e){let i=0,r=e.length;for(;i<r;){const s=e.charCodeAt(i);if(s!==9&&s!==32)break;i+=1}for(;r>i;){const s=e.charCodeAt(r-1);if(s!==9&&s!==32)break;r-=1}return i===0&&r===e.length?e:e.slice(i,r)}const sf=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),af=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function lo(e,i){return y.isArray(e)?e.map(r=>lo(r,i)):of(String(e).replace(i,""))}const uf=e=>lo(e,sf),lf=e=>lo(e,af);function cu(e){const i=Object.create(null);return y.forEach(e.toJSON(),(r,s)=>{i[s]=lf(r)}),i}const Ys=Symbol("internals");function dn(e){return e&&String(e).trim().toLowerCase()}function oi(e){return e===!1||e==null?e:y.isArray(e)?e.map(oi):uf(String(e))}function cf(e){const i=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=r.exec(e);)i[s[1]]=s[2];return i}const hf=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function rr(e,i,r,s,a){if(y.isFunction(s))return s.call(this,i,r);if(a&&(i=r),!!y.isString(i)){if(y.isString(s))return i.indexOf(s)!==-1;if(y.isRegExp(s))return s.test(i)}}function ff(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(i,r,s)=>r.toUpperCase()+s)}function df(e,i){const r=y.toCamelCase(" "+i);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+r,{__proto__:null,value:function(a,l,c){return this[s].call(this,i,a,l,c)},configurable:!0})})}let Et=class{constructor(i){i&&this.set(i)}set(i,r,s){const a=this;function l(f,d,p){const m=dn(d);if(!m)throw new Error("header name must be a non-empty string");const b=y.findKey(a,m);(!b||a[b]===void 0||p===!0||p===void 0&&a[b]!==!1)&&(a[b||d]=oi(f))}const c=(f,d)=>y.forEach(f,(p,m)=>l(p,m,d));if(y.isPlainObject(i)||i instanceof this.constructor)c(i,r);else if(y.isString(i)&&(i=i.trim())&&!hf(i))c(rf(i),r);else if(y.isObject(i)&&y.isIterable(i)){let f={},d,p;for(const m of i){if(!y.isArray(m))throw TypeError("Object iterator must return a key-value pair");f[p=m[0]]=(d=f[p])?y.isArray(d)?[...d,m[1]]:[d,m[1]]:m[1]}c(f,r)}else i!=null&&l(r,i,s);return this}get(i,r){if(i=dn(i),i){const s=y.findKey(this,i);if(s){const a=this[s];if(!r)return a;if(r===!0)return cf(a);if(y.isFunction(r))return r.call(this,a,s);if(y.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(i,r){if(i=dn(i),i){const s=y.findKey(this,i);return!!(s&&this[s]!==void 0&&(!r||rr(this,this[s],s,r)))}return!1}delete(i,r){const s=this;let a=!1;function l(c){if(c=dn(c),c){const f=y.findKey(s,c);f&&(!r||rr(s,s[f],f,r))&&(delete s[f],a=!0)}}return y.isArray(i)?i.forEach(l):l(i),a}clear(i){const r=Object.keys(this);let s=r.length,a=!1;for(;s--;){const l=r[s];(!i||rr(this,this[l],l,i,!0))&&(delete this[l],a=!0)}return a}normalize(i){const r=this,s={};return y.forEach(this,(a,l)=>{const c=y.findKey(s,l);if(c){r[c]=oi(a),delete r[l];return}const f=i?ff(l):String(l).trim();f!==l&&delete r[l],r[f]=oi(a),s[f]=!0}),this}concat(...i){return this.constructor.concat(this,...i)}toJSON(i){const r=Object.create(null);return y.forEach(this,(s,a)=>{s!=null&&s!==!1&&(r[a]=i&&y.isArray(s)?s.join(", "):s)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([i,r])=>i+": "+r).join(`
|
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...r){const s=new this(i);return r.forEach(a=>s.set(a)),s}static accessor(i){const s=(this[Ys]=this[Ys]={accessors:{}}).accessors,a=this.prototype;function l(c){const f=dn(c);s[f]||(df(a,c),s[f]=!0)}return y.isArray(i)?i.forEach(l):l(i),this}};Et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);y.reduceDescriptors(Et.prototype,({value:e},i)=>{let r=i[0].toUpperCase()+i.slice(1);return{get:()=>e,set(s){this[r]=s}}});y.freezeMethods(Et);const _f="[REDACTED ****]";function pf(e){if(y.hasOwnProp(e,"toJSON"))return!0;let i=Object.getPrototypeOf(e);for(;i&&i!==Object.prototype;){if(y.hasOwnProp(i,"toJSON"))return!0;i=Object.getPrototypeOf(i)}return!1}function mf(e,i){const r=new Set(i.map(l=>String(l).toLowerCase())),s=[],a=l=>{if(l===null||typeof l!="object"||y.isBuffer(l))return l;if(s.indexOf(l)!==-1)return;l instanceof Et&&(l=l.toJSON()),s.push(l);let c;if(y.isArray(l))c=[],l.forEach((f,d)=>{const p=a(f);y.isUndefined(p)||(c[d]=p)});else{if(!y.isPlainObject(l)&&pf(l))return s.pop(),l;c=Object.create(null);for(const[f,d]of Object.entries(l)){const p=r.has(f.toLowerCase())?_f:a(d);y.isUndefined(p)||(c[f]=p)}}return s.pop(),c};return a(e)}let D=class hu extends Error{static from(i,r,s,a,l,c){const f=new hu(i.message,r||i.code,s,a,l);return f.cause=i,f.name=i.name,i.status!=null&&f.status==null&&(f.status=i.status),c&&Object.assign(f,c),f}constructor(i,r,s,a,l){super(i),Object.defineProperty(this,"message",{__proto__:null,value:i,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),s&&(this.config=s),a&&(this.request=a),l&&(this.response=l,this.status=l.status)}toJSON(){const i=this.config,r=i&&y.hasOwnProp(i,"redact")?i.redact:void 0,s=y.isArray(r)&&r.length>0?mf(i,r):y.toJSONObject(i);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:s,code:this.code,status:this.status}}};D.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";D.ERR_BAD_OPTION="ERR_BAD_OPTION";D.ECONNABORTED="ECONNABORTED";D.ETIMEDOUT="ETIMEDOUT";D.ECONNREFUSED="ECONNREFUSED";D.ERR_NETWORK="ERR_NETWORK";D.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";D.ERR_DEPRECATED="ERR_DEPRECATED";D.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";D.ERR_BAD_REQUEST="ERR_BAD_REQUEST";D.ERR_CANCELED="ERR_CANCELED";D.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";D.ERR_INVALID_URL="ERR_INVALID_URL";D.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const gf=null;function Fr(e){return y.isPlainObject(e)||y.isArray(e)}function fu(e){return y.endsWith(e,"[]")?e.slice(0,-2):e}function or(e,i,r){return e?e.concat(i).map(function(a,l){return a=fu(a),!r&&l?"["+a+"]":a}).join(r?".":""):i}function vf(e){return y.isArray(e)&&!e.some(Fr)}const yf=y.toFlatObject(y,{},null,function(i){return/^is[A-Z]/.test(i)});function gi(e,i,r){if(!y.isObject(e))throw new TypeError("target must be an object");i=i||new FormData,r=y.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,P){return!y.isUndefined(P[S])});const s=r.metaTokens,a=r.visitor||b,l=r.dots,c=r.indexes,f=r.Blob||typeof Blob<"u"&&Blob,d=r.maxDepth===void 0?100:r.maxDepth,p=f&&y.isSpecCompliantForm(i);if(!y.isFunction(a))throw new TypeError("visitor must be a function");function m(v){if(v===null)return"";if(y.isDate(v))return v.toISOString();if(y.isBoolean(v))return v.toString();if(!p&&y.isBlob(v))throw new D("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(v)||y.isTypedArray(v)?p&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function b(v,S,P){let R=v;if(y.isReactNative(i)&&y.isReactNativeBlob(v))return i.append(or(P,S,l),m(v)),!1;if(v&&!P&&typeof v=="object"){if(y.endsWith(S,"{}"))S=s?S:S.slice(0,-2),v=JSON.stringify(v);else if(y.isArray(v)&&vf(v)||(y.isFileList(v)||y.endsWith(S,"[]"))&&(R=y.toArray(v)))return S=fu(S),R.forEach(function(M,tt){!(y.isUndefined(M)||M===null)&&i.append(c===!0?or([S],tt,l):c===null?S:S+"[]",m(M))}),!1}return Fr(v)?!0:(i.append(or(P,S,l),m(v)),!1)}const T=[],E=Object.assign(yf,{defaultVisitor:b,convertValue:m,isVisitable:Fr});function A(v,S,P=0){if(!y.isUndefined(v)){if(P>d)throw new D("Object is too deeply nested ("+P+" levels). Max depth: "+d,D.ERR_FORM_DATA_DEPTH_EXCEEDED);if(T.indexOf(v)!==-1)throw Error("Circular reference detected in "+S.join("."));T.push(v),y.forEach(v,function(O,M){(!(y.isUndefined(O)||O===null)&&a.call(i,O,y.isString(M)?M.trim():M,S,E))===!0&&A(O,S?S.concat(M):[M],P+1)}),T.pop()}}if(!y.isObject(e))throw new TypeError("data must be an object");return A(e),i}function Xs(e){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(s){return i[s]})}function co(e,i){this._pairs=[],e&&gi(e,this,i)}const du=co.prototype;du.append=function(i,r){this._pairs.push([i,r])};du.toString=function(i){const r=i?function(s){return i.call(this,s,Xs)}:Xs;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function wf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function _u(e,i,r){if(!i)return e;const s=r&&r.encode||wf,a=y.isFunction(r)?{serialize:r}:r,l=a&&a.serialize;let c;if(l?c=l(i,a):c=y.isURLSearchParams(i)?i.toString():new co(i,a).toString(s),c){const f=e.indexOf("#");f!==-1&&(e=e.slice(0,f)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}class Qs{constructor(){this.handlers=[]}use(i,r,s){return this.handlers.push({fulfilled:i,rejected:r,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(i){this.handlers[i]&&(this.handlers[i]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(i){y.forEach(this.handlers,function(s){s!==null&&i(s)})}}const ho={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},bf=typeof URLSearchParams<"u"?URLSearchParams:co,xf=typeof FormData<"u"?FormData:null,Ef=typeof Blob<"u"?Blob:null,Pf={isBrowser:!0,classes:{URLSearchParams:bf,FormData:xf,Blob:Ef},protocols:["http","https","file","blob","url","data"]},fo=typeof window<"u"&&typeof document<"u",Zr=typeof navigator=="object"&&navigator||void 0,Tf=fo&&(!Zr||["ReactNative","NativeScript","NS"].indexOf(Zr.product)<0),Sf=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Lf=fo&&window.location.href||"http://localhost",Cf=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:fo,hasStandardBrowserEnv:Tf,hasStandardBrowserWebWorkerEnv:Sf,navigator:Zr,origin:Lf},Symbol.toStringTag,{value:"Module"})),bt={...Cf,...Pf};function Af(e,i){return gi(e,new bt.classes.URLSearchParams,{visitor:function(r,s,a,l){return bt.isNode&&y.isBuffer(r)?(this.append(s,r.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...i})}function Of(e){return y.matchAll(/\w+|\[(\w*)]/g,e).map(i=>i[0]==="[]"?"":i[1]||i[0])}function Mf(e){const i={},r=Object.keys(e);let s;const a=r.length;let l;for(s=0;s<a;s++)l=r[s],i[l]=e[l];return i}function pu(e){function i(r,s,a,l){let c=r[l++];if(c==="__proto__")return!0;const f=Number.isFinite(+c),d=l>=r.length;return c=!c&&y.isArray(a)?a.length:c,d?(y.hasOwnProp(a,c)?a[c]=y.isArray(a[c])?a[c].concat(s):[a[c],s]:a[c]=s,!f):((!y.hasOwnProp(a,c)||!y.isObject(a[c]))&&(a[c]=[]),i(r,s,a[c],l)&&y.isArray(a[c])&&(a[c]=Mf(a[c])),!f)}if(y.isFormData(e)&&y.isFunction(e.entries)){const r={};return y.forEachEntry(e,(s,a)=>{i(Of(s),a,r,0)}),r}return null}const Ze=(e,i)=>e!=null&&y.hasOwnProp(e,i)?e[i]:void 0;function Rf(e,i,r){if(y.isString(e))try{return(i||JSON.parse)(e),y.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(r||JSON.stringify)(e)}const Cn={transitional:ho,adapter:["xhr","http","fetch"],transformRequest:[function(i,r){const s=r.getContentType()||"",a=s.indexOf("application/json")>-1,l=y.isObject(i);if(l&&y.isHTMLForm(i)&&(i=new FormData(i)),y.isFormData(i))return a?JSON.stringify(pu(i)):i;if(y.isArrayBuffer(i)||y.isBuffer(i)||y.isStream(i)||y.isFile(i)||y.isBlob(i)||y.isReadableStream(i))return i;if(y.isArrayBufferView(i))return i.buffer;if(y.isURLSearchParams(i))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),i.toString();let f;if(l){const d=Ze(this,"formSerializer");if(s.indexOf("application/x-www-form-urlencoded")>-1)return Af(i,d).toString();if((f=y.isFileList(i))||s.indexOf("multipart/form-data")>-1){const p=Ze(this,"env"),m=p&&p.FormData;return gi(f?{"files[]":i}:i,m&&new m,d)}}return l||a?(r.setContentType("application/json",!1),Rf(i)):i}],transformResponse:[function(i){const r=Ze(this,"transitional")||Cn.transitional,s=r&&r.forcedJSONParsing,a=Ze(this,"responseType"),l=a==="json";if(y.isResponse(i)||y.isReadableStream(i))return i;if(i&&y.isString(i)&&(s&&!a||l)){const f=!(r&&r.silentJSONParsing)&&l;try{return JSON.parse(i,Ze(this,"parseReviver"))}catch(d){if(f)throw d.name==="SyntaxError"?D.from(d,D.ERR_BAD_RESPONSE,this,null,Ze(this,"response")):d}}return i}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bt.classes.FormData,Blob:bt.classes.Blob},validateStatus:function(i){return i>=200&&i<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch","query"],e=>{Cn.headers[e]={}});function sr(e,i){const r=this||Cn,s=i||r,a=Et.from(s.headers);let l=s.data;return y.forEach(e,function(f){l=f.call(r,l,a.normalize(),i?i.status:void 0)}),a.normalize(),l}function mu(e){return!!(e&&e.__CANCEL__)}let An=class extends D{constructor(i,r,s){super(i??"canceled",D.ERR_CANCELED,r,s),this.name="CanceledError",this.__CANCEL__=!0}};function gu(e,i,r){const s=r.config.validateStatus;!r.status||!s||s(r.status)?e(r):i(new D("Request failed with status code "+r.status,r.status>=400&&r.status<500?D.ERR_BAD_REQUEST:D.ERR_BAD_RESPONSE,r.config,r.request,r))}function Bf(e){const i=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return i&&i[1]||""}function If(e,i){e=e||10;const r=new Array(e),s=new Array(e);let a=0,l=0,c;return i=i!==void 0?i:1e3,function(d){const p=Date.now(),m=s[l];c||(c=p),r[a]=d,s[a]=p;let b=l,T=0;for(;b!==a;)T+=r[b++],b=b%e;if(a=(a+1)%e,a===l&&(l=(l+1)%e),p-c<i)return;const E=m&&p-m;return E?Math.round(T*1e3/E):void 0}}function Nf(e,i){let r=0,s=1e3/i,a,l;const c=(p,m=Date.now())=>{r=m,a=null,l&&(clearTimeout(l),l=null),e(...p)};return[(...p)=>{const m=Date.now(),b=m-r;b>=s?c(p,m):(a=p,l||(l=setTimeout(()=>{l=null,c(a)},s-b)))},()=>a&&c(a)]}const ui=(e,i,r=3)=>{let s=0;const a=If(50,250);return Nf(l=>{if(!l||typeof l.loaded!="number")return;const c=l.loaded,f=l.lengthComputable?l.total:void 0,d=f!=null?Math.min(c,f):c,p=Math.max(0,d-s),m=a(p);s=Math.max(s,d);const b={loaded:d,total:f,progress:f?d/f:void 0,bytes:p,rate:m||void 0,estimated:m&&f?(f-d)/m:void 0,event:l,lengthComputable:f!=null,[i?"download":"upload"]:!0};e(b)},r)},ta=(e,i)=>{const r=e!=null;return[s=>i[0]({lengthComputable:r,total:e,loaded:s}),i[1]]},ea=e=>(...i)=>y.asap(()=>e(...i)),kf=bt.hasStandardBrowserEnv?((e,i)=>r=>(r=new URL(r,bt.origin),e.protocol===r.protocol&&e.host===r.host&&(i||e.port===r.port)))(new URL(bt.origin),bt.navigator&&/(msie|trident)/i.test(bt.navigator.userAgent)):()=>!0,zf=bt.hasStandardBrowserEnv?{write(e,i,r,s,a,l,c){if(typeof document>"u")return;const f=[`${e}=${encodeURIComponent(i)}`];y.isNumber(r)&&f.push(`expires=${new Date(r).toUTCString()}`),y.isString(s)&&f.push(`path=${s}`),y.isString(a)&&f.push(`domain=${a}`),l===!0&&f.push("secure"),y.isString(c)&&f.push(`SameSite=${c}`),document.cookie=f.join("; ")},read(e){if(typeof document>"u")return null;const i=document.cookie.split(";");for(let r=0;r<i.length;r++){const s=i[r].replace(/^\s+/,""),a=s.indexOf("=");if(a!==-1&&s.slice(0,a)===e)return decodeURIComponent(s.slice(a+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Df(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ff(e,i){return i?e.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):e}function vu(e,i,r){let s=!Df(i);return e&&(s||r===!1)?Ff(e,i):i}const na=e=>e instanceof Et?{...e}:e;function Pe(e,i){i=i||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function s(p,m,b,T){return y.isPlainObject(p)&&y.isPlainObject(m)?y.merge.call({caseless:T},p,m):y.isPlainObject(m)?y.merge({},m):y.isArray(m)?m.slice():m}function a(p,m,b,T){if(y.isUndefined(m)){if(!y.isUndefined(p))return s(void 0,p,b,T)}else return s(p,m,b,T)}function l(p,m){if(!y.isUndefined(m))return s(void 0,m)}function c(p,m){if(y.isUndefined(m)){if(!y.isUndefined(p))return s(void 0,p)}else return s(void 0,m)}function f(p,m,b){if(y.hasOwnProp(i,b))return s(p,m);if(y.hasOwnProp(e,b))return s(void 0,p)}const d={url:l,method:l,data:l,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,allowedSocketPaths:c,responseEncoding:c,validateStatus:f,headers:(p,m,b)=>a(na(p),na(m),b,!0)};return y.forEach(Object.keys({...e,...i}),function(m){if(m==="__proto__"||m==="constructor"||m==="prototype")return;const b=y.hasOwnProp(d,m)?d[m]:a,T=y.hasOwnProp(e,m)?e[m]:void 0,E=y.hasOwnProp(i,m)?i[m]:void 0,A=b(T,E,m);y.isUndefined(A)&&b!==f||(r[m]=A)}),r}const Zf=["content-type","content-length"];function Uf(e,i,r){if(r!=="content-only"){e.set(i);return}Object.entries(i).forEach(([s,a])=>{Zf.includes(s.toLowerCase())&&e.set(s,a)})}const Hf=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(i,r)=>String.fromCharCode(parseInt(r,16))),yu=e=>{const i=Pe({},e),r=T=>y.hasOwnProp(i,T)?i[T]:void 0,s=r("data");let a=r("withXSRFToken");const l=r("xsrfHeaderName"),c=r("xsrfCookieName");let f=r("headers");const d=r("auth"),p=r("baseURL"),m=r("allowAbsoluteUrls"),b=r("url");if(i.headers=f=Et.from(f),i.url=_u(vu(p,b,m),e.params,e.paramsSerializer),d&&f.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?Hf(d.password):""))),y.isFormData(s)&&(bt.hasStandardBrowserEnv||bt.hasStandardBrowserWebWorkerEnv?f.setContentType(void 0):y.isFunction(s.getHeaders)&&Uf(f,s.getHeaders(),r("formDataHeaderPolicy"))),bt.hasStandardBrowserEnv&&(y.isFunction(a)&&(a=a(i)),a===!0||a==null&&kf(i.url))){const E=l&&c&&zf.read(c);E&&f.set(l,E)}return i},qf=typeof XMLHttpRequest<"u",jf=qf&&function(e){return new Promise(function(r,s){const a=yu(e);let l=a.data;const c=Et.from(a.headers).normalize();let{responseType:f,onUploadProgress:d,onDownloadProgress:p}=a,m,b,T,E,A;function v(){E&&E(),A&&A(),a.cancelToken&&a.cancelToken.unsubscribe(m),a.signal&&a.signal.removeEventListener("abort",m)}let S=new XMLHttpRequest;S.open(a.method.toUpperCase(),a.url,!0),S.timeout=a.timeout;function P(){if(!S)return;const O=Et.from("getAllResponseHeaders"in S&&S.getAllResponseHeaders()),tt={data:!f||f==="text"||f==="json"?S.responseText:S.response,status:S.status,statusText:S.statusText,headers:O,config:e,request:S};gu(function(U){r(U),v()},function(U){s(U),v()},tt),S=null}"onloadend"in S?S.onloadend=P:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.startsWith("file:"))||setTimeout(P)},S.onabort=function(){S&&(s(new D("Request aborted",D.ECONNABORTED,e,S)),v(),S=null)},S.onerror=function(M){const tt=M&&M.message?M.message:"Network Error",N=new D(tt,D.ERR_NETWORK,e,S);N.event=M||null,s(N),v(),S=null},S.ontimeout=function(){let M=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const tt=a.transitional||ho;a.timeoutErrorMessage&&(M=a.timeoutErrorMessage),s(new D(M,tt.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,e,S)),v(),S=null},l===void 0&&c.setContentType(null),"setRequestHeader"in S&&y.forEach(cu(c),function(M,tt){S.setRequestHeader(tt,M)}),y.isUndefined(a.withCredentials)||(S.withCredentials=!!a.withCredentials),f&&f!=="json"&&(S.responseType=a.responseType),p&&([T,A]=ui(p,!0),S.addEventListener("progress",T)),d&&S.upload&&([b,E]=ui(d),S.upload.addEventListener("progress",b),S.upload.addEventListener("loadend",E)),(a.cancelToken||a.signal)&&(m=O=>{S&&(s(!O||O.type?new An(null,e,S):O),S.abort(),v(),S=null)},a.cancelToken&&a.cancelToken.subscribe(m),a.signal&&(a.signal.aborted?m():a.signal.addEventListener("abort",m)));const R=Bf(a.url);if(R&&!bt.protocols.includes(R)){s(new D("Unsupported protocol "+R+":",D.ERR_BAD_REQUEST,e));return}S.send(l||null)})},Wf=(e,i)=>{if(e=e?e.filter(Boolean):[],!i&&!e.length)return;const r=new AbortController;let s=!1;const a=function(d){if(!s){s=!0,c();const p=d instanceof Error?d:this.reason;r.abort(p instanceof D?p:new An(p instanceof Error?p.message:p))}};let l=i&&setTimeout(()=>{l=null,a(new D(`timeout of ${i}ms exceeded`,D.ETIMEDOUT))},i);const c=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(a):d.removeEventListener("abort",a)}),e=null)};e.forEach(d=>d.addEventListener("abort",a));const{signal:f}=r;return f.unsubscribe=()=>y.asap(c),f},Vf=function*(e,i){let r=e.byteLength;if(r<i){yield e;return}let s=0,a;for(;s<r;)a=s+i,yield e.slice(s,a),s=a},$f=async function*(e,i){for await(const r of Kf(e))yield*Vf(r,i)},Kf=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const i=e.getReader();try{for(;;){const{done:r,value:s}=await i.read();if(r)break;yield s}}finally{await i.cancel()}},ia=(e,i,r,s)=>{const a=$f(e,i);let l=0,c,f=d=>{c||(c=!0,s&&s(d))};return new ReadableStream({async pull(d){try{const{done:p,value:m}=await a.next();if(p){f(),d.close();return}let b=m.byteLength;if(r){let T=l+=b;r(T)}d.enqueue(new Uint8Array(m))}catch(p){throw f(p),p}},cancel(d){return f(d),a.return()}},{highWaterMark:2})};function Jf(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const i=e.indexOf(",");if(i<0)return 0;const r=e.slice(5,i),s=e.slice(i+1);if(/;base64/i.test(r)){let c=s.length;const f=s.length;for(let E=0;E<f;E++)if(s.charCodeAt(E)===37&&E+2<f){const A=s.charCodeAt(E+1),v=s.charCodeAt(E+2);(A>=48&&A<=57||A>=65&&A<=70||A>=97&&A<=102)&&(v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102)&&(c-=2,E+=2)}let d=0,p=f-1;const m=E=>E>=2&&s.charCodeAt(E-2)===37&&s.charCodeAt(E-1)===51&&(s.charCodeAt(E)===68||s.charCodeAt(E)===100);p>=0&&(s.charCodeAt(p)===61?(d++,p--):m(p)&&(d++,p-=3)),d===1&&p>=0&&(s.charCodeAt(p)===61||m(p))&&d++;const T=Math.floor(c/4)*3-(d||0);return T>0?T:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(s,"utf8");let l=0;for(let c=0,f=s.length;c<f;c++){const d=s.charCodeAt(c);if(d<128)l+=1;else if(d<2048)l+=2;else if(d>=55296&&d<=56319&&c+1<f){const p=s.charCodeAt(c+1);p>=56320&&p<=57343?(l+=4,c++):l+=3}else l+=3}return l}const _o="1.16.1",ra=64*1024,{isFunction:Gn}=y,oa=(e,...i)=>{try{return!!e(...i)}catch{return!1}},Gf=e=>{const i=y.global!==void 0&&y.global!==null?y.global:globalThis,{ReadableStream:r,TextEncoder:s}=i;e=y.merge.call({skipUndefined:!0},{Request:i.Request,Response:i.Response},e);const{fetch:a,Request:l,Response:c}=e,f=a?Gn(a):typeof fetch=="function",d=Gn(l),p=Gn(c);if(!f)return!1;const m=f&&Gn(r),b=f&&(typeof s=="function"?(P=>R=>P.encode(R))(new s):async P=>new Uint8Array(await new l(P).arrayBuffer())),T=d&&m&&oa(()=>{let P=!1;const R=new l(bt.origin,{body:new r,method:"POST",get duplex(){return P=!0,"half"}}),O=R.headers.has("Content-Type");return R.body!=null&&R.body.cancel(),P&&!O}),E=p&&m&&oa(()=>y.isReadableStream(new c("").body)),A={stream:E&&(P=>P.body)};f&&["text","arrayBuffer","blob","formData","stream"].forEach(P=>{!A[P]&&(A[P]=(R,O)=>{let M=R&&R[P];if(M)return M.call(R);throw new D(`Response type '${P}' is not supported`,D.ERR_NOT_SUPPORT,O)})});const v=async P=>{if(P==null)return 0;if(y.isBlob(P))return P.size;if(y.isSpecCompliantForm(P))return(await new l(bt.origin,{method:"POST",body:P}).arrayBuffer()).byteLength;if(y.isArrayBufferView(P)||y.isArrayBuffer(P))return P.byteLength;if(y.isURLSearchParams(P)&&(P=P+""),y.isString(P))return(await b(P)).byteLength},S=async(P,R)=>{const O=y.toFiniteNumber(P.getContentLength());return O??v(R)};return async P=>{let{url:R,method:O,data:M,signal:tt,cancelToken:N,timeout:U,onDownloadProgress:j,onUploadProgress:z,responseType:H,headers:B,withCredentials:k="same-origin",fetchOptions:W,maxContentLength:F,maxBodyLength:Tt}=yu(P);const ut=y.isNumber(F)&&F>-1,Vt=y.isNumber(Tt)&&Tt>-1;let $=a||fetch;H=H?(H+"").toLowerCase():"text";let Ct=Wf([tt,N&&N.toAbortSignal()],U),Z=null;const et=Ct&&Ct.unsubscribe&&(()=>{Ct.unsubscribe()});let _t;try{if(ut&&typeof R=="string"&&R.startsWith("data:")&&Jf(R)>F)throw new D("maxContentLength size of "+F+" exceeded",D.ERR_BAD_RESPONSE,P,Z);if(Vt&&O!=="get"&&O!=="head"){const K=await S(B,M);if(typeof K=="number"&&isFinite(K)&&K>Tt)throw new D("Request body larger than maxBodyLength limit",D.ERR_BAD_REQUEST,P,Z)}if(z&&T&&O!=="get"&&O!=="head"&&(_t=await S(B,M))!==0){let K=new l(R,{method:"POST",body:M,duplex:"half"}),wt;if(y.isFormData(M)&&(wt=K.headers.get("content-type"))&&B.setContentType(wt),K.body){const[At,te]=ta(_t,ui(ea(z)));M=ia(K.body,ra,At,te)}}y.isString(k)||(k=k?"include":"omit");const nt=d&&"credentials"in l.prototype;if(y.isFormData(M)){const K=B.getContentType();K&&/^multipart\/form-data/i.test(K)&&!/boundary=/i.test(K)&&B.delete("content-type")}B.set("User-Agent","axios/"+_o,!1);const ot={...W,signal:Ct,method:O.toUpperCase(),headers:cu(B.normalize()),body:M,duplex:"half",credentials:nt?k:void 0};Z=d&&new l(R,ot);let J=await(d?$(Z,W):$(R,ot));if(ut){const K=y.toFiniteNumber(J.headers.get("content-length"));if(K!=null&&K>F)throw new D("maxContentLength size of "+F+" exceeded",D.ERR_BAD_RESPONSE,P,Z)}const Y=E&&(H==="stream"||H==="response");if(E&&J.body&&(j||ut||Y&&et)){const K={};["status","statusText","headers"].forEach(le=>{K[le]=J[le]});const wt=y.toFiniteNumber(J.headers.get("content-length")),[At,te]=j&&ta(wt,ui(ea(j),!0))||[];let ee=0;const Xe=le=>{if(ut&&(ee=le,ee>F))throw new D("maxContentLength size of "+F+" exceeded",D.ERR_BAD_RESPONSE,P,Z);At&&At(le)};J=new c(ia(J.body,ra,Xe,()=>{te&&te(),et&&et()}),K)}H=H||"text";let st=await A[y.findKey(A,H)||"text"](J,P);if(ut&&!E&&!Y){let K;if(st!=null&&(typeof st.byteLength=="number"?K=st.byteLength:typeof st.size=="number"?K=st.size:typeof st=="string"&&(K=typeof s=="function"?new s().encode(st).byteLength:st.length)),typeof K=="number"&&K>F)throw new D("maxContentLength size of "+F+" exceeded",D.ERR_BAD_RESPONSE,P,Z)}return!Y&&et&&et(),await new Promise((K,wt)=>{gu(K,wt,{data:st,headers:Et.from(J.headers),status:J.status,statusText:J.statusText,config:P,request:Z})})}catch(nt){if(et&&et(),Ct&&Ct.aborted&&Ct.reason instanceof D){const ot=Ct.reason;throw ot.config=P,Z&&(ot.request=Z),nt!==ot&&(ot.cause=nt),ot}throw nt&&nt.name==="TypeError"&&/Load failed|fetch/i.test(nt.message)?Object.assign(new D("Network Error",D.ERR_NETWORK,P,Z,nt&&nt.response),{cause:nt.cause||nt}):D.from(nt,nt&&nt.code,P,Z,nt&&nt.response)}}},Yf=new Map,wu=e=>{let i=e&&e.env||{};const{fetch:r,Request:s,Response:a}=i,l=[s,a,r];let c=l.length,f=c,d,p,m=Yf;for(;f--;)d=l[f],p=m.get(d),p===void 0&&m.set(d,p=f?new Map:Gf(i)),m=p;return p};wu();const po={http:gf,xhr:jf,fetch:{get:wu}};y.forEach(po,(e,i)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:i})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:i})}});const sa=e=>`- ${e}`,Xf=e=>y.isFunction(e)||e===null||e===!1;function Qf(e,i){e=y.isArray(e)?e:[e];const{length:r}=e;let s,a;const l={};for(let c=0;c<r;c++){s=e[c];let f;if(a=s,!Xf(s)&&(a=po[(f=String(s)).toLowerCase()],a===void 0))throw new D(`Unknown adapter '${f}'`);if(a&&(y.isFunction(a)||(a=a.get(i))))break;l[f||"#"+c]=a}if(!a){const c=Object.entries(l).map(([d,p])=>`adapter ${d} `+(p===!1?"is not supported by the environment":"is not available in the build"));let f=r?c.length>1?`since :
|
|
`+c.map(sa).join(`
|
|
`):" "+sa(c[0]):"as no adapter specified";throw new D("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return a}const bu={getAdapter:Qf,adapters:po};function ar(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new An(null,e)}function aa(e){return ar(e),e.headers=Et.from(e.headers),e.data=sr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),bu.getAdapter(e.adapter||Cn.adapter,e)(e).then(function(s){ar(e),e.response=s;try{s.data=sr.call(e,e.transformResponse,s)}finally{delete e.response}return s.headers=Et.from(s.headers),s},function(s){if(!mu(s)&&(ar(e),s&&s.response)){e.response=s.response;try{s.response.data=sr.call(e,e.transformResponse,s.response)}finally{delete e.response}s.response.headers=Et.from(s.response.headers)}return Promise.reject(s)})}const vi={};["object","boolean","number","function","string","symbol"].forEach((e,i)=>{vi[e]=function(s){return typeof s===e||"a"+(i<1?"n ":" ")+e}});const ua={};vi.transitional=function(i,r,s){function a(l,c){return"[Axios v"+_o+"] Transitional option '"+l+"'"+c+(s?". "+s:"")}return(l,c,f)=>{if(i===!1)throw new D(a(c," has been removed"+(r?" in "+r:"")),D.ERR_DEPRECATED);return r&&!ua[c]&&(ua[c]=!0,console.warn(a(c," has been deprecated since v"+r+" and will be removed in the near future"))),i?i(l,c,f):!0}};vi.spelling=function(i){return(r,s)=>(console.warn(`${s} is likely a misspelling of ${i}`),!0)};function td(e,i,r){if(typeof e!="object")throw new D("options must be an object",D.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let a=s.length;for(;a-- >0;){const l=s[a],c=Object.prototype.hasOwnProperty.call(i,l)?i[l]:void 0;if(c){const f=e[l],d=f===void 0||c(f,l,e);if(d!==!0)throw new D("option "+l+" must be "+d,D.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new D("Unknown option "+l,D.ERR_BAD_OPTION)}}const si={assertOptions:td,validators:vi},Bt=si.validators;let ve=class{constructor(i){this.defaults=i||{},this.interceptors={request:new Qs,response:new Qs}}async request(i,r){try{return await this._request(i,r)}catch(s){if(s instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const l=(()=>{if(!a.stack)return"";const c=a.stack.indexOf(`
|
|
`);return c===-1?"":a.stack.slice(c+1)})();try{if(!s.stack)s.stack=l;else if(l){const c=l.indexOf(`
|
|
`),f=c===-1?-1:l.indexOf(`
|
|
`,c+1),d=f===-1?"":l.slice(f+1);String(s.stack).endsWith(d)||(s.stack+=`
|
|
`+l)}}catch{}}throw s}}_request(i,r){typeof i=="string"?(r=r||{},r.url=i):r=i||{},r=Pe(this.defaults,r);const{transitional:s,paramsSerializer:a,headers:l}=r;s!==void 0&&si.assertOptions(s,{silentJSONParsing:Bt.transitional(Bt.boolean),forcedJSONParsing:Bt.transitional(Bt.boolean),clarifyTimeoutError:Bt.transitional(Bt.boolean),legacyInterceptorReqResOrdering:Bt.transitional(Bt.boolean)},!1),a!=null&&(y.isFunction(a)?r.paramsSerializer={serialize:a}:si.assertOptions(a,{encode:Bt.function,serialize:Bt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),si.assertOptions(r,{baseUrl:Bt.spelling("baseURL"),withXsrfToken:Bt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let c=l&&y.merge(l.common,l[r.method]);l&&y.forEach(["delete","get","head","post","put","patch","query","common"],A=>{delete l[A]}),r.headers=Et.concat(c,l);const f=[];let d=!0;this.interceptors.request.forEach(function(v){if(typeof v.runWhen=="function"&&v.runWhen(r)===!1)return;d=d&&v.synchronous;const S=r.transitional||ho;S&&S.legacyInterceptorReqResOrdering?f.unshift(v.fulfilled,v.rejected):f.push(v.fulfilled,v.rejected)});const p=[];this.interceptors.response.forEach(function(v){p.push(v.fulfilled,v.rejected)});let m,b=0,T;if(!d){const A=[aa.bind(this),void 0];for(A.unshift(...f),A.push(...p),T=A.length,m=Promise.resolve(r);b<T;)m=m.then(A[b++],A[b++]);return m}T=f.length;let E=r;for(;b<T;){const A=f[b++],v=f[b++];try{E=A(E)}catch(S){v.call(this,S);break}}try{m=aa.call(this,E)}catch(A){return Promise.reject(A)}for(b=0,T=p.length;b<T;)m=m.then(p[b++],p[b++]);return m}getUri(i){i=Pe(this.defaults,i);const r=vu(i.baseURL,i.url,i.allowAbsoluteUrls);return _u(r,i.params,i.paramsSerializer)}};y.forEach(["delete","get","head","options"],function(i){ve.prototype[i]=function(r,s){return this.request(Pe(s||{},{method:i,url:r,data:(s||{}).data}))}});y.forEach(["post","put","patch","query"],function(i){function r(s){return function(l,c,f){return this.request(Pe(f||{},{method:i,headers:s?{"Content-Type":"multipart/form-data"}:{},url:l,data:c}))}}ve.prototype[i]=r(),i!=="query"&&(ve.prototype[i+"Form"]=r(!0))});let ed=class xu{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(l){r=l});const s=this;this.promise.then(a=>{if(!s._listeners)return;let l=s._listeners.length;for(;l-- >0;)s._listeners[l](a);s._listeners=null}),this.promise.then=a=>{let l;const c=new Promise(f=>{s.subscribe(f),l=f}).then(a);return c.cancel=function(){s.unsubscribe(l)},c},i(function(l,c,f){s.reason||(s.reason=new An(l,c,f),r(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const r=this._listeners.indexOf(i);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const i=new AbortController,r=s=>{i.abort(s)};return this.subscribe(r),i.signal.unsubscribe=()=>this.unsubscribe(r),i.signal}static source(){let i;return{token:new xu(function(a){i=a}),cancel:i}}};function nd(e){return function(r){return e.apply(null,r)}}function id(e){return y.isObject(e)&&e.isAxiosError===!0}const Ur={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ur).forEach(([e,i])=>{Ur[i]=e});function Eu(e){const i=new ve(e),r=nu(ve.prototype.request,i);return y.extend(r,ve.prototype,i,{allOwnKeys:!0}),y.extend(r,i,null,{allOwnKeys:!0}),r.create=function(a){return Eu(Pe(e,a))},r}const dt=Eu(Cn);dt.Axios=ve;dt.CanceledError=An;dt.CancelToken=ed;dt.isCancel=mu;dt.VERSION=_o;dt.toFormData=gi;dt.AxiosError=D;dt.Cancel=dt.CanceledError;dt.all=function(i){return Promise.all(i)};dt.spread=nd;dt.isAxiosError=id;dt.mergeConfig=Pe;dt.AxiosHeaders=Et;dt.formToJSON=e=>pu(y.isHTMLForm(e)?new FormData(e):e);dt.getAdapter=bu.getAdapter;dt.HttpStatusCode=Ur;dt.default=dt;const{Axios:ym,AxiosError:wm,CanceledError:bm,isCancel:xm,CancelToken:Em,VERSION:Pm,all:Tm,Cancel:Sm,isAxiosError:Lm,spread:Cm,toFormData:Am,AxiosHeaders:Om,HttpStatusCode:Mm,formToJSON:Rm,getAdapter:Bm,mergeConfig:Im,create:Nm}=dt;window.axios=dt;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";var Hr=!1,qr=!1,ye=[],jr=-1,mo=!1;function rd(e){ad(e)}function od(){mo=!0}function sd(){mo=!1,Pu()}function ad(e){ye.includes(e)||ye.push(e),Pu()}function ud(e){let i=ye.indexOf(e);i!==-1&&i>jr&&ye.splice(i,1)}function Pu(){if(!qr&&!Hr){if(mo)return;Hr=!0,queueMicrotask(ld)}}function ld(){Hr=!1,qr=!0;for(let e=0;e<ye.length;e++)ye[e](),jr=e;ye.length=0,jr=-1,qr=!1}var $e,Ce,Ke,Tu,Wr=!0;function cd(e){Wr=!1,e(),Wr=!0}function hd(e){$e=e.reactive,Ke=e.release,Ce=i=>e.effect(i,{scheduler:r=>{Wr?rd(r):r()}}),Tu=e.raw}function la(e){Ce=e}function fd(e){let i=()=>{};return[s=>{let a=Ce(s);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(l=>l())}),e._x_effects.add(a),i=()=>{a!==void 0&&(e._x_effects.delete(a),Ke(a))},a},()=>{i()}]}function Su(e,i){let r=!0,s,a,l=Ce(()=>{let c=e(),f=JSON.stringify(c);if(!r&&(typeof c=="object"||c!==s)){let d=typeof s=="object"?JSON.parse(a):s;queueMicrotask(()=>{i(c,d)})}s=c,a=f,r=!1});return()=>Ke(l)}async function dd(e){od();try{await e(),await Promise.resolve()}finally{sd()}}var Lu=[],Cu=[],Au=[];function _d(e){Au.push(e)}function go(e,i){typeof i=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(i)):(i=e,Cu.push(i))}function Ou(e){Lu.push(e)}function Mu(e,i,r){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[i]||(e._x_attributeCleanups[i]=[]),e._x_attributeCleanups[i].push(r)}function Ru(e,i){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([r,s])=>{(i===void 0||i.includes(r))&&(s.forEach(a=>a()),delete e._x_attributeCleanups[r])})}function pd(e){for(e._x_effects?.forEach(ud);e._x_cleanups?.length;)e._x_cleanups.pop()()}var vo=new MutationObserver(xo),yo=!1;function wo(){vo.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),yo=!0}function Bu(){md(),vo.disconnect(),yo=!1}var _n=[];function md(){let e=vo.takeRecords();_n.push(()=>e.length>0&&xo(e));let i=_n.length;queueMicrotask(()=>{if(_n.length===i)for(;_n.length>0;)_n.shift()()})}function ft(e){if(!yo)return e();Bu();let i=e();return wo(),i}var bo=!1,li=[];function gd(){bo=!0}function vd(){bo=!1,xo(li),li=[]}function xo(e){if(bo){li=li.concat(e);return}let i=[],r=new Set,s=new Map,a=new Map;for(let l=0;l<e.length;l++)if(!e[l].target._x_ignoreMutationObserver&&(e[l].type==="childList"&&(e[l].removedNodes.forEach(c=>{c.nodeType===1&&c._x_marker&&r.add(c)}),e[l].addedNodes.forEach(c=>{if(c.nodeType===1){if(r.has(c)){r.delete(c);return}c._x_marker||i.push(c)}})),e[l].type==="attributes")){let c=e[l].target,f=e[l].attributeName,d=e[l].oldValue,p=()=>{s.has(c)||s.set(c,[]),s.get(c).push({name:f,value:c.getAttribute(f)})},m=()=>{a.has(c)||a.set(c,[]),a.get(c).push(f)};c.hasAttribute(f)&&d===null?p():c.hasAttribute(f)?(m(),p()):m()}a.forEach((l,c)=>{Ru(c,l)}),s.forEach((l,c)=>{Lu.forEach(f=>f(c,l))});for(let l of r)i.some(c=>c.contains(l))||Cu.forEach(c=>c(l));for(let l of i)l.isConnected&&Au.forEach(c=>c(l));i=null,r=null,s=null,a=null}function Iu(e){return Se(Te(e))}function On(e,i,r){return e._x_dataStack=[i,...Te(r||e)],()=>{e._x_dataStack=e._x_dataStack.filter(s=>s!==i)}}function Te(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?Te(e.host):e.parentNode?Te(e.parentNode):[]}function Se(e){return new Proxy({objects:e},yd)}function Nu(e,i){return e===null||e===Object.prototype?null:Object.prototype.hasOwnProperty.call(e,i)?e:Nu(Object.getPrototypeOf(e),i)}var yd={ownKeys({objects:e}){return Array.from(new Set(e.flatMap(i=>Object.keys(i))))},has({objects:e},i){return i==Symbol.unscopables?!1:e.some(r=>Object.prototype.hasOwnProperty.call(r,i)||Reflect.has(r,i))},get({objects:e},i,r){return i=="toJSON"?wd:Reflect.get(e.find(s=>Reflect.has(s,i))||{},i,r)},set({objects:e},i,r,s){let a;for(const c of e)if(a=Nu(c,i),a)break;a||(a=e[e.length-1]);const l=Object.getOwnPropertyDescriptor(a,i);return l?.set&&l?.get?l.set.call(s,r)||!0:Reflect.set(a,i,r)}};function wd(){return Reflect.ownKeys(this).reduce((i,r)=>(i[r]=Reflect.get(this,r),i),{})}function Eo(e){let i=s=>typeof s=="object"&&!Array.isArray(s)&&s!==null,r=(s,a="")=>{Object.entries(Object.getOwnPropertyDescriptors(s)).forEach(([l,{value:c,enumerable:f}])=>{if(f===!1||c===void 0||typeof c=="object"&&c!==null&&c.__v_skip)return;let d=a===""?l:`${a}.${l}`;typeof c=="object"&&c!==null&&c._x_interceptor?s[l]=c.initialize(e,d,l):i(c)&&c!==s&&!(c instanceof Element)&&r(c,d)})};return r(e)}function ku(e,i=()=>{}){let r={initialValue:void 0,_x_interceptor:!0,initialize(s,a,l){return e(this.initialValue,()=>bd(s,a),c=>Vr(s,a,c),a,l)}};return i(r),s=>{if(typeof s=="object"&&s!==null&&s._x_interceptor){let a=r.initialize.bind(r);r.initialize=(l,c,f)=>{let d=s.initialize(l,c,f);return r.initialValue=d,a(l,c,f)}}else r.initialValue=s;return r}}function bd(e,i){return i.split(".").reduce((r,s)=>r[s],e)}function Vr(e,i,r){if(typeof i=="string"&&(i=i.split(".")),i.length===1)e[i[0]]=r;else{if(i.length===0)throw error;return e[i[0]]||(e[i[0]]={}),Vr(e[i[0]],i.slice(1),r)}}var zu={};function Dt(e,i){zu[e]=i}function xn(e,i){let r=xd(i);return Object.entries(zu).forEach(([s,a])=>{Object.defineProperty(e,`$${s}`,{get(){return a(i,r)},enumerable:!1})}),e}function xd(e){let[i,r]=ju(e),s={interceptor:ku,...i};return go(e,r),s}function Ed(e,i,r,...s){try{return r(...s)}catch(a){En(a,e,i)}}function En(...e){return Du(...e)}var Du=Td;function Pd(e){Du=e}function Td(e,i,r=void 0){e=Object.assign(e??{message:"No error message given."},{el:i,expression:r}),console.warn(`Alpine Expression Error: ${e.message}
|
|
|
|
${r?'Expression: "'+r+`"
|
|
|
|
`:""}`,i),setTimeout(()=>{throw e},0)}var qe=!0;function Fu(e){let i=qe;qe=!1;let r=e();return qe=i,r}function we(e,i,r={}){let s;return Pt(e,i)(a=>s=a,r),s}function Pt(...e){return Zu(...e)}var Zu=()=>{};function Sd(e){Zu=e}var Uu;function Ld(e){Uu=e}function Cd(e,i){let r={};xn(r,e);let s=[r,...Te(e)],a=typeof i=="function"?Ad(s,i):Md(s,i,e);return Ed.bind(null,e,i,a)}function Ad(e,i){return(r=()=>{},{scope:s={},params:a=[],context:l}={})=>{if(!qe){Pn(r,i,Se([s,...e]),a);return}let c=i.apply(Se([s,...e]),a);Pn(r,c)}}var ur={};function Od(e,i){if(ur[e])return ur[e];let r=Object.getPrototypeOf(async function(){}).constructor,s=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,l=(()=>{try{let c=new r(["__self","scope"],`with (scope) { __self.result = ${s} }; __self.finished = true; return __self.result;`);return Object.defineProperty(c,"name",{value:`[Alpine] ${e}`}),c}catch(c){return En(c,i,e),Promise.resolve()}})();return ur[e]=l,l}function Md(e,i,r){let s=Od(i,r);return(a=()=>{},{scope:l={},params:c=[],context:f}={})=>{s.result=void 0,s.finished=!1;let d=Se([l,...e]);if(typeof s=="function"){let p=s.call(f,s,d).catch(m=>En(m,r,i));s.finished?(Pn(a,s.result,d,c,r),s.result=void 0):p.then(m=>{Pn(a,m,d,c,r)}).catch(m=>En(m,r,i)).finally(()=>s.result=void 0)}}}function Pn(e,i,r,s,a){if(qe&&typeof i=="function"){let l=i.apply(r,s);l instanceof Promise?l.then(c=>Pn(e,c,r,s)).catch(c=>En(c,a,i)):e(l)}else typeof i=="object"&&i instanceof Promise?i.then(l=>e(l)):e(i)}function Rd(...e){return Uu(...e)}function Bd(e,i,r={}){let s={};xn(s,e);let a=[s,...Te(e)],l=Se([r.scope??{},...a]),c=r.params??[];if(i.includes("await")){let f=Object.getPrototypeOf(async function(){}).constructor,d=/^[\n\s]*if.*\(.*\)/.test(i.trim())||/^(let|const)\s/.test(i.trim())?`(async()=>{ ${i} })()`:i;return new f(["scope"],`with (scope) { let __result = ${d}; return __result }`).call(r.context,l)}else{let f=/^[\n\s]*if.*\(.*\)/.test(i.trim())||/^(let|const)\s/.test(i.trim())?`(()=>{ ${i} })()`:i,p=new Function(["scope"],`with (scope) { let __result = ${f}; return __result }`).call(r.context,l);return typeof p=="function"&&qe?p.apply(l,c):p}}var Po="x-";function Je(e=""){return Po+e}function Id(e){Po=e}var ci={};function gt(e,i){return ci[e]=i,{before(r){if(!ci[r]){console.warn(String.raw`Cannot find directive \`${r}\`. \`${e}\` will use the default order of execution`);return}const s=ge.indexOf(r);ge.splice(s>=0?s:ge.indexOf("DEFAULT"),0,e)}}}function Nd(e){return Object.keys(ci).includes(e)}function To(e,i,r){if(i=Array.from(i),e._x_virtualDirectives){let l=Object.entries(e._x_virtualDirectives).map(([f,d])=>({name:f,value:d})),c=Hu(l);l=l.map(f=>c.find(d=>d.name===f.name)?{name:`x-bind:${f.name}`,value:`"${f.value}"`}:f),i=i.concat(l)}let s={};return i.map($u((l,c)=>s[l]=c)).filter(Ju).map(Dd(s,r)).sort(Fd).map(l=>zd(e,l))}function Hu(e){return Array.from(e).map($u()).filter(i=>!Ju(i))}var $r=!1,vn=new Map,qu=Symbol();function kd(e){$r=!0;let i=Symbol();qu=i,vn.set(i,[]);let r=()=>{for(;vn.get(i).length;)vn.get(i).shift()();vn.delete(i)},s=()=>{$r=!1,r()};e(r),s()}function ju(e){let i=[],r=f=>i.push(f),[s,a]=fd(e);return i.push(a),[{Alpine:Ye,effect:s,cleanup:r,evaluateLater:Pt.bind(Pt,e),evaluate:we.bind(we,e)},()=>i.forEach(f=>f())]}function zd(e,i){let r=()=>{},s=ci[i.type]||r,[a,l]=ju(e);Mu(e,i.original,l);let c=()=>{e._x_ignore||e._x_ignoreSelf||(s.inline&&s.inline(e,i,a),s=s.bind(s,e,i,a),$r?vn.get(qu).push(s):s())};return c.runCleanups=l,c}var Wu=(e,i)=>({name:r,value:s})=>(r.startsWith(e)&&(r=r.replace(e,i)),{name:r,value:s}),Vu=e=>e;function $u(e=()=>{}){return({name:i,value:r})=>{let{name:s,value:a}=Ku.reduce((l,c)=>c(l),{name:i,value:r});return s!==i&&e(s,i),{name:s,value:a}}}var Ku=[];function So(e){Ku.push(e)}function Ju({name:e}){return Gu().test(e)}var Gu=()=>new RegExp(`^${Po}([^:^.]+)\\b`);function Dd(e,i){return({name:r,value:s})=>{r===s&&(s="");let a=r.match(Gu()),l=r.match(/:([a-zA-Z0-9\-_:]+)/),c=r.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],f=i||e[r]||r;return{type:a?a[1]:null,value:l?l[1]:null,modifiers:c.map(d=>d.replace(".","")),expression:s,original:f}}}var Kr="DEFAULT",ge=["ignore","ref","id","data","anchor","bind","init","for","model","modelable","transition","show","if",Kr,"teleport"];function Fd(e,i){let r=ge.indexOf(e.type)===-1?Kr:e.type,s=ge.indexOf(i.type)===-1?Kr:i.type;return ge.indexOf(r)-ge.indexOf(s)}function wn(e,i,r={},s={}){return e.dispatchEvent(new CustomEvent(i,{detail:r,bubbles:!0,composed:!0,cancelable:!0,...s}))}function Le(e,i){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(a=>Le(a,i));return}let r=!1;if(i(e,()=>r=!0),r)return;let s=e.firstElementChild;for(;s;)Le(s,i),s=s.nextElementSibling}function Wt(e,...i){console.warn(`Alpine Warning: ${e}`,...i)}var ca=!1;function Zd(){ca&&Wt("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),ca=!0,document.body||Wt("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),wn(document,"alpine:init"),wn(document,"alpine:initializing"),wo(),_d(i=>Qt(i,Le)),go(i=>Ge(i)),Ou((i,r)=>{To(i,r).forEach(s=>s())});let e=i=>!yi(i.parentElement,!0);Array.from(document.querySelectorAll(Qu().join(","))).filter(e).forEach(i=>{Qt(i)}),wn(document,"alpine:initialized"),setTimeout(()=>{jd()})}var Lo=[],Yu=[];function Xu(){return Lo.map(e=>e())}function Qu(){return Lo.concat(Yu).map(e=>e())}function tl(e){Lo.push(e)}function el(e){Yu.push(e)}function yi(e,i=!1){return Xt(e,r=>{if((i?Qu():Xu()).some(a=>r.matches(a)))return!0})}function Xt(e,i){if(e){if(i(e))return e;if(e._x_teleportBack)return Xt(e._x_teleportBack,i);if(e.parentNode instanceof ShadowRoot)return Xt(e.parentNode.host,i);if(e.parentElement)return Xt(e.parentElement,i)}}function Ud(e){return Xu().some(i=>e.matches(i))}var nl=[];function Hd(e){nl.push(e)}var qd=1;function Qt(e,i=Le,r=()=>{}){Xt(e,s=>s._x_ignore)||kd(()=>{i(e,(s,a)=>{s._x_marker||(r(s,a),nl.forEach(l=>l(s,a)),To(s,s.attributes).forEach(l=>l()),s._x_ignore||(s._x_marker=qd++),s._x_ignore&&a())})})}function Ge(e,i=Le){i(e,r=>{pd(r),Ru(r),delete r._x_marker})}function jd(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([i,r,s])=>{Nd(r)||s.some(a=>{if(document.querySelector(a))return Wt(`found "${a}", but missing ${i} plugin`),!0})})}var Jr=[],Co=!1;function Ao(e=()=>{}){return queueMicrotask(()=>{Co||setTimeout(()=>{Gr()})}),new Promise(i=>{Jr.push(()=>{e(),i()})})}function Gr(){for(Co=!1;Jr.length;)Jr.shift()()}function Wd(){Co=!0}function Oo(e,i){return Array.isArray(i)?ha(e,i.join(" ")):typeof i=="object"&&i!==null?Vd(e,i):typeof i=="function"?Oo(e,i()):ha(e,i)}function Yr(e){return e.split(/\s/).filter(Boolean)}function ha(e,i){let r=a=>Yr(a).filter(l=>!e.classList.contains(l)).filter(Boolean),s=a=>(e.classList.add(...a),()=>{e.classList.remove(...a)});return i=i===!0?i="":i||"",s(r(i))}function Vd(e,i){let r=Object.entries(i).flatMap(([c,f])=>f?Yr(c):!1).filter(Boolean),s=Object.entries(i).flatMap(([c,f])=>f?!1:Yr(c)).filter(Boolean),a=[],l=[];return s.forEach(c=>{e.classList.contains(c)&&(e.classList.remove(c),l.push(c))}),r.forEach(c=>{e.classList.contains(c)||(e.classList.add(c),a.push(c))}),()=>{l.forEach(c=>e.classList.add(c)),a.forEach(c=>e.classList.remove(c))}}function wi(e,i){return typeof i=="object"&&i!==null?$d(e,i):Kd(e,i)}function $d(e,i){let r={};return Object.entries(i).forEach(([s,a])=>{r[s]=e.style[s],s.startsWith("--")||(s=Jd(s)),e.style.setProperty(s,a)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{wi(e,r)}}function Kd(e,i){let r=e.getAttribute("style",i);return e.setAttribute("style",i),()=>{e.setAttribute("style",r||"")}}function Jd(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Xr(e,i=()=>{}){let r=!1;return function(){r?i.apply(this,arguments):(r=!0,e.apply(this,arguments))}}gt("transition",(e,{value:i,modifiers:r,expression:s},{evaluate:a})=>{typeof s=="function"&&(s=a(s)),s!==!1&&(!s||typeof s=="boolean"?Yd(e,r,i):Gd(e,s,i))});function Gd(e,i,r){il(e,Oo,""),{enter:a=>{e._x_transition.enter.during=a},"enter-start":a=>{e._x_transition.enter.start=a},"enter-end":a=>{e._x_transition.enter.end=a},leave:a=>{e._x_transition.leave.during=a},"leave-start":a=>{e._x_transition.leave.start=a},"leave-end":a=>{e._x_transition.leave.end=a}}[r](i)}function Yd(e,i,r){il(e,wi);let s=!i.includes("in")&&!i.includes("out")&&!r,a=s||i.includes("in")||["enter"].includes(r),l=s||i.includes("out")||["leave"].includes(r);i.includes("in")&&!s&&(i=i.filter((P,R)=>R<i.indexOf("out"))),i.includes("out")&&!s&&(i=i.filter((P,R)=>R>i.indexOf("out")));let c=!i.includes("opacity")&&!i.includes("scale"),f=c||i.includes("opacity"),d=c||i.includes("scale"),p=f?0:1,m=d?pn(i,"scale",95)/100:1,b=pn(i,"delay",0)/1e3,T=pn(i,"origin","center"),E="opacity, transform",A=pn(i,"duration",150)/1e3,v=pn(i,"duration",75)/1e3,S="cubic-bezier(0.4, 0.0, 0.2, 1)";a&&(e._x_transition.enter.during={transformOrigin:T,transitionDelay:`${b}s`,transitionProperty:E,transitionDuration:`${A}s`,transitionTimingFunction:S},e._x_transition.enter.start={opacity:p,transform:`scale(${m})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),l&&(e._x_transition.leave.during={transformOrigin:T,transitionDelay:`${b}s`,transitionProperty:E,transitionDuration:`${v}s`,transitionTimingFunction:S},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:p,transform:`scale(${m})`})}function il(e,i,r={}){e._x_transition||(e._x_transition={enter:{during:r,start:r,end:r},leave:{during:r,start:r,end:r},in(s=()=>{},a=()=>{}){Qr(e,i,{during:this.enter.during,start:this.enter.start,end:this.enter.end},s,a)},out(s=()=>{},a=()=>{}){Qr(e,i,{during:this.leave.during,start:this.leave.start,end:this.leave.end},s,a)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,i,r,s){const a=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let l=()=>a(r);if(i){e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(r):l():e._x_transition?e._x_transition.in(r):l();return}e._x_hidePromise=e._x_transition?new Promise((c,f)=>{e._x_transition.out(()=>{},()=>c(s)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>f({isFromCancelledTransition:!0}))}):Promise.resolve(s),queueMicrotask(()=>{let c=rl(e);c?(c._x_hideChildren||(c._x_hideChildren=[]),c._x_hideChildren.push(e)):a(()=>{let f=d=>{let p=Promise.all([d._x_hidePromise,...(d._x_hideChildren||[]).map(f)]).then(([m])=>m?.());return delete d._x_hidePromise,delete d._x_hideChildren,p};f(e).catch(d=>{if(!d.isFromCancelledTransition)throw d})})})};function rl(e){let i=e.parentNode;if(i)return i._x_hidePromise?i:rl(i)}function Qr(e,i,{during:r,start:s,end:a}={},l=()=>{},c=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(r).length===0&&Object.keys(s).length===0&&Object.keys(a).length===0){l(),c();return}let f,d,p;Xd(e,{start(){f=i(e,s)},during(){d=i(e,r)},before:l,end(){f(),p=i(e,a)},after:c,cleanup(){d(),p()}})}function Xd(e,i){let r,s,a,l=Xr(()=>{ft(()=>{r=!0,s||i.before(),a||(i.end(),Gr()),i.after(),e.isConnected&&i.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(c){this.beforeCancels.push(c)},cancel:Xr(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();l()}),finish:l},ft(()=>{i.start(),i.during()}),Wd(),requestAnimationFrame(()=>{if(r)return;let c=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,f=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;c===0&&(c=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),ft(()=>{i.before()}),s=!0,requestAnimationFrame(()=>{r||(ft(()=>{i.end()}),Gr(),setTimeout(e._x_transitioning.finish,c+f),a=!0)})})}function pn(e,i,r){if(e.indexOf(i)===-1)return r;const s=e[e.indexOf(i)+1];if(!s||i==="scale"&&isNaN(s))return r;if(i==="duration"||i==="delay"){let a=s.match(/([0-9]+)ms/);if(a)return a[1]}return i==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(i)+2])?[s,e[e.indexOf(i)+2]].join(" "):s}var se=!1;function ue(e,i=()=>{}){return(...r)=>se?i(...r):e(...r)}function Qd(e){return(...i)=>se&&e(...i)}var ol=[];function bi(e){ol.push(e)}function t_(e,i){ol.forEach(r=>r(e,i)),se=!0,sl(()=>{Qt(i,(r,s)=>{s(r,()=>{})})}),se=!1}var to=!1;function e_(e,i){i._x_dataStack||(i._x_dataStack=e._x_dataStack),se=!0,to=!0,sl(()=>{n_(i)}),se=!1,to=!1}function n_(e){let i=!1;Qt(e,(s,a)=>{Le(s,(l,c)=>{if(i&&Ud(l))return c();i=!0,a(l,c)})})}function sl(e){let i=Ce;la((r,s)=>{let a=i(r);return Ke(a),()=>{}}),e(),la(i)}function al(e,i,r,s=[]){switch(e._x_bindings||(e._x_bindings=$e({})),e._x_bindings[i]=r,i=s.includes("camel")?c_(i):i,i){case"value":i_(e,r);break;case"style":o_(e,r);break;case"class":r_(e,r);break;case"selected":case"checked":s_(e,i,r);break;default:ul(e,i,r);break}}function i_(e,i){if(Mo(e))e.attributes.value===void 0&&(e.value=i);else if(hi(e))Number.isInteger(i)?e.value=i:!Array.isArray(i)&&typeof i!="boolean"&&![null,void 0].includes(i)?e.value=String(i):Array.isArray(i)?e.checked=i.some(r=>h_(r,e.value)):e.checked=!!i;else if(e.tagName==="SELECT")l_(e,i);else{if(e.value===i)return;e.value=i===void 0?"":i}}function r_(e,i){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=Oo(e,i)}function o_(e,i){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=wi(e,i)}function s_(e,i,r){ul(e,i,r),u_(e,i,r)}function ul(e,i,r){[null,void 0,!1].includes(r)&&d_(i)?e.removeAttribute(i):(ll(i)&&(r=i),a_(e,i,r))}function a_(e,i,r){e.getAttribute(i)!=r&&e.setAttribute(i,r)}function u_(e,i,r){e[i]!==r&&(e[i]=r)}function l_(e,i){const r=[].concat(i).map(s=>s+"");Array.from(e.options).forEach(s=>{s.selected=r.includes(s.value)})}function c_(e){return e.toLowerCase().replace(/-(\w)/g,(i,r)=>r.toUpperCase())}function h_(e,i){return e==i}function ai(e){return[1,"1","true","on","yes",!0].includes(e)?!0:[0,"0","false","off","no",!1].includes(e)?!1:e?!!e:null}var f_=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function ll(e){return f_.has(e)}function d_(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function __(e,i,r){return e._x_bindings&&e._x_bindings[i]!==void 0?e._x_bindings[i]:cl(e,i,r)}function p_(e,i,r,s=!0){if(e._x_bindings&&e._x_bindings[i]!==void 0)return e._x_bindings[i];if(e._x_inlineBindings&&e._x_inlineBindings[i]!==void 0){let a=e._x_inlineBindings[i];return a.extract=s,Fu(()=>we(e,a.expression))}return cl(e,i,r)}function cl(e,i,r){let s=e.getAttribute(i);return s===null?typeof r=="function"?r():r:s===""?!0:ll(i)?!![i,"true"].includes(s):s}function hi(e){return e.type==="checkbox"||e.localName==="ui-checkbox"||e.localName==="ui-switch"}function Mo(e){return e.type==="radio"||e.localName==="ui-radio"}function hl(e,i){let r;return function(){const s=this,a=arguments,l=function(){r=null,e.apply(s,a)};clearTimeout(r),r=setTimeout(l,i)}}function fl(e,i){let r;return function(){let s=this,a=arguments;r||(e.apply(s,a),r=!0,setTimeout(()=>r=!1,i))}}function dl({get:e,set:i},{get:r,set:s}){let a=!0,l,c=Ce(()=>{let f=e(),d=r();if(a)s(lr(f)),a=!1;else{let p=JSON.stringify(f),m=JSON.stringify(d);p!==l?s(lr(f)):p!==m&&i(lr(d))}l=JSON.stringify(e()),JSON.stringify(r())});return()=>{Ke(c)}}function lr(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function m_(e){(Array.isArray(e)?e:[e]).forEach(r=>r(Ye))}var pe={},fa=!1;function g_(e,i){if(fa||(pe=$e(pe),fa=!0),i===void 0)return pe[e];pe[e]=i,Eo(pe[e]),typeof i=="object"&&i!==null&&i.hasOwnProperty("init")&&typeof i.init=="function"&&pe[e].init()}function v_(){return pe}var _l={};function y_(e,i){let r=typeof i!="function"?()=>i:i;return e instanceof Element?pl(e,r()):(_l[e]=r,()=>{})}function w_(e){return Object.entries(_l).forEach(([i,r])=>{Object.defineProperty(e,i,{get(){return(...s)=>r(...s)}})}),e}function pl(e,i,r){let s=[];for(;s.length;)s.pop()();let a=Object.entries(i).map(([c,f])=>({name:c,value:f})),l=Hu(a);return a=a.map(c=>l.find(f=>f.name===c.name)?{name:`x-bind:${c.name}`,value:`"${c.value}"`}:c),To(e,a,r).map(c=>{s.push(c.runCleanups),c()}),()=>{for(;s.length;)s.pop()()}}var ml={};function b_(e,i){ml[e]=i}function x_(e,i){return Object.entries(ml).forEach(([r,s])=>{Object.defineProperty(e,r,{get(){return(...a)=>s.bind(i)(...a)},enumerable:!1})}),e}var E_={get reactive(){return $e},get release(){return Ke},get effect(){return Ce},get raw(){return Tu},get transaction(){return dd},version:"3.15.12",flushAndStopDeferringMutations:vd,dontAutoEvaluateFunctions:Fu,disableEffectScheduling:cd,startObservingMutations:wo,stopObservingMutations:Bu,setReactivityEngine:hd,onAttributeRemoved:Mu,onAttributesAdded:Ou,closestDataStack:Te,skipDuringClone:ue,onlyDuringClone:Qd,addRootSelector:tl,addInitSelector:el,setErrorHandler:Pd,interceptClone:bi,addScopeToNode:On,deferMutations:gd,mapAttributes:So,evaluateLater:Pt,interceptInit:Hd,initInterceptors:Eo,injectMagics:xn,setEvaluator:Sd,setRawEvaluator:Ld,mergeProxies:Se,extractProp:p_,findClosest:Xt,onElRemoved:go,closestRoot:yi,destroyTree:Ge,interceptor:ku,transition:Qr,setStyles:wi,mutateDom:ft,directive:gt,entangle:dl,throttle:fl,debounce:hl,evaluate:we,evaluateRaw:Rd,initTree:Qt,nextTick:Ao,prefixed:Je,prefix:Id,plugin:m_,magic:Dt,store:g_,start:Zd,clone:e_,cloneNode:t_,bound:__,$data:Iu,watch:Su,walk:Le,data:b_,bind:y_},Ye=E_;function P_(e,i){const r=Object.create(null),s=e.split(",");for(let a=0;a<s.length;a++)r[s[a]]=!0;return a=>!!r[a]}var T_=Object.freeze({}),S_=Object.prototype.hasOwnProperty,xi=(e,i)=>S_.call(e,i),be=Array.isArray,bn=e=>gl(e)==="[object Map]",L_=e=>typeof e=="string",Ro=e=>typeof e=="symbol",Ei=e=>e!==null&&typeof e=="object",C_=Object.prototype.toString,gl=e=>C_.call(e),vl=e=>gl(e).slice(8,-1),Bo=e=>L_(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,A_=e=>{const i=Object.create(null);return r=>i[r]||(i[r]=e(r))},O_=A_(e=>e.charAt(0).toUpperCase()+e.slice(1)),yl=(e,i)=>e!==i&&(e===e||i===i),eo=new WeakMap,mn=[],jt,xe=Symbol("iterate"),no=Symbol("Map key iterate");function M_(e){return e&&e._isEffect===!0}function R_(e,i=T_){M_(e)&&(e=e.raw);const r=N_(e,i);return i.lazy||r(),r}function B_(e){e.active&&(wl(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var I_=0;function N_(e,i){const r=function(){if(!r.active)return e();if(!mn.includes(r)){wl(r);try{return z_(),mn.push(r),jt=r,e()}finally{mn.pop(),bl(),jt=mn[mn.length-1]}}};return r.id=I_++,r.allowRecurse=!!i.allowRecurse,r._isEffect=!0,r.active=!0,r.raw=e,r.deps=[],r.options=i,r}function wl(e){const{deps:i}=e;if(i.length){for(let r=0;r<i.length;r++)i[r].delete(e);i.length=0}}var We=!0,Io=[];function k_(){Io.push(We),We=!1}function z_(){Io.push(We),We=!0}function bl(){const e=Io.pop();We=e===void 0?!0:e}function kt(e,i,r){if(!We||jt===void 0)return;let s=eo.get(e);s||eo.set(e,s=new Map);let a=s.get(r);a||s.set(r,a=new Set),a.has(jt)||(a.add(jt),jt.deps.push(a),jt.options.onTrack&&jt.options.onTrack({effect:jt,target:e,type:i,key:r}))}function ae(e,i,r,s,a,l){const c=eo.get(e);if(!c)return;const f=new Set,d=m=>{m&&m.forEach(b=>{(b!==jt||b.allowRecurse)&&f.add(b)})};if(i==="clear")c.forEach(d);else if(r==="length"&&be(e))c.forEach((m,b)=>{(b==="length"||b>=s)&&d(m)});else switch(r!==void 0&&d(c.get(r)),i){case"add":be(e)?Bo(r)&&d(c.get("length")):(d(c.get(xe)),bn(e)&&d(c.get(no)));break;case"delete":be(e)||(d(c.get(xe)),bn(e)&&d(c.get(no)));break;case"set":bn(e)&&d(c.get(xe));break}const p=m=>{m.options.onTrigger&&m.options.onTrigger({effect:m,target:e,key:r,type:i,newValue:s,oldValue:a,oldTarget:l}),m.options.scheduler?m.options.scheduler(m):m()};f.forEach(p)}var D_=P_("__proto__,__v_isRef,__isVue"),xl=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(Ro)),F_=El(),Z_=El(!0),da=U_();function U_(){const e={};return["includes","indexOf","lastIndexOf"].forEach(i=>{e[i]=function(...r){const s=lt(this);for(let l=0,c=this.length;l<c;l++)kt(s,"get",l+"");const a=s[i](...r);return a===-1||a===!1?s[i](...r.map(lt)):a}}),["push","pop","shift","unshift","splice"].forEach(i=>{e[i]=function(...r){k_();const s=lt(this)[i].apply(this,r);return bl(),s}}),e}function El(e=!1,i=!1){return function(s,a,l){if(a==="__v_isReactive")return!e;if(a==="__v_isReadonly")return e;if(a==="__v_raw"&&l===(e?i?ep:Ll:i?tp:Sl).get(s))return s;const c=be(s);if(!e&&c&&xi(da,a))return Reflect.get(da,a,l);const f=Reflect.get(s,a,l);return(Ro(a)?xl.has(a):D_(a))||(e||kt(s,"get",a),i)?f:io(f)?!c||!Bo(a)?f.value:f:Ei(f)?e?Cl(f):Do(f):f}}var H_=q_();function q_(e=!1){return function(r,s,a,l){let c=r[s];if(!e&&(a=lt(a),c=lt(c),!be(r)&&io(c)&&!io(a)))return c.value=a,!0;const f=be(r)&&Bo(s)?Number(s)<r.length:xi(r,s),d=Reflect.set(r,s,a,l);return r===lt(l)&&(f?yl(a,c)&&ae(r,"set",s,a,c):ae(r,"add",s,a)),d}}function j_(e,i){const r=xi(e,i),s=e[i],a=Reflect.deleteProperty(e,i);return a&&r&&ae(e,"delete",i,void 0,s),a}function W_(e,i){const r=Reflect.has(e,i);return(!Ro(i)||!xl.has(i))&&kt(e,"has",i),r}function V_(e){return kt(e,"iterate",be(e)?"length":xe),Reflect.ownKeys(e)}var $_={get:F_,set:H_,deleteProperty:j_,has:W_,ownKeys:V_},K_={get:Z_,set(e,i){return console.warn(`Set operation on key "${String(i)}" failed: target is readonly.`,e),!0},deleteProperty(e,i){return console.warn(`Delete operation on key "${String(i)}" failed: target is readonly.`,e),!0}},No=e=>Ei(e)?Do(e):e,ko=e=>Ei(e)?Cl(e):e,zo=e=>e,Pi=e=>Reflect.getPrototypeOf(e);function Yn(e,i,r=!1,s=!1){e=e.__v_raw;const a=lt(e),l=lt(i);i!==l&&!r&&kt(a,"get",i),!r&&kt(a,"get",l);const{has:c}=Pi(a),f=s?zo:r?ko:No;if(c.call(a,i))return f(e.get(i));if(c.call(a,l))return f(e.get(l));e!==a&&e.get(i)}function Xn(e,i=!1){const r=this.__v_raw,s=lt(r),a=lt(e);return e!==a&&!i&&kt(s,"has",e),!i&&kt(s,"has",a),e===a?r.has(e):r.has(e)||r.has(a)}function Qn(e,i=!1){return e=e.__v_raw,!i&&kt(lt(e),"iterate",xe),Reflect.get(e,"size",e)}function _a(e){e=lt(e);const i=lt(this);return Pi(i).has.call(i,e)||(i.add(e),ae(i,"add",e,e)),this}function pa(e,i){i=lt(i);const r=lt(this),{has:s,get:a}=Pi(r);let l=s.call(r,e);l?Tl(r,s,e):(e=lt(e),l=s.call(r,e));const c=a.call(r,e);return r.set(e,i),l?yl(i,c)&&ae(r,"set",e,i,c):ae(r,"add",e,i),this}function ma(e){const i=lt(this),{has:r,get:s}=Pi(i);let a=r.call(i,e);a?Tl(i,r,e):(e=lt(e),a=r.call(i,e));const l=s?s.call(i,e):void 0,c=i.delete(e);return a&&ae(i,"delete",e,void 0,l),c}function ga(){const e=lt(this),i=e.size!==0,r=bn(e)?new Map(e):new Set(e),s=e.clear();return i&&ae(e,"clear",void 0,void 0,r),s}function ti(e,i){return function(s,a){const l=this,c=l.__v_raw,f=lt(c),d=i?zo:e?ko:No;return!e&&kt(f,"iterate",xe),c.forEach((p,m)=>s.call(a,d(p),d(m),l))}}function ei(e,i,r){return function(...s){const a=this.__v_raw,l=lt(a),c=bn(l),f=e==="entries"||e===Symbol.iterator&&c,d=e==="keys"&&c,p=a[e](...s),m=r?zo:i?ko:No;return!i&&kt(l,"iterate",d?no:xe),{next(){const{value:b,done:T}=p.next();return T?{value:b,done:T}:{value:f?[m(b[0]),m(b[1])]:m(b),done:T}},[Symbol.iterator](){return this}}}}function re(e){return function(...i){{const r=i[0]?`on key "${i[0]}" `:"";console.warn(`${O_(e)} operation ${r}failed: target is readonly.`,lt(this))}return e==="delete"?!1:this}}function J_(){const e={get(l){return Yn(this,l)},get size(){return Qn(this)},has:Xn,add:_a,set:pa,delete:ma,clear:ga,forEach:ti(!1,!1)},i={get(l){return Yn(this,l,!1,!0)},get size(){return Qn(this)},has:Xn,add:_a,set:pa,delete:ma,clear:ga,forEach:ti(!1,!0)},r={get(l){return Yn(this,l,!0)},get size(){return Qn(this,!0)},has(l){return Xn.call(this,l,!0)},add:re("add"),set:re("set"),delete:re("delete"),clear:re("clear"),forEach:ti(!0,!1)},s={get(l){return Yn(this,l,!0,!0)},get size(){return Qn(this,!0)},has(l){return Xn.call(this,l,!0)},add:re("add"),set:re("set"),delete:re("delete"),clear:re("clear"),forEach:ti(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{e[l]=ei(l,!1,!1),r[l]=ei(l,!0,!1),i[l]=ei(l,!1,!0),s[l]=ei(l,!0,!0)}),[e,r,i,s]}var[G_,Y_]=J_();function Pl(e,i){const r=e?Y_:G_;return(s,a,l)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?s:Reflect.get(xi(r,a)&&a in s?r:s,a,l)}var X_={get:Pl(!1)},Q_={get:Pl(!0)};function Tl(e,i,r){const s=lt(r);if(s!==r&&i.call(e,s)){const a=vl(e);console.warn(`Reactive ${a} contains both the raw and reactive versions of the same object${a==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var Sl=new WeakMap,tp=new WeakMap,Ll=new WeakMap,ep=new WeakMap;function np(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ip(e){return e.__v_skip||!Object.isExtensible(e)?0:np(vl(e))}function Do(e){return e&&e.__v_isReadonly?e:Al(e,!1,$_,X_,Sl)}function Cl(e){return Al(e,!0,K_,Q_,Ll)}function Al(e,i,r,s,a){if(!Ei(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(i&&e.__v_isReactive))return e;const l=a.get(e);if(l)return l;const c=ip(e);if(c===0)return e;const f=new Proxy(e,c===2?s:r);return a.set(e,f),f}function lt(e){return e&<(e.__v_raw)||e}function io(e){return!!(e&&e.__v_isRef===!0)}Dt("nextTick",()=>Ao);Dt("dispatch",e=>wn.bind(wn,e));Dt("watch",(e,{evaluateLater:i,cleanup:r})=>(s,a)=>{let l=i(s),f=Su(()=>{let d;return l(p=>d=p),d},a);r(f)});Dt("store",v_);Dt("data",e=>Iu(e));Dt("root",e=>yi(e));Dt("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=Se(rp(e))),e._x_refs_proxy));function rp(e){let i=[];return Xt(e,r=>{r._x_refs&&i.push(r._x_refs)}),i}var cr={};function Ol(e){return cr[e]||(cr[e]=0),++cr[e]}function op(e,i){return Xt(e,r=>{if(r._x_ids&&r._x_ids[i])return!0})}function sp(e,i){e._x_ids||(e._x_ids={}),e._x_ids[i]||(e._x_ids[i]=Ol(i))}Dt("id",(e,{cleanup:i})=>(r,s=null)=>{let a=`${r}${s?`-${s}`:""}`;return ap(e,a,i,()=>{let l=op(e,r),c=l?l._x_ids[r]:Ol(r);return s?`${r}-${c}-${s}`:`${r}-${c}`})});bi((e,i)=>{e._x_id&&(i._x_id=e._x_id)});function ap(e,i,r,s){if(e._x_id||(e._x_id={}),e._x_id[i])return e._x_id[i];let a=s();return e._x_id[i]=a,r(()=>{delete e._x_id[i]}),a}Dt("el",e=>e);Ml("Focus","focus","focus");Ml("Persist","persist","persist");function Ml(e,i,r){Dt(i,s=>Wt(`You can't use [$${i}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${r}`,s))}gt("modelable",(e,{expression:i},{effect:r,evaluateLater:s,cleanup:a})=>{let l=s(i),c=()=>{let m;return l(b=>m=b),m},f=s(`${i} = __placeholder`),d=m=>f(()=>{},{scope:{__placeholder:m}}),p=c();d(p),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let m=e._x_model.get,b=e._x_model.setWithModifiers,T=dl({get(){return m()},set(E){b(E)}},{get(){return c()},set(E){d(E)}});a(T)})});gt("teleport",(e,{modifiers:i,expression:r},{cleanup:s})=>{e.tagName.toLowerCase()!=="template"&&Wt("x-teleport can only be used on a <template> tag",e);let a=va(r),l=e.content.cloneNode(!0).firstElementChild;e._x_teleport=l,l._x_teleportBack=e,e.setAttribute("data-teleport-template",!0),l.setAttribute("data-teleport-target",!0),e._x_forwardEvents&&e._x_forwardEvents.forEach(f=>{l.addEventListener(f,d=>{d.stopPropagation(),e.dispatchEvent(new d.constructor(d.type,d))})}),On(l,{},e);let c=(f,d,p)=>{p.includes("prepend")?d.parentNode.insertBefore(f,d):p.includes("append")?d.parentNode.insertBefore(f,d.nextSibling):d.appendChild(f)};ft(()=>{ue(()=>{c(l,a,i),Qt(l)})()}),e._x_teleportPutBack=()=>{let f=va(r);ft(()=>{c(e._x_teleport,f,i)})},s(()=>ft(()=>{l.remove(),Ge(l)}))});var up=document.createElement("div");function va(e){let i=ue(()=>document.querySelector(e),()=>up)();return i||Wt(`Cannot find x-teleport element for selector: "${e}"`),i}var Rl=()=>{};Rl.inline=(e,{modifiers:i},{cleanup:r})=>{i.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,r(()=>{i.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})};gt("ignore",Rl);gt("effect",ue((e,{expression:i},{effect:r})=>{r(Pt(e,i))}));function He(e,i,r,s){let a=e,l=d=>s(d),c={},f=(d,p)=>m=>p(d,m);return r.includes("dot")&&(i=lp(i)),r.includes("camel")&&(i=cp(i)),r.includes("capture")&&(c.capture=!0),r.includes("window")&&(a=window),r.includes("document")&&(a=document),r.includes("passive")&&(c.passive=r[r.indexOf("passive")+1]!=="false"),l=Bl(r,l),r.includes("prevent")&&(l=f(l,(d,p)=>{p.preventDefault(),d(p)})),r.includes("stop")&&(l=f(l,(d,p)=>{p.stopPropagation(),d(p)})),r.includes("once")&&(l=f(l,(d,p)=>{d(p),a.removeEventListener(i,l,c)})),(r.includes("away")||r.includes("outside"))&&(a=document,l=f(l,(d,p)=>{e.contains(p.target)||p.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&d(p))})),r.includes("self")&&(l=f(l,(d,p)=>{p.target===e&&d(p)})),i==="submit"&&(l=f(l,(d,p)=>{p.target._x_pendingModelUpdates&&p.target._x_pendingModelUpdates.forEach(m=>m()),d(p)})),(fp(i)||Il(i))&&(l=f(l,(d,p)=>{dp(p,r)||d(p)})),a.addEventListener(i,l,c),()=>{a.removeEventListener(i,l,c)}}function Bl(e,i){if(e.includes("debounce")){let r=e[e.indexOf("debounce")+1]||"invalid-wait",s=fi(r.split("ms")[0])?Number(r.split("ms")[0]):250;i=hl(i,s)}if(e.includes("throttle")){let r=e[e.indexOf("throttle")+1]||"invalid-wait",s=fi(r.split("ms")[0])?Number(r.split("ms")[0]):250;i=fl(i,s)}return i}function lp(e){return e.replace(/-/g,".")}function cp(e){return e.toLowerCase().replace(/-(\w)/g,(i,r)=>r.toUpperCase())}function fi(e){return!Array.isArray(e)&&!isNaN(e)}function hp(e){return[" ","_"].includes(e)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function fp(e){return["keydown","keyup"].includes(e)}function Il(e){return["contextmenu","click","mouse"].some(i=>e.includes(i))}function dp(e,i){let r=i.filter(l=>!["window","document","prevent","stop","once","capture","self","away","outside","passive","preserve-scroll","blur","change","lazy"].includes(l));if(r.includes("debounce")){let l=r.indexOf("debounce");r.splice(l,fi((r[l+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.includes("throttle")){let l=r.indexOf("throttle");r.splice(l,fi((r[l+1]||"invalid-wait").split("ms")[0])?2:1)}if(r.length===0||r.length===1&&ya(e.key).includes(r[0]))return!1;const a=["ctrl","shift","alt","meta","cmd","super"].filter(l=>r.includes(l));return r=r.filter(l=>!a.includes(l)),!(a.length>0&&a.filter(c=>((c==="cmd"||c==="super")&&(c="meta"),e[`${c}Key`])).length===a.length&&(Il(e.type)||ya(e.key).includes(r[0])))}function ya(e){if(!e)return[];e=hp(e);let i={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return i[e]=e,Object.keys(i).map(r=>{if(i[r]===e)return r}).filter(r=>r)}gt("model",(e,{modifiers:i,expression:r},{effect:s,cleanup:a})=>{let l=e;i.includes("parent")&&(l=Xt(e,v=>v!==e));let c=Pt(l,r),f;typeof r=="string"?f=Pt(l,`${r} = __placeholder`):typeof r=="function"&&typeof r()=="string"?f=Pt(l,`${r()} = __placeholder`):f=()=>{};let d=()=>{let v;return c(S=>v=S),wa(v)?v.get():v},p=v=>{let S;c(P=>S=P),wa(S)?S.set(v):f(()=>{},{scope:{__placeholder:v}})};typeof r=="string"&&e.type==="radio"&&ft(()=>{e.hasAttribute("name")||e.setAttribute("name",r)});let m=i.includes("change")||i.includes("lazy"),b=i.includes("blur"),T=i.includes("enter"),E=m||b||T,A;if(se)A=()=>{};else if(E){let v=[],S=P=>p(ni(e,i,P,d()));if(m&&v.push(He(e,"change",i,S)),b&&(v.push(He(e,"blur",i,S)),e.form)){let P=e.form,R=()=>S({target:e});P._x_pendingModelUpdates||(P._x_pendingModelUpdates=[]),P._x_pendingModelUpdates.push(R),a(()=>{P._x_pendingModelUpdates&&P._x_pendingModelUpdates.splice(P._x_pendingModelUpdates.indexOf(R),1)})}T&&v.push(He(e,"keydown",i,P=>{P.key==="Enter"&&S(P)})),A=()=>v.forEach(P=>P())}else{let v=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)?"change":"input";A=He(e,v,i,S=>{p(ni(e,i,S,d()))})}if(i.includes("fill")&&([void 0,null,""].includes(d())||hi(e)&&Array.isArray(d())||e.tagName.toLowerCase()==="select"&&e.multiple)&&p(ni(e,i,{target:e},d())),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=A,a(()=>e._x_removeModelListeners.default()),e.form){let v=He(e.form,"reset",[],S=>{Ao(()=>e._x_model&&e._x_model.set(ni(e,i,{target:e},d())))});a(()=>v())}e._x_model={get(){return d()},set(v){p(v)},setWithModifiers:Bl(i,p)},e._x_forceModelUpdate=v=>{v===void 0&&typeof r=="string"&&r.match(/\./)&&(v=""),ft(()=>{hi(e)?Array.isArray(v)?e.checked=v.some(S=>S==e.value):e.checked=!!v:Mo(e)?typeof v=="boolean"?e.checked=ai(e.value)===v:e.checked=e.value==v:al(e,"value",v)})},s(()=>{let v=d();i.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(v)})});function ni(e,i,r,s){return ft(()=>{if(r instanceof CustomEvent&&r.detail!==void 0)return r.detail!==null&&r.detail!==void 0?r.detail:r.target.value;if(hi(e))if(Array.isArray(s)){let a=null;return i.includes("number")?a=hr(r.target.value):i.includes("boolean")?a=ai(r.target.value):a=r.target.value,r.target.checked?s.includes(a)?s:s.concat([a]):s.filter(l=>!_p(l,a))}else return r.target.checked;else{if(e.tagName.toLowerCase()==="select"&&e.multiple)return i.includes("number")?Array.from(r.target.selectedOptions).map(a=>{let l=a.value||a.text;return hr(l)}):i.includes("boolean")?Array.from(r.target.selectedOptions).map(a=>{let l=a.value||a.text;return ai(l)}):Array.from(r.target.selectedOptions).map(a=>a.value||a.text);{let a;return Mo(e)?r.target.checked?a=r.target.value:a=s:a=r.target.value,i.includes("number")?hr(a):i.includes("boolean")?ai(a):i.includes("trim")?a.trim():a}}})}function hr(e){let i=e?parseFloat(e):null;return pp(i)?i:e}function _p(e,i){return e==i}function pp(e){return!Array.isArray(e)&&!isNaN(e)}function wa(e){return e!==null&&typeof e=="object"&&typeof e.get=="function"&&typeof e.set=="function"}gt("cloak",e=>queueMicrotask(()=>ft(()=>e.removeAttribute(Je("cloak")))));el(()=>`[${Je("init")}]`);gt("init",ue((e,{expression:i},{evaluate:r})=>typeof i=="string"?!!i.trim()&&r(i,{},!1):r(i,{},!1)));gt("text",(e,{expression:i},{effect:r,evaluateLater:s})=>{let a=s(i);r(()=>{a(l=>{ft(()=>{e.textContent=l})})})});gt("html",(e,{expression:i},{effect:r,evaluateLater:s})=>{let a=s(i);r(()=>{a(l=>{ft(()=>{e.innerHTML=l??"",e._x_ignoreSelf=!0,Qt(e),delete e._x_ignoreSelf})})})});So(Wu(":",Vu(Je("bind:"))));var Nl=(e,{value:i,modifiers:r,expression:s,original:a},{effect:l,cleanup:c})=>{if(!i){let d={};w_(d),Pt(e,s)(m=>{pl(e,m,a)},{scope:d});return}if(i==="key")return mp(e,s);if(e._x_inlineBindings&&e._x_inlineBindings[i]&&e._x_inlineBindings[i].extract)return;let f=Pt(e,s);l(()=>f(d=>{d===void 0&&typeof s=="string"&&s.match(/\./)&&(d=""),ft(()=>al(e,i,d,r))})),c(()=>{e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedStyles&&e._x_undoAddedStyles()})};Nl.inline=(e,{value:i,modifiers:r,expression:s})=>{i&&(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[i]={expression:s,extract:!1})};gt("bind",Nl);function mp(e,i){e._x_keyExpression=i}tl(()=>`[${Je("data")}]`);gt("data",(e,{expression:i},{cleanup:r})=>{if(gp(e))return;i=i===""?"{}":i;let s={};xn(s,e);let a={};x_(a,s);let l=we(e,i,{scope:a});(l===void 0||l===!0)&&(l={}),xn(l,e);let c=$e(l);Eo(c);let f=On(e,c);c.init&&we(e,c.init),r(()=>{c.destroy&&we(e,c.destroy),f()})});bi((e,i)=>{e._x_dataStack&&(i._x_dataStack=e._x_dataStack,i.setAttribute("data-has-alpine-state",!0))});function gp(e){return se?to?!0:e.hasAttribute("data-has-alpine-state"):!1}gt("show",(e,{modifiers:i,expression:r},{effect:s})=>{let a=Pt(e,r);e._x_doHide||(e._x_doHide=()=>{ft(()=>{e.style.setProperty("display","none",i.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{ft(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display")})});let l=()=>{e._x_doHide(),e._x_isShown=!1},c=()=>{e._x_doShow(),e._x_isShown=!0},f=()=>setTimeout(c),d=Xr(b=>b?c():l(),b=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,b,c,l):b?f():l()}),p,m=!0;s(()=>a(b=>{!m&&b===p||(i.includes("immediate")&&(b?f():l()),d(b),p=b,m=!1)}))});gt("for",(e,{expression:i},{effect:r,cleanup:s})=>{let a=wp(i),l=Pt(e,a.items),c=Pt(e,e._x_keyExpression||"index");e._x_lookup=new Map,r(()=>yp(e,a,l,c)),s(()=>{e._x_lookup.forEach(f=>ft(()=>{Ge(f),f.remove()})),delete e._x_lookup})});function vp(e){return i=>{Object.entries(i).forEach(([r,s])=>{e[r]=s})}}function yp(e,i,r,s){r(a=>{xp(a)&&(a=Array.from({length:a},(p,m)=>m+1)),a==null&&(a=[]),a instanceof Set&&(a=Array.from(a)),a instanceof Map&&(a=Array.from(a));let l=e._x_lookup,c=new Map;e._x_lookup=c;let f=Ep(a),d=Object.entries(a).map(([p,m])=>{f||(p=parseInt(p));let b=bp(i,m,p,a),T;return s(E=>{typeof E=="object"&&Wt("x-for key cannot be an object, it must be a string or an integer",e),l.has(E)&&(c.set(E,l.get(E)),l.delete(E)),T=E},{scope:{index:p,...b}}),[T,b]});ft(()=>{l.forEach(b=>{Ge(b),b.remove()});let p=new Set,m=e;d.forEach(([b,T])=>{if(c.has(b)){let v=c.get(b);v._x_refreshXForScope(T),m.nextElementSibling!==v&&(m.nextElementSibling&&v.replaceWith(m.nextElementSibling),m.after(v)),m=v,v._x_currentIfEl&&(v.nextElementSibling!==v._x_currentIfEl&&m.after(v._x_currentIfEl),m=v._x_currentIfEl);return}e.content.children.length>1&&Wt("x-for templates require a single root element, additional elements will be ignored.",e);let E=document.importNode(e.content,!0).firstElementChild,A=$e(T);On(E,A,e),E._x_refreshXForScope=vp(A),c.set(b,E),p.add(E),m.after(E),m=E}),ue(()=>p.forEach(b=>Qt(b)))()})})}function wp(e){let i=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,r=/^\s*\(|\)\s*$/g,s=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,a=e.match(s);if(!a)return;let l={};l.items=a[2].trim();let c=a[1].replace(r,"").trim(),f=c.match(i);return f?(l.item=c.replace(i,"").trim(),l.index=f[1].trim(),f[2]&&(l.collection=f[2].trim())):l.item=c,l}function bp(e,i,r,s){let a={};return/^\[.*\]$/.test(e.item)&&Array.isArray(i)?e.item.replace("[","").replace("]","").split(",").map(c=>c.trim()).forEach((c,f)=>{a[c]=i[f]}):/^\{.*\}$/.test(e.item)&&!Array.isArray(i)&&typeof i=="object"?e.item.replace("{","").replace("}","").split(",").map(c=>c.trim()).forEach(c=>{a[c]=i[c]}):a[e.item]=i,e.index&&(a[e.index]=r),e.collection&&(a[e.collection]=s),a}function xp(e){return typeof e!="object"&&!isNaN(e)}function Ep(e){return typeof e=="object"&&!Array.isArray(e)}function kl(){}kl.inline=(e,{expression:i},{cleanup:r})=>{let s=yi(e);s&&(s._x_refs||(s._x_refs={}),s._x_refs[i]=e,r(()=>delete s._x_refs[i]))};gt("ref",kl);gt("if",(e,{expression:i},{effect:r,cleanup:s})=>{e.tagName.toLowerCase()!=="template"&&Wt("x-if can only be used on a <template> tag",e);let a=Pt(e,i),l=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let f=e.content.cloneNode(!0).firstElementChild;return On(f,{},e),ft(()=>{e.after(f),ue(()=>Qt(f))()}),e._x_currentIfEl=f,e._x_undoIf=()=>{ft(()=>{Ge(f),f.remove()}),delete e._x_currentIfEl},f},c=()=>{e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)};r(()=>a(f=>{f?l():c()})),s(()=>e._x_undoIf&&e._x_undoIf())});gt("id",(e,{expression:i},{evaluate:r})=>{r(i).forEach(a=>sp(e,a))});bi((e,i)=>{e._x_ids&&(i._x_ids=e._x_ids)});So(Wu("@",Vu(Je("on:"))));gt("on",ue((e,{value:i,modifiers:r,expression:s},{cleanup:a})=>{let l=s?Pt(e,s):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(i)||e._x_forwardEvents.push(i));let c=He(e,i,r,f=>{l(()=>{},{scope:{$event:f},params:[f]})});a(()=>c())}));Ti("Collapse","collapse","collapse");Ti("Intersect","intersect","intersect");Ti("Focus","trap","focus");Ti("Mask","mask","mask");function Ti(e,i,r){gt(i,s=>Wt(`You can't use [x-${i}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${r}`,s))}Ye.setEvaluator(Cd);Ye.setRawEvaluator(Bd);Ye.setReactivityEngine({reactive:Do,effect:R_,release:B_,raw:lt});var Pp=Ye,zl=Pp;function Dl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yn={exports:{}};var Tp=yn.exports,ba;function Sp(){return ba||(ba=1,(function(e,i){(function(r,s){s(i)})(Tp,(function(r){var s="1.9.4";function a(t){var n,o,u,h;for(o=1,u=arguments.length;o<u;o++){h=arguments[o];for(n in h)t[n]=h[n]}return t}var l=Object.create||(function(){function t(){}return function(n){return t.prototype=n,new t}})();function c(t,n){var o=Array.prototype.slice;if(t.bind)return t.bind.apply(t,o.call(arguments,1));var u=o.call(arguments,2);return function(){return t.apply(n,u.length?u.concat(o.call(arguments)):arguments)}}var f=0;function d(t){return"_leaflet_id"in t||(t._leaflet_id=++f),t._leaflet_id}function p(t,n,o){var u,h,_,g;return g=function(){u=!1,h&&(_.apply(o,h),h=!1)},_=function(){u?h=arguments:(t.apply(o,arguments),setTimeout(g,n),u=!0)},_}function m(t,n,o){var u=n[1],h=n[0],_=u-h;return t===u&&o?t:((t-h)%_+_)%_+h}function b(){return!1}function T(t,n){if(n===!1)return t;var o=Math.pow(10,n===void 0?6:n);return Math.round(t*o)/o}function E(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function A(t){return E(t).split(/\s+/)}function v(t,n){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?l(t.options):{});for(var o in n)t.options[o]=n[o];return t.options}function S(t,n,o){var u=[];for(var h in t)u.push(encodeURIComponent(o?h.toUpperCase():h)+"="+encodeURIComponent(t[h]));return(!n||n.indexOf("?")===-1?"?":"&")+u.join("&")}var P=/\{ *([\w_ -]+) *\}/g;function R(t,n){return t.replace(P,function(o,u){var h=n[u];if(h===void 0)throw new Error("No value provided for variable "+o);return typeof h=="function"&&(h=h(n)),h})}var O=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function M(t,n){for(var o=0;o<t.length;o++)if(t[o]===n)return o;return-1}var tt="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function N(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var U=0;function j(t){var n=+new Date,o=Math.max(0,16-(n-U));return U=n+o,window.setTimeout(t,o)}var z=window.requestAnimationFrame||N("RequestAnimationFrame")||j,H=window.cancelAnimationFrame||N("CancelAnimationFrame")||N("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function B(t,n,o){if(o&&z===j)t.call(n);else return z.call(window,c(t,n))}function k(t){t&&H.call(window,t)}var W={__proto__:null,extend:a,create:l,bind:c,get lastId(){return f},stamp:d,throttle:p,wrapNum:m,falseFn:b,formatNum:T,trim:E,splitWords:A,setOptions:v,getParamString:S,template:R,isArray:O,indexOf:M,emptyImageUrl:tt,requestFn:z,cancelFn:H,requestAnimFrame:B,cancelAnimFrame:k};function F(){}F.extend=function(t){var n=function(){v(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},o=n.__super__=this.prototype,u=l(o);u.constructor=n,n.prototype=u;for(var h in this)Object.prototype.hasOwnProperty.call(this,h)&&h!=="prototype"&&h!=="__super__"&&(n[h]=this[h]);return t.statics&&a(n,t.statics),t.includes&&(Tt(t.includes),a.apply(null,[u].concat(t.includes))),a(u,t),delete u.statics,delete u.includes,u.options&&(u.options=o.options?l(o.options):{},a(u.options,t.options)),u._initHooks=[],u.callInitHooks=function(){if(!this._initHooksCalled){o.callInitHooks&&o.callInitHooks.call(this),this._initHooksCalled=!0;for(var _=0,g=u._initHooks.length;_<g;_++)u._initHooks[_].call(this)}},n},F.include=function(t){var n=this.prototype.options;return a(this.prototype,t),t.options&&(this.prototype.options=n,this.mergeOptions(t.options)),this},F.mergeOptions=function(t){return a(this.prototype.options,t),this},F.addInitHook=function(t){var n=Array.prototype.slice.call(arguments,1),o=typeof t=="function"?t:function(){this[t].apply(this,n)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(o),this};function Tt(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=O(t)?t:[t];for(var n=0;n<t.length;n++)t[n]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var ut={on:function(t,n,o){if(typeof t=="object")for(var u in t)this._on(u,t[u],n);else{t=A(t);for(var h=0,_=t.length;h<_;h++)this._on(t[h],n,o)}return this},off:function(t,n,o){if(!arguments.length)delete this._events;else if(typeof t=="object")for(var u in t)this._off(u,t[u],n);else{t=A(t);for(var h=arguments.length===1,_=0,g=t.length;_<g;_++)h?this._off(t[_]):this._off(t[_],n,o)}return this},_on:function(t,n,o,u){if(typeof n!="function"){console.warn("wrong listener type: "+typeof n);return}if(this._listens(t,n,o)===!1){o===this&&(o=void 0);var h={fn:n,ctx:o};u&&(h.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(h)}},_off:function(t,n,o){var u,h,_;if(this._events&&(u=this._events[t],!!u)){if(arguments.length===1){if(this._firingCount)for(h=0,_=u.length;h<_;h++)u[h].fn=b;delete this._events[t];return}if(typeof n!="function"){console.warn("wrong listener type: "+typeof n);return}var g=this._listens(t,n,o);if(g!==!1){var w=u[g];this._firingCount&&(w.fn=b,this._events[t]=u=u.slice()),u.splice(g,1)}}},fire:function(t,n,o){if(!this.listens(t,o))return this;var u=a({},n,{type:t,target:this,sourceTarget:n&&n.sourceTarget||this});if(this._events){var h=this._events[t];if(h){this._firingCount=this._firingCount+1||1;for(var _=0,g=h.length;_<g;_++){var w=h[_],x=w.fn;w.once&&this.off(t,x,w.ctx),x.call(w.ctx||this,u)}this._firingCount--}}return o&&this._propagateEvent(u),this},listens:function(t,n,o,u){typeof t!="string"&&console.warn('"string" type argument expected');var h=n;typeof n!="function"&&(u=!!n,h=void 0,o=void 0);var _=this._events&&this._events[t];if(_&&_.length&&this._listens(t,h,o)!==!1)return!0;if(u){for(var g in this._eventParents)if(this._eventParents[g].listens(t,n,o,u))return!0}return!1},_listens:function(t,n,o){if(!this._events)return!1;var u=this._events[t]||[];if(!n)return!!u.length;o===this&&(o=void 0);for(var h=0,_=u.length;h<_;h++)if(u[h].fn===n&&u[h].ctx===o)return h;return!1},once:function(t,n,o){if(typeof t=="object")for(var u in t)this._on(u,t[u],n,!0);else{t=A(t);for(var h=0,_=t.length;h<_;h++)this._on(t[h],n,o,!0)}return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[d(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[d(t)],this},_propagateEvent:function(t){for(var n in this._eventParents)this._eventParents[n].fire(t.type,a({layer:t.target,propagatedFrom:t.target},t),!0)}};ut.addEventListener=ut.on,ut.removeEventListener=ut.clearAllEventListeners=ut.off,ut.addOneTimeEventListener=ut.once,ut.fireEvent=ut.fire,ut.hasEventListeners=ut.listens;var Vt=F.extend(ut);function $(t,n,o){this.x=o?Math.round(t):t,this.y=o?Math.round(n):n}var Ct=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};$.prototype={clone:function(){return new $(this.x,this.y)},add:function(t){return this.clone()._add(Z(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(Z(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new $(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new $(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=Ct(this.x),this.y=Ct(this.y),this},distanceTo:function(t){t=Z(t);var n=t.x-this.x,o=t.y-this.y;return Math.sqrt(n*n+o*o)},equals:function(t){return t=Z(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=Z(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+T(this.x)+", "+T(this.y)+")"}};function Z(t,n,o){return t instanceof $?t:O(t)?new $(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new $(t.x,t.y):new $(t,n,o)}function et(t,n){if(t)for(var o=n?[t,n]:t,u=0,h=o.length;u<h;u++)this.extend(o[u])}et.prototype={extend:function(t){var n,o;if(!t)return this;if(t instanceof $||typeof t[0]=="number"||"x"in t)n=o=Z(t);else if(t=_t(t),n=t.min,o=t.max,!n||!o)return this;return!this.min&&!this.max?(this.min=n.clone(),this.max=o.clone()):(this.min.x=Math.min(n.x,this.min.x),this.max.x=Math.max(o.x,this.max.x),this.min.y=Math.min(n.y,this.min.y),this.max.y=Math.max(o.y,this.max.y)),this},getCenter:function(t){return Z((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return Z(this.min.x,this.max.y)},getTopRight:function(){return Z(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var n,o;return typeof t[0]=="number"||t instanceof $?t=Z(t):t=_t(t),t instanceof et?(n=t.min,o=t.max):n=o=t,n.x>=this.min.x&&o.x<=this.max.x&&n.y>=this.min.y&&o.y<=this.max.y},intersects:function(t){t=_t(t);var n=this.min,o=this.max,u=t.min,h=t.max,_=h.x>=n.x&&u.x<=o.x,g=h.y>=n.y&&u.y<=o.y;return _&&g},overlaps:function(t){t=_t(t);var n=this.min,o=this.max,u=t.min,h=t.max,_=h.x>n.x&&u.x<o.x,g=h.y>n.y&&u.y<o.y;return _&&g},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var n=this.min,o=this.max,u=Math.abs(n.x-o.x)*t,h=Math.abs(n.y-o.y)*t;return _t(Z(n.x-u,n.y-h),Z(o.x+u,o.y+h))},equals:function(t){return t?(t=_t(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())):!1}};function _t(t,n){return!t||t instanceof et?t:new et(t,n)}function nt(t,n){if(t)for(var o=n?[t,n]:t,u=0,h=o.length;u<h;u++)this.extend(o[u])}nt.prototype={extend:function(t){var n=this._southWest,o=this._northEast,u,h;if(t instanceof J)u=t,h=t;else if(t instanceof nt){if(u=t._southWest,h=t._northEast,!u||!h)return this}else return t?this.extend(Y(t)||ot(t)):this;return!n&&!o?(this._southWest=new J(u.lat,u.lng),this._northEast=new J(h.lat,h.lng)):(n.lat=Math.min(u.lat,n.lat),n.lng=Math.min(u.lng,n.lng),o.lat=Math.max(h.lat,o.lat),o.lng=Math.max(h.lng,o.lng)),this},pad:function(t){var n=this._southWest,o=this._northEast,u=Math.abs(n.lat-o.lat)*t,h=Math.abs(n.lng-o.lng)*t;return new nt(new J(n.lat-u,n.lng-h),new J(o.lat+u,o.lng+h))},getCenter:function(){return new J((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new J(this.getNorth(),this.getWest())},getSouthEast:function(){return new J(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){typeof t[0]=="number"||t instanceof J||"lat"in t?t=Y(t):t=ot(t);var n=this._southWest,o=this._northEast,u,h;return t instanceof nt?(u=t.getSouthWest(),h=t.getNorthEast()):u=h=t,u.lat>=n.lat&&h.lat<=o.lat&&u.lng>=n.lng&&h.lng<=o.lng},intersects:function(t){t=ot(t);var n=this._southWest,o=this._northEast,u=t.getSouthWest(),h=t.getNorthEast(),_=h.lat>=n.lat&&u.lat<=o.lat,g=h.lng>=n.lng&&u.lng<=o.lng;return _&&g},overlaps:function(t){t=ot(t);var n=this._southWest,o=this._northEast,u=t.getSouthWest(),h=t.getNorthEast(),_=h.lat>n.lat&&u.lat<o.lat,g=h.lng>n.lng&&u.lng<o.lng;return _&&g},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,n){return t?(t=ot(t),this._southWest.equals(t.getSouthWest(),n)&&this._northEast.equals(t.getNorthEast(),n)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function ot(t,n){return t instanceof nt?t:new nt(t,n)}function J(t,n,o){if(isNaN(t)||isNaN(n))throw new Error("Invalid LatLng object: ("+t+", "+n+")");this.lat=+t,this.lng=+n,o!==void 0&&(this.alt=+o)}J.prototype={equals:function(t,n){if(!t)return!1;t=Y(t);var o=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return o<=(n===void 0?1e-9:n)},toString:function(t){return"LatLng("+T(this.lat,t)+", "+T(this.lng,t)+")"},distanceTo:function(t){return K.distance(this,Y(t))},wrap:function(){return K.wrapLatLng(this)},toBounds:function(t){var n=180*t/40075017,o=n/Math.cos(Math.PI/180*this.lat);return ot([this.lat-n,this.lng-o],[this.lat+n,this.lng+o])},clone:function(){return new J(this.lat,this.lng,this.alt)}};function Y(t,n,o){return t instanceof J?t:O(t)&&typeof t[0]!="object"?t.length===3?new J(t[0],t[1],t[2]):t.length===2?new J(t[0],t[1]):null:t==null?t:typeof t=="object"&&"lat"in t?new J(t.lat,"lng"in t?t.lng:t.lon,t.alt):n===void 0?null:new J(t,n,o)}var st={latLngToPoint:function(t,n){var o=this.projection.project(t),u=this.scale(n);return this.transformation._transform(o,u)},pointToLatLng:function(t,n){var o=this.scale(n),u=this.transformation.untransform(t,o);return this.projection.unproject(u)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var n=this.projection.bounds,o=this.scale(t),u=this.transformation.transform(n.min,o),h=this.transformation.transform(n.max,o);return new et(u,h)},infinite:!1,wrapLatLng:function(t){var n=this.wrapLng?m(t.lng,this.wrapLng,!0):t.lng,o=this.wrapLat?m(t.lat,this.wrapLat,!0):t.lat,u=t.alt;return new J(o,n,u)},wrapLatLngBounds:function(t){var n=t.getCenter(),o=this.wrapLatLng(n),u=n.lat-o.lat,h=n.lng-o.lng;if(u===0&&h===0)return t;var _=t.getSouthWest(),g=t.getNorthEast(),w=new J(_.lat-u,_.lng-h),x=new J(g.lat-u,g.lng-h);return new nt(w,x)}},K=a({},st,{wrapLng:[-180,180],R:6371e3,distance:function(t,n){var o=Math.PI/180,u=t.lat*o,h=n.lat*o,_=Math.sin((n.lat-t.lat)*o/2),g=Math.sin((n.lng-t.lng)*o/2),w=_*_+Math.cos(u)*Math.cos(h)*g*g,x=2*Math.atan2(Math.sqrt(w),Math.sqrt(1-w));return this.R*x}}),wt=6378137,At={R:wt,MAX_LATITUDE:85.0511287798,project:function(t){var n=Math.PI/180,o=this.MAX_LATITUDE,u=Math.max(Math.min(o,t.lat),-o),h=Math.sin(u*n);return new $(this.R*t.lng*n,this.R*Math.log((1+h)/(1-h))/2)},unproject:function(t){var n=180/Math.PI;return new J((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*n,t.x*n/this.R)},bounds:(function(){var t=wt*Math.PI;return new et([-t,-t],[t,t])})()};function te(t,n,o,u){if(O(t)){this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3];return}this._a=t,this._b=n,this._c=o,this._d=u}te.prototype={transform:function(t,n){return this._transform(t.clone(),n)},_transform:function(t,n){return n=n||1,t.x=n*(this._a*t.x+this._b),t.y=n*(this._c*t.y+this._d),t},untransform:function(t,n){return n=n||1,new $((t.x/n-this._b)/this._a,(t.y/n-this._d)/this._c)}};function ee(t,n,o,u){return new te(t,n,o,u)}var Xe=a({},K,{code:"EPSG:3857",projection:At,transformation:(function(){var t=.5/(Math.PI*At.R);return ee(t,.5,-t,.5)})()}),le=a({},Xe,{code:"EPSG:900913"});function Zo(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Uo(t,n){var o="",u,h,_,g,w,x;for(u=0,_=t.length;u<_;u++){for(w=t[u],h=0,g=w.length;h<g;h++)x=w[h],o+=(h?"L":"M")+x.x+" "+x.y;o+=n?q.svg?"z":"x":""}return o||"M0 0"}var Li=document.documentElement.style,Mn="ActiveXObject"in window,Wl=Mn&&!document.addEventListener,Ho="msLaunchUri"in navigator&&!("documentMode"in document),Ci=Ft("webkit"),qo=Ft("android"),jo=Ft("android 2")||Ft("android 3"),Vl=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),$l=qo&&Ft("Google")&&Vl<537&&!("AudioNode"in window),Ai=!!window.opera,Wo=!Ho&&Ft("chrome"),Vo=Ft("gecko")&&!Ci&&!Ai&&!Mn,Kl=!Wo&&Ft("safari"),$o=Ft("phantom"),Ko="OTransition"in Li,Jl=navigator.platform.indexOf("Win")===0,Jo=Mn&&"transition"in Li,Oi="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!jo,Go="MozPerspective"in Li,Gl=!window.L_DISABLE_3D&&(Jo||Oi||Go)&&!Ko&&!$o,Qe=typeof orientation<"u"||Ft("mobile"),Yl=Qe&&Ci,Xl=Qe&&Oi,Yo=!window.PointerEvent&&window.MSPointerEvent,Xo=!!(window.PointerEvent||Yo),Qo="ontouchstart"in window||!!window.TouchEvent,Ql=!window.L_NO_TOUCH&&(Qo||Xo),tc=Qe&&Ai,ec=Qe&&Vo,nc=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,ic=(function(){var t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",b,n),window.removeEventListener("testPassiveEventSupport",b,n)}catch{}return t})(),rc=(function(){return!!document.createElement("canvas").getContext})(),Mi=!!(document.createElementNS&&Zo("svg").createSVGRect),oc=!!Mi&&(function(){var t=document.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"})(),sc=!Mi&&(function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var n=t.firstChild;return n.style.behavior="url(#default#VML)",n&&typeof n.adj=="object"}catch{return!1}})(),ac=navigator.platform.indexOf("Mac")===0,uc=navigator.platform.indexOf("Linux")===0;function Ft(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var q={ie:Mn,ielt9:Wl,edge:Ho,webkit:Ci,android:qo,android23:jo,androidStock:$l,opera:Ai,chrome:Wo,gecko:Vo,safari:Kl,phantom:$o,opera12:Ko,win:Jl,ie3d:Jo,webkit3d:Oi,gecko3d:Go,any3d:Gl,mobile:Qe,mobileWebkit:Yl,mobileWebkit3d:Xl,msPointer:Yo,pointer:Xo,touch:Ql,touchNative:Qo,mobileOpera:tc,mobileGecko:ec,retina:nc,passiveEvents:ic,canvas:rc,svg:Mi,vml:sc,inlineSvg:oc,mac:ac,linux:uc},ts=q.msPointer?"MSPointerDown":"pointerdown",es=q.msPointer?"MSPointerMove":"pointermove",ns=q.msPointer?"MSPointerUp":"pointerup",is=q.msPointer?"MSPointerCancel":"pointercancel",Ri={touchstart:ts,touchmove:es,touchend:ns,touchcancel:is},rs={touchstart:_c,touchmove:Rn,touchend:Rn,touchcancel:Rn},Me={},os=!1;function lc(t,n,o){return n==="touchstart"&&dc(),rs[n]?(o=rs[n].bind(this,o),t.addEventListener(Ri[n],o,!1),o):(console.warn("wrong event specified:",n),b)}function cc(t,n,o){if(!Ri[n]){console.warn("wrong event specified:",n);return}t.removeEventListener(Ri[n],o,!1)}function hc(t){Me[t.pointerId]=t}function fc(t){Me[t.pointerId]&&(Me[t.pointerId]=t)}function ss(t){delete Me[t.pointerId]}function dc(){os||(document.addEventListener(ts,hc,!0),document.addEventListener(es,fc,!0),document.addEventListener(ns,ss,!0),document.addEventListener(is,ss,!0),os=!0)}function Rn(t,n){if(n.pointerType!==(n.MSPOINTER_TYPE_MOUSE||"mouse")){n.touches=[];for(var o in Me)n.touches.push(Me[o]);n.changedTouches=[n],t(n)}}function _c(t,n){n.MSPOINTER_TYPE_TOUCH&&n.pointerType===n.MSPOINTER_TYPE_TOUCH&&yt(n),Rn(t,n)}function pc(t){var n={},o,u;for(u in t)o=t[u],n[u]=o&&o.bind?o.bind(t):o;return t=n,n.type="dblclick",n.detail=2,n.isTrusted=!1,n._simulated=!0,n}var mc=200;function gc(t,n){t.addEventListener("dblclick",n);var o=0,u;function h(_){if(_.detail!==1){u=_.detail;return}if(!(_.pointerType==="mouse"||_.sourceCapabilities&&!_.sourceCapabilities.firesTouchEvents)){var g=hs(_);if(!(g.some(function(x){return x instanceof HTMLLabelElement&&x.attributes.for})&&!g.some(function(x){return x instanceof HTMLInputElement||x instanceof HTMLSelectElement}))){var w=Date.now();w-o<=mc?(u++,u===2&&n(pc(_))):u=1,o=w}}}return t.addEventListener("click",h),{dblclick:n,simDblclick:h}}function vc(t,n){t.removeEventListener("dblclick",n.dblclick),t.removeEventListener("click",n.simDblclick)}var Bi=Nn(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),tn=Nn(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),as=tn==="webkitTransition"||tn==="OTransition"?tn+"End":"transitionend";function us(t){return typeof t=="string"?document.getElementById(t):t}function en(t,n){var o=t.style[n]||t.currentStyle&&t.currentStyle[n];if((!o||o==="auto")&&document.defaultView){var u=document.defaultView.getComputedStyle(t,null);o=u?u[n]:null}return o==="auto"?null:o}function rt(t,n,o){var u=document.createElement(t);return u.className=n||"",o&&o.appendChild(u),u}function ct(t){var n=t.parentNode;n&&n.removeChild(t)}function Bn(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Re(t){var n=t.parentNode;n&&n.lastChild!==t&&n.appendChild(t)}function Be(t){var n=t.parentNode;n&&n.firstChild!==t&&n.insertBefore(t,n.firstChild)}function Ii(t,n){if(t.classList!==void 0)return t.classList.contains(n);var o=In(t);return o.length>0&&new RegExp("(^|\\s)"+n+"(\\s|$)").test(o)}function X(t,n){if(t.classList!==void 0)for(var o=A(n),u=0,h=o.length;u<h;u++)t.classList.add(o[u]);else if(!Ii(t,n)){var _=In(t);Ni(t,(_?_+" ":"")+n)}}function ht(t,n){t.classList!==void 0?t.classList.remove(n):Ni(t,E((" "+In(t)+" ").replace(" "+n+" "," ")))}function Ni(t,n){t.className.baseVal===void 0?t.className=n:t.className.baseVal=n}function In(t){return t.correspondingElement&&(t=t.correspondingElement),t.className.baseVal===void 0?t.className:t.className.baseVal}function Ot(t,n){"opacity"in t.style?t.style.opacity=n:"filter"in t.style&&yc(t,n)}function yc(t,n){var o=!1,u="DXImageTransform.Microsoft.Alpha";try{o=t.filters.item(u)}catch{if(n===1)return}n=Math.round(n*100),o?(o.Enabled=n!==100,o.Opacity=n):t.style.filter+=" progid:"+u+"(opacity="+n+")"}function Nn(t){for(var n=document.documentElement.style,o=0;o<t.length;o++)if(t[o]in n)return t[o];return!1}function ce(t,n,o){var u=n||new $(0,0);t.style[Bi]=(q.ie3d?"translate("+u.x+"px,"+u.y+"px)":"translate3d("+u.x+"px,"+u.y+"px,0)")+(o?" scale("+o+")":"")}function pt(t,n){t._leaflet_pos=n,q.any3d?ce(t,n):(t.style.left=n.x+"px",t.style.top=n.y+"px")}function he(t){return t._leaflet_pos||new $(0,0)}var nn,rn,ki;if("onselectstart"in document)nn=function(){G(window,"selectstart",yt)},rn=function(){at(window,"selectstart",yt)};else{var on=Nn(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);nn=function(){if(on){var t=document.documentElement.style;ki=t[on],t[on]="none"}},rn=function(){on&&(document.documentElement.style[on]=ki,ki=void 0)}}function zi(){G(window,"dragstart",yt)}function Di(){at(window,"dragstart",yt)}var kn,Fi;function Zi(t){for(;t.tabIndex===-1;)t=t.parentNode;t.style&&(zn(),kn=t,Fi=t.style.outlineStyle,t.style.outlineStyle="none",G(window,"keydown",zn))}function zn(){kn&&(kn.style.outlineStyle=Fi,kn=void 0,Fi=void 0,at(window,"keydown",zn))}function ls(t){do t=t.parentNode;while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function Ui(t){var n=t.getBoundingClientRect();return{x:n.width/t.offsetWidth||1,y:n.height/t.offsetHeight||1,boundingClientRect:n}}var wc={__proto__:null,TRANSFORM:Bi,TRANSITION:tn,TRANSITION_END:as,get:us,getStyle:en,create:rt,remove:ct,empty:Bn,toFront:Re,toBack:Be,hasClass:Ii,addClass:X,removeClass:ht,setClass:Ni,getClass:In,setOpacity:Ot,testProp:Nn,setTransform:ce,setPosition:pt,getPosition:he,get disableTextSelection(){return nn},get enableTextSelection(){return rn},disableImageDrag:zi,enableImageDrag:Di,preventOutline:Zi,restoreOutline:zn,getSizedParentNode:ls,getScale:Ui};function G(t,n,o,u){if(n&&typeof n=="object")for(var h in n)qi(t,h,n[h],o);else{n=A(n);for(var _=0,g=n.length;_<g;_++)qi(t,n[_],o,u)}return this}var Zt="_leaflet_events";function at(t,n,o,u){if(arguments.length===1)cs(t),delete t[Zt];else if(n&&typeof n=="object")for(var h in n)ji(t,h,n[h],o);else if(n=A(n),arguments.length===2)cs(t,function(w){return M(n,w)!==-1});else for(var _=0,g=n.length;_<g;_++)ji(t,n[_],o,u);return this}function cs(t,n){for(var o in t[Zt]){var u=o.split(/\d/)[0];(!n||n(u))&&ji(t,u,null,null,o)}}var Hi={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function qi(t,n,o,u){var h=n+d(o)+(u?"_"+d(u):"");if(t[Zt]&&t[Zt][h])return this;var _=function(w){return o.call(u||t,w||window.event)},g=_;!q.touchNative&&q.pointer&&n.indexOf("touch")===0?_=lc(t,n,_):q.touch&&n==="dblclick"?_=gc(t,_):"addEventListener"in t?n==="touchstart"||n==="touchmove"||n==="wheel"||n==="mousewheel"?t.addEventListener(Hi[n]||n,_,q.passiveEvents?{passive:!1}:!1):n==="mouseenter"||n==="mouseleave"?(_=function(w){w=w||window.event,Vi(t,w)&&g(w)},t.addEventListener(Hi[n],_,!1)):t.addEventListener(n,g,!1):t.attachEvent("on"+n,_),t[Zt]=t[Zt]||{},t[Zt][h]=_}function ji(t,n,o,u,h){h=h||n+d(o)+(u?"_"+d(u):"");var _=t[Zt]&&t[Zt][h];if(!_)return this;!q.touchNative&&q.pointer&&n.indexOf("touch")===0?cc(t,n,_):q.touch&&n==="dblclick"?vc(t,_):"removeEventListener"in t?t.removeEventListener(Hi[n]||n,_,!1):t.detachEvent("on"+n,_),t[Zt][h]=null}function fe(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Wi(t){return qi(t,"wheel",fe),this}function sn(t){return G(t,"mousedown touchstart dblclick contextmenu",fe),t._leaflet_disable_click=!0,this}function yt(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function de(t){return yt(t),fe(t),this}function hs(t){if(t.composedPath)return t.composedPath();for(var n=[],o=t.target;o;)n.push(o),o=o.parentNode;return n}function fs(t,n){if(!n)return new $(t.clientX,t.clientY);var o=Ui(n),u=o.boundingClientRect;return new $((t.clientX-u.left)/o.x-n.clientLeft,(t.clientY-u.top)/o.y-n.clientTop)}var bc=q.linux&&q.chrome?window.devicePixelRatio:q.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function ds(t){return q.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/bc:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function Vi(t,n){var o=n.relatedTarget;if(!o)return!0;try{for(;o&&o!==t;)o=o.parentNode}catch{return!1}return o!==t}var xc={__proto__:null,on:G,off:at,stopPropagation:fe,disableScrollPropagation:Wi,disableClickPropagation:sn,preventDefault:yt,stop:de,getPropagationPath:hs,getMousePosition:fs,getWheelDelta:ds,isExternalTarget:Vi,addListener:G,removeListener:at},_s=Vt.extend({run:function(t,n,o,u){this.stop(),this._el=t,this._inProgress=!0,this._duration=o||.25,this._easeOutPower=1/Math.max(u||.5,.2),this._startPos=he(t),this._offset=n.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=B(this._animate,this),this._step()},_step:function(t){var n=+new Date-this._startTime,o=this._duration*1e3;n<o?this._runFrame(this._easeOut(n/o),t):(this._runFrame(1),this._complete())},_runFrame:function(t,n){var o=this._startPos.add(this._offset.multiplyBy(t));n&&o._round(),pt(this._el,o),this.fire("step")},_complete:function(){k(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),it=Vt.extend({options:{crs:Xe,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,n){n=v(this,n),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=c(this._onResize,this),this._initEvents(),n.maxBounds&&this.setMaxBounds(n.maxBounds),n.zoom!==void 0&&(this._zoom=this._limitZoom(n.zoom)),n.center&&n.zoom!==void 0&&this.setView(Y(n.center),n.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=tn&&q.any3d&&!q.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),G(this._proxy,as,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,n,o){if(n=n===void 0?this._zoom:this._limitZoom(n),t=this._limitCenter(Y(t),n,this.options.maxBounds),o=o||{},this._stop(),this._loaded&&!o.reset&&o!==!0){o.animate!==void 0&&(o.zoom=a({animate:o.animate},o.zoom),o.pan=a({animate:o.animate,duration:o.duration},o.pan));var u=this._zoom!==n?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,n,o.zoom):this._tryAnimatedPan(t,o.pan);if(u)return clearTimeout(this._sizeTimer),this}return this._resetView(t,n,o.pan&&o.pan.noMoveStart),this},setZoom:function(t,n){return this._loaded?this.setView(this.getCenter(),t,{zoom:n}):(this._zoom=t,this)},zoomIn:function(t,n){return t=t||(q.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,n)},zoomOut:function(t,n){return t=t||(q.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,n)},setZoomAround:function(t,n,o){var u=this.getZoomScale(n),h=this.getSize().divideBy(2),_=t instanceof $?t:this.latLngToContainerPoint(t),g=_.subtract(h).multiplyBy(1-1/u),w=this.containerPointToLatLng(h.add(g));return this.setView(w,n,{zoom:o})},_getBoundsCenterZoom:function(t,n){n=n||{},t=t.getBounds?t.getBounds():ot(t);var o=Z(n.paddingTopLeft||n.padding||[0,0]),u=Z(n.paddingBottomRight||n.padding||[0,0]),h=this.getBoundsZoom(t,!1,o.add(u));if(h=typeof n.maxZoom=="number"?Math.min(n.maxZoom,h):h,h===1/0)return{center:t.getCenter(),zoom:h};var _=u.subtract(o).divideBy(2),g=this.project(t.getSouthWest(),h),w=this.project(t.getNorthEast(),h),x=this.unproject(g.add(w).divideBy(2).add(_),h);return{center:x,zoom:h}},fitBounds:function(t,n){if(t=ot(t),!t.isValid())throw new Error("Bounds are not valid.");var o=this._getBoundsCenterZoom(t,n);return this.setView(o.center,o.zoom,n)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,n){return this.setView(t,this._zoom,{pan:n})},panBy:function(t,n){if(t=Z(t).round(),n=n||{},!t.x&&!t.y)return this.fire("moveend");if(n.animate!==!0&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new _s,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),n.noMoveStart||this.fire("movestart"),n.animate!==!1){X(this._mapPane,"leaflet-pan-anim");var o=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,o,n.duration||.25,n.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,n,o){if(o=o||{},o.animate===!1||!q.any3d)return this.setView(t,n,o);this._stop();var u=this.project(this.getCenter()),h=this.project(t),_=this.getSize(),g=this._zoom;t=Y(t),n=n===void 0?g:n;var w=Math.max(_.x,_.y),x=w*this.getZoomScale(g,n),C=h.distanceTo(u)||1,I=1.42,V=I*I;function Q(mt){var Jn=mt?-1:1,ch=mt?x:w,hh=x*x-w*w+Jn*V*V*C*C,fh=2*ch*V*C,ir=hh/fh,Ks=Math.sqrt(ir*ir+1)-ir,dh=Ks<1e-9?-18:Math.log(Ks);return dh}function xt(mt){return(Math.exp(mt)-Math.exp(-mt))/2}function vt(mt){return(Math.exp(mt)+Math.exp(-mt))/2}function Rt(mt){return xt(mt)/vt(mt)}var St=Q(0);function Fe(mt){return w*(vt(St)/vt(St+I*mt))}function sh(mt){return w*(vt(St)*Rt(St+I*mt)-xt(St))/V}function ah(mt){return 1-Math.pow(1-mt,1.5)}var uh=Date.now(),Vs=(Q(1)-St)/I,lh=o.duration?1e3*o.duration:1e3*Vs*.8;function $s(){var mt=(Date.now()-uh)/lh,Jn=ah(mt)*Vs;mt<=1?(this._flyToFrame=B($s,this),this._move(this.unproject(u.add(h.subtract(u).multiplyBy(sh(Jn)/C)),g),this.getScaleZoom(w/Fe(Jn),g),{flyTo:!0})):this._move(t,n)._moveEnd(!0)}return this._moveStart(!0,o.noMoveStart),$s.call(this),this},flyToBounds:function(t,n){var o=this._getBoundsCenterZoom(t,n);return this.flyTo(o.center,o.zoom,n)},setMaxBounds:function(t){return t=ot(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var n=this.options.minZoom;return this.options.minZoom=t,this._loaded&&n!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var n=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&n!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,n){this._enforcingBounds=!0;var o=this.getCenter(),u=this._limitCenter(o,this._zoom,ot(t));return o.equals(u)||this.panTo(u,n),this._enforcingBounds=!1,this},panInside:function(t,n){n=n||{};var o=Z(n.paddingTopLeft||n.padding||[0,0]),u=Z(n.paddingBottomRight||n.padding||[0,0]),h=this.project(this.getCenter()),_=this.project(t),g=this.getPixelBounds(),w=_t([g.min.add(o),g.max.subtract(u)]),x=w.getSize();if(!w.contains(_)){this._enforcingBounds=!0;var C=_.subtract(w.getCenter()),I=w.extend(_).getSize().subtract(x);h.x+=C.x<0?-I.x:I.x,h.y+=C.y<0?-I.y:I.y,this.panTo(this.unproject(h),n),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=a({animate:!1,pan:!0},t===!0?{animate:!0}:t);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),u=n.divideBy(2).round(),h=o.divideBy(2).round(),_=u.subtract(h);return!_.x&&!_.y?this:(t.animate&&t.pan?this.panBy(_):(t.pan&&this._rawPanBy(_),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(c(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:o}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=a({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=c(this._handleGeolocationResponse,this),o=c(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,o,t):navigator.geolocation.getCurrentPosition(n,o,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var n=t.code,o=t.message||(n===1?"permission denied":n===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:n,message:"Geolocation error: "+o+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var n=t.coords.latitude,o=t.coords.longitude,u=new J(n,o),h=u.toBounds(t.coords.accuracy*2),_=this._locateOptions;if(_.setView){var g=this.getBoundsZoom(h);this.setView(u,_.maxZoom?Math.min(g,_.maxZoom):g)}var w={latlng:u,bounds:h,timestamp:t.timestamp};for(var x in t.coords)typeof t.coords[x]=="number"&&(w[x]=t.coords[x]);this.fire("locationfound",w)}},addHandler:function(t,n){if(!n)return this;var o=this[t]=new n(this);return this._handlers.push(o),this.options[t]&&o.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),ct(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(k(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)ct(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,n){var o="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),u=rt("div",o,n||this._mapPane);return t&&(this._panes[t]=u),u},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),n=this.unproject(t.getBottomLeft()),o=this.unproject(t.getTopRight());return new nt(n,o)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,n,o){t=ot(t),o=Z(o||[0,0]);var u=this.getZoom()||0,h=this.getMinZoom(),_=this.getMaxZoom(),g=t.getNorthWest(),w=t.getSouthEast(),x=this.getSize().subtract(o),C=_t(this.project(w,u),this.project(g,u)).getSize(),I=q.any3d?this.options.zoomSnap:1,V=x.x/C.x,Q=x.y/C.y,xt=n?Math.max(V,Q):Math.min(V,Q);return u=this.getScaleZoom(xt,u),I&&(u=Math.round(u/(I/100))*(I/100),u=n?Math.ceil(u/I)*I:Math.floor(u/I)*I),Math.max(h,Math.min(_,u))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new $(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,n){var o=this._getTopLeftPoint(t,n);return new et(o,o.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===void 0?this.getZoom():t)},getPane:function(t){return typeof t=="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,n){var o=this.options.crs;return n=n===void 0?this._zoom:n,o.scale(t)/o.scale(n)},getScaleZoom:function(t,n){var o=this.options.crs;n=n===void 0?this._zoom:n;var u=o.zoom(t*o.scale(n));return isNaN(u)?1/0:u},project:function(t,n){return n=n===void 0?this._zoom:n,this.options.crs.latLngToPoint(Y(t),n)},unproject:function(t,n){return n=n===void 0?this._zoom:n,this.options.crs.pointToLatLng(Z(t),n)},layerPointToLatLng:function(t){var n=Z(t).add(this.getPixelOrigin());return this.unproject(n)},latLngToLayerPoint:function(t){var n=this.project(Y(t))._round();return n._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(Y(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(ot(t))},distance:function(t,n){return this.options.crs.distance(Y(t),Y(n))},containerPointToLayerPoint:function(t){return Z(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return Z(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var n=this.containerPointToLayerPoint(Z(t));return this.layerPointToLatLng(n)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Y(t)))},mouseEventToContainerPoint:function(t){return fs(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var n=this._container=us(t);if(n){if(n._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");G(n,"scroll",this._onScroll,this),this._containerId=d(n)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&q.any3d,X(t,"leaflet-container"+(q.touch?" leaflet-touch":"")+(q.retina?" leaflet-retina":"")+(q.ielt9?" leaflet-oldie":"")+(q.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var n=en(t,"position");n!=="absolute"&&n!=="relative"&&n!=="fixed"&&n!=="sticky"&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),pt(this._mapPane,new $(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(X(t.markerPane,"leaflet-zoom-hide"),X(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,n,o){pt(this._mapPane,new $(0,0));var u=!this._loaded;this._loaded=!0,n=this._limitZoom(n),this.fire("viewprereset");var h=this._zoom!==n;this._moveStart(h,o)._move(t,n)._moveEnd(h),this.fire("viewreset"),u&&this.fire("load")},_moveStart:function(t,n){return t&&this.fire("zoomstart"),n||this.fire("movestart"),this},_move:function(t,n,o,u){n===void 0&&(n=this._zoom);var h=this._zoom!==n;return this._zoom=n,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),u?o&&o.pinch&&this.fire("zoom",o):((h||o&&o.pinch)&&this.fire("zoom",o),this.fire("move",o)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return k(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){pt(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[d(this._container)]=this;var n=t?at:G;n(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&n(window,"resize",this._onResize,this),q.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){k(this._resizeRequest),this._resizeRequest=B(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,n){for(var o=[],u,h=n==="mouseout"||n==="mouseover",_=t.target||t.srcElement,g=!1;_;){if(u=this._targets[d(_)],u&&(n==="click"||n==="preclick")&&this._draggableMoved(u)){g=!0;break}if(u&&u.listens(n,!0)&&(h&&!Vi(_,t)||(o.push(u),h))||_===this._container)break;_=_.parentNode}return!o.length&&!g&&!h&&this.listens(n,!0)&&(o=[this]),o},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var n=t.target||t.srcElement;if(!(!this._loaded||n._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(n))){var o=t.type;o==="mousedown"&&Zi(n),this._fireDOMEvent(t,o)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,n,o){if(t.type==="click"){var u=a({},t);u.type="preclick",this._fireDOMEvent(u,u.type,o)}var h=this._findEventTargets(t,n);if(o){for(var _=[],g=0;g<o.length;g++)o[g].listens(n,!0)&&_.push(o[g]);h=_.concat(h)}if(h.length){n==="contextmenu"&&yt(t);var w=h[0],x={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var C=w.getLatLng&&(!w._radius||w._radius<=10);x.containerPoint=C?this.latLngToContainerPoint(w.getLatLng()):this.mouseEventToContainerPoint(t),x.layerPoint=this.containerPointToLayerPoint(x.containerPoint),x.latlng=C?w.getLatLng():this.layerPointToLatLng(x.layerPoint)}for(g=0;g<h.length;g++)if(h[g].fire(n,x,!0),x.originalEvent._stopped||h[g].options.bubblingMouseEvents===!1&&M(this._mouseEvents,n)!==-1)return}},_draggableMoved:function(t){return t=t.dragging&&t.dragging.enabled()?t:this,t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,n=this._handlers.length;t<n;t++)this._handlers[t].disable()},whenReady:function(t,n){return this._loaded?t.call(n||this,{target:this}):this.on("load",t,n),this},_getMapPanePos:function(){return he(this._mapPane)||new $(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,n){var o=t&&n!==void 0?this._getNewPixelOrigin(t,n):this.getPixelOrigin();return o.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,n){var o=this.getSize()._divideBy(2);return this.project(t,n)._subtract(o)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,n,o){var u=this._getNewPixelOrigin(o,n);return this.project(t,n)._subtract(u)},_latLngBoundsToNewLayerBounds:function(t,n,o){var u=this._getNewPixelOrigin(o,n);return _t([this.project(t.getSouthWest(),n)._subtract(u),this.project(t.getNorthWest(),n)._subtract(u),this.project(t.getSouthEast(),n)._subtract(u),this.project(t.getNorthEast(),n)._subtract(u)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,n,o){if(!o)return t;var u=this.project(t,n),h=this.getSize().divideBy(2),_=new et(u.subtract(h),u.add(h)),g=this._getBoundsOffset(_,o,n);return Math.abs(g.x)<=1&&Math.abs(g.y)<=1?t:this.unproject(u.add(g),n)},_limitOffset:function(t,n){if(!n)return t;var o=this.getPixelBounds(),u=new et(o.min.add(t),o.max.add(t));return t.add(this._getBoundsOffset(u,n))},_getBoundsOffset:function(t,n,o){var u=_t(this.project(n.getNorthEast(),o),this.project(n.getSouthWest(),o)),h=u.min.subtract(t.min),_=u.max.subtract(t.max),g=this._rebound(h.x,-_.x),w=this._rebound(h.y,-_.y);return new $(g,w)},_rebound:function(t,n){return t+n>0?Math.round(t-n)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(n))},_limitZoom:function(t){var n=this.getMinZoom(),o=this.getMaxZoom(),u=q.any3d?this.options.zoomSnap:1;return u&&(t=Math.round(t/u)*u),Math.max(n,Math.min(o,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ht(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,n){var o=this._getCenterOffset(t)._trunc();return(n&&n.animate)!==!0&&!this.getSize().contains(o)?!1:(this.panBy(o,n),!0)},_createAnimProxy:function(){var t=this._proxy=rt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(n){var o=Bi,u=this._proxy.style[o];ce(this._proxy,this.project(n.center,n.zoom),this.getZoomScale(n.zoom,1)),u===this._proxy.style[o]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ct(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),n=this.getZoom();ce(this._proxy,this.project(t,n),this.getZoomScale(n,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,n,o){if(this._animatingZoom)return!0;if(o=o||{},!this._zoomAnimated||o.animate===!1||this._nothingToAnimate()||Math.abs(n-this._zoom)>this.options.zoomAnimationThreshold)return!1;var u=this.getZoomScale(n),h=this._getCenterOffset(t)._divideBy(1-1/u);return o.animate!==!0&&!this.getSize().contains(h)?!1:(B(function(){this._moveStart(!0,o.noMoveStart||!1)._animateZoom(t,n,!0)},this),!0)},_animateZoom:function(t,n,o,u){this._mapPane&&(o&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=n,X(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:n,noUpdate:u}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(c(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ht(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function Ec(t,n){return new it(t,n)}var It=F.extend({options:{position:"topright"},initialize:function(t){v(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var n=this._map;return n&&n.removeControl(this),this.options.position=t,n&&n.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var n=this._container=this.onAdd(t),o=this.getPosition(),u=t._controlCorners[o];return X(n,"leaflet-control"),o.indexOf("bottom")!==-1?u.insertBefore(n,u.firstChild):u.appendChild(n),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ct(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),an=function(t){return new It(t)};it.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},n="leaflet-",o=this._controlContainer=rt("div",n+"control-container",this._container);function u(h,_){var g=n+h+" "+n+_;t[h+_]=rt("div",g,o)}u("top","left"),u("top","right"),u("bottom","left"),u("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)ct(this._controlCorners[t]);ct(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var ps=It.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,n,o,u){return o<u?-1:u<o?1:0}},initialize:function(t,n,o){v(this,o),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var u in t)this._addLayer(t[u],u);for(u in n)this._addLayer(n[u],u,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var n=0;n<this._layers.length;n++)this._layers[n].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return It.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,n){return this._addLayer(t,n),this._map?this._update():this},addOverlay:function(t,n){return this._addLayer(t,n,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var n=this._getLayer(d(t));return n&&this._layers.splice(this._layers.indexOf(n),1),this._map?this._update():this},expand:function(){X(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(X(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):ht(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return ht(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",n=this._container=rt("div",t),o=this.options.collapsed;n.setAttribute("aria-haspopup",!0),sn(n),Wi(n);var u=this._section=rt("section",t+"-list");o&&(this._map.on("click",this.collapse,this),G(n,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var h=this._layersLink=rt("a",t+"-toggle",n);h.href="#",h.title="Layers",h.setAttribute("role","button"),G(h,{keydown:function(_){_.keyCode===13&&this._expandSafely()},click:function(_){yt(_),this._expandSafely()}},this),o||this.expand(),this._baseLayersList=rt("div",t+"-base",u),this._separator=rt("div",t+"-separator",u),this._overlaysList=rt("div",t+"-overlays",u),n.appendChild(u)},_getLayer:function(t){for(var n=0;n<this._layers.length;n++)if(this._layers[n]&&d(this._layers[n].layer)===t)return this._layers[n]},_addLayer:function(t,n,o){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:n,overlay:o}),this.options.sortLayers&&this._layers.sort(c(function(u,h){return this.options.sortFunction(u.layer,h.layer,u.name,h.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Bn(this._baseLayersList),Bn(this._overlaysList),this._layerControlInputs=[];var t,n,o,u,h=0;for(o=0;o<this._layers.length;o++)u=this._layers[o],this._addItem(u),n=n||u.overlay,t=t||!u.overlay,h+=u.overlay?0:1;return this.options.hideSingleBase&&(t=t&&h>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=n&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var n=this._getLayer(d(t.target)),o=n.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;o&&this._map.fire(o,n)},_createRadioElement:function(t,n){var o='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(n?' checked="checked"':"")+"/>",u=document.createElement("div");return u.innerHTML=o,u.firstChild},_addItem:function(t){var n=document.createElement("label"),o=this._map.hasLayer(t.layer),u;t.overlay?(u=document.createElement("input"),u.type="checkbox",u.className="leaflet-control-layers-selector",u.defaultChecked=o):u=this._createRadioElement("leaflet-base-layers_"+d(this),o),this._layerControlInputs.push(u),u.layerId=d(t.layer),G(u,"click",this._onInputClick,this);var h=document.createElement("span");h.innerHTML=" "+t.name;var _=document.createElement("span");n.appendChild(_),_.appendChild(u),_.appendChild(h);var g=t.overlay?this._overlaysList:this._baseLayersList;return g.appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,n,o,u=[],h=[];this._handlingClick=!0;for(var _=t.length-1;_>=0;_--)n=t[_],o=this._getLayer(n.layerId).layer,n.checked?u.push(o):n.checked||h.push(o);for(_=0;_<h.length;_++)this._map.hasLayer(h[_])&&this._map.removeLayer(h[_]);for(_=0;_<u.length;_++)this._map.hasLayer(u[_])||this._map.addLayer(u[_]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t=this._layerControlInputs,n,o,u=this._map.getZoom(),h=t.length-1;h>=0;h--)n=t[h],o=this._getLayer(n.layerId).layer,n.disabled=o.options.minZoom!==void 0&&u<o.options.minZoom||o.options.maxZoom!==void 0&&u>o.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,G(t,"click",yt),this.expand();var n=this;setTimeout(function(){at(t,"click",yt),n._preventClick=!1})}}),Pc=function(t,n,o){return new ps(t,n,o)},$i=It.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var n="leaflet-control-zoom",o=rt("div",n+" leaflet-bar"),u=this.options;return this._zoomInButton=this._createButton(u.zoomInText,u.zoomInTitle,n+"-in",o,this._zoomIn),this._zoomOutButton=this._createButton(u.zoomOutText,u.zoomOutTitle,n+"-out",o,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),o},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,n,o,u,h){var _=rt("a",o,u);return _.innerHTML=t,_.href="#",_.title=n,_.setAttribute("role","button"),_.setAttribute("aria-label",n),sn(_),G(_,"click",de),G(_,"click",h,this),G(_,"click",this._refocusOnMap,this),_},_updateDisabled:function(){var t=this._map,n="leaflet-disabled";ht(this._zoomInButton,n),ht(this._zoomOutButton,n),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(X(this._zoomOutButton,n),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(X(this._zoomInButton,n),this._zoomInButton.setAttribute("aria-disabled","true"))}});it.mergeOptions({zoomControl:!0}),it.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new $i,this.addControl(this.zoomControl))});var Tc=function(t){return new $i(t)},ms=It.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var n="leaflet-control-scale",o=rt("div",n),u=this.options;return this._addScales(u,n+"-line",o),t.on(u.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),o},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,n,o){t.metric&&(this._mScale=rt("div",n,o)),t.imperial&&(this._iScale=rt("div",n,o))},_update:function(){var t=this._map,n=t.getSize().y/2,o=t.distance(t.containerPointToLatLng([0,n]),t.containerPointToLatLng([this.options.maxWidth,n]));this._updateScales(o)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var n=this._getRoundNum(t),o=n<1e3?n+" m":n/1e3+" km";this._updateScale(this._mScale,o,n/t)},_updateImperial:function(t){var n=t*3.2808399,o,u,h;n>5280?(o=n/5280,u=this._getRoundNum(o),this._updateScale(this._iScale,u+" mi",u/o)):(h=this._getRoundNum(n),this._updateScale(this._iScale,h+" ft",h/n))},_updateScale:function(t,n,o){t.style.width=Math.round(this.options.maxWidth*o)+"px",t.innerHTML=n},_getRoundNum:function(t){var n=Math.pow(10,(Math.floor(t)+"").length-1),o=t/n;return o=o>=10?10:o>=5?5:o>=3?3:o>=2?2:1,n*o}}),Sc=function(t){return new ms(t)},Lc='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',Ki=It.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(q.inlineSvg?Lc+" ":"")+"Leaflet</a>"},initialize:function(t){v(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=rt("div","leaflet-control-attribution"),sn(this._container);for(var n in t._layers)t._layers[n].getAttribution&&this.addAttribution(t._layers[n].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var n in this._attributions)this._attributions[n]&&t.push(n);var o=[];this.options.prefix&&o.push(this.options.prefix),t.length&&o.push(t.join(", ")),this._container.innerHTML=o.join(' <span aria-hidden="true">|</span> ')}}});it.mergeOptions({attributionControl:!0}),it.addInitHook(function(){this.options.attributionControl&&new Ki().addTo(this)});var Cc=function(t){return new Ki(t)};It.Layers=ps,It.Zoom=$i,It.Scale=ms,It.Attribution=Ki,an.layers=Pc,an.zoom=Tc,an.scale=Sc,an.attribution=Cc;var Ut=F.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ut.addTo=function(t,n){return t.addHandler(n,this),this};var Ac={Events:ut},gs=q.touch?"touchstart mousedown":"mousedown",ne=Vt.extend({options:{clickTolerance:3},initialize:function(t,n,o,u){v(this,u),this._element=t,this._dragStartTarget=n||t,this._preventOutline=o},enable:function(){this._enabled||(G(this._dragStartTarget,gs,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ne._dragging===this&&this.finishDrag(!0),at(this._dragStartTarget,gs,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!Ii(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){ne._dragging===this&&this.finishDrag();return}if(!(ne._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(ne._dragging=this,this._preventOutline&&Zi(this._element),zi(),nn(),!this._moving)){this.fire("down");var n=t.touches?t.touches[0]:t,o=ls(this._element);this._startPoint=new $(n.clientX,n.clientY),this._startPos=he(this._element),this._parentScale=Ui(o);var u=t.type==="mousedown";G(document,u?"mousemove":"touchmove",this._onMove,this),G(document,u?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var n=t.touches&&t.touches.length===1?t.touches[0]:t,o=new $(n.clientX,n.clientY)._subtract(this._startPoint);!o.x&&!o.y||Math.abs(o.x)+Math.abs(o.y)<this.options.clickTolerance||(o.x/=this._parentScale.x,o.y/=this._parentScale.y,yt(t),this._moved||(this.fire("dragstart"),this._moved=!0,X(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),X(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(o),this._moving=!0,this._lastEvent=t,this._updatePosition())}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),pt(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){ht(document.body,"leaflet-dragging"),this._lastTarget&&(ht(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),at(document,"mousemove touchmove",this._onMove,this),at(document,"mouseup touchend touchcancel",this._onUp,this),Di(),rn();var n=this._moved&&this._moving;this._moving=!1,ne._dragging=!1,n&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function vs(t,n,o){var u,h=[1,4,2,8],_,g,w,x,C,I,V,Q;for(_=0,I=t.length;_<I;_++)t[_]._code=_e(t[_],n);for(w=0;w<4;w++){for(V=h[w],u=[],_=0,I=t.length,g=I-1;_<I;g=_++)x=t[_],C=t[g],x._code&V?C._code&V||(Q=Dn(C,x,V,n,o),Q._code=_e(Q,n),u.push(Q)):(C._code&V&&(Q=Dn(C,x,V,n,o),Q._code=_e(Q,n),u.push(Q)),u.push(x));t=u}return t}function ys(t,n){var o,u,h,_,g,w,x,C,I;if(!t||t.length===0)throw new Error("latlngs not passed");Mt(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var V=Y([0,0]),Q=ot(t),xt=Q.getNorthWest().distanceTo(Q.getSouthWest())*Q.getNorthEast().distanceTo(Q.getNorthWest());xt<1700&&(V=Ji(t));var vt=t.length,Rt=[];for(o=0;o<vt;o++){var St=Y(t[o]);Rt.push(n.project(Y([St.lat-V.lat,St.lng-V.lng])))}for(w=x=C=0,o=0,u=vt-1;o<vt;u=o++)h=Rt[o],_=Rt[u],g=h.y*_.x-_.y*h.x,x+=(h.x+_.x)*g,C+=(h.y+_.y)*g,w+=g*3;w===0?I=Rt[0]:I=[x/w,C/w];var Fe=n.unproject(Z(I));return Y([Fe.lat+V.lat,Fe.lng+V.lng])}function Ji(t){for(var n=0,o=0,u=0,h=0;h<t.length;h++){var _=Y(t[h]);n+=_.lat,o+=_.lng,u++}return Y([n/u,o/u])}var Oc={__proto__:null,clipPolygon:vs,polygonCenter:ys,centroid:Ji};function ws(t,n){if(!n||!t.length)return t.slice();var o=n*n;return t=Bc(t,o),t=Rc(t,o),t}function bs(t,n,o){return Math.sqrt(un(t,n,o,!0))}function Mc(t,n,o){return un(t,n,o)}function Rc(t,n){var o=t.length,u=typeof Uint8Array<"u"?Uint8Array:Array,h=new u(o);h[0]=h[o-1]=1,Gi(t,h,n,0,o-1);var _,g=[];for(_=0;_<o;_++)h[_]&&g.push(t[_]);return g}function Gi(t,n,o,u,h){var _=0,g,w,x;for(w=u+1;w<=h-1;w++)x=un(t[w],t[u],t[h],!0),x>_&&(g=w,_=x);_>o&&(n[g]=1,Gi(t,n,o,u,g),Gi(t,n,o,g,h))}function Bc(t,n){for(var o=[t[0]],u=1,h=0,_=t.length;u<_;u++)Ic(t[u],t[h])>n&&(o.push(t[u]),h=u);return h<_-1&&o.push(t[_-1]),o}var xs;function Es(t,n,o,u,h){var _=u?xs:_e(t,o),g=_e(n,o),w,x,C;for(xs=g;;){if(!(_|g))return[t,n];if(_&g)return!1;w=_||g,x=Dn(t,n,w,o,h),C=_e(x,o),w===_?(t=x,_=C):(n=x,g=C)}}function Dn(t,n,o,u,h){var _=n.x-t.x,g=n.y-t.y,w=u.min,x=u.max,C,I;return o&8?(C=t.x+_*(x.y-t.y)/g,I=x.y):o&4?(C=t.x+_*(w.y-t.y)/g,I=w.y):o&2?(C=x.x,I=t.y+g*(x.x-t.x)/_):o&1&&(C=w.x,I=t.y+g*(w.x-t.x)/_),new $(C,I,h)}function _e(t,n){var o=0;return t.x<n.min.x?o|=1:t.x>n.max.x&&(o|=2),t.y<n.min.y?o|=4:t.y>n.max.y&&(o|=8),o}function Ic(t,n){var o=n.x-t.x,u=n.y-t.y;return o*o+u*u}function un(t,n,o,u){var h=n.x,_=n.y,g=o.x-h,w=o.y-_,x=g*g+w*w,C;return x>0&&(C=((t.x-h)*g+(t.y-_)*w)/x,C>1?(h=o.x,_=o.y):C>0&&(h+=g*C,_+=w*C)),g=t.x-h,w=t.y-_,u?g*g+w*w:new $(h,_)}function Mt(t){return!O(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function Ps(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Mt(t)}function Ts(t,n){var o,u,h,_,g,w,x,C;if(!t||t.length===0)throw new Error("latlngs not passed");Mt(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var I=Y([0,0]),V=ot(t),Q=V.getNorthWest().distanceTo(V.getSouthWest())*V.getNorthEast().distanceTo(V.getNorthWest());Q<1700&&(I=Ji(t));var xt=t.length,vt=[];for(o=0;o<xt;o++){var Rt=Y(t[o]);vt.push(n.project(Y([Rt.lat-I.lat,Rt.lng-I.lng])))}for(o=0,u=0;o<xt-1;o++)u+=vt[o].distanceTo(vt[o+1])/2;if(u===0)C=vt[0];else for(o=0,_=0;o<xt-1;o++)if(g=vt[o],w=vt[o+1],h=g.distanceTo(w),_+=h,_>u){x=(_-u)/h,C=[w.x-x*(w.x-g.x),w.y-x*(w.y-g.y)];break}var St=n.unproject(Z(C));return Y([St.lat+I.lat,St.lng+I.lng])}var Nc={__proto__:null,simplify:ws,pointToSegmentDistance:bs,closestPointOnSegment:Mc,clipSegment:Es,_getEdgeIntersection:Dn,_getBitCode:_e,_sqClosestPointOnSegment:un,isFlat:Mt,_flat:Ps,polylineCenter:Ts},Yi={project:function(t){return new $(t.lng,t.lat)},unproject:function(t){return new J(t.y,t.x)},bounds:new et([-180,-90],[180,90])},Xi={R:6378137,R_MINOR:6356752314245179e-9,bounds:new et([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var n=Math.PI/180,o=this.R,u=t.lat*n,h=this.R_MINOR/o,_=Math.sqrt(1-h*h),g=_*Math.sin(u),w=Math.tan(Math.PI/4-u/2)/Math.pow((1-g)/(1+g),_/2);return u=-o*Math.log(Math.max(w,1e-10)),new $(t.lng*n*o,u)},unproject:function(t){for(var n=180/Math.PI,o=this.R,u=this.R_MINOR/o,h=Math.sqrt(1-u*u),_=Math.exp(-t.y/o),g=Math.PI/2-2*Math.atan(_),w=0,x=.1,C;w<15&&Math.abs(x)>1e-7;w++)C=h*Math.sin(g),C=Math.pow((1-C)/(1+C),h/2),x=Math.PI/2-2*Math.atan(_*C)-g,g+=x;return new J(g*n,t.x*n/o)}},kc={__proto__:null,LonLat:Yi,Mercator:Xi,SphericalMercator:At},zc=a({},K,{code:"EPSG:3395",projection:Xi,transformation:(function(){var t=.5/(Math.PI*Xi.R);return ee(t,.5,-t,.5)})()}),Ss=a({},K,{code:"EPSG:4326",projection:Yi,transformation:ee(1/180,1,-1/180,.5)}),Dc=a({},st,{projection:Yi,transformation:ee(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,n){var o=n.lng-t.lng,u=n.lat-t.lat;return Math.sqrt(o*o+u*u)},infinite:!0});st.Earth=K,st.EPSG3395=zc,st.EPSG3857=Xe,st.EPSG900913=le,st.EPSG4326=Ss,st.Simple=Dc;var Nt=Vt.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[d(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[d(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var n=t.target;if(n.hasLayer(this)){if(this._map=n,this._zoomAnimated=n._zoomAnimated,this.getEvents){var o=this.getEvents();n.on(o,this),this.once("remove",function(){n.off(o,this)},this)}this.onAdd(n),this.fire("add"),n.fire("layeradd",{layer:this})}}});it.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var n=d(t);return this._layers[n]?this:(this._layers[n]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var n=d(t);return this._layers[n]?(this._loaded&&t.onRemove(this),delete this._layers[n],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return d(t)in this._layers},eachLayer:function(t,n){for(var o in this._layers)t.call(n,this._layers[o]);return this},_addLayers:function(t){t=t?O(t)?t:[t]:[];for(var n=0,o=t.length;n<o;n++)this.addLayer(t[n])},_addZoomLimit:function(t){(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom))&&(this._zoomBoundLayers[d(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var n=d(t);this._zoomBoundLayers[n]&&(delete this._zoomBoundLayers[n],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,n=-1/0,o=this._getZoomSpan();for(var u in this._zoomBoundLayers){var h=this._zoomBoundLayers[u].options;t=h.minZoom===void 0?t:Math.min(t,h.minZoom),n=h.maxZoom===void 0?n:Math.max(n,h.maxZoom)}this._layersMaxZoom=n===-1/0?void 0:n,this._layersMinZoom=t===1/0?void 0:t,o!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Ie=Nt.extend({initialize:function(t,n){v(this,n),this._layers={};var o,u;if(t)for(o=0,u=t.length;o<u;o++)this.addLayer(t[o])},addLayer:function(t){var n=this.getLayerId(t);return this._layers[n]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var n=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[n]&&this._map.removeLayer(this._layers[n]),delete this._layers[n],this},hasLayer:function(t){var n=typeof t=="number"?t:this.getLayerId(t);return n in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var n=Array.prototype.slice.call(arguments,1),o,u;for(o in this._layers)u=this._layers[o],u[t]&&u[t].apply(u,n);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,n){for(var o in this._layers)t.call(n,this._layers[o]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return d(t)}}),Fc=function(t,n){return new Ie(t,n)},$t=Ie.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Ie.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Ie.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new nt;for(var n in this._layers){var o=this._layers[n];t.extend(o.getBounds?o.getBounds():o.getLatLng())}return t}}),Zc=function(t,n){return new $t(t,n)},Ne=F.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){v(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,n){var o=this._getIconUrl(t);if(!o){if(t==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var u=this._createImg(o,n&&n.tagName==="IMG"?n:null);return this._setIconStyles(u,t),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),u},_setIconStyles:function(t,n){var o=this.options,u=o[n+"Size"];typeof u=="number"&&(u=[u,u]);var h=Z(u),_=Z(n==="shadow"&&o.shadowAnchor||o.iconAnchor||h&&h.divideBy(2,!0));t.className="leaflet-marker-"+n+" "+(o.className||""),_&&(t.style.marginLeft=-_.x+"px",t.style.marginTop=-_.y+"px"),h&&(t.style.width=h.x+"px",t.style.height=h.y+"px")},_createImg:function(t,n){return n=n||document.createElement("img"),n.src=t,n},_getIconUrl:function(t){return q.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Uc(t){return new Ne(t)}var ln=Ne.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return typeof ln.imagePath!="string"&&(ln.imagePath=this._detectIconPath()),(this.options.imagePath||ln.imagePath)+Ne.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var n=function(o,u,h){var _=u.exec(o);return _&&_[h]};return t=n(t,/^url\((['"])?(.+)\1\)$/,2),t&&n(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=rt("div","leaflet-default-icon-path",document.body),n=en(t,"background-image")||en(t,"backgroundImage");if(document.body.removeChild(t),n=this._stripUrl(n),n)return n;var o=document.querySelector('link[href$="leaflet.css"]');return o?o.href.substring(0,o.href.length-11-1):""}}),Ls=Ut.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new ne(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),X(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&ht(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var n=this._marker,o=n._map,u=this._marker.options.autoPanSpeed,h=this._marker.options.autoPanPadding,_=he(n._icon),g=o.getPixelBounds(),w=o.getPixelOrigin(),x=_t(g.min._subtract(w).add(h),g.max._subtract(w).subtract(h));if(!x.contains(_)){var C=Z((Math.max(x.max.x,_.x)-x.max.x)/(g.max.x-x.max.x)-(Math.min(x.min.x,_.x)-x.min.x)/(g.min.x-x.min.x),(Math.max(x.max.y,_.y)-x.max.y)/(g.max.y-x.max.y)-(Math.min(x.min.y,_.y)-x.min.y)/(g.min.y-x.min.y)).multiplyBy(u);o.panBy(C,{animate:!1}),this._draggable._newPos._add(C),this._draggable._startPos._add(C),pt(n._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=B(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(k(this._panRequest),this._panRequest=B(this._adjustPan.bind(this,t)))},_onDrag:function(t){var n=this._marker,o=n._shadow,u=he(n._icon),h=n._map.layerPointToLatLng(u);o&&pt(o,u),n._latlng=h,t.latlng=h,t.oldLatLng=this._oldLatLng,n.fire("move",t).fire("drag",t)},_onDragEnd:function(t){k(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Fn=Nt.extend({options:{icon:new ln,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,n){v(this,n),this._latlng=Y(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var n=this._latlng;return this._latlng=Y(t),this.update(),this.fire("move",{oldLatLng:n,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,n="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),o=t.icon.createIcon(this._icon),u=!1;o!==this._icon&&(this._icon&&this._removeIcon(),u=!0,t.title&&(o.title=t.title),o.tagName==="IMG"&&(o.alt=t.alt||"")),X(o,n),t.keyboard&&(o.tabIndex="0",o.setAttribute("role","button")),this._icon=o,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&G(o,"focus",this._panOnFocus,this);var h=t.icon.createShadow(this._shadow),_=!1;h!==this._shadow&&(this._removeShadow(),_=!0),h&&(X(h,n),h.alt=""),this._shadow=h,t.opacity<1&&this._updateOpacity(),u&&this.getPane().appendChild(this._icon),this._initInteraction(),h&&_&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&at(this._icon,"focus",this._panOnFocus,this),ct(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ct(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&pt(this._icon,t),this._shadow&&pt(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var n=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(n)},_initInteraction:function(){if(this.options.interactive&&(X(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Ls)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Ls(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&Ot(this._icon,t),this._shadow&&Ot(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var n=this.options.icon.options,o=n.iconSize?Z(n.iconSize):Z(0,0),u=n.iconAnchor?Z(n.iconAnchor):Z(0,0);t.panInside(this._latlng,{paddingTopLeft:u,paddingBottomRight:o.subtract(u)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Hc(t,n){return new Fn(t,n)}var ie=Nt.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return v(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Zn=ie.extend({options:{fill:!0,radius:10},initialize:function(t,n){v(this,n),this._latlng=Y(t),this._radius=this.options.radius},setLatLng:function(t){var n=this._latlng;return this._latlng=Y(t),this.redraw(),this.fire("move",{oldLatLng:n,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var n=t&&t.radius||this._radius;return ie.prototype.setStyle.call(this,t),this.setRadius(n),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,n=this._radiusY||t,o=this._clickTolerance(),u=[t+o,n+o];this._pxBounds=new et(this._point.subtract(u),this._point.add(u))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function qc(t,n){return new Zn(t,n)}var Qi=Zn.extend({initialize:function(t,n,o){if(typeof n=="number"&&(n=a({},o,{radius:n})),v(this,n),this._latlng=Y(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new nt(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:ie.prototype.setStyle,_project:function(){var t=this._latlng.lng,n=this._latlng.lat,o=this._map,u=o.options.crs;if(u.distance===K.distance){var h=Math.PI/180,_=this._mRadius/K.R/h,g=o.project([n+_,t]),w=o.project([n-_,t]),x=g.add(w).divideBy(2),C=o.unproject(x).lat,I=Math.acos((Math.cos(_*h)-Math.sin(n*h)*Math.sin(C*h))/(Math.cos(n*h)*Math.cos(C*h)))/h;(isNaN(I)||I===0)&&(I=_/Math.cos(Math.PI/180*n)),this._point=x.subtract(o.getPixelOrigin()),this._radius=isNaN(I)?0:x.x-o.project([C,t-I]).x,this._radiusY=x.y-g.y}else{var V=u.unproject(u.project(this._latlng).subtract([this._mRadius,0]));this._point=o.latLngToLayerPoint(this._latlng),this._radius=this._point.x-o.latLngToLayerPoint(V).x}this._updateBounds()}});function jc(t,n,o){return new Qi(t,n,o)}var Kt=ie.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,n){v(this,n),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var n=1/0,o=null,u=un,h,_,g=0,w=this._parts.length;g<w;g++)for(var x=this._parts[g],C=1,I=x.length;C<I;C++){h=x[C-1],_=x[C];var V=u(t,h,_,!0);V<n&&(n=V,o=u(t,h,_))}return o&&(o.distance=Math.sqrt(n)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Ts(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,n){return n=n||this._defaultShape(),t=Y(t),n.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new nt,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Mt(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var n=[],o=Mt(t),u=0,h=t.length;u<h;u++)o?(n[u]=Y(t[u]),this._bounds.extend(n[u])):n[u]=this._convertLatLngs(t[u]);return n},_project:function(){var t=new et;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),n=new $(t,t);this._rawPxBounds&&(this._pxBounds=new et([this._rawPxBounds.min.subtract(n),this._rawPxBounds.max.add(n)]))},_projectLatlngs:function(t,n,o){var u=t[0]instanceof J,h=t.length,_,g;if(u){for(g=[],_=0;_<h;_++)g[_]=this._map.latLngToLayerPoint(t[_]),o.extend(g[_]);n.push(g)}else for(_=0;_<h;_++)this._projectLatlngs(t[_],n,o)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}var n=this._parts,o,u,h,_,g,w,x;for(o=0,h=0,_=this._rings.length;o<_;o++)for(x=this._rings[o],u=0,g=x.length;u<g-1;u++)w=Es(x[u],x[u+1],t,u,!0),w&&(n[h]=n[h]||[],n[h].push(w[0]),(w[1]!==x[u+1]||u===g-2)&&(n[h].push(w[1]),h++))}},_simplifyPoints:function(){for(var t=this._parts,n=this.options.smoothFactor,o=0,u=t.length;o<u;o++)t[o]=ws(t[o],n)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,n){var o,u,h,_,g,w,x=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,_=this._parts.length;o<_;o++)for(w=this._parts[o],u=0,g=w.length,h=g-1;u<g;h=u++)if(!(!n&&u===0)&&bs(t,w[h],w[u])<=x)return!0;return!1}});function Wc(t,n){return new Kt(t,n)}Kt._flat=Ps;var ke=Kt.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return ys(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var n=Kt.prototype._convertLatLngs.call(this,t),o=n.length;return o>=2&&n[0]instanceof J&&n[0].equals(n[o-1])&&n.pop(),n},_setLatLngs:function(t){Kt.prototype._setLatLngs.call(this,t),Mt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Mt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,n=this.options.weight,o=new $(n,n);if(t=new et(t.min.subtract(o),t.max.add(o)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var u=0,h=this._rings.length,_;u<h;u++)_=vs(this._rings[u],t,!0),_.length&&this._parts.push(_)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var n=!1,o,u,h,_,g,w,x,C;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(_=0,x=this._parts.length;_<x;_++)for(o=this._parts[_],g=0,C=o.length,w=C-1;g<C;w=g++)u=o[g],h=o[w],u.y>t.y!=h.y>t.y&&t.x<(h.x-u.x)*(t.y-u.y)/(h.y-u.y)+u.x&&(n=!n);return n||Kt.prototype._containsPoint.call(this,t,!0)}});function Vc(t,n){return new ke(t,n)}var Jt=$t.extend({initialize:function(t,n){v(this,n),this._layers={},t&&this.addData(t)},addData:function(t){var n=O(t)?t:t.features,o,u,h;if(n){for(o=0,u=n.length;o<u;o++)h=n[o],(h.geometries||h.geometry||h.features||h.coordinates)&&this.addData(h);return this}var _=this.options;if(_.filter&&!_.filter(t))return this;var g=Un(t,_);return g?(g.feature=jn(t),g.defaultOptions=g.options,this.resetStyle(g),_.onEachFeature&&_.onEachFeature(t,g),this.addLayer(g)):this},resetStyle:function(t){return t===void 0?this.eachLayer(this.resetStyle,this):(t.options=a({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(n){this._setLayerStyle(n,t)},this)},_setLayerStyle:function(t,n){t.setStyle&&(typeof n=="function"&&(n=n(t.feature)),t.setStyle(n))}});function Un(t,n){var o=t.type==="Feature"?t.geometry:t,u=o?o.coordinates:null,h=[],_=n&&n.pointToLayer,g=n&&n.coordsToLatLng||tr,w,x,C,I;if(!u&&!o)return null;switch(o.type){case"Point":return w=g(u),Cs(_,t,w,n);case"MultiPoint":for(C=0,I=u.length;C<I;C++)w=g(u[C]),h.push(Cs(_,t,w,n));return new $t(h);case"LineString":case"MultiLineString":return x=Hn(u,o.type==="LineString"?0:1,g),new Kt(x,n);case"Polygon":case"MultiPolygon":return x=Hn(u,o.type==="Polygon"?1:2,g),new ke(x,n);case"GeometryCollection":for(C=0,I=o.geometries.length;C<I;C++){var V=Un({geometry:o.geometries[C],type:"Feature",properties:t.properties},n);V&&h.push(V)}return new $t(h);case"FeatureCollection":for(C=0,I=o.features.length;C<I;C++){var Q=Un(o.features[C],n);Q&&h.push(Q)}return new $t(h);default:throw new Error("Invalid GeoJSON object.")}}function Cs(t,n,o,u){return t?t(n,o):new Fn(o,u&&u.markersInheritOptions&&u)}function tr(t){return new J(t[1],t[0],t[2])}function Hn(t,n,o){for(var u=[],h=0,_=t.length,g;h<_;h++)g=n?Hn(t[h],n-1,o):(o||tr)(t[h]),u.push(g);return u}function er(t,n){return t=Y(t),t.alt!==void 0?[T(t.lng,n),T(t.lat,n),T(t.alt,n)]:[T(t.lng,n),T(t.lat,n)]}function qn(t,n,o,u){for(var h=[],_=0,g=t.length;_<g;_++)h.push(n?qn(t[_],Mt(t[_])?0:n-1,o,u):er(t[_],u));return!n&&o&&h.length>0&&h.push(h[0].slice()),h}function ze(t,n){return t.feature?a({},t.feature,{geometry:n}):jn(n)}function jn(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var nr={toGeoJSON:function(t){return ze(this,{type:"Point",coordinates:er(this.getLatLng(),t)})}};Fn.include(nr),Qi.include(nr),Zn.include(nr),Kt.include({toGeoJSON:function(t){var n=!Mt(this._latlngs),o=qn(this._latlngs,n?1:0,!1,t);return ze(this,{type:(n?"Multi":"")+"LineString",coordinates:o})}}),ke.include({toGeoJSON:function(t){var n=!Mt(this._latlngs),o=n&&!Mt(this._latlngs[0]),u=qn(this._latlngs,o?2:n?1:0,!0,t);return n||(u=[u]),ze(this,{type:(o?"Multi":"")+"Polygon",coordinates:u})}}),Ie.include({toMultiPoint:function(t){var n=[];return this.eachLayer(function(o){n.push(o.toGeoJSON(t).geometry.coordinates)}),ze(this,{type:"MultiPoint",coordinates:n})},toGeoJSON:function(t){var n=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(n==="MultiPoint")return this.toMultiPoint(t);var o=n==="GeometryCollection",u=[];return this.eachLayer(function(h){if(h.toGeoJSON){var _=h.toGeoJSON(t);if(o)u.push(_.geometry);else{var g=jn(_);g.type==="FeatureCollection"?u.push.apply(u,g.features):u.push(g)}}}),o?ze(this,{geometries:u,type:"GeometryCollection"}):{type:"FeatureCollection",features:u}}});function As(t,n){return new Jt(t,n)}var $c=As,Wn=Nt.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,n,o){this._url=t,this._bounds=ot(n),v(this,o)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(X(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ct(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&Re(this._image),this},bringToBack:function(){return this._map&&Be(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=ot(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG",n=this._image=t?this._url:rt("img");if(X(n,"leaflet-image-layer"),this._zoomAnimated&&X(n,"leaflet-zoom-animated"),this.options.className&&X(n,this.options.className),n.onselectstart=b,n.onmousemove=b,n.onload=c(this.fire,this,"load"),n.onerror=c(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(n.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=n.src;return}n.src=this._url,n.alt=this.options.alt},_animateZoom:function(t){var n=this._map.getZoomScale(t.zoom),o=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;ce(this._image,o,n)},_reset:function(){var t=this._image,n=new et(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),o=n.getSize();pt(t,n.min),t.style.width=o.x+"px",t.style.height=o.y+"px"},_updateOpacity:function(){Ot(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Kc=function(t,n,o){return new Wn(t,n,o)},Os=Wn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t=this._url.tagName==="VIDEO",n=this._image=t?this._url:rt("video");if(X(n,"leaflet-image-layer"),this._zoomAnimated&&X(n,"leaflet-zoom-animated"),this.options.className&&X(n,this.options.className),n.onselectstart=b,n.onmousemove=b,n.onloadeddata=c(this.fire,this,"load"),t){for(var o=n.getElementsByTagName("source"),u=[],h=0;h<o.length;h++)u.push(o[h].src);this._url=o.length>0?u:[n.src];return}O(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(n.style,"objectFit")&&(n.style.objectFit="fill"),n.autoplay=!!this.options.autoplay,n.loop=!!this.options.loop,n.muted=!!this.options.muted,n.playsInline=!!this.options.playsInline;for(var _=0;_<this._url.length;_++){var g=rt("source");g.src=this._url[_],n.appendChild(g)}}});function Jc(t,n,o){return new Os(t,n,o)}var Ms=Wn.extend({_initImage:function(){var t=this._image=this._url;X(t,"leaflet-image-layer"),this._zoomAnimated&&X(t,"leaflet-zoom-animated"),this.options.className&&X(t,this.options.className),t.onselectstart=b,t.onmousemove=b}});function Gc(t,n,o){return new Ms(t,n,o)}var Ht=Nt.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,n){t&&(t instanceof J||O(t))?(this._latlng=Y(t),v(this,n)):(v(this,t),this._source=n),this.options.content&&(this._content=this.options.content)},openOn:function(t){return t=arguments.length?t:this._source._map,t.hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&Ot(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&Ot(this._container,1),this.bringToFront(),this.options.interactive&&(X(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(Ot(this._container,0),this._removeTimeout=setTimeout(c(ct,void 0,this._container),200)):ct(this._container),this.options.interactive&&(ht(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=Y(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Re(this._container),this},bringToBack:function(){return this._map&&Be(this._container),this},_prepareOpen:function(t){var n=this._source;if(!n._map)return!1;if(n instanceof $t){n=null;var o=this._source._layers;for(var u in o)if(o[u]._map){n=o[u];break}if(!n)return!1;this._source=n}if(!t)if(n.getCenter)t=n.getCenter();else if(n.getLatLng)t=n.getLatLng();else if(n.getBounds)t=n.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,n=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof n=="string")t.innerHTML=n;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(n)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),n=Z(this.options.offset),o=this._getAnchor();this._zoomAnimated?pt(this._container,t.add(o)):n=n.add(t).add(o);var u=this._containerBottom=-n.y,h=this._containerLeft=-Math.round(this._containerWidth/2)+n.x;this._container.style.bottom=u+"px",this._container.style.left=h+"px"}},_getAnchor:function(){return[0,0]}});it.include({_initOverlay:function(t,n,o,u){var h=n;return h instanceof t||(h=new t(u).setContent(n)),o&&h.setLatLng(o),h}}),Nt.include({_initOverlay:function(t,n,o,u){var h=o;return h instanceof t?(v(h,u),h._source=this):(h=n&&!u?n:new t(u,this),h.setContent(o)),h}});var Vn=Ht.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t=arguments.length?t:this._source._map,!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,Ht.prototype.openOn.call(this,t)},onAdd:function(t){Ht.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ie||this._source.on("preclick",fe))},onRemove:function(t){Ht.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ie||this._source.off("preclick",fe))},getEvents:function(){var t=Ht.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",n=this._container=rt("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),o=this._wrapper=rt("div",t+"-content-wrapper",n);if(this._contentNode=rt("div",t+"-content",o),sn(n),Wi(this._contentNode),G(n,"contextmenu",fe),this._tipContainer=rt("div",t+"-tip-container",n),this._tip=rt("div",t+"-tip",this._tipContainer),this.options.closeButton){var u=this._closeButton=rt("a",t+"-close-button",n);u.setAttribute("role","button"),u.setAttribute("aria-label","Close popup"),u.href="#close",u.innerHTML='<span aria-hidden="true">×</span>',G(u,"click",function(h){yt(h),this.close()},this)}},_updateLayout:function(){var t=this._contentNode,n=t.style;n.width="",n.whiteSpace="nowrap";var o=t.offsetWidth;o=Math.min(o,this.options.maxWidth),o=Math.max(o,this.options.minWidth),n.width=o+1+"px",n.whiteSpace="",n.height="";var u=t.offsetHeight,h=this.options.maxHeight,_="leaflet-popup-scrolled";h&&u>h?(n.height=h+"px",X(t,_)):ht(t,_),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var n=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),o=this._getAnchor();pt(this._container,n.add(o))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var t=this._map,n=parseInt(en(this._container,"marginBottom"),10)||0,o=this._container.offsetHeight+n,u=this._containerWidth,h=new $(this._containerLeft,-o-this._containerBottom);h._add(he(this._container));var _=t.layerPointToContainerPoint(h),g=Z(this.options.autoPanPadding),w=Z(this.options.autoPanPaddingTopLeft||g),x=Z(this.options.autoPanPaddingBottomRight||g),C=t.getSize(),I=0,V=0;_.x+u+x.x>C.x&&(I=_.x+u-C.x+x.x),_.x-I-w.x<0&&(I=_.x-w.x),_.y+o+x.y>C.y&&(V=_.y+o-C.y+x.y),_.y-V-w.y<0&&(V=_.y-w.y),(I||V)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([I,V]))}},_getAnchor:function(){return Z(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Yc=function(t,n){return new Vn(t,n)};it.mergeOptions({closePopupOnClick:!0}),it.include({openPopup:function(t,n,o){return this._initOverlay(Vn,t,n,o).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),Nt.include({bindPopup:function(t,n){return this._popup=this._initOverlay(Vn,this._popup,t,n),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof $t||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(!(!this._popup||!this._map)){de(t);var n=t.layer||t.target;if(this._popup._source===n&&!(n instanceof ie)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=n,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){t.originalEvent.keyCode===13&&this._openPopup(t)}});var $n=Ht.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){Ht.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){Ht.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=Ht.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip",n=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=rt("div",n),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+d(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var n,o,u=this._map,h=this._container,_=u.latLngToContainerPoint(u.getCenter()),g=u.layerPointToContainerPoint(t),w=this.options.direction,x=h.offsetWidth,C=h.offsetHeight,I=Z(this.options.offset),V=this._getAnchor();w==="top"?(n=x/2,o=C):w==="bottom"?(n=x/2,o=0):w==="center"?(n=x/2,o=C/2):w==="right"?(n=0,o=C/2):w==="left"?(n=x,o=C/2):g.x<_.x?(w="right",n=0,o=C/2):(w="left",n=x+(I.x+V.x)*2,o=C/2),t=t.subtract(Z(n,o,!0)).add(I).add(V),ht(h,"leaflet-tooltip-right"),ht(h,"leaflet-tooltip-left"),ht(h,"leaflet-tooltip-top"),ht(h,"leaflet-tooltip-bottom"),X(h,"leaflet-tooltip-"+w),pt(h,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&Ot(this._container,t)},_animateZoom:function(t){var n=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(n)},_getAnchor:function(){return Z(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Xc=function(t,n){return new $n(t,n)};it.include({openTooltip:function(t,n,o){return this._initOverlay($n,t,n,o).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),Nt.include({bindTooltip:function(t,n){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay($n,this._tooltip,t,n),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(!(!t&&this._tooltipHandlersAdded)){var n=t?"off":"on",o={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?o.add=this._openTooltip:(o.mouseover=this._openTooltip,o.mouseout=this.closeTooltip,o.click=this._openTooltip,this._map?this._addFocusListeners():o.add=this._addFocusListeners),this._tooltip.options.sticky&&(o.mousemove=this._moveTooltip),this[n](o),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof $t||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var n=typeof t.getElement=="function"&&t.getElement();n&&(G(n,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),G(n,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var n=typeof t.getElement=="function"&&t.getElement();n&&n.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var n=this;this._map.once("moveend",function(){n._openOnceFlag=!1,n._openTooltip(t)});return}this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)}},_moveTooltip:function(t){var n=t.latlng,o,u;this._tooltip.options.sticky&&t.originalEvent&&(o=this._map.mouseEventToContainerPoint(t.originalEvent),u=this._map.containerPointToLayerPoint(o),n=this._map.layerPointToLatLng(u)),this._tooltip.setLatLng(n)}});var Rs=Ne.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var n=t&&t.tagName==="DIV"?t:document.createElement("div"),o=this.options;if(o.html instanceof Element?(Bn(n),n.appendChild(o.html)):n.innerHTML=o.html!==!1?o.html:"",o.bgPos){var u=Z(o.bgPos);n.style.backgroundPosition=-u.x+"px "+-u.y+"px"}return this._setIconStyles(n,"icon"),n},createShadow:function(){return null}});function Qc(t){return new Rs(t)}Ne.Default=ln;var cn=Nt.extend({options:{tileSize:256,opacity:1,updateWhenIdle:q.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){v(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),ct(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Re(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Be(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=p(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof $?t:new $(t,t)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var n=this.getPane().children,o=-t(-1/0,1/0),u=0,h=n.length,_;u<h;u++)_=n[u].style.zIndex,n[u]!==this._container&&_&&(o=t(o,+_));isFinite(o)&&(this.options.zIndex=o+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!q.ielt9){Ot(this._container,this.options.opacity);var t=+new Date,n=!1,o=!1;for(var u in this._tiles){var h=this._tiles[u];if(!(!h.current||!h.loaded)){var _=Math.min(1,(t-h.loaded)/200);Ot(h.el,_),_<1?n=!0:(h.active?o=!0:this._onOpaqueTile(h),h.active=!0)}}o&&!this._noPrune&&this._pruneTiles(),n&&(k(this._fadeFrame),this._fadeFrame=B(this._updateOpacity,this))}},_onOpaqueTile:b,_initContainer:function(){this._container||(this._container=rt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,n=this.options.maxZoom;if(t!==void 0){for(var o in this._levels)o=Number(o),this._levels[o].el.children.length||o===t?(this._levels[o].el.style.zIndex=n-Math.abs(t-o),this._onUpdateLevel(o)):(ct(this._levels[o].el),this._removeTilesAtZoom(o),this._onRemoveLevel(o),delete this._levels[o]);var u=this._levels[t],h=this._map;return u||(u=this._levels[t]={},u.el=rt("div","leaflet-tile-container leaflet-zoom-animated",this._container),u.el.style.zIndex=n,u.origin=h.project(h.unproject(h.getPixelOrigin()),t).round(),u.zoom=t,this._setZoomTransform(u,h.getCenter(),h.getZoom()),b(u.el.offsetWidth),this._onCreateLevel(u)),this._level=u,u}},_onUpdateLevel:b,_onRemoveLevel:b,_onCreateLevel:b,_pruneTiles:function(){if(this._map){var t,n,o=this._map.getZoom();if(o>this.options.maxZoom||o<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles)n=this._tiles[t],n.retain=n.current;for(t in this._tiles)if(n=this._tiles[t],n.current&&!n.active){var u=n.coords;this._retainParent(u.x,u.y,u.z,u.z-5)||this._retainChildren(u.x,u.y,u.z,u.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}},_removeTilesAtZoom:function(t){for(var n in this._tiles)this._tiles[n].coords.z===t&&this._removeTile(n)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)ct(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,n,o,u){var h=Math.floor(t/2),_=Math.floor(n/2),g=o-1,w=new $(+h,+_);w.z=+g;var x=this._tileCoordsToKey(w),C=this._tiles[x];return C&&C.active?(C.retain=!0,!0):(C&&C.loaded&&(C.retain=!0),g>u?this._retainParent(h,_,g,u):!1)},_retainChildren:function(t,n,o,u){for(var h=2*t;h<2*t+2;h++)for(var _=2*n;_<2*n+2;_++){var g=new $(h,_);g.z=o+1;var w=this._tileCoordsToKey(g),x=this._tiles[w];if(x&&x.active){x.retain=!0;continue}else x&&x.loaded&&(x.retain=!0);o+1<u&&this._retainChildren(h,_,o+1,u)}},_resetView:function(t){var n=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),n,n)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var n=this.options;return n.minNativeZoom!==void 0&&t<n.minNativeZoom?n.minNativeZoom:n.maxNativeZoom!==void 0&&n.maxNativeZoom<t?n.maxNativeZoom:t},_setView:function(t,n,o,u){var h=Math.round(n);this.options.maxZoom!==void 0&&h>this.options.maxZoom||this.options.minZoom!==void 0&&h<this.options.minZoom?h=void 0:h=this._clampZoom(h);var _=this.options.updateWhenZooming&&h!==this._tileZoom;(!u||_)&&(this._tileZoom=h,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),h!==void 0&&this._update(t),o||this._pruneTiles(),this._noPrune=!!o),this._setZoomTransforms(t,n)},_setZoomTransforms:function(t,n){for(var o in this._levels)this._setZoomTransform(this._levels[o],t,n)},_setZoomTransform:function(t,n,o){var u=this._map.getZoomScale(o,t.zoom),h=t.origin.multiplyBy(u).subtract(this._map._getNewPixelOrigin(n,o)).round();q.any3d?ce(t.el,h,u):pt(t.el,h)},_resetGrid:function(){var t=this._map,n=t.options.crs,o=this._tileSize=this.getTileSize(),u=this._tileZoom,h=this._map.getPixelWorldBounds(this._tileZoom);h&&(this._globalTileRange=this._pxBoundsToTileRange(h)),this._wrapX=n.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,n.wrapLng[0]],u).x/o.x),Math.ceil(t.project([0,n.wrapLng[1]],u).x/o.y)],this._wrapY=n.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([n.wrapLat[0],0],u).y/o.x),Math.ceil(t.project([n.wrapLat[1],0],u).y/o.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(t){var n=this._map,o=n._animatingZoom?Math.max(n._animateToZoom,n.getZoom()):n.getZoom(),u=n.getZoomScale(o,this._tileZoom),h=n.project(t,this._tileZoom).floor(),_=n.getSize().divideBy(u*2);return new et(h.subtract(_),h.add(_))},_update:function(t){var n=this._map;if(n){var o=this._clampZoom(n.getZoom());if(t===void 0&&(t=n.getCenter()),this._tileZoom!==void 0){var u=this._getTiledPixelBounds(t),h=this._pxBoundsToTileRange(u),_=h.getCenter(),g=[],w=this.options.keepBuffer,x=new et(h.getBottomLeft().subtract([w,-w]),h.getTopRight().add([w,-w]));if(!(isFinite(h.min.x)&&isFinite(h.min.y)&&isFinite(h.max.x)&&isFinite(h.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var C in this._tiles){var I=this._tiles[C].coords;(I.z!==this._tileZoom||!x.contains(new $(I.x,I.y)))&&(this._tiles[C].current=!1)}if(Math.abs(o-this._tileZoom)>1){this._setView(t,o);return}for(var V=h.min.y;V<=h.max.y;V++)for(var Q=h.min.x;Q<=h.max.x;Q++){var xt=new $(Q,V);if(xt.z=this._tileZoom,!!this._isValidTile(xt)){var vt=this._tiles[this._tileCoordsToKey(xt)];vt?vt.current=!0:g.push(xt)}}if(g.sort(function(St,Fe){return St.distanceTo(_)-Fe.distanceTo(_)}),g.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Rt=document.createDocumentFragment();for(Q=0;Q<g.length;Q++)this._addTile(g[Q],Rt);this._level.el.appendChild(Rt)}}}},_isValidTile:function(t){var n=this._map.options.crs;if(!n.infinite){var o=this._globalTileRange;if(!n.wrapLng&&(t.x<o.min.x||t.x>o.max.x)||!n.wrapLat&&(t.y<o.min.y||t.y>o.max.y))return!1}if(!this.options.bounds)return!0;var u=this._tileCoordsToBounds(t);return ot(this.options.bounds).overlaps(u)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var n=this._map,o=this.getTileSize(),u=t.scaleBy(o),h=u.add(o),_=n.unproject(u,t.z),g=n.unproject(h,t.z);return[_,g]},_tileCoordsToBounds:function(t){var n=this._tileCoordsToNwSe(t),o=new nt(n[0],n[1]);return this.options.noWrap||(o=this._map.wrapLatLngBounds(o)),o},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var n=t.split(":"),o=new $(+n[0],+n[1]);return o.z=+n[2],o},_removeTile:function(t){var n=this._tiles[t];n&&(ct(n.el),delete this._tiles[t],this.fire("tileunload",{tile:n.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){X(t,"leaflet-tile");var n=this.getTileSize();t.style.width=n.x+"px",t.style.height=n.y+"px",t.onselectstart=b,t.onmousemove=b,q.ielt9&&this.options.opacity<1&&Ot(t,this.options.opacity)},_addTile:function(t,n){var o=this._getTilePos(t),u=this._tileCoordsToKey(t),h=this.createTile(this._wrapCoords(t),c(this._tileReady,this,t));this._initTile(h),this.createTile.length<2&&B(c(this._tileReady,this,t,null,h)),pt(h,o),this._tiles[u]={el:h,coords:t,current:!0},n.appendChild(h),this.fire("tileloadstart",{tile:h,coords:t})},_tileReady:function(t,n,o){n&&this.fire("tileerror",{error:n,tile:o,coords:t});var u=this._tileCoordsToKey(t);o=this._tiles[u],o&&(o.loaded=+new Date,this._map._fadeAnimated?(Ot(o.el,0),k(this._fadeFrame),this._fadeFrame=B(this._updateOpacity,this)):(o.active=!0,this._pruneTiles()),n||(X(o.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:o.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),q.ielt9||!this._map._fadeAnimated?B(this._pruneTiles,this):setTimeout(c(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var n=new $(this._wrapX?m(t.x,this._wrapX):t.x,this._wrapY?m(t.y,this._wrapY):t.y);return n.z=t.z,n},_pxBoundsToTileRange:function(t){var n=this.getTileSize();return new et(t.min.unscaleBy(n).floor(),t.max.unscaleBy(n).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function th(t){return new cn(t)}var De=cn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,n){this._url=t,n=v(this,n),n.detectRetina&&q.retina&&n.maxZoom>0?(n.tileSize=Math.floor(n.tileSize/2),n.zoomReverse?(n.zoomOffset--,n.minZoom=Math.min(n.maxZoom,n.minZoom+1)):(n.zoomOffset++,n.maxZoom=Math.max(n.minZoom,n.maxZoom-1)),n.minZoom=Math.max(0,n.minZoom)):n.zoomReverse?n.minZoom=Math.min(n.maxZoom,n.minZoom):n.maxZoom=Math.max(n.minZoom,n.maxZoom),typeof n.subdomains=="string"&&(n.subdomains=n.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,n){return this._url===t&&n===void 0&&(n=!0),this._url=t,n||this.redraw(),this},createTile:function(t,n){var o=document.createElement("img");return G(o,"load",c(this._tileOnLoad,this,n,o)),G(o,"error",c(this._tileOnError,this,n,o)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(o.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(o.referrerPolicy=this.options.referrerPolicy),o.alt="",o.src=this.getTileUrl(t),o},getTileUrl:function(t){var n={r:q.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var o=this._globalTileRange.max.y-t.y;this.options.tms&&(n.y=o),n["-y"]=o}return R(this._url,a(n,this.options))},_tileOnLoad:function(t,n){q.ielt9?setTimeout(c(t,this,null,n),0):t(null,n)},_tileOnError:function(t,n,o){var u=this.options.errorTileUrl;u&&n.getAttribute("src")!==u&&(n.src=u),t(o,n)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,n=this.options.maxZoom,o=this.options.zoomReverse,u=this.options.zoomOffset;return o&&(t=n-t),t+u},_getSubdomain:function(t){var n=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[n]},_abortLoading:function(){var t,n;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(n=this._tiles[t].el,n.onload=b,n.onerror=b,!n.complete)){n.src=tt;var o=this._tiles[t].coords;ct(n),delete this._tiles[t],this.fire("tileabort",{tile:n,coords:o})}},_removeTile:function(t){var n=this._tiles[t];if(n)return n.el.setAttribute("src",tt),cn.prototype._removeTile.call(this,t)},_tileReady:function(t,n,o){if(!(!this._map||o&&o.getAttribute("src")===tt))return cn.prototype._tileReady.call(this,t,n,o)}});function Bs(t,n){return new De(t,n)}var Is=De.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,n){this._url=t;var o=a({},this.defaultWmsParams);for(var u in n)u in this.options||(o[u]=n[u]);n=v(this,n);var h=n.detectRetina&&q.retina?2:1,_=this.getTileSize();o.width=_.x*h,o.height=_.y*h,this.wmsParams=o},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var n=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[n]=this._crs.code,De.prototype.onAdd.call(this,t)},getTileUrl:function(t){var n=this._tileCoordsToNwSe(t),o=this._crs,u=_t(o.project(n[0]),o.project(n[1])),h=u.min,_=u.max,g=(this._wmsVersion>=1.3&&this._crs===Ss?[h.y,h.x,_.y,_.x]:[h.x,h.y,_.x,_.y]).join(","),w=De.prototype.getTileUrl.call(this,t);return w+S(this.wmsParams,w,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+g},setParams:function(t,n){return a(this.wmsParams,t),n||this.redraw(),this}});function eh(t,n){return new Is(t,n)}De.WMS=Is,Bs.wms=eh;var Gt=Nt.extend({options:{padding:.1},initialize:function(t){v(this,t),d(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),X(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,n){var o=this._map.getZoomScale(n,this._zoom),u=this._map.getSize().multiplyBy(.5+this.options.padding),h=this._map.project(this._center,n),_=u.multiplyBy(-o).add(h).subtract(this._map._getNewPixelOrigin(t,n));q.any3d?ce(this._container,_,o):pt(this._container,_)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,n=this._map.getSize(),o=this._map.containerPointToLayerPoint(n.multiplyBy(-t)).round();this._bounds=new et(o,o.add(n.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Ns=Gt.extend({options:{tolerance:0},getEvents:function(){var t=Gt.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Gt.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");G(t,"mousemove",this._onMouseMove,this),G(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),G(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){k(this._redrawRequest),delete this._ctx,ct(this._container),at(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var n in this._layers)t=this._layers[n],t._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Gt.prototype._update.call(this);var t=this._bounds,n=this._container,o=t.getSize(),u=q.retina?2:1;pt(n,t.min),n.width=u*o.x,n.height=u*o.y,n.style.width=o.x+"px",n.style.height=o.y+"px",q.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Gt.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[d(t)]=t;var n=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=n),this._drawLast=n,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var n=t._order,o=n.next,u=n.prev;o?o.prev=u:this._drawLast=u,u?u.next=o:this._drawFirst=o,delete t._order,delete this._layers[d(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray=="string"){var n=t.options.dashArray.split(/[, ]+/),o=[],u,h;for(h=0;h<n.length;h++){if(u=Number(n[h]),isNaN(u))return;o.push(u)}t.options._dashArray=o}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||B(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var n=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new et,this._redrawBounds.extend(t._pxBounds.min.subtract([n,n])),this._redrawBounds.extend(t._pxBounds.max.add([n,n]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var n=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,n.x,n.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,n=this._redrawBounds;if(this._ctx.save(),n){var o=n.getSize();this._ctx.beginPath(),this._ctx.rect(n.min.x,n.min.y,o.x,o.y),this._ctx.clip()}this._drawing=!0;for(var u=this._drawFirst;u;u=u.next)t=u.layer,(!n||t._pxBounds&&t._pxBounds.intersects(n))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,n){if(this._drawing){var o,u,h,_,g=t._parts,w=g.length,x=this._ctx;if(w){for(x.beginPath(),o=0;o<w;o++){for(u=0,h=g[o].length;u<h;u++)_=g[o][u],x[u?"lineTo":"moveTo"](_.x,_.y);n&&x.closePath()}this._fillStroke(x,t)}}},_updateCircle:function(t){if(!(!this._drawing||t._empty())){var n=t._point,o=this._ctx,u=Math.max(Math.round(t._radius),1),h=(Math.max(Math.round(t._radiusY),1)||u)/u;h!==1&&(o.save(),o.scale(1,h)),o.beginPath(),o.arc(n.x,n.y/h,u,0,Math.PI*2,!1),h!==1&&o.restore(),this._fillStroke(o,t)}},_fillStroke:function(t,n){var o=n.options;o.fill&&(t.globalAlpha=o.fillOpacity,t.fillStyle=o.fillColor||o.color,t.fill(o.fillRule||"evenodd")),o.stroke&&o.weight!==0&&(t.setLineDash&&t.setLineDash(n.options&&n.options._dashArray||[]),t.globalAlpha=o.opacity,t.lineWidth=o.weight,t.strokeStyle=o.color,t.lineCap=o.lineCap,t.lineJoin=o.lineJoin,t.stroke())},_onClick:function(t){for(var n=this._map.mouseEventToLayerPoint(t),o,u,h=this._drawFirst;h;h=h.next)o=h.layer,o.options.interactive&&o._containsPoint(n)&&(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(o))&&(u=o);this._fireEvent(u?[u]:!1,t)},_onMouseMove:function(t){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var n=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,n)}},_handleMouseOut:function(t){var n=this._hoveredLayer;n&&(ht(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,n){if(!this._mouseHoverThrottled){for(var o,u,h=this._drawFirst;h;h=h.next)o=h.layer,o.options.interactive&&o._containsPoint(n)&&(u=o);u!==this._hoveredLayer&&(this._handleMouseOut(t),u&&(X(this._container,"leaflet-interactive"),this._fireEvent([u],t,"mouseover"),this._hoveredLayer=u)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,t),this._mouseHoverThrottled=!0,setTimeout(c(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,n,o){this._map._fireDOMEvent(n,o||n.type,t)},_bringToFront:function(t){var n=t._order;if(n){var o=n.next,u=n.prev;if(o)o.prev=u;else return;u?u.next=o:o&&(this._drawFirst=o),n.prev=this._drawLast,this._drawLast.next=n,n.next=null,this._drawLast=n,this._requestRedraw(t)}},_bringToBack:function(t){var n=t._order;if(n){var o=n.next,u=n.prev;if(u)u.next=o;else return;o?o.prev=u:u&&(this._drawLast=u),n.prev=null,n.next=this._drawFirst,this._drawFirst.prev=n,this._drawFirst=n,this._requestRedraw(t)}}});function ks(t){return q.canvas?new Ns(t):null}var hn=(function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}})(),nh={_initContainer:function(){this._container=rt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Gt.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var n=t._container=hn("shape");X(n,"leaflet-vml-shape "+(this.options.className||"")),n.coordsize="1 1",t._path=hn("path"),n.appendChild(t._path),this._updateStyle(t),this._layers[d(t)]=t},_addPath:function(t){var n=t._container;this._container.appendChild(n),t.options.interactive&&t.addInteractiveTarget(n)},_removePath:function(t){var n=t._container;ct(n),t.removeInteractiveTarget(n),delete this._layers[d(t)]},_updateStyle:function(t){var n=t._stroke,o=t._fill,u=t.options,h=t._container;h.stroked=!!u.stroke,h.filled=!!u.fill,u.stroke?(n||(n=t._stroke=hn("stroke")),h.appendChild(n),n.weight=u.weight+"px",n.color=u.color,n.opacity=u.opacity,u.dashArray?n.dashStyle=O(u.dashArray)?u.dashArray.join(" "):u.dashArray.replace(/( *, *)/g," "):n.dashStyle="",n.endcap=u.lineCap.replace("butt","flat"),n.joinstyle=u.lineJoin):n&&(h.removeChild(n),t._stroke=null),u.fill?(o||(o=t._fill=hn("fill")),h.appendChild(o),o.color=u.fillColor||u.color,o.opacity=u.fillOpacity):o&&(h.removeChild(o),t._fill=null)},_updateCircle:function(t){var n=t._point.round(),o=Math.round(t._radius),u=Math.round(t._radiusY||o);this._setPath(t,t._empty()?"M0 0":"AL "+n.x+","+n.y+" "+o+","+u+" 0,"+65535*360)},_setPath:function(t,n){t._path.v=n},_bringToFront:function(t){Re(t._container)},_bringToBack:function(t){Be(t._container)}},Kn=q.vml?hn:Zo,fn=Gt.extend({_initContainer:function(){this._container=Kn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Kn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ct(this._container),at(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Gt.prototype._update.call(this);var t=this._bounds,n=t.getSize(),o=this._container;(!this._svgSize||!this._svgSize.equals(n))&&(this._svgSize=n,o.setAttribute("width",n.x),o.setAttribute("height",n.y)),pt(o,t.min),o.setAttribute("viewBox",[t.min.x,t.min.y,n.x,n.y].join(" ")),this.fire("update")}},_initPath:function(t){var n=t._path=Kn("path");t.options.className&&X(n,t.options.className),t.options.interactive&&X(n,"leaflet-interactive"),this._updateStyle(t),this._layers[d(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){ct(t._path),t.removeInteractiveTarget(t._path),delete this._layers[d(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var n=t._path,o=t.options;n&&(o.stroke?(n.setAttribute("stroke",o.color),n.setAttribute("stroke-opacity",o.opacity),n.setAttribute("stroke-width",o.weight),n.setAttribute("stroke-linecap",o.lineCap),n.setAttribute("stroke-linejoin",o.lineJoin),o.dashArray?n.setAttribute("stroke-dasharray",o.dashArray):n.removeAttribute("stroke-dasharray"),o.dashOffset?n.setAttribute("stroke-dashoffset",o.dashOffset):n.removeAttribute("stroke-dashoffset")):n.setAttribute("stroke","none"),o.fill?(n.setAttribute("fill",o.fillColor||o.color),n.setAttribute("fill-opacity",o.fillOpacity),n.setAttribute("fill-rule",o.fillRule||"evenodd")):n.setAttribute("fill","none"))},_updatePoly:function(t,n){this._setPath(t,Uo(t._parts,n))},_updateCircle:function(t){var n=t._point,o=Math.max(Math.round(t._radius),1),u=Math.max(Math.round(t._radiusY),1)||o,h="a"+o+","+u+" 0 1,0 ",_=t._empty()?"M0 0":"M"+(n.x-o)+","+n.y+h+o*2+",0 "+h+-o*2+",0 ";this._setPath(t,_)},_setPath:function(t,n){t._path.setAttribute("d",n)},_bringToFront:function(t){Re(t._path)},_bringToBack:function(t){Be(t._path)}});q.vml&&fn.include(nh);function zs(t){return q.svg||q.vml?new fn(t):null}it.include({getRenderer:function(t){var n=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return n||(n=this._renderer=this._createRenderer()),this.hasLayer(n)||this.addLayer(n),n},_getPaneRenderer:function(t){if(t==="overlayPane"||t===void 0)return!1;var n=this._paneRenderers[t];return n===void 0&&(n=this._createRenderer({pane:t}),this._paneRenderers[t]=n),n},_createRenderer:function(t){return this.options.preferCanvas&&ks(t)||zs(t)}});var Ds=ke.extend({initialize:function(t,n){ke.prototype.initialize.call(this,this._boundsToLatLngs(t),n)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=ot(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function ih(t,n){return new Ds(t,n)}fn.create=Kn,fn.pointsToPath=Uo,Jt.geometryToLayer=Un,Jt.coordsToLatLng=tr,Jt.coordsToLatLngs=Hn,Jt.latLngToCoords=er,Jt.latLngsToCoords=qn,Jt.getFeature=ze,Jt.asFeature=jn,it.mergeOptions({boxZoom:!0});var Fs=Ut.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){G(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){at(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ct(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),nn(),zi(),this._startPoint=this._map.mouseEventToContainerPoint(t),G(document,{contextmenu:de,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=rt("div","leaflet-zoom-box",this._container),X(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var n=new et(this._point,this._startPoint),o=n.getSize();pt(this._box,n.min),this._box.style.width=o.x+"px",this._box.style.height=o.y+"px"},_finish:function(){this._moved&&(ct(this._box),ht(this._container,"leaflet-crosshair")),rn(),Di(),at(document,{contextmenu:de,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(!(t.which!==1&&t.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(c(this._resetState,this),0);var n=new nt(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(n).fire("boxzoomend",{boxZoomBounds:n})}},_onKeyDown:function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});it.addInitHook("addHandler","boxZoom",Fs),it.mergeOptions({doubleClickZoom:!0});var Zs=Ut.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var n=this._map,o=n.getZoom(),u=n.options.zoomDelta,h=t.originalEvent.shiftKey?o-u:o+u;n.options.doubleClickZoom==="center"?n.setZoom(h):n.setZoomAround(t.containerPoint,h)}});it.addInitHook("addHandler","doubleClickZoom",Zs),it.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Us=Ut.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new ne(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}X(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ht(this._map._container,"leaflet-grab"),ht(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var n=ot(this._map.options.maxBounds);this._offsetLimit=_t(this._map.latLngToContainerPoint(n.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(n.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var n=this._lastTime=+new Date,o=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(o),this._times.push(n),this._prunePositions(n)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),n=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=n.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,n){return t-(t-n)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var t=this._draggable._newPos.subtract(this._draggable._startPos),n=this._offsetLimit;t.x<n.min.x&&(t.x=this._viscousLimit(t.x,n.min.x)),t.y<n.min.y&&(t.y=this._viscousLimit(t.y,n.min.y)),t.x>n.max.x&&(t.x=this._viscousLimit(t.x,n.max.x)),t.y>n.max.y&&(t.y=this._viscousLimit(t.y,n.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,n=Math.round(t/2),o=this._initialWorldOffset,u=this._draggable._newPos.x,h=(u-n+o)%t+n-o,_=(u+n+o)%t-n-o,g=Math.abs(h+o)<Math.abs(_+o)?h:_;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=g},_onDragEnd:function(t){var n=this._map,o=n.options,u=!o.inertia||t.noInertia||this._times.length<2;if(n.fire("dragend",t),u)n.fire("moveend");else{this._prunePositions(+new Date);var h=this._lastPos.subtract(this._positions[0]),_=(this._lastTime-this._times[0])/1e3,g=o.easeLinearity,w=h.multiplyBy(g/_),x=w.distanceTo([0,0]),C=Math.min(o.inertiaMaxSpeed,x),I=w.multiplyBy(C/x),V=C/(o.inertiaDeceleration*g),Q=I.multiplyBy(-V/2).round();!Q.x&&!Q.y?n.fire("moveend"):(Q=n._limitOffset(Q,n.options.maxBounds),B(function(){n.panBy(Q,{duration:V,easeLinearity:g,noMoveStart:!0,animate:!0})}))}}});it.addInitHook("addHandler","dragging",Us),it.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Hs=Ut.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),G(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),at(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,n=document.documentElement,o=t.scrollTop||n.scrollTop,u=t.scrollLeft||n.scrollLeft;this._map._container.focus(),window.scrollTo(u,o)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var n=this._panKeys={},o=this.keyCodes,u,h;for(u=0,h=o.left.length;u<h;u++)n[o.left[u]]=[-1*t,0];for(u=0,h=o.right.length;u<h;u++)n[o.right[u]]=[t,0];for(u=0,h=o.down.length;u<h;u++)n[o.down[u]]=[0,t];for(u=0,h=o.up.length;u<h;u++)n[o.up[u]]=[0,-1*t]},_setZoomDelta:function(t){var n=this._zoomKeys={},o=this.keyCodes,u,h;for(u=0,h=o.zoomIn.length;u<h;u++)n[o.zoomIn[u]]=t;for(u=0,h=o.zoomOut.length;u<h;u++)n[o.zoomOut[u]]=-t},_addHooks:function(){G(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){at(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var n=t.keyCode,o=this._map,u;if(n in this._panKeys){if(!o._panAnim||!o._panAnim._inProgress)if(u=this._panKeys[n],t.shiftKey&&(u=Z(u).multiplyBy(3)),o.options.maxBounds&&(u=o._limitOffset(Z(u),o.options.maxBounds)),o.options.worldCopyJump){var h=o.wrapLatLng(o.unproject(o.project(o.getCenter()).add(u)));o.panTo(h)}else o.panBy(u)}else if(n in this._zoomKeys)o.setZoom(o.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else if(n===27&&o._popup&&o._popup.options.closeOnEscapeKey)o.closePopup();else return;de(t)}}});it.addInitHook("addHandler","keyboard",Hs),it.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var qs=Ut.extend({addHooks:function(){G(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){at(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var n=ds(t),o=this._map.options.wheelDebounceTime;this._delta+=n,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var u=Math.max(o-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(c(this._performZoom,this),u),de(t)},_performZoom:function(){var t=this._map,n=t.getZoom(),o=this._map.options.zoomSnap||0;t._stop();var u=this._delta/(this._map.options.wheelPxPerZoomLevel*4),h=4*Math.log(2/(1+Math.exp(-Math.abs(u))))/Math.LN2,_=o?Math.ceil(h/o)*o:h,g=t._limitZoom(n+(this._delta>0?_:-_))-n;this._delta=0,this._startTime=null,g&&(t.options.scrollWheelZoom==="center"?t.setZoom(n+g):t.setZoomAround(this._lastMousePos,n+g))}});it.addInitHook("addHandler","scrollWheelZoom",qs);var rh=600;it.mergeOptions({tapHold:q.touchNative&&q.safari&&q.mobile,tapTolerance:15});var js=Ut.extend({addHooks:function(){G(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){at(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var n=t.touches[0];this._startPos=this._newPos=new $(n.clientX,n.clientY),this._holdTimeout=setTimeout(c(function(){this._cancel(),this._isTapValid()&&(G(document,"touchend",yt),G(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",n))},this),rh),G(document,"touchend touchcancel contextmenu",this._cancel,this),G(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){at(document,"touchend",yt),at(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),at(document,"touchend touchcancel contextmenu",this._cancel,this),at(document,"touchmove",this._onMove,this)},_onMove:function(t){var n=t.touches[0];this._newPos=new $(n.clientX,n.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,n){var o=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:n.screenX,screenY:n.screenY,clientX:n.clientX,clientY:n.clientY});o._simulated=!0,n.target.dispatchEvent(o)}});it.addInitHook("addHandler","tapHold",js),it.mergeOptions({touchZoom:q.touch,bounceAtZoomLimits:!0});var Ws=Ut.extend({addHooks:function(){X(this._map._container,"leaflet-touch-zoom"),G(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ht(this._map._container,"leaflet-touch-zoom"),at(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var n=this._map;if(!(!t.touches||t.touches.length!==2||n._animatingZoom||this._zooming)){var o=n.mouseEventToContainerPoint(t.touches[0]),u=n.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=n.getSize()._divideBy(2),this._startLatLng=n.containerPointToLatLng(this._centerPoint),n.options.touchZoom!=="center"&&(this._pinchStartLatLng=n.containerPointToLatLng(o.add(u)._divideBy(2))),this._startDist=o.distanceTo(u),this._startZoom=n.getZoom(),this._moved=!1,this._zooming=!0,n._stop(),G(document,"touchmove",this._onTouchMove,this),G(document,"touchend touchcancel",this._onTouchEnd,this),yt(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var n=this._map,o=n.mouseEventToContainerPoint(t.touches[0]),u=n.mouseEventToContainerPoint(t.touches[1]),h=o.distanceTo(u)/this._startDist;if(this._zoom=n.getScaleZoom(h,this._startZoom),!n.options.bounceAtZoomLimits&&(this._zoom<n.getMinZoom()&&h<1||this._zoom>n.getMaxZoom()&&h>1)&&(this._zoom=n._limitZoom(this._zoom)),n.options.touchZoom==="center"){if(this._center=this._startLatLng,h===1)return}else{var _=o._add(u)._divideBy(2)._subtract(this._centerPoint);if(h===1&&_.x===0&&_.y===0)return;this._center=n.unproject(n.project(this._pinchStartLatLng,this._zoom).subtract(_),this._zoom)}this._moved||(n._moveStart(!0,!1),this._moved=!0),k(this._animRequest);var g=c(n._move,n,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=B(g,this,!0),yt(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,k(this._animRequest),at(document,"touchmove",this._onTouchMove,this),at(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});it.addInitHook("addHandler","touchZoom",Ws),it.BoxZoom=Fs,it.DoubleClickZoom=Zs,it.Drag=Us,it.Keyboard=Hs,it.ScrollWheelZoom=qs,it.TapHold=js,it.TouchZoom=Ws,r.Bounds=et,r.Browser=q,r.CRS=st,r.Canvas=Ns,r.Circle=Qi,r.CircleMarker=Zn,r.Class=F,r.Control=It,r.DivIcon=Rs,r.DivOverlay=Ht,r.DomEvent=xc,r.DomUtil=wc,r.Draggable=ne,r.Evented=Vt,r.FeatureGroup=$t,r.GeoJSON=Jt,r.GridLayer=cn,r.Handler=Ut,r.Icon=Ne,r.ImageOverlay=Wn,r.LatLng=J,r.LatLngBounds=nt,r.Layer=Nt,r.LayerGroup=Ie,r.LineUtil=Nc,r.Map=it,r.Marker=Fn,r.Mixin=Ac,r.Path=ie,r.Point=$,r.PolyUtil=Oc,r.Polygon=ke,r.Polyline=Kt,r.Popup=Vn,r.PosAnimation=_s,r.Projection=kc,r.Rectangle=Ds,r.Renderer=Gt,r.SVG=fn,r.SVGOverlay=Ms,r.TileLayer=De,r.Tooltip=$n,r.Transformation=te,r.Util=W,r.VideoOverlay=Os,r.bind=c,r.bounds=_t,r.canvas=ks,r.circle=jc,r.circleMarker=qc,r.control=an,r.divIcon=Qc,r.extend=a,r.featureGroup=Zc,r.geoJSON=As,r.geoJson=$c,r.gridLayer=th,r.icon=Uc,r.imageOverlay=Kc,r.latLng=Y,r.latLngBounds=ot,r.layerGroup=Fc,r.map=Ec,r.marker=Hc,r.point=Z,r.polygon=Vc,r.polyline=Wc,r.popup=Yc,r.rectangle=ih,r.setOptions=v,r.stamp=d,r.svg=zs,r.svgOverlay=Gc,r.tileLayer=Bs,r.tooltip=Xc,r.transformation=ee,r.version=s,r.videoOverlay=Jc;var oh=window.L;r.noConflict=function(){return window.L=oh,this},window.L=r}))})(yn,yn.exports)),yn.exports}var Lp=Sp();const Cp=Dl(Lp),ro=(e,i)=>i.some(r=>e instanceof r);let xa,Ea;function Ap(){return xa||(xa=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Op(){return Ea||(Ea=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const oo=new WeakMap,fr=new WeakMap,Si=new WeakMap;function Mp(e){const i=new Promise((r,s)=>{const a=()=>{e.removeEventListener("success",l),e.removeEventListener("error",c)},l=()=>{r(Ee(e.result)),a()},c=()=>{s(e.error),a()};e.addEventListener("success",l),e.addEventListener("error",c)});return Si.set(i,e),i}function Rp(e){if(oo.has(e))return;const i=new Promise((r,s)=>{const a=()=>{e.removeEventListener("complete",l),e.removeEventListener("error",c),e.removeEventListener("abort",c)},l=()=>{r(),a()},c=()=>{s(e.error||new DOMException("AbortError","AbortError")),a()};e.addEventListener("complete",l),e.addEventListener("error",c),e.addEventListener("abort",c)});oo.set(e,i)}let so={get(e,i,r){if(e instanceof IDBTransaction){if(i==="done")return oo.get(e);if(i==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return Ee(e[i])},set(e,i,r){return e[i]=r,!0},has(e,i){return e instanceof IDBTransaction&&(i==="done"||i==="store")?!0:i in e}};function Fl(e){so=e(so)}function Bp(e){return Op().includes(e)?function(...i){return e.apply(ao(this),i),Ee(this.request)}:function(...i){return Ee(e.apply(ao(this),i))}}function Ip(e){return typeof e=="function"?Bp(e):(e instanceof IDBTransaction&&Rp(e),ro(e,Ap())?new Proxy(e,so):e)}function Ee(e){if(e instanceof IDBRequest)return Mp(e);if(fr.has(e))return fr.get(e);const i=Ip(e);return i!==e&&(fr.set(e,i),Si.set(i,e)),i}const ao=e=>Si.get(e);function Np(e,i,{blocked:r,upgrade:s,blocking:a,terminated:l}={}){const c=indexedDB.open(e,i),f=Ee(c);return s&&c.addEventListener("upgradeneeded",d=>{s(Ee(c.result),d.oldVersion,d.newVersion,Ee(c.transaction),d)}),r&&c.addEventListener("blocked",d=>r(d.oldVersion,d.newVersion,d)),f.then(d=>{l&&d.addEventListener("close",()=>l()),a&&d.addEventListener("versionchange",p=>a(p.oldVersion,p.newVersion,p))}).catch(()=>{}),f}const kp=["get","getKey","getAll","getAllKeys","count"],zp=["put","add","delete","clear"],dr=new Map;function Pa(e,i){if(!(e instanceof IDBDatabase&&!(i in e)&&typeof i=="string"))return;if(dr.get(i))return dr.get(i);const r=i.replace(/FromIndex$/,""),s=i!==r,a=zp.includes(r);if(!(r in(s?IDBIndex:IDBObjectStore).prototype)||!(a||kp.includes(r)))return;const l=async function(c,...f){const d=this.transaction(c,a?"readwrite":"readonly");let p=d.store;return s&&(p=p.index(f.shift())),(await Promise.all([p[r](...f),a&&d.done]))[0]};return dr.set(i,l),l}Fl(e=>({...e,get:(i,r,s)=>Pa(i,r)||e.get(i,r,s),has:(i,r)=>!!Pa(i,r)||e.has(i,r)}));const Dp=["continue","continuePrimaryKey","advance"],Ta={},uo=new WeakMap,Zl=new WeakMap,Fp={get(e,i){if(!Dp.includes(i))return e[i];let r=Ta[i];return r||(r=Ta[i]=function(...s){uo.set(this,Zl.get(this)[i](...s))}),r}};async function*Zp(...e){let i=this;if(i instanceof IDBCursor||(i=await i.openCursor(...e)),!i)return;i=i;const r=new Proxy(i,Fp);for(Zl.set(r,i),Si.set(r,ao(i));i;)yield r,i=await(uo.get(r)||i.continue()),uo.delete(r)}function Sa(e,i){return i===Symbol.asyncIterator&&ro(e,[IDBIndex,IDBObjectStore,IDBCursor])||i==="iterate"&&ro(e,[IDBIndex,IDBObjectStore])}Fl(e=>({...e,get(i,r,s){return Sa(i,r)?Zp:e.get(i,r,s)},has(i,r){return Sa(i,r)||e.has(i,r)}}));const Up="schneespur_sync",Hp=1,Yt="pending_requests";class qp{constructor(){this.db=null}async init(){return this.db=await Np(Up,Hp,{upgrade(i){if(!i.objectStoreNames.contains(Yt)){const r=i.createObjectStore(Yt,{keyPath:"id",autoIncrement:!0});r.createIndex("by_synced","synced"),r.createIndex("by_timestamp","timestamp")}}}),this}async addRequest({url:i,method:r,data:s,headers:a}){if(!this.db)throw new Error("SyncQueue not initialized — call init() first");return this.db.add(Yt,{url:i,method:r,data:s,headers:a||{},timestamp:Date.now(),synced:!1})}async getPending(){if(!this.db)throw new Error("SyncQueue not initialized — call init() first");return(await this.db.getAllFromIndex(Yt,"by_synced",!1)).sort((r,s)=>r.timestamp-s.timestamp)}async markSynced(i){if(!this.db)throw new Error("SyncQueue not initialized — call init() first");const r=await this.db.get(Yt,i);r&&(r.synced=!0,r.syncedAt=Date.now(),await this.db.put(Yt,r))}async removeSynced(){if(!this.db)throw new Error("SyncQueue not initialized — call init() first");const i=Date.now()-3600*1e3,r=await this.db.getAllFromIndex(Yt,"by_synced",!0),s=this.db.transaction(Yt,"readwrite");for(const a of r)a.syncedAt&&a.syncedAt<i&&await s.store.delete(a.id);await s.done}async getCount(){if(!this.db)throw new Error("SyncQueue not initialized — call init() first");return this.db.countFromIndex(Yt,"by_synced",!1)}}const jp=3;class Wp{constructor(){this.queue=new qp,this.syncing=!1,this._bound={onOnline:()=>this.flush(),onVisibilityChange:()=>{document.visibilityState==="visible"&&this.flush()}}}async init(){return await this.queue.init(),window.addEventListener("online",this._bound.onOnline),document.addEventListener("visibilitychange",this._bound.onVisibilityChange),navigator.onLine&&this.flush(),this}destroy(){window.removeEventListener("online",this._bound.onOnline),document.removeEventListener("visibilitychange",this._bound.onVisibilityChange)}async flush(){if(this.syncing||!navigator.onLine)return;this.syncing=!0;const i=await this.queue.getPending();if(i.length===0){this.syncing=!1;return}window.dispatchEvent(new CustomEvent("sync:start",{detail:{count:i.length}}));let r;try{r=await this._refreshCsrfToken()}catch{window.dispatchEvent(new CustomEvent("sync:error",{detail:{reason:"csrf_refresh_failed"}})),this.syncing=!1;return}let s=0,a=0;for(const l of i)try{const c=await window.axios({url:l.url,method:l.method,data:l.data,headers:{...l.headers,"X-CSRF-TOKEN":r}});c.status>=200&&c.status<300&&(await this.queue.markSynced(l.id),s++)}catch{a++;const c=(l.retryCount||0)+1;c>=jp?(await this._removeEntry(l.id),window.dispatchEvent(new CustomEvent("sync:error",{detail:{entryId:l.id,reason:"max_retries",url:l.url}}))):await this._updateRetryCount(l.id,c)}await this.queue.removeSynced(),window.dispatchEvent(new CustomEvent("sync:complete",{detail:{synced:s,failed:a}})),this.syncing=!1}async _refreshCsrfToken(){const i=await window.axios.get("/driver/job/active",{headers:{Accept:"text/html"}}),a=new DOMParser().parseFromString(i.data,"text/html").querySelector('meta[name="csrf-token"]');if(a)return a.getAttribute("content");const l=document.querySelector('meta[name="csrf-token"]');if(l)return l.getAttribute("content");throw new Error("No CSRF token found")}async _updateRetryCount(i,r){const s=this.queue.db;if(!s)return;const a=await s.get("pending_requests",i);a&&(a.retryCount=r,await s.put("pending_requests",a))}async _removeEntry(i){const r=this.queue.db;r&&await r.delete("pending_requests",i)}}const La=new Wp;var Ue={},_r,Ca;function Vp(){return Ca||(Ca=1,_r=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),_r}var pr={},oe={},Aa;function Ae(){if(Aa)return oe;Aa=1;let e;const i=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return oe.getSymbolSize=function(s){if(!s)throw new Error('"version" cannot be null or undefined');if(s<1||s>40)throw new Error('"version" should be in range from 1 to 40');return s*4+17},oe.getSymbolTotalCodewords=function(s){return i[s]},oe.getBCHDigit=function(r){let s=0;for(;r!==0;)s++,r>>>=1;return s},oe.setToSJISFunction=function(s){if(typeof s!="function")throw new Error('"toSJISFunc" is not a valid function.');e=s},oe.isKanjiModeEnabled=function(){return typeof e<"u"},oe.toSJIS=function(s){return e(s)},oe}var mr={},Oa;function Fo(){return Oa||(Oa=1,(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function i(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+r)}}e.isValid=function(s){return s&&typeof s.bit<"u"&&s.bit>=0&&s.bit<4},e.from=function(s,a){if(e.isValid(s))return s;try{return i(s)}catch{return a}}})(mr)),mr}var gr,Ma;function $p(){if(Ma)return gr;Ma=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(i){const r=Math.floor(i/8);return(this.buffer[r]>>>7-i%8&1)===1},put:function(i,r){for(let s=0;s<r;s++)this.putBit((i>>>r-s-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(i){const r=Math.floor(this.length/8);this.buffer.length<=r&&this.buffer.push(0),i&&(this.buffer[r]|=128>>>this.length%8),this.length++}},gr=e,gr}var vr,Ra;function Kp(){if(Ra)return vr;Ra=1;function e(i){if(!i||i<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=i,this.data=new Uint8Array(i*i),this.reservedBit=new Uint8Array(i*i)}return e.prototype.set=function(i,r,s,a){const l=i*this.size+r;this.data[l]=s,a&&(this.reservedBit[l]=!0)},e.prototype.get=function(i,r){return this.data[i*this.size+r]},e.prototype.xor=function(i,r,s){this.data[i*this.size+r]^=s},e.prototype.isReserved=function(i,r){return this.reservedBit[i*this.size+r]},vr=e,vr}var yr={},Ba;function Jp(){return Ba||(Ba=1,(function(e){const i=Ae().getSymbolSize;e.getRowColCoords=function(s){if(s===1)return[];const a=Math.floor(s/7)+2,l=i(s),c=l===145?26:Math.ceil((l-13)/(2*a-2))*2,f=[l-7];for(let d=1;d<a-1;d++)f[d]=f[d-1]-c;return f.push(6),f.reverse()},e.getPositions=function(s){const a=[],l=e.getRowColCoords(s),c=l.length;for(let f=0;f<c;f++)for(let d=0;d<c;d++)f===0&&d===0||f===0&&d===c-1||f===c-1&&d===0||a.push([l[f],l[d]]);return a}})(yr)),yr}var wr={},Ia;function Gp(){if(Ia)return wr;Ia=1;const e=Ae().getSymbolSize,i=7;return wr.getPositions=function(s){const a=e(s);return[[0,0],[a-i,0],[0,a-i]]},wr}var br={},Na;function Yp(){return Na||(Na=1,(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const i={N1:3,N2:3,N3:40,N4:10};e.isValid=function(a){return a!=null&&a!==""&&!isNaN(a)&&a>=0&&a<=7},e.from=function(a){return e.isValid(a)?parseInt(a,10):void 0},e.getPenaltyN1=function(a){const l=a.size;let c=0,f=0,d=0,p=null,m=null;for(let b=0;b<l;b++){f=d=0,p=m=null;for(let T=0;T<l;T++){let E=a.get(b,T);E===p?f++:(f>=5&&(c+=i.N1+(f-5)),p=E,f=1),E=a.get(T,b),E===m?d++:(d>=5&&(c+=i.N1+(d-5)),m=E,d=1)}f>=5&&(c+=i.N1+(f-5)),d>=5&&(c+=i.N1+(d-5))}return c},e.getPenaltyN2=function(a){const l=a.size;let c=0;for(let f=0;f<l-1;f++)for(let d=0;d<l-1;d++){const p=a.get(f,d)+a.get(f,d+1)+a.get(f+1,d)+a.get(f+1,d+1);(p===4||p===0)&&c++}return c*i.N2},e.getPenaltyN3=function(a){const l=a.size;let c=0,f=0,d=0;for(let p=0;p<l;p++){f=d=0;for(let m=0;m<l;m++)f=f<<1&2047|a.get(p,m),m>=10&&(f===1488||f===93)&&c++,d=d<<1&2047|a.get(m,p),m>=10&&(d===1488||d===93)&&c++}return c*i.N3},e.getPenaltyN4=function(a){let l=0;const c=a.data.length;for(let d=0;d<c;d++)l+=a.data[d];return Math.abs(Math.ceil(l*100/c/5)-10)*i.N4};function r(s,a,l){switch(s){case e.Patterns.PATTERN000:return(a+l)%2===0;case e.Patterns.PATTERN001:return a%2===0;case e.Patterns.PATTERN010:return l%3===0;case e.Patterns.PATTERN011:return(a+l)%3===0;case e.Patterns.PATTERN100:return(Math.floor(a/2)+Math.floor(l/3))%2===0;case e.Patterns.PATTERN101:return a*l%2+a*l%3===0;case e.Patterns.PATTERN110:return(a*l%2+a*l%3)%2===0;case e.Patterns.PATTERN111:return(a*l%3+(a+l)%2)%2===0;default:throw new Error("bad maskPattern:"+s)}}e.applyMask=function(a,l){const c=l.size;for(let f=0;f<c;f++)for(let d=0;d<c;d++)l.isReserved(d,f)||l.xor(d,f,r(a,d,f))},e.getBestMask=function(a,l){const c=Object.keys(e.Patterns).length;let f=0,d=1/0;for(let p=0;p<c;p++){l(p),e.applyMask(p,a);const m=e.getPenaltyN1(a)+e.getPenaltyN2(a)+e.getPenaltyN3(a)+e.getPenaltyN4(a);e.applyMask(p,a),m<d&&(d=m,f=p)}return f}})(br)),br}var ii={},ka;function Ul(){if(ka)return ii;ka=1;const e=Fo(),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return ii.getBlocksCount=function(a,l){switch(l){case e.L:return i[(a-1)*4+0];case e.M:return i[(a-1)*4+1];case e.Q:return i[(a-1)*4+2];case e.H:return i[(a-1)*4+3];default:return}},ii.getTotalCodewordsCount=function(a,l){switch(l){case e.L:return r[(a-1)*4+0];case e.M:return r[(a-1)*4+1];case e.Q:return r[(a-1)*4+2];case e.H:return r[(a-1)*4+3];default:return}},ii}var xr={},gn={},za;function Xp(){if(za)return gn;za=1;const e=new Uint8Array(512),i=new Uint8Array(256);return(function(){let s=1;for(let a=0;a<255;a++)e[a]=s,i[s]=a,s<<=1,s&256&&(s^=285);for(let a=255;a<512;a++)e[a]=e[a-255]})(),gn.log=function(s){if(s<1)throw new Error("log("+s+")");return i[s]},gn.exp=function(s){return e[s]},gn.mul=function(s,a){return s===0||a===0?0:e[i[s]+i[a]]},gn}var Da;function Qp(){return Da||(Da=1,(function(e){const i=Xp();e.mul=function(s,a){const l=new Uint8Array(s.length+a.length-1);for(let c=0;c<s.length;c++)for(let f=0;f<a.length;f++)l[c+f]^=i.mul(s[c],a[f]);return l},e.mod=function(s,a){let l=new Uint8Array(s);for(;l.length-a.length>=0;){const c=l[0];for(let d=0;d<a.length;d++)l[d]^=i.mul(a[d],c);let f=0;for(;f<l.length&&l[f]===0;)f++;l=l.slice(f)}return l},e.generateECPolynomial=function(s){let a=new Uint8Array([1]);for(let l=0;l<s;l++)a=e.mul(a,new Uint8Array([1,i.exp(l)]));return a}})(xr)),xr}var Er,Fa;function tm(){if(Fa)return Er;Fa=1;const e=Qp();function i(r){this.genPoly=void 0,this.degree=r,this.degree&&this.initialize(this.degree)}return i.prototype.initialize=function(s){this.degree=s,this.genPoly=e.generateECPolynomial(this.degree)},i.prototype.encode=function(s){if(!this.genPoly)throw new Error("Encoder not initialized");const a=new Uint8Array(s.length+this.degree);a.set(s);const l=e.mod(a,this.genPoly),c=this.degree-l.length;if(c>0){const f=new Uint8Array(this.degree);return f.set(l,c),f}return l},Er=i,Er}var Pr={},Tr={},Sr={},Za;function Hl(){return Za||(Za=1,Sr.isValid=function(i){return!isNaN(i)&&i>=1&&i<=40}),Sr}var qt={},Ua;function ql(){if(Ua)return qt;Ua=1;const e="[0-9]+",i="[A-Z $%*+\\-./:]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const s="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+`)(?:.|[\r
|
|
]))+`;qt.KANJI=new RegExp(r,"g"),qt.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),qt.BYTE=new RegExp(s,"g"),qt.NUMERIC=new RegExp(e,"g"),qt.ALPHANUMERIC=new RegExp(i,"g");const a=new RegExp("^"+r+"$"),l=new RegExp("^"+e+"$"),c=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return qt.testKanji=function(d){return a.test(d)},qt.testNumeric=function(d){return l.test(d)},qt.testAlphanumeric=function(d){return c.test(d)},qt}var Ha;function Oe(){return Ha||(Ha=1,(function(e){const i=Hl(),r=ql();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(l,c){if(!l.ccBits)throw new Error("Invalid mode: "+l);if(!i.isValid(c))throw new Error("Invalid version: "+c);return c>=1&&c<10?l.ccBits[0]:c<27?l.ccBits[1]:l.ccBits[2]},e.getBestModeForData=function(l){return r.testNumeric(l)?e.NUMERIC:r.testAlphanumeric(l)?e.ALPHANUMERIC:r.testKanji(l)?e.KANJI:e.BYTE},e.toString=function(l){if(l&&l.id)return l.id;throw new Error("Invalid mode")},e.isValid=function(l){return l&&l.bit&&l.ccBits};function s(a){if(typeof a!="string")throw new Error("Param is not a string");switch(a.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+a)}}e.from=function(l,c){if(e.isValid(l))return l;try{return s(l)}catch{return c}}})(Tr)),Tr}var qa;function em(){return qa||(qa=1,(function(e){const i=Ae(),r=Ul(),s=Fo(),a=Oe(),l=Hl(),c=7973,f=i.getBCHDigit(c);function d(T,E,A){for(let v=1;v<=40;v++)if(E<=e.getCapacity(v,A,T))return v}function p(T,E){return a.getCharCountIndicator(T,E)+4}function m(T,E){let A=0;return T.forEach(function(v){const S=p(v.mode,E);A+=S+v.getBitsLength()}),A}function b(T,E){for(let A=1;A<=40;A++)if(m(T,A)<=e.getCapacity(A,E,a.MIXED))return A}e.from=function(E,A){return l.isValid(E)?parseInt(E,10):A},e.getCapacity=function(E,A,v){if(!l.isValid(E))throw new Error("Invalid QR Code version");typeof v>"u"&&(v=a.BYTE);const S=i.getSymbolTotalCodewords(E),P=r.getTotalCodewordsCount(E,A),R=(S-P)*8;if(v===a.MIXED)return R;const O=R-p(v,E);switch(v){case a.NUMERIC:return Math.floor(O/10*3);case a.ALPHANUMERIC:return Math.floor(O/11*2);case a.KANJI:return Math.floor(O/13);case a.BYTE:default:return Math.floor(O/8)}},e.getBestVersionForData=function(E,A){let v;const S=s.from(A,s.M);if(Array.isArray(E)){if(E.length>1)return b(E,S);if(E.length===0)return 1;v=E[0]}else v=E;return d(v.mode,v.getLength(),S)},e.getEncodedBits=function(E){if(!l.isValid(E)||E<7)throw new Error("Invalid QR Code version");let A=E<<12;for(;i.getBCHDigit(A)-f>=0;)A^=c<<i.getBCHDigit(A)-f;return E<<12|A}})(Pr)),Pr}var Lr={},ja;function nm(){if(ja)return Lr;ja=1;const e=Ae(),i=1335,r=21522,s=e.getBCHDigit(i);return Lr.getEncodedBits=function(l,c){const f=l.bit<<3|c;let d=f<<10;for(;e.getBCHDigit(d)-s>=0;)d^=i<<e.getBCHDigit(d)-s;return(f<<10|d)^r},Lr}var Cr={},Ar,Wa;function im(){if(Wa)return Ar;Wa=1;const e=Oe();function i(r){this.mode=e.NUMERIC,this.data=r.toString()}return i.getBitsLength=function(s){return 10*Math.floor(s/3)+(s%3?s%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(s){let a,l,c;for(a=0;a+3<=this.data.length;a+=3)l=this.data.substr(a,3),c=parseInt(l,10),s.put(c,10);const f=this.data.length-a;f>0&&(l=this.data.substr(a),c=parseInt(l,10),s.put(c,f*3+1))},Ar=i,Ar}var Or,Va;function rm(){if(Va)return Or;Va=1;const e=Oe(),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function r(s){this.mode=e.ALPHANUMERIC,this.data=s}return r.getBitsLength=function(a){return 11*Math.floor(a/2)+6*(a%2)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(a){let l;for(l=0;l+2<=this.data.length;l+=2){let c=i.indexOf(this.data[l])*45;c+=i.indexOf(this.data[l+1]),a.put(c,11)}this.data.length%2&&a.put(i.indexOf(this.data[l]),6)},Or=r,Or}var Mr,$a;function om(){if($a)return Mr;$a=1;const e=Oe();function i(r){this.mode=e.BYTE,typeof r=="string"?this.data=new TextEncoder().encode(r):this.data=new Uint8Array(r)}return i.getBitsLength=function(s){return s*8},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(r){for(let s=0,a=this.data.length;s<a;s++)r.put(this.data[s],8)},Mr=i,Mr}var Rr,Ka;function sm(){if(Ka)return Rr;Ka=1;const e=Oe(),i=Ae();function r(s){this.mode=e.KANJI,this.data=s}return r.getBitsLength=function(a){return a*13},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(s){let a;for(a=0;a<this.data.length;a++){let l=i.toSJIS(this.data[a]);if(l>=33088&&l<=40956)l-=33088;else if(l>=57408&&l<=60351)l-=49472;else throw new Error("Invalid SJIS character: "+this.data[a]+`
|
|
Make sure your charset is UTF-8`);l=(l>>>8&255)*192+(l&255),s.put(l,13)}},Rr=r,Rr}var Br={exports:{}},Ja;function am(){return Ja||(Ja=1,(function(e){var i={single_source_shortest_paths:function(r,s,a){var l={},c={};c[s]=0;var f=i.PriorityQueue.make();f.push(s,0);for(var d,p,m,b,T,E,A,v,S;!f.empty();){d=f.pop(),p=d.value,b=d.cost,T=r[p]||{};for(m in T)T.hasOwnProperty(m)&&(E=T[m],A=b+E,v=c[m],S=typeof c[m]>"u",(S||v>A)&&(c[m]=A,f.push(m,A),l[m]=p))}if(typeof a<"u"&&typeof c[a]>"u"){var P=["Could not find a path from ",s," to ",a,"."].join("");throw new Error(P)}return l},extract_shortest_path_from_predecessor_list:function(r,s){for(var a=[],l=s;l;)a.push(l),r[l],l=r[l];return a.reverse(),a},find_path:function(r,s,a){var l=i.single_source_shortest_paths(r,s,a);return i.extract_shortest_path_from_predecessor_list(l,a)},PriorityQueue:{make:function(r){var s=i.PriorityQueue,a={},l;r=r||{};for(l in s)s.hasOwnProperty(l)&&(a[l]=s[l]);return a.queue=[],a.sorter=r.sorter||s.default_sorter,a},default_sorter:function(r,s){return r.cost-s.cost},push:function(r,s){var a={value:r,cost:s};this.queue.push(a),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=i})(Br)),Br.exports}var Ga;function um(){return Ga||(Ga=1,(function(e){const i=Oe(),r=im(),s=rm(),a=om(),l=sm(),c=ql(),f=Ae(),d=am();function p(P){return unescape(encodeURIComponent(P)).length}function m(P,R,O){const M=[];let tt;for(;(tt=P.exec(O))!==null;)M.push({data:tt[0],index:tt.index,mode:R,length:tt[0].length});return M}function b(P){const R=m(c.NUMERIC,i.NUMERIC,P),O=m(c.ALPHANUMERIC,i.ALPHANUMERIC,P);let M,tt;return f.isKanjiModeEnabled()?(M=m(c.BYTE,i.BYTE,P),tt=m(c.KANJI,i.KANJI,P)):(M=m(c.BYTE_KANJI,i.BYTE,P),tt=[]),R.concat(O,M,tt).sort(function(U,j){return U.index-j.index}).map(function(U){return{data:U.data,mode:U.mode,length:U.length}})}function T(P,R){switch(R){case i.NUMERIC:return r.getBitsLength(P);case i.ALPHANUMERIC:return s.getBitsLength(P);case i.KANJI:return l.getBitsLength(P);case i.BYTE:return a.getBitsLength(P)}}function E(P){return P.reduce(function(R,O){const M=R.length-1>=0?R[R.length-1]:null;return M&&M.mode===O.mode?(R[R.length-1].data+=O.data,R):(R.push(O),R)},[])}function A(P){const R=[];for(let O=0;O<P.length;O++){const M=P[O];switch(M.mode){case i.NUMERIC:R.push([M,{data:M.data,mode:i.ALPHANUMERIC,length:M.length},{data:M.data,mode:i.BYTE,length:M.length}]);break;case i.ALPHANUMERIC:R.push([M,{data:M.data,mode:i.BYTE,length:M.length}]);break;case i.KANJI:R.push([M,{data:M.data,mode:i.BYTE,length:p(M.data)}]);break;case i.BYTE:R.push([{data:M.data,mode:i.BYTE,length:p(M.data)}])}}return R}function v(P,R){const O={},M={start:{}};let tt=["start"];for(let N=0;N<P.length;N++){const U=P[N],j=[];for(let z=0;z<U.length;z++){const H=U[z],B=""+N+z;j.push(B),O[B]={node:H,lastCount:0},M[B]={};for(let k=0;k<tt.length;k++){const W=tt[k];O[W]&&O[W].node.mode===H.mode?(M[W][B]=T(O[W].lastCount+H.length,H.mode)-T(O[W].lastCount,H.mode),O[W].lastCount+=H.length):(O[W]&&(O[W].lastCount=H.length),M[W][B]=T(H.length,H.mode)+4+i.getCharCountIndicator(H.mode,R))}}tt=j}for(let N=0;N<tt.length;N++)M[tt[N]].end=0;return{map:M,table:O}}function S(P,R){let O;const M=i.getBestModeForData(P);if(O=i.from(R,M),O!==i.BYTE&&O.bit<M.bit)throw new Error('"'+P+'" cannot be encoded with mode '+i.toString(O)+`.
|
|
Suggested mode is: `+i.toString(M));switch(O===i.KANJI&&!f.isKanjiModeEnabled()&&(O=i.BYTE),O){case i.NUMERIC:return new r(P);case i.ALPHANUMERIC:return new s(P);case i.KANJI:return new l(P);case i.BYTE:return new a(P)}}e.fromArray=function(R){return R.reduce(function(O,M){return typeof M=="string"?O.push(S(M,null)):M.data&&O.push(S(M.data,M.mode)),O},[])},e.fromString=function(R,O){const M=b(R,f.isKanjiModeEnabled()),tt=A(M),N=v(tt,O),U=d.find_path(N.map,"start","end"),j=[];for(let z=1;z<U.length-1;z++)j.push(N.table[U[z]].node);return e.fromArray(E(j))},e.rawSplit=function(R){return e.fromArray(b(R,f.isKanjiModeEnabled()))}})(Cr)),Cr}var Ya;function lm(){if(Ya)return pr;Ya=1;const e=Ae(),i=Fo(),r=$p(),s=Kp(),a=Jp(),l=Gp(),c=Yp(),f=Ul(),d=tm(),p=em(),m=nm(),b=Oe(),T=um();function E(N,U){const j=N.size,z=l.getPositions(U);for(let H=0;H<z.length;H++){const B=z[H][0],k=z[H][1];for(let W=-1;W<=7;W++)if(!(B+W<=-1||j<=B+W))for(let F=-1;F<=7;F++)k+F<=-1||j<=k+F||(W>=0&&W<=6&&(F===0||F===6)||F>=0&&F<=6&&(W===0||W===6)||W>=2&&W<=4&&F>=2&&F<=4?N.set(B+W,k+F,!0,!0):N.set(B+W,k+F,!1,!0))}}function A(N){const U=N.size;for(let j=8;j<U-8;j++){const z=j%2===0;N.set(j,6,z,!0),N.set(6,j,z,!0)}}function v(N,U){const j=a.getPositions(U);for(let z=0;z<j.length;z++){const H=j[z][0],B=j[z][1];for(let k=-2;k<=2;k++)for(let W=-2;W<=2;W++)k===-2||k===2||W===-2||W===2||k===0&&W===0?N.set(H+k,B+W,!0,!0):N.set(H+k,B+W,!1,!0)}}function S(N,U){const j=N.size,z=p.getEncodedBits(U);let H,B,k;for(let W=0;W<18;W++)H=Math.floor(W/3),B=W%3+j-8-3,k=(z>>W&1)===1,N.set(H,B,k,!0),N.set(B,H,k,!0)}function P(N,U,j){const z=N.size,H=m.getEncodedBits(U,j);let B,k;for(B=0;B<15;B++)k=(H>>B&1)===1,B<6?N.set(B,8,k,!0):B<8?N.set(B+1,8,k,!0):N.set(z-15+B,8,k,!0),B<8?N.set(8,z-B-1,k,!0):B<9?N.set(8,15-B-1+1,k,!0):N.set(8,15-B-1,k,!0);N.set(z-8,8,1,!0)}function R(N,U){const j=N.size;let z=-1,H=j-1,B=7,k=0;for(let W=j-1;W>0;W-=2)for(W===6&&W--;;){for(let F=0;F<2;F++)if(!N.isReserved(H,W-F)){let Tt=!1;k<U.length&&(Tt=(U[k]>>>B&1)===1),N.set(H,W-F,Tt),B--,B===-1&&(k++,B=7)}if(H+=z,H<0||j<=H){H-=z,z=-z;break}}}function O(N,U,j){const z=new r;j.forEach(function(F){z.put(F.mode.bit,4),z.put(F.getLength(),b.getCharCountIndicator(F.mode,N)),F.write(z)});const H=e.getSymbolTotalCodewords(N),B=f.getTotalCodewordsCount(N,U),k=(H-B)*8;for(z.getLengthInBits()+4<=k&&z.put(0,4);z.getLengthInBits()%8!==0;)z.putBit(0);const W=(k-z.getLengthInBits())/8;for(let F=0;F<W;F++)z.put(F%2?17:236,8);return M(z,N,U)}function M(N,U,j){const z=e.getSymbolTotalCodewords(U),H=f.getTotalCodewordsCount(U,j),B=z-H,k=f.getBlocksCount(U,j),W=z%k,F=k-W,Tt=Math.floor(z/k),ut=Math.floor(B/k),Vt=ut+1,$=Tt-ut,Ct=new d($);let Z=0;const et=new Array(k),_t=new Array(k);let nt=0;const ot=new Uint8Array(N.buffer);for(let wt=0;wt<k;wt++){const At=wt<F?ut:Vt;et[wt]=ot.slice(Z,Z+At),_t[wt]=Ct.encode(et[wt]),Z+=At,nt=Math.max(nt,At)}const J=new Uint8Array(z);let Y=0,st,K;for(st=0;st<nt;st++)for(K=0;K<k;K++)st<et[K].length&&(J[Y++]=et[K][st]);for(st=0;st<$;st++)for(K=0;K<k;K++)J[Y++]=_t[K][st];return J}function tt(N,U,j,z){let H;if(Array.isArray(N))H=T.fromArray(N);else if(typeof N=="string"){let Tt=U;if(!Tt){const ut=T.rawSplit(N);Tt=p.getBestVersionForData(ut,j)}H=T.fromString(N,Tt||40)}else throw new Error("Invalid data");const B=p.getBestVersionForData(H,j);if(!B)throw new Error("The amount of data is too big to be stored in a QR Code");if(!U)U=B;else if(U<B)throw new Error(`
|
|
The chosen QR Code version cannot contain this amount of data.
|
|
Minimum version required to store current data is: `+B+`.
|
|
`);const k=O(U,j,H),W=e.getSymbolSize(U),F=new s(W);return E(F,U),A(F),v(F,U),P(F,j,0),U>=7&&S(F,U),R(F,k),isNaN(z)&&(z=c.getBestMask(F,P.bind(null,F,j))),c.applyMask(z,F),P(F,j,z),{modules:F,version:U,errorCorrectionLevel:j,maskPattern:z,segments:H}}return pr.create=function(U,j){if(typeof U>"u"||U==="")throw new Error("No input text");let z=i.M,H,B;return typeof j<"u"&&(z=i.from(j.errorCorrectionLevel,i.M),H=p.from(j.version),B=c.from(j.maskPattern),j.toSJISFunc&&e.setToSJISFunction(j.toSJISFunc)),tt(U,H,z,B)},pr}var Ir={},Nr={},Xa;function jl(){return Xa||(Xa=1,(function(e){function i(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let s=r.slice().replace("#","").split("");if(s.length<3||s.length===5||s.length>8)throw new Error("Invalid hex color: "+r);(s.length===3||s.length===4)&&(s=Array.prototype.concat.apply([],s.map(function(l){return[l,l]}))),s.length===6&&s.push("F","F");const a=parseInt(s.join(""),16);return{r:a>>24&255,g:a>>16&255,b:a>>8&255,a:a&255,hex:"#"+s.slice(0,6).join("")}}e.getOptions=function(s){s||(s={}),s.color||(s.color={});const a=typeof s.margin>"u"||s.margin===null||s.margin<0?4:s.margin,l=s.width&&s.width>=21?s.width:void 0,c=s.scale||4;return{width:l,scale:l?4:c,margin:a,color:{dark:i(s.color.dark||"#000000ff"),light:i(s.color.light||"#ffffffff")},type:s.type,rendererOpts:s.rendererOpts||{}}},e.getScale=function(s,a){return a.width&&a.width>=s+a.margin*2?a.width/(s+a.margin*2):a.scale},e.getImageWidth=function(s,a){const l=e.getScale(s,a);return Math.floor((s+a.margin*2)*l)},e.qrToImageData=function(s,a,l){const c=a.modules.size,f=a.modules.data,d=e.getScale(c,l),p=Math.floor((c+l.margin*2)*d),m=l.margin*d,b=[l.color.light,l.color.dark];for(let T=0;T<p;T++)for(let E=0;E<p;E++){let A=(T*p+E)*4,v=l.color.light;if(T>=m&&E>=m&&T<p-m&&E<p-m){const S=Math.floor((T-m)/d),P=Math.floor((E-m)/d);v=b[f[S*c+P]?1:0]}s[A++]=v.r,s[A++]=v.g,s[A++]=v.b,s[A]=v.a}}})(Nr)),Nr}var Qa;function cm(){return Qa||(Qa=1,(function(e){const i=jl();function r(a,l,c){a.clearRect(0,0,l.width,l.height),l.style||(l.style={}),l.height=c,l.width=c,l.style.height=c+"px",l.style.width=c+"px"}function s(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(l,c,f){let d=f,p=c;typeof d>"u"&&(!c||!c.getContext)&&(d=c,c=void 0),c||(p=s()),d=i.getOptions(d);const m=i.getImageWidth(l.modules.size,d),b=p.getContext("2d"),T=b.createImageData(m,m);return i.qrToImageData(T.data,l,d),r(b,p,m),b.putImageData(T,0,0),p},e.renderToDataURL=function(l,c,f){let d=f;typeof d>"u"&&(!c||!c.getContext)&&(d=c,c=void 0),d||(d={});const p=e.render(l,c,d),m=d.type||"image/png",b=d.rendererOpts||{};return p.toDataURL(m,b.quality)}})(Ir)),Ir}var kr={},tu;function hm(){if(tu)return kr;tu=1;const e=jl();function i(a,l){const c=a.a/255,f=l+'="'+a.hex+'"';return c<1?f+" "+l+'-opacity="'+c.toFixed(2).slice(1)+'"':f}function r(a,l,c){let f=a+l;return typeof c<"u"&&(f+=" "+c),f}function s(a,l,c){let f="",d=0,p=!1,m=0;for(let b=0;b<a.length;b++){const T=Math.floor(b%l),E=Math.floor(b/l);!T&&!p&&(p=!0),a[b]?(m++,b>0&&T>0&&a[b-1]||(f+=p?r("M",T+c,.5+E+c):r("m",d,0),d=0,p=!1),T+1<l&&a[b+1]||(f+=r("h",m),m=0)):d++}return f}return kr.render=function(l,c,f){const d=e.getOptions(c),p=l.modules.size,m=l.modules.data,b=p+d.margin*2,T=d.color.light.a?"<path "+i(d.color.light,"fill")+' d="M0 0h'+b+"v"+b+'H0z"/>':"",E="<path "+i(d.color.dark,"stroke")+' d="'+s(m,p,d.margin)+'"/>',A='viewBox="0 0 '+b+" "+b+'"',S='<svg xmlns="http://www.w3.org/2000/svg" '+(d.width?'width="'+d.width+'" height="'+d.width+'" ':"")+A+' shape-rendering="crispEdges">'+T+E+`</svg>
|
|
`;return typeof f=="function"&&f(null,S),S},kr}var eu;function fm(){if(eu)return Ue;eu=1;const e=Vp(),i=lm(),r=cm(),s=hm();function a(l,c,f,d,p){const m=[].slice.call(arguments,1),b=m.length,T=typeof m[b-1]=="function";if(!T&&!e())throw new Error("Callback required as last argument");if(T){if(b<2)throw new Error("Too few arguments provided");b===2?(p=f,f=c,c=d=void 0):b===3&&(c.getContext&&typeof p>"u"?(p=d,d=void 0):(p=d,d=f,f=c,c=void 0))}else{if(b<1)throw new Error("Too few arguments provided");return b===1?(f=c,c=d=void 0):b===2&&!c.getContext&&(d=f,f=c,c=void 0),new Promise(function(E,A){try{const v=i.create(f,d);E(l(v,c,d))}catch(v){A(v)}})}try{const E=i.create(f,d);p(null,l(E,c,d))}catch(E){p(E)}}return Ue.create=i.create,Ue.toCanvas=a.bind(null,r.render),Ue.toDataURL=a.bind(null,r.renderToDataURL),Ue.toString=a.bind(null,function(l,c,f){return s.render(l,f)}),Ue}var dm=fm();const _m=Dl(dm);function pm(e,{serverUrl:i,username:r,password:s}){const a={_type:"configuration",mode:3,url:i,username:r,password:s,deviceId:"phone",tid:r.substring(0,2)},l=JSON.stringify(a),f=`owntracks:///config?inline=${btoa(l)}`;return _m.toCanvas(e,f,{width:256,margin:2},d=>{d&&console.error("QR code generation failed:",d)}),f}window.Alpine=zl;window.L=Cp;window.generateOwntracksQr=pm;window.location.pathname.startsWith("/driver")&&(window.foregroundSync=La,La.init());zl.start();
|