You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
99 KiB
2 lines
99 KiB
2 weeks ago
|
var Kr=Object.defineProperty;var Rr=(e,t,n)=>t in e?Kr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var P=(e,t,n)=>Rr(e,typeof t!="symbol"?t+"":t,n);/* empty css */import{D as Tn}from"./datetime-BDQ5ptpc.js";import{G as qr,g as ue,I as Dr,aI as Pr,aJ as jr,r as Vr}from"./index-MyY_xqVN.js";import{V as _r,f as Un,b as zr,C as Fr,c as Mr,_ as Zr,g as _t,h as zt,i as Ht,j as O,k as ke,t as Oe,m as xt,s as Ft,l as de,o as Hn,w as Gr,q as Nn,F as Yr,x as Nt,p as Wr}from"./index-BLqts8WY.js";import{i as Jr,u as Xr,v as Qr}from"./vue-leaflet.es-D17g3l39.js";import{I as to}from"./ImageMethodDialog-B6b8zZ7c.js";import{Q as eo}from"./QuickNav-DgCyvgDx.js";import"./index-CsfPLOYu.js";import"./PhotoDialog-Dn3GjI9b.js";const Ke=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const un=e=>e instanceof Uint8Array,qt=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),dt=(e,t)=>e<<32-t|e>>>t,no=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!no)throw new Error("Non little-endian hardware is not supported");const ro=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Zt(e){if(!un(e))throw new Error("Uint8Array expected");let t="";for(let n=0;n<e.length;n++)t+=ro[e[n]];return t}function oo(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);const t=e.length;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(t/2);for(let r=0;r<n.length;r++){const o=r*2,i=e.slice(o,o+2),s=Number.parseInt(i,16);if(Number.isNaN(s)||s<0)throw new Error("Invalid byte sequence");n[r]=s}return n}function Qn(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function ie(e){if(typeof e=="string"&&(e=Qn(e)),!un(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}function oe(...e){const t=new Uint8Array(e.reduce((r,o)=>r+o.length,0));let n=0;return e.forEach(r=>{if(!un(r))throw new Error("Uint8Array expected");t.set(r,n),n+=r.length}),t}let tr=class{clone(){return this._cloneInto()}};const io=e=>Object.prototype.toString.call(e)==="[object Object]"&&e.constructor===Object;function so(e,t){if(t!==void 0&&(typeof t!="object"||!io(t)))throw new Error("Options should be object or undefined");return Object.assign(e,t)}function jt(e){const t=r=>e().update(ie(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function ao(e=32){if(Ke&&typeof Ke.getRandomValues=="function")return Ke.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}function Ge(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function co(e){if(typeof e!="boolean")throw new Error(`Expected boolean, not ${e}`)}function Lt(e,...t){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function lo(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Ge(e.outputLen),Ge(e.blockLen)}function fo(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function uo(e,t){Lt(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}const ut={number:Ge,bool:co,bytes:Lt,hash:lo,exists:fo,output:uo};let er=class extends tr{constructor(t,n){super(),this.finished=!1,this.destroyed=!1,ut.hash(t);const r=ie(n);if(this.iHash=t.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const o=this.blockLen,i=new Uint8Array(o);i.set(r.length>o?t.create().update(r).digest():r);for(let s=0;s<i.leng
|