@geops/rvf-mobility-web-component 0.1.37 → 0.1.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.39](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.38...v0.1.39) (2025-03-03)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * allow pdf export when realtime does not exists ([23b6abc](https://github.com/geops/rvf-mobility-web-component/commit/23b6abc22886c1074bb01d14f89e375e1c14d6f7))
11
+
12
+ ### [0.1.38](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.37...v0.1.38) (2025-02-26)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * remove minzoom ([b213fd8](https://github.com/geops/rvf-mobility-web-component/commit/b213fd82803efc875bed5e5aa86629550916bb64))
18
+ * remove minzoom ([111f5bb](https://github.com/geops/rvf-mobility-web-component/commit/111f5bb64e4ff25615327b83f8b2cdded62f38f5))
19
+
5
20
  ### [0.1.37](https://github.com/geops/rvf-mobility-web-component/compare/v0.1.36...v0.1.37) (2025-02-25)
6
21
 
7
22
 
package/index.js CHANGED
@@ -1171,7 +1171,7 @@ endbfchar
1171
1171
  CMapName currentdict /CMap defineresource pop
1172
1172
  end
1173
1173
  end`};e.events.push(["putFont",function(n){(function(l){var A=l.font,f=l.out,y=l.newObject,v=l.putStream;if(A.metadata instanceof r.API.TTFFont&&A.encoding==="Identity-H"){for(var x=A.metadata.Unicode.widths,S=A.metadata.subset.encode(A.metadata.glyIdsUsed,1),b="",U=0;U<S.length;U++)b+=String.fromCharCode(S[U]);var Q=y();v({data:b,addLength1:!0,objectId:Q}),f("endobj");var V=y();v({data:i(A.metadata.toUnicode),addLength1:!0,objectId:V}),f("endobj");var j=y();f("<<"),f("/Type /FontDescriptor"),f("/FontName /"+Wg(A.fontName)),f("/FontFile2 "+Q+" 0 R"),f("/FontBBox "+r.API.PDFObject.convert(A.metadata.bbox)),f("/Flags "+A.metadata.flags),f("/StemV "+A.metadata.stemV),f("/ItalicAngle "+A.metadata.italicAngle),f("/Ascent "+A.metadata.ascender),f("/Descent "+A.metadata.decender),f("/CapHeight "+A.metadata.capHeight),f(">>"),f("endobj");var X=y();f("<<"),f("/Type /Font"),f("/BaseFont /"+Wg(A.fontName)),f("/FontDescriptor "+j+" 0 R"),f("/W "+r.API.PDFObject.convert(x)),f("/CIDToGIDMap /Identity"),f("/DW 1000"),f("/Subtype /CIDFontType2"),f("/CIDSystemInfo"),f("<<"),f("/Supplement 0"),f("/Registry (Adobe)"),f("/Ordering ("+A.encoding+")"),f(">>"),f(">>"),f("endobj"),A.objectNumber=y(),f("<<"),f("/Type /Font"),f("/Subtype /Type0"),f("/ToUnicode "+V+" 0 R"),f("/BaseFont /"+Wg(A.fontName)),f("/Encoding /"+A.encoding),f("/DescendantFonts ["+X+" 0 R]"),f(">>"),f("endobj"),A.isAlreadyPutted=!0}})(n)}]),e.events.push(["putFont",function(n){(function(l){var A=l.font,f=l.out,y=l.newObject,v=l.putStream;if(A.metadata instanceof r.API.TTFFont&&A.encoding==="WinAnsiEncoding"){for(var x=A.metadata.rawData,S="",b=0;b<x.length;b++)S+=String.fromCharCode(x[b]);var U=y();v({data:S,addLength1:!0,objectId:U}),f("endobj");var Q=y();v({data:i(A.metadata.toUnicode),addLength1:!0,objectId:Q}),f("endobj");var V=y();f("<<"),f("/Descent "+A.metadata.decender),f("/CapHeight "+A.metadata.capHeight),f("/StemV "+A.metadata.stemV),f("/Type /FontDescriptor"),f("/FontFile2 "+U+" 0 R"),f("/Flags 96"),f("/FontBBox "+r.API.PDFObject.convert(A.metadata.bbox)),f("/FontName /"+Wg(A.fontName)),f("/ItalicAngle "+A.metadata.italicAngle),f("/Ascent "+A.metadata.ascender),f(">>"),f("endobj"),A.objectNumber=y();for(var j=0;j<A.metadata.hmtx.widths.length;j++)A.metadata.hmtx.widths[j]=parseInt(A.metadata.hmtx.widths[j]*(1e3/A.metadata.head.unitsPerEm));f("<</Subtype/TrueType/Type/Font/ToUnicode "+Q+" 0 R/BaseFont/"+Wg(A.fontName)+"/FontDescriptor "+V+" 0 R/Encoding/"+A.encoding+" /FirstChar 29 /LastChar 255 /Widths "+r.API.PDFObject.convert(A.metadata.hmtx.widths)+">>"),f("endobj"),A.isAlreadyPutted=!0}})(n)}]);var s=function(n){var l,A=n.text||"",f=n.x,y=n.y,v=n.options||{},x=n.mutex||{},S=x.pdfEscape,b=x.activeFontKey,U=x.fonts,Q=b,V="",j=0,X="",T=U[Q].encoding;if(U[Q].encoding!=="Identity-H")return{text:A,x:f,y,options:v,mutex:x};for(X=A,Q=b,Array.isArray(A)&&(X=A[0]),j=0;j<X.length;j+=1)U[Q].metadata.hasOwnProperty("cmap")&&(l=U[Q].metadata.cmap.unicode.codeMap[X[j].charCodeAt(0)]),l||X[j].charCodeAt(0)<256&&U[Q].metadata.hasOwnProperty("Unicode")?V+=X[j]:V+="";var N="";return parseInt(Q.slice(1))<14||T==="WinAnsiEncoding"?N=S(V,Q).split("").map(function(H){return H.charCodeAt(0).toString(16)}).join(""):T==="Identity-H"&&(N=t(V,U[Q])),x.isHex=!0,{text:N,x:f,y,options:v,mutex:x}};e.events.push(["postProcessText",function(n){var l=n.text||"",A=[],f={text:l,x:n.x,y:n.y,options:n.options,mutex:n.mutex};if(Array.isArray(l)){var y=0;for(y=0;y<l.length;y+=1)Array.isArray(l[y])&&l[y].length===3?A.push([s(Object.assign({},f,{text:l[y][0]})).text,l[y][1],l[y][2]]):A.push(s(Object.assign({},f,{text:l[y]})).text);n.text=A}else n.text=s(Object.assign({},f,{text:l})).text}])}(mi),function(r){var e=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};r.existsFileInVFS=function(t){return e.call(this),this.internal.vFS[t]!==void 0},r.addFileToVFS=function(t,i){return e.call(this),this.internal.vFS[t]=i,this},r.getFileFromVFS=function(t){return e.call(this),this.internal.vFS[t]!==void 0?this.internal.vFS[t]:null}}(mi.API),function(r){r.__bidiEngine__=r.prototype.__bidiEngine__=function(i){var s,n,l,A,f,y,v,x=e,S=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],b=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],U={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},Q={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},V=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],j=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),X=!1,T=0;this.__bidiEngine__={};var N=function(oe){var ie=oe.charCodeAt(),xe=ie>>8,pe=Q[xe];return pe!==void 0?x[256*pe+(255&ie)]:xe===252||xe===253?"AL":j.test(xe)?"L":xe===8?"R":"N"},H=function(oe){for(var ie,xe=0;xe<oe.length;xe++){if((ie=N(oe.charAt(xe)))==="L")return!1;if(ie==="R")return!0}return!1},$=function(oe,ie,xe,pe){var Ae,Se,De,Le,Ve=ie[pe];switch(Ve){case"L":case"R":X=!1;break;case"N":case"AN":break;case"EN":X&&(Ve="AN");break;case"AL":X=!0,Ve="R";break;case"WS":Ve="N";break;case"CS":pe<1||pe+1>=ie.length||(Ae=xe[pe-1])!=="EN"&&Ae!=="AN"||(Se=ie[pe+1])!=="EN"&&Se!=="AN"?Ve="N":X&&(Se="AN"),Ve=Se===Ae?Se:"N";break;case"ES":Ve=(Ae=pe>0?xe[pe-1]:"B")==="EN"&&pe+1<ie.length&&ie[pe+1]==="EN"?"EN":"N";break;case"ET":if(pe>0&&xe[pe-1]==="EN"){Ve="EN";break}if(X){Ve="N";break}for(De=pe+1,Le=ie.length;De<Le&&ie[De]==="ET";)De++;Ve=De<Le&&ie[De]==="EN"?"EN":"N";break;case"NSM":if(l&&!A){for(Le=ie.length,De=pe+1;De<Le&&ie[De]==="NSM";)De++;if(De<Le){var Ge=oe[pe],vt=Ge>=1425&&Ge<=2303||Ge===64286;if(Ae=ie[De],vt&&(Ae==="R"||Ae==="AL")){Ve="R";break}}}Ve=pe<1||(Ae=ie[pe-1])==="B"?"N":xe[pe-1];break;case"B":X=!1,s=!0,Ve=T;break;case"S":n=!0,Ve="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":X=!1;break;case"BN":Ve="N"}return Ve},J=function(oe,ie,xe){var pe=oe.split("");return xe&&ee(pe,xe,{hiLevel:T}),pe.reverse(),ie&&ie.reverse(),pe.join("")},ee=function(oe,ie,xe){var pe,Ae,Se,De,Le,Ve=-1,Ge=oe.length,vt=0,de=[],Fe=T?b:S,Ee=[];for(X=!1,s=!1,n=!1,Ae=0;Ae<Ge;Ae++)Ee[Ae]=N(oe[Ae]);for(Se=0;Se<Ge;Se++){if(Le=vt,de[Se]=$(oe,Ee,de,Se),pe=240&(vt=Fe[Le][U[de[Se]]]),vt&=15,ie[Se]=De=Fe[vt][5],pe>0)if(pe===16){for(Ae=Ve;Ae<Se;Ae++)ie[Ae]=1;Ve=-1}else Ve=-1;if(Fe[vt][6])Ve===-1&&(Ve=Se);else if(Ve>-1){for(Ae=Ve;Ae<Se;Ae++)ie[Ae]=De;Ve=-1}Ee[Se]==="B"&&(ie[Se]=0),xe.hiLevel|=De}n&&function(ze,$e,ot){for(var At=0;At<ot;At++)if(ze[At]==="S"){$e[At]=T;for(var ht=At-1;ht>=0&&ze[ht]==="WS";ht--)$e[ht]=T}}(Ee,ie,Ge)},re=function(oe,ie,xe,pe,Ae){if(!(Ae.hiLevel<oe)){if(oe===1&&T===1&&!s)return ie.reverse(),void(xe&&xe.reverse());for(var Se,De,Le,Ve,Ge=ie.length,vt=0;vt<Ge;){if(pe[vt]>=oe){for(Le=vt+1;Le<Ge&&pe[Le]>=oe;)Le++;for(Ve=vt,De=Le-1;Ve<De;Ve++,De--)Se=ie[Ve],ie[Ve]=ie[De],ie[De]=Se,xe&&(Se=xe[Ve],xe[Ve]=xe[De],xe[De]=Se);vt=Le}vt++}}},_e=function(oe,ie,xe){var pe=oe.split(""),Ae={hiLevel:T};return xe||(xe=[]),ee(pe,xe,Ae),function(Se,De,Le){if(Le.hiLevel!==0&&v)for(var Ve,Ge=0;Ge<Se.length;Ge++)De[Ge]===1&&(Ve=V.indexOf(Se[Ge]))>=0&&(Se[Ge]=V[Ve+1])}(pe,xe,Ae),re(2,pe,ie,xe,Ae),re(1,pe,ie,xe,Ae),pe.join("")};return this.__bidiEngine__.doBidiReorder=function(oe,ie,xe){if(function(Ae,Se){if(Se)for(var De=0;De<Ae.length;De++)Se[De]=De;A===void 0&&(A=H(Ae)),y===void 0&&(y=H(Ae))}(oe,ie),l||!f||y)if(l&&f&&A^y)T=A?1:0,oe=J(oe,ie,xe);else if(!l&&f&&y)T=A?1:0,oe=_e(oe,ie,xe),oe=J(oe,ie);else if(!l||A||f||y){if(l&&!f&&A^y)oe=J(oe,ie),A?(T=0,oe=_e(oe,ie,xe)):(T=1,oe=_e(oe,ie,xe),oe=J(oe,ie));else if(l&&A&&!f&&y)T=1,oe=_e(oe,ie,xe),oe=J(oe,ie);else if(!l&&!f&&A^y){var pe=v;A?(T=1,oe=_e(oe,ie,xe),T=0,v=!1,oe=_e(oe,ie,xe),v=pe):(T=0,oe=_e(oe,ie,xe),oe=J(oe,ie),T=1,v=!1,oe=_e(oe,ie,xe),v=pe,oe=J(oe,ie))}}else T=0,oe=_e(oe,ie,xe);else T=A?1:0,oe=_e(oe,ie,xe);return oe},this.__bidiEngine__.setOptions=function(oe){oe&&(l=oe.isInputVisual,f=oe.isOutputVisual,A=oe.isInputRtl,y=oe.isOutputRtl,v=oe.isSymmetricSwapping)},this.__bidiEngine__.setOptions(i),this.__bidiEngine__};var e=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],t=new r.__bidiEngine__({isInputVisual:!0});r.API.events.push(["postProcessText",function(i){var s=i.text,n=(i.x,i.y,i.options||{}),l=(i.mutex,n.lang,[]);if(n.isInputVisual=typeof n.isInputVisual!="boolean"||n.isInputVisual,t.setOptions(n),Object.prototype.toString.call(s)==="[object Array]"){var A=0;for(l=[],A=0;A<s.length;A+=1)Object.prototype.toString.call(s[A])==="[object Array]"?l.push([t.doBidiReorder(s[A][0]),s[A][1],s[A][2]]):l.push([t.doBidiReorder(s[A])]);i.text=l}else i.text=t.doBidiReorder(s);t.setOptions({isInputVisual:!0})}])}(mi),mi.API.TTFFont=function(){function r(e){var t;if(this.rawData=e,t=this.contents=new ep(e),this.contents.pos=4,t.readString(4)==="ttcf")throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new koe(this),this.registerTTF()}return r.open=function(e){return new r(e)},r.prototype.parse=function(){return this.directory=new woe(this.contents),this.head=new boe(this),this.name=new Ioe(this),this.cmap=new sQ(this),this.toUnicode={},this.hhea=new Coe(this),this.maxp=new Toe(this),this.hmtx=new Loe(this),this.post=new Eoe(this),this.os2=new Boe(this),this.loca=new Roe(this),this.glyf=new Foe(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},r.prototype.registerTTF=function(){var e,t,i,s,n;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var l,A,f,y;for(y=[],l=0,A=(f=this.bbox).length;l<A;l++)e=f[l],y.push(Math.round(e*this.scaleFactor));return y}.call(this),this.stemV=0,this.post.exists?(i=255&(s=this.post.italic_angle),32768&(t=s>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+i)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(n=this.familyClass)===1||n===2||n===3||n===4||n===5||n===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},r.prototype.characterToGlyph=function(e){var t;return((t=this.cmap.unicode)!=null?t.codeMap[e]:void 0)||0},r.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},r.prototype.widthOfString=function(e,t,i){var s,n,l,A;for(l=0,n=0,A=(e=""+e).length;0<=A?n<A:n>A;n=0<=A?++n:--n)s=e.charCodeAt(n),l+=this.widthOfGlyph(this.characterToGlyph(s))+i*(1e3/t)||0;return l*(t/1e3)},r.prototype.lineHeight=function(e,t){var i;return t==null&&(t=!1),i=t?this.lineGap:0,(this.ascender+i-this.decender)/1e3*e},r}();var ZA,ep=function(){function r(e){this.data=e??[],this.pos=0,this.length=this.data.length}return r.prototype.readByte=function(){return this.data[this.pos++]},r.prototype.writeByte=function(e){return this.data[this.pos++]=e},r.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},r.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},r.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},r.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},r.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},r.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},r.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},r.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},r.prototype.readString=function(e){var t,i;for(i=[],t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)i[t]=String.fromCharCode(this.readByte());return i.join("")},r.prototype.writeString=function(e){var t,i,s;for(s=[],t=0,i=e.length;0<=i?t<i:t>i;t=0<=i?++t:--t)s.push(this.writeByte(e.charCodeAt(t)));return s},r.prototype.readShort=function(){return this.readInt16()},r.prototype.writeShort=function(e){return this.writeInt16(e)},r.prototype.readLongLong=function(){var e,t,i,s,n,l,A,f;return e=this.readByte(),t=this.readByte(),i=this.readByte(),s=this.readByte(),n=this.readByte(),l=this.readByte(),A=this.readByte(),f=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^i)+4294967296*(255^s)+16777216*(255^n)+65536*(255^l)+256*(255^A)+(255^f)+1):72057594037927940*e+281474976710656*t+1099511627776*i+4294967296*s+16777216*n+65536*l+256*A+f},r.prototype.writeLongLong=function(e){var t,i;return t=Math.floor(e/4294967296),i=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(i>>24&255),this.writeByte(i>>16&255),this.writeByte(i>>8&255),this.writeByte(255&i)},r.prototype.readInt=function(){return this.readInt32()},r.prototype.writeInt=function(e){return this.writeInt32(e)},r.prototype.read=function(e){var t,i;for(t=[],i=0;0<=e?i<e:i>e;i=0<=e?++i:--i)t.push(this.readByte());return t},r.prototype.write=function(e){var t,i,s,n;for(n=[],i=0,s=e.length;i<s;i++)t=e[i],n.push(this.writeByte(t));return n},r}(),woe=function(){var r;function e(t){var i,s,n;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},s=0,n=this.tableCount;0<=n?s<n:s>n;s=0<=n?++s:--s)i={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[i.tag]=i}return e.prototype.encode=function(t){var i,s,n,l,A,f,y,v,x,S,b,U,Q;for(Q in b=Object.keys(t).length,f=Math.log(2),x=16*Math.floor(Math.log(b)/f),l=Math.floor(x/f),v=16*b-x,(s=new ep).writeInt(this.scalarType),s.writeShort(b),s.writeShort(x),s.writeShort(l),s.writeShort(v),n=16*b,y=s.pos+n,A=null,U=[],t)for(S=t[Q],s.writeString(Q),s.writeInt(r(S)),s.writeInt(y),s.writeInt(S.length),U=U.concat(S),Q==="head"&&(A=y),y+=S.length;y%4;)U.push(0),y++;return s.write(U),i=2981146554-r(s.data),s.pos=A+8,s.writeUInt32(i),s.data},r=function(t){var i,s,n,l;for(t=oQ.call(t);t.length%4;)t.push(0);for(n=new ep(t),s=0,i=0,l=t.length;i<l;i=i+=4)s+=n.readUInt32();return 4294967295&s},e}(),xoe={}.hasOwnProperty,Zh=function(r,e){for(var t in e)xoe.call(e,t)&&(r[t]=e[t]);function i(){this.constructor=r}return i.prototype=e.prototype,r.prototype=new i,r.__super__=e.prototype,r};ZA=function(){function r(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return r.prototype.parse=function(){},r.prototype.encode=function(){},r.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},r}();var boe=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return Zh(e,ZA),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var i;return(i=new ep).writeInt(this.version),i.writeInt(this.revision),i.writeInt(this.checkSumAdjustment),i.writeInt(this.magicNumber),i.writeShort(this.flags),i.writeShort(this.unitsPerEm),i.writeLongLong(this.created),i.writeLongLong(this.modified),i.writeShort(this.xMin),i.writeShort(this.yMin),i.writeShort(this.xMax),i.writeShort(this.yMax),i.writeShort(this.macStyle),i.writeShort(this.lowestRecPPEM),i.writeShort(this.fontDirectionHint),i.writeShort(t),i.writeShort(this.glyphDataFormat),i.data},e}(),WN=function(){function r(e,t){var i,s,n,l,A,f,y,v,x,S,b,U,Q,V,j,X,T;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),x=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(f=0;f<256;++f)this.codeMap[f]=e.readByte();break;case 4:for(b=e.readUInt16(),S=b/2,e.pos+=6,n=function(){var N,H;for(H=[],f=N=0;0<=S?N<S:N>S;f=0<=S?++N:--N)H.push(e.readUInt16());return H}(),e.pos+=2,Q=function(){var N,H;for(H=[],f=N=0;0<=S?N<S:N>S;f=0<=S?++N:--N)H.push(e.readUInt16());return H}(),y=function(){var N,H;for(H=[],f=N=0;0<=S?N<S:N>S;f=0<=S?++N:--N)H.push(e.readUInt16());return H}(),v=function(){var N,H;for(H=[],f=N=0;0<=S?N<S:N>S;f=0<=S?++N:--N)H.push(e.readUInt16());return H}(),s=(this.length-e.pos+this.offset)/2,A=function(){var N,H;for(H=[],f=N=0;0<=s?N<s:N>s;f=0<=s?++N:--N)H.push(e.readUInt16());return H}(),f=j=0,T=n.length;j<T;f=++j)for(V=n[f],i=X=U=Q[f];U<=V?X<=V:X>=V;i=U<=V?++X:--X)v[f]===0?l=i+y[f]:(l=A[v[f]/2+(i-U)-(S-f)]||0)!==0&&(l+=y[f]),this.codeMap[i]=65535&l}e.pos=x}return r.encode=function(e,t){var i,s,n,l,A,f,y,v,x,S,b,U,Q,V,j,X,T,N,H,$,J,ee,re,_e,oe,ie,xe,pe,Ae,Se,De,Le,Ve,Ge,vt,de,Fe,Ee,ze,$e,ot,At,ht,Et,Ct,Vt;switch(pe=new ep,l=Object.keys(e).sort(function(Wt,Ze){return Wt-Ze}),t){case"macroman":for(Q=0,V=function(){var Wt=[];for(U=0;U<256;++U)Wt.push(0);return Wt}(),X={0:0},n={},Ae=0,Ve=l.length;Ae<Ve;Ae++)X[ht=e[s=l[Ae]]]==null&&(X[ht]=++Q),n[s]={old:e[s],new:X[e[s]]},V[s]=X[e[s]];return pe.writeUInt16(1),pe.writeUInt16(0),pe.writeUInt32(12),pe.writeUInt16(0),pe.writeUInt16(262),pe.writeUInt16(0),pe.write(V),{charMap:n,subtable:pe.data,maxGlyphID:Q+1};case"unicode":for(ie=[],x=[],T=0,X={},i={},j=y=null,Se=0,Ge=l.length;Se<Ge;Se++)X[H=e[s=l[Se]]]==null&&(X[H]=++T),i[s]={old:H,new:X[H]},A=X[H]-s,j!=null&&A===y||(j&&x.push(j),ie.push(s),y=A),j=s;for(j&&x.push(j),x.push(65535),ie.push(65535),_e=2*(re=ie.length),ee=2*Math.pow(Math.log(re)/Math.LN2,2),S=Math.log(ee/2)/Math.LN2,J=2*re-ee,f=[],$=[],b=[],U=De=0,vt=ie.length;De<vt;U=++De){if(oe=ie[U],v=x[U],oe===65535){f.push(0),$.push(0);break}if(oe-(xe=i[oe].new)>=32768)for(f.push(0),$.push(2*(b.length+re-U)),s=Le=oe;oe<=v?Le<=v:Le>=v;s=oe<=v?++Le:--Le)b.push(i[s].new);else f.push(xe-oe),$.push(0)}for(pe.writeUInt16(3),pe.writeUInt16(1),pe.writeUInt32(12),pe.writeUInt16(4),pe.writeUInt16(16+8*re+2*b.length),pe.writeUInt16(0),pe.writeUInt16(_e),pe.writeUInt16(ee),pe.writeUInt16(S),pe.writeUInt16(J),ot=0,de=x.length;ot<de;ot++)s=x[ot],pe.writeUInt16(s);for(pe.writeUInt16(0),At=0,Fe=ie.length;At<Fe;At++)s=ie[At],pe.writeUInt16(s);for(Et=0,Ee=f.length;Et<Ee;Et++)A=f[Et],pe.writeUInt16(A);for(Ct=0,ze=$.length;Ct<ze;Ct++)N=$[Ct],pe.writeUInt16(N);for(Vt=0,$e=b.length;Vt<$e;Vt++)Q=b[Vt],pe.writeUInt16(Q);return{charMap:i,subtable:pe.data,maxGlyphID:T+1}}},r}(),sQ=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return Zh(e,ZA),e.prototype.tag="cmap",e.prototype.parse=function(t){var i,s,n;for(t.pos=this.offset,this.version=t.readUInt16(),n=t.readUInt16(),this.tables=[],this.unicode=null,s=0;0<=n?s<n:s>n;s=0<=n?++s:--s)i=new WN(t,this.offset),this.tables.push(i),i.isUnicode&&this.unicode==null&&(this.unicode=i);return!0},e.encode=function(t,i){var s,n;return i==null&&(i="macroman"),s=WN.encode(t,i),(n=new ep).writeUInt16(0),n.writeUInt16(1),s.table=n.data.concat(s.subtable),s},e}(),Coe=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return Zh(e,ZA),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),Boe=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return Zh(e,ZA),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var i,s;for(s=[],i=0;i<10;++i)s.push(t.readByte());return s}(),this.charRange=function(){var i,s;for(s=[],i=0;i<4;++i)s.push(t.readInt());return s}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var i,s;for(s=[],i=0;i<2;i=++i)s.push(t.readInt());return s}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),Eoe=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return Zh(e,ZA),e.prototype.tag="post",e.prototype.parse=function(t){var i,s,n;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:break;case 131072:var l;for(s=t.readUInt16(),this.glyphNameIndex=[],l=0;0<=s?l<s:l>s;l=0<=s?++l:--l)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],n=[];t.pos<this.offset+this.length;)i=t.readByte(),n.push(this.names.push(t.readString(i)));return n;case 151552:return s=t.readUInt16(),this.offsets=t.read(s);case 196608:break;case 262144:return this.map=function(){var A,f,y;for(y=[],l=A=0,f=this.file.maxp.numGlyphs;0<=f?A<f:A>f;l=0<=f?++A:--A)y.push(t.readUInt32());return y}.call(this)}},e}(),Soe=function(r,e){this.raw=r,this.length=r.length,this.platformID=e.platformID,this.encodingID=e.encodingID,this.languageID=e.languageID},Ioe=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return Zh(e,ZA),e.prototype.tag="name",e.prototype.parse=function(t){var i,s,n,l,A,f,y,v,x,S,b;for(t.pos=this.offset,t.readShort(),i=t.readShort(),f=t.readShort(),s=[],l=0;0<=i?l<i:l>i;l=0<=i?++l:--l)s.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+f+t.readShort()});for(y={},l=x=0,S=s.length;x<S;l=++x)n=s[l],t.pos=n.offset,v=t.readString(n.length),A=new Soe(v,n),y[b=n.nameID]==null&&(y[b]=[]),y[n.nameID].push(A);this.strings=y,this.copyright=y[0],this.fontFamily=y[1],this.fontSubfamily=y[2],this.uniqueSubfamily=y[3],this.fontName=y[4],this.version=y[5];try{this.postscriptName=y[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=y[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=y[7],this.manufacturer=y[8],this.designer=y[9],this.description=y[10],this.vendorUrl=y[11],this.designerUrl=y[12],this.license=y[13],this.licenseUrl=y[14],this.preferredFamily=y[15],this.preferredSubfamily=y[17],this.compatibleFull=y[18],this.sampleText=y[19]},e}(),Toe=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return Zh(e,ZA),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e}(),Loe=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return Zh(e,ZA),e.prototype.tag="hmtx",e.prototype.parse=function(t){var i,s,n,l,A,f,y;for(t.pos=this.offset,this.metrics=[],i=0,f=this.file.hhea.numberOfMetrics;0<=f?i<f:i>f;i=0<=f?++i:--i)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var v,x;for(x=[],i=v=0;0<=n?v<n:v>n;i=0<=n?++v:--v)x.push(t.readInt16());return x}(),this.widths=function(){var v,x,S,b;for(b=[],v=0,x=(S=this.metrics).length;v<x;v++)l=S[v],b.push(l.advance);return b}.call(this),s=this.widths[this.widths.length-1],y=[],i=A=0;0<=n?A<n:A>n;i=0<=n?++A:--A)y.push(this.widths.push(s));return y},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),oQ=[].slice,Foe=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return Zh(e,ZA),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var i,s,n,l,A,f,y,v,x,S;return t in this.cache?this.cache[t]:(l=this.file.loca,i=this.file.contents,s=l.indexOf(t),(n=l.lengthOf(t))===0?this.cache[t]=null:(i.pos=this.offset+s,A=(f=new ep(i.read(n))).readShort(),v=f.readShort(),S=f.readShort(),y=f.readShort(),x=f.readShort(),this.cache[t]=A===-1?new Poe(f,v,S,y,x):new Moe(f,A,v,S,y,x),this.cache[t]))},e.prototype.encode=function(t,i,s){var n,l,A,f,y;for(A=[],l=[],f=0,y=i.length;f<y;f++)n=t[i[f]],l.push(A.length),n&&(A=A.concat(n.encode(s)));return l.push(A.length),{table:A,offsets:l}},e}(),Moe=function(){function r(e,t,i,s,n,l){this.raw=e,this.numberOfContours=t,this.xMin=i,this.yMin=s,this.xMax=n,this.yMax=l,this.compound=!1}return r.prototype.encode=function(){return this.raw.data},r}(),Poe=function(){function r(e,t,i,s,n){var l,A;for(this.raw=e,this.xMin=t,this.yMin=i,this.xMax=s,this.yMax=n,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],l=this.raw;A=l.readShort(),this.glyphOffsets.push(l.pos),this.glyphIDs.push(l.readUInt16()),32&A;)l.pos+=1&A?4:2,128&A?l.pos+=8:64&A?l.pos+=4:8&A&&(l.pos+=2)}return r.prototype.encode=function(){var e,t,i;for(t=new ep(oQ.call(this.raw.data)),e=0,i=this.glyphIDs.length;e<i;++e)t.pos=this.glyphOffsets[e];return t.data},r}(),Roe=function(r){function e(){return e.__super__.constructor.apply(this,arguments)}return Zh(e,ZA),e.prototype.tag="loca",e.prototype.parse=function(t){var i,s;return t.pos=this.offset,i=this.file.head.indexToLocFormat,this.offsets=i===0?function(){var n,l;for(l=[],s=0,n=this.length;s<n;s+=2)l.push(2*t.readUInt16());return l}.call(this):function(){var n,l;for(l=[],s=0,n=this.length;s<n;s+=4)l.push(t.readUInt32());return l}.call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,i){for(var s=new Uint32Array(this.offsets.length),n=0,l=0,A=0;A<s.length;++A)if(s[A]=n,l<i.length&&i[l]==A){++l,s[A]=n;var f=this.offsets[A],y=this.offsets[A+1]-f;y>0&&(n+=y)}for(var v=new Array(4*s.length),x=0;x<s.length;++x)v[4*x+3]=255&s[x],v[4*x+2]=(65280&s[x])>>8,v[4*x+1]=(16711680&s[x])>>16,v[4*x]=(4278190080&s[x])>>24;return v},e}(),koe=function(){function r(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return r.prototype.generateCmap=function(){var e,t,i,s,n;for(t in s=this.font.cmap.tables[0].codeMap,e={},n=this.subset)i=n[t],e[t]=s[i];return e},r.prototype.glyphsFor=function(e){var t,i,s,n,l,A,f;for(s={},l=0,A=e.length;l<A;l++)s[n=e[l]]=this.font.glyf.glyphFor(n);for(n in t=[],s)(i=s[n])!=null&&i.compound&&t.push.apply(t,i.glyphIDs);if(t.length>0)for(n in f=this.glyphsFor(t))i=f[n],s[n]=i;return s},r.prototype.encode=function(e,t){var i,s,n,l,A,f,y,v,x,S,b,U,Q,V,j;for(s in i=sQ.encode(this.generateCmap(),"unicode"),l=this.glyphsFor(e),b={0:0},j=i.charMap)b[(f=j[s]).old]=f.new;for(U in S=i.maxGlyphID,l)U in b||(b[U]=S++);return v=function(X){var T,N;for(T in N={},X)N[X[T]]=T;return N}(b),x=Object.keys(v).sort(function(X,T){return X-T}),Q=function(){var X,T,N;for(N=[],X=0,T=x.length;X<T;X++)A=x[X],N.push(v[A]);return N}(),n=this.font.glyf.encode(l,Q,b),y=this.font.loca.encode(n.offsets,Q),V={cmap:this.font.cmap.raw(),glyf:n.table,loca:y,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(V["OS/2"]=this.font.os2.raw()),this.font.directory.encode(V)},r}();mi.API.PDFObject=function(){var r;function e(){}return r=function(t,i){return(Array(i+1).join("0")+t).slice(-i)},e.convert=function(t){var i,s,n,l;if(Array.isArray(t))return"["+function(){var A,f,y;for(y=[],A=0,f=t.length;A<f;A++)i=t[A],y.push(e.convert(i));return y}().join(" ")+"]";if(typeof t=="string")return"/"+t;if(t?.isString)return"("+t+")";if(t instanceof Date)return"(D:"+r(t.getUTCFullYear(),4)+r(t.getUTCMonth(),2)+r(t.getUTCDate(),2)+r(t.getUTCHours(),2)+r(t.getUTCMinutes(),2)+r(t.getUTCSeconds(),2)+"Z)";if({}.toString.call(t)==="[object Object]"){for(s in n=["<<"],t)l=t[s],n.push("/"+s+" "+e.convert(l));return n.push(">>"),n.join(`
1174
- `)}return""+t},e}();var aQ=mi;var v8=!1;var Doe=(r,e,t,i=1)=>{let n,l;do n=r.font.match(/[0-9]+(?:\.[0-9]+)?(px)/i),l=parseInt(n[0].replace(n[1],""),10),r.font=r.font.replace(l,l-1),v8=!1,l-1===8&&(v8=!0);while(l-1>8&&r.measureText(t).width*i>e);return r.font};var Ooe=function(){function r(t,i,s){for(let n=0;n<i;++n)if(t.data[s*i*4+n*4+3]!==0)return!1;return!0}function e(t,i,s,n,l){for(let A=n;A<l;++A)if(t.data[A*i*4+s*4+3]!==0)return!1;return!0}return function(t){let i=t.getContext("2d"),s=t.width,n=i.getImageData(0,0,t.width,t.height),l=n.height,A=0,f=n.width,y=0;for(;y<l&&r(n,s,y);)++y;for(;l-1>y&&r(n,s,l-1);)--l;for(;A<f&&e(n,s,A,y,l);)++A;for(;f-1>A&&e(n,s,f-1,y,l);)--f;let v=i.getImageData(A,y,f-A,l-y),x=t.ownerDocument.createElement("canvas"),S=x.getContext("2d");return x.width=v.width,x.height=v.height,S.putImageData(v,0,0),x}}(),Uoe=(r,e,t,i)=>{let s=document.createElement("canvas");s.width=e,s.height=t;let{fillStyle:n="black",font:l="12px Arial",textAlign:A="left",textBaseline:f="top"}=i,y=s.getContext("2d");y.fillStyle=n,y.font=l,y.font=Doe(y,s.width,r),y.textAlign=A,y.textBaseline=f;let v=r,x=y.measureText(v);if(v8){let j=r.split(" ").length;for(let X=0;X<j&&!(x.width*scale<s.width);X+=1)v=v.substring(0,v.lastIndexOf(" ")),x=y.measureText(v)}let S=r.replace(v,"").trim(),b=[v,S].filter(j=>!!j);f==="bottom"&&(b=b.reverse());let U=A==="right"?s.width:0,Q=f==="bottom"?s.height:0;return b.forEach(j=>{let{fontBoundingBoxAscent:X,fontBoundingBoxDescent:T}=y.measureText(j),N=X+T;y.fillText(j,U,Q);let H=N;f==="bottom"&&(H=-N),Q=Q+H}),Ooe(s)},Noe=(r,e,t={})=>{let{fillStyle:i,font:s,margin:n=10,placement:l="bottom-left"}=t,[A,f]=l.split("-"),y=typeof r=="function"?r():r,v=Uoe(y,e.width,e.height,{fillStyle:i,font:s,textAlign:f,textBaseline:A}),x=n,S=n;f==="right"&&(x=e.width-v.width-n),A==="bottom"&&(S=e.height-v.height-n),e.getContext("2d").drawImage(v,x,S)};var Qoe=(r,e,t)=>{let i,s;if(e?(i=Sp(e),s=Ep(e)):t&&([i,,s]=t),i&&s){let n=r.getPixelFromCoordinate(i),l=r.getPixelFromCoordinate(s),A=[n[0]<=l[0]?n[0]:l[0],n[1]<=l[1]?n[1]:l[1]],f=[n[0]>l[0]?n[0]:l[0],n[1]>l[1]?n[1]:l[1]];return{h:f[1]-A[1],w:f[0]-A[0],x:A[0],y:A[1]}}return null},lQ=async(r,e,t)=>{let i=r.getTargetElement().getElementsByTagName("canvas"),s,n;for(let l=0;l<i.length;l+=1){let A=i[l];if(!A.width||!A.height)continue;let f=Qoe(r,e,t)||{h:A.height,w:A.width,x:0,y:0};s||(s=document.createElement("canvas"),s.width=f.w,s.height=f.h,n=s.getContext("2d")),n.drawImage(A,f.x,f.y,f.w,f.h,0,0,s.width,s.height)}return s},zoe=async(r,e="image/png",t=i=>i.replace("/","."))=>{try{if(window.navigator.msSaveBlob){let i;try{i=r.msToBlob()}catch(n){console.error(n)}let s=new Blob([i],{type:e});window.navigator.msSaveBlob(s,t(e))}else r.toBlob(i=>{let s=document.createElement("a");s.download=t(e),s.href=URL.createObjectURL(i),document.body.appendChild(s),s.click()},e);return!0}catch(i){return console.error(i),!1}},Hoe=async(r,e,t,i,s={},n={})=>{let l=i||r.getSize(),A=t,f=document.createElement("div");f.style.width=`${l[0]}px`,f.style.height=`${l[1]}px`,f.style.margin="0 0 0 -50000px",document.body.style.overflow="hidden",f.style.position="absolute",f.style.top="400px",f.style.zIndex="10000",document.body.append(f);let y=new qp({pixelRatio:window.devicePixelRatio,target:f,view:new el({center:r.getView().getCenter(),projection:r.getView().getProjection(),zoom:r.getView().getZoom(),...n}),...s});return A&&y.getView().fit(A),y.setLayers(e),await new Promise(x=>{let S=window.setTimeout(()=>{x(y)},1e4);y.once("rendercomplete",async()=>{clearTimeout(S),x(y)})})},Voe={A0:[3370,2384],A1:[2384,1684],A3:[1191,842],A4:[842,595]};async function joe(r,e={},t={}){let{onAfter:i,onBefore:s,pixelRatio:n=3,useCopyright:l=!0,useMaxExtent:A=!1,usePlaceholder:f=!0}=t,y=e?.format||"A4",v=Voe[y]||y,x=v.map(T=>T*96/72),S=A?r2:null,b=window.devicePixelRatio;Object.defineProperty(window,"devicePixelRatio",{get(){return n}});let U;f&&(U=await lQ(r),U.style.zIndex="0",U.style.position="absolute",r.getViewport().querySelector(".ol-layers").insertAdjacentElement("afterend",U));let Q=[...r.getLayers().getArray()],V=t?.copyrightOptions?.text||r.getControls().getArray().find(T=>T instanceof i1)?.element?.textContent;r.getLayers().clear(),s?.(r,Q);let j=await Hoe(r,Q,S,x,{pixelRatio:n});Object.defineProperty(window,"devicePixelRatio",{get(){return b}});let X=await lQ(j);if(j.getLayers().clear(),j.getTargetElement().remove(),j.setTarget(null),j.dispose(),document.body.style.overflow="auto",r.setLayers(Q),i?.(r,Q),U&&r.once("rendercomplete",()=>{U.remove()}),l&&Noe(V,X,{...t?.copyrightOptions||{},font:(n*12).toString()+"px Arial"}),/^A[0-9]{1,2}/.test(y)||y?.length===2){try{let T=new aQ({orientation:"landscape",unit:"pt",...e});T.addImage(X,"JPEG",0,0,v[0],v[1]),T.save(`rvf-${new Date().toISOString().slice(0,10)}.pdf`)}catch(T){return console.error(T),!1}return!0}else return await zoe(X)}var uQ=joe;var Goe=r=>{let e=[];function t(i){i.forEach(function(s){s instanceof zh?t(s.getLayers()):e.push(s)})}return t(r?.getLayers?.()||r),e},_8=Goe;var cQ=["A4","A3","A1","A0"],w8=!1;function qoe({...r}){let{map:e,realtimeLayer:t}=kr(),[i,s]=fr(!1),[n,l]=fr(cQ[0]),A=vd(),f=vd(),[y,v]=fr(!1),[x,S]=fr(!1);return Z("div",{...r,children:[Z("div",{className:"flex flex-1 flex-col gap-2",children:[Z("div",{className:"flex flex-wrap items-center gap-2",children:[Z(H1,{checked:i,id:A,onChange:()=>s(!i)}),Z("label",{htmlFor:A,children:"Ganze Region exportieren"})]}),Z("div",{className:"flex flex-wrap items-center gap-2",children:[Z("label",{htmlFor:f,children:"Format:"}),Z(y4,{className:"w-24",id:f,onChange:b=>{l(b.target.value)},children:cQ.map(b=>Z("option",{children:b},b))})]})]}),Z("div",{children:Z(_g,{disabled:y,onClick:async()=>{S(!1),v(!0);let b=await uQ(e,{format:n},{onAfter:(U,Q)=>{w8!==t.getVisible()&&t.setVisible(w8),_8(Q).forEach(V=>{V.set(Gh,!1)}),U.set(Gh,!1)},onBefore:(U,Q)=>{U.set(Gh,!0),w8=t.getVisible(),t.getVisible()&&t.setVisible(!1),_8(Q).forEach(V=>{V.set(Gh,!0)})},useMaxExtent:i});setTimeout(()=>{v(!1),S(!b)},1e3)},children:y?"Exporting...":x?"Error":"Download"})})]})}var cx=lr(qoe);function Koe({...r}){return Z("svg",{height:"24px",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:Z("g",{children:Z("path",{d:"M21,16 C21.5522847,16 22,16.4477153 22,17 L22,20 C22,21.6568542 20.6568542,23 19,23 L5,23 C3.34314575,23 2,21.6568542 2,20 L2,17 C2,16.4477153 2.44771525,16 3,16 C3.55228475,16 4,16.4477153 4,17 L4,20 C4,20.5522847 4.44771525,21 5,21 L19,21 C19.5522847,21 20,20.5522847 20,20 L20,17 C20,16.4477153 20.4477153,16 21,16 Z M12,1 C12.5522847,1 13,1.44771525 13,2 L13,13.585 L15.2928932,11.2928932 C15.6533772,10.9324093 16.2206082,10.9046797 16.6128994,11.2097046 L16.7071068,11.2928932 C17.0976311,11.6834175 17.0976311,12.3165825 16.7071068,12.7071068 L12.7071068,16.7071068 C12.6786405,16.7355731 12.6484659,16.7623312 12.6167501,16.787214 C12.6098424,16.7927155 12.602603,16.7982466 12.5953066,16.8036654 C12.5711307,16.8215099 12.546275,16.8382813 12.5206602,16.8539326 C12.5086131,16.8613931 12.4963944,16.8685012 12.4840621,16.8753288 C12.4642939,16.8862061 12.4438914,16.8966234 12.4230991,16.9063462 C12.4060985,16.914321 12.3887956,16.9218036 12.371336,16.9287745 C12.3515792,16.9366843 12.3317977,16.9438775 12.3117364,16.9504533 C12.2968513,16.9552713 12.2814633,16.9599023 12.265993,16.9641549 C12.2444365,16.9701664 12.2227461,16.9753602 12.2007941,16.9798348 C12.1833753,16.9832978 12.165949,16.9863719 12.1484669,16.9889822 C12.1003621,16.9962388 12.0506203,17 12,17 L12.0852242,16.996384 C12.0679231,16.997855 12.050591,16.9988772 12.0332468,16.9994506 L12,17 C11.9888734,17 11.9777892,16.9998183 11.9667503,16.9994576 C11.9497336,16.9989053 11.9317345,16.9978436 11.9137692,16.9962979 C11.892114,16.9944666 11.8714753,16.9920328 11.8510388,16.9889807 C11.834051,16.9863719 11.8166247,16.9832978 11.7992742,16.9797599 C11.7772539,16.9753602 11.7555635,16.9701664 11.7341604,16.964279 C11.7185367,16.9599023 11.7031487,16.9552713 11.6878575,16.9502619 C11.6682023,16.9438775 11.6484208,16.9366843 11.6289415,16.928896 C11.6112044,16.9218036 11.5939015,16.914321 11.5767785,16.9063266 C11.5561086,16.8966234 11.5357061,16.8862061 11.515723,16.8751242 C11.5036056,16.8685012 11.4913869,16.8613931 11.4792912,16.8540045 C11.453725,16.8382813 11.4288693,16.8215099 11.4048407,16.8036865 C11.3656744,16.774687 11.3282873,16.7425008 11.2928932,16.7071068 L11.3832499,16.787214 C11.3515341,16.7623312 11.3213595,16.7355731 11.2928932,16.7071068 L7.29289322,12.7071068 C6.90236893,12.3165825 6.90236893,11.6834175 7.29289322,11.2928932 C7.68341751,10.9023689 8.31658249,10.9023689 8.70710678,11.2928932 L11,13.585 L11,2 C11,1.48716416 11.3860402,1.06449284 11.8833789,1.00672773 Z",fill:"currentColor"})})})}var x8=Koe;var b8=Bl({isExportMenuOpen:!1,isLayerTreeOpen:!1,isShareMenuOpen:!1,lineNetworkPlanLayer:null,poisLayer:null,selectedFeature:null,selectedFeatures:[],sellingPointsLayer:null,setIsExportMenuOpen:()=>{console.warn("setIsExportMenuOpen is not implemented")},setIsLayerTreeOpen:()=>{console.warn("setIsLayerTreeOpen is not implemented")},setIsShareMenuOpen:()=>{console.warn("setIsShareMenuOpen is not implemented")},setLineNetworkPlanLayer:()=>{console.warn("setLineNetworkPlanLayer is not implemented")},setPoisLayer:()=>{console.warn("setPoisLayer is not implemented")},setSelectedFeature:()=>{console.warn("setSelectedFeature is not implemented")},setSelectedFeatures:()=>{console.warn("setSelectedFeatures is not implemented")},setSellingPointsLayer:()=>{console.warn("setSellingPointsLayer is not implemented")},setSharedMobilityLayerGroup:()=>{console.warn("setSharedMobilityLayerGroup is not implemented")},setTarifZonenLayer:()=>{console.warn("setTarifZonenLayer is not implemented")},sharedMobilityLayerGroup:null,tarifZonenLayer:null}),Woe=()=>{let r=iu(b8);if(!r)throw new Error("useRvfContext must be used within a ContextProvider");return r},lo=Woe;function Xoe({...r}){let{isExportMenuOpen:e,setIsExportMenuOpen:t}=lo(),i=ys(()=>{t(!e)},[e,t]);return Z(Tl,{...r,onClick:i,selected:e,children:Z(x8,{})})}var Ax=lr(Xoe);function $oe(r){return Z("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:Z("path",{d:"M15.7389427,5.27697525 C16.129467,5.66749954 16.129467,6.30066452 15.7389427,6.69118881 L10.414,12.015082 L15.7389427,17.3406471 C16.0994267,17.7011311 16.1271562,18.2683621 15.8221313,18.6606533 L15.7389427,18.7548607 C15.3484184,19.145385 14.7152534,19.145385 14.3247292,18.7548607 L8.29289322,12.7230247 C7.90236893,12.3325005 7.90236893,11.6993355 8.29289322,11.3088112 L14.3247292,5.27697525 C14.7152534,4.88645096 15.3484184,4.88645096 15.7389427,5.27697525 Z",transform:"translate(12.0159, 12.0159) rotate(450) translate(-12.0159, -12.0159)"})})}var Am=$oe;var C8=null,AQ=null;function Zoe({feature:r,features:e}){let{apikey:t,mapsurl:i}=kr(),[s,n]=fr(null),[l,A]=fr(null),[f,y]=fr(null);Qt(()=>{(async()=>{if(!C8){let U=await(await fetch(`${i}/data/network_plans_rvf_prototype.json?key=${t}`)).json();C8=U["geops.lnp.lines"],AQ=U["geops.lnp.stops"]}n(C8),A(AQ)})()},[t,i]);let v=xr(()=>{let S={};return[...new Set(e.map(b=>b.get("original_line_id")))].filter(b=>!!b&&!!s?.[b]).map(b=>{let{operator_name:U}=s[b];S[U]||(S[U]=[]),s[b].id=b,S[U].push(s[b])}),S},[e,s]),x=xr(()=>{let S={};return e.forEach(b=>{let U=b.get("original_line_id");if(U&&!S[U])try{S[U]=JSON.parse(b.get("stop_ids"))}catch(Q){console.log(Q)}}),S},[e]);return!r||!s?null:Z("div",{className:"flex flex-col gap-4",children:Object.entries(v).map(([S,b])=>Z("div",{className:"flex flex-col gap-2",children:[Z("div",{children:S}),b.sort((U,Q)=>U.short_name?.localeCompare(Q.short_name)).map(U=>{let{color:Q,id:V,long_name:j,mot:X,short_name:T,text_color:N}=U,H=j,$=null;if($?.length||($=null),console.log("stops",$,H),!H&&$){let ee=$.map(re=>l[re].short_name);console.log("stops",ee),H=[...new Set([ee[0],ee[ee.length-1]])].join(" - ")}let J={color:null,id:null,name:T,stroke:null,text_color:null,type:X};return N&&(J.text_color="#"+N),Q&&(J.color="#"+Q),Z("div",{children:[Z("div",{className:"flex w-full items-center justify-between gap-2",children:[Z("div",{children:Z(Wp,{line:J})}),!!H&&Z("div",{className:"flex-1 text-left",children:H}),!!$&&Z("button",{className:"shrink-0",children:f===V?Z(Am,{}):Z(Qd,{})})]}),!!$&&Z("div",{className:`${f===V?"":"hidden"}`,children:$?.map((ee,re,_e)=>{let oe=l[ee];return Z("div",{className:"flex items-center gap-2",children:Z(O1.Provider,{value:{index:re,status:{isFirst:!re,isLast:re===_e.length-1,isLeft:!1,isPassed:!1,progress:re?0:50},stop:oe},children:[Z(U1,{className:"relative flex size-8 shrink-0 items-center justify-center",lineColor:J.color}),Z("div",{children:oe.short_name})]})},ee)})})]},T)})]},S))})}var hQ=Zoe;var pQ=Rn(fQ(),1);function Yoe(r){return Z("svg",{height:"24px",style:"transform: rotate(-45deg);",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:[Z("title",{children:"iconfont/right"}),Z("g",{fill:"none",fillRule:"evenodd",id:"iconfont/right",stroke:"none",strokeWidth:"1",style:`
1174
+ `)}return""+t},e}();var aQ=mi;var v8=!1;var Doe=(r,e,t,i=1)=>{let n,l;do n=r.font.match(/[0-9]+(?:\.[0-9]+)?(px)/i),l=parseInt(n[0].replace(n[1],""),10),r.font=r.font.replace(l,l-1),v8=!1,l-1===8&&(v8=!0);while(l-1>8&&r.measureText(t).width*i>e);return r.font};var Ooe=function(){function r(t,i,s){for(let n=0;n<i;++n)if(t.data[s*i*4+n*4+3]!==0)return!1;return!0}function e(t,i,s,n,l){for(let A=n;A<l;++A)if(t.data[A*i*4+s*4+3]!==0)return!1;return!0}return function(t){let i=t.getContext("2d"),s=t.width,n=i.getImageData(0,0,t.width,t.height),l=n.height,A=0,f=n.width,y=0;for(;y<l&&r(n,s,y);)++y;for(;l-1>y&&r(n,s,l-1);)--l;for(;A<f&&e(n,s,A,y,l);)++A;for(;f-1>A&&e(n,s,f-1,y,l);)--f;let v=i.getImageData(A,y,f-A,l-y),x=t.ownerDocument.createElement("canvas"),S=x.getContext("2d");return x.width=v.width,x.height=v.height,S.putImageData(v,0,0),x}}(),Uoe=(r,e,t,i)=>{let s=document.createElement("canvas");s.width=e,s.height=t;let{fillStyle:n="black",font:l="12px Arial",textAlign:A="left",textBaseline:f="top"}=i,y=s.getContext("2d");y.fillStyle=n,y.font=l,y.font=Doe(y,s.width,r),y.textAlign=A,y.textBaseline=f;let v=r,x=y.measureText(v);if(v8){let j=r.split(" ").length;for(let X=0;X<j&&!(x.width*scale<s.width);X+=1)v=v.substring(0,v.lastIndexOf(" ")),x=y.measureText(v)}let S=r.replace(v,"").trim(),b=[v,S].filter(j=>!!j);f==="bottom"&&(b=b.reverse());let U=A==="right"?s.width:0,Q=f==="bottom"?s.height:0;return b.forEach(j=>{let{fontBoundingBoxAscent:X,fontBoundingBoxDescent:T}=y.measureText(j),N=X+T;y.fillText(j,U,Q);let H=N;f==="bottom"&&(H=-N),Q=Q+H}),Ooe(s)},Noe=(r,e,t={})=>{let{fillStyle:i,font:s,margin:n=10,placement:l="bottom-left"}=t,[A,f]=l.split("-"),y=typeof r=="function"?r():r,v=Uoe(y,e.width,e.height,{fillStyle:i,font:s,textAlign:f,textBaseline:A}),x=n,S=n;f==="right"&&(x=e.width-v.width-n),A==="bottom"&&(S=e.height-v.height-n),e.getContext("2d").drawImage(v,x,S)};var Qoe=(r,e,t)=>{let i,s;if(e?(i=Sp(e),s=Ep(e)):t&&([i,,s]=t),i&&s){let n=r.getPixelFromCoordinate(i),l=r.getPixelFromCoordinate(s),A=[n[0]<=l[0]?n[0]:l[0],n[1]<=l[1]?n[1]:l[1]],f=[n[0]>l[0]?n[0]:l[0],n[1]>l[1]?n[1]:l[1]];return{h:f[1]-A[1],w:f[0]-A[0],x:A[0],y:A[1]}}return null},lQ=async(r,e,t)=>{let i=r.getTargetElement().getElementsByTagName("canvas"),s,n;for(let l=0;l<i.length;l+=1){let A=i[l];if(!A.width||!A.height)continue;let f=Qoe(r,e,t)||{h:A.height,w:A.width,x:0,y:0};s||(s=document.createElement("canvas"),s.width=f.w,s.height=f.h,n=s.getContext("2d")),n.drawImage(A,f.x,f.y,f.w,f.h,0,0,s.width,s.height)}return s},zoe=async(r,e="image/png",t=i=>i.replace("/","."))=>{try{if(window.navigator.msSaveBlob){let i;try{i=r.msToBlob()}catch(n){console.error(n)}let s=new Blob([i],{type:e});window.navigator.msSaveBlob(s,t(e))}else r.toBlob(i=>{let s=document.createElement("a");s.download=t(e),s.href=URL.createObjectURL(i),document.body.appendChild(s),s.click()},e);return!0}catch(i){return console.error(i),!1}},Hoe=async(r,e,t,i,s={},n={})=>{let l=i||r.getSize(),A=t,f=document.createElement("div");f.style.width=`${l[0]}px`,f.style.height=`${l[1]}px`,f.style.margin="0 0 0 -50000px",document.body.style.overflow="hidden",f.style.position="absolute",f.style.top="400px",f.style.zIndex="10000",document.body.append(f);let y=new qp({pixelRatio:window.devicePixelRatio,target:f,view:new el({center:r.getView().getCenter(),projection:r.getView().getProjection(),zoom:r.getView().getZoom(),...n}),...s});return A&&y.getView().fit(A),y.setLayers(e),await new Promise(x=>{let S=window.setTimeout(()=>{x(y)},1e4);y.once("rendercomplete",async()=>{clearTimeout(S),x(y)})})},Voe={A0:[3370,2384],A1:[2384,1684],A3:[1191,842],A4:[842,595]};async function joe(r,e={},t={}){let{onAfter:i,onBefore:s,pixelRatio:n=3,useCopyright:l=!0,useMaxExtent:A=!1,usePlaceholder:f=!0}=t,y=e?.format||"A4",v=Voe[y]||y,x=v.map(T=>T*96/72),S=A?r2:null,b=window.devicePixelRatio;Object.defineProperty(window,"devicePixelRatio",{get(){return n}});let U;f&&(U=await lQ(r),U.style.zIndex="0",U.style.position="absolute",r.getViewport().querySelector(".ol-layers").insertAdjacentElement("afterend",U));let Q=[...r.getLayers().getArray()],V=t?.copyrightOptions?.text||r.getControls().getArray().find(T=>T instanceof i1)?.element?.textContent;r.getLayers().clear(),s?.(r,Q);let j=await Hoe(r,Q,S,x,{pixelRatio:n});Object.defineProperty(window,"devicePixelRatio",{get(){return b}});let X=await lQ(j);if(j.getLayers().clear(),j.getTargetElement().remove(),j.setTarget(null),j.dispose(),document.body.style.overflow="auto",r.setLayers(Q),i?.(r,Q),U&&r.once("rendercomplete",()=>{U.remove()}),l&&Noe(V,X,{...t?.copyrightOptions||{},font:(n*12).toString()+"px Arial"}),/^A[0-9]{1,2}/.test(y)||y?.length===2){try{let T=new aQ({orientation:"landscape",unit:"pt",...e});T.addImage(X,"JPEG",0,0,v[0],v[1]),T.save(`rvf-${new Date().toISOString().slice(0,10)}.pdf`)}catch(T){return console.error(T),!1}return!0}else return await zoe(X)}var uQ=joe;var Goe=r=>{let e=[];function t(i){i.forEach(function(s){s instanceof zh?t(s.getLayers()):e.push(s)})}return t(r?.getLayers?.()||r),e},_8=Goe;var cQ=["A4","A3","A1","A0"],w8=!1;function qoe({...r}){let{map:e,realtimeLayer:t}=kr(),[i,s]=fr(!1),[n,l]=fr(cQ[0]),A=vd(),f=vd(),[y,v]=fr(!1),[x,S]=fr(!1);return Z("div",{...r,children:[Z("div",{className:"flex flex-1 flex-col gap-2",children:[Z("div",{className:"flex flex-wrap items-center gap-2",children:[Z(H1,{checked:i,id:A,onChange:()=>s(!i)}),Z("label",{htmlFor:A,children:"Ganze Region exportieren"})]}),Z("div",{className:"flex flex-wrap items-center gap-2",children:[Z("label",{htmlFor:f,children:"Format:"}),Z(y4,{className:"w-24",id:f,onChange:b=>{l(b.target.value)},children:cQ.map(b=>Z("option",{children:b},b))})]})]}),Z("div",{children:Z(_g,{disabled:y,onClick:async()=>{S(!1),v(!0);let b=await uQ(e,{format:n},{onAfter:(U,Q)=>{t&&w8!==t?.getVisible()&&t.setVisible(w8),_8(Q).forEach(V=>{V.set(Gh,!1)}),U.set(Gh,!1)},onBefore:(U,Q)=>{U.set(Gh,!0),t&&(w8=t.getVisible(),t.getVisible()&&t.setVisible(!1)),_8(Q).forEach(V=>{V.set(Gh,!0)})},useMaxExtent:i});setTimeout(()=>{v(!1),S(!b)},1e3)},children:y?"Exporting...":x?"Error":"Download"})})]})}var cx=lr(qoe);function Koe({...r}){return Z("svg",{height:"24px",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:Z("g",{children:Z("path",{d:"M21,16 C21.5522847,16 22,16.4477153 22,17 L22,20 C22,21.6568542 20.6568542,23 19,23 L5,23 C3.34314575,23 2,21.6568542 2,20 L2,17 C2,16.4477153 2.44771525,16 3,16 C3.55228475,16 4,16.4477153 4,17 L4,20 C4,20.5522847 4.44771525,21 5,21 L19,21 C19.5522847,21 20,20.5522847 20,20 L20,17 C20,16.4477153 20.4477153,16 21,16 Z M12,1 C12.5522847,1 13,1.44771525 13,2 L13,13.585 L15.2928932,11.2928932 C15.6533772,10.9324093 16.2206082,10.9046797 16.6128994,11.2097046 L16.7071068,11.2928932 C17.0976311,11.6834175 17.0976311,12.3165825 16.7071068,12.7071068 L12.7071068,16.7071068 C12.6786405,16.7355731 12.6484659,16.7623312 12.6167501,16.787214 C12.6098424,16.7927155 12.602603,16.7982466 12.5953066,16.8036654 C12.5711307,16.8215099 12.546275,16.8382813 12.5206602,16.8539326 C12.5086131,16.8613931 12.4963944,16.8685012 12.4840621,16.8753288 C12.4642939,16.8862061 12.4438914,16.8966234 12.4230991,16.9063462 C12.4060985,16.914321 12.3887956,16.9218036 12.371336,16.9287745 C12.3515792,16.9366843 12.3317977,16.9438775 12.3117364,16.9504533 C12.2968513,16.9552713 12.2814633,16.9599023 12.265993,16.9641549 C12.2444365,16.9701664 12.2227461,16.9753602 12.2007941,16.9798348 C12.1833753,16.9832978 12.165949,16.9863719 12.1484669,16.9889822 C12.1003621,16.9962388 12.0506203,17 12,17 L12.0852242,16.996384 C12.0679231,16.997855 12.050591,16.9988772 12.0332468,16.9994506 L12,17 C11.9888734,17 11.9777892,16.9998183 11.9667503,16.9994576 C11.9497336,16.9989053 11.9317345,16.9978436 11.9137692,16.9962979 C11.892114,16.9944666 11.8714753,16.9920328 11.8510388,16.9889807 C11.834051,16.9863719 11.8166247,16.9832978 11.7992742,16.9797599 C11.7772539,16.9753602 11.7555635,16.9701664 11.7341604,16.964279 C11.7185367,16.9599023 11.7031487,16.9552713 11.6878575,16.9502619 C11.6682023,16.9438775 11.6484208,16.9366843 11.6289415,16.928896 C11.6112044,16.9218036 11.5939015,16.914321 11.5767785,16.9063266 C11.5561086,16.8966234 11.5357061,16.8862061 11.515723,16.8751242 C11.5036056,16.8685012 11.4913869,16.8613931 11.4792912,16.8540045 C11.453725,16.8382813 11.4288693,16.8215099 11.4048407,16.8036865 C11.3656744,16.774687 11.3282873,16.7425008 11.2928932,16.7071068 L11.3832499,16.787214 C11.3515341,16.7623312 11.3213595,16.7355731 11.2928932,16.7071068 L7.29289322,12.7071068 C6.90236893,12.3165825 6.90236893,11.6834175 7.29289322,11.2928932 C7.68341751,10.9023689 8.31658249,10.9023689 8.70710678,11.2928932 L11,13.585 L11,2 C11,1.48716416 11.3860402,1.06449284 11.8833789,1.00672773 Z",fill:"currentColor"})})})}var x8=Koe;var b8=Bl({isExportMenuOpen:!1,isLayerTreeOpen:!1,isShareMenuOpen:!1,lineNetworkPlanLayer:null,poisLayer:null,selectedFeature:null,selectedFeatures:[],sellingPointsLayer:null,setIsExportMenuOpen:()=>{console.warn("setIsExportMenuOpen is not implemented")},setIsLayerTreeOpen:()=>{console.warn("setIsLayerTreeOpen is not implemented")},setIsShareMenuOpen:()=>{console.warn("setIsShareMenuOpen is not implemented")},setLineNetworkPlanLayer:()=>{console.warn("setLineNetworkPlanLayer is not implemented")},setPoisLayer:()=>{console.warn("setPoisLayer is not implemented")},setSelectedFeature:()=>{console.warn("setSelectedFeature is not implemented")},setSelectedFeatures:()=>{console.warn("setSelectedFeatures is not implemented")},setSellingPointsLayer:()=>{console.warn("setSellingPointsLayer is not implemented")},setSharedMobilityLayerGroup:()=>{console.warn("setSharedMobilityLayerGroup is not implemented")},setTarifZonenLayer:()=>{console.warn("setTarifZonenLayer is not implemented")},sharedMobilityLayerGroup:null,tarifZonenLayer:null}),Woe=()=>{let r=iu(b8);if(!r)throw new Error("useRvfContext must be used within a ContextProvider");return r},lo=Woe;function Xoe({...r}){let{isExportMenuOpen:e,setIsExportMenuOpen:t}=lo(),i=ys(()=>{t(!e)},[e,t]);return Z(Tl,{...r,onClick:i,selected:e,children:Z(x8,{})})}var Ax=lr(Xoe);function $oe(r){return Z("svg",{fill:"currentColor",height:"24px",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:Z("path",{d:"M15.7389427,5.27697525 C16.129467,5.66749954 16.129467,6.30066452 15.7389427,6.69118881 L10.414,12.015082 L15.7389427,17.3406471 C16.0994267,17.7011311 16.1271562,18.2683621 15.8221313,18.6606533 L15.7389427,18.7548607 C15.3484184,19.145385 14.7152534,19.145385 14.3247292,18.7548607 L8.29289322,12.7230247 C7.90236893,12.3325005 7.90236893,11.6993355 8.29289322,11.3088112 L14.3247292,5.27697525 C14.7152534,4.88645096 15.3484184,4.88645096 15.7389427,5.27697525 Z",transform:"translate(12.0159, 12.0159) rotate(450) translate(-12.0159, -12.0159)"})})}var Am=$oe;var C8=null,AQ=null;function Zoe({feature:r,features:e}){let{apikey:t,mapsurl:i}=kr(),[s,n]=fr(null),[l,A]=fr(null),[f,y]=fr(null);Qt(()=>{(async()=>{if(!C8){let U=await(await fetch(`${i}/data/network_plans_rvf_prototype.json?key=${t}`)).json();C8=U["geops.lnp.lines"],AQ=U["geops.lnp.stops"]}n(C8),A(AQ)})()},[t,i]);let v=xr(()=>{let S={};return[...new Set(e.map(b=>b.get("original_line_id")))].filter(b=>!!b&&!!s?.[b]).map(b=>{let{operator_name:U}=s[b];S[U]||(S[U]=[]),s[b].id=b,S[U].push(s[b])}),S},[e,s]),x=xr(()=>{let S={};return e.forEach(b=>{let U=b.get("original_line_id");if(U&&!S[U])try{S[U]=JSON.parse(b.get("stop_ids"))}catch(Q){console.log(Q)}}),S},[e]);return!r||!s?null:Z("div",{className:"flex flex-col gap-4",children:Object.entries(v).map(([S,b])=>Z("div",{className:"flex flex-col gap-2",children:[Z("div",{children:S}),b.sort((U,Q)=>U.short_name?.localeCompare(Q.short_name)).map(U=>{let{color:Q,id:V,long_name:j,mot:X,short_name:T,text_color:N}=U,H=j,$=null;if($?.length||($=null),console.log("stops",$,H),!H&&$){let ee=$.map(re=>l[re].short_name);console.log("stops",ee),H=[...new Set([ee[0],ee[ee.length-1]])].join(" - ")}let J={color:null,id:null,name:T,stroke:null,text_color:null,type:X};return N&&(J.text_color=N[0]==="#"?N:"#"+N),Q&&(J.color=Q[0]==="#"?Q:"#"+Q),Z("div",{children:[Z("div",{className:"flex w-full items-center justify-between gap-2",children:[Z("div",{children:Z(Wp,{line:J})}),!!H&&Z("div",{className:"flex-1 text-left",children:H}),!!$&&Z("button",{className:"shrink-0",children:f===V?Z(Am,{}):Z(Qd,{})})]}),!!$&&Z("div",{className:`${f===V?"":"hidden"}`,children:$?.map((ee,re,_e)=>{let oe=l[ee];return Z("div",{className:"flex items-center gap-2",children:Z(O1.Provider,{value:{index:re,status:{isFirst:!re,isLast:re===_e.length-1,isLeft:!1,isPassed:!1,progress:re?0:50},stop:oe},children:[Z(U1,{className:"relative flex size-8 shrink-0 items-center justify-center",lineColor:J.color}),Z("div",{children:oe.short_name})]})},ee)})})]},T)})]},S))})}var hQ=Zoe;var pQ=Rn(fQ(),1);function Yoe(r){return Z("svg",{height:"24px",style:"transform: rotate(-45deg);",version:"1.1",viewBox:"0 0 24 24",width:"24px",xmlns:"http://www.w3.org/2000/svg",...r,children:[Z("title",{children:"iconfont/right"}),Z("g",{fill:"none",fillRule:"evenodd",id:"iconfont/right",stroke:"none",strokeWidth:"1",style:`
1175
1175
  /* transform: rotate(-45deg); */
1176
1176
  `,children:Z("path",{d:"M13.2928932,5.29289322 C13.6834175,4.90236893 14.3165825,4.90236893 14.7071068,5.29289322 L20.7071068,11.2928932 C20.7355731,11.3213595 20.7623312,11.3515341 20.787214,11.3832499 C20.7927155,11.3901576 20.7982466,11.397397 20.8036654,11.4046934 C20.8215099,11.4288693 20.8382813,11.453725 20.8539326,11.4793398 C20.8613931,11.4913869 20.8685012,11.5036056 20.8753288,11.5159379 C20.8862061,11.5357061 20.8966234,11.5561086 20.9063462,11.5769009 C20.914321,11.5939015 20.9218036,11.6112044 20.9287745,11.628664 C20.9366843,11.6484208 20.9438775,11.6682023 20.9504533,11.6882636 C20.9552713,11.7031487 20.9599023,11.7185367 20.9641549,11.734007 C20.9701664,11.7555635 20.9753602,11.7772539 20.9798348,11.7992059 C20.9832978,11.8166247 20.9863719,11.834051 20.9889822,11.8515331 C20.9962388,11.8996379 21,11.9493797 21,12 L20.9962979,11.9137692 C20.9978436,11.9317345 20.9989053,11.9497336 20.9994829,11.9677454 L21,12 C21,12.0112225 20.9998151,12.0224019 20.9994483,12.0335352 C20.9988772,12.050591 20.997855,12.0679231 20.996384,12.0852242 C20.994564,12.1070574 20.9920941,12.1281144 20.9889807,12.1489612 C20.9863719,12.165949 20.9832978,12.1833753 20.9797599,12.2007258 C20.9753602,12.2227461 20.9701664,12.2444365 20.964279,12.2658396 C20.9599023,12.2814633 20.9552713,12.2968513 20.9502619,12.3121425 C20.9438775,12.3317977 20.9366843,12.3515792 20.928896,12.3710585 C20.9218036,12.3887956 20.914321,12.4060985 20.9063266,12.4232215 C20.8966234,12.4438914 20.8862061,12.4642939 20.8751242,12.484277 C20.8685012,12.4963944 20.8613931,12.5086131 20.8540045,12.5207088 C20.8382813,12.546275 20.8215099,12.5711307 20.8036865,12.5951593 C20.774687,12.6343256 20.7425008,12.6717127 20.7071068,12.7071068 L20.787214,12.6167501 C20.7849289,12.6196628 20.7826279,12.6225624 20.7803112,12.625449 L20.7071068,12.7071068 L14.7071068,18.7071068 C14.3165825,19.0976311 13.6834175,19.0976311 13.2928932,18.7071068 C12.9023689,18.3165825 12.9023689,17.6834175 13.2928932,17.2928932 L17.585,13 L4,13 C3.48716416,13 3.06449284,12.6139598 3.00672773,12.1166211 L3,12 C3,11.4477153 3.44771525,11 4,11 L17.585,11 L13.2928932,6.70710678 C12.9324093,6.34662282 12.9046797,5.77939176 13.2097046,5.38710056 Z",fill:"currentColor",fillRule:"nonzero",id:"Combined-Shape",style:`
1177
1177
  /* transform: rotate(-45deg); */
@@ -3200,7 +3200,7 @@ html {
3200
3200
  flex-direction: column;
3201
3201
  padding: 25px;
3202
3202
  z-index: 100000;
3203
- }`;var Vz={bus:25,coach:15,train:30,tram:20},jz=r2.join(","),Oue={mapLibreOptions:{maxCanvasSize:[2e4,2e4],preserveDrawingBuffer:!0}},Uue={},Nue={style:{width:"calc(100% - 60px)"}},Que={bboxParameters:{line_tags:"RVF"},fullTrajectoryStyle:Fz,getMotsByZoom:r=>r<9?["rail"]:null,sort:({properties:{delay:r,type:e}},{properties:{delay:t,type:i}})=>e!==i?Vz[e]<Vz[i]?-1:1:r===t?0:r<t?-1:1,style:zz,styleOptions:{getBgColor:wg,getMaxRadiusForStrokeAndDelay:()=>4,getMaxRadiusForText:()=>8,getRadius:Pz,getTextColor:a2}};function zue({apikey:r="5cc87b12d7c5370001c1d655820abcc37dfd4d968d7bab5b2a74a935",baselayer:e="de.rvf",center:t=null,details:i="true",embed:s="false",extent:n=jz,geolocation:l="true",layers:A=null,layertree:f="true",mapsurl:y="https://maps.geops.io",maxextent:v=jz,maxzoom:x="20",minzoom:S=null,mots:b=null,notification:U="true",notificationat:Q=null,notificationbeforelayerid:V=null,notificationurl:j=null,permalink:X="false",print:T="true",realtime:N="true",realtimeurl:H="wss://api.geops.io/tracker-ws/v1/ws",search:$="false",share:J="true",stopsurl:ee="https://api.geops.io/stops/v1/",tenant:re=null,toolbar:_e="true",zoom:oe=null}){let ie=ru(),[xe,pe]=fr(),[Ae,Se]=fr(!1),[De,Le]=fr(!1),[Ve,Ge]=fr(),[vt,de]=fr(),[Fe,Ee]=fr(),[ze,$e]=fr(),[ot,At]=fr(),[ht,Et]=fr(),[Ct,Vt]=fr(),[Wt,Ze]=fr(!1),[_t,Ue]=fr(!1),[jt,qt]=fr(),[kt,Zt]=fr(),[Ot,Pt]=fr(!1),[ir,ur]=fr(),[Fr,Je]=fr(),[It,Gt]=fr(),[Ht,Ar]=fr(),[at,or]=fr(),Tt=xr(()=>_e==="true",[_e]),ci=xr(()=>f==="true",[f]),Wr=xr(()=>N==="true",[N]),sr=xr(()=>U==="true",[U]),$i=xr(()=>l==="true",[l]),Kr=xr(()=>$==="true",[$]),Hi=xr(()=>J==="true",[J]),Yr=xr(()=>T==="true",[T]),Oe=xr(()=>i==="true",[i]),ce=xr(()=>s==="true",[s]);kz(ot,A),Uz(ot,X==="true",ie);let ue=xr(()=>({apikey:r,baselayer:e,baseLayer:xe,center:t,extent:n,geolocation:l,isFollowing:Ae,isTracking:De,layers:A,map:ot,mapsurl:y,maxextent:v,maxzoom:x,minzoom:S,mots:b,notification:U,notificationat:Q,notificationbeforelayerid:V,notificationurl:j,permalink:X,realtimeLayer:ze,realtimeurl:H,setBaseLayer:pe,setIsFollowing:Se,setIsTracking:Le,setMap:At,setRealtimeLayer:$e,setStation:Ee,setStationId:Et,setStationsLayer:de,setStopSequence:Ge,setTrainId:Vt,station:Fe,stationId:ht,stationsLayer:vt,stopSequence:Ve,stopsurl:ee,tenant:re,trainId:Ct,zoom:oe}),[r,e,xe,t,n,l,Ae,De,ot,y,v,A,x,S,b,U,Q,V,j,X,ze,H,Fe,ht,vt,Ve,ee,re,Ct,oe]);Qt(()=>{ie.current?.dispatchEvent(new Yh("mwc:attribute",{baselayer:e,center:t,details:i,embed:s,extent:n,geolocation:l,layers:A,layertree:f,mapsurl:y,maxextent:v,maxzoom:x,minzoom:S,mots:b,notification:U,notificationat:Q,notificationbeforelayerid:V,notificationurl:j,print:T,realtime:N,realtimeurl:H,search:$,share:J,tenant:re,toolbar:_e,zoom:oe}))},[e,s,A,t,l,f,_e,y,x,S,b,U,Q,j,V,N,H,$,re,oe,n,v,T,J,i]);let we=xr(()=>({isExportMenuOpen:Wt,isLayerTreeOpen:Ot,isShareMenuOpen:_t,layertree:f,lineNetworkPlanLayer:Ht,poisLayer:It,selectedFeature:jt,selectedFeatures:kt,sellingPointsLayer:ir,setIsExportMenuOpen:Ze,setIsLayerTreeOpen:Pt,setIsShareMenuOpen:Ue,setLineNetworkPlanLayer:Ar,setPoisLayer:Gt,setSelectedFeature:qt,setSelectedFeatures:Zt,setSellingPointsLayer:ur,setSharedMobilityLayerGroup:or,setTarifZonenLayer:Je,sharedMobilityLayerGroup:at,tarifZonenLayer:Fr}),[Wt,f,Ot,_t,Ht,It,jt,kt,ir,at,Fr]),Pe=ys(()=>{Pt(!Ot)},[Ot]),We=ys(()=>{Ze(!1)},[]),Xe=xr(()=>({format:He=>{let rt=[];return He.forEach(wt=>{/(sbb|rvf)/i.test(wt)||rt.push(wt)}),rt.join("&nbsp;|&nbsp;")}}),[]),it=xr(()=>({layersFilter:({metadata:He})=>He?.["general.filter"]==="stations"}),[]);return Qt(()=>{Tt&&Ot&&(Ze(!1),Pt(Ot),qt(null),Vt(null),Et(null),Ue(!1))},[Ot,Tt]),Qt(()=>{Tt&&Wt&&(Pt(!1),Ze(Wt),qt(null),Vt(null),Ue(!1),Et(null))},[Wt,Tt]),Qt(()=>{Tt&&jt&&(Pt(!1),Ze(!1),Vt(null),Ue(!1),Et(null))},[jt,Tt]),Qt(()=>{Tt&&ht&&(Pt(!1),Ze(!1),Vt(null),Ue(!1),qt(null))},[ht,Tt]),Qt(()=>{Tt&&Ct&&(Pt(!1),Ze(!1),Et(null),Ue(!1),qt(null))},[Ct,Tt]),Qt(()=>{Tt&&_t&&(Pt(!1),Ze(!1),Et(null),Vt(null),qt(null))},[_t,Tt]),Z(JB.Provider,{value:Ox,children:[Z("style",{children:Dx}),Z("style",{children:Hz}),Z(EB.Provider,{value:ue,children:Z(b8.Provider,{value:we,children:Z("div",{className:"relative size-full overflow-hidden font-sans @container/main",ref:ie,style:Uue,children:Z("div",{className:"relative flex size-full flex-col text-base @lg/main:flex-row-reverse",children:[Z(kB,{className:"relative flex-1 overflow-visible ",children:[Z(SB,{...Oue}),Z(Nx,{}),ce&&Z(H7,{}),Z(Z8,{}),Wr&&Z(jB,{title:ns.echtzeit,...Que}),Z(DI,{minZoom:10,title:ns.haltestellen,...it}),sr&&Z(t2,{}),Z(pI,{title:ns.tarifzonen}),Z(Y8,{isQueryable:!0,title:ns.verkaufsstellen}),Z(W8,{isQueryable:!0,minZoom:10,title:ns.liniennetz}),Z($8,{title:ns.pois}),Z(hI,{title:ns.sharedMobility}),Z("div",{className:"pointer-events-none absolute inset-x-2 bottom-2 z-10 flex items-end justify-between gap-2 text-[10px]",children:[Z(bI,{className:"bg-slate-50/70"}),Z(IB,{className:"pointer-events-auto bg-slate-50/70",options:Xe})]}),Z("div",{className:"absolute right-2 top-2 z-10 flex flex-col gap-2",children:[$i&&Z(RB,{}),!Tt&&Yr&&Z(Ax,{})]}),Kr&&Z("div",{className:"absolute left-2 right-12 top-2 z-10 flex max-h-[90%] min-w-64 max-w-96 flex-col",children:Z(Ux,{})}),Z("div",{className:"absolute bottom-10 right-2 z-10 flex flex-col justify-between gap-2",children:Z(xI,{})}),!Tt&&ci&&Z(G8,{isOpen:Ot,onClick:Pe,title:"Kartendaten",children:Z(kx,{className:"w-full px-2"})})]}),Z(NB,{className:"z-50 bg-white",ScrollableHandlerProps:Nue,children:[Wr&&Ct&&Z(Oi,{children:[Z(ip,{onClose:()=>{Vt(null)},title:ns.echtzeit}),Z(f4,{className:"relative overflow-y-auto overflow-x-hidden"})]}),re&&ht&&Z(Oi,{children:[Z(ip,{onClose:()=>{Et(null)},title:"Station"}),Z(kI,{className:"relative flex flex-col overflow-y-auto overflow-x-hidden p-2"})]}),Oe&&jt&&Z(Oi,{children:[Z(ip,{onClose:()=>{qt(null)},title:Mz(jt)}),Z(j8,{className:"relative flex h-full flex-col gap-4 overflow-y-auto overflow-x-hidden p-4"})]}),Tt&&Yr&&Wt&&Z(Oi,{children:[Z(ip,{onClose:()=>{Ze(!1)},title:"Drucken"}),Z(cx,{className:"relative flex flex-col gap-8 overflow-y-auto overflow-x-hidden px-4 py-6"})]}),Tt&&ci&&Ot&&Z(Oi,{children:[Z(ip,{onClose:()=>{Pt(!1)},title:"Layers"}),Z(kx,{className:" relative flex h-full flex-col overflow-y-auto overflow-x-hidden p-2"})]}),Tt&&Hi&&_t&&Z(Oi,{children:[Z(ip,{onClose:()=>{Ue(!1)},title:"Share"}),Z(aI,{className:"relative flex h-full flex-col gap-8 overflow-y-auto overflow-x-hidden px-4 py-6"})]})]}),Tt&&Z("div",{className:"z-[100] flex justify-around overflow-x-hidden border-t bg-white p-1 @lg/main:block @lg/main:border-r @lg/main:border-t-0 @lg/main:p-0 ",children:[ci&&Z(K8,{className:"border-none",title:"Layers"}),Yr&&Z(Ax,{className:"border-none",title:"Drucken"}),Hi&&Z(fI,{className:"border-none",title:"Share"})]}),!Tt&&Yr&&Wt&&Z(X8,{onClose:We,children:Z(cx,{className:"relative flex h-full flex-col overflow-y-auto overflow-x-hidden p-2"})})]})})})})]})}var zx=lr(zue);Qb(zx,"geops-mobility",["apikey","baselayer","center","extent","maxextent","geolocation","details","layers","layertree","mapsurl","mots","notification","notificationat","notificationurl","notificationbeforelayerid","print","realtime","realtimeurl","search","share","tenant","zoom","permalink","embed"],{shadow:!0});Qb(Gy,"geops-mobility-search",["apikey","bbox","countrycode","event","field","limit","mots","onselect","params","prefagencies","reflocation","url"],{shadow:!0});})();
3203
+ }`;var Vz={bus:25,coach:15,train:30,tram:20},jz=r2.join(","),Oue={mapLibreOptions:{maxCanvasSize:[2e4,2e4],preserveDrawingBuffer:!0}},Uue={},Nue={style:{width:"calc(100% - 60px)"}},Que={bboxParameters:{line_tags:"RVF"},fullTrajectoryStyle:Fz,getMotsByZoom:r=>r<9?["rail"]:null,sort:({properties:{delay:r,type:e}},{properties:{delay:t,type:i}})=>e!==i?Vz[e]<Vz[i]?-1:1:r===t?0:r<t?-1:1,style:zz,styleOptions:{getBgColor:wg,getMaxRadiusForStrokeAndDelay:()=>4,getMaxRadiusForText:()=>8,getRadius:Pz,getTextColor:a2}};function zue({apikey:r="5cc87b12d7c5370001c1d655820abcc37dfd4d968d7bab5b2a74a935",baselayer:e="de.rvf",center:t=null,details:i="true",embed:s="false",extent:n=jz,geolocation:l="true",layers:A=null,layertree:f="true",mapsurl:y="https://maps.geops.io",maxextent:v=jz,maxzoom:x="20",minzoom:S=null,mots:b=null,notification:U="true",notificationat:Q=null,notificationbeforelayerid:V=null,notificationurl:j=null,permalink:X="false",print:T="true",realtime:N="true",realtimeurl:H="wss://api.geops.io/tracker-ws/v1/ws",search:$="false",share:J="true",stopsurl:ee="https://api.geops.io/stops/v1/",tenant:re=null,toolbar:_e="true",zoom:oe=null}){let ie=ru(),[xe,pe]=fr(),[Ae,Se]=fr(!1),[De,Le]=fr(!1),[Ve,Ge]=fr(),[vt,de]=fr(),[Fe,Ee]=fr(),[ze,$e]=fr(),[ot,At]=fr(),[ht,Et]=fr(),[Ct,Vt]=fr(),[Wt,Ze]=fr(!1),[_t,Ue]=fr(!1),[jt,qt]=fr(),[kt,Zt]=fr(),[Ot,Pt]=fr(!1),[ir,ur]=fr(),[Fr,Je]=fr(),[It,Gt]=fr(),[Ht,Ar]=fr(),[at,or]=fr(),Tt=xr(()=>_e==="true",[_e]),ci=xr(()=>f==="true",[f]),Wr=xr(()=>N==="true",[N]),sr=xr(()=>U==="true",[U]),$i=xr(()=>l==="true",[l]),Kr=xr(()=>$==="true",[$]),Hi=xr(()=>J==="true",[J]),Yr=xr(()=>T==="true",[T]),Oe=xr(()=>i==="true",[i]),ce=xr(()=>s==="true",[s]);kz(ot,A),Uz(ot,X==="true",ie);let ue=xr(()=>({apikey:r,baselayer:e,baseLayer:xe,center:t,extent:n,geolocation:l,isFollowing:Ae,isTracking:De,layers:A,map:ot,mapsurl:y,maxextent:v,maxzoom:x,minzoom:S,mots:b,notification:U,notificationat:Q,notificationbeforelayerid:V,notificationurl:j,permalink:X,realtimeLayer:ze,realtimeurl:H,setBaseLayer:pe,setIsFollowing:Se,setIsTracking:Le,setMap:At,setRealtimeLayer:$e,setStation:Ee,setStationId:Et,setStationsLayer:de,setStopSequence:Ge,setTrainId:Vt,station:Fe,stationId:ht,stationsLayer:vt,stopSequence:Ve,stopsurl:ee,tenant:re,trainId:Ct,zoom:oe}),[r,e,xe,t,n,l,Ae,De,ot,y,v,A,x,S,b,U,Q,V,j,X,ze,H,Fe,ht,vt,Ve,ee,re,Ct,oe]);Qt(()=>{ie.current?.dispatchEvent(new Yh("mwc:attribute",{baselayer:e,center:t,details:i,embed:s,extent:n,geolocation:l,layers:A,layertree:f,mapsurl:y,maxextent:v,maxzoom:x,minzoom:S,mots:b,notification:U,notificationat:Q,notificationbeforelayerid:V,notificationurl:j,print:T,realtime:N,realtimeurl:H,search:$,share:J,tenant:re,toolbar:_e,zoom:oe}))},[e,s,A,t,l,f,_e,y,x,S,b,U,Q,j,V,N,H,$,re,oe,n,v,T,J,i]);let we=xr(()=>({isExportMenuOpen:Wt,isLayerTreeOpen:Ot,isShareMenuOpen:_t,layertree:f,lineNetworkPlanLayer:Ht,poisLayer:It,selectedFeature:jt,selectedFeatures:kt,sellingPointsLayer:ir,setIsExportMenuOpen:Ze,setIsLayerTreeOpen:Pt,setIsShareMenuOpen:Ue,setLineNetworkPlanLayer:Ar,setPoisLayer:Gt,setSelectedFeature:qt,setSelectedFeatures:Zt,setSellingPointsLayer:ur,setSharedMobilityLayerGroup:or,setTarifZonenLayer:Je,sharedMobilityLayerGroup:at,tarifZonenLayer:Fr}),[Wt,f,Ot,_t,Ht,It,jt,kt,ir,at,Fr]),Pe=ys(()=>{Pt(!Ot)},[Ot]),We=ys(()=>{Ze(!1)},[]),Xe=xr(()=>({format:He=>{let rt=[];return He.forEach(wt=>{/(sbb|rvf)/i.test(wt)||rt.push(wt)}),rt.join("&nbsp;|&nbsp;")}}),[]),it=xr(()=>({layersFilter:({metadata:He})=>He?.["general.filter"]==="stations"}),[]);return Qt(()=>{Tt&&Ot&&(Ze(!1),Pt(Ot),qt(null),Vt(null),Et(null),Ue(!1))},[Ot,Tt]),Qt(()=>{Tt&&Wt&&(Pt(!1),Ze(Wt),qt(null),Vt(null),Ue(!1),Et(null))},[Wt,Tt]),Qt(()=>{Tt&&jt&&(Pt(!1),Ze(!1),Vt(null),Ue(!1),Et(null))},[jt,Tt]),Qt(()=>{Tt&&ht&&(Pt(!1),Ze(!1),Vt(null),Ue(!1),qt(null))},[ht,Tt]),Qt(()=>{Tt&&Ct&&(Pt(!1),Ze(!1),Et(null),Ue(!1),qt(null))},[Ct,Tt]),Qt(()=>{Tt&&_t&&(Pt(!1),Ze(!1),Et(null),Vt(null),qt(null))},[_t,Tt]),Z(JB.Provider,{value:Ox,children:[Z("style",{children:Dx}),Z("style",{children:Hz}),Z(EB.Provider,{value:ue,children:Z(b8.Provider,{value:we,children:Z("div",{className:"relative size-full overflow-hidden font-sans @container/main",ref:ie,style:Uue,children:Z("div",{className:"relative flex size-full flex-col text-base @lg/main:flex-row-reverse",children:[Z(kB,{className:"relative flex-1 overflow-visible ",children:[Z(SB,{...Oue}),Z(Nx,{}),ce&&Z(H7,{}),Z(Z8,{}),Wr&&Z(jB,{title:ns.echtzeit,...Que}),Z(DI,{minZoom:10,title:ns.haltestellen,...it}),sr&&Z(t2,{}),Z(pI,{title:ns.tarifzonen}),Z(Y8,{isQueryable:!0,title:ns.verkaufsstellen}),Z(W8,{isQueryable:!0,title:ns.liniennetz}),Z($8,{title:ns.pois}),Z(hI,{title:ns.sharedMobility}),Z("div",{className:"pointer-events-none absolute inset-x-2 bottom-2 z-10 flex items-end justify-between gap-2 text-[10px]",children:[Z(bI,{className:"bg-slate-50/70"}),Z(IB,{className:"pointer-events-auto bg-slate-50/70",options:Xe})]}),Z("div",{className:"absolute right-2 top-2 z-10 flex flex-col gap-2",children:[$i&&Z(RB,{}),!Tt&&Yr&&Z(Ax,{})]}),Kr&&Z("div",{className:"absolute left-2 right-12 top-2 z-10 flex max-h-[90%] min-w-64 max-w-96 flex-col",children:Z(Ux,{})}),Z("div",{className:"absolute bottom-10 right-2 z-10 flex flex-col justify-between gap-2",children:Z(xI,{})}),!Tt&&ci&&Z(G8,{isOpen:Ot,onClick:Pe,title:"Kartendaten",children:Z(kx,{className:"w-full px-2"})})]}),Z(NB,{className:"z-50 bg-white",ScrollableHandlerProps:Nue,children:[Wr&&Ct&&Z(Oi,{children:[Z(ip,{onClose:()=>{Vt(null)},title:ns.echtzeit}),Z(f4,{className:"relative overflow-y-auto overflow-x-hidden"})]}),re&&ht&&Z(Oi,{children:[Z(ip,{onClose:()=>{Et(null)},title:"Station"}),Z(kI,{className:"relative flex flex-col overflow-y-auto overflow-x-hidden p-2"})]}),Oe&&jt&&Z(Oi,{children:[Z(ip,{onClose:()=>{qt(null)},title:Mz(jt)}),Z(j8,{className:"relative flex h-full flex-col gap-4 overflow-y-auto overflow-x-hidden p-4"})]}),Tt&&Yr&&Wt&&Z(Oi,{children:[Z(ip,{onClose:()=>{Ze(!1)},title:"Drucken"}),Z(cx,{className:"relative flex flex-col gap-8 overflow-y-auto overflow-x-hidden px-4 py-6"})]}),Tt&&ci&&Ot&&Z(Oi,{children:[Z(ip,{onClose:()=>{Pt(!1)},title:"Layers"}),Z(kx,{className:" relative flex h-full flex-col overflow-y-auto overflow-x-hidden p-2"})]}),Tt&&Hi&&_t&&Z(Oi,{children:[Z(ip,{onClose:()=>{Ue(!1)},title:"Share"}),Z(aI,{className:"relative flex h-full flex-col gap-8 overflow-y-auto overflow-x-hidden px-4 py-6"})]})]}),Tt&&Z("div",{className:"z-[100] flex justify-around overflow-x-hidden border-t bg-white p-1 @lg/main:block @lg/main:border-r @lg/main:border-t-0 @lg/main:p-0 ",children:[ci&&Z(K8,{className:"border-none",title:"Layers"}),Yr&&Z(Ax,{className:"border-none",title:"Drucken"}),Hi&&Z(fI,{className:"border-none",title:"Share"})]}),!Tt&&Yr&&Wt&&Z(X8,{onClose:We,children:Z(cx,{className:"relative flex h-full flex-col overflow-y-auto overflow-x-hidden p-2"})})]})})})})]})}var zx=lr(zue);Qb(zx,"geops-mobility",["apikey","baselayer","center","extent","maxextent","geolocation","details","layers","layertree","mapsurl","mots","notification","notificationat","notificationurl","notificationbeforelayerid","print","realtime","realtimeurl","search","share","tenant","zoom","permalink","embed"],{shadow:!0});Qb(Gy,"geops-mobility-search",["apikey","bbox","countrycode","event","field","limit","mots","onselect","params","prefagencies","reflocation","url"],{shadow:!0});})();
3204
3204
  /*! Bundled license information:
3205
3205
 
3206
3206
  maplibre-gl/dist/maplibre-gl.js:
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@geops/rvf-mobility-web-component",
3
3
  "license": "UNLICENSED",
4
4
  "description": "Web components for rvf in the domains of mobility and logistics.",
5
- "version": "0.1.37",
5
+ "version": "0.1.39",
6
6
  "homepage": "https://rvf-mobility-web-component-geops.vercel.app/",
7
7
  "type": "module",
8
8
  "main": "index.js",
@@ -67,7 +67,8 @@ function RvfExportMenu({ ...props }: RvfExportMenuButtonProps) {
67
67
  {
68
68
  onAfter: (map, layers) => {
69
69
  if (
70
- prevRealtimeLayerVisibility !== realtimeLayer.getVisible()
70
+ realtimeLayer &&
71
+ prevRealtimeLayerVisibility !== realtimeLayer?.getVisible()
71
72
  ) {
72
73
  realtimeLayer.setVisible(prevRealtimeLayerVisibility);
73
74
  }
@@ -79,9 +80,11 @@ function RvfExportMenu({ ...props }: RvfExportMenuButtonProps) {
79
80
 
80
81
  onBefore: (map, layers) => {
81
82
  map.set(LAYER_PROP_IS_EXPORTING, true);
82
- prevRealtimeLayerVisibility = realtimeLayer.getVisible();
83
- if (realtimeLayer.getVisible()) {
84
- realtimeLayer.setVisible(false);
83
+ if (realtimeLayer) {
84
+ prevRealtimeLayerVisibility = realtimeLayer.getVisible();
85
+ if (realtimeLayer.getVisible()) {
86
+ realtimeLayer.setVisible(false);
87
+ }
85
88
  }
86
89
  getAllLayers(layers).forEach((layer) => {
87
90
  layer.set(LAYER_PROP_IS_EXPORTING, true);
@@ -156,11 +156,15 @@ function RvfLineNetworkDetails({
156
156
  };
157
157
 
158
158
  if (textColor) {
159
- line.text_color = "#" + textColor;
159
+ line.text_color =
160
+ textColor[0] === "#" ? textColor : "#" + textColor;
160
161
  }
161
162
 
162
163
  if (backgroundColor) {
163
- line.color = "#" + backgroundColor;
164
+ line.color =
165
+ backgroundColor[0] === "#"
166
+ ? backgroundColor
167
+ : "#" + backgroundColor;
164
168
  }
165
169
 
166
170
  return (
@@ -559,7 +559,6 @@ function RvfMobilityMap({
559
559
  />
560
560
  <RvfLineNetworkPlanLayer
561
561
  isQueryable={true}
562
- minZoom={10}
563
562
  title={RVF_LAYERS_TITLES.liniennetz}
564
563
  />
565
564
  <RvfPoisLayer title={RVF_LAYERS_TITLES.pois} />
package/.yarnrc.yml DELETED
@@ -1 +0,0 @@
1
- nodeLinker: node-modules