mirror of
https://github.com/maputnik/editor.git
synced 2026-11-29 21:34:20 +00:00
deploy: 3c3fcadbb6
This commit is contained in:
1 parent
83b96e8f80
commit
f67704c545
5 files changed
+37
-37
No files matched your search
@@ -0,0 +1 @@
|
||||
html{background-color:#1c1f24}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Regular-B-HLW1rL.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Medium-C0z2xw0d.ttf) format("truetype");font-weight:700;font-style:normal;font-display:swap}html{color:#f0f0f0;font-size:14px;box-sizing:border-box}body{overflow:hidden}*,*:before,*:after{box-sizing:inherit}p{font-size:12px;margin-top:5px;margin-bottom:5px;color:#a4a4a4;line-height:1.3}h1{font-size:20px;margin-bottom:10px;font-weight:700}h2{font-size:18px;margin-bottom:10px;font-weight:700}h3{font-size:16px;margin-bottom:10px;font-weight:700}h4{font-size:14px;margin-bottom:10px}input:focus,textarea:focus,*[role=button]:focus,button:focus,.maputnik-toolbar-link:focus,select:focus{color:#f0f0f0;outline:#8e8e8e auto 1px}label:hover{color:#f0f0f0}.clearfix:after{content:"";display:table;clear:both}a{color:#fff}.hide{display:none!important}.maputnik-map__container{background:#fff;display:flex;width:calc(100% - 570px)}.maputnik-map__container--error{align-items:center;justify-content:center}.maputnik-map__container__error-message{margin:16px;text-align:center}.maputnik-map__map{width:100%;height:100%}.maputnik-input-block:hover .maputnik-doc-button,.maputnik-filter-editor-compound-select:hover .maputnik-doc-button{opacity:1;pointer-events:all;cursor:pointer}.maputnik-doc-wrapper{display:inline-block;box-sizing:border-box;font-size:12px;line-height:2;-webkit-user-select:none;user-select:none;position:relative;vertical-align:top}.maputnik-doc-popup{display:none;color:#a4a4a4;background-color:#222429;padding:5px;font-size:10px;position:absolute;top:20px;left:0;width:120px;z-index:10;pointer-events:none}.maputnik-doc-button{opacity:0;pointer-events:none;background:#191b20;color:#fff;border:none;padding:4px}.maputnik-doc-button svg{pointer-events:none}.maputnik-doc-button--open{opacity:1;pointer-events:all}.maputnik-doc-inline{color:#a4a4a4;background-color:#222429;padding:5px;font-size:12px;margin-top:10px;line-height:1.5;flex:1 0}.maputnik-doc-target:hover .maputnik-doc-popup{display:block;text-align:left}.maputnik-button{display:inline-block;cursor:pointer;background-color:#303237;color:#a4a4a4;font-size:12px;padding:5px;-webkit-user-select:none;user-select:none;border-width:0;border-radius:2px;box-sizing:border-box;text-decoration:none}.maputnik-button:hover{background-color:#4d5058;color:#f0f0f0}.maputnik-button:disabled{background-color:#242629;color:#303237;cursor:not-allowed}.maputnik-big-button{margin-top:10px;display:inline-block;padding:10px;font-size:14px}.maputnik-wide-button{padding:5px 10px}.maputnik-green-button{background-color:#53b972;color:#191b20}.maputnik-white-button{background-color:#f0f0f0;color:#191b20}.maputnik-icon-button{background-color:transparent}.maputnik-icon-button:hover:not(:disabled){background-color:transparent}.maputnik-icon-button:hover:not(:disabled) label,.maputnik-icon-button:hover:not(:disabled) svg{cursor:pointer}.maputnik-icon-button:hover:not(:disabled) svg{fill:#f0f0f0}.maputnik-input-block{margin:10px;display:flex;flex-wrap:wrap}.maputnik-input-block-label{color:#a4a4a4;-webkit-user-select:none;user-select:none;width:32%;vertical-align:top;font-size:12px}.maputnik-input-block-action{color:#a4a4a4;-webkit-user-select:none;user-select:none;width:18%;vertical-align:top;font-size:12px;text-align:right}.maputnik-input-block-content{width:50%}.maputnik-action-block .maputnik-input-block-label{display:inline-block;width:32%;margin-bottom:10px}.maputnik-action-block .maputnik-input-block-action{vertical-align:top;display:inline-block;width:18%}.maputnik-action-block .maputnik-input-block-action>div{text-align:right}.maputnik-data-spec-block .maputnik-inline-error,.maputnik-zoom-spec-property .maputnik-inline-error{margin-left:32%}.maputnik-space{-webkit-flex-grow:1;-ms-flex-grow:1;-moz-flex-grow:1;-o-flex-grow:1;flex-grow:1}.maputnik-message-panel{padding:5px}.maputnik-message-panel-error{color:#cf4a4a}.maputnik-message-panel__switch-button{all:unset;text-decoration:underline;cursor:pointer}.maputnik-dialog__buttons{text-align:right}.map-state-menu{display:inline-block}.map-staLine truncated
|
||||
@@ -45,8 +45,8 @@
|
||||
`);for(Y=D=0;D<jt.length&&!jt[D].includes("DetermineComponentFrameRoot");)D++;for(;Y<dn.length&&!dn[Y].includes("DetermineComponentFrameRoot");)Y++;if(D===jt.length||Y===dn.length)for(D=jt.length-1,Y=dn.length-1;1<=D&&0<=Y&&jt[D]!==dn[Y];)Y--;for(;1<=D&&0<=Y;D--,Y--)if(jt[D]!==dn[Y]){if(D!==1||Y!==1)do if(D--,Y--,0>Y||jt[D]!==dn[Y]){var Dn=`
|
||||
`+jt[D].replace(" at new "," at ");return A.displayName&&Dn.includes("<anonymous>")&&(Dn=Dn.replace("<anonymous>",A.displayName)),Dn}while(1<=D&&0<=Y);break}}}finally{Xe=!1,Error.prepareStackTrace=x}return(x=A?A.displayName||A.name:"")?ea(x):""}function Mn(A){switch(A.tag){case 26:case 27:case 5:return ea(A.type);case 16:return ea("Lazy");case 13:return ea("Suspense");case 19:return ea("SuspenseList");case 0:case 15:return Bt(A.type,!1);case 11:return Bt(A.type.render,!1);case 1:return Bt(A.type,!0);case 31:return ea("Activity");default:return""}}function Qn(A){try{var m="";do m+=Mn(A),A=A.return;while(A);return m}catch(x){return`
|
||||
Error generating stack: `+x.message+`
|
||||
`+x.stack}}function an(A){switch(typeof A){case"bigint":case"boolean":case"number":case"string":case"undefined":return A;case"object":return A;default:return""}}function li(A){var m=A.type;return(A=A.nodeName)&&A.toLowerCase()==="input"&&(m==="checkbox"||m==="radio")}function no(A){var m=li(A)?"checked":"value",x=Object.getOwnPropertyDescriptor(A.constructor.prototype,m),D=""+A[m];if(!A.hasOwnProperty(m)&&typeof x<"u"&&typeof x.get=="function"&&typeof x.set=="function"){var Y=x.get,se=x.set;return Object.defineProperty(A,m,{configurable:!0,get:function(){return Y.call(this)},set:function(Ye){D=""+Ye,se.call(this,Ye)}}),Object.defineProperty(A,m,{enumerable:x.enumerable}),{getValue:function(){return D},setValue:function(Ye){D=""+Ye},stopTracking:function(){A._valueTracker=null,delete A[m]}}}}function Oo(A){A._valueTracker||(A._valueTracker=no(A))}function ps(A){if(!A)return!1;var m=A._valueTracker;if(!m)return!0;var x=m.getValue(),D="";return A&&(D=li(A)?A.checked?"true":"false":A.value),A=D,A!==x?(m.setValue(A),!0):!1}function Gs(A){if(A=A||(typeof document<"u"?document:void 0),typeof A>"u")return null;try{return A.activeElement||A.body}catch{return A.body}}var Ju=/[\n"\\]/g;function Hi(A){return A.replace(Ju,function(m){return"\\"+m.charCodeAt(0).toString(16)+" "})}function jA(A,m,x,D,Y,se,Ye,st){A.name="",Ye!=null&&typeof Ye!="function"&&typeof Ye!="symbol"&&typeof Ye!="boolean"?A.type=Ye:A.removeAttribute("type"),m!=null?Ye==="number"?(m===0&&A.value===""||A.value!=m)&&(A.value=""+an(m)):A.value!==""+an(m)&&(A.value=""+an(m)):Ye!=="submit"&&Ye!=="reset"||A.removeAttribute("value"),m!=null?xl(A,Ye,an(m)):x!=null?xl(A,Ye,an(x)):D!=null&&A.removeAttribute("value"),Y==null&&se!=null&&(A.defaultChecked=!!se),Y!=null&&(A.checked=Y&&typeof Y!="function"&&typeof Y!="symbol"),st!=null&&typeof st!="function"&&typeof st!="symbol"&&typeof st!="boolean"?A.name=""+an(st):A.removeAttribute("name")}function Bu(A,m,x,D,Y,se,Ye,st){if(se!=null&&typeof se!="function"&&typeof se!="symbol"&&typeof se!="boolean"&&(A.type=se),m!=null||x!=null){if(!(se!=="submit"&&se!=="reset"||m!=null))return;x=x!=null?""+an(x):"",m=m!=null?""+an(m):x,st||m===A.value||(A.value=m),A.defaultValue=m}D=D??Y,D=typeof D!="function"&&typeof D!="symbol"&&!!D,A.checked=st?A.checked:!!D,A.defaultChecked=!!D,Ye!=null&&typeof Ye!="function"&&typeof Ye!="symbol"&&typeof Ye!="boolean"&&(A.name=Ye)}function xl(A,m,x){m==="number"&&Gs(A.ownerDocument)===A||A.defaultValue===""+x||(A.defaultValue=""+x)}function Is(A,m,x,D){if(A=A.options,m){m={};for(var Y=0;Y<x.length;Y++)m["$"+x[Y]]=!0;for(x=0;x<A.length;x++)Y=m.hasOwnProperty("$"+A[x].value),A[x].selected!==Y&&(A[x].selected=Y),Y&&D&&(A[x].defaultSelected=!0)}else{for(x=""+an(x),m=null,Y=0;Y<A.length;Y++){if(A[Y].value===x){A[Y].selected=!0,D&&(A[Y].defaultSelected=!0);return}m!==null||A[Y].disabled||(m=A[Y])}m!==null&&(m.selected=!0)}}function Tc(A,m,x){if(m!=null&&(m=""+an(m),m!==A.value&&(A.value=m),x==null)){A.defaultValue!==m&&(A.defaultValue=m);return}A.defaultValue=x!=null?""+an(x):""}function Xs(A,m,x,D){if(m==null){if(D!=null){if(x!=null)throw Error(i(92));if(Ce(D)){if(1<D.length)throw Error(i(93));D=D[0]}x=D}x==null&&(x=""),m=x}x=an(m),A.defaultValue=x,D=A.textContent,D===x&&D!==""&&D!==null&&(A.value=D)}function ta(A,m){if(m){var x=A.firstChild;if(x&&x===A.lastChild&&x.nodeType===3){x.nodeValue=m;return}}A.textContent=m}var Po=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function mr(A,m,x){var D=m.indexOf("--")===0;x==null||typeof x=="boolean"||x===""?D?A.setProperty(m,""):m==="float"?A.cssFloat="":A[m]="":D?A.setProperty(m,x):typeof x!="number"||x===0||Po.has(m)?m==="float"?A.cssFloat=x:A[m]=(""+x).trim():A[m]=x+"px"}function Gl(A,m,x){if(m!=null&&typeof m!="object")throw Error(i(62));if(A=A.style,x!=null){for(var D in x)!x.hasOwnProperty(D)||m!=null&&m.hasOwnProperty(D)||(D.indexOf("--")===0?A.setProperty(D,""):D==="float"?A.cssFloat="":A[D]="");for(var Y in m)D=m[Y],m.hasOwnProperty(Y)&&x[Y]!==D&&mr(A,Y,D)}else for(var se in m)m.hasOwnProperty(se)&&mr(A,se,m[se])}function ba(A){if(A.indexOf("-")===
Line truncated
|
||||
`).replace(Ef,"")}function S1(A,m){return m=_g(m),_g(A)===m}function oc(){}function Da(A,m,x,D,Y,se){switch(x){case"children":typeof D=="string"?m==="body"||m==="textarea"&&D===""||ta(A,D):(typeof D=="number"||typeof D=="bigint")&&m!=="body"&&ta(A,""+D);break;case"className":Xi(A,"class",D);break;case"tabIndex":Xi(A,"tabindex",D);break;case"dir":case"role":case"viewBox":case"width":case"height":Xi(A,x,D);break;case"style":Gl(A,D,se);break;case"data":if(m!=="object"){Xi(A,"data",D);break}case"src":case"href":if(D===""&&(m!=="a"||x!=="href")){A.removeAttribute(x);break}if(D==null||typeof D=="function"||typeof D=="symbol"||typeof D=="boolean"){A.removeAttribute(x);break}D=Sr(""+D),A.setAttribute(x,D);break;case"action":case"formAction":if(typeof D=="function"){A.setAttribute(x,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof se=="function"&&(x==="formAction"?(m!=="input"&&Da(A,m,"name",Y.name,Y,null),Da(A,m,"formEncType",Y.formEncType,Y,null),Da(A,m,"formMethod",Y.formMethod,Y,null),Da(A,m,"formTarget",Y.formTarget,Y,null)):(Da(A,m,"encType",Y.encType,Y,null),Da(A,m,"method",Y.method,Y,null),Da(A,m,"target",Y.target,Y,null)));if(D==null||typeof D=="symbol"||typeof D=="boolean"){A.removeAttribute(x);break}D=Sr(""+D),A.setAttribute(x,D);break;case"onClick":D!=null&&(A.onclick=oc);break;case"onScroll":D!=null&&sa("scroll",A);break;case"onScrollEnd":D!=null&&sa("scrollend",A);break;case"dangerouslySetInnerHTML":if(D!=null){if(typeof D!="object"||!("__html"in D))throw Error(i(61));if(x=D.__html,x!=null){if(Y.children!=null)throw Error(i(60));A.innerHTML=x}}break;case"multiple":A.multiple=D&&typeof D!="function"&&typeof D!="symbol";break;case"muted":A.muted=D&&typeof D!="function"&&typeof D!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(D==null||typeof D=="function"||typeof D=="boolean"||typeof D=="symbol"){A.removeAttribute("xlink:href");break}x=Sr(""+D),A.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",x);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":D!=null&&typeof D!="function"&&typeof D!="symbol"?A.setAttribute(x,""+D):A.removeAttribute(x);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":D&&typeof D!="function"&&typeof D!="symbol"?A.setAttribute(x,""):A.removeAttribute(x);break;case"capture":case"download":D===!0?A.setAttribute(x,""):D!==!1&&D!=null&&typeof D!="function"&&typeof D!="symbol"?A.setAttribute(x,D):A.removeAttribute(x);break;case"cols":case"rows":case"size":case"span":D!=null&&typeof D!="function"&&typeof D!="symbol"&&!isNaN(D)&&1<=D?A.setAttribute(x,D):A.removeAttribute(x);break;case"rowSpan":case"start":D==null||typeof D=="function"||typeof D=="symbol"||isNaN(D)?A.removeAttribute(x):A.setAttribute(x,D);break;case"popover":sa("beforetoggle",A),sa("toggle",A),Fa(A,"popover",D);break;case"xlinkActuate":Si(A,"http://www.w3.org/1999/xlink","xlink:actuate",D);break;case"xlinkArcrole":Si(A,"http://www.w3.org/1999/xlink","xlink:arcrole",D);break;case"xlinkRole":Si(A,"http://www.w3.org/1999/xlink","xlink:role",D);break;case"xlinkShow":Si(A,"http://www.w3.org/1999/xlink","xlink:show",D);break;case"xlinkTitle":Si(A,"http://www.w3.org/1999/xlink","xlink:title",D);break;case"xlinkType":Si(A,"http://www.w3.org/1999/xlink","xlink:type",D);break;case"xmlBase":Si(A,"http://www.w3.org/XML/1998/namespace","xml:base",D);break;case"xmlLang":Si(A,"http://www.w3.org/XML/1998/namespace","xml:lang",D);break;case"xmlSpace":Si(A,"http://www.w3.org/XML/1998/namespace","xml:space",D);break;case"is":Fa(A,"is",D);break;case"innerText":case"textContent":break;default:(!(2<x.length)||x[0]!=="o"&&x[0]!=="O"||x[1]!=="n"&&x[1]!=="N")&&(x=Wl.get(x)||x,Fa(A,x,D))}}function $p(A,m,x,D,Y,se){switch(x){case"style":Gl(A,D,se);break;case"dangerouslySetInnerHTML":if(D!=null){if(typeof D!="object"||!("__html"in D))throw Error(i(61));if(x=D.__html,x!=null){if(Y.children!=null)throw Error(i(60));A.innerHTML=x}}break;case"children":typeof D=="string"?ta(A,D):(typeof D=="number"||typeof D=="bigint")&&ta(A,""+D);break;case"onScroll":D!=null&&sa("scroll",A);break;case"onScrollEnd":D!=null&&sa("scrollend",A);break;case"onClick":D!=null&&(A.onclick=oc);break;case"suppressContentEditableWarning":case"suppressHydrati
Line truncated
|
||||
`+x.stack}}function an(A){switch(typeof A){case"bigint":case"boolean":case"number":case"string":case"undefined":return A;case"object":return A;default:return""}}function li(A){var m=A.type;return(A=A.nodeName)&&A.toLowerCase()==="input"&&(m==="checkbox"||m==="radio")}function no(A){var m=li(A)?"checked":"value",x=Object.getOwnPropertyDescriptor(A.constructor.prototype,m),D=""+A[m];if(!A.hasOwnProperty(m)&&typeof x<"u"&&typeof x.get=="function"&&typeof x.set=="function"){var Y=x.get,se=x.set;return Object.defineProperty(A,m,{configurable:!0,get:function(){return Y.call(this)},set:function(Ye){D=""+Ye,se.call(this,Ye)}}),Object.defineProperty(A,m,{enumerable:x.enumerable}),{getValue:function(){return D},setValue:function(Ye){D=""+Ye},stopTracking:function(){A._valueTracker=null,delete A[m]}}}}function Oo(A){A._valueTracker||(A._valueTracker=no(A))}function ps(A){if(!A)return!1;var m=A._valueTracker;if(!m)return!0;var x=m.getValue(),D="";return A&&(D=li(A)?A.checked?"true":"false":A.value),A=D,A!==x?(m.setValue(A),!0):!1}function Gs(A){if(A=A||(typeof document<"u"?document:void 0),typeof A>"u")return null;try{return A.activeElement||A.body}catch{return A.body}}var Ju=/[\n"\\]/g;function Hi(A){return A.replace(Ju,function(m){return"\\"+m.charCodeAt(0).toString(16)+" "})}function jA(A,m,x,D,Y,se,Ye,st){A.name="",Ye!=null&&typeof Ye!="function"&&typeof Ye!="symbol"&&typeof Ye!="boolean"?A.type=Ye:A.removeAttribute("type"),m!=null?Ye==="number"?(m===0&&A.value===""||A.value!=m)&&(A.value=""+an(m)):A.value!==""+an(m)&&(A.value=""+an(m)):Ye!=="submit"&&Ye!=="reset"||A.removeAttribute("value"),m!=null?xl(A,Ye,an(m)):x!=null?xl(A,Ye,an(x)):D!=null&&A.removeAttribute("value"),Y==null&&se!=null&&(A.defaultChecked=!!se),Y!=null&&(A.checked=Y&&typeof Y!="function"&&typeof Y!="symbol"),st!=null&&typeof st!="function"&&typeof st!="symbol"&&typeof st!="boolean"?A.name=""+an(st):A.removeAttribute("name")}function Bu(A,m,x,D,Y,se,Ye,st){if(se!=null&&typeof se!="function"&&typeof se!="symbol"&&typeof se!="boolean"&&(A.type=se),m!=null||x!=null){if(!(se!=="submit"&&se!=="reset"||m!=null))return;x=x!=null?""+an(x):"",m=m!=null?""+an(m):x,st||m===A.value||(A.value=m),A.defaultValue=m}D=D??Y,D=typeof D!="function"&&typeof D!="symbol"&&!!D,A.checked=st?A.checked:!!D,A.defaultChecked=!!D,Ye!=null&&typeof Ye!="function"&&typeof Ye!="symbol"&&typeof Ye!="boolean"&&(A.name=Ye)}function xl(A,m,x){m==="number"&&Gs(A.ownerDocument)===A||A.defaultValue===""+x||(A.defaultValue=""+x)}function Is(A,m,x,D){if(A=A.options,m){m={};for(var Y=0;Y<x.length;Y++)m["$"+x[Y]]=!0;for(x=0;x<A.length;x++)Y=m.hasOwnProperty("$"+A[x].value),A[x].selected!==Y&&(A[x].selected=Y),Y&&D&&(A[x].defaultSelected=!0)}else{for(x=""+an(x),m=null,Y=0;Y<A.length;Y++){if(A[Y].value===x){A[Y].selected=!0,D&&(A[Y].defaultSelected=!0);return}m!==null||A[Y].disabled||(m=A[Y])}m!==null&&(m.selected=!0)}}function Tc(A,m,x){if(m!=null&&(m=""+an(m),m!==A.value&&(A.value=m),x==null)){A.defaultValue!==m&&(A.defaultValue=m);return}A.defaultValue=x!=null?""+an(x):""}function Xs(A,m,x,D){if(m==null){if(D!=null){if(x!=null)throw Error(i(92));if(Ce(D)){if(1<D.length)throw Error(i(93));D=D[0]}x=D}x==null&&(x=""),m=x}x=an(m),A.defaultValue=x,D=A.textContent,D===x&&D!==""&&D!==null&&(A.value=D)}function ta(A,m){if(m){var x=A.firstChild;if(x&&x===A.lastChild&&x.nodeType===3){x.nodeValue=m;return}}A.textContent=m}var Po=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function mr(A,m,x){var D=m.indexOf("--")===0;x==null||typeof x=="boolean"||x===""?D?A.setProperty(m,""):m==="float"?A.cssFloat="":A[m]="":D?A.setProperty(m,x):typeof x!="number"||x===0||Po.has(m)?m==="float"?A.cssFloat=x:A[m]=(""+x).trim():A[m]=x+"px"}function Gl(A,m,x){if(m!=null&&typeof m!="object")throw Error(i(62));if(A=A.style,x!=null){for(var D in x)!x.hasOwnProperty(D)||m!=null&&m.hasOwnProperty(D)||(D.indexOf("--")===0?A.setProperty(D,""):D==="float"?A.cssFloat="":A[D]="");for(var Y in m)D=m[Y],m.hasOwnProperty(Y)&&x[Y]!==D&&mr(A,Y,D)}else for(var se in m)m.hasOwnProperty(se)&&mr(A,se,m[se])}function ba(A){if(A.indexOf("-")===
Line truncated
|
||||
`).replace(Ef,"")}function S1(A,m){return m=_g(m),_g(A)===m}function oc(){}function Da(A,m,x,D,Y,se){switch(x){case"children":typeof D=="string"?m==="body"||m==="textarea"&&D===""||ta(A,D):(typeof D=="number"||typeof D=="bigint")&&m!=="body"&&ta(A,""+D);break;case"className":Xi(A,"class",D);break;case"tabIndex":Xi(A,"tabindex",D);break;case"dir":case"role":case"viewBox":case"width":case"height":Xi(A,x,D);break;case"style":Gl(A,D,se);break;case"data":if(m!=="object"){Xi(A,"data",D);break}case"src":case"href":if(D===""&&(m!=="a"||x!=="href")){A.removeAttribute(x);break}if(D==null||typeof D=="function"||typeof D=="symbol"||typeof D=="boolean"){A.removeAttribute(x);break}D=Sr(""+D),A.setAttribute(x,D);break;case"action":case"formAction":if(typeof D=="function"){A.setAttribute(x,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof se=="function"&&(x==="formAction"?(m!=="input"&&Da(A,m,"name",Y.name,Y,null),Da(A,m,"formEncType",Y.formEncType,Y,null),Da(A,m,"formMethod",Y.formMethod,Y,null),Da(A,m,"formTarget",Y.formTarget,Y,null)):(Da(A,m,"encType",Y.encType,Y,null),Da(A,m,"method",Y.method,Y,null),Da(A,m,"target",Y.target,Y,null)));if(D==null||typeof D=="symbol"||typeof D=="boolean"){A.removeAttribute(x);break}D=Sr(""+D),A.setAttribute(x,D);break;case"onClick":D!=null&&(A.onclick=oc);break;case"onScroll":D!=null&&sa("scroll",A);break;case"onScrollEnd":D!=null&&sa("scrollend",A);break;case"dangerouslySetInnerHTML":if(D!=null){if(typeof D!="object"||!("__html"in D))throw Error(i(61));if(x=D.__html,x!=null){if(Y.children!=null)throw Error(i(60));A.innerHTML=x}}break;case"multiple":A.multiple=D&&typeof D!="function"&&typeof D!="symbol";break;case"muted":A.muted=D&&typeof D!="function"&&typeof D!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(D==null||typeof D=="function"||typeof D=="boolean"||typeof D=="symbol"){A.removeAttribute("xlink:href");break}x=Sr(""+D),A.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",x);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":D!=null&&typeof D!="function"&&typeof D!="symbol"?A.setAttribute(x,""+D):A.removeAttribute(x);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":D&&typeof D!="function"&&typeof D!="symbol"?A.setAttribute(x,""):A.removeAttribute(x);break;case"capture":case"download":D===!0?A.setAttribute(x,""):D!==!1&&D!=null&&typeof D!="function"&&typeof D!="symbol"?A.setAttribute(x,D):A.removeAttribute(x);break;case"cols":case"rows":case"size":case"span":D!=null&&typeof D!="function"&&typeof D!="symbol"&&!isNaN(D)&&1<=D?A.setAttribute(x,D):A.removeAttribute(x);break;case"rowSpan":case"start":D==null||typeof D=="function"||typeof D=="symbol"||isNaN(D)?A.removeAttribute(x):A.setAttribute(x,D);break;case"popover":sa("beforetoggle",A),sa("toggle",A),Fa(A,"popover",D);break;case"xlinkActuate":Si(A,"http://www.w3.org/1999/xlink","xlink:actuate",D);break;case"xlinkArcrole":Si(A,"http://www.w3.org/1999/xlink","xlink:arcrole",D);break;case"xlinkRole":Si(A,"http://www.w3.org/1999/xlink","xlink:role",D);break;case"xlinkShow":Si(A,"http://www.w3.org/1999/xlink","xlink:show",D);break;case"xlinkTitle":Si(A,"http://www.w3.org/1999/xlink","xlink:title",D);break;case"xlinkType":Si(A,"http://www.w3.org/1999/xlink","xlink:type",D);break;case"xmlBase":Si(A,"http://www.w3.org/XML/1998/namespace","xml:base",D);break;case"xmlLang":Si(A,"http://www.w3.org/XML/1998/namespace","xml:lang",D);break;case"xmlSpace":Si(A,"http://www.w3.org/XML/1998/namespace","xml:space",D);break;case"is":Fa(A,"is",D);break;case"innerText":case"textContent":break;default:(!(2<x.length)||x[0]!=="o"&&x[0]!=="O"||x[1]!=="n"&&x[1]!=="N")&&(x=Wl.get(x)||x,Fa(A,x,D))}}function $p(A,m,x,D,Y,se){switch(x){case"style":Gl(A,D,se);break;case"dangerouslySetInnerHTML":if(D!=null){if(typeof D!="object"||!("__html"in D))throw Error(i(61));if(x=D.__html,x!=null){if(Y.children!=null)throw Error(i(60));A.innerHTML=x}}break;case"children":typeof D=="string"?ta(A,D):(typeof D=="number"||typeof D=="bigint")&&ta(A,""+D);break;case"onScroll":D!=null&&sa("scroll",A);break;case"onScrollEnd":D!=null&&sa("scrollend",A);break;case"onClick":D!=null&&(A.onclick=oc);break;case"suppressContentEditableWarning":case"suppressHydrati
Line truncated
|
||||
* The buffer module from node.js, for the browser.
|
||||
*
|
||||
* @author Feross Aboukhadijeh <https://feross.org>
|
||||
@@ -58,9 +58,9 @@ Error generating stack: `+x.message+`
|
||||
* Released under MIT license <https://lodash.com/license>
|
||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||
*/var EH=s_.exports,x9;function BH(){return x9||(x9=1,function(n,e){(function(){var t,i="4.17.21",r=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",g=500,_="__lodash_placeholder__",E=1,O=2,B=4,z=1,G=2,Q=1,Z=2,X=4,re=8,ie=16,V=32,ee=64,W=128,he=256,ge=512,ve=30,_e="...",Me=800,be=16,ze=1,Ce=2,Fe=3,ot=1/0,mt=9007199254740991,it=17976931348623157e292,ue=NaN,We=4294967295,tt=We-1,ke=We>>>1,Et=[["ary",W],["bind",Q],["bindKey",Z],["curry",re],["curryRight",ie],["flip",ge],["partial",V],["partialRight",ee],["rearg",he]],gt="[object Arguments]",xt="[object Array]",Kt="[object AsyncFunction]",je="[object Boolean]",Ke="[object Date]",Ue="[object DOMException]",Ve="[object Error]",bt="[object Function]",vt="[object GeneratorFunction]",It="[object Map]",Yt="[object Number]",Ut="[object Null]",on="[object Object]",Vn="[object Promise]",Wt="[object Proxy]",Wn="[object RegExp]",On="[object Set]",Bn="[object String]",Tn="[object Symbol]",Oi="[object Undefined]",$n="[object WeakMap]",Lt="[object WeakSet]",De="[object ArrayBuffer]",de="[object DataView]",oe="[object Float32Array]",le="[object Float64Array]",me="[object Int8Array]",Ie="[object Int16Array]",Qe="[object Int32Array]",At="[object Uint8Array]",He="[object Uint8ClampedArray]",Re="[object Uint16Array]",Ze="[object Uint32Array]",y=/\b__p \+= '';/g,yt=/\b(__p \+=) '' \+/g,dt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,kt=/&(?:amp|lt|gt|quot|#39);/g,rt=/[&<>"']/g,tn=RegExp(kt.source),Rn=RegExp(rt.source),wn=/<%-([\s\S]+?)%>/g,oi=/<%([\s\S]+?)%>/g,Yn=/<%=([\s\S]+?)%>/g,$i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ir=/^\w*$/,Ii=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,di=/[\\^$.*+?()[\]{}|]/g,ni=RegExp(di.source),qi=/^\s+/,Sn=/\s/,co=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Zi=/\{\n\/\* \[wrapped with (.+)\] \*/,_a=/,? & /,Ro=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ei=/[()=,{}\[\]\/\s]/,cr=/\\(\\)?/g,Ni=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,br=/\w*$/,Wa=/^[-+]0x[0-9a-f]+$/i,Rr=/^0b[01]+$/i,Gi=/^\[object .+?Constructor\]$/,bl=/^0o[0-7]+$/i,La=/^(?:0|[1-9]\d*)$/,Bo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rs=/($^)/,Rl=/['\n\r\u2028\u2029\\]/g,ho="\\ud800-\\udfff",Xu="\\u0300-\\u036f",Fa="\\ufe20-\\ufe2f",Xi="\\u20d0-\\u20ff",Si=Xu+Fa+Xi,fs="\\u2700-\\u27bf",Oa="a-z\\xdf-\\xf6\\xf8-\\xff",ea="\\xac\\xb1\\xd7\\xf7",Xe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Bt="\\u2000-\\u206f",Mn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Qn="A-Z\\xc0-\\xd6\\xd8-\\xde",an="\\ufe0e\\ufe0f",li=ea+Xe+Bt+Mn,no="['’]",Oo="["+ho+"]",ps="["+li+"]",Gs="["+Si+"]",Ju="\\d+",Hi="["+fs+"]",jA="["+Oa+"]",Bu="[^"+ho+li+Ju+fs+Oa+Qn+"]",xl="\\ud83c[\\udffb-\\udfff]",Is="(?:"+Gs+"|"+xl+")",Tc="[^"+ho+"]",Xs="(?:\\ud83c[\\udde6-\\uddff]){2}",ta="[\\ud800-\\udbff][\\udc00-\\udfff]",Po="["+Qn+"]",mr="\\u200d",Gl="(?:"+jA+"|"+Bu+")",ba="(?:"+Po+"|"+Bu+")",Wl="(?:"+no+"(?:d|ll|m|re|s|t|ve))?",Ou="(?:"+no+"(?:D|LL|M|RE|S|T|VE))?",Sr=Is+"?",Au="["+an+"]?",yA="(?:"+mr+"(?:"+[Tc,Xs,ta].join("|")+")"+Au+Sr+")*",Wo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Io="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qa=Au+Sr+yA,Ia="(?:"+[Hi,Xs,ta].join("|")+")"+Qa,ca="(?:"+[Tc+Gs+"?",Gs,Xs,ta,Oo].join("|")+")",Ur=RegExp(no,"g"),cu=RegExp(Gs,"g"),Ya=RegExp(xl+"(?="+xl+")|"+ca+Qa,"g"),os=RegExp([Po+"?"+jA+"+"+Wl+"(?="+[ps,Po,"$"].join("|")+")",ba+"+"+Ou+"(?="+[ps,Po+Gl,"$"].join("|")+")",Po+"?"+Gl+"+"+Wl,Po+"+"+Ou,Io,Wo,Ju,Ia].join("|"),"g"),xa=RegExp("["+mr+ho+Si+an+"]"),Kr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ml=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],er=-1,Ei={};Ei[oe]=Ei[le]=Ei[me]=Ei[Ie]=Ei[Qe]=Ei[At]=Ei[He]=Ei[Re]=Ei[Ze]=!0,Ei[gt]=Ei[xt]=Ei[De]=Ei[je]=Ei[de]=Ei[Ke]=Ei[Ve]=Ei[bt]=Ei[It]=Ei[Yt]=Ei[on]=Ei[Wn]=Ei[On]=Ei[Bn]=Ei[$n]=!1;var Hr={};Hr[gt]=Hr[xt]=Hr[De]=Hr[de]=Hr[je]=Hr[Ke]=Hr[oe]=Hr[le]=Hr[me]=Hr[Ie]=Hr[Qe]=Hr[It]=Hr[Yt]=Hr[on]=Hr[Wn]=Hr[On]=Hr[Bn]=Hr[Tn]=Hr[At]=Hr[He]=Hr[Re]=Hr[Ze]=!0,Hr[Ve]=Hr[bt]=Hr[$n]=!1;var ne={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",Line truncated
|
||||
*/var EH=s_.exports,x9;function BH(){return x9||(x9=1,function(n,e){(function(){var t,i="4.17.21",r=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",g=500,_="__lodash_placeholder__",E=1,O=2,B=4,z=1,G=2,Q=1,Z=2,X=4,re=8,ie=16,V=32,ee=64,W=128,he=256,ge=512,ve=30,_e="...",Me=800,be=16,ze=1,Ce=2,Fe=3,ot=1/0,mt=9007199254740991,it=17976931348623157e292,ue=NaN,We=4294967295,tt=We-1,ke=We>>>1,Et=[["ary",W],["bind",Q],["bindKey",Z],["curry",re],["curryRight",ie],["flip",ge],["partial",V],["partialRight",ee],["rearg",he]],gt="[object Arguments]",xt="[object Array]",Kt="[object AsyncFunction]",je="[object Boolean]",Ke="[object Date]",Ue="[object DOMException]",Ve="[object Error]",bt="[object Function]",vt="[object GeneratorFunction]",It="[object Map]",Yt="[object Number]",Ut="[object Null]",on="[object Object]",Vn="[object Promise]",Wt="[object Proxy]",Wn="[object RegExp]",On="[object Set]",Bn="[object String]",Tn="[object Symbol]",Oi="[object Undefined]",$n="[object WeakMap]",Lt="[object WeakSet]",De="[object ArrayBuffer]",de="[object DataView]",oe="[object Float32Array]",le="[object Float64Array]",me="[object Int8Array]",Ie="[object Int16Array]",Qe="[object Int32Array]",At="[object Uint8Array]",He="[object Uint8ClampedArray]",Re="[object Uint16Array]",Ze="[object Uint32Array]",y=/\b__p \+= '';/g,yt=/\b(__p \+=) '' \+/g,dt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,kt=/&(?:amp|lt|gt|quot|#39);/g,rt=/[&<>"']/g,tn=RegExp(kt.source),Rn=RegExp(rt.source),wn=/<%-([\s\S]+?)%>/g,oi=/<%([\s\S]+?)%>/g,Yn=/<%=([\s\S]+?)%>/g,$i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ir=/^\w*$/,Ii=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,di=/[\\^$.*+?()[\]{}|]/g,ni=RegExp(di.source),qi=/^\s+/,Sn=/\s/,co=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Zi=/\{\n\/\* \[wrapped with (.+)\] \*/,_a=/,? & /,Ro=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ei=/[()=,{}\[\]\/\s]/,cr=/\\(\\)?/g,Ni=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,br=/\w*$/,Wa=/^[-+]0x[0-9a-f]+$/i,Rr=/^0b[01]+$/i,Gi=/^\[object .+?Constructor\]$/,bl=/^0o[0-7]+$/i,La=/^(?:0|[1-9]\d*)$/,Bo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rs=/($^)/,Rl=/['\n\r\u2028\u2029\\]/g,ho="\\ud800-\\udfff",Xu="\\u0300-\\u036f",Fa="\\ufe20-\\ufe2f",Xi="\\u20d0-\\u20ff",Si=Xu+Fa+Xi,fs="\\u2700-\\u27bf",Oa="a-z\\xdf-\\xf6\\xf8-\\xff",ea="\\xac\\xb1\\xd7\\xf7",Xe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Bt="\\u2000-\\u206f",Mn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Qn="A-Z\\xc0-\\xd6\\xd8-\\xde",an="\\ufe0e\\ufe0f",li=ea+Xe+Bt+Mn,no="['’]",Oo="["+ho+"]",ps="["+li+"]",Gs="["+Si+"]",Ju="\\d+",Hi="["+fs+"]",jA="["+Oa+"]",Bu="[^"+ho+li+Ju+fs+Oa+Qn+"]",xl="\\ud83c[\\udffb-\\udfff]",Is="(?:"+Gs+"|"+xl+")",Tc="[^"+ho+"]",Xs="(?:\\ud83c[\\udde6-\\uddff]){2}",ta="[\\ud800-\\udbff][\\udc00-\\udfff]",Po="["+Qn+"]",mr="\\u200d",Gl="(?:"+jA+"|"+Bu+")",ba="(?:"+Po+"|"+Bu+")",Wl="(?:"+no+"(?:d|ll|m|re|s|t|ve))?",Ou="(?:"+no+"(?:D|LL|M|RE|S|T|VE))?",Sr=Is+"?",Au="["+an+"]?",yA="(?:"+mr+"(?:"+[Tc,Xs,ta].join("|")+")"+Au+Sr+")*",Wo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Io="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qa=Au+Sr+yA,Ia="(?:"+[Hi,Xs,ta].join("|")+")"+Qa,ca="(?:"+[Tc+Gs+"?",Gs,Xs,ta,Oo].join("|")+")",Ur=RegExp(no,"g"),cu=RegExp(Gs,"g"),Ya=RegExp(xl+"(?="+xl+")|"+ca+Qa,"g"),os=RegExp([Po+"?"+jA+"+"+Wl+"(?="+[ps,Po,"$"].join("|")+")",ba+"+"+Ou+"(?="+[ps,Po+Gl,"$"].join("|")+")",Po+"?"+Gl+"+"+Wl,Po+"+"+Ou,Io,Wo,Ju,Ia].join("|"),"g"),xa=RegExp("["+mr+ho+Si+an+"]"),Kr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ml=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],er=-1,Ei={};Ei[oe]=Ei[le]=Ei[me]=Ei[Ie]=Ei[Qe]=Ei[At]=Ei[He]=Ei[Re]=Ei[Ze]=!0,Ei[gt]=Ei[xt]=Ei[De]=Ei[je]=Ei[de]=Ei[Ke]=Ei[Ve]=Ei[bt]=Ei[It]=Ei[Yt]=Ei[on]=Ei[Wn]=Ei[On]=Ei[Bn]=Ei[$n]=!1;var Hr={};Hr[gt]=Hr[xt]=Hr[De]=Hr[de]=Hr[je]=Hr[Ke]=Hr[oe]=Hr[le]=Hr[me]=Hr[Ie]=Hr[Qe]=Hr[It]=Hr[Yt]=Hr[on]=Hr[Wn]=Hr[On]=Hr[Bn]=Hr[Tn]=Hr[At]=Hr[He]=Hr[Re]=Hr[Ze]=!0,Hr[Ve]=Hr[bt]=Hr[$n]=!1;var ne={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",Line truncated
|
||||
/* [wrapped with `+P+`] */
|
||||
`)}function C(M){return $r(M)||Yd(M)||!!(aA&&M&&M[aA])}function T(M,P){var $=typeof M;return P=P??mt,!!P&&($=="number"||$!="symbol"&&La.test(M))&&M>-1&&M%1==0&&M<P}function I(M,P,$){if(!dl($))return!1;var we=typeof P;return(we=="number"?ou($)&&T(P,$.length):we=="string"&&P in $)?ru($[P],M):!1}function F(M,P){if($r(M))return!1;var $=typeof M;return $=="number"||$=="symbol"||$=="boolean"||M==null||hA(M)?!0:ir.test(M)||!$i.test(M)||P!=null&&M in Uo(P)}function J(M){var P=typeof M;return P=="string"||P=="number"||P=="symbol"||P=="boolean"?M!=="__proto__":M===null}function pe(M){var P=Cf(M),$=at[P];if(typeof $!="function"||!(P in Cr.prototype))return!1;if(M===$)return!0;var we=sp($);return!!we&&M===we[0]}function Se(M){return!!nd&&nd in M}var Pe=Du?jh:nm;function Ge(M){var P=M&&M.constructor,$=typeof P=="function"&&P.prototype||ku;return M===$}function _t(M){return M===M&&!dl(M)}function Tt(M,P){return function($){return $==null?!1:$[M]===P&&(P!==t||M in Uo($))}}function en(M){var P=qp(M,function(we){return $.size===g&&$.clear(),we}),$=P.cache;return P}function Vt(M,P){var $=M[1],we=P[1],et=$|we,pt=et<(Q|Z|W),Ft=we==W&&$==re||we==W&&$==he&&M[7].length<=P[8]||we==(W|he)&&P[7].length<=P[8]&&$==re;if(!(pt||Ft))return M;we&Q&&(M[2]=P[2],et|=$&Q?0:X);var $t=P[3];if($t){var ln=M[3];M[3]=ln?Bl(ln,$t,P[4]):$t,M[4]=ln?vA(M[3],_):P[4]}return $t=P[5],$t&&(ln=M[5],M[5]=ln?Wc(ln,$t,P[6]):$t,M[6]=ln?vA(M[5],_):P[6]),$t=P[7],$t&&(M[7]=$t),we&W&&(M[8]=M[8]==null?P[8]:ha(M[8],P[8])),M[9]==null&&(M[9]=P[9]),M[0]=P[0],M[1]=et,M}function bn(M){var P=[];if(M!=null)for(var $ in Uo(M))P.push($);return P}function Pn(M){return qa.call(M)}function ai(M,P,$){return P=qo(P===t?M.length-1:P,0),function(){for(var we=arguments,et=-1,pt=qo(we.length-P,0),Ft=Cn(pt);++et<pt;)Ft[et]=we[P+et];et=-1;for(var $t=Cn(P+1);++et<P;)$t[et]=we[et];return $t[P]=$(Ft),Cs(M,this,$t)}}function gi(M,P){return P.length<2?M:gu(M,Jt(P,0,-1))}function _i(M,P){for(var $=M.length,we=ha(P.length,$),et=Mo(M);we--;){var pt=P[we];M[we]=T(pt,$)?et[pt]:t}return M}function yi(M,P){if(!(P==="constructor"&&typeof M[P]=="function")&&P!="__proto__")return M[P]}var Pi=Er(Ot),ur=Kd||function(M,P){return Ui.setTimeout(M,P)},Vi=Er(Ht);function to(M,P,$){var we=P+"";return Vi(M,d(we,ws(Ys(we),$)))}function Er(M){var P=0,$=0;return function(){var we=YA(),et=be-(we-$);if($=we,et>0){if(++P>=Me)return arguments[0]}else P=0;return M.apply(t,arguments)}}function As(M,P){var $=-1,we=M.length,et=we-1;for(P=P===t?we:P;++$<P;){var pt=ht($,et),Ft=M[pt];M[pt]=M[$],M[$]=Ft}return M.length=P,M}var ma=en(function(M){var P=[];return M.charCodeAt(0)===46&&P.push(""),M.replace(Ii,function($,we,et,pt){P.push(et?pt.replace(cr,"$1"):we||$)}),P});function Vr(M){if(typeof M=="string"||hA(M))return M;var P=M+"";return P=="0"&&1/M==-ot?"-0":P}function Ms(M){if(M!=null){try{return Pl.call(M)}catch{}try{return M+""}catch{}}return""}function ws(M,P){return za(Et,function($){var we="_."+$[0];P&$[1]&&!wh(M,we)&&M.push(we)}),M.sort()}function ga(M){if(M instanceof Cr)return M.clone();var P=new na(M.__wrapped__,M.__chain__);return P.__actions__=Mo(M.__actions__),P.__index__=M.__index__,P.__values__=M.__values__,P}function nu(M,P,$){($?I(M,P,$):P===t)?P=1:P=qo(ao(P),0);var we=M==null?0:M.length;if(!we||P<1)return[];for(var et=0,pt=0,Ft=Cn(rh(we/P));et<we;)Ft[pt++]=Jt(M,et,et+=P);return Ft}function Ps(M){for(var P=-1,$=M==null?0:M.length,we=0,et=[];++P<$;){var pt=M[P];pt&&(et[we++]=pt)}return et}function qs(){var M=arguments.length;if(!M)return[];for(var P=Cn(M-1),$=arguments[0],we=M;we--;)P[we-1]=arguments[we];return hc($r($)?Mo($):[$],Lr(P,1))}var kr=Ct(function(M,P){return Tl(M)?Lo(M,Lr(P,1,Tl,!0)):[]}),ka=Ct(function(M,P){var $=DA(P);return Tl($)&&($=t),Tl(M)?Lo(M,Lr(P,1,Tl,!0),yr($,2)):[]}),iu=Ct(function(M,P){var $=DA(P);return Tl($)&&($=t),Tl(M)?Lo(M,Lr(P,1,Tl,!0),t,$):[]});function xc(M,P,$){var we=M==null?0:M.length;return we?(P=$||P===t?1:ao(P),Jt(M,P<0?0:P,we)):[]}function bu(M,P,$){var we=M==null?0:M.length;return we?(P=$||P===t?1:ao(P),P=we-P,Jt(M,0,P<0?0:P)):[]}function dh(M,P){return M&&M.length?jo(M,yr(P,3),!0,!0):[]}function gs(M,P){return M&&M.length?jo(M,yr(P,3),!0):[]}function kA(M,P,$,we){var et=M==null?0:M.length;return et?($&&typeof $!="number"&&I(M,P,$)&&($=0,we=et),oo(M,P,$,we)):[]}function Ol(M,P,$){var we=M==null?0:M.length;if(!we)return-1;var et=$==null?0:ao($);return et<0&&(et=qo(we+et,0)),nA(M,yr(P,3),et)}function Mc(M,P,$){var we=M==null?0:M.length;if(!we)return-1;var et=we-1;return $!==t&&(et=ao($),et=$<0?qo(we+et,0):ha(et,we-1)),nA(M,yr(P,3),et,!0)}function hl(M){var P=M==null?0:M.length;return P?Lr(M,1):[]}function xu(M){var P=M==null?0:M.length;return P?Lr(M,ot):[]}function ic(M,P){var $=M==null?0:M.length;return $?(P=P===t?1:ao(P),Lr(M,P)):[]}function fd(M){for(var P=-1,$=M==null?0:M.length,we={};++P<$;){var et=M[P];we[et[0]]=et[1]}return we}function xf(M){return M&&M.length?M[0]:t}function u1(M,P,$){var we=M==null?0:M.length;if(!we)return-1;var et=$==null?0:ao($);return et<0&&(e
Line truncated
|
||||
`)}function C(M){return $r(M)||Yd(M)||!!(aA&&M&&M[aA])}function T(M,P){var $=typeof M;return P=P??mt,!!P&&($=="number"||$!="symbol"&&La.test(M))&&M>-1&&M%1==0&&M<P}function I(M,P,$){if(!dl($))return!1;var we=typeof P;return(we=="number"?ou($)&&T(P,$.length):we=="string"&&P in $)?ru($[P],M):!1}function F(M,P){if($r(M))return!1;var $=typeof M;return $=="number"||$=="symbol"||$=="boolean"||M==null||hA(M)?!0:ir.test(M)||!$i.test(M)||P!=null&&M in Uo(P)}function J(M){var P=typeof M;return P=="string"||P=="number"||P=="symbol"||P=="boolean"?M!=="__proto__":M===null}function pe(M){var P=Cf(M),$=at[P];if(typeof $!="function"||!(P in Cr.prototype))return!1;if(M===$)return!0;var we=sp($);return!!we&&M===we[0]}function Se(M){return!!nd&&nd in M}var Pe=Du?jh:nm;function Ge(M){var P=M&&M.constructor,$=typeof P=="function"&&P.prototype||ku;return M===$}function _t(M){return M===M&&!dl(M)}function Tt(M,P){return function($){return $==null?!1:$[M]===P&&(P!==t||M in Uo($))}}function en(M){var P=qp(M,function(we){return $.size===g&&$.clear(),we}),$=P.cache;return P}function Vt(M,P){var $=M[1],we=P[1],et=$|we,pt=et<(Q|Z|W),Ft=we==W&&$==re||we==W&&$==he&&M[7].length<=P[8]||we==(W|he)&&P[7].length<=P[8]&&$==re;if(!(pt||Ft))return M;we&Q&&(M[2]=P[2],et|=$&Q?0:X);var $t=P[3];if($t){var ln=M[3];M[3]=ln?Bl(ln,$t,P[4]):$t,M[4]=ln?vA(M[3],_):P[4]}return $t=P[5],$t&&(ln=M[5],M[5]=ln?Wc(ln,$t,P[6]):$t,M[6]=ln?vA(M[5],_):P[6]),$t=P[7],$t&&(M[7]=$t),we&W&&(M[8]=M[8]==null?P[8]:ha(M[8],P[8])),M[9]==null&&(M[9]=P[9]),M[0]=P[0],M[1]=et,M}function bn(M){var P=[];if(M!=null)for(var $ in Uo(M))P.push($);return P}function Pn(M){return qa.call(M)}function ai(M,P,$){return P=qo(P===t?M.length-1:P,0),function(){for(var we=arguments,et=-1,pt=qo(we.length-P,0),Ft=Cn(pt);++et<pt;)Ft[et]=we[P+et];et=-1;for(var $t=Cn(P+1);++et<P;)$t[et]=we[et];return $t[P]=$(Ft),Cs(M,this,$t)}}function gi(M,P){return P.length<2?M:gu(M,Jt(P,0,-1))}function _i(M,P){for(var $=M.length,we=ha(P.length,$),et=Mo(M);we--;){var pt=P[we];M[we]=T(pt,$)?et[pt]:t}return M}function yi(M,P){if(!(P==="constructor"&&typeof M[P]=="function")&&P!="__proto__")return M[P]}var Pi=Er(Ot),ur=Kd||function(M,P){return Ui.setTimeout(M,P)},Vi=Er(Ht);function to(M,P,$){var we=P+"";return Vi(M,d(we,ws(Ys(we),$)))}function Er(M){var P=0,$=0;return function(){var we=YA(),et=be-(we-$);if($=we,et>0){if(++P>=Me)return arguments[0]}else P=0;return M.apply(t,arguments)}}function As(M,P){var $=-1,we=M.length,et=we-1;for(P=P===t?we:P;++$<P;){var pt=ht($,et),Ft=M[pt];M[pt]=M[$],M[$]=Ft}return M.length=P,M}var ma=en(function(M){var P=[];return M.charCodeAt(0)===46&&P.push(""),M.replace(Ii,function($,we,et,pt){P.push(et?pt.replace(cr,"$1"):we||$)}),P});function Vr(M){if(typeof M=="string"||hA(M))return M;var P=M+"";return P=="0"&&1/M==-ot?"-0":P}function Ms(M){if(M!=null){try{return Pl.call(M)}catch{}try{return M+""}catch{}}return""}function ws(M,P){return za(Et,function($){var we="_."+$[0];P&$[1]&&!wh(M,we)&&M.push(we)}),M.sort()}function ga(M){if(M instanceof Cr)return M.clone();var P=new na(M.__wrapped__,M.__chain__);return P.__actions__=Mo(M.__actions__),P.__index__=M.__index__,P.__values__=M.__values__,P}function nu(M,P,$){($?I(M,P,$):P===t)?P=1:P=qo(ao(P),0);var we=M==null?0:M.length;if(!we||P<1)return[];for(var et=0,pt=0,Ft=Cn(rh(we/P));et<we;)Ft[pt++]=Jt(M,et,et+=P);return Ft}function Ps(M){for(var P=-1,$=M==null?0:M.length,we=0,et=[];++P<$;){var pt=M[P];pt&&(et[we++]=pt)}return et}function qs(){var M=arguments.length;if(!M)return[];for(var P=Cn(M-1),$=arguments[0],we=M;we--;)P[we-1]=arguments[we];return hc($r($)?Mo($):[$],Lr(P,1))}var kr=Ct(function(M,P){return Tl(M)?Lo(M,Lr(P,1,Tl,!0)):[]}),ka=Ct(function(M,P){var $=DA(P);return Tl($)&&($=t),Tl(M)?Lo(M,Lr(P,1,Tl,!0),yr($,2)):[]}),iu=Ct(function(M,P){var $=DA(P);return Tl($)&&($=t),Tl(M)?Lo(M,Lr(P,1,Tl,!0),t,$):[]});function xc(M,P,$){var we=M==null?0:M.length;return we?(P=$||P===t?1:ao(P),Jt(M,P<0?0:P,we)):[]}function bu(M,P,$){var we=M==null?0:M.length;return we?(P=$||P===t?1:ao(P),P=we-P,Jt(M,0,P<0?0:P)):[]}function dh(M,P){return M&&M.length?jo(M,yr(P,3),!0,!0):[]}function gs(M,P){return M&&M.length?jo(M,yr(P,3),!0):[]}function kA(M,P,$,we){var et=M==null?0:M.length;return et?($&&typeof $!="number"&&I(M,P,$)&&($=0,we=et),oo(M,P,$,we)):[]}function Ol(M,P,$){var we=M==null?0:M.length;if(!we)return-1;var et=$==null?0:ao($);return et<0&&(et=qo(we+et,0)),nA(M,yr(P,3),et)}function Mc(M,P,$){var we=M==null?0:M.length;if(!we)return-1;var et=we-1;return $!==t&&(et=ao($),et=$<0?qo(we+et,0):ha(et,we-1)),nA(M,yr(P,3),et,!0)}function hl(M){var P=M==null?0:M.length;return P?Lr(M,1):[]}function xu(M){var P=M==null?0:M.length;return P?Lr(M,ot):[]}function ic(M,P){var $=M==null?0:M.length;return $?(P=P===t?1:ao(P),Lr(M,P)):[]}function fd(M){for(var P=-1,$=M==null?0:M.length,we={};++P<$;){var et=M[P];we[et[0]]=et[1]}return we}function xf(M){return M&&M.length?M[0]:t}function u1(M,P,$){var we=M==null?0:M.length;if(!we)return-1;var et=$==null?0:ao($);return et<0&&(e
Line truncated
|
||||
`;M.replace(Wi,function(lo,Pa,Ja,Of,vd,If){return Ja||(Ja=Of),ci+=M.slice(Hn,If).replace(Rl,iA),Pa&&($t=!0,ci+=`' +
|
||||
__e(`+Pa+`) +
|
||||
'`),vd&&(ln=!0,ci+=`';
|
||||
@@ -77,8 +77,8 @@ __p += '`),Ja&&(ci+=`' +
|
||||
function print() { __p += __j.call(arguments, '') }
|
||||
`:`;
|
||||
`)+ci+`return __p
|
||||
}`;var ya=se(function(){return ko(pt,Br+"return "+ci).apply(t,Ft)});if(ya.source=ci,al(ya))throw ya;return ya}function yl(M){return Na(M).toLowerCase()}function Xa(M){return Na(M).toUpperCase()}function Nh(M,P,$){if(M=Na(M),M&&($||P===t))return Vf(M);if(!M||!(P=wi(P)))return M;var we=Tu(M),et=Tu(P),pt=du(we,et),Ft=kc(we,et)+1;return Rs(we,pt,Ft).join("")}function Zm(M,P,$){if(M=Na(M),M&&($||P===t))return M.slice(0,WA(M)+1);if(!M||!(P=wi(P)))return M;var we=Tu(M),et=kc(we,Tu(P))+1;return Rs(we,0,et).join("")}function Vc(M,P,$){if(M=Na(M),M&&($||P===t))return M.replace(qi,"");if(!M||!(P=wi(P)))return M;var we=Tu(M),et=du(we,Tu(P));return Rs(we,et).join("")}function A(M,P){var $=ve,we=_e;if(dl(P)){var et="separator"in P?P.separator:et;$="length"in P?ao(P.length):$,we="omission"in P?wi(P.omission):we}M=Na(M);var pt=M.length;if(Dc(M)){var Ft=Tu(M);pt=Ft.length}if($>=pt)return M;var $t=$-fc(we);if($t<1)return we;var ln=Ft?Rs(Ft,0,$t).join(""):M.slice(0,$t);if(et===t)return ln+we;if(Ft&&($t+=ln.length-$t),Zp(et)){if(M.slice($t).search(et)){var Hn,Xn=ln;for(et.global||(et=ih(et.source,Na(br.exec(et))+"g")),et.lastIndex=0;Hn=et.exec(Xn);)var ci=Hn.index;ln=ln.slice(0,ci===t?$t:ci)}}else if(M.indexOf(wi(et),$t)!=$t){var Wi=ln.lastIndexOf(et);Wi>-1&&(ln=ln.slice(0,Wi))}return ln+we}function m(M){return M=Na(M),M&&tn.test(M)?M.replace(kt,To):M}var x=Za(function(M,P,$){return M+($?" ":"")+P.toUpperCase()}),D=uA("toUpperCase");function Y(M,P,$){return M=Na(M),P=$?t:P,P===t?td(M)?zp(M):Yf(M):M.match(P)||[]}var se=Ct(function(M,P){try{return Cs(M,t,P)}catch($){return al($)?$:new Or($)}}),Ye=ms(function(M,P){return za(P,function($){$=Vr($),wA(M,$,rc(M[$],M))}),M});function st(M){var P=M==null?0:M.length,$=yr();return M=P?go(M,function(we){if(typeof we[1]!="function")throw new fu(s);return[$(we[0]),we[1]]}):[],Ct(function(we){for(var et=-1;++et<P;){var pt=M[et];if(Cs(pt[0],this,we))return Cs(pt[1],this,we)}})}function jt(M){return Np(Sl(M,E))}function dn(M){return function(){return M}}function Dn(M,P){return M==null||M!==M?P:M}var Nn=TA(),mn=TA(!0);function pn(M){return M}function Fr(M){return k(typeof M=="function"?M:Sl(M,E))}function zr(M){return R(Sl(M,E))}function Bs(M,P){return j(M,Sl(P,E))}var nn=Ct(function(M,P){return function($){return EA($,M,P)}}),Zt=Ct(function(M,P){return function($){return EA(M,$,P)}});function cn(M,P,$){var we=ae(P),et=zu(P,we);$==null&&!(dl(P)&&(et.length||!we.length))&&($=P,P=M,M=this,et=zu(P,ae(P)));var pt=!(dl($)&&"chain"in $)||!!$.chain,Ft=jh(M);return za(et,function($t){var ln=P[$t];M[$t]=ln,Ft&&(M.prototype[$t]=function(){var Hn=this.__chain__;if(pt||Hn){var Xn=M(this.__wrapped__),ci=Xn.__actions__=Mo(this.__actions__);return ci.push({func:ln,args:arguments,thisArg:M}),Xn.__chain__=Hn,Xn}return ln.apply(M,hc([this.value()],arguments))})}),M}function Ln(){return Ui._===this&&(Ui._=Ts),this}function ar(){}function $o(M){return M=ao(M),Ct(function(P){return fe(P,M)})}var or=np(go),Dr=np(NA),Yu=np(Sh);function Ra(M){return F(M)?Zh(Vr(M)):Ne(M)}function _p(M){return function(P){return M==null?t:gu(M,P)}}var LC=bc(),wc=bc(!0);function Ch(){return[]}function nm(){return!1}function Bf(){return{}}function z0(){return""}function bp(){return!0}function bY(M,P){if(M=ao(M),M<1||M>mt)return[];var $=We,we=ha(M,We);P=yr(P),M-=We;for(var et=Bh(we,P);++$<M;)P($);return et}function xY(M){return $r(M)?go(M,Vr):hA(M)?[M]:Mo(ma(Na(M)))}function MY(M){var P=++_A;return Na(M)+P}var wY=hd(function(M,P){return M+P},0),SY=rp("ceil"),EY=hd(function(M,P){return M/P},1),BY=rp("floor");function OY(M){return M&&M.length?SA(M,pn,Xl):t}function IY(M,P){return M&&M.length?SA(M,yr(P,2),Xl):t}function TY(M){return Td(M,pn)}function kY(M,P){return Td(M,yr(P,2))}function DY(M){return M&&M.length?SA(M,pn,b):t}function RY(M,P){return M&&M.length?SA(M,yr(P,2),b):t}var PY=hd(function(M,P){return M*P},1),UY=rp("round"),KY=hd(function(M,P){return M-P},0);function LY(M){return M&&M.length?Eh(M,pn):0}function FY(M,P){return M&&M.length?Eh(M,yr(P,2)):0}return at.after=DC,at.ary=C1,at.assign=T1,at.assignIn=Mg,at.assignInWith=K0,at.assignWith=L0,at.at=k1,at.before=Wm,at.bind=rc,at.bindAll=Ye,at.bindKey=pd,at.castArray=PC,at.chain=fp,at.chunk=nu,at.compact=Ps,at.concat=qs,at.cond=st,at.conforms=jt,at.constant=dn,at.countBy=zm,at.create=Yy,at.curry=Qm,at.curryRight=Ym,at.debounce=vp,at.defaults=D1,at.defaultsDeep=F0,at.defer=gh,at.delay=Yp,at.difference=kr,at.differenceBy=ka,at.differenceWith=iu,at.drop=xc,at.dropRight=bu,at.dropRightWhile=dh,at.dropWhile=gs,at.fill=kA,at.filter=ky,at.flatMap=B0,at.flatMapDeep=Ry,at.flatMapDepth=gp,at.flatten=hl,at.flattenDeep=xu,at.flattenDepth=ic,at.flip=RC,at.flow=Nn,at.flowRight=mn,at.fromPairs=fd,at.functions=u,at.functionsIn=c,at.groupBy=O0,at.initial=A1,at.intersection=Gd,at.intersectionBy=Qp,at.intersectionWith=Dm,at.invert=K,at.invertBy=N,at.invokeMap=mg,at.iteratee=Fr,at.keyBy=Py,at.keys=ae,at.keysIn=ce,at.map=Nm,at.mapKeys=xe,at.mapValues=Le,at.matches=zr,at.matchesProperty=Bs,at.memoize=qp,at
Line truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(E[1])} }\`.`)];const O=[];return n.layerType==="symbol"&&(a==="text-field"&&r&&!r.glyphs&&O.push(new bi(t,s,'use of "text-field" requires a style "glyphs" property')),a==="text-font"&&mC(ly(s))&&mA(s.type)==="identity"&&O.push(new bi(t,s,'"text-font" does not support identity functions'))),O.concat(i({key:n.key,value:s,valueSpec:_,style:r,styleSpec:o,expressionContext:"property",propertyType:e,propertyKey:a}))}function Jz(n){return Xz(n,"paint")}function ej(n){return Xz(n,"layout")}function tj(n){let e=[];const t=n.value,i=n.key,r=n.style,o=n.styleSpec;if(Ca(t)!=="object")return[new bi(i,t,`object expected, ${Ca(t)} found`)];!t.type&&!t.ref&&e.push(new bi(i,t,'either "type" or "ref" is required'));let s=mA(t.type);const a=mA(t.ref);if(t.id){const p=mA(t.id);for(let g=0;g<n.arrayIndex;g++){const _=r.layers[g];mA(_.id)===p&&e.push(new bi(i,t.id,`duplicate layer id "${t.id}", previously used at line ${_.id.__line__}`))}}if("ref"in t){["type","source","source-layer","filter","layout"].forEach(g=>{g in t&&e.push(new bi(i,t[g],`"${g}" is prohibited for ref layers`))});let p;r.layers.forEach(g=>{mA(g.id)===a&&(p=g)}),p?p.ref?e.push(new bi(i,t.ref,"ref cannot reference another ref layer")):s=mA(p.type):e.push(new bi(i,t.ref,`ref layer "${a}" not found`))}else if(s!=="background")if(!t.source)e.push(new bi(i,t,'missing required property "source"'));else{const p=r.sources&&r.sources[t.source],g=p&&mA(p.type);p?g==="vector"&&s==="raster"?e.push(new bi(i,t.source,`layer "${t.id}" requires a raster source`)):g!=="raster-dem"&&s==="hillshade"?e.push(new bi(i,t.source,`layer "${t.id}" requires a raster-dem source`)):g!=="raster-dem"&&s==="color-relief"?e.push(new bi(i,t.source,`layer "${t.id}" requires a raster-dem source`)):g==="raster"&&s!=="raster"?e.push(new bi(i,t.source,`layer "${t.id}" requires a vector source`)):g==="vector"&&!t["source-layer"]?e.push(new bi(i,t,`layer "${t.id}" must specify a "source-layer"`)):g==="raster-dem"&&s!=="hillshade"&&s!=="color-relief"?e.push(new bi(i,t.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):s==="line"&&t.paint&&t.paint["line-gradient"]&&(g!=="geojson"||!p.lineMetrics)&&e.push(new bi(i,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new bi(i,t.source,`source "${t.source}" not found`))}return e=e.concat(Tp({key:i,value:t,valueSpec:o.layer,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,objectElementValidators:{"*"(){return[]},type(){return n.validateSpec({key:`${i}.type`,value:t.type,valueSpec:o.layer.type,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,object:t,objectKey:"type"})},filter:C8,layout(p){return Tp({layer:t,key:p.key,value:p.value,style:p.style,styleSpec:p.styleSpec,validateSpec:p.validateSpec,objectElementValidators:{"*"(g){return ej(Jv({layerType:s},g))}}})},paint(p){return Tp({layer:t,key:p.key,value:p.value,style:p.style,styleSpec:p.styleSpec,validateSpec:p.validateSpec,objectElementValidators:{"*"(g){return Jz(Jv({layerType:s},g))}}})}}})),e}function uy(n){const e=n.value,t=n.key,i=Ca(e);return i!=="string"?[new bi(t,e,`string expected, ${i} found`)]:[]}function KZ(n){var e;const t=(e=n.sourceName)!==null&&e!==void 0?e:"",i=n.value,r=n.styleSpec,o=r.source_raster_dem,s=n.style;let a=[];const p=Ca(i);if(i===void 0)return a;if(p!=="object")return a.push(new bi("source_raster_dem",i,`object expected, ${p} found`)),a;const _=mA(i.encoding)==="custom",E=["redFactor","greenFactor","blueFactor","baseShift"],O=n.value.encoding?`"${n.value.encoding}"`:"Default";for(const B in i)!_&&E.includes(B)?a.push(new bi(B,i[B],`In "${t}": "${B}" is only valid when "encoding" is set to "custom". ${O} encoding found`)):o[B]?a=a.concat(n.validateSpec({key:B,value:i[B],valueSpec:o[B],validateSpec:n.validateSpec,style:s,styleSpec:r})):a.push(new bi(B,i[B],`unknown property "${B}"`));return a}const V9={promoteId:LZ};function nj(n){const e=n.value,t=n.key,i=n.styleSpec,r=n.style,o=n.validateSpec;if(!e.type)return[new bi(t,e,'"type" is required')];const s=mA(e.type);let a;switch(s){case"vector":case"raster":return a=Tp({key:t,value:e,valueSpec:i[`source_${s.replace("-","_")}`],style:n.style,styleSpec:i,objectElementValidators:V9,validateSpec:o}),a;case"raster-dem":return a=KZ({sourceName:t,value:e,style:n.style,styleSpec:i,validateSpec:o}),a;case"geojson":if(a=Tp({key:t,value:e,valueSpec:i.source_geojson,style:r,styleSpec:i,validateSpec:o,objectElementValidators:V9}),e.cluster)for(const p in e.clusterProperties){const[g,_]=e.clusterProperties[p],E=typeof g=="string"?[g,["accumulated"],["get",p]]:g;a.push(...nC({key:`${t}.${p}.map`,value:_,expressionContext:"cluster-map"})),a.push(...nC({key:`${t}.${p}.reduce`,value:E,expressionContext:"cluster-reduce"}))}return a;case"video":return Tp({key:t,value:e,valueSpec:i.source_video,style:r,validateSpec:o,sLine truncated
|
||||
}`;var ya=se(function(){return ko(pt,Br+"return "+ci).apply(t,Ft)});if(ya.source=ci,al(ya))throw ya;return ya}function yl(M){return Na(M).toLowerCase()}function Xa(M){return Na(M).toUpperCase()}function Nh(M,P,$){if(M=Na(M),M&&($||P===t))return Vf(M);if(!M||!(P=wi(P)))return M;var we=Tu(M),et=Tu(P),pt=du(we,et),Ft=kc(we,et)+1;return Rs(we,pt,Ft).join("")}function Xm(M,P,$){if(M=Na(M),M&&($||P===t))return M.slice(0,WA(M)+1);if(!M||!(P=wi(P)))return M;var we=Tu(M),et=kc(we,Tu(P))+1;return Rs(we,0,et).join("")}function Vc(M,P,$){if(M=Na(M),M&&($||P===t))return M.replace(qi,"");if(!M||!(P=wi(P)))return M;var we=Tu(M),et=du(we,Tu(P));return Rs(we,et).join("")}function A(M,P){var $=ve,we=_e;if(dl(P)){var et="separator"in P?P.separator:et;$="length"in P?ao(P.length):$,we="omission"in P?wi(P.omission):we}M=Na(M);var pt=M.length;if(Dc(M)){var Ft=Tu(M);pt=Ft.length}if($>=pt)return M;var $t=$-fc(we);if($t<1)return we;var ln=Ft?Rs(Ft,0,$t).join(""):M.slice(0,$t);if(et===t)return ln+we;if(Ft&&($t+=ln.length-$t),Zp(et)){if(M.slice($t).search(et)){var Hn,Xn=ln;for(et.global||(et=ih(et.source,Na(br.exec(et))+"g")),et.lastIndex=0;Hn=et.exec(Xn);)var ci=Hn.index;ln=ln.slice(0,ci===t?$t:ci)}}else if(M.indexOf(wi(et),$t)!=$t){var Wi=ln.lastIndexOf(et);Wi>-1&&(ln=ln.slice(0,Wi))}return ln+we}function m(M){return M=Na(M),M&&tn.test(M)?M.replace(kt,To):M}var x=Za(function(M,P,$){return M+($?" ":"")+P.toUpperCase()}),D=uA("toUpperCase");function Y(M,P,$){return M=Na(M),P=$?t:P,P===t?td(M)?zp(M):Yf(M):M.match(P)||[]}var se=Ct(function(M,P){try{return Cs(M,t,P)}catch($){return al($)?$:new Or($)}}),Ye=ms(function(M,P){return za(P,function($){$=Vr($),wA(M,$,rc(M[$],M))}),M});function st(M){var P=M==null?0:M.length,$=yr();return M=P?go(M,function(we){if(typeof we[1]!="function")throw new fu(s);return[$(we[0]),we[1]]}):[],Ct(function(we){for(var et=-1;++et<P;){var pt=M[et];if(Cs(pt[0],this,we))return Cs(pt[1],this,we)}})}function jt(M){return Np(Sl(M,E))}function dn(M){return function(){return M}}function Dn(M,P){return M==null||M!==M?P:M}var Nn=TA(),mn=TA(!0);function pn(M){return M}function Fr(M){return k(typeof M=="function"?M:Sl(M,E))}function zr(M){return R(Sl(M,E))}function Bs(M,P){return j(M,Sl(P,E))}var nn=Ct(function(M,P){return function($){return EA($,M,P)}}),Zt=Ct(function(M,P){return function($){return EA(M,$,P)}});function cn(M,P,$){var we=ae(P),et=zu(P,we);$==null&&!(dl(P)&&(et.length||!we.length))&&($=P,P=M,M=this,et=zu(P,ae(P)));var pt=!(dl($)&&"chain"in $)||!!$.chain,Ft=jh(M);return za(et,function($t){var ln=P[$t];M[$t]=ln,Ft&&(M.prototype[$t]=function(){var Hn=this.__chain__;if(pt||Hn){var Xn=M(this.__wrapped__),ci=Xn.__actions__=Mo(this.__actions__);return ci.push({func:ln,args:arguments,thisArg:M}),Xn.__chain__=Hn,Xn}return ln.apply(M,hc([this.value()],arguments))})}),M}function Ln(){return Ui._===this&&(Ui._=Ts),this}function ar(){}function $o(M){return M=ao(M),Ct(function(P){return fe(P,M)})}var or=np(go),Dr=np(NA),Yu=np(Sh);function Ra(M){return F(M)?Zh(Vr(M)):Ne(M)}function _p(M){return function(P){return M==null?t:gu(M,P)}}var LC=bc(),wc=bc(!0);function Ch(){return[]}function nm(){return!1}function Bf(){return{}}function z0(){return""}function bp(){return!0}function bY(M,P){if(M=ao(M),M<1||M>mt)return[];var $=We,we=ha(M,We);P=yr(P),M-=We;for(var et=Bh(we,P);++$<M;)P($);return et}function xY(M){return $r(M)?go(M,Vr):hA(M)?[M]:Mo(ma(Na(M)))}function MY(M){var P=++_A;return Na(M)+P}var wY=hd(function(M,P){return M+P},0),SY=rp("ceil"),EY=hd(function(M,P){return M/P},1),BY=rp("floor");function OY(M){return M&&M.length?SA(M,pn,Xl):t}function IY(M,P){return M&&M.length?SA(M,yr(P,2),Xl):t}function TY(M){return Td(M,pn)}function kY(M,P){return Td(M,yr(P,2))}function DY(M){return M&&M.length?SA(M,pn,b):t}function RY(M,P){return M&&M.length?SA(M,yr(P,2),b):t}var PY=hd(function(M,P){return M*P},1),UY=rp("round"),KY=hd(function(M,P){return M-P},0);function LY(M){return M&&M.length?Eh(M,pn):0}function FY(M,P){return M&&M.length?Eh(M,yr(P,2)):0}return at.after=DC,at.ary=C1,at.assign=T1,at.assignIn=Mg,at.assignInWith=K0,at.assignWith=L0,at.at=k1,at.before=Qm,at.bind=rc,at.bindAll=Ye,at.bindKey=pd,at.castArray=PC,at.chain=fp,at.chunk=nu,at.compact=Ps,at.concat=qs,at.cond=st,at.conforms=jt,at.constant=dn,at.countBy=jm,at.create=Yy,at.curry=Ym,at.curryRight=qm,at.debounce=vp,at.defaults=D1,at.defaultsDeep=F0,at.defer=gh,at.delay=Yp,at.difference=kr,at.differenceBy=ka,at.differenceWith=iu,at.drop=xc,at.dropRight=bu,at.dropRightWhile=dh,at.dropWhile=gs,at.fill=kA,at.filter=ky,at.flatMap=B0,at.flatMapDeep=Ry,at.flatMapDepth=gp,at.flatten=hl,at.flattenDeep=xu,at.flattenDepth=ic,at.flip=RC,at.flow=Nn,at.flowRight=mn,at.fromPairs=fd,at.functions=u,at.functionsIn=c,at.groupBy=O0,at.initial=A1,at.intersection=Gd,at.intersectionBy=Qp,at.intersectionWith=Rm,at.invert=K,at.invertBy=N,at.invokeMap=mg,at.iteratee=Fr,at.keyBy=Py,at.keys=ae,at.keysIn=ce,at.map=Gm,at.mapKeys=xe,at.mapValues=Le,at.matches=zr,at.matchesProperty=Bs,at.memoize=qp,at
Line truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(E[1])} }\`.`)];const O=[];return n.layerType==="symbol"&&(a==="text-field"&&r&&!r.glyphs&&O.push(new bi(t,s,'use of "text-field" requires a style "glyphs" property')),a==="text-font"&&mC(ly(s))&&mA(s.type)==="identity"&&O.push(new bi(t,s,'"text-font" does not support identity functions'))),O.concat(i({key:n.key,value:s,valueSpec:_,style:r,styleSpec:o,expressionContext:"property",propertyType:e,propertyKey:a}))}function Jz(n){return Xz(n,"paint")}function ej(n){return Xz(n,"layout")}function tj(n){let e=[];const t=n.value,i=n.key,r=n.style,o=n.styleSpec;if(Ca(t)!=="object")return[new bi(i,t,`object expected, ${Ca(t)} found`)];!t.type&&!t.ref&&e.push(new bi(i,t,'either "type" or "ref" is required'));let s=mA(t.type);const a=mA(t.ref);if(t.id){const p=mA(t.id);for(let g=0;g<n.arrayIndex;g++){const _=r.layers[g];mA(_.id)===p&&e.push(new bi(i,t.id,`duplicate layer id "${t.id}", previously used at line ${_.id.__line__}`))}}if("ref"in t){["type","source","source-layer","filter","layout"].forEach(g=>{g in t&&e.push(new bi(i,t[g],`"${g}" is prohibited for ref layers`))});let p;r.layers.forEach(g=>{mA(g.id)===a&&(p=g)}),p?p.ref?e.push(new bi(i,t.ref,"ref cannot reference another ref layer")):s=mA(p.type):e.push(new bi(i,t.ref,`ref layer "${a}" not found`))}else if(s!=="background")if(!t.source)e.push(new bi(i,t,'missing required property "source"'));else{const p=r.sources&&r.sources[t.source],g=p&&mA(p.type);p?g==="vector"&&s==="raster"?e.push(new bi(i,t.source,`layer "${t.id}" requires a raster source`)):g!=="raster-dem"&&s==="hillshade"?e.push(new bi(i,t.source,`layer "${t.id}" requires a raster-dem source`)):g!=="raster-dem"&&s==="color-relief"?e.push(new bi(i,t.source,`layer "${t.id}" requires a raster-dem source`)):g==="raster"&&s!=="raster"?e.push(new bi(i,t.source,`layer "${t.id}" requires a vector source`)):g==="vector"&&!t["source-layer"]?e.push(new bi(i,t,`layer "${t.id}" must specify a "source-layer"`)):g==="raster-dem"&&s!=="hillshade"&&s!=="color-relief"?e.push(new bi(i,t.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):s==="line"&&t.paint&&t.paint["line-gradient"]&&(g!=="geojson"||!p.lineMetrics)&&e.push(new bi(i,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new bi(i,t.source,`source "${t.source}" not found`))}return e=e.concat(Tp({key:i,value:t,valueSpec:o.layer,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,objectElementValidators:{"*"(){return[]},type(){return n.validateSpec({key:`${i}.type`,value:t.type,valueSpec:o.layer.type,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,object:t,objectKey:"type"})},filter:C8,layout(p){return Tp({layer:t,key:p.key,value:p.value,style:p.style,styleSpec:p.styleSpec,validateSpec:p.validateSpec,objectElementValidators:{"*"(g){return ej(Jv({layerType:s},g))}}})},paint(p){return Tp({layer:t,key:p.key,value:p.value,style:p.style,styleSpec:p.styleSpec,validateSpec:p.validateSpec,objectElementValidators:{"*"(g){return Jz(Jv({layerType:s},g))}}})}}})),e}function uy(n){const e=n.value,t=n.key,i=Ca(e);return i!=="string"?[new bi(t,e,`string expected, ${i} found`)]:[]}function KZ(n){var e;const t=(e=n.sourceName)!==null&&e!==void 0?e:"",i=n.value,r=n.styleSpec,o=r.source_raster_dem,s=n.style;let a=[];const p=Ca(i);if(i===void 0)return a;if(p!=="object")return a.push(new bi("source_raster_dem",i,`object expected, ${p} found`)),a;const _=mA(i.encoding)==="custom",E=["redFactor","greenFactor","blueFactor","baseShift"],O=n.value.encoding?`"${n.value.encoding}"`:"Default";for(const B in i)!_&&E.includes(B)?a.push(new bi(B,i[B],`In "${t}": "${B}" is only valid when "encoding" is set to "custom". ${O} encoding found`)):o[B]?a=a.concat(n.validateSpec({key:B,value:i[B],valueSpec:o[B],validateSpec:n.validateSpec,style:s,styleSpec:r})):a.push(new bi(B,i[B],`unknown property "${B}"`));return a}const V9={promoteId:LZ};function nj(n){const e=n.value,t=n.key,i=n.styleSpec,r=n.style,o=n.validateSpec;if(!e.type)return[new bi(t,e,'"type" is required')];const s=mA(e.type);let a;switch(s){case"vector":case"raster":return a=Tp({key:t,value:e,valueSpec:i[`source_${s.replace("-","_")}`],style:n.style,styleSpec:i,objectElementValidators:V9,validateSpec:o}),a;case"raster-dem":return a=KZ({sourceName:t,value:e,style:n.style,styleSpec:i,validateSpec:o}),a;case"geojson":if(a=Tp({key:t,value:e,valueSpec:i.source_geojson,style:r,styleSpec:i,validateSpec:o,objectElementValidators:V9}),e.cluster)for(const p in e.clusterProperties){const[g,_]=e.clusterProperties[p],E=typeof g=="string"?[g,["accumulated"],["get",p]]:g;a.push(...nC({key:`${t}.${p}.map`,value:_,expressionContext:"cluster-map"})),a.push(...nC({key:`${t}.${p}.reduce`,value:E,expressionContext:"cluster-reduce"}))}return a;case"video":return Tp({key:t,value:e,valueSpec:i.source_video,style:r,validateSpec:o,sLine truncated
|
||||
${E}`),G].join(`
|
||||
${a}`)}return g}(n,"",0)}function Z9(n,e){const t={};for(const i in e)n[i]!==void 0&&(t[i]=n[i]);for(const i in n)t[i]===void 0&&(t[i]=n[i]);return t}function XZ(n,e=2){return n=Z9(n,ts.$root),n.layers&&(n.layers=n.layers.map(t=>Z9(t,ts.layer))),ZZ(n,{indent:e})}function g5(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function X9(n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function BB(n,e){return typeof e=="string"&&e[0]==="@"?BB(n,n.constants[e]):e}function JZ(n){return Array.isArray(n.stops)}function GC(n,e,t){n[t]=n[e],delete n[e]}function eX(n){n.version=8,PZ(n,r=>{r.type==="video"&&r.url!==void 0&&GC(r,"url","urls"),r.type==="video"&&r.coordinates.forEach(o=>o.reverse())}),T_(n,r=>{g5(r,o=>{o["symbol-min-distance"]!==void 0&&GC(o,"symbol-min-distance","symbol-spacing")}),X9(r,o=>{o["background-image"]!==void 0&&GC(o,"background-image","background-pattern"),o["line-image"]!==void 0&&GC(o,"line-image","line-pattern"),o["fill-image"]!==void 0&&GC(o,"fill-image","fill-pattern")})}),y8(n,{paint:!0,layout:!0},r=>{const o=BB(n,r.value);JZ(o)&&o.stops.forEach(s=>{s[1]=BB(n,s[1])}),r.set(o)}),delete n.constants,T_(n,r=>{g5(r,o=>{delete o["text-max-size"],delete o["icon-max-size"]}),X9(r,o=>{o["text-size"]&&(r.layout||(r.layout={}),r.layout["text-size"]=o["text-size"],delete o["text-size"]),o["icon-size"]&&(r.layout||(r.layout={}),r.layout["icon-size"]=o["icon-size"],delete o["icon-size"])})});function e(r){function o(s){return s.split(",").map(a=>a.trim())}if(Array.isArray(r))return r;if(typeof r=="string")return o(r);if(typeof r=="object")return r.stops.forEach(s=>{s[1]=o(s[1])}),r;throw new Error("unexpected font value")}T_(n,r=>{g5(r,o=>{o["text-font"]&&(o["text-font"]=e(o["text-font"]))})});let t=0;for(let r=n.layers.length-1;r>=0;r--)if(n.layers[r].type!=="symbol"){t=r+1;break}const i=n.layers.splice(t);return i.reverse(),n.layers=n.layers.concat(i),n}function tX(n){const e=[];return T_(n,t=>{t.filter&&(t.filter=I_(t.filter))}),y8(n,{paint:!0,layout:!0},({path:t,value:i,reference:r,set:o})=>{gC(i)||(typeof i=="object"&&!Array.isArray(i)?(o(f8(i,r)),e.push(t.join("."))):r.tokens&&typeof i=="string"&&o(Hz(i)))}),n}function nX(n){return JSON.parse(iX(JSON.stringify(n)))}function iX(n){return n.replace(/"hsla?\((.+?)\)"/gi,(e,t)=>{const i=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(i){let[r,o,s,a]=i.slice(1);return[o,s]=[o,s].map(p=>p.endsWith("%")?p:`${parseFloat(p)*100}%`),`"hsl${typeof a=="string"?"a":""}(${[r,o,s,a].filter(Boolean).join(",")})"`}return e})}function rX(n){let e=!1;if(n.version===7&&(n=eX(n),e=!0),n.version===8&&(e=!!tX(n),e=!0),y8(n,{paint:!0,layout:!0},({value:t,reference:i,set:r})=>{i.type==="color"&&r(nX(t))}),!e)throw new Error(`Cannot migrate from ${n.version}`);return n}const Kf=ts,oX={StyleExpression:Yz,StylePropertyFunction:F2,ZoomConstantExpression:MB,ZoomDependentExpression:wB,createExpression:K2,createPropertyExpression:L2,isExpression:gC,isExpressionFilter:Gb,isZoomExpression:CZ,normalizePropertyExpression:_Z},aX={convertFunction:f8,createFunction:d8,isFunction:mC},sX=8,lX={version:{required:!0,type:"enum",values:[8],doc:"Style specification version number. Must be 8.",example:8},name:{type:"string",doc:"A human-readable name for the style.",example:"Bright"},metadata:{type:"*",doc:"Arbitrary properties useful to track with the stylesheet, but do not influence rendering. Properties should be prefixed to avoid collisions, like 'maplibre:'.",example:{"styleeditor:slimmode":!0,"styleeditor:comment":"Style generated 1677776383","styleeditor:version":"3.14.159265","example:object":{String:"one",Number:2,Boolean:!1}}},center:{type:"array",value:"number",doc:"Default map center in longitude and latitude. The style center will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:[-73.9749,40.7736]},centerAltitude:{type:"number",doc:"Default map center altitude in meters above sea level. The style center altitude defines the altitude where the camera is looking at and will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:123.4,"sdk-support":{"basic functionality":{js:"5.0.0",android:"https://github.com/maplibre/maplibre-native/issues/2980",ios:"https://github.com/maplibre/maplibre-native/issues/2980"}}},zoom:{type:"number",doc:"Default zoom level. The style zoom will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:12.5},bearing:{type:"number",default:0,period:360,units:"degrees",doc:'Default bearing, in degrees. The bearing is the compass direction that is "up"; for example, a bearing of 90° orients the map so that east is up. This value will be used only if the map has not been positioned by other means (e.g. map options or user interaction).',example:29},pitch:{type:"number",default:0,units:"degrees",doc:"Default pitch, in degrees. Zero is perpendicular to
Line truncated
|
||||
|
||||
@@ -93,8 +93,8 @@ ${a}`)}return g}(n,"",0)}function Z9(n,e){const t={};for(const i in e)n[i]!==voi
|
||||
If no default is provided, the style property's default is used in these circumstances.`}},function_stop:IX,expression:TX,expression_name:kX,light:DX,sky:RX,terrain:PX,projection:UX,paint:KX,paint_fill:LX,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",doc:"The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{doc:"The fill extrusion is translated relative to the map."},viewport:{doc:"The fill extrusion is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-extrusion-translate`.",default:"map",requires:["fill-extrusion-translate"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude this layer.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.",transition:!0,requires:["fill-extrusion-height"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,doc:"Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.",transition:!1,"sdk-support":{"basic functionality":{js:"0.50.0",ios:"4.7.0",android:"7.0.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:FX,paint_circle:zX,paint_heatmap:jX,paint_symbol:NX,paint_raster:GX,paint_hillshade:WX,"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity at which the color-relief will be drawn.",transition:!0,"sdk-support":{"basic functionality":{js:"https://github.com/maplibre/maplibre-gl-js/issues/5666",android:"https://github.com/maplibre/maplibre-native/issues/3408",ios:"https://github.com/maplibre/maplibre-native/issues/3408"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",doc:'Defines the color of each pixel based on its elevation. Should be an expression that uses `["elevation"]` as input.',example:["interpolate",["linear"],["elevation"],0,"black",8849,"white"],transition:!1,"sdk-support":{"basic functionality":{js:"https://github.com/maplibre/maplibre-gl-js/issues/5666",android:"https://github.com/maplibre/maplibre-native/issues/3408",ios:"https://github.com/maplibre
Line truncated
|
||||
* MapLibre GL JS
|
||||
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v5.7.1/LICENSE.txt
|
||||
*/var HX=u3.exports,J9;function VX(){return J9||(J9=1,function(n,e){(function(t,i){n.exports=i()})(HX,function(){var t={},i={};function r(s,a,p){if(i[s]=p,s==="index"){var g="var sharedModule = {}; ("+i.shared+")(sharedModule); ("+i.worker+")(sharedModule);",_={};return i.shared(_),i.index(t,_),typeof window<"u"&&t.setWorkerUrl(window.URL.createObjectURL(new Blob([g],{type:"text/javascript"}))),t}}r("shared",["exports"],function(s){function a(h,u,c,v){return new(c||(c=Promise))(function(w,U){function K(ae){try{H(v.next(ae))}catch(ce){U(ce)}}function N(ae){try{H(v.throw(ae))}catch(ce){U(ce)}}function H(ae){var ce;ae.done?w(ae.value):(ce=ae.value,ce instanceof c?ce:new c(function(xe){xe(ce)})).then(K,N)}H((v=v.apply(h,u||[])).next())})}function p(h,u){this.x=h,this.y=u}function g(h){return h&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h}var _,E;typeof SuppressedError=="function"&&SuppressedError,p.prototype={clone(){return new p(this.x,this.y)},add(h){return this.clone()._add(h)},sub(h){return this.clone()._sub(h)},multByPoint(h){return this.clone()._multByPoint(h)},divByPoint(h){return this.clone()._divByPoint(h)},mult(h){return this.clone()._mult(h)},div(h){return this.clone()._div(h)},rotate(h){return this.clone()._rotate(h)},rotateAround(h,u){return this.clone()._rotateAround(h,u)},matMult(h){return this.clone()._matMult(h)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(h){return this.x===h.x&&this.y===h.y},dist(h){return Math.sqrt(this.distSqr(h))},distSqr(h){const u=h.x-this.x,c=h.y-this.y;return u*u+c*c},angle(){return Math.atan2(this.y,this.x)},angleTo(h){return Math.atan2(this.y-h.y,this.x-h.x)},angleWith(h){return this.angleWithSep(h.x,h.y)},angleWithSep(h,u){return Math.atan2(this.x*u-this.y*h,this.x*h+this.y*u)},_matMult(h){const u=h[2]*this.x+h[3]*this.y;return this.x=h[0]*this.x+h[1]*this.y,this.y=u,this},_add(h){return this.x+=h.x,this.y+=h.y,this},_sub(h){return this.x-=h.x,this.y-=h.y,this},_mult(h){return this.x*=h,this.y*=h,this},_div(h){return this.x/=h,this.y/=h,this},_multByPoint(h){return this.x*=h.x,this.y*=h.y,this},_divByPoint(h){return this.x/=h.x,this.y/=h.y,this},_unit(){return this._div(this.mag()),this},_perp(){const h=this.y;return this.y=this.x,this.x=-h,this},_rotate(h){const u=Math.cos(h),c=Math.sin(h),v=c*this.x+u*this.y;return this.x=u*this.x-c*this.y,this.y=v,this},_rotateAround(h,u){const c=Math.cos(h),v=Math.sin(h),w=u.y+v*(this.x-u.x)+c*(this.y-u.y);return this.x=u.x+c*(this.x-u.x)-v*(this.y-u.y),this.y=w,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:p},p.convert=function(h){if(h instanceof p)return h;if(Array.isArray(h))return new p(+h[0],+h[1]);if(h.x!==void 0&&h.y!==void 0)return new p(+h.x,+h.y);throw new Error("Expected [x, y] or {x, y} point format")};var O=function(){if(E)return _;function h(u,c,v,w){this.cx=3*u,this.bx=3*(v-u)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*c,this.by=3*(w-c)-this.cy,this.ay=1-this.cy-this.by,this.p1x=u,this.p1y=c,this.p2x=v,this.p2y=w}return E=1,_=h,h.prototype={sampleCurveX:function(u){return((this.ax*u+this.bx)*u+this.cx)*u},sampleCurveY:function(u){return((this.ay*u+this.by)*u+this.cy)*u},sampleCurveDerivativeX:function(u){return(3*this.ax*u+2*this.bx)*u+this.cx},solveCurveX:function(u,c){if(c===void 0&&(c=1e-6),u<0)return 0;if(u>1)return 1;for(var v=u,w=0;w<8;w++){var U=this.sampleCurveX(v)-u;if(Math.abs(U)<c)return v;var K=this.sampleCurveDerivativeX(v);if(Math.abs(K)<1e-6)break;v-=U/K}var N=0,H=1;for(v=u,w=0;w<20&&(U=this.sampleCurveX(v),!(Math.abs(U-u)<c));w++)u>U?N=v:H=v,v=.5*(H-N)+N;return v},solve:function(u,c){return this.sampleCurveY(this.solveCurveX(u,c))}},_}(),B=g(O);let z,G;function Q(){return z==null&&(z=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),z}function Z(){if(G==null&&(G=!1,Q())){const u=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(u){for(let v=0;v<5*5;v++){const w=4*v;u.fillStyle=`rgb(${w},${w+1},${w+2})`,u.fillRect(v%5,Math.floor(v/5),1,1)}const c=u.getImageData(0,0,5,5).data;for(let v=0;v<5*5*4;v++)if(v%4!=3&&c[v]!==v){G=!0;break}}}return G||!1}var X=1e-6,re=typeof Float32Array<"u"?Float32Array:Array;function ie(){var h=new re(9);return re!=Float32Array&&(h[1]=0,h[2]=0,h[3]=0,h[5]=0,h[6]=0,h[7]=0),h[0]=1,h[4]=1,h[8]=1,h}function V(h){return h[0]=1,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=1,h[6]=0,h[7]=0,h[8]=0,h[9]=0,h[10]=1,h[11]=0,h[12]=0,h[13]=0,h[14]=0,h[15]=1,h}function ee(){var h=new re(3);return re!=Float32Array&&(h[0]=0,h[1]=0,h[2]=0),h}function W(h){var u=h[0],c=h[1],v=h[2];return Math.sqrt(u*u+c*c+v*v)}function he(h,u,c){var v=new re(3);return v[0]=h,v[1]=u,v[2]=c,v}function ge(h,u,c){return h[0]=u[0]+c[0],h[1]=u[1]+c[1],h[2]=u[2]+c[2],h}function ve(h,u,c){return h[0]=u[0]*c,h[1]=u[1]*c,h[2]=u[2]*c,h}function _e(h,u,cLine truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(xe[1])} }\`.`)];const Le=[];return h.layerType==="symbol"&&(N==="text-field"&&w&&!w.glyphs&&Le.push(new Sn(c,K,'use of "text-field" requires a style "glyphs" property')),N==="text-font"&&mc(ul(K))&&_s(K.type)==="identity"&&Le.push(new Sn(c,K,'"text-font" does not support identity functions'))),Le.concat(v({key:h.key,value:K,valueSpec:ce,style:w,styleSpec:U,expressionContext:"property",propertyType:u,propertyKey:N}))}function bs(h){return Cr(h,"paint")}function lh(h){return Cr(h,"layout")}function Rh(h){let u=[];const c=h.value,v=h.key,w=h.style,U=h.styleSpec;if(Pr(c)!=="object")return[new Sn(v,c,`object expected, ${Pr(c)} found`)];c.type||c.ref||u.push(new Sn(v,c,'either "type" or "ref" is required'));let K=_s(c.type);const N=_s(c.ref);if(c.id){const H=_s(c.id);for(let ae=0;ae<h.arrayIndex;ae++){const ce=w.layers[ae];_s(ce.id)===H&&u.push(new Sn(v,c.id,`duplicate layer id "${c.id}", previously used at line ${ce.id.__line__}`))}}if("ref"in c){let H;["type","source","source-layer","filter","layout"].forEach(ae=>{ae in c&&u.push(new Sn(v,c[ae],`"${ae}" is prohibited for ref layers`))}),w.layers.forEach(ae=>{_s(ae.id)===N&&(H=ae)}),H?H.ref?u.push(new Sn(v,c.ref,"ref cannot reference another ref layer")):K=_s(H.type):u.push(new Sn(v,c.ref,`ref layer "${N}" not found`))}else if(K!=="background")if(c.source){const H=w.sources&&w.sources[c.source],ae=H&&_s(H.type);H?ae==="vector"&&K==="raster"?u.push(new Sn(v,c.source,`layer "${c.id}" requires a raster source`)):ae!=="raster-dem"&&K==="hillshade"||ae!=="raster-dem"&&K==="color-relief"?u.push(new Sn(v,c.source,`layer "${c.id}" requires a raster-dem source`)):ae==="raster"&&K!=="raster"?u.push(new Sn(v,c.source,`layer "${c.id}" requires a vector source`)):ae!=="vector"||c["source-layer"]?ae==="raster-dem"&&K!=="hillshade"&&K!=="color-relief"?u.push(new Sn(v,c.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):K!=="line"||!c.paint||!c.paint["line-gradient"]||ae==="geojson"&&H.lineMetrics||u.push(new Sn(v,c,`layer "${c.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):u.push(new Sn(v,c,`layer "${c.id}" must specify a "source-layer"`)):u.push(new Sn(v,c.source,`source "${c.source}" not found`))}else u.push(new Sn(v,c,'missing required property "source"'));return u=u.concat(Qs({key:v,value:c,valueSpec:U.layer,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*":()=>[],type:()=>h.validateSpec({key:`${v}.type`,value:c.type,valueSpec:U.layer.type,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,object:c,objectKey:"type"}),filter:Ha,layout:H=>Qs({layer:c,key:H.key,value:H.value,style:H.style,styleSpec:H.styleSpec,validateSpec:H.validateSpec,objectElementValidators:{"*":ae=>lh(co({layerType:K},ae))}}),paint:H=>Qs({layer:c,key:H.key,value:H.value,style:H.style,styleSpec:H.styleSpec,validateSpec:H.validateSpec,objectElementValidators:{"*":ae=>bs(co({layerType:K},ae))}})}})),u}function Ko(h){const u=h.value,c=h.key,v=Pr(u);return v!=="string"?[new Sn(c,u,`string expected, ${v} found`)]:[]}const uh={promoteId:function({key:h,value:u}){if(Pr(u)==="string")return Ko({key:h,value:u});{const c=[];for(const v in u)c.push(...Ko({key:`${h}.${v}`,value:u[v]}));return c}}};function Lu(h){const u=h.value,c=h.key,v=h.styleSpec,w=h.style,U=h.validateSpec;if(!u.type)return[new Sn(c,u,'"type" is required')];const K=_s(u.type);let N;switch(K){case"vector":case"raster":return N=Qs({key:c,value:u,valueSpec:v[`source_${K.replace("-","_")}`],style:h.style,styleSpec:v,objectElementValidators:uh,validateSpec:U}),N;case"raster-dem":return N=function(H){var ae;const ce=(ae=H.sourceName)!==null&&ae!==void 0?ae:"",xe=H.value,Le=H.styleSpec,qe=Le.source_raster_dem,$e=H.style;let nt=[];const ct=Pr(xe);if(xe===void 0)return nt;if(ct!=="object")return nt.push(new Sn("source_raster_dem",xe,`object expected, ${ct} found`)),nt;const wt=_s(xe.encoding)==="custom",qt=["redFactor","greenFactor","blueFactor","baseShift"],Dt=H.value.encoding?`"${H.value.encoding}"`:"Default";for(const Nt in xe)!wt&&qt.includes(Nt)?nt.push(new Sn(Nt,xe[Nt],`In "${ce}": "${Nt}" is only valid when "encoding" is set to "custom". ${Dt} encoding found`)):qe[Nt]?nt=nt.concat(H.validateSpec({key:Nt,value:xe[Nt],valueSpec:qe[Nt],validateSpec:H.validateSpec,style:$e,styleSpec:Le})):nt.push(new Sn(Nt,xe[Nt],`unknown property "${Nt}"`));return nt}({sourceName:c,value:u,style:h.style,styleSpec:v,validateSpec:U}),N;case"geojson":if(N=Qs({key:c,value:u,valueSpec:v.source_geojson,style:w,styleSpec:v,validateSpec:U,objectElementValidators:uh}),u.cluster)for(const H in u.clusterProperties){const[ae,ce]=u.clusterProperties[H],xe=typeof ae=="string"?[ae,["accumulated"],["get",H]]:ae;N.push(...sA({key:`${c}.${H}.map`,value:ce,expressionContext:"cluster-map"})),N.push(...sA({key:`${c}.${H}.reduce`,value:xe,expressionCLine truncated
|
||||
*/var HX=u3.exports,J9;function VX(){return J9||(J9=1,function(n,e){(function(t,i){n.exports=i()})(HX,function(){var t={},i={};function r(s,a,p){if(i[s]=p,s==="index"){var g="var sharedModule = {}; ("+i.shared+")(sharedModule); ("+i.worker+")(sharedModule);",_={};return i.shared(_),i.index(t,_),typeof window<"u"&&t.setWorkerUrl(window.URL.createObjectURL(new Blob([g],{type:"text/javascript"}))),t}}r("shared",["exports"],function(s){function a(h,u,c,v){return new(c||(c=Promise))(function(w,U){function K(ae){try{H(v.next(ae))}catch(ce){U(ce)}}function N(ae){try{H(v.throw(ae))}catch(ce){U(ce)}}function H(ae){var ce;ae.done?w(ae.value):(ce=ae.value,ce instanceof c?ce:new c(function(xe){xe(ce)})).then(K,N)}H((v=v.apply(h,u||[])).next())})}function p(h,u){this.x=h,this.y=u}function g(h){return h&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h}var _,E;typeof SuppressedError=="function"&&SuppressedError,p.prototype={clone(){return new p(this.x,this.y)},add(h){return this.clone()._add(h)},sub(h){return this.clone()._sub(h)},multByPoint(h){return this.clone()._multByPoint(h)},divByPoint(h){return this.clone()._divByPoint(h)},mult(h){return this.clone()._mult(h)},div(h){return this.clone()._div(h)},rotate(h){return this.clone()._rotate(h)},rotateAround(h,u){return this.clone()._rotateAround(h,u)},matMult(h){return this.clone()._matMult(h)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(h){return this.x===h.x&&this.y===h.y},dist(h){return Math.sqrt(this.distSqr(h))},distSqr(h){const u=h.x-this.x,c=h.y-this.y;return u*u+c*c},angle(){return Math.atan2(this.y,this.x)},angleTo(h){return Math.atan2(this.y-h.y,this.x-h.x)},angleWith(h){return this.angleWithSep(h.x,h.y)},angleWithSep(h,u){return Math.atan2(this.x*u-this.y*h,this.x*h+this.y*u)},_matMult(h){const u=h[2]*this.x+h[3]*this.y;return this.x=h[0]*this.x+h[1]*this.y,this.y=u,this},_add(h){return this.x+=h.x,this.y+=h.y,this},_sub(h){return this.x-=h.x,this.y-=h.y,this},_mult(h){return this.x*=h,this.y*=h,this},_div(h){return this.x/=h,this.y/=h,this},_multByPoint(h){return this.x*=h.x,this.y*=h.y,this},_divByPoint(h){return this.x/=h.x,this.y/=h.y,this},_unit(){return this._div(this.mag()),this},_perp(){const h=this.y;return this.y=this.x,this.x=-h,this},_rotate(h){const u=Math.cos(h),c=Math.sin(h),v=c*this.x+u*this.y;return this.x=u*this.x-c*this.y,this.y=v,this},_rotateAround(h,u){const c=Math.cos(h),v=Math.sin(h),w=u.y+v*(this.x-u.x)+c*(this.y-u.y);return this.x=u.x+c*(this.x-u.x)-v*(this.y-u.y),this.y=w,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:p},p.convert=function(h){if(h instanceof p)return h;if(Array.isArray(h))return new p(+h[0],+h[1]);if(h.x!==void 0&&h.y!==void 0)return new p(+h.x,+h.y);throw new Error("Expected [x, y] or {x, y} point format")};var O=function(){if(E)return _;function h(u,c,v,w){this.cx=3*u,this.bx=3*(v-u)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*c,this.by=3*(w-c)-this.cy,this.ay=1-this.cy-this.by,this.p1x=u,this.p1y=c,this.p2x=v,this.p2y=w}return E=1,_=h,h.prototype={sampleCurveX:function(u){return((this.ax*u+this.bx)*u+this.cx)*u},sampleCurveY:function(u){return((this.ay*u+this.by)*u+this.cy)*u},sampleCurveDerivativeX:function(u){return(3*this.ax*u+2*this.bx)*u+this.cx},solveCurveX:function(u,c){if(c===void 0&&(c=1e-6),u<0)return 0;if(u>1)return 1;for(var v=u,w=0;w<8;w++){var U=this.sampleCurveX(v)-u;if(Math.abs(U)<c)return v;var K=this.sampleCurveDerivativeX(v);if(Math.abs(K)<1e-6)break;v-=U/K}var N=0,H=1;for(v=u,w=0;w<20&&(U=this.sampleCurveX(v),!(Math.abs(U-u)<c));w++)u>U?N=v:H=v,v=.5*(H-N)+N;return v},solve:function(u,c){return this.sampleCurveY(this.solveCurveX(u,c))}},_}(),B=g(O);let z,G;function Q(){return z==null&&(z=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),z}function Z(){if(G==null&&(G=!1,Q())){const u=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(u){for(let v=0;v<5*5;v++){const w=4*v;u.fillStyle=`rgb(${w},${w+1},${w+2})`,u.fillRect(v%5,Math.floor(v/5),1,1)}const c=u.getImageData(0,0,5,5).data;for(let v=0;v<5*5*4;v++)if(v%4!=3&&c[v]!==v){G=!0;break}}}return G||!1}var X=1e-6,re=typeof Float32Array<"u"?Float32Array:Array;function ie(){var h=new re(9);return re!=Float32Array&&(h[1]=0,h[2]=0,h[3]=0,h[5]=0,h[6]=0,h[7]=0),h[0]=1,h[4]=1,h[8]=1,h}function V(h){return h[0]=1,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=1,h[6]=0,h[7]=0,h[8]=0,h[9]=0,h[10]=1,h[11]=0,h[12]=0,h[13]=0,h[14]=0,h[15]=1,h}function ee(){var h=new re(3);return re!=Float32Array&&(h[0]=0,h[1]=0,h[2]=0),h}function W(h){var u=h[0],c=h[1],v=h[2];return Math.sqrt(u*u+c*c+v*v)}function he(h,u,c){var v=new re(3);return v[0]=h,v[1]=u,v[2]=c,v}function ge(h,u,c){return h[0]=u[0]+c[0],h[1]=u[1]+c[1],h[2]=u[2]+c[2],h}function ve(h,u,c){return h[0]=u[0]*c,h[1]=u[1]*c,h[2]=u[2]*c,h}function _e(h,u,cLine truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(xe[1])} }\`.`)];const Le=[];return h.layerType==="symbol"&&(N==="text-field"&&w&&!w.glyphs&&Le.push(new Sn(c,K,'use of "text-field" requires a style "glyphs" property')),N==="text-font"&&mc(ul(K))&&_s(K.type)==="identity"&&Le.push(new Sn(c,K,'"text-font" does not support identity functions'))),Le.concat(v({key:h.key,value:K,valueSpec:ce,style:w,styleSpec:U,expressionContext:"property",propertyType:u,propertyKey:N}))}function bs(h){return Cr(h,"paint")}function lh(h){return Cr(h,"layout")}function Rh(h){let u=[];const c=h.value,v=h.key,w=h.style,U=h.styleSpec;if(Pr(c)!=="object")return[new Sn(v,c,`object expected, ${Pr(c)} found`)];c.type||c.ref||u.push(new Sn(v,c,'either "type" or "ref" is required'));let K=_s(c.type);const N=_s(c.ref);if(c.id){const H=_s(c.id);for(let ae=0;ae<h.arrayIndex;ae++){const ce=w.layers[ae];_s(ce.id)===H&&u.push(new Sn(v,c.id,`duplicate layer id "${c.id}", previously used at line ${ce.id.__line__}`))}}if("ref"in c){let H;["type","source","source-layer","filter","layout"].forEach(ae=>{ae in c&&u.push(new Sn(v,c[ae],`"${ae}" is prohibited for ref layers`))}),w.layers.forEach(ae=>{_s(ae.id)===N&&(H=ae)}),H?H.ref?u.push(new Sn(v,c.ref,"ref cannot reference another ref layer")):K=_s(H.type):u.push(new Sn(v,c.ref,`ref layer "${N}" not found`))}else if(K!=="background")if(c.source){const H=w.sources&&w.sources[c.source],ae=H&&_s(H.type);H?ae==="vector"&&K==="raster"?u.push(new Sn(v,c.source,`layer "${c.id}" requires a raster source`)):ae!=="raster-dem"&&K==="hillshade"||ae!=="raster-dem"&&K==="color-relief"?u.push(new Sn(v,c.source,`layer "${c.id}" requires a raster-dem source`)):ae==="raster"&&K!=="raster"?u.push(new Sn(v,c.source,`layer "${c.id}" requires a vector source`)):ae!=="vector"||c["source-layer"]?ae==="raster-dem"&&K!=="hillshade"&&K!=="color-relief"?u.push(new Sn(v,c.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):K!=="line"||!c.paint||!c.paint["line-gradient"]||ae==="geojson"&&H.lineMetrics||u.push(new Sn(v,c,`layer "${c.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):u.push(new Sn(v,c,`layer "${c.id}" must specify a "source-layer"`)):u.push(new Sn(v,c.source,`source "${c.source}" not found`))}else u.push(new Sn(v,c,'missing required property "source"'));return u=u.concat(Qs({key:v,value:c,valueSpec:U.layer,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*":()=>[],type:()=>h.validateSpec({key:`${v}.type`,value:c.type,valueSpec:U.layer.type,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,object:c,objectKey:"type"}),filter:Ha,layout:H=>Qs({layer:c,key:H.key,value:H.value,style:H.style,styleSpec:H.styleSpec,validateSpec:H.validateSpec,objectElementValidators:{"*":ae=>lh(co({layerType:K},ae))}}),paint:H=>Qs({layer:c,key:H.key,value:H.value,style:H.style,styleSpec:H.styleSpec,validateSpec:H.validateSpec,objectElementValidators:{"*":ae=>bs(co({layerType:K},ae))}})}})),u}function Ko(h){const u=h.value,c=h.key,v=Pr(u);return v!=="string"?[new Sn(c,u,`string expected, ${v} found`)]:[]}const uh={promoteId:function({key:h,value:u}){if(Pr(u)==="string")return Ko({key:h,value:u});{const c=[];for(const v in u)c.push(...Ko({key:`${h}.${v}`,value:u[v]}));return c}}};function Lu(h){const u=h.value,c=h.key,v=h.styleSpec,w=h.style,U=h.validateSpec;if(!u.type)return[new Sn(c,u,'"type" is required')];const K=_s(u.type);let N;switch(K){case"vector":case"raster":return N=Qs({key:c,value:u,valueSpec:v[`source_${K.replace("-","_")}`],style:h.style,styleSpec:v,objectElementValidators:uh,validateSpec:U}),N;case"raster-dem":return N=function(H){var ae;const ce=(ae=H.sourceName)!==null&&ae!==void 0?ae:"",xe=H.value,Le=H.styleSpec,qe=Le.source_raster_dem,$e=H.style;let nt=[];const ct=Pr(xe);if(xe===void 0)return nt;if(ct!=="object")return nt.push(new Sn("source_raster_dem",xe,`object expected, ${ct} found`)),nt;const wt=_s(xe.encoding)==="custom",qt=["redFactor","greenFactor","blueFactor","baseShift"],Dt=H.value.encoding?`"${H.value.encoding}"`:"Default";for(const Nt in xe)!wt&&qt.includes(Nt)?nt.push(new Sn(Nt,xe[Nt],`In "${ce}": "${Nt}" is only valid when "encoding" is set to "custom". ${Dt} encoding found`)):qe[Nt]?nt=nt.concat(H.validateSpec({key:Nt,value:xe[Nt],valueSpec:qe[Nt],validateSpec:H.validateSpec,style:$e,styleSpec:Le})):nt.push(new Sn(Nt,xe[Nt],`unknown property "${Nt}"`));return nt}({sourceName:c,value:u,style:h.style,styleSpec:v,validateSpec:U}),N;case"geojson":if(N=Qs({key:c,value:u,valueSpec:v.source_geojson,style:w,styleSpec:v,validateSpec:U,objectElementValidators:uh}),u.cluster)for(const H in u.clusterProperties){const[ae,ce]=u.clusterProperties[H],xe=typeof ae=="string"?[ae,["accumulated"],["get",H]]:ae;N.push(...sA({key:`${c}.${H}.map`,value:ce,expressionContext:"cluster-map"})),N.push(...sA({key:`${c}.${H}.reduce`,value:xe,expressionCLine truncated
|
||||
precision mediump float;
|
||||
#else
|
||||
#if !defined(lowp)
|
||||
@@ -828,46 +828,46 @@ uniform ${ye} ${Oe} u_${Ee};
|
||||
#else
|
||||
${ye} ${Oe} ${Ee} = u_${Ee};
|
||||
#endif
|
||||
`}),staticAttributes:b,staticUniforms:j}}class Gl{constructor(l,f,b){this.vertexBuffer=l,this.indexBuffer=f,this.segments=b}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var ba=a.aJ([{name:"a_pos",type:"Int16",components:2}]);const Wl="#define PROJECTION_MERCATOR",Ou="mercator";class Sr{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return Ou}get shaderDefine(){return Wl}get shaderPreludeCode(){return Po.projectionMercator}get vertexShaderPreludeCode(){return Po.projectionMercator.vertexSource}get subdivisionGranularity(){return a.aK.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(l){}getMeshFromTileID(l,f,b,S,R){if(this._cachedMesh)return this._cachedMesh;const j=new a.aL;j.emplaceBack(0,0),j.emplaceBack(a.$,0),j.emplaceBack(0,a.$),j.emplaceBack(a.$,a.$);const q=l.createVertexBuffer(j,ba.members),te=a.aM.simpleSegment(0,0,4,2),fe=new a.aN;fe.emplaceBack(1,0,2),fe.emplaceBack(1,2,3);const ye=l.createIndexBuffer(fe);return this._cachedMesh=new Gl(q,ye,te),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(l){}}class Au{constructor(l=0,f=0,b=0,S=0){if(isNaN(l)||l<0||isNaN(f)||f<0||isNaN(b)||b<0||isNaN(S)||S<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=l,this.bottom=f,this.left=b,this.right=S}interpolate(l,f,b){return f.top!=null&&l.top!=null&&(this.top=a.C.number(l.top,f.top,b)),f.bottom!=null&&l.bottom!=null&&(this.bottom=a.C.number(l.bottom,f.bottom,b)),f.left!=null&&l.left!=null&&(this.left=a.C.number(l.left,f.left,b)),f.right!=null&&l.right!=null&&(this.right=a.C.number(l.right,f.right,b)),this}getCenter(l,f){const b=a.ah((this.left+l-this.right)/2,0,l),S=a.ah((this.top+f-this.bottom)/2,0,f);return new a.P(b,S)}equals(l){return this.top===l.top&&this.bottom===l.bottom&&this.left===l.left&&this.right===l.right}clone(){return new Au(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function yA(k,l){if(!k.renderWorldCopies||k.lngRange)return;const f=l.lng-k.center.lng;l.lng+=f>180?-360:f<-180?360:0}function Wo(k){return Math.max(0,Math.floor(k))}class Io{constructor(l,f,b,S,R,j){this._callbacks=l,this._tileSize=512,this._renderWorldCopies=j===void 0||!!j,this._minZoom=f||0,this._maxZoom=b||22,this._minPitch=S??0,this._maxPitch=R??60,this.setMaxBounds(),this._width=0,this._height=0,this._center=new a.S(0,0),this._elevation=0,this._zoom=0,this._tileZoom=Wo(this._zoom),this._scale=a.af(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new Au,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(l,f,b){this._latRange=l.latRange,this._lngRange=l.lngRange,this._width=l.width,this._height=l.height,this._center=l.center,this._elevation=l.elevation,this._minElevationForCurrentTile=l.minElevationForCurrentTile,this._zoom=l.zoom,this._tileZoom=Wo(this._zoom),this._scale=a.af(this._zoom),this._bearingInRadians=l.bearingInRadians,this._fovInRadians=l.fovInRadians,this._pitchInRadians=l.pitchInRadians,this._rollInRadians=l.rollInRadians,this._unmodified=l.unmodified,this._edgeInsets=new Au(l.padding.top,l.padding.bottom,l.padding.left,l.padding.right),this._minZoom=l.minZoom,this._maxZoom=l.maxZoom,this._minPitch=l.minPitch,this._maxPitch=l.maxPitch,this._renderWorldCopies=l.renderWorldCopies,this._cameraToCenterDistance=l.cameraToCenterDistance,this._nearZ=l.nearZ,this._farZ=l.farZ,this._autoCalculateNearFarZ=!b&&l.autoCalculateNearFarZ,f&&this._constrain(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(l){this._minElevationForCurrentTile=l}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(l){this._minZoom!==l&&(this._minZoom=l,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get maxZoom(){return this._maxZoom}setMaxZoom(l){this._maxZoom!==l&&(this._maxZoom=l,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get minPitch(){return this._minPitch}setMinPitch(l){this._minPitch!==l&&(this._minPitch=l,this.setPitch(Math.max(this.pitch,l)))}get maxPitch(){return this._maxPitch}setMax
Line truncated
|
||||
`}),staticAttributes:b,staticUniforms:j}}class Gl{constructor(l,f,b){this.vertexBuffer=l,this.indexBuffer=f,this.segments=b}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var ba=a.aJ([{name:"a_pos",type:"Int16",components:2}]);const Wl="#define PROJECTION_MERCATOR",Ou="mercator";class Sr{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return Ou}get shaderDefine(){return Wl}get shaderPreludeCode(){return Po.projectionMercator}get vertexShaderPreludeCode(){return Po.projectionMercator.vertexSource}get subdivisionGranularity(){return a.aK.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(l){}getMeshFromTileID(l,f,b,S,R){if(this._cachedMesh)return this._cachedMesh;const j=new a.aL;j.emplaceBack(0,0),j.emplaceBack(a.$,0),j.emplaceBack(0,a.$),j.emplaceBack(a.$,a.$);const q=l.createVertexBuffer(j,ba.members),te=a.aM.simpleSegment(0,0,4,2),fe=new a.aN;fe.emplaceBack(1,0,2),fe.emplaceBack(1,2,3);const ye=l.createIndexBuffer(fe);return this._cachedMesh=new Gl(q,ye,te),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(l){}}class Au{constructor(l=0,f=0,b=0,S=0){if(isNaN(l)||l<0||isNaN(f)||f<0||isNaN(b)||b<0||isNaN(S)||S<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=l,this.bottom=f,this.left=b,this.right=S}interpolate(l,f,b){return f.top!=null&&l.top!=null&&(this.top=a.C.number(l.top,f.top,b)),f.bottom!=null&&l.bottom!=null&&(this.bottom=a.C.number(l.bottom,f.bottom,b)),f.left!=null&&l.left!=null&&(this.left=a.C.number(l.left,f.left,b)),f.right!=null&&l.right!=null&&(this.right=a.C.number(l.right,f.right,b)),this}getCenter(l,f){const b=a.ah((this.left+l-this.right)/2,0,l),S=a.ah((this.top+f-this.bottom)/2,0,f);return new a.P(b,S)}equals(l){return this.top===l.top&&this.bottom===l.bottom&&this.left===l.left&&this.right===l.right}clone(){return new Au(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function yA(k,l){if(!k.renderWorldCopies||k.lngRange)return;const f=l.lng-k.center.lng;l.lng+=f>180?-360:f<-180?360:0}function Wo(k){return Math.max(0,Math.floor(k))}class Io{constructor(l,f,b,S,R,j){this._callbacks=l,this._tileSize=512,this._renderWorldCopies=j===void 0||!!j,this._minZoom=f||0,this._maxZoom=b||22,this._minPitch=S??0,this._maxPitch=R??60,this.setMaxBounds(),this._width=0,this._height=0,this._center=new a.S(0,0),this._elevation=0,this._zoom=0,this._tileZoom=Wo(this._zoom),this._scale=a.af(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new Au,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(l,f,b){this._latRange=l.latRange,this._lngRange=l.lngRange,this._width=l.width,this._height=l.height,this._center=l.center,this._elevation=l.elevation,this._minElevationForCurrentTile=l.minElevationForCurrentTile,this._zoom=l.zoom,this._tileZoom=Wo(this._zoom),this._scale=a.af(this._zoom),this._bearingInRadians=l.bearingInRadians,this._fovInRadians=l.fovInRadians,this._pitchInRadians=l.pitchInRadians,this._rollInRadians=l.rollInRadians,this._unmodified=l.unmodified,this._edgeInsets=new Au(l.padding.top,l.padding.bottom,l.padding.left,l.padding.right),this._minZoom=l.minZoom,this._maxZoom=l.maxZoom,this._minPitch=l.minPitch,this._maxPitch=l.maxPitch,this._renderWorldCopies=l.renderWorldCopies,this._cameraToCenterDistance=l.cameraToCenterDistance,this._nearZ=l.nearZ,this._farZ=l.farZ,this._autoCalculateNearFarZ=!b&&l.autoCalculateNearFarZ,f&&this._constrain(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(l){this._minElevationForCurrentTile=l}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(l){this._minZoom!==l&&(this._minZoom=l,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get maxZoom(){return this._maxZoom}setMaxZoom(l){this._maxZoom!==l&&(this._maxZoom=l,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get minPitch(){return this._minPitch}setMinPitch(l){this._minPitch!==l&&(this._minPitch=l,this.setPitch(Math.max(this.pitch,l)))}get maxPitch(){return this._maxPitch}setMax
Line truncated
|
||||
`),zt=St.concat(Po.prelude.vertexSource,q.vertexSource,f.vertexSource).join(`
|
||||
`);lt(ye)||(Pt=function(Jt){return Jt.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")}(Pt),zt=function(Jt){return Jt.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")}(zt));const Ot=ye.createShader(ye.FRAGMENT_SHADER);if(ye.isContextLost())return void(this.failedToCreate=!0);if(ye.shaderSource(Ot,Pt),ye.compileShader(Ot),!ye.getShaderParameter(Ot,ye.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${ye.getShaderInfoLog(Ot)}`);ye.attachShader(this.program,Ot);const Ht=ye.createShader(ye.VERTEX_SHADER);if(ye.isContextLost())return void(this.failedToCreate=!0);if(ye.shaderSource(Ht,zt),ye.compileShader(Ht),!ye.getShaderParameter(Ht,ye.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${ye.getShaderInfoLog(Ht)}`);ye.attachShader(this.program,Ht),this.attributes={};const fn={};this.numAttributes=Ne.length;for(let Jt=0;Jt<this.numAttributes;Jt++)Ne[Jt]&&(ye.bindAttribLocation(this.program,Jt,Ne[Jt]),this.attributes[Ne[Jt]]=Jt);if(ye.linkProgram(this.program),!ye.getProgramParameter(this.program,ye.LINK_STATUS))throw new Error(`Program failed to link: ${ye.getProgramInfoLog(this.program)}`);ye.deleteShader(Ht),ye.deleteShader(Ot);for(let Jt=0;Jt<Ct.length;Jt++){const rn=Ct[Jt];if(rn&&!fn[rn]){const An=ye.getUniformLocation(this.program,rn);An&&(fn[rn]=An)}}this.fixedUniforms=S(l,fn),this.terrainUniforms=((Jt,rn)=>({u_depth:new a.bP(Jt,rn.u_depth),u_terrain:new a.bP(Jt,rn.u_terrain),u_terrain_dim:new a.bg(Jt,rn.u_terrain_dim),u_terrain_matrix:new a.bR(Jt,rn.u_terrain_matrix),u_terrain_unpack:new a.bS(Jt,rn.u_terrain_unpack),u_terrain_exaggeration:new a.bg(Jt,rn.u_terrain_exaggeration)}))(l,fn),this.projectionUniforms=((Jt,rn)=>({u_projection_matrix:new a.bR(Jt,rn.u_projection_matrix),u_projection_tile_mercator_coords:new a.bS(Jt,rn.u_projection_tile_mercator_coords),u_projection_clipping_plane:new a.bS(Jt,rn.u_projection_clipping_plane),u_projection_transition:new a.bg(Jt,rn.u_projection_transition),u_projection_fallback_matrix:new a.bR(Jt,rn.u_projection_fallback_matrix)}))(l,fn),this.binderUniforms=b?b.getUniforms(l,fn):[]}draw(l,f,b,S,R,j,q,te,fe,ye,Oe,Ee,Ne,Je,ut,ht,ft,Mt,Ct){const St=l.gl;if(this.failedToCreate)return;if(l.program.set(this.program),l.setDepthMode(b),l.setStencilMode(S),l.setColorMode(R),l.setCullFace(j),te){l.activeTexture.set(St.TEXTURE2),St.bindTexture(St.TEXTURE_2D,te.depthTexture),l.activeTexture.set(St.TEXTURE3),St.bindTexture(St.TEXTURE_2D,te.texture);for(const zt in this.terrainUniforms)this.terrainUniforms[zt].set(te[zt])}if(fe)for(const zt in fe)this.projectionUniforms[qf[zt]].set(fe[zt]);if(q)for(const zt in this.fixedUniforms)this.fixedUniforms[zt].set(q[zt]);ht&&ht.setUniforms(l,this.binderUniforms,Je,{zoom:ut});let Pt=0;switch(f){case St.LINES:Pt=2;break;case St.TRIANGLES:Pt=3;break;case St.LINE_STRIP:Pt=1}for(const zt of Ne.get()){const Ot=zt.vaos||(zt.vaos={});(Ot[ye]||(Ot[ye]=new b0)).bind(l,this,Oe,ht?ht.getPaintVertexBuffers():[],Ee,zt.vertexOffset,ft,Mt,Ct),St.drawElements(f,zt.primitiveLength*Pt,St.UNSIGNED_SHORT,zt.primitiveOffset*Pt*2)}}}function Id(k,l,f){const b=1/a.aC(f,1,l.transform.tileZoom),S=Math.pow(2,f.tileID.overscaledZ),R=f.tileSize*Math.pow(2,l.transform.tileZoom)/S,j=R*(f.tileID.canonical.x+f.tileID.wrap*S),q=R*f.tileID.canonical.y;return{u_image:0,u_texsize:f.imageAtlasTexture.size,u_scale:[b,k.fromScale,k.toScale],u_fade:k.t,u_pixel_coord_upper:[j>>16,q>>16],u_pixel_coord_lower:[65535&j,65535&q]}}const Yl=(k,l,f,b)=>{const S=k.style.light,R=S.properties.get("position"),j=[R.x,R.y,R.z],q=a.bV();S.properties.get("anchor")==="viewport"&&a.bW(q,k.transform.bearingInRadians),a.bX(j,j,q);const te=k.transform.transformLightDirection(j),fe=S.properties.get("color");return{u_lightpos:j,u_lightpos_globe:te,u_lightintensity:S.properties.get("intensity"),u_lightcolor:[fe.r,fe.g,fe.b],u_vertical_gradient:+l,u_opacity:f,u_fill_translate:b}},Td=(k,l,f,b,S,R,j)=>a.e(Yl(k,l,f,b),Id(R,k,j),{u_height_factor:-Math.pow(2,S.overscaledZ)/j.tileSize/8}),Zh=(k,l,f,b)=>a.e(Id(l,k,f),{u_fill_translate:b}),th=(k,l)=>({u_world:k,u_fill_translate:l}),Xh=(k,l,f,b,S)=>a.e(Zh(k,l,f,S),{u_world:b}),Hf=(k,l,f,b,S)=>{const R=k.transform;let j,q,te=0;if(f.paint.get("circle-pitch-alignment")==="map"){const fe=a.aC(l,1,R.zoom);j=!0,q=[fe,fe],te=fe/(a.$*Math.pow(2,l.tileID.overscaledZ))*2*Math.PI*S}else j=!1,q=R.pixelsToGLUnits;return{u_camera_to_center_distance:R.cameraToCenterDistance,u_scale_with_map:+(f.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+j,u_device_pixel_ratio:k.pixelRatio,u_extrude_scale:q,u_globe_extrude_scale:te,u_translate:b}},Eh=k=>({u_pixel_extrude_scale:[1/k.width,1/k.height]}),Bh=k=>({u_viewport_size:[k.width,k.height]}),Jh=(k,l=1)=>({u_color:k,u_overlay:0,u_overlay_scale:l}),Vf=(k,l,f,b)=>{const S=a.aC(k,1,l)/(a.$*Math.pow(2,k.tileID.overscaledZ))*2*Math.PI*b;return{u_extrude_scale:a.a
Line truncated
|
||||
`);lt(ye)||(Pt=function(Jt){return Jt.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")}(Pt),zt=function(Jt){return Jt.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")}(zt));const Ot=ye.createShader(ye.FRAGMENT_SHADER);if(ye.isContextLost())return void(this.failedToCreate=!0);if(ye.shaderSource(Ot,Pt),ye.compileShader(Ot),!ye.getShaderParameter(Ot,ye.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${ye.getShaderInfoLog(Ot)}`);ye.attachShader(this.program,Ot);const Ht=ye.createShader(ye.VERTEX_SHADER);if(ye.isContextLost())return void(this.failedToCreate=!0);if(ye.shaderSource(Ht,zt),ye.compileShader(Ht),!ye.getShaderParameter(Ht,ye.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${ye.getShaderInfoLog(Ht)}`);ye.attachShader(this.program,Ht),this.attributes={};const fn={};this.numAttributes=Ne.length;for(let Jt=0;Jt<this.numAttributes;Jt++)Ne[Jt]&&(ye.bindAttribLocation(this.program,Jt,Ne[Jt]),this.attributes[Ne[Jt]]=Jt);if(ye.linkProgram(this.program),!ye.getProgramParameter(this.program,ye.LINK_STATUS))throw new Error(`Program failed to link: ${ye.getProgramInfoLog(this.program)}`);ye.deleteShader(Ht),ye.deleteShader(Ot);for(let Jt=0;Jt<Ct.length;Jt++){const rn=Ct[Jt];if(rn&&!fn[rn]){const An=ye.getUniformLocation(this.program,rn);An&&(fn[rn]=An)}}this.fixedUniforms=S(l,fn),this.terrainUniforms=((Jt,rn)=>({u_depth:new a.bP(Jt,rn.u_depth),u_terrain:new a.bP(Jt,rn.u_terrain),u_terrain_dim:new a.bg(Jt,rn.u_terrain_dim),u_terrain_matrix:new a.bR(Jt,rn.u_terrain_matrix),u_terrain_unpack:new a.bS(Jt,rn.u_terrain_unpack),u_terrain_exaggeration:new a.bg(Jt,rn.u_terrain_exaggeration)}))(l,fn),this.projectionUniforms=((Jt,rn)=>({u_projection_matrix:new a.bR(Jt,rn.u_projection_matrix),u_projection_tile_mercator_coords:new a.bS(Jt,rn.u_projection_tile_mercator_coords),u_projection_clipping_plane:new a.bS(Jt,rn.u_projection_clipping_plane),u_projection_transition:new a.bg(Jt,rn.u_projection_transition),u_projection_fallback_matrix:new a.bR(Jt,rn.u_projection_fallback_matrix)}))(l,fn),this.binderUniforms=b?b.getUniforms(l,fn):[]}draw(l,f,b,S,R,j,q,te,fe,ye,Oe,Ee,Ne,Je,ut,ht,ft,Mt,Ct){const St=l.gl;if(this.failedToCreate)return;if(l.program.set(this.program),l.setDepthMode(b),l.setStencilMode(S),l.setColorMode(R),l.setCullFace(j),te){l.activeTexture.set(St.TEXTURE2),St.bindTexture(St.TEXTURE_2D,te.depthTexture),l.activeTexture.set(St.TEXTURE3),St.bindTexture(St.TEXTURE_2D,te.texture);for(const zt in this.terrainUniforms)this.terrainUniforms[zt].set(te[zt])}if(fe)for(const zt in fe)this.projectionUniforms[qf[zt]].set(fe[zt]);if(q)for(const zt in this.fixedUniforms)this.fixedUniforms[zt].set(q[zt]);ht&&ht.setUniforms(l,this.binderUniforms,Je,{zoom:ut});let Pt=0;switch(f){case St.LINES:Pt=2;break;case St.TRIANGLES:Pt=3;break;case St.LINE_STRIP:Pt=1}for(const zt of Ne.get()){const Ot=zt.vaos||(zt.vaos={});(Ot[ye]||(Ot[ye]=new b0)).bind(l,this,Oe,ht?ht.getPaintVertexBuffers():[],Ee,zt.vertexOffset,ft,Mt,Ct),St.drawElements(f,zt.primitiveLength*Pt,St.UNSIGNED_SHORT,zt.primitiveOffset*Pt*2)}}}function Id(k,l,f){const b=1/a.aC(f,1,l.transform.tileZoom),S=Math.pow(2,f.tileID.overscaledZ),R=f.tileSize*Math.pow(2,l.transform.tileZoom)/S,j=R*(f.tileID.canonical.x+f.tileID.wrap*S),q=R*f.tileID.canonical.y;return{u_image:0,u_texsize:f.imageAtlasTexture.size,u_scale:[b,k.fromScale,k.toScale],u_fade:k.t,u_pixel_coord_upper:[j>>16,q>>16],u_pixel_coord_lower:[65535&j,65535&q]}}const Yl=(k,l,f,b)=>{const S=k.style.light,R=S.properties.get("position"),j=[R.x,R.y,R.z],q=a.bV();S.properties.get("anchor")==="viewport"&&a.bW(q,k.transform.bearingInRadians),a.bX(j,j,q);const te=k.transform.transformLightDirection(j),fe=S.properties.get("color");return{u_lightpos:j,u_lightpos_globe:te,u_lightintensity:S.properties.get("intensity"),u_lightcolor:[fe.r,fe.g,fe.b],u_vertical_gradient:+l,u_opacity:f,u_fill_translate:b}},Td=(k,l,f,b,S,R,j)=>a.e(Yl(k,l,f,b),Id(R,k,j),{u_height_factor:-Math.pow(2,S.overscaledZ)/j.tileSize/8}),Zh=(k,l,f,b)=>a.e(Id(l,k,f),{u_fill_translate:b}),th=(k,l)=>({u_world:k,u_fill_translate:l}),Xh=(k,l,f,b,S)=>a.e(Zh(k,l,f,S),{u_world:b}),Hf=(k,l,f,b,S)=>{const R=k.transform;let j,q,te=0;if(f.paint.get("circle-pitch-alignment")==="map"){const fe=a.aC(l,1,R.zoom);j=!0,q=[fe,fe],te=fe/(a.$*Math.pow(2,l.tileID.overscaledZ))*2*Math.PI*S}else j=!1,q=R.pixelsToGLUnits;return{u_camera_to_center_distance:R.cameraToCenterDistance,u_scale_with_map:+(f.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+j,u_device_pixel_ratio:k.pixelRatio,u_extrude_scale:q,u_globe_extrude_scale:te,u_translate:b}},Eh=k=>({u_pixel_extrude_scale:[1/k.width,1/k.height]}),Bh=k=>({u_viewport_size:[k.width,k.height]}),Jh=(k,l=1)=>({u_color:k,u_overlay:0,u_overlay_scale:l}),Vf=(k,l,f,b)=>{const S=a.aC(k,1,l)/(a.$*Math.pow(2,k.tileID.overscaledZ))*2*Math.PI*b;return{u_extrude_scale:a.a
Line truncated
|
||||
uniform mat4 u_projection_matrix;
|
||||
${Ne.shaderPreludeCode.vertexSource}`,define:Ne.shaderDefine},defaultProjectionData:ut},ft=Ee.renderingMode?Ee.renderingMode:"2d";if(j.renderPass==="offscreen"){const Mt=Ee.prerender;Mt&&(j.setCustomLayerDefaults(),Oe.setColorMode(j.colorModeForRenderPass()),Mt.call(Ee,Oe.gl,ht),Oe.setDirty(),j.setBaseState())}else if(j.renderPass==="translucent"){j.setCustomLayerDefaults(),Oe.setColorMode(j.colorModeForRenderPass()),Oe.setStencilMode(ne.disabled);const Mt=ft==="3d"?j.getDepthModeFor3D():j.getDepthModeForSublayer(0,Ei.ReadOnly);Oe.setDepthMode(Mt),Ee.render(Oe.gl,ht),Oe.setDirty(),j.setBaseState(),Oe.bindFramebuffer.set(null)}}(l,0,b,R))}saveTileTexture(l){const f=this._tileTextures[l.size[0]];f?f.push(l):this._tileTextures[l.size[0]]=[l]}getTileTexture(l){const f=this._tileTextures[l];return f&&f.length>0?f.pop():null}isPatternMissing(l){if(!l)return!1;if(!l.from||!l.to)return!0;const f=this.imageManager.getPattern(l.from.toString()),b=this.imageManager.getPattern(l.to.toString());return!f||!b}useProgram(l,f,b=!1,S=[]){this.cache=this.cache||{};const R=!!this.style.map.terrain,j=this.style.projection,q=b?Po.projectionMercator:j.shaderPreludeCode,te=b?Wl:j.shaderDefine,fe=l+(f?f.cacheKey:"")+`/${b?Ou:j.shaderVariantName}`+(this._showOverdrawInspector?"/overdraw":"")+(R?"/terrain":"")+(S?`/${S.join("/")}`:"");return this.cache[fe]||(this.cache[fe]=new as(this.context,Po[l],f,Iu[l],this._showOverdrawInspector,R,q,te,S)),this.cache[fe]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const l=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(l.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new a.T(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){const{drawingBufferWidth:l,drawingBufferHeight:f}=this.context.gl;return this.width!==l||this.height!==f}}function sA(k,l){let f,b=!1,S=null,R=null;const j=()=>{S=null,b&&(k.apply(R,f),S=setTimeout(j,l),b=!1)};return(...q)=>(b=!0,R=this,f=q,S||j(),S)}class at{constructor(l){this._getCurrentHash=()=>{const f=window.location.hash.replace("#","");if(this._hashName){let b;return f.split("&").map(S=>S.split("=")).forEach(S=>{S[0]===this._hashName&&(b=S)}),(b&&b[1]||"").split("/")}return f.split("/")},this._onHashChange=()=>{const f=this._getCurrentHash();if(!this._isValidHash(f))return!1;const b=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(f[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+f[2],+f[1]],zoom:+f[0],bearing:b,pitch:+(f[4]||0)}),!0},this._updateHashUnthrottled=()=>{const f=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,f)},this._removeHash=()=>{const f=this._getCurrentHash();if(f.length===0)return;const b=f.join("/");let S=b;S.split("&").length>0&&(S=S.split("&")[0]),this._hashName&&(S=`${this._hashName}=${b}`);let R=window.location.hash.replace(S,"");R.startsWith("#&")?R=R.slice(0,1)+R.slice(2):R==="#"&&(R="");let j=window.location.href.replace(/(#.+)?$/,R);j=j.replace("&&","&"),window.history.replaceState(window.history.state,null,j)},this._updateHash=sA(this._updateHashUnthrottled,300),this._hashName=l&&encodeURIComponent(l)}addTo(l){return this._map=l,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(l){const f=this._map.getCenter(),b=Math.round(100*this._map.getZoom())/100,S=Math.ceil((b*Math.LN2+Math.log(512/360/.5))/Math.LN10),R=Math.pow(10,S),j=Math.round(f.lng*R)/R,q=Math.round(f.lat*R)/R,te=this._map.getBearing(),fe=this._map.getPitch();let ye="";if(ye+=l?`/${j}/${q}/${b}`:`${b}/${q}/${j}`,(te||fe)&&(ye+="/"+Math.round(10*te)/10),fe&&(ye+=`/${Math.round(fe)}`),this._hashName){const Oe=this._hashName;let Ee=!1;const Ne=window.location.hash.slice(1).split("&").map(Je=>{const ut=Je.split("=")[0];return ut===Oe?(Ee=!0,`${ut}=${ye}`):Je}).filter(Je=>Je);return Ee||Ne.push(`${Oe}=${ye}`),`#${Ne.join("&")}`}return`#${ye}`}_isValidHash(l){if(l.length<3||l.some(isNaN))return!1;try{new a.S(+l[2],+l[1])}catch{return!1}const f=+l[0],b=+(l[3]||0),S=+(l[4]||0);return f>=this._map.getMinZoom()&&f<=this._map.getMaxZoom()&&b>=-180&&b<=180&&S>=this._map.getMinPitch()&&S<=this._map.getMaxPitch()}}const nl={linearity:.3,easing:a.cm(0,0,.3
Line truncated
|
||||
${e} <span></span>
|
||||
`,ys().s[12]++,this._textEl=this._container.querySelector("span"),ys().s[13]++,this.updateZoomLevel()}addEventListeners(){ys().f[4]++,ys().s[14]++,this._map.on("render",()=>(ys().f[5]++,ys().s[15]++,this.updateZoomLevel())),ys().s[16]++,this._map.on("zoomIn",()=>(ys().f[6]++,ys().s[17]++,this.updateZoomLevel())),ys().s[18]++,this._map.on("zoomOut",()=>(ys().f[7]++,ys().s[19]++,this.updateZoomLevel()))}onRemove(){ys().f[8]++,ys().s[20]++,this._container.parentNode.removeChild(this._container),ys().s[21]++,this._map=void 0}}function UB(n,e,t){const i={id:[e,t,"circle"].join("_"),source:e,type:"circle",paint:{"circle-color":n,"circle-radius":2},filter:["==","$type","Point"]};return t&&(i["source-layer"]=t),i}function KB(n,e,t,i){const r={id:[t,i,"polygon"].join("_"),source:t,type:"fill",paint:{"fill-color":n,"fill-antialias":!0,"fill-outline-color":n},filter:["==","$type","Polygon"]};return i&&(r["source-layer"]=i),r}function LB(n,e,t){const i={id:[e,t,"line"].join("_"),source:e,layout:{"line-join":"round","line-cap":"round"},type:"line",paint:{"line-color":n},filter:["==","$type","LineString"]};return t&&(i["source-layer"]=t),i}function hee(n,e){const t=[],i=[],r=[];function o(s){return{circle:e(s,.8),line:e(s,.6),polygon:e(s,.3),polygonOutline:e(s,.6),default:e(s,1)}}return Object.keys(n).forEach(s=>{const a=n[s];if(!a||a.length===0){const p=o(s);i.push(UB(p.circle,s)),r.push(LB(p.line,s)),t.push(KB(p.polygon,p.polygonOutline,s))}else a.forEach(p=>{const g=o(p);i.push(UB(g.circle,s,p)),r.push(LB(g.line,s,p)),t.push(KB(g.polygon,g.polygonOutline,s,p))})}),t.concat(r).concat(i)}function dee(n,e,t){t=Object.assign({backgroundColor:"#fff"},t);const i={id:"background",type:"background",paint:{"background-color":t.backgroundColor}},r={};return Object.keys(n.sources).forEach(o=>{const s=n.sources[o];(s.type==="vector"||s.type==="geojson")&&(r[o]=s)}),Object.assign(n,{layers:[i].concat(e),sources:r})}const C5={polygonLayer:KB,lineLayer:LB,circleLayer:UB,generateInspectStyle:dee,generateColoredLayers:hee};function Co(){var n="/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",e="aec0f701e803624fae461cc89b5fc887ff556587",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",statementMap:{0:{start:{line:4,column:2},end:{line:8,column:3}},1:{start:{line:5,column:4},end:{line:5,column:33}},2:{start:{line:6,column:9},end:{line:8,column:3}},3:{start:{line:7,column:4},end:{line:7,column:30}},4:{start:{line:9,column:2},end:{line:13,column:3}},5:{start:{line:10,column:4},end:{line:10,column:28}},6:{start:{line:12,column:4},end:{line:12,column:23}},7:{start:{line:14,column:2},end:{line:14,column:29}},8:{start:{line:15,column:2},end:{line:15,column:11}},9:{start:{line:18,column:2},end:{line:18,column:84}},10:{start:{line:18,column:72},end:{line:18,column:84}},11:{start:{line:19,column:24},end:{line:19,column:51}},12:{start:{line:20,column:16},end:{line:20,column:52}},13:{start:{line:21,column:2},end:{line:23,column:3}},14:{start:{line:22,column:4},end:{line:22,column:104}},15:{start:{line:24,column:2},end:{line:26,column:3}},16:{start:{line:25,column:4},end:{line:25,column:96}},17:{start:{line:27,column:2},end:{line:29,column:3}},18:{start:{line:28,column:4},end:{line:28,column:94}},19:{start:{line:30,column:2},end:{line:30,column:14}}},fnMap:{0:{name:"changeLayer",decl:{start:{line:3,column:9},end:{line:3,column:20}},loc:{start:{line:3,column:31},end:{line:16,column:1}},line:3},1:{name:"colorHighlightedLayer",decl:{start:{line:17,column:16},end:{line:17,column:37}},loc:{start:{line:17,column:45},end:{line:31,column:1}},line:17}},branchMap:{0:{loc:{start:{line:4,column:2},end:{line:8,column:3}},type:"if",locations:[{start:{line:4,column:2},end:{line:8,column:3}},{start:{line:6,column:9},end:{line:8,column:3}}],line:4},1:{loc:{start:{line:6,column:9},end:{line:8,column:3}},type:"if",locations:[{start:{line:6,column:9},end:{line:8,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6},2:{loc:{start:{line:9,column:2},end:{line:13,column:3}},type:"if",locations:[{start:{line:9,column:2},end:{line:13,column:3}},{start:{line:11,column:9},end:{line:13,column:3}}],line:9},3:{loc:{start:{line:18,column:2},end:{line:18,column:84}},type:"if",locations:[{start:{line:18,column:2},end:{line:18,column:84}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:18},4:{loc:{start:{line:18,column:6},end:{line:18,column:70}},type:"binary-expr",locations:[{start:{line:18,column:6},end:{line:18,column:12}},{start:{line:18,column:16},end:{line:18,column:43}},{start:{line:18,column:47},end:{line:18,column:70}}],line:18},5:{loc:{start:{line:19,column:24},end:{line:19,column:51}},type:"binary-expr",locations:[{start:{line:19,column:24},end:{line:19,column:45}},{start:{line:19,column:49},end:{line:19,column:51}}],line:19},6:{loc:{start:{line:21,column:2},end:{line:23,column:3}},type:"if",locations:[{start:{line:21,column:2},end:{line:23,column:3}
Line truncated
|
||||
${this._localize("errorNoResults")}</div>`;this._renderMessage(e)}_renderMessage(e){this._typeahead.update([]),this._typeahead.selected=null,this._typeahead.clear(),this._typeahead.renderError(e)}_localize(e){const t=Mee.language(this.options.language.split(",")[0]);return this.options.language&&WC?.[e][t]?WC[e][t]:WC[e].en}_fitBoundsForMarkers(){if(this._typeahead.data.length<1)return;const e=this._typeahead.data.filter(t=>typeof t!="string").slice(0,this.options.limit);if(this._clearEl.style.display="none",this.options.flyTo&&this._maplibregl&&this._map){const i=om({},{padding:100},this.options.flyTo),r=new this._maplibregl.LngLatBounds;for(const o of e)r.extend(o.geometry.coordinates);this._map.fitBounds(r,i)}return e.length>0&&this._maplibregl&&this._handleResultMarkers(e),this}setInput(e){return this._inputEl.value=e,this._typeahead.selected=null,this._typeahead.clear(),e.length>=this.options.minLength&&this.options.showResultsWhileTyping&&this._geocode(e),this}setProximity(e){return this.options.proximity=e,this}getProximity(){return this.options.proximity}setRenderFunction(e){return e&&typeof e=="function"&&(this._typeahead.render=e),this}getRenderFunction(){return this._typeahead.render}setLanguage(e){return this.options.language=e||this.options.language||navigator.language,this}getLanguage(){return this.options.language}getZoom(){return this.options.zoom}setZoom(e){return this.options.zoom=e,this}getFlyTo(){return this.options.flyTo}setFlyTo(e){return this.options.flyTo=e,this}getPlaceholder(){return this.options.placeholder}setPlaceholder(e){return this.placeholder=e||this.options.placeholder||this._localize("placeholder"),this._inputEl.placeholder=this.placeholder,this._inputEl.setAttribute("aria-label",this.placeholder),this}getBbox(){return this.options.bbox}setBbox(e){return this.options.bbox=e,this}getCountries(){return this.options.countries}setCountries(e){return this.options.countries=e,this}getTypes(){return this.options.types}setTypes(e){return this.options.types=e,this}getMinLength(){return this.options.minLength}setMinLength(e){return this.options.minLength=e,this._typeahead&&(this._typeahead.options.minLength=e),this}getLimit(){return this.options.limit}setLimit(e){return this.options.limit=e,this._typeahead&&(this._typeahead.options.limit=e),this}getFilter(){return this.options.filter}setFilter(e){return this.options.filter=e,this}setGeocoderApi(e){return this.geocoderApi=e,this}getGeocoderApi(){return this.geocoderApi}_handleMarker(e){if(!this._map)return;this._removeMarker();const i=om({},{color:"#4668F2"},this.options.marker);this.mapMarker=new this._maplibregl.Marker(i);let r;if(this.options.popup){const s=om({},{},this.options.popup);r=new this._maplibregl.Popup(s).setHTML(this.options.popupRender(e))}return e.center?(this.mapMarker.setLngLat(e.center).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(r)):e.geometry&&e.geometry.type&&e.geometry.type==="Point"&&e.geometry.coordinates&&(this.mapMarker.setLngLat(e.geometry.coordinates).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(r)),this}_removeMarker(){this.mapMarker&&(this.mapMarker.remove(),this.mapMarker=null)}_handleResultMarkers(e){if(!this._map)return;this._removeResultMarkers();let i=om({},{color:"#4668F2"},this.options.showResultMarkers);for(const r of e){let o;if(this.options.showResultMarkers){this.options.showResultMarkers&&this.options.showResultMarkers.element&&(o=this.options.showResultMarkers.element.cloneNode(!0),i=om(i,{element:o}));const s=new this._maplibregl.Marker(om({},i,{element:o}));let a;if(this.options.popup){const g=om({},{},this.options.popup);a=new this._maplibregl.Popup(g).setHTML(this.options.popupRender(r))}r.center?(s.setLngLat(r.center).addTo(this._map),this.options.popup&&s.setPopup(a)):r.geometry&&r.geometry.type&&r.geometry.type==="Point"&&r.geometry.coordinates&&(s.setLngLat(r.geometry.coordinates).addTo(this._map),this.options.popup&&s.setPopup(a)),this.resultMarkers.push(s)}}return this}_removeResultMarkers(){this.resultMarkers&&this.resultMarkers.length>0&&(this.resultMarkers.forEach(function(e){e.remove()}),this.resultMarkers=[])}on(e,t){return this._eventEmitter.on(e,t),this}once(e){return new Promise(t=>{this._eventEmitter.once(e,t)})}off(e,t){return this._eventEmitter.removeListener(e,t),this}}function xn(){var n="/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",e="1655c5d10102378b1e2627d777374c6f3c3f21a7",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",statementMap:{0:{start:{line:21,column:26},end:{line:27,column:3}},1:{start:{line:28,column:16},end:{line:28,column:55}},2:{start:{line:29,column:2},end:{line:31,column:3}},3:{start:{line:30,column:4},end:{line:30,column:30}},4:{start:{line:32,column:18},end:{line:32,column:20}},5:{start:{line:33,column:2},end:{line:38,column:5}},6:{start:{line:34,column:19},end:{line:34,column:53}},7:{start:{line:35,column:4},end:{line:Line truncated
|
||||
${this._localize("errorNoResults")}</div>`;this._renderMessage(e)}_renderMessage(e){this._typeahead.update([]),this._typeahead.selected=null,this._typeahead.clear(),this._typeahead.renderError(e)}_localize(e){const t=Mee.language(this.options.language.split(",")[0]);return this.options.language&&WC?.[e][t]?WC[e][t]:WC[e].en}_fitBoundsForMarkers(){if(this._typeahead.data.length<1)return;const e=this._typeahead.data.filter(t=>typeof t!="string").slice(0,this.options.limit);if(this._clearEl.style.display="none",this.options.flyTo&&this._maplibregl&&this._map){const i=om({},{padding:100},this.options.flyTo),r=new this._maplibregl.LngLatBounds;for(const o of e)r.extend(o.geometry.coordinates);this._map.fitBounds(r,i)}return e.length>0&&this._maplibregl&&this._handleResultMarkers(e),this}setInput(e){return this._inputEl.value=e,this._typeahead.selected=null,this._typeahead.clear(),e.length>=this.options.minLength&&this.options.showResultsWhileTyping&&this._geocode(e),this}setProximity(e){return this.options.proximity=e,this}getProximity(){return this.options.proximity}setRenderFunction(e){return e&&typeof e=="function"&&(this._typeahead.render=e),this}getRenderFunction(){return this._typeahead.render}setLanguage(e){return this.options.language=e||this.options.language||navigator.language,this}getLanguage(){return this.options.language}getZoom(){return this.options.zoom}setZoom(e){return this.options.zoom=e,this}getFlyTo(){return this.options.flyTo}setFlyTo(e){return this.options.flyTo=e,this}getPlaceholder(){return this.options.placeholder}setPlaceholder(e){return this.placeholder=e||this.options.placeholder||this._localize("placeholder"),this._inputEl.placeholder=this.placeholder,this._inputEl.setAttribute("aria-label",this.placeholder),this}getBbox(){return this.options.bbox}setBbox(e){return this.options.bbox=e,this}getCountries(){return this.options.countries}setCountries(e){return this.options.countries=e,this}getTypes(){return this.options.types}setTypes(e){return this.options.types=e,this}getMinLength(){return this.options.minLength}setMinLength(e){return this.options.minLength=e,this._typeahead&&(this._typeahead.options.minLength=e),this}getLimit(){return this.options.limit}setLimit(e){return this.options.limit=e,this._typeahead&&(this._typeahead.options.limit=e),this}getFilter(){return this.options.filter}setFilter(e){return this.options.filter=e,this}setGeocoderApi(e){return this.geocoderApi=e,this}getGeocoderApi(){return this.geocoderApi}_handleMarker(e){if(!this._map)return;this._removeMarker();const i=om({},{color:"#4668F2"},this.options.marker);this.mapMarker=new this._maplibregl.Marker(i);let r;if(this.options.popup){const s=om({},{},this.options.popup);r=new this._maplibregl.Popup(s).setHTML(this.options.popupRender(e))}return e.center?(this.mapMarker.setLngLat(e.center).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(r)):e.geometry&&e.geometry.type&&e.geometry.type==="Point"&&e.geometry.coordinates&&(this.mapMarker.setLngLat(e.geometry.coordinates).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(r)),this}_removeMarker(){this.mapMarker&&(this.mapMarker.remove(),this.mapMarker=null)}_handleResultMarkers(e){if(!this._map)return;this._removeResultMarkers();let i=om({},{color:"#4668F2"},this.options.showResultMarkers);for(const r of e){let o;if(this.options.showResultMarkers){this.options.showResultMarkers&&this.options.showResultMarkers.element&&(o=this.options.showResultMarkers.element.cloneNode(!0),i=om(i,{element:o}));const s=new this._maplibregl.Marker(om({},i,{element:o}));let a;if(this.options.popup){const g=om({},{},this.options.popup);a=new this._maplibregl.Popup(g).setHTML(this.options.popupRender(r))}r.center?(s.setLngLat(r.center).addTo(this._map),this.options.popup&&s.setPopup(a)):r.geometry&&r.geometry.type&&r.geometry.type==="Point"&&r.geometry.coordinates&&(s.setLngLat(r.geometry.coordinates).addTo(this._map),this.options.popup&&s.setPopup(a)),this.resultMarkers.push(s)}}return this}_removeResultMarkers(){this.resultMarkers&&this.resultMarkers.length>0&&(this.resultMarkers.forEach(function(e){e.remove()}),this.resultMarkers=[])}on(e,t){return this._eventEmitter.on(e,t),this}once(e){return new Promise(t=>{this._eventEmitter.once(e,t)})}off(e,t){return this._eventEmitter.removeListener(e,t),this}}function xn(){var n="/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",e="1655c5d10102378b1e2627d777374c6f3c3f21a7",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",statementMap:{0:{start:{line:21,column:26},end:{line:27,column:3}},1:{start:{line:28,column:16},end:{line:28,column:55}},2:{start:{line:29,column:2},end:{line:31,column:3}},3:{start:{line:30,column:4},end:{line:30,column:30}},4:{start:{line:32,column:18},end:{line:32,column:20}},5:{start:{line:33,column:2},end:{line:38,column:5}},6:{start:{line:34,column:19},end:{line:34,column:53}},7:{start:{line:35,column:4},end:{line:Line truncated
|
||||
`).reduce((r,o)=>Math.max(r,vN(n,o)),0);return t[e]=i,i}function Yie(n,e){const t=[],i=[],r=[];let o=0,s=0,a=0,p=0;for(let g=0,_=e.length;g<=_;g+=2){const E=e[g];if(E===`
|
||||
`||g===_){o=Math.max(o,s),r.push(s),s=0,a+=p,p=0;continue}const O=e[g+1]||n.font,B=vN(O,E);t.push(B),s+=B;const z=Qie(O);i.push(z),p=Math.max(p,z)}return{width:o,height:a,widths:t,heights:i,lineWidths:r}}function qie(n,e,t,i,r,o,s,a,p,g,_){n.save(),t!==1&&(n.globalAlpha===void 0?n.globalAlpha=E=>E.globalAlpha*=t:n.globalAlpha*=t),e&&n.transform.apply(n,e),i.contextInstructions?(n.translate(p,g),n.scale(_[0],_[1]),Hie(i,n)):_[0]<0||_[1]<0?(n.translate(p,g),n.scale(_[0],_[1]),n.drawImage(i,r,o,s,a,0,0,s,a)):n.drawImage(i,r,o,s,a,p,g,s*_[0],a*_[1]),n.restore()}function Hie(n,e){const t=n.contextInstructions;for(let i=0,r=t.length;i<r;i+=2)Array.isArray(t[i+1])?e[t[i]].apply(e,t[i+1]):e[t[i]]=t[i+1]}class i4{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=Hh(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new i4({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return _o()}getImage(e){return _o()}getHitDetectionImage(){return _o()}getPixelRatio(e){return 1}getImageState(){return _o()}getImageSize(){return _o()}getOrigin(){return _o()}getSize(){return _o()}setDisplacement(e){this.displacement_=e}setOpacity(e){this.opacity_=e}setRotateWithView(e){this.rotateWithView_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=Hh(e)}listenImageChange(e){_o()}load(){_o()}unlistenImageChange(e){_o()}ready(){return Promise.resolve()}}class r4 extends i4{constructor(e){super({opacity:1,rotateWithView:e.rotateWithView!==void 0?e.rotateWithView:!1,rotation:e.rotation!==void 0?e.rotation:0,scale:e.scale!==void 0?e.scale:1,displacement:e.displacement!==void 0?e.displacement:[0,0],declutterMode:e.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=e.fill!==void 0?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius=e.radius,this.radius2_=e.radius2,this.angle_=e.angle!==void 0?e.angle:0,this.stroke_=e.stroke!==void 0?e.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?pr.LOADING:pr.LOADED,this.imageState_===pr.LOADING&&this.ready().then(()=>this.imageState_=pr.LOADED),this.render()}clone(){const e=this.getScale(),t=new r4({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}getAnchor(){const e=this.size_,t=this.getDisplacement(),i=this.getScaleArray();return[e[0]/2-t[0]/i[0],e[1]/2+t[1]/i[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){const t=this.fill_?.getKey(),i=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(",");let r=Dp.get(i,null,null)?.getImage(1);if(!r){const o=this.renderOptions_,s=Math.ceil(o.size*e),a=$u(s,s);this.draw_(o,a,e),r=a.canvas,Dp.set(i,null,null,new mN(r,void 0,null,pr.LOADED,null))}return r}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,i){if(t===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return t;let r=this.radius,o=this.radius2_===void 0?r:this.radius2_;if(r<o){const ee=r;r=o,o=ee}const s=this.radius2_===void 0?this.points_:this.points_*2,a=2*Math.PI/s,p=o*Math.sin(a),g=Math.sqrt(o*o-p*p),_=r-g,E=Math.sqrt(p*p+_*_),O=E/p;if(e==="miter"&&O<=i)return O*t;const B=t/2/O,z=t/2*(_/E),Q=Math.sqrt((r+B)*(r+B)+z*z)-r;if(this.radius2_===void 0||e==="bevel")return Q*2;const Z=r*Math.sin(a),X=Math.sqrt(r*r-Z*Z),re=o-X,V=Math.sqrt(Z*Z+re*re)/Z;if(V<=i){const ee=V*t/2-o-r;return 2*Math.max(Q,ee)}return Q*2}createRenderOptions(){let e=sC,t=lC,i=0,r=null,o=0,s,a=0;this.stroke_&&(s=u0(this.stroke_.getColor()??cb),a=
Line truncated
|
||||
`||g===_){o=Math.max(o,s),r.push(s),s=0,a+=p,p=0;continue}const O=e[g+1]||n.font,B=vN(O,E);t.push(B),s+=B;const z=Qie(O);i.push(z),p=Math.max(p,z)}return{width:o,height:a,widths:t,heights:i,lineWidths:r}}function qie(n,e,t,i,r,o,s,a,p,g,_){n.save(),t!==1&&(n.globalAlpha===void 0?n.globalAlpha=E=>E.globalAlpha*=t:n.globalAlpha*=t),e&&n.transform.apply(n,e),i.contextInstructions?(n.translate(p,g),n.scale(_[0],_[1]),Hie(i,n)):_[0]<0||_[1]<0?(n.translate(p,g),n.scale(_[0],_[1]),n.drawImage(i,r,o,s,a,0,0,s,a)):n.drawImage(i,r,o,s,a,p,g,s*_[0],a*_[1]),n.restore()}function Hie(n,e){const t=n.contextInstructions;for(let i=0,r=t.length;i<r;i+=2)Array.isArray(t[i+1])?e[t[i]].apply(e,t[i+1]):e[t[i]]=t[i+1]}class i4{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=Hh(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new i4({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return _o()}getImage(e){return _o()}getHitDetectionImage(){return _o()}getPixelRatio(e){return 1}getImageState(){return _o()}getImageSize(){return _o()}getOrigin(){return _o()}getSize(){return _o()}setDisplacement(e){this.displacement_=e}setOpacity(e){this.opacity_=e}setRotateWithView(e){this.rotateWithView_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=Hh(e)}listenImageChange(e){_o()}load(){_o()}unlistenImageChange(e){_o()}ready(){return Promise.resolve()}}class r4 extends i4{constructor(e){super({opacity:1,rotateWithView:e.rotateWithView!==void 0?e.rotateWithView:!1,rotation:e.rotation!==void 0?e.rotation:0,scale:e.scale!==void 0?e.scale:1,displacement:e.displacement!==void 0?e.displacement:[0,0],declutterMode:e.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=e.fill!==void 0?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius=e.radius,this.radius2_=e.radius2,this.angle_=e.angle!==void 0?e.angle:0,this.stroke_=e.stroke!==void 0?e.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?pr.LOADING:pr.LOADED,this.imageState_===pr.LOADING&&this.ready().then(()=>this.imageState_=pr.LOADED),this.render()}clone(){const e=this.getScale(),t=new r4({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}getAnchor(){const e=this.size_,t=this.getDisplacement(),i=this.getScaleArray();return[e[0]/2-t[0]/i[0],e[1]/2+t[1]/i[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){const t=this.fill_?.getKey(),i=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(",");let r=Dp.get(i,null,null)?.getImage(1);if(!r){const o=this.renderOptions_,s=Math.ceil(o.size*e),a=$u(s,s);this.draw_(o,a,e),r=a.canvas,Dp.set(i,null,null,new mN(r,void 0,null,pr.LOADED,null))}return r}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,i){if(t===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return t;let r=this.radius,o=this.radius2_===void 0?r:this.radius2_;if(r<o){const ee=r;r=o,o=ee}const s=this.radius2_===void 0?this.points_:this.points_*2,a=2*Math.PI/s,p=o*Math.sin(a),g=Math.sqrt(o*o-p*p),_=r-g,E=Math.sqrt(p*p+_*_),O=E/p;if(e==="miter"&&O<=i)return O*t;const B=t/2/O,z=t/2*(_/E),Q=Math.sqrt((r+B)*(r+B)+z*z)-r;if(this.radius2_===void 0||e==="bevel")return Q*2;const Z=r*Math.sin(a),X=Math.sqrt(r*r-Z*Z),re=o-X,V=Math.sqrt(Z*Z+re*re)/Z;if(V<=i){const ee=V*t/2-o-r;return 2*Math.max(Q,ee)}return Q*2}createRenderOptions(){let e=sC,t=lC,i=0,r=null,o=0,s,a=0;this.stroke_&&(s=A0(this.stroke_.getColor()??cb),a=
Line truncated
|
||||
`,""),n.push(e,""),n}function jre(n,e,t){return t%2===0&&(n+=e),n}class Nre{constructor(e,t,i,r,o){this.overlaps=i,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=rf(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=o?new l7:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,i,r){const o=e+t+i+r;if(this.labels_[o])return this.labels_[o];const s=r?this.strokeStates[r]:null,a=i?this.fillStates[i]:null,p=this.textStates[t],g=this.pixelRatio,_=[p.scale[0]*g,p.scale[1]*g],E=p.justify?Z3[p.justify]:$5(Array.isArray(e)?e[0]:e,p.textAlign||hb),O=r&&s.lineWidth?s.lineWidth:0,B=Array.isArray(e)?e:String(e).split(`
|
||||
`).reduce(zre,[]),{width:z,height:G,widths:Q,heights:Z,lineWidths:X}=Yie(p,B),re=z+O,ie=[],V=(re+2)*_[0],ee=(G+O)*_[1],W={width:V<0?Math.floor(V):Math.ceil(V),height:ee<0?Math.floor(ee):Math.ceil(ee),contextInstructions:ie};(_[0]!=1||_[1]!=1)&&ie.push("scale",_),r&&(ie.push("strokeStyle",s.strokeStyle),ie.push("lineWidth",O),ie.push("lineCap",s.lineCap),ie.push("lineJoin",s.lineJoin),ie.push("miterLimit",s.miterLimit),ie.push("setLineDash",[s.lineDash]),ie.push("lineDashOffset",s.lineDashOffset)),i&&ie.push("fillStyle",a.fillStyle),ie.push("textBaseline","middle"),ie.push("textAlign","center");const he=.5-E;let ge=E*re+he*O;const ve=[],_e=[];let Me=0,be=0,ze=0,Ce=0,Fe;for(let ot=0,mt=B.length;ot<mt;ot+=2){const it=B[ot];if(it===`
|
||||
`){be+=Me,Me=0,ge=E*re+he*O,++Ce;continue}const ue=B[ot+1]||p.font;ue!==Fe&&(r&&ve.push("font",ue),i&&_e.push("font",ue),Fe=ue),Me=Math.max(Me,Z[ze]);const We=[it,ge+he*Q[ze]+E*(Q[ze]-X[Ce]),.5*(O+Me)+be];ge+=Q[ze],r&&ve.push("strokeText",We),i&&_e.push("fillText",We),++ze}return Array.prototype.push.apply(ie,ve),Array.prototype.push.apply(ie,_e),this.labels_[o]=W,W}replayTextBackground_(e,t,i,r,o,s,a){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,i),e.lineTo.apply(e,r),e.lineTo.apply(e,o),e.lineTo.apply(e,t),s&&(this.alignAndScaleFill_=s[2],e.fillStyle=s[1],this.fill_(e)),a&&(this.setStrokeStyle_(e,a),e.stroke())}calculateImageOrLabelDimensions_(e,t,i,r,o,s,a,p,g,_,E,O,B,z,G,Q){a*=O[0],p*=O[1];let Z=i-a,X=r-p;const re=o+g>e?e-g:o,ie=s+_>t?t-_:s,V=z[3]+re*O[0]+z[1],ee=z[0]+ie*O[1]+z[2],W=Z-z[3],he=X-z[0];(G||E!==0)&&(Ig[0]=W,Tg[0]=W,Ig[1]=he,N0[1]=he,N0[0]=W+V,G0[0]=N0[0],G0[1]=he+ee,Tg[1]=G0[1]);let ge;return E!==0?(ge=m0(rf(),i,r,1,1,E,-i,-r),uc(ge,Ig),uc(ge,N0),uc(ge,G0),uc(ge,Tg),eg(Math.min(Ig[0],N0[0],G0[0],Tg[0]),Math.min(Ig[1],N0[1],G0[1],Tg[1]),Math.max(Ig[0],N0[0],G0[0],Tg[0]),Math.max(Ig[1],N0[1],G0[1],Tg[1]),tv)):eg(Math.min(W,W+V),Math.min(he,he+ee),Math.max(W,W+V),Math.max(he,he+ee),tv),B&&(Z=Math.round(Z),X=Math.round(X)),{drawImageX:Z,drawImageY:X,drawImageW:re,drawImageH:ie,originX:g,originY:_,declutterBox:{minX:tv[0],minY:tv[1],maxX:tv[2],maxY:tv[3],value:Q},canvasTransform:ge,scale:O}}replayImageOrLabel_(e,t,i,r,o,s,a){const p=!!(s||a),g=r.declutterBox,_=a?a[2]*r.scale[0]/2:0;return g.minX-_<=t[0]&&g.maxX+_>=0&&g.minY-_<=t[1]&&g.maxY+_>=0&&(p&&this.replayTextBackground_(e,Ig,N0,G0,Tg,s,a),qie(e,r.canvasTransform,o,i,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const i=uc(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(i[0]%r,i[1]%r),t!==1&&e.scale(t,t),e.rotate(this.viewRotation_)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],t[1]&&(e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6]))}drawLabelWithPointPlacement_(e,t,i,r){const o=this.textStates[t],s=this.createLabel(e,t,r,i),a=this.strokeStates[i],p=this.pixelRatio,g=$5(Array.isArray(e)?e[0]:e,o.textAlign||hb),_=Z3[o.textBaseline||Q3],E=a&&a.lineWidth?a.lineWidth:0,O=s.width/p-2*o.scale[0],B=g*O+2*(.5-g)*E,z=_*s.height/p+2*(.5-_)*E;return{label:s,anchorX:B,anchorY:z}}execute_(e,t,i,r,o,s,a,p){const g=this.zIndexContext_;let _;this.pixelCoordinates_&&s1(i,this.renderedTransform_)?_=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),_=i1(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),Qte(this.renderedTransform_,i));let E=0;const O=r.length;let B=0,z,G,Q,Z,X,re,ie,V,ee,W,he,ge,ve,_e=0,Me=0;const be=this.coordinateCache_,ze=this.viewRotation_,Ce=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,Fe={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:ze},ot=this.instructions!=r||this.overlaps?0:200;let mt,it,ue,We;for(;E<O;){const tt=r[E];switch(tt[0]){case qr.BEGIN_GEOMETRY:mt=tt[1],We=tt[3],mt.getGeometry()?a!==void 0&&!gA(a,We.getExtent())?E=tt[2]+1:++E:E=tt[2],g&&(g.zIndex=tt[4]);break;case qr.BEGIN_PATH:_e>ot&&(this.fill_(e),_e=0),Me>ot&&(e.stroke(),Me=0),!_e&&!Me&&(e.beginPath(),X=NaN,re=NaN),++E;break;case qr.CIRCLE:B=tt[1];const Et=_[B],gt=_[B+1],xt=_[B+2],Kt=_[B+3],je=xt-Et,Ke=Kt-gt,Ue=Math.sqrt(je*je+Ke*Ke);e.moveTo(Et+Ue,gt),e.arc(Et,gt,Ue,0,2*Math.PI,!0),++E;break;case qr.CLOSE_PATH:e.closePath(),++E;break;case qr.CUSTOM:B=tt[1],z=tt[2];const Ve=tt[3],bt=tt[4],vt=tt[5];Fe.geometry=Ve,Fe.feature=mt,E in be||(be[E]=[]);const It=be[E];vt?vt(_,B,z,2,It):(It[0]=_[B],It[1]=_[B+1],It.length=2),g&&(g.zIndex=tt[6]),bt(It,Fe),++E;break;case qr.DRAW_IMAGE:B=tt[1],z=tt[2],ee=tt[3],G=tt[4],Q=tt[5];let Yt=tt[6];const Ut=tt[7],on=tt[8],Vn=tt[9],Wt=tt[10];let Wn=tt[11];const On=tt[12];let Bn=tt[13];Z=tt[14]||"declutter";const Tn=tt[15];if(!ee&&tt.length>=20){W=tt[19],he=tt[20],ge=tt[21],ve=tt[22];const wn=this.drawLabelWithPointPlacement_(W,he,ge,ve);ee=wn.label,tt[3]=ee;const oi=tt[23];G=(wn.anchorX-oi)*this.pixelRatio,tt[4]=G;const Yn=tt[24];Q=(wn.anchorY-Yn)*this.pixelRatio,tt[5]=Q,Yt=ee.height,tt[6]=Yt,Bn=ee.width,tt[13]=Bn}let Oi;tt.length>25&&(Oi=tt[25]);let $n,Lt,De;tt.length>17?($n=tt[16],Lt=tt[17],De=tt[18]):($n=$1,Lt=null,De=null),Wt&&Ce?Wn+=ze:!Wt&&!Ce&&(Wn-=ze);let de=0;for(;B<z;B+=2){if(Oi&&Oi[de++]<Bn/this.pixelRatio)continue;const wn=this.calculateImageOrLabelDimensions_(ee.width,ee.height,_[B],_[B+1],Bn,Yt,G,Q,on,Vn,Wn,On,o,$n,!!Lt||!!De,mt),oi=[e,t,ee,wn,Ut,Lt,De];if(p){let Yn,$i,ir;if(Tn){const ni=z-B;if(!Tn[ni]){Tn[ni]={args:oi,declutterMode:Z};continue}const qi=Tn[ni];Yn=qi.args,$i=qi.declutterMode,delete Tn[ni],ir=ck(Yn)}let Ii,di;if(Yn&&($i!=="declutter"||!p.collides(ir))&&(Ii=!0),(Z!=="declutter"||!p.collides(wn.declutterBox))&&(di=!0),$i==="declutter"&&Z==="declutter"){
Line truncated
|
||||
`){be+=Me,Me=0,ge=E*re+he*O,++Ce;continue}const ue=B[ot+1]||p.font;ue!==Fe&&(r&&ve.push("font",ue),i&&_e.push("font",ue),Fe=ue),Me=Math.max(Me,Z[ze]);const We=[it,ge+he*Q[ze]+E*(Q[ze]-X[Ce]),.5*(O+Me)+be];ge+=Q[ze],r&&ve.push("strokeText",We),i&&_e.push("fillText",We),++ze}return Array.prototype.push.apply(ie,ve),Array.prototype.push.apply(ie,_e),this.labels_[o]=W,W}replayTextBackground_(e,t,i,r,o,s,a){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,i),e.lineTo.apply(e,r),e.lineTo.apply(e,o),e.lineTo.apply(e,t),s&&(this.alignAndScaleFill_=s[2],e.fillStyle=s[1],this.fill_(e)),a&&(this.setStrokeStyle_(e,a),e.stroke())}calculateImageOrLabelDimensions_(e,t,i,r,o,s,a,p,g,_,E,O,B,z,G,Q){a*=O[0],p*=O[1];let Z=i-a,X=r-p;const re=o+g>e?e-g:o,ie=s+_>t?t-_:s,V=z[3]+re*O[0]+z[1],ee=z[0]+ie*O[1]+z[2],W=Z-z[3],he=X-z[0];(G||E!==0)&&(Ig[0]=W,Tg[0]=W,Ig[1]=he,N0[1]=he,N0[0]=W+V,G0[0]=N0[0],G0[1]=he+ee,Tg[1]=G0[1]);let ge;return E!==0?(ge=g0(rf(),i,r,1,1,E,-i,-r),uc(ge,Ig),uc(ge,N0),uc(ge,G0),uc(ge,Tg),eg(Math.min(Ig[0],N0[0],G0[0],Tg[0]),Math.min(Ig[1],N0[1],G0[1],Tg[1]),Math.max(Ig[0],N0[0],G0[0],Tg[0]),Math.max(Ig[1],N0[1],G0[1],Tg[1]),tv)):eg(Math.min(W,W+V),Math.min(he,he+ee),Math.max(W,W+V),Math.max(he,he+ee),tv),B&&(Z=Math.round(Z),X=Math.round(X)),{drawImageX:Z,drawImageY:X,drawImageW:re,drawImageH:ie,originX:g,originY:_,declutterBox:{minX:tv[0],minY:tv[1],maxX:tv[2],maxY:tv[3],value:Q},canvasTransform:ge,scale:O}}replayImageOrLabel_(e,t,i,r,o,s,a){const p=!!(s||a),g=r.declutterBox,_=a?a[2]*r.scale[0]/2:0;return g.minX-_<=t[0]&&g.maxX+_>=0&&g.minY-_<=t[1]&&g.maxY+_>=0&&(p&&this.replayTextBackground_(e,Ig,N0,G0,Tg,s,a),qie(e,r.canvasTransform,o,i,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const i=uc(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(i[0]%r,i[1]%r),t!==1&&e.scale(t,t),e.rotate(this.viewRotation_)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],t[1]&&(e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6]))}drawLabelWithPointPlacement_(e,t,i,r){const o=this.textStates[t],s=this.createLabel(e,t,r,i),a=this.strokeStates[i],p=this.pixelRatio,g=$5(Array.isArray(e)?e[0]:e,o.textAlign||hb),_=Z3[o.textBaseline||Q3],E=a&&a.lineWidth?a.lineWidth:0,O=s.width/p-2*o.scale[0],B=g*O+2*(.5-g)*E,z=_*s.height/p+2*(.5-_)*E;return{label:s,anchorX:B,anchorY:z}}execute_(e,t,i,r,o,s,a,p){const g=this.zIndexContext_;let _;this.pixelCoordinates_&&s1(i,this.renderedTransform_)?_=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),_=i1(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),Qte(this.renderedTransform_,i));let E=0;const O=r.length;let B=0,z,G,Q,Z,X,re,ie,V,ee,W,he,ge,ve,_e=0,Me=0;const be=this.coordinateCache_,ze=this.viewRotation_,Ce=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,Fe={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:ze},ot=this.instructions!=r||this.overlaps?0:200;let mt,it,ue,We;for(;E<O;){const tt=r[E];switch(tt[0]){case qr.BEGIN_GEOMETRY:mt=tt[1],We=tt[3],mt.getGeometry()?a!==void 0&&!gA(a,We.getExtent())?E=tt[2]+1:++E:E=tt[2],g&&(g.zIndex=tt[4]);break;case qr.BEGIN_PATH:_e>ot&&(this.fill_(e),_e=0),Me>ot&&(e.stroke(),Me=0),!_e&&!Me&&(e.beginPath(),X=NaN,re=NaN),++E;break;case qr.CIRCLE:B=tt[1];const Et=_[B],gt=_[B+1],xt=_[B+2],Kt=_[B+3],je=xt-Et,Ke=Kt-gt,Ue=Math.sqrt(je*je+Ke*Ke);e.moveTo(Et+Ue,gt),e.arc(Et,gt,Ue,0,2*Math.PI,!0),++E;break;case qr.CLOSE_PATH:e.closePath(),++E;break;case qr.CUSTOM:B=tt[1],z=tt[2];const Ve=tt[3],bt=tt[4],vt=tt[5];Fe.geometry=Ve,Fe.feature=mt,E in be||(be[E]=[]);const It=be[E];vt?vt(_,B,z,2,It):(It[0]=_[B],It[1]=_[B+1],It.length=2),g&&(g.zIndex=tt[6]),bt(It,Fe),++E;break;case qr.DRAW_IMAGE:B=tt[1],z=tt[2],ee=tt[3],G=tt[4],Q=tt[5];let Yt=tt[6];const Ut=tt[7],on=tt[8],Vn=tt[9],Wt=tt[10];let Wn=tt[11];const On=tt[12];let Bn=tt[13];Z=tt[14]||"declutter";const Tn=tt[15];if(!ee&&tt.length>=20){W=tt[19],he=tt[20],ge=tt[21],ve=tt[22];const wn=this.drawLabelWithPointPlacement_(W,he,ge,ve);ee=wn.label,tt[3]=ee;const oi=tt[23];G=(wn.anchorX-oi)*this.pixelRatio,tt[4]=G;const Yn=tt[24];Q=(wn.anchorY-Yn)*this.pixelRatio,tt[5]=Q,Yt=ee.height,tt[6]=Yt,Bn=ee.width,tt[13]=Bn}let Oi;tt.length>25&&(Oi=tt[25]);let $n,Lt,De;tt.length>17?($n=tt[16],Lt=tt[17],De=tt[18]):($n=$1,Lt=null,De=null),Wt&&Ce?Wn+=ze:!Wt&&!Ce&&(Wn-=ze);let de=0;for(;B<z;B+=2){if(Oi&&Oi[de++]<Bn/this.pixelRatio)continue;const wn=this.calculateImageOrLabelDimensions_(ee.width,ee.height,_[B],_[B+1],Bn,Yt,G,Q,on,Vn,Wn,On,o,$n,!!Lt||!!De,mt),oi=[e,t,ee,wn,Ut,Lt,De];if(p){let Yn,$i,ir;if(Tn){const ni=z-B;if(!Tn[ni]){Tn[ni]={args:oi,declutterMode:Z};continue}const qi=Tn[ni];Yn=qi.args,$i=qi.declutterMode,delete Tn[ni],ir=ck(Yn)}let Ii,di;if(Yn&&($i!=="declutter"||!p.collides(ir))&&(Ii=!0),(Z!=="declutter"||!p.collides(wn.declutterBox))&&(di=!0),$i==="declutter"&&Z==="declutter"){
Line truncated
|
||||
`),r=ooe.slice(0,Math.round(e/.1));for(let o=0,s=i.length;o<s;++o)o>0&&(t+=`
|
||||
`),t+=i[o].split("").join(r);return t}return n}let J5;function WN(){return J5||(J5=A4(1,1).getContext("2d")),J5}function L1(n,e){return WN().measureText(n).width+(n.length-1)*e}const e2={};W1.on("propertychange",()=>{for(const n in e2)delete e2[n]});function lO(n,e,t,i){if(n.indexOf(`
|
||||
`)!==-1){const s=n.split(`
|
||||
`),a=[];for(let p=0,g=s.length;p<g;++p)a.push(lO(s[p],e,t,i));return a.join(`
|
||||
`)}const r=t+","+e+","+n+","+i;let o=e2[r];if(!o){const s=n.split(" ");if(s.length>1){const a=WN();a.font=e;const g=a.measureText("M").width*t;let _="";const E=[];for(let O=0,B=s.length;O<B;++O){const z=s[O],G=_+(_?" ":"")+z;L1(G,i)<=g?_=G:(_&&E.push(_),_=z)}_&&E.push(_);for(let O=0,B=E.length;O<B&&B>1;++O){const z=E[O];if(L1(z,i)<g*.35){const G=O>0?L1(E[O-1],i):1/0,Q=O<B-1?L1(E[O+1],i):1/0;E.splice(O,1),B-=1,G<Q?(E[O-1]+=" "+z,O-=1):E[O]=z+" "+E[O]}}for(let O=0,B=E.length-1;O<B;++O){const z=E[O],G=E[O+1];if(L1(z,i)>g*.7&&L1(G,i)<g*.6){const Q=z.split(" "),Z=Q.pop();L1(Z,i)<g*.2&&(E[O]=Q.join(" "),E[O+1]=Z+" "+G),B-=1}}o=E.join(`
|
||||
`)}else o=n;o=sO(o,i),e2[r]=o}return o}const aoe=["Arial","Courier New","Times New Roman","Verdana","sans-serif","serif","monospace","cursive","fantasy"],_k={};function soe(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){let t;for(let i=0,r=n.length;i<r;++i){const o=n[i];if(o in _k)continue;_k[o]=!0;const a=FB(o,16).split(" ");t||(t=[]),t.push([a.slice(3).join(" ").replace(/"/g,""),a[1],a[0]])}return t&&(async()=>{await document.fonts.ready;for(let i=0,r=t.length;i<r;++i){const o=t[i],s=o[0];if(aoe.includes(s))continue;const a=o[1],p=o[2];if(!(await document.fonts.load(`${p} ${a} 16px "${s}"`)).some(_=>_.family.replace(/^['"]|['"]$/g,"").toLowerCase()===s.toLowerCase()&&_.weight==a&&_.style===p)){const _=e.replace("{font-family}",s.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",s.replace(/ /g,"+")).replace("{fontweight}",a).replace("{-fontstyle}",p.replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",p);if(!document.querySelector('link[href="'+_+'"]')){const E=document.createElement("link");E.href=_,E.rel="stylesheet",document.head.appendChild(E)}}}})(),n}const loe={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},uoe={center:[.5,.5],left:[0,.5],right:[1,.5],top:[.5,0],bottom:[.5,1],"top-left":[0,0],"top-right":[1,0],"bottom-left":[0,1],"bottom-right":[1,1]},Aoe=function(n,e){const t=L2(n,e);if(t.result==="error")throw new Error(t.value.map(i=>`${i.key}: ${i.message}`).join(", "));return t.value},Nf={zoom:0,distanceFromCenter:0};Ff.register(R2,{...Ff.definitions,pitch:[{kind:"number"},[],n=>Nf.pitch||90],"distance-from-center":[{kind:"number"},[],n=>Nf.distanceFromCenter||0]});let Kx,eM;function Mr(n,e,t,i,r,o){const s=n.id;r||(r={},console.warn("No functionCache provided to getValue()")),r[s]||(r[s]={});const a=r[s];if(!a[t]){let p=(n[e]||pm)[t];const g=Kf[`${e}_${n.type}`][t];p===void 0&&(p=g.default);let _=gC(p);if(!_&&mC(p)&&(p=f8(p,g),_=!0),_){const E=Aoe(p,g);a[t]=E.evaluate.bind(E)}else g.type=="color"&&(p=ll.parse(p)),a[t]=function(){return p}}return a[t](Nf,i,o)}function bk(n,e,t,i){return Mr(n,"layout",`${t}-allow-overlap`,e,i)?Mr(n,"layout",`${t}-ignore-placement`,e,i)?"none":"obstacle":"declutter"}function coe(n,e,t,i){if(i||console.warn("No filterCache provided to evaluateFilter()"),!(n in i))try{i[n]=wZ(e).filter}catch(r){console.warn("Filter will evaluate to false: "+r.message),i[n]=function(){return!1}}return i[n](Nf,t)}function Kg(n,e){if(n){if(n.a===0||e===0)return;const t=n.a;return e=e===void 0?1:e,t===0?"transparent":"rgba("+Math.round(n.r*255/t)+","+Math.round(n.g*255/t)+","+Math.round(n.b*255/t)+","+t*e+")"}return n}const hoe=/\{[^{}}]*\}/g;function tM(n,e){return n.replace(hoe,function(t){return e[t.slice(1,-1)]||""})}function xk(n,e){let t=n.split(":")[0];return t===n&&(t="default"),e[t]}const doe={};function foe(n,e,t,i=p0,r=void 0,o=void 0,s=void 0,a=void 0){if(typeof e=="string"&&(e=JSON.parse(e)),e.version!=8)throw new Error("glStyle version 8 required.");doe[noe(e,n)]=Array.from(arguments);const p={};(typeof o=="string"||o instanceof Request||o instanceof Response||o instanceof Promise)&&(o={default:o});for(const V in o){const ee=o[V];rC(()=>ee).then(async W=>{let he;if(typeof Image<"u"){const ge=new Image;if(typeof W=="string")ge.crossOrigin="anonymous",ge.src=W;else{let ve;W instanceof Request?ve=await fetch(W):W instanceof Response&&(ve=W);const _e=await ve.blob();he=URL.createObjectURL(_e),ge.src=he}ge.addEventListener("load",function ve(){ge.removeEventListener("load",ve),p[V]={image:ge,size:[ge.width,ge.height]},n.changed(),he&&URL.revokeObjectURL(he)}),ge.addEventListener("error",function ve(){URL.revokeObjectURL(he),ge.removeEventListener("error",ve)})}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const ge=self;ge.postMessage({action:"loadImage",src:W}),ge.addEventListener("message",function(_e){_e.data.action==="imageLoaded"&&_e.data.src===W&&(p[V]={image:_e.data.image,size:[_e.data.image.width,_e.data.image.height]})})}})}const g=VO(e.layers),_={},E=[],O={},B={},z=jN(e),G=ioe(e);let Q;for(let V=0,ee=g.length;V<ee;++V){const W=g[V],he=W.id;if(typeof t=="string"&&W.source==t||Array.isArray(t)&&t.indexOf(he)!==-1){const ge=W["source-layer"];if(Q){if(W.source!==Q)throw new Error(`Layer "${he}" does not use source "${Q}`)}else{Q=W.source;const _e=e.sources[Q];if(!_e)throw new Error(`Source "${Q}" is not defined`);const Me=_e.type;if(Me!=="vector"&&Me!=="geojson")throw new Error(`Source "${Q}" is not of type "vector" or "geojson", but "${Me}"`)}let ve=_[ge];ve||(ve=[],_[ge]=ve),ve.push({layer:W,index:V}),E.push(he)}}const Z=new qg,X=new V0,re=[],ie=function(V,ee,W){const he=n.getSource?.()?.format_?.layerName_??"mvt:layer",ge=V.getProperties(),ve=_[ge[he]];if(!ve)return;let _e=i.indexOf(ee);_e==-1&&(_e=f7(ee,i)),Nf.zoom=_e,Nf.distanceFromCenter=0;const Me=V.getGeometry(),be=loe[Me.getType()],ze=n.get("map");if(ze&&ze instanceof l4&&be===1){const mt=ze.gLine truncated
|
||||
`)}else o=n;o=sO(o,i),e2[r]=o}return o}const aoe=["Arial","Courier New","Times New Roman","Verdana","sans-serif","serif","monospace","cursive","fantasy"],_k={};function soe(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){let t;for(let i=0,r=n.length;i<r;++i){const o=n[i];if(o in _k)continue;_k[o]=!0;const a=FB(o,16).split(" ");t||(t=[]),t.push([a.slice(3).join(" ").replace(/"/g,""),a[1],a[0]])}return t&&(async()=>{await document.fonts.ready;for(let i=0,r=t.length;i<r;++i){const o=t[i],s=o[0];if(aoe.includes(s))continue;const a=o[1],p=o[2];if(!(await document.fonts.load(`${p} ${a} 16px "${s}"`)).some(_=>_.family.replace(/^['"]|['"]$/g,"").toLowerCase()===s.toLowerCase()&&_.weight==a&&_.style===p)){const _=e.replace("{font-family}",s.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",s.replace(/ /g,"+")).replace("{fontweight}",a).replace("{-fontstyle}",p.replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",p);if(!document.querySelector('link[href="'+_+'"]')){const E=document.createElement("link");E.href=_,E.rel="stylesheet",document.head.appendChild(E)}}}})(),n}const loe={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},uoe={center:[.5,.5],left:[0,.5],right:[1,.5],top:[.5,0],bottom:[.5,1],"top-left":[0,0],"top-right":[1,0],"bottom-left":[0,1],"bottom-right":[1,1]},Aoe=function(n,e){const t=L2(n,e);if(t.result==="error")throw new Error(t.value.map(i=>`${i.key}: ${i.message}`).join(", "));return t.value},Nf={zoom:0,distanceFromCenter:0};Ff.register(R2,{...Ff.definitions,pitch:[{kind:"number"},[],n=>Nf.pitch||90],"distance-from-center":[{kind:"number"},[],n=>Nf.distanceFromCenter||0]});let Kx,eM;function Mr(n,e,t,i,r,o){const s=n.id;r||(r={},console.warn("No functionCache provided to getValue()")),r[s]||(r[s]={});const a=r[s];if(!a[t]){let p=(n[e]||pm)[t];const g=Kf[`${e}_${n.type}`][t];p===void 0&&(p=g.default);let _=gC(p);if(!_&&mC(p)&&(p=f8(p,g),_=!0),_){const E=Aoe(p,g);a[t]=E.evaluate.bind(E)}else g.type=="color"&&(p=ll.parse(p)),a[t]=function(){return p}}return a[t](Nf,i,o)}function bk(n,e,t,i){return Mr(n,"layout",`${t}-allow-overlap`,e,i)?Mr(n,"layout",`${t}-ignore-placement`,e,i)?"none":"obstacle":"declutter"}function coe(n,e,t,i){if(i||console.warn("No filterCache provided to evaluateFilter()"),!(n in i))try{i[n]=wZ(e).filter}catch(r){console.warn("Filter will evaluate to false: "+r.message),i[n]=function(){return!1}}return i[n](Nf,t)}function Kg(n,e){if(n){if(n.a===0||e===0)return;const t=n.a;return e=e===void 0?1:e,t===0?"transparent":"rgba("+Math.round(n.r*255/t)+","+Math.round(n.g*255/t)+","+Math.round(n.b*255/t)+","+t*e+")"}return n}const hoe=/\{[^{}}]*\}/g;function tM(n,e){return n.replace(hoe,function(t){return e[t.slice(1,-1)]||""})}function xk(n,e){let t=n.split(":")[0];return t===n&&(t="default"),e[t]}const doe={};function foe(n,e,t,i=m0,r=void 0,o=void 0,s=void 0,a=void 0){if(typeof e=="string"&&(e=JSON.parse(e)),e.version!=8)throw new Error("glStyle version 8 required.");doe[noe(e,n)]=Array.from(arguments);const p={};(typeof o=="string"||o instanceof Request||o instanceof Response||o instanceof Promise)&&(o={default:o});for(const V in o){const ee=o[V];rC(()=>ee).then(async W=>{let he;if(typeof Image<"u"){const ge=new Image;if(typeof W=="string")ge.crossOrigin="anonymous",ge.src=W;else{let ve;W instanceof Request?ve=await fetch(W):W instanceof Response&&(ve=W);const _e=await ve.blob();he=URL.createObjectURL(_e),ge.src=he}ge.addEventListener("load",function ve(){ge.removeEventListener("load",ve),p[V]={image:ge,size:[ge.width,ge.height]},n.changed(),he&&URL.revokeObjectURL(he)}),ge.addEventListener("error",function ve(){URL.revokeObjectURL(he),ge.removeEventListener("error",ve)})}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const ge=self;ge.postMessage({action:"loadImage",src:W}),ge.addEventListener("message",function(_e){_e.data.action==="imageLoaded"&&_e.data.src===W&&(p[V]={image:_e.data.image,size:[_e.data.image.width,_e.data.image.height]})})}})}const g=VO(e.layers),_={},E=[],O={},B={},z=jN(e),G=ioe(e);let Q;for(let V=0,ee=g.length;V<ee;++V){const W=g[V],he=W.id;if(typeof t=="string"&&W.source==t||Array.isArray(t)&&t.indexOf(he)!==-1){const ge=W["source-layer"];if(Q){if(W.source!==Q)throw new Error(`Layer "${he}" does not use source "${Q}`)}else{Q=W.source;const _e=e.sources[Q];if(!_e)throw new Error(`Source "${Q}" is not defined`);const Me=_e.type;if(Me!=="vector"&&Me!=="geojson")throw new Error(`Source "${Q}" is not of type "vector" or "geojson", but "${Me}"`)}let ve=_[ge];ve||(ve=[],_[ge]=ve),ve.push({layer:W,index:V}),E.push(he)}}const Z=new qg,X=new V0,re=[],ie=function(V,ee,W){const he=n.getSource?.()?.format_?.layerName_??"mvt:layer",ge=V.getProperties(),ve=_[ge[he]];if(!ve)return;let _e=i.indexOf(ee);_e==-1&&(_e=f7(ee,i)),Nf.zoom=_e,Nf.distanceFromCenter=0;const Me=V.getGeometry(),be=loe[Me.getType()],ze=n.get("map");if(ze&&ze instanceof l4&&be===1){const mt=ze.gLine truncated
|
||||
`)return De.push(`
|
||||
`,""),De;if(be==2)return De.push(sO(Ie,Tn),me),De;Ie=lO(Ie,me,Oi,Tn).split(`
|
||||
`);for(let Qe=0,At=Ie.length;Qe<At;++Qe)Qe>0&&De.push(`
|
||||
`,""),De.push(Ie[Qe],me);return De},[]):Wt=tM(Lt,ge).trim(),Kt=Mr(We,"paint","text-opacity",Ce,z,Fe)}if(Wt&&Kt&&!Vn){vt||(++ot,Ve=re[ot],(!Ve||!Ve.getText()||Ve.getFill()||Ve.getStroke())&&(Ve=new Rf,re[ot]=Ve),Ve.setImage(void 0),Ve.setGeometry(void 0));const $n=bk(We,Ce,"text",z);Ve.getText()||Ve.setText(It),It=Ve.getText(),(!It||"getDeclutterMode"in It&&It.getDeclutterMode()!==$n)&&(It=new o4({padding:[2,2,2,2],declutterMode:$n}),Ve.setText(It));const Lt=Mr(We,"layout","text-transform",Ce,z,Fe);Lt=="uppercase"?Wt=Array.isArray(Wt)?Wt.map((kt,rt)=>rt%2?kt:kt.toUpperCase()):Wt.toUpperCase():Lt=="lowercase"&&(Wt=Array.isArray(Wt)?Wt.map((kt,rt)=>rt%2?kt:kt.toLowerCase()):Wt.toLowerCase());const De=Array.isArray(Wt)?Wt:be==2?sO(Wt,Tn):lO(Wt,Wn,Oi,Tn);if(It.setText(De),It.setFont(Wn),It.setRotation(X5(Mr(We,"layout","text-rotate",Ce,z,Fe))),typeof It.setKeepUpright=="function"){const kt=Mr(We,"layout","text-keep-upright",Ce,z,Fe);It.setKeepUpright(kt)}const de=Mr(We,"layout","text-anchor",Ce,z,Fe),oe=vt||be==1?"point":Mr(We,"layout","symbol-placement",Ce,z,Fe);let le;if(oe==="line-center"?(It.setPlacement("line"),le="center"):It.setPlacement(oe),oe==="line"&&typeof It.setRepeat=="function"){const kt=Mr(We,"layout","symbol-spacing",Ce,z,Fe);It.setRepeat(kt*2)}It.setOverflow(oe==="point");let me=Mr(We,"paint","text-halo-width",Ce,z,Fe);const Ie=Mr(We,"layout","text-offset",Ce,z,Fe),Qe=Mr(We,"paint","text-translate",Ce,z,Fe);let At=0,He=0;if(oe=="point"){le="center",de.indexOf("left")!==-1?(le="left",He=me):de.indexOf("right")!==-1&&(le="right",He=-me);const kt=Mr(We,"layout","text-rotation-alignment",Ce,z,Fe);It.setRotateWithView(kt=="map")}else It.setMaxAngle(X5(Mr(We,"layout","text-max-angle",Ce,z,Fe))*Wt.length/De.length),It.setRotateWithView(!1);It.setTextAlign(le);let Re="middle";de.indexOf("bottom")==0?(Re="bottom",At=-me-.5*(On-1)*Bn):de.indexOf("top")==0&&(Re="top",At=me+.5*(On-1)*Bn),It.setTextBaseline(Re);const Ze=Mr(We,"layout","text-justify",Ce,z,Fe);It.setJustify(Ze==="auto"?void 0:Ze),It.setOffsetX(Ie[0]*Bn+He+Qe[0]),It.setOffsetY(Ie[1]*Bn+At+Qe[1]),X.setColor(Kg(Mr(We,"paint","text-color",Ce,z,Fe),Kt)),It.setFill(X);const y=Kg(Mr(We,"paint","text-halo-color",Ce,z,Fe),Kt);if(y&&me>0){Z.setColor(y),me*=2;const kt=.5*Bn;Z.setWidth(me<=kt?me:kt),It.setStroke(Z)}else It.setStroke(void 0);const yt=Mr(We,"layout","text-padding",Ce,z,Fe),dt=It.getPadding();yt!==dt[0]&&(dt[0]=yt,dt[1]=yt,dt[2]=yt,dt[3]=yt),Ve.setZIndex(bt)}}}if(ot>-1)return re.length=ot+1,re};return n.setStyle(ie),n.set("mapbox-layers",E),n.set("mapbox-source",Q),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),ie}class QN{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=u4,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let i=t.dataProjection?$s(t.dataProjection):this.readProjection(e);t.extent&&i&&i.getUnits()==="tile-pixels"&&(i=$s(i),i.setWorldExtent(t.extent)),t={dataProjection:i,featureProjection:t.featureProjection}}return this.adaptOptions(t)}adaptOptions(e){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},e)}getType(){return _o()}readFeature(e,t){return _o()}readFeatures(e,t){return _o()}readGeometry(e,t){return _o()}readProjection(e){return _o()}writeFeature(e,t){return _o()}writeFeatures(e,t){return _o()}writeGeometry(e,t){return _o()}}function c4(n,e,t){const i=t?$s(t.featureProjection):null,r=t?$s(t.dataProjection):null;let o=n;if(i&&r&&!n1(i,r)){e&&(o=n.clone());const s=e?i:r,a=e?r:i;s.getUnits()==="tile-pixels"?o.transform(s,a):o.applyTransform(sb(s,a))}if(e&&t&&t.decimals!==void 0){const s=Math.pow(10,t.decimals),a=function(p){for(let g=0,_=p.length;g<_;++g)p[g]=Math.round(p[g]*s)/s;return p};o===n&&(o=n.clone()),o.applyTransform(a)}return o}const poe={Point:hy,LineString:fy,Polygon:ng,MultiPoint:nx,MultiLineString:mb,MultiPolygon:gb};function moe(n,e,t){return Array.isArray(e[0])?(tN(n,0,e,t)||(n=n.slice(),XB(n,0,e,t)),n):(G8(n,0,e,t)||(n=n.slice(),G3(n,0,e,t)),n)}function YN(n,e){const t=n.geometry;if(!t)return[];if(Array.isArray(t))return t.map(o=>YN({...n,geometry:o})).flat();const i=t.type==="MultiPolygon"?"Polygon":t.type;if(i==="GeometryCollection"||i==="Circle")throw new Error("Unsupported geometry type: "+i);const r=t.layout.length;return c4(new qh(i,i==="Polygon"?moe(t.flatCoordinates,t.ends,r):t.flatCoordinates,t.ends?.flat(),r,n.properties||{},n.id).enableSimplifyTransformed(),!1,e)}function p7(n,e){if(!n)return null;if(Array.isArray(n)){const i=n.map(r=>p7(r,e));return new V3(i)}const t=poe[n.type];return c4(new t(n.flatCoordinates,n.layout||"XY",n.ends),!1,e)}class goe extends QN{constructor(){super()}getType(){return"json"}readFeature(e,t){return this.readFeatureFromObject(Lx(e),this.getReadOptions(e,t))}readFeatures(e,t){return this.readFeaturesFromObject(Lx(e),this.getReadOptions(e,t))}readFeatureFromObject(e,t){return _o()}readFeaturesFromObject(e,t){
Line truncated
|
||||
`),"binary").toString("base64"):URL.createObjectURL(new Blob(i,{type:"text/javascript"})));return r.addEventListener("message",e),r}function wae(n,e){const t=oG(n.operation);let i=!1;return{postMessage:function(r){setTimeout(function(){i||e({data:{buffer:t(r),meta:r.meta}})},0)},terminate:function(){i=!0}}}let Sae=class extends Wb{constructor(e){super(),this.imageOps_=!!e.imageOps;let t;e.threads===0?t=0:this.imageOps_?t=1:t=e.threads||1;const i=new Array(t);if(t)for(let r=0;r<t;++r)i[r]=Mae(e,this.onWorkerMessage_.bind(this,r));else i[0]=wae(e,this.onWorkerMessage_.bind(this,0));this.workers_=i,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,i){this.enqueue_({inputs:e,meta:t,callback:i}),this.dispatch_()}enqueue_(e){for(this.queue_.push(e);this.queue_.length>this.maxQueueLength_;)this.queue_.shift().callback(null,null)}dispatch_(){if(this.running_||this.queue_.length===0)return;const e=this.queue_.shift();this.job_=e;const t=e.inputs[0].width,i=e.inputs[0].height,r=e.inputs.map(function(p){return p.data.buffer}),o=this.workers_.length;if(this.running_=o,o===1){this.workers_[0].postMessage({buffers:r,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},r);return}const s=e.inputs[0].data.length,a=4*Math.ceil(s/4/o);for(let p=0;p<o;++p){const g=p*a,_=[];for(let E=0,O=r.length;E<O;++E)_.push(r[E].slice(g,g+a));this.workers_[p].postMessage({buffers:_,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},_)}}onWorkerMessage_(e,t){this.disposed||(this.dataLookup_[e]=t.data,--this.running_,this.running_===0&&this.resolveJob_())}resolveJob_(){const e=this.job_,t=this.workers_.length;let i,r;if(t===1)i=new Uint8ClampedArray(this.dataLookup_[0].buffer),r=this.dataLookup_[0].meta;else{const o=e.inputs[0].data.length;i=new Uint8ClampedArray(o),r=new Array(t);const s=4*Math.ceil(o/4/t);for(let a=0;a<t;++a){const p=this.dataLookup_[a].buffer,g=a*s;i.set(new Uint8ClampedArray(p),g),r[a]=this.dataLookup_[a].meta}}this.job_=null,this.dataLookup_={},e.callback(null,new ImageData(i,e.inputs[0].width,e.inputs[0].height),r),this.dispatch_()}disposeInternal(){for(let e=0;e<this.workers_.length;++e)this.workers_[e].terminate();this.workers_.length=0}};const Dk={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class Rk extends Mm{constructor(e,t,i){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=i}}class aG extends tG{constructor(e){super({projection:null}),this.on,this.once,this.un,this.processor_=null,this.operationType_=e.operationType!==void 0?e.operationType:"pixel",this.threads_=e.threads!==void 0?e.threads:1,this.layers_=Oae(e.sources);const t=this.changed.bind(this);for(let i=0,r=this.layers_.length;i<r;++i)this.layers_[i].addEventListener(mo.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new Sj(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:rf(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:Bae(this.layers_),pixelRatio:1,pixelToCoordinateTransform:rf(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Do(this),renderTargets:{}},this.setAttributions(function(i){const r=[];for(let o=0,s=e.sources.length;o<s;++o){const a=e.sources[o],p=a instanceof bC?a:a.getSource();if(!p)continue;const g=p.getAttributions()?.(i);typeof g=="string"?r.push(g):g!==void 0&&r.push(...g)}return r}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new Sae({operation:e,imageOps:this.operationType_==="image",queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,i){const r=Object.assign({},this.frameState_);r.viewState=Object.assign({},r.viewState);const o=Gf(e);r.size[0]=Math.ceil(ds(e)/t),r.size[1]=Math.ceil(cc(e)/t),r.extent=[o[0]-r.size[0]*t/2,o[1]-r.size[1]*t/2,o[0]+r.size[0]*t/2,o[1]+r.size[1]*t/2],r.time=Date.now();const s=r.viewState;return s.center=o,s.projection=i,s.resolution=t,r}allSourcesReady_(){let e=!0,t;for(let i=0,r=this.layers_.length;i<r;++i)if(t=this.layers_[i].getSource(),!t||t.getState()!=="ready"){e=!1;break}return e}getImage(e,t,i,r){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),t=this.findNearestResolution(t);const o=this.updateFrameState_(e,t,r);if(this.requestedFrameState_=o,this.renderedImageCanvas_){const s=this.renderedImageCanvas_.getResolution(),a=this.renderedImageCanvas_.getExtent();(t!==s||!tg(o.extent,a))&&(this.renderedImageCanvas_=null)}return(!this.renderedImageCanvas_||this.getRevision()!==this.renderedRevision_)&&this.processSources_(),o.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){const e=this.requestedFrameState_
Line truncated
|
||||
`);this.generateTileUrlFunction_?this.setTileUrlFunction(sG(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,i){}}class zae extends f4{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:jae,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate!==void 0?e.interpolate:!0,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=e.crossOrigin!==void 0?e.crossOrigin:null,this.tileClass=e.tileClass!==void 0?e.tileClass:LN,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!n1(this.getProjection(),e)?0:this.getGutter()}getGutter(){return 0}getKey(){let e=super.getKey();return this.getInterpolate()||(e+=":disable-interpolation"),e}getTileGridForProjection(e){const t=this.getProjection();if(this.tileGrid&&(!t||n1(t,e)))return this.tileGrid;const i=Do(e);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=nG(e)),this.tileGridForProjection[i]}createTile_(e,t,i,r,o,s){const a=[e,t,i],p=this.getTileCoordForTileUrlFunction(a,o),g=p?this.tileUrlFunction(p,r,o):void 0,_=new this.tileClass(a,g!==void 0?Ki.IDLE:Ki.EMPTY,g!==void 0?g:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return _.key=s,_.addEventListener(mo.CHANGE,this.handleTileChange.bind(this)),_}getTile(e,t,i,r,o){const s=this.getProjection();if(!s||!o||n1(s,o))return this.getTileInternal(e,t,i,r,s||o);const a=[e,t,i],p=this.getKey(),g=this.getTileGridForProjection(s),_=this.getTileGridForProjection(o),E=this.getTileCoordForTileUrlFunction(a,o),O=new XN(s,g,o,_,a,E,this.getTilePixelRatio(r),this.getGutter(),(B,z,G,Q)=>this.getTileInternal(B,z,G,Q,s),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return O.key=p,O}getTileInternal(e,t,i,r,o){const s=this.getKey();return this.createTile_(e,t,i,r,o,s)}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const i=$s(e);if(i){const r=Do(i);r in this.tileGridForProjection||(this.tileGridForProjection[r]=t)}}}function jae(n,e){n.getImage().src=e}class lG extends zae{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:$s("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,wrapX:e.wrapX!==void 0?e.wrapX:!0,transition:e.transition,zDirection:e.zDirection}),this.tileJSON_=null,this.tileSize_=e.tileSize,e.url)if(e.jsonp)Tae(e.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",e.url),t.send()}else if(e.tileJSON)this.handleTileJSONResponse(e.tileJSON);else throw new Error("Either `url` or `tileJSON` options must be provided")}onXHRLoad_(e){const t=e.target;if(!t.status||t.status>=200&&t.status<300){let i;try{i=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(i)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=$s("EPSG:4326"),i=this.getProjection();let r;if(e.bounds!==void 0){const g=Vb(t,i);r=ate(e.bounds,g)}const o=d4(i),s=e.minzoom||0,a=e.maxzoom||22,p=g7({extent:o,maxZoom:a,minZoom:s,tileSize:this.tileSize_});if(this.tileGrid=p,this.tileUrlFunction=sG(e.tiles,p),e.attribution&&!this.getAttributions()){const g=r!==void 0?r:o;this.setAttributions(function(_){return gA(g,_.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}class y7 extends f4{constructor(e){const t=e.projection||"EPSG:3857",i=e.extent||d4(t),r=e.tileGrid||g7({extent:i,maxResolution:e.maxResolution,maxZoom:e.maxZoom!==void 0?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,projection:t,state:e.state,tileGrid:r,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:uG,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX===void 0?!0:e.wrapX,transition:e.transition,zDirection:e.zDirection===void 0?1:e.zDirection}),this.format_=e.format?e.format:null,this.tileKeysBySourceTileUrl_={},this.sourceTiles_={},this.overlaps_=e.overlaps==null?!0:e.overlaps,this.tileClass=e.tileClass?e.tileClass:FN,this.tileGrids_={}}getOverlaps(){return this.overlaps_}getSourceTiles(e,t,i){if(i.getState()===Ki.IDLE){i.setState(Ki.LOADING);const r=i.w
Line truncated
|
||||
`,""),De.push(Ie[Qe],me);return De},[]):Wt=tM(Lt,ge).trim(),Kt=Mr(We,"paint","text-opacity",Ce,z,Fe)}if(Wt&&Kt&&!Vn){vt||(++ot,Ve=re[ot],(!Ve||!Ve.getText()||Ve.getFill()||Ve.getStroke())&&(Ve=new Rf,re[ot]=Ve),Ve.setImage(void 0),Ve.setGeometry(void 0));const $n=bk(We,Ce,"text",z);Ve.getText()||Ve.setText(It),It=Ve.getText(),(!It||"getDeclutterMode"in It&&It.getDeclutterMode()!==$n)&&(It=new o4({padding:[2,2,2,2],declutterMode:$n}),Ve.setText(It));const Lt=Mr(We,"layout","text-transform",Ce,z,Fe);Lt=="uppercase"?Wt=Array.isArray(Wt)?Wt.map((kt,rt)=>rt%2?kt:kt.toUpperCase()):Wt.toUpperCase():Lt=="lowercase"&&(Wt=Array.isArray(Wt)?Wt.map((kt,rt)=>rt%2?kt:kt.toLowerCase()):Wt.toLowerCase());const De=Array.isArray(Wt)?Wt:be==2?sO(Wt,Tn):lO(Wt,Wn,Oi,Tn);if(It.setText(De),It.setFont(Wn),It.setRotation(X5(Mr(We,"layout","text-rotate",Ce,z,Fe))),typeof It.setKeepUpright=="function"){const kt=Mr(We,"layout","text-keep-upright",Ce,z,Fe);It.setKeepUpright(kt)}const de=Mr(We,"layout","text-anchor",Ce,z,Fe),oe=vt||be==1?"point":Mr(We,"layout","symbol-placement",Ce,z,Fe);let le;if(oe==="line-center"?(It.setPlacement("line"),le="center"):It.setPlacement(oe),oe==="line"&&typeof It.setRepeat=="function"){const kt=Mr(We,"layout","symbol-spacing",Ce,z,Fe);It.setRepeat(kt*2)}It.setOverflow(oe==="point");let me=Mr(We,"paint","text-halo-width",Ce,z,Fe);const Ie=Mr(We,"layout","text-offset",Ce,z,Fe),Qe=Mr(We,"paint","text-translate",Ce,z,Fe);let At=0,He=0;if(oe=="point"){le="center",de.indexOf("left")!==-1?(le="left",He=me):de.indexOf("right")!==-1&&(le="right",He=-me);const kt=Mr(We,"layout","text-rotation-alignment",Ce,z,Fe);It.setRotateWithView(kt=="map")}else It.setMaxAngle(X5(Mr(We,"layout","text-max-angle",Ce,z,Fe))*Wt.length/De.length),It.setRotateWithView(!1);It.setTextAlign(le);let Re="middle";de.indexOf("bottom")==0?(Re="bottom",At=-me-.5*(On-1)*Bn):de.indexOf("top")==0&&(Re="top",At=me+.5*(On-1)*Bn),It.setTextBaseline(Re);const Ze=Mr(We,"layout","text-justify",Ce,z,Fe);It.setJustify(Ze==="auto"?void 0:Ze),It.setOffsetX(Ie[0]*Bn+He+Qe[0]),It.setOffsetY(Ie[1]*Bn+At+Qe[1]),X.setColor(Kg(Mr(We,"paint","text-color",Ce,z,Fe),Kt)),It.setFill(X);const y=Kg(Mr(We,"paint","text-halo-color",Ce,z,Fe),Kt);if(y&&me>0){Z.setColor(y),me*=2;const kt=.5*Bn;Z.setWidth(me<=kt?me:kt),It.setStroke(Z)}else It.setStroke(void 0);const yt=Mr(We,"layout","text-padding",Ce,z,Fe),dt=It.getPadding();yt!==dt[0]&&(dt[0]=yt,dt[1]=yt,dt[2]=yt,dt[3]=yt),Ve.setZIndex(bt)}}}if(ot>-1)return re.length=ot+1,re};return n.setStyle(ie),n.set("mapbox-layers",E),n.set("mapbox-source",Q),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),ie}class QN{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=u4,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let i=t.dataProjection?$s(t.dataProjection):this.readProjection(e);t.extent&&i&&i.getUnits()==="tile-pixels"&&(i=$s(i),i.setWorldExtent(t.extent)),t={dataProjection:i,featureProjection:t.featureProjection}}return this.adaptOptions(t)}adaptOptions(e){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},e)}getType(){return _o()}readFeature(e,t){return _o()}readFeatures(e,t){return _o()}readGeometry(e,t){return _o()}readProjection(e){return _o()}writeFeature(e,t){return _o()}writeFeatures(e,t){return _o()}writeGeometry(e,t){return _o()}}function c4(n,e,t){const i=t?$s(t.featureProjection):null,r=t?$s(t.dataProjection):null;let o=n;if(i&&r&&!n1(i,r)){e&&(o=n.clone());const s=e?i:r,a=e?r:i;s.getUnits()==="tile-pixels"?o.transform(s,a):o.applyTransform(sb(s,a))}if(e&&t&&t.decimals!==void 0){const s=Math.pow(10,t.decimals),a=function(p){for(let g=0,_=p.length;g<_;++g)p[g]=Math.round(p[g]*s)/s;return p};o===n&&(o=n.clone()),o.applyTransform(a)}return o}const poe={Point:hy,LineString:fy,Polygon:ng,MultiPoint:nx,MultiLineString:mb,MultiPolygon:gb};function moe(n,e,t){return Array.isArray(e[0])?(tN(n,0,e,t)||(n=n.slice(),XB(n,0,e,t)),n):(G8(n,0,e,t)||(n=n.slice(),G3(n,0,e,t)),n)}function YN(n,e){const t=n.geometry;if(!t)return[];if(Array.isArray(t))return t.map(o=>YN({...n,geometry:o})).flat();const i=t.type==="MultiPolygon"?"Polygon":t.type;if(i==="GeometryCollection"||i==="Circle")throw new Error("Unsupported geometry type: "+i);const r=t.layout.length;return c4(new qh(i,i==="Polygon"?moe(t.flatCoordinates,t.ends,r):t.flatCoordinates,t.ends?.flat(),r,n.properties||{},n.id).enableSimplifyTransformed(),!1,e)}function p7(n,e){if(!n)return null;if(Array.isArray(n)){const i=n.map(r=>p7(r,e));return new V3(i)}const t=poe[n.type];return c4(new t(n.flatCoordinates,n.layout||"XY",n.ends),!1,e)}class goe extends QN{constructor(){super()}getType(){return"json"}readFeature(e,t){return this.readFeatureFromObject(Lx(e),this.getReadOptions(e,t))}readFeatures(e,t){return this.readFeaturesFromObject(Lx(e),this.getReadOptions(e,t))}readFeatureFromObject(e,t){return _o()}readFeaturesFromObject(e,t){
Line truncated
|
||||
`),"binary").toString("base64"):URL.createObjectURL(new Blob(i,{type:"text/javascript"})));return r.addEventListener("message",e),r}function wae(n,e){const t=oG(n.operation);let i=!1;return{postMessage:function(r){setTimeout(function(){i||e({data:{buffer:t(r),meta:r.meta}})},0)},terminate:function(){i=!0}}}let Sae=class extends Wb{constructor(e){super(),this.imageOps_=!!e.imageOps;let t;e.threads===0?t=0:this.imageOps_?t=1:t=e.threads||1;const i=new Array(t);if(t)for(let r=0;r<t;++r)i[r]=Mae(e,this.onWorkerMessage_.bind(this,r));else i[0]=wae(e,this.onWorkerMessage_.bind(this,0));this.workers_=i,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,i){this.enqueue_({inputs:e,meta:t,callback:i}),this.dispatch_()}enqueue_(e){for(this.queue_.push(e);this.queue_.length>this.maxQueueLength_;)this.queue_.shift().callback(null,null)}dispatch_(){if(this.running_||this.queue_.length===0)return;const e=this.queue_.shift();this.job_=e;const t=e.inputs[0].width,i=e.inputs[0].height,r=e.inputs.map(function(p){return p.data.buffer}),o=this.workers_.length;if(this.running_=o,o===1){this.workers_[0].postMessage({buffers:r,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},r);return}const s=e.inputs[0].data.length,a=4*Math.ceil(s/4/o);for(let p=0;p<o;++p){const g=p*a,_=[];for(let E=0,O=r.length;E<O;++E)_.push(r[E].slice(g,g+a));this.workers_[p].postMessage({buffers:_,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},_)}}onWorkerMessage_(e,t){this.disposed||(this.dataLookup_[e]=t.data,--this.running_,this.running_===0&&this.resolveJob_())}resolveJob_(){const e=this.job_,t=this.workers_.length;let i,r;if(t===1)i=new Uint8ClampedArray(this.dataLookup_[0].buffer),r=this.dataLookup_[0].meta;else{const o=e.inputs[0].data.length;i=new Uint8ClampedArray(o),r=new Array(t);const s=4*Math.ceil(o/4/t);for(let a=0;a<t;++a){const p=this.dataLookup_[a].buffer,g=a*s;i.set(new Uint8ClampedArray(p),g),r[a]=this.dataLookup_[a].meta}}this.job_=null,this.dataLookup_={},e.callback(null,new ImageData(i,e.inputs[0].width,e.inputs[0].height),r),this.dispatch_()}disposeInternal(){for(let e=0;e<this.workers_.length;++e)this.workers_[e].terminate();this.workers_.length=0}};const Dk={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class Rk extends wm{constructor(e,t,i){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=i}}class aG extends tG{constructor(e){super({projection:null}),this.on,this.once,this.un,this.processor_=null,this.operationType_=e.operationType!==void 0?e.operationType:"pixel",this.threads_=e.threads!==void 0?e.threads:1,this.layers_=Oae(e.sources);const t=this.changed.bind(this);for(let i=0,r=this.layers_.length;i<r;++i)this.layers_[i].addEventListener(mo.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new Sj(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:rf(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:Bae(this.layers_),pixelRatio:1,pixelToCoordinateTransform:rf(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Do(this),renderTargets:{}},this.setAttributions(function(i){const r=[];for(let o=0,s=e.sources.length;o<s;++o){const a=e.sources[o],p=a instanceof bC?a:a.getSource();if(!p)continue;const g=p.getAttributions()?.(i);typeof g=="string"?r.push(g):g!==void 0&&r.push(...g)}return r}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new Sae({operation:e,imageOps:this.operationType_==="image",queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,i){const r=Object.assign({},this.frameState_);r.viewState=Object.assign({},r.viewState);const o=Gf(e);r.size[0]=Math.ceil(ds(e)/t),r.size[1]=Math.ceil(cc(e)/t),r.extent=[o[0]-r.size[0]*t/2,o[1]-r.size[1]*t/2,o[0]+r.size[0]*t/2,o[1]+r.size[1]*t/2],r.time=Date.now();const s=r.viewState;return s.center=o,s.projection=i,s.resolution=t,r}allSourcesReady_(){let e=!0,t;for(let i=0,r=this.layers_.length;i<r;++i)if(t=this.layers_[i].getSource(),!t||t.getState()!=="ready"){e=!1;break}return e}getImage(e,t,i,r){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),t=this.findNearestResolution(t);const o=this.updateFrameState_(e,t,r);if(this.requestedFrameState_=o,this.renderedImageCanvas_){const s=this.renderedImageCanvas_.getResolution(),a=this.renderedImageCanvas_.getExtent();(t!==s||!tg(o.extent,a))&&(this.renderedImageCanvas_=null)}return(!this.renderedImageCanvas_||this.getRevision()!==this.renderedRevision_)&&this.processSources_(),o.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){const e=this.requestedFrameState_
Line truncated
|
||||
`);this.generateTileUrlFunction_?this.setTileUrlFunction(sG(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,i){}}class zae extends f4{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:jae,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate!==void 0?e.interpolate:!0,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=e.crossOrigin!==void 0?e.crossOrigin:null,this.tileClass=e.tileClass!==void 0?e.tileClass:LN,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!n1(this.getProjection(),e)?0:this.getGutter()}getGutter(){return 0}getKey(){let e=super.getKey();return this.getInterpolate()||(e+=":disable-interpolation"),e}getTileGridForProjection(e){const t=this.getProjection();if(this.tileGrid&&(!t||n1(t,e)))return this.tileGrid;const i=Do(e);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=nG(e)),this.tileGridForProjection[i]}createTile_(e,t,i,r,o,s){const a=[e,t,i],p=this.getTileCoordForTileUrlFunction(a,o),g=p?this.tileUrlFunction(p,r,o):void 0,_=new this.tileClass(a,g!==void 0?Ki.IDLE:Ki.EMPTY,g!==void 0?g:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return _.key=s,_.addEventListener(mo.CHANGE,this.handleTileChange.bind(this)),_}getTile(e,t,i,r,o){const s=this.getProjection();if(!s||!o||n1(s,o))return this.getTileInternal(e,t,i,r,s||o);const a=[e,t,i],p=this.getKey(),g=this.getTileGridForProjection(s),_=this.getTileGridForProjection(o),E=this.getTileCoordForTileUrlFunction(a,o),O=new XN(s,g,o,_,a,E,this.getTilePixelRatio(r),this.getGutter(),(B,z,G,Q)=>this.getTileInternal(B,z,G,Q,s),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return O.key=p,O}getTileInternal(e,t,i,r,o){const s=this.getKey();return this.createTile_(e,t,i,r,o,s)}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const i=$s(e);if(i){const r=Do(i);r in this.tileGridForProjection||(this.tileGridForProjection[r]=t)}}}function jae(n,e){n.getImage().src=e}class lG extends zae{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:$s("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,wrapX:e.wrapX!==void 0?e.wrapX:!0,transition:e.transition,zDirection:e.zDirection}),this.tileJSON_=null,this.tileSize_=e.tileSize,e.url)if(e.jsonp)Tae(e.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",e.url),t.send()}else if(e.tileJSON)this.handleTileJSONResponse(e.tileJSON);else throw new Error("Either `url` or `tileJSON` options must be provided")}onXHRLoad_(e){const t=e.target;if(!t.status||t.status>=200&&t.status<300){let i;try{i=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(i)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=$s("EPSG:4326"),i=this.getProjection();let r;if(e.bounds!==void 0){const g=Vb(t,i);r=ate(e.bounds,g)}const o=d4(i),s=e.minzoom||0,a=e.maxzoom||22,p=g7({extent:o,maxZoom:a,minZoom:s,tileSize:this.tileSize_});if(this.tileGrid=p,this.tileUrlFunction=sG(e.tiles,p),e.attribution&&!this.getAttributions()){const g=r!==void 0?r:o;this.setAttributions(function(_){return gA(g,_.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}class y7 extends f4{constructor(e){const t=e.projection||"EPSG:3857",i=e.extent||d4(t),r=e.tileGrid||g7({extent:i,maxResolution:e.maxResolution,maxZoom:e.maxZoom!==void 0?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,projection:t,state:e.state,tileGrid:r,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:uG,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX===void 0?!0:e.wrapX,transition:e.transition,zDirection:e.zDirection===void 0?1:e.zDirection}),this.format_=e.format?e.format:null,this.tileKeysBySourceTileUrl_={},this.sourceTiles_={},this.overlaps_=e.overlaps==null?!0:e.overlaps,this.tileClass=e.tileClass?e.tileClass:FN,this.tileGrids_={}}getOverlaps(){return this.overlaps_}getSourceTiles(e,t,i){if(i.getState()===Ki.IDLE){i.setState(Ki.LOADING);const r=i.w
Line truncated
|
||||
Copyright (c) 2018 Jed Watson.
|
||||
Licensed under the MIT License (MIT), see
|
||||
http://jedwatson.github.io/classnames
|
||||
*/var Lk;function ose(){return Lk||(Lk=1,function(n){(function(){var e={}.hasOwnProperty;function t(){for(var o="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(o=r(o,i(a)))}return o}function i(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var a in o)e.call(o,a)&&o[a]&&(s=r(s,a));return s}function r(o,s){return s?o?o+" "+s:o+s:o}n.exports?(t.default=t,n.exports=t):window.classNames=t})()}(uM)),uM.exports}var ase=ose();const g0=Zu(ase);var y_=NO();function sse(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return Gt.useMemo(()=>i=>{e.forEach(r=>r(i))},e)}const p4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function xC(n){const e=Object.prototype.toString.call(n);return e==="[object Window]"||e==="[object global]"}function v7(n){return"nodeType"in n}function sf(n){var e,t;return n?xC(n)?n:v7(n)&&(e=(t=n.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function C7(n){const{Document:e}=sf(n);return n instanceof e}function ox(n){return xC(n)?!1:n instanceof sf(n).HTMLElement}function gG(n){return n instanceof sf(n).SVGElement}function MC(n){return n?xC(n)?n.document:v7(n)?C7(n)?n:ox(n)||gG(n)?n.ownerDocument:document:document:document}const y0=p4?Gt.useLayoutEffect:Gt.useEffect;function _7(n){const e=Gt.useRef(n);return y0(()=>{e.current=n}),Gt.useCallback(function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];return e.current==null?void 0:e.current(...i)},[])}function lse(){const n=Gt.useRef(null),e=Gt.useCallback((i,r)=>{n.current=setInterval(i,r)},[]),t=Gt.useCallback(()=>{n.current!==null&&(clearInterval(n.current),n.current=null)},[]);return[e,t]}function yb(n,e){e===void 0&&(e=[n]);const t=Gt.useRef(n);return y0(()=>{t.current!==n&&(t.current=n)},e),t}function ax(n,e){const t=Gt.useRef();return Gt.useMemo(()=>{const i=n(t.current);return t.current=i,i},[...e])}function n2(n){const e=_7(n),t=Gt.useRef(null),i=Gt.useCallback(r=>{r!==t.current&&e?.(r,t.current),t.current=r},[]);return[t,i]}function fO(n){const e=Gt.useRef();return Gt.useEffect(()=>{e.current=n},[n]),e.current}let AM={};function sx(n,e){return Gt.useMemo(()=>{if(e)return e;const t=AM[n]==null?0:AM[n]+1;return AM[n]=t,n+"-"+t},[n,e])}function yG(n){return function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return i.reduce((o,s)=>{const a=Object.entries(s);for(const[p,g]of a){const _=o[p];_!=null&&(o[p]=_+n*g)}return o},{...e})}}const Qv=yG(1),i2=yG(-1);function use(n){return"clientX"in n&&"clientY"in n}function b7(n){if(!n)return!1;const{KeyboardEvent:e}=sf(n.target);return e&&n instanceof e}function Ase(n){if(!n)return!1;const{TouchEvent:e}=sf(n.target);return e&&n instanceof e}function pO(n){if(Ase(n)){if(n.touches&&n.touches.length){const{clientX:e,clientY:t}=n.touches[0];return{x:e,y:t}}else if(n.changedTouches&&n.changedTouches.length){const{clientX:e,clientY:t}=n.changedTouches[0];return{x:e,y:t}}}return use(n)?{x:n.clientX,y:n.clientY}:null}const vb=Object.freeze({Translate:{toString(n){if(!n)return;const{x:e,y:t}=n;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:e,scaleY:t}=n;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(n){if(n)return[vb.Translate.toString(n),vb.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:e,duration:t,easing:i}=n;return e+" "+t+"ms "+i}}}),Fk="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function cse(n){return n.matches(Fk)?n:n.querySelector(Fk)}const hse={display:"none"};function dse(n){let{id:e,value:t}=n;return ri.createElement("div",{id:e,style:hse},t)}function fse(n){let{id:e,announcement:t,ariaLiveType:i="assertive"}=n;const r={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return ri.createElement("div",{id:e,style:r,role:"status","aria-live":i,"aria-atomic":!0},t)}function pse(){const[n,e]=Gt.useState("");return{announce:Gt.useCallback(i=>{i!=null&&e(i)},[]),announcement:n}}const vG=Gt.createContext(null);function mse(n){const e=Gt.useContext(vG);Gt.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of <DndContext>");return e(n)},[n,e])}function gse(){const[n]=Gt.useState(()=>new Set),e=Gt.useCallback(i=>(n.add(i),()=>n.delete(i)),[n]);return[Gt.useCallback(i=>{let{type:r,event:o}=i;n.forEach(s=>{var a;return(a=s[r])==null?void 0:a.call(s,o)})},[n]),e]}const yse={draggable:`
|
||||
*/var Lk;function ose(){return Lk||(Lk=1,function(n){(function(){var e={}.hasOwnProperty;function t(){for(var o="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(o=r(o,i(a)))}return o}function i(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var a in o)e.call(o,a)&&o[a]&&(s=r(s,a));return s}function r(o,s){return s?o?o+" "+s:o+s:o}n.exports?(t.default=t,n.exports=t):window.classNames=t})()}(uM)),uM.exports}var ase=ose();const Cm=Zu(ase);var y_=NO();function sse(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return Gt.useMemo(()=>i=>{e.forEach(r=>r(i))},e)}const p4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function xC(n){const e=Object.prototype.toString.call(n);return e==="[object Window]"||e==="[object global]"}function v7(n){return"nodeType"in n}function sf(n){var e,t;return n?xC(n)?n:v7(n)&&(e=(t=n.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function C7(n){const{Document:e}=sf(n);return n instanceof e}function ox(n){return xC(n)?!1:n instanceof sf(n).HTMLElement}function gG(n){return n instanceof sf(n).SVGElement}function MC(n){return n?xC(n)?n.document:v7(n)?C7(n)?n:ox(n)||gG(n)?n.ownerDocument:document:document:document}const y0=p4?Gt.useLayoutEffect:Gt.useEffect;function _7(n){const e=Gt.useRef(n);return y0(()=>{e.current=n}),Gt.useCallback(function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];return e.current==null?void 0:e.current(...i)},[])}function lse(){const n=Gt.useRef(null),e=Gt.useCallback((i,r)=>{n.current=setInterval(i,r)},[]),t=Gt.useCallback(()=>{n.current!==null&&(clearInterval(n.current),n.current=null)},[]);return[e,t]}function yb(n,e){e===void 0&&(e=[n]);const t=Gt.useRef(n);return y0(()=>{t.current!==n&&(t.current=n)},e),t}function ax(n,e){const t=Gt.useRef();return Gt.useMemo(()=>{const i=n(t.current);return t.current=i,i},[...e])}function n2(n){const e=_7(n),t=Gt.useRef(null),i=Gt.useCallback(r=>{r!==t.current&&e?.(r,t.current),t.current=r},[]);return[t,i]}function fO(n){const e=Gt.useRef();return Gt.useEffect(()=>{e.current=n},[n]),e.current}let AM={};function sx(n,e){return Gt.useMemo(()=>{if(e)return e;const t=AM[n]==null?0:AM[n]+1;return AM[n]=t,n+"-"+t},[n,e])}function yG(n){return function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return i.reduce((o,s)=>{const a=Object.entries(s);for(const[p,g]of a){const _=o[p];_!=null&&(o[p]=_+n*g)}return o},{...e})}}const Qv=yG(1),i2=yG(-1);function use(n){return"clientX"in n&&"clientY"in n}function b7(n){if(!n)return!1;const{KeyboardEvent:e}=sf(n.target);return e&&n instanceof e}function Ase(n){if(!n)return!1;const{TouchEvent:e}=sf(n.target);return e&&n instanceof e}function pO(n){if(Ase(n)){if(n.touches&&n.touches.length){const{clientX:e,clientY:t}=n.touches[0];return{x:e,y:t}}else if(n.changedTouches&&n.changedTouches.length){const{clientX:e,clientY:t}=n.changedTouches[0];return{x:e,y:t}}}return use(n)?{x:n.clientX,y:n.clientY}:null}const vb=Object.freeze({Translate:{toString(n){if(!n)return;const{x:e,y:t}=n;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:e,scaleY:t}=n;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(n){if(n)return[vb.Translate.toString(n),vb.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:e,duration:t,easing:i}=n;return e+" "+t+"ms "+i}}}),Fk="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function cse(n){return n.matches(Fk)?n:n.querySelector(Fk)}const hse={display:"none"};function dse(n){let{id:e,value:t}=n;return ri.createElement("div",{id:e,style:hse},t)}function fse(n){let{id:e,announcement:t,ariaLiveType:i="assertive"}=n;const r={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return ri.createElement("div",{id:e,style:r,role:"status","aria-live":i,"aria-atomic":!0},t)}function pse(){const[n,e]=Gt.useState("");return{announce:Gt.useCallback(i=>{i!=null&&e(i)},[]),announcement:n}}const vG=Gt.createContext(null);function mse(n){const e=Gt.useContext(vG);Gt.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of <DndContext>");return e(n)},[n,e])}function gse(){const[n]=Gt.useState(()=>new Set),e=Gt.useCallback(i=>(n.add(i),()=>n.delete(i)),[n]);return[Gt.useCallback(i=>{let{type:r,event:o}=i;n.forEach(s=>{var a;return(a=s[r])==null?void 0:a.call(s,o)})},[n]),e]}const yse={draggable:`
|
||||
To pick up a draggable item, press the space bar.
|
||||
While dragging, use the arrow keys to move the item.
|
||||
Press space again to drop the item in its new position, or press escape to cancel.
|
||||
`},vse={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function Cse(n){let{announcements:e=vse,container:t,hiddenTextDescribedById:i,screenReaderInstructions:r=yse}=n;const{announce:o,announcement:s}=pse(),a=sx("DndLiveRegion"),[p,g]=Gt.useState(!1);if(Gt.useEffect(()=>{g(!0)},[]),mse(Gt.useMemo(()=>({onDragStart(E){let{active:O}=E;o(e.onDragStart({active:O}))},onDragMove(E){let{active:O,over:B}=E;e.onDragMove&&o(e.onDragMove({active:O,over:B}))},onDragOver(E){let{active:O,over:B}=E;o(e.onDragOver({active:O,over:B}))},onDragEnd(E){let{active:O,over:B}=E;o(e.onDragEnd({active:O,over:B}))},onDragCancel(E){let{active:O,over:B}=E;o(e.onDragCancel({active:O,over:B}))}}),[o,e])),!p)return null;const _=ri.createElement(ri.Fragment,null,ri.createElement(dse,{id:i,value:r.draggable}),ri.createElement(fse,{id:a,announcement:s}));return t?y_.createPortal(_,t):_}var Oc;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(Oc||(Oc={}));function r2(){}function _se(n,e){return Gt.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function bse(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return Gt.useMemo(()=>[...e].filter(i=>i!=null),[...e])}const Cm=Object.freeze({x:0,y:0});function xse(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function Mse(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return t-i}function wse(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return i-t}function Sse(n,e){if(!n||n.length===0)return null;const[t]=n;return t[e]}function zk(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const Ese=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=zk(e,e.left,e.top),o=[];for(const s of i){const{id:a}=s,p=t.get(a);if(p){const g=xse(zk(p),r);o.push({id:a,data:{droppableContainer:s,value:g}})}}return o.sort(Mse)};function Bse(n,e){const t=Math.max(e.top,n.top),i=Math.max(e.left,n.left),r=Math.min(e.left+e.width,n.left+n.width),o=Math.min(e.top+e.height,n.top+n.height),s=r-i,a=o-t;if(i<r&&t<o){const p=e.width*e.height,g=n.width*n.height,_=s*a,E=_/(p+g-_);return Number(E.toFixed(4))}return 0}const Ose=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=[];for(const o of i){const{id:s}=o,a=t.get(s);if(a){const p=Bse(a,e);p>0&&r.push({id:s,data:{droppableContainer:o,value:p}})}}return r.sort(wse)};function Ise(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function CG(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:Cm}function Tse(n){return function(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return r.reduce((s,a)=>({...s,top:s.top+n*a.y,bottom:s.bottom+n*a.y,left:s.left+n*a.x,right:s.right+n*a.x}),{...t})}}const kse=Tse(1);function Dse(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function Rse(n,e,t){const i=Dse(e);if(!i)return n;const{scaleX:r,scaleY:o,x:s,y:a}=i,p=n.left-s-(1-r)*parseFloat(t),g=n.top-a-(1-o)*parseFloat(t.slice(t.indexOf(" ")+1)),_=r?n.width/r:n.width,E=o?n.height/o:n.height;return{width:_,height:E,top:g,right:p+_,bottom:g+E,left:p}}const Pse={ignoreTransform:!1};function wC(n,e){e===void 0&&(e=Pse);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:g,transformOrigin:_}=sf(n).getComputedStyle(n);g&&(t=Rse(t,g,_))}const{top:i,left:r,width:o,height:s,bottom:a,right:p}=t;return{top:i,left:r,width:o,height:s,bottom:a,right:p}}function jk(n){return wC(n,{ignoreTransform:!0})}function Use(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function Kse(n,e){return e===void 0&&(e=sf(n).getComputedStyle(n)),e.position==="fixed"}function Lse(n,e){e===void 0&&(e=sf(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const o=e[r];return typeof o=="string"?t.test(o):!1})}function x7(n,e){const t=[];function i(r){if(e!=null&&t.length>=e||!r)return t;if(C7(r)&&r.scrollingElement!=null&&!t.includes(r.scrollingElement))return t.push(r.scrollingElement),t;if(!ox(r)||gG(r)||t.includes(r))return t;const o=sf(n).getComputedStyle(r);return r!==n&&Lse(
Line truncated
|
||||
`},vse={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function Cse(n){let{announcements:e=vse,container:t,hiddenTextDescribedById:i,screenReaderInstructions:r=yse}=n;const{announce:o,announcement:s}=pse(),a=sx("DndLiveRegion"),[p,g]=Gt.useState(!1);if(Gt.useEffect(()=>{g(!0)},[]),mse(Gt.useMemo(()=>({onDragStart(E){let{active:O}=E;o(e.onDragStart({active:O}))},onDragMove(E){let{active:O,over:B}=E;e.onDragMove&&o(e.onDragMove({active:O,over:B}))},onDragOver(E){let{active:O,over:B}=E;o(e.onDragOver({active:O,over:B}))},onDragEnd(E){let{active:O,over:B}=E;o(e.onDragEnd({active:O,over:B}))},onDragCancel(E){let{active:O,over:B}=E;o(e.onDragCancel({active:O,over:B}))}}),[o,e])),!p)return null;const _=ri.createElement(ri.Fragment,null,ri.createElement(dse,{id:i,value:r.draggable}),ri.createElement(fse,{id:a,announcement:s}));return t?y_.createPortal(_,t):_}var Oc;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(Oc||(Oc={}));function r2(){}function _se(n,e){return Gt.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function bse(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return Gt.useMemo(()=>[...e].filter(i=>i!=null),[...e])}const _m=Object.freeze({x:0,y:0});function xse(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function Mse(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return t-i}function wse(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return i-t}function Sse(n,e){if(!n||n.length===0)return null;const[t]=n;return t[e]}function zk(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const Ese=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=zk(e,e.left,e.top),o=[];for(const s of i){const{id:a}=s,p=t.get(a);if(p){const g=xse(zk(p),r);o.push({id:a,data:{droppableContainer:s,value:g}})}}return o.sort(Mse)};function Bse(n,e){const t=Math.max(e.top,n.top),i=Math.max(e.left,n.left),r=Math.min(e.left+e.width,n.left+n.width),o=Math.min(e.top+e.height,n.top+n.height),s=r-i,a=o-t;if(i<r&&t<o){const p=e.width*e.height,g=n.width*n.height,_=s*a,E=_/(p+g-_);return Number(E.toFixed(4))}return 0}const Ose=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=[];for(const o of i){const{id:s}=o,a=t.get(s);if(a){const p=Bse(a,e);p>0&&r.push({id:s,data:{droppableContainer:o,value:p}})}}return r.sort(wse)};function Ise(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function CG(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:_m}function Tse(n){return function(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return r.reduce((s,a)=>({...s,top:s.top+n*a.y,bottom:s.bottom+n*a.y,left:s.left+n*a.x,right:s.right+n*a.x}),{...t})}}const kse=Tse(1);function Dse(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function Rse(n,e,t){const i=Dse(e);if(!i)return n;const{scaleX:r,scaleY:o,x:s,y:a}=i,p=n.left-s-(1-r)*parseFloat(t),g=n.top-a-(1-o)*parseFloat(t.slice(t.indexOf(" ")+1)),_=r?n.width/r:n.width,E=o?n.height/o:n.height;return{width:_,height:E,top:g,right:p+_,bottom:g+E,left:p}}const Pse={ignoreTransform:!1};function wC(n,e){e===void 0&&(e=Pse);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:g,transformOrigin:_}=sf(n).getComputedStyle(n);g&&(t=Rse(t,g,_))}const{top:i,left:r,width:o,height:s,bottom:a,right:p}=t;return{top:i,left:r,width:o,height:s,bottom:a,right:p}}function jk(n){return wC(n,{ignoreTransform:!0})}function Use(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function Kse(n,e){return e===void 0&&(e=sf(n).getComputedStyle(n)),e.position==="fixed"}function Lse(n,e){e===void 0&&(e=sf(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const o=e[r];return typeof o=="string"?t.test(o):!1})}function x7(n,e){const t=[];function i(r){if(e!=null&&t.length>=e||!r)return t;if(C7(r)&&r.scrollingElement!=null&&!t.includes(r.scrollingElement))return t.push(r.scrollingElement),t;if(!ox(r)||gG(r)||t.includes(r))return t;const o=sf(n).getComputedStyle(r);return r!==n&&Lse(
Line truncated
|
||||
* tabbable 6.2.0
|
||||
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
||||
*/var LG=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],s2=LG.join(","),FG=typeof Element>"u",py=FG?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,l2=!FG&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n?.ownerDocument},u2=function n(e,t){var i;t===void 0&&(t=!0);var r=e==null||(i=e.getAttribute)===null||i===void 0?void 0:i.call(e,"inert"),o=r===""||r==="true",s=o||t&&e&&n(e.parentNode);return s},eue=function(e){var t,i=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return i===""||i==="true"},zG=function(e,t,i){if(u2(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(s2));return t&&py.call(e,s2)&&r.unshift(e),r=r.filter(i),r},jG=function n(e,t,i){for(var r=[],o=Array.from(e);o.length;){var s=o.shift();if(!u2(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),p=a.length?a:s.children,g=n(p,!0,i);i.flatten?r.push.apply(r,g):r.push({scopeParent:s,candidates:g})}else{var _=py.call(s,s2);_&&i.filter(s)&&(t||!e.includes(s))&&r.push(s);var E=s.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(s),O=!u2(E,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(s));if(E&&O){var B=n(E===!0?s.children:E.children,!0,i);i.flatten?r.push.apply(r,B):r.push({scopeParent:s,candidates:B})}else o.unshift.apply(o,s.children)}}return r},NG=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},zg=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||eue(e))&&!NG(e)?0:e.tabIndex},tue=function(e,t){var i=zg(e);return i<0&&t&&!NG(e)?0:i},nue=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},GG=function(e){return e.tagName==="INPUT"},iue=function(e){return GG(e)&&e.type==="hidden"},rue=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(i){return i.tagName==="SUMMARY"});return t},oue=function(e,t){for(var i=0;i<e.length;i++)if(e[i].checked&&e[i].form===t)return e[i]},aue=function(e){if(!e.name)return!0;var t=e.form||l2(e),i=function(a){return t.querySelectorAll('input[type="radio"][name="'+a+'"]')},r;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")r=i(window.CSS.escape(e.name));else try{r=i(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var o=oue(r,e.form);return!o||o===e},sue=function(e){return GG(e)&&e.type==="radio"},lue=function(e){return sue(e)&&!aue(e)},uue=function(e){var t,i=e&&l2(e),r=(t=i)===null||t===void 0?void 0:t.host,o=!1;if(i&&i!==e){var s,a,p;for(o=!!((s=r)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(r)||e!=null&&(p=e.ownerDocument)!==null&&p!==void 0&&p.contains(e));!o&&r;){var g,_,E;i=l2(r),r=(g=i)===null||g===void 0?void 0:g.host,o=!!((_=r)!==null&&_!==void 0&&(E=_.ownerDocument)!==null&&E!==void 0&&E.contains(r))}}return o},eD=function(e){var t=e.getBoundingClientRect(),i=t.width,r=t.height;return i===0&&r===0},Aue=function(e,t){var i=t.displayCheck,r=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var o=py.call(e,"details>summary:first-of-type"),s=o?e.parentElement:e;if(py.call(s,"details:not([open]) *"))return!0;if(!i||i==="full"||i==="legacy-full"){if(typeof r=="function"){for(var a=e;e;){var p=e.parentElement,g=l2(e);if(p&&!p.shadowRoot&&r(p)===!0)return eD(e);e.assignedSlot?e=e.assignedSlot:!p&&g!==e.ownerDocument?e=g.host:e=p}e=a}if(uue(e))return!e.getClientRects().length;if(i!=="legacy-full")return!0}else if(i==="non-zero-area")return eD(e);return!1},cue=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var i=0;i<t.children.length;i++){var r=t.children.item(i);if(r.tagName==="LEGEND")return py.call(t,"fieldset[disabled] *")?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},A2=function(e,t){return!(t.disabled||u2(t)||iue(t)||Aue(t,e)||rue(t)||cue(t))},vO=function(e,t){return!(lue(t)||zg(t)<0||!A2(e,t))},hue=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},due=function n(e){var t=[],i=[];return e.forEach(function(r,o){var s=!!r.scopeParent,a=s?r.scopeParent:r,p=tue(a,s),g=s?n(r.candidates):a;p===0?s?t.push.apply(t,g):t.push(a):i.push({documentOrder:o,tabIndex:p,item:r,isScope:s,content:g})}),i.sort(nue).reduce(function(r,o){return o.isScope?r.push.apply(r,o.content):r.push(o.content),rLine truncated
|
||||
* focus-trap 7.5.4
|
||||
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
||||
*/function tD(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function nD(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?tD(Object(t),!0).forEach(function(i){mue(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):tD(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function mue(n,e,t){return e=yue(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function gue(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var i=t.call(n,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function yue(n){var e=gue(n,"string");return typeof e=="symbol"?e:String(e)}var iD={activateTrap:function(e,t){if(e.length>0){var i=e[e.length-1];i!==t&&i.pause()}var r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var i=e.indexOf(t);i!==-1&&e.splice(i,1),e.length>0&&e[e.length-1].unpause()}},vue=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Cue=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},F_=function(e){return e?.key==="Tab"||e?.keyCode===9},_ue=function(e){return F_(e)&&!e.shiftKey},bue=function(e){return F_(e)&&e.shiftKey},rD=function(e){return setTimeout(e,0)},oD=function(e,t){var i=-1;return e.every(function(r,o){return t(r)?(i=o,!1):!0}),i},XC=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return typeof e=="function"?e.apply(void 0,i):e},Wx=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},xue=[],Mue=function(e,t){var i=t?.document||document,r=t?.trapStack||xue,o=nD({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:_ue,isKeyBackward:bue},t),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a,p=function(Me,be,ze){return Me&&Me[be]!==void 0?Me[be]:o[ze||be]},g=function(Me,be){var ze=typeof be?.composedPath=="function"?be.composedPath():void 0;return s.containerGroups.findIndex(function(Ce){var Fe=Ce.container,ot=Ce.tabbableNodes;return Fe.contains(Me)||ze?.includes(Fe)||ot.find(function(mt){return mt===Me})})},_=function(Me){var be=o[Me];if(typeof be=="function"){for(var ze=arguments.length,Ce=new Array(ze>1?ze-1:0),Fe=1;Fe<ze;Fe++)Ce[Fe-1]=arguments[Fe];be=be.apply(void 0,Ce)}if(be===!0&&(be=void 0),!be){if(be===void 0||be===!1)return be;throw new Error("`".concat(Me,"` was specified but was not a node, or did not return a node"))}var ot=be;if(typeof be=="string"&&(ot=i.querySelector(be),!ot))throw new Error("`".concat(Me,"` as selector refers to no known node"));return ot},E=function(){var Me=_("initialFocus");if(Me===!1)return!1;if(Me===void 0||!f3(Me,o.tabbableOptions))if(g(i.activeElement)>=0)Me=i.activeElement;else{var be=s.tabbableGroups[0],ze=be&&be.firstTabbableNode;Me=ze||_("fallbackFocus")}if(!Me)throw new Error("Your focus-trap needs to have at least one focusable element");return Me},O=function(){if(s.containerGroups=s.containers.map(function(Me){var be=WG(Me,o.tabbableOptions),ze=QG(Me,o.tabbableOptions),Ce=be.length>0?be[0]:void 0,Fe=be.length>0?be[be.length-1]:void 0,ot=ze.find(function(ue){return G1(ue)}),mt=ze.slice().reverse().find(function(ue){return G1(ue)}),it=!!be.find(function(ue){return zg(ue)>0});return{container:Me,tabbableNodes:be,focusableNodes:ze,posTabIndexesFound:it,firstTabbableNode:Ce,lastTabbableNode:Fe,firstDomTabbableNode:ot,lastDomTabbableNode:mt,nextTabbableNode:function(We){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,ke=be.indexOf(We);return ke<0?tt?ze.slice(ze.indexOf(We)+1).find(function(Et){return G1(Et)}):ze.slice(0,ze.indexOf(We)).reverse().find(function(Et){return G1(Et)}):be[ke+(tt?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(Me){return Me.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!_("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find(function(Me){return Me.posTabIndexesFound})&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},B=function _e(Me){var be=Me.activeElement;if(be)return be.shadowRoot&&be.shadowRoot.activeElement!==null?_e(be.shadowRoot):be},z=function _e(Me){if(Me!==!1&&Me!==B(document)){if(!Me||!Me.focus)Line truncated
|
||||
`,g="/",_="*",E="",O="comment",B="declaration";bM=function(G,Q){if(typeof G!="string")throw new TypeError("First argument must be a string");if(!G)return[];Q=Q||{};var Z=1,X=1;function re(be){var ze=be.match(e);ze&&(Z+=ze.length);var Ce=be.lastIndexOf(p);X=~Ce?be.length-Ce:X+be.length}function ie(){var be={line:Z,column:X};return function(ze){return ze.position=new V(be),he(),ze}}function V(be){this.start=be,this.end={line:Z,column:X},this.source=Q.source}V.prototype.content=G;function ee(be){var ze=new Error(Q.source+":"+Z+":"+X+": "+be);if(ze.reason=be,ze.filename=Q.source,ze.line=Z,ze.column=X,ze.source=G,!Q.silent)throw ze}function W(be){var ze=be.exec(G);if(ze){var Ce=ze[0];return re(Ce),G=G.slice(Ce.length),ze}}function he(){W(t)}function ge(be){var ze;for(be=be||[];ze=ve();)ze!==!1&&be.push(ze);return be}function ve(){var be=ie();if(!(g!=G.charAt(0)||_!=G.charAt(1))){for(var ze=2;E!=G.charAt(ze)&&(_!=G.charAt(ze)||g!=G.charAt(ze+1));)++ze;if(ze+=2,E===G.charAt(ze-1))return ee("End of comment missing");var Ce=G.slice(2,ze-2);return X+=2,re(Ce),G=G.slice(ze),X+=2,be({type:O,comment:Ce})}}function _e(){var be=ie(),ze=W(i);if(ze){if(ve(),!W(r))return ee("property missing ':'");var Ce=W(o),Fe=be({type:B,property:z(ze[0].replace(n,E)),value:Ce?z(Ce[0].replace(n,E)):E});return W(s),Fe}}function Me(){var be=[];ge(be);for(var ze;ze=_e();)ze!==!1&&(be.push(ze),ge(be));return be}return he(),Me()};function z(G){return G?G.replace(a,E):E}return bM}var fD;function Xue(){if(fD)return av;fD=1;var n=av&&av.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(av,"__esModule",{value:!0}),av.default=t;var e=n(Zue());function t(i,r){var o=null;if(!i||typeof i!="string")return o;var s=(0,e.default)(i),a=typeof r=="function";return s.forEach(function(p){if(p.type==="declaration"){var g=p.property,_=p.value;a?r(g,_,p):_&&(o=o||{},o[g]=_)}}),o}return av}var JC={},pD;function Jue(){if(pD)return JC;pD=1,Object.defineProperty(JC,"__esModule",{value:!0}),JC.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,t=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,o=function(g){return!g||t.test(g)||n.test(g)},s=function(g,_){return _.toUpperCase()},a=function(g,_){return"".concat(_,"-")},p=function(g,_){return _===void 0&&(_={}),o(g)?g:(g=g.toLowerCase(),_.reactCompat?g=g.replace(r,a):g=g.replace(i,a),g.replace(e,s))};return JC.camelCase=p,JC}var e_,mD;function eAe(){if(mD)return e_;mD=1;var n=e_&&e_.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},e=n(Xue()),t=Jue();function i(r,o){var s={};return!r||typeof r!="string"||(0,e.default)(r,function(a,p){a&&p&&(s[(0,t.camelCase)(a,o)]=p)}),s}return i.default=i,e_=i,e_}var tAe=eAe();const nAe=Zu(tAe),JG=eW("end"),I7=eW("start");function eW(n){return e;function e(t){const i=t&&t.position&&t.position[n]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function iAe(n){const e=I7(n),t=JG(n);if(e&&t)return{start:e,end:t}}function z_(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?gD(n.position):"start"in n||"end"in n?gD(n):"line"in n||"column"in n?xO(n):""}function xO(n){return yD(n&&n.line)+":"+yD(n&&n.column)}function gD(n){return xO(n&&n.start)+"-"+xO(n&&n.end)}function yD(n){return n&&typeof n=="number"?n:1}class Vh extends Error{constructor(e,t,i){super(),typeof t=="string"&&(i=t,t=void 0);let r="",o={},s=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof e=="string"?r=e:!o.cause&&e&&(s=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&typeof i=="string"){const p=i.indexOf(":");p===-1?o.ruleId=i:(o.source=i.slice(0,p),o.ruleId=i.slice(p+1))}if(!o.place&&o.ancestors&&o.ancestors){const p=o.ancestors[o.ancestors.length-1];p&&(o.place=p.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=z_(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Vh.prototype.file="";Vh.prototype.name="";Vh.prototype.reason="";Vh.prototype.message="";Vh.prototype.stack="";Vh.prototype.column=void 0;Vh.prototype.line=void 0;Vh.prototype.ancestors=void 0;Vh.prototype.cause=void 0;Vh.prototype.fatal=void 0;Vh.prototype.place=void 0;Vh.prototype.ruleId=void 0;Vh.prototype.source=void 0;const T7={}.hasOwnProperty,rAe=new Map,oAe=/[A-Z]/g,aAe=new Set(["table","tbody","thead","tfoot","tr"]),sAe=new Set(["td","th"]),tW="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function lAe(n,e){if(!e||e.Fragment===void 0)throw
Line truncated
|
||||
*/function tD(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function nD(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?tD(Object(t),!0).forEach(function(i){mue(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):tD(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function mue(n,e,t){return e=yue(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function gue(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var i=t.call(n,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function yue(n){var e=gue(n,"string");return typeof e=="symbol"?e:String(e)}var iD={activateTrap:function(e,t){if(e.length>0){var i=e[e.length-1];i!==t&&i.pause()}var r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var i=e.indexOf(t);i!==-1&&e.splice(i,1),e.length>0&&e[e.length-1].unpause()}},vue=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Cue=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},F_=function(e){return e?.key==="Tab"||e?.keyCode===9},_ue=function(e){return F_(e)&&!e.shiftKey},bue=function(e){return F_(e)&&e.shiftKey},rD=function(e){return setTimeout(e,0)},oD=function(e,t){var i=-1;return e.every(function(r,o){return t(r)?(i=o,!1):!0}),i},XC=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return typeof e=="function"?e.apply(void 0,i):e},Wx=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},xue=[],Mue=function(e,t){var i=t?.document||document,r=t?.trapStack||xue,o=nD({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:_ue,isKeyBackward:bue},t),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a,p=function(Me,be,ze){return Me&&Me[be]!==void 0?Me[be]:o[ze||be]},g=function(Me,be){var ze=typeof be?.composedPath=="function"?be.composedPath():void 0;return s.containerGroups.findIndex(function(Ce){var Fe=Ce.container,ot=Ce.tabbableNodes;return Fe.contains(Me)||ze?.includes(Fe)||ot.find(function(mt){return mt===Me})})},_=function(Me){var be=o[Me];if(typeof be=="function"){for(var ze=arguments.length,Ce=new Array(ze>1?ze-1:0),Fe=1;Fe<ze;Fe++)Ce[Fe-1]=arguments[Fe];be=be.apply(void 0,Ce)}if(be===!0&&(be=void 0),!be){if(be===void 0||be===!1)return be;throw new Error("`".concat(Me,"` was specified but was not a node, or did not return a node"))}var ot=be;if(typeof be=="string"&&(ot=i.querySelector(be),!ot))throw new Error("`".concat(Me,"` as selector refers to no known node"));return ot},E=function(){var Me=_("initialFocus");if(Me===!1)return!1;if(Me===void 0||!f3(Me,o.tabbableOptions))if(g(i.activeElement)>=0)Me=i.activeElement;else{var be=s.tabbableGroups[0],ze=be&&be.firstTabbableNode;Me=ze||_("fallbackFocus")}if(!Me)throw new Error("Your focus-trap needs to have at least one focusable element");return Me},O=function(){if(s.containerGroups=s.containers.map(function(Me){var be=WG(Me,o.tabbableOptions),ze=QG(Me,o.tabbableOptions),Ce=be.length>0?be[0]:void 0,Fe=be.length>0?be[be.length-1]:void 0,ot=ze.find(function(ue){return G1(ue)}),mt=ze.slice().reverse().find(function(ue){return G1(ue)}),it=!!be.find(function(ue){return zg(ue)>0});return{container:Me,tabbableNodes:be,focusableNodes:ze,posTabIndexesFound:it,firstTabbableNode:Ce,lastTabbableNode:Fe,firstDomTabbableNode:ot,lastDomTabbableNode:mt,nextTabbableNode:function(We){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,ke=be.indexOf(We);return ke<0?tt?ze.slice(ze.indexOf(We)+1).find(function(Et){return G1(Et)}):ze.slice(0,ze.indexOf(We)).reverse().find(function(Et){return G1(Et)}):be[ke+(tt?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(Me){return Me.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!_("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find(function(Me){return Me.posTabIndexesFound})&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},B=function _e(Me){var be=Me.activeElement;if(be)return be.shadowRoot&&be.shadowRoot.activeElement!==null?_e(be.shadowRoot):be},z=function _e(Me){if(Me!==!1&&Me!==B(document)){if(!Me||!Me.focus)Line truncated
|
||||
`,g="/",_="*",E="",O="comment",B="declaration";bM=function(G,Q){if(typeof G!="string")throw new TypeError("First argument must be a string");if(!G)return[];Q=Q||{};var Z=1,X=1;function re(be){var ze=be.match(e);ze&&(Z+=ze.length);var Ce=be.lastIndexOf(p);X=~Ce?be.length-Ce:X+be.length}function ie(){var be={line:Z,column:X};return function(ze){return ze.position=new V(be),he(),ze}}function V(be){this.start=be,this.end={line:Z,column:X},this.source=Q.source}V.prototype.content=G;function ee(be){var ze=new Error(Q.source+":"+Z+":"+X+": "+be);if(ze.reason=be,ze.filename=Q.source,ze.line=Z,ze.column=X,ze.source=G,!Q.silent)throw ze}function W(be){var ze=be.exec(G);if(ze){var Ce=ze[0];return re(Ce),G=G.slice(Ce.length),ze}}function he(){W(t)}function ge(be){var ze;for(be=be||[];ze=ve();)ze!==!1&&be.push(ze);return be}function ve(){var be=ie();if(!(g!=G.charAt(0)||_!=G.charAt(1))){for(var ze=2;E!=G.charAt(ze)&&(_!=G.charAt(ze)||g!=G.charAt(ze+1));)++ze;if(ze+=2,E===G.charAt(ze-1))return ee("End of comment missing");var Ce=G.slice(2,ze-2);return X+=2,re(Ce),G=G.slice(ze),X+=2,be({type:O,comment:Ce})}}function _e(){var be=ie(),ze=W(i);if(ze){if(ve(),!W(r))return ee("property missing ':'");var Ce=W(o),Fe=be({type:B,property:z(ze[0].replace(n,E)),value:Ce?z(Ce[0].replace(n,E)):E});return W(s),Fe}}function Me(){var be=[];ge(be);for(var ze;ze=_e();)ze!==!1&&(be.push(ze),ge(be));return be}return he(),Me()};function z(G){return G?G.replace(a,E):E}return bM}var fD;function Xue(){if(fD)return av;fD=1;var n=av&&av.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(av,"__esModule",{value:!0}),av.default=t;var e=n(Zue());function t(i,r){var o=null;if(!i||typeof i!="string")return o;var s=(0,e.default)(i),a=typeof r=="function";return s.forEach(function(p){if(p.type==="declaration"){var g=p.property,_=p.value;a?r(g,_,p):_&&(o=o||{},o[g]=_)}}),o}return av}var JC={},pD;function Jue(){if(pD)return JC;pD=1,Object.defineProperty(JC,"__esModule",{value:!0}),JC.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,t=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,o=function(g){return!g||t.test(g)||n.test(g)},s=function(g,_){return _.toUpperCase()},a=function(g,_){return"".concat(_,"-")},p=function(g,_){return _===void 0&&(_={}),o(g)?g:(g=g.toLowerCase(),_.reactCompat?g=g.replace(r,a):g=g.replace(i,a),g.replace(e,s))};return JC.camelCase=p,JC}var e_,mD;function eAe(){if(mD)return e_;mD=1;var n=e_&&e_.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},e=n(Xue()),t=Jue();function i(r,o){var s={};return!r||typeof r!="string"||(0,e.default)(r,function(a,p){a&&p&&(s[(0,t.camelCase)(a,o)]=p)}),s}return i.default=i,e_=i,e_}var tAe=eAe();const nAe=Zu(tAe),JG=eW("end"),I7=eW("start");function eW(n){return e;function e(t){const i=t&&t.position&&t.position[n]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function iAe(n){const e=I7(n),t=JG(n);if(e&&t)return{start:e,end:t}}function z_(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?gD(n.position):"start"in n||"end"in n?gD(n):"line"in n||"column"in n?xO(n):""}function xO(n){return yD(n&&n.line)+":"+yD(n&&n.column)}function gD(n){return xO(n&&n.start)+"-"+xO(n&&n.end)}function yD(n){return n&&typeof n=="number"?n:1}class Vh extends Error{constructor(e,t,i){super(),typeof t=="string"&&(i=t,t=void 0);let r="",o={},s=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof e=="string"?r=e:!o.cause&&e&&(s=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&typeof i=="string"){const p=i.indexOf(":");p===-1?o.ruleId=i:(o.source=i.slice(0,p),o.ruleId=i.slice(p+1))}if(!o.place&&o.ancestors&&o.ancestors){const p=o.ancestors[o.ancestors.length-1];p&&(o.place=p.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=z_(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Vh.prototype.file="";Vh.prototype.name="";Vh.prototype.reason="";Vh.prototype.message="";Vh.prototype.stack="";Vh.prototype.column=void 0;Vh.prototype.line=void 0;Vh.prototype.ancestors=void 0;Vh.prototype.cause=void 0;Vh.prototype.fatal=void 0;Vh.prototype.place=void 0;Vh.prototype.ruleId=void 0;Vh.prototype.source=void 0;const T7={}.hasOwnProperty,rAe=new Map,oAe=/[A-Z]/g,aAe=new Set(["table","tbody","thead","tfoot","tr"]),sAe=new Set(["td","th"]),tW="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function lAe(n,e){if(!e||e.Fragment===void 0)throw
Line truncated
|
||||
`;break}case-3:{s=`\r
|
||||
`;break}case-2:{s=e?" ":" ";break}case-1:{if(!e&&r)continue;s=" ";break}default:s=String.fromCharCode(o)}r=o===-2,i.push(s)}return i.join("")}function Che(n){const i={constructs:EAe([mhe,...(n||{}).extensions||[]]),content:r(PAe),defined:[],document:r(KAe),flow:r(the),lazy:{},string:r(rhe),text:r(ohe)};return i;function r(o){return s;function s(a){return ghe(i,o,a)}}}function _he(n){for(;!AW(n););return n}const OD=/[\0\t\n\r]/g;function bhe(){let n=1,e="",t=!0,i;return r;function r(o,s,a){const p=[];let g,_,E,O,B;for(o=e+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),E=0,e="",t&&(o.charCodeAt(0)===65279&&E++,t=void 0);E<o.length;){if(OD.lastIndex=E,g=OD.exec(o),O=g&&g.index!==void 0?g.index:o.length,B=o.charCodeAt(O),!g){e=o.slice(E);break}if(B===10&&E===O&&i)p.push(-3),i=void 0;else switch(i&&(p.push(-5),i=void 0),E<O&&(p.push(o.slice(E,O)),n+=O-E),B){case 0:{p.push(65533),n++;break}case 9:{for(_=Math.ceil(n/4)*4,p.push(-2);n++<_;)p.push(-1);break}case 10:{p.push(-4),n=1;break}default:i=!0,n=1}E=O+1}return a&&(i&&p.push(-5),e&&p.push(e),p.push(null)),p}}const xhe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Mhe(n){return n.replace(xhe,whe)}function whe(n,e,t){if(e)return e;if(t.charCodeAt(0)===35){const r=t.charCodeAt(1),o=r===120||r===88;return aW(t.slice(o?2:1),o?16:10)}return R7(t)||n}const mW={}.hasOwnProperty;function She(n,e,t){return typeof e!="string"&&(t=e,e=void 0),Ehe(t)(_he(Che(t).document().write(bhe()(n,e,!0))))}function Ehe(n){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Wt),autolinkProtocol:ge,autolinkEmail:ge,atxHeading:o(Yt),blockQuote:o(Ue),characterEscape:ge,characterReference:ge,codeFenced:o(Ve),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(Ve,s),codeText:o(bt,s),codeTextData:ge,data:ge,codeFlowValue:ge,definition:o(vt),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(It),hardBreakEscape:o(Ut),hardBreakTrailing:o(Ut),htmlFlow:o(on,s),htmlFlowData:ge,htmlText:o(on,s),htmlTextData:ge,image:o(Vn),label:s,link:o(Wt),listItem:o(On),listItemValue:O,listOrdered:o(Wn,E),listUnordered:o(Wn),paragraph:o(Bn),reference:ke,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Yt),strong:o(Tn),thematicBreak:o($n)},exit:{atxHeading:p(),atxHeadingSequence:V,autolink:p(),autolinkEmail:Ke,autolinkProtocol:je,blockQuote:p(),characterEscapeValue:ve,characterReferenceMarkerHexadecimal:gt,characterReferenceMarkerNumeric:gt,characterReferenceValue:xt,characterReference:Kt,codeFenced:p(Q),codeFencedFence:G,codeFencedFenceInfo:B,codeFencedFenceMeta:z,codeFlowValue:ve,codeIndented:p(Z),codeText:p(Ce),codeTextData:ve,data:ve,definition:p(),definitionDestinationString:ie,definitionLabelString:X,definitionTitleString:re,emphasis:p(),hardBreakEscape:p(Me),hardBreakTrailing:p(Me),htmlFlow:p(be),htmlFlowData:ve,htmlText:p(ze),htmlTextData:ve,image:p(ot),label:it,labelText:mt,lineEnding:_e,link:p(Fe),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:Et,resourceDestinationString:ue,resourceTitleString:We,resource:tt,setextHeading:p(he),setextHeadingLineSequence:W,setextHeadingText:ee,strong:p(),thematicBreak:p()}};gW(e,(n||{}).mdastExtensions||[]);const t={};return i;function i(Lt){let De={type:"root",children:[]};const de={stack:[De],tokenStack:[],config:e,enter:a,exit:g,buffer:s,resume:_,data:t},oe=[];let le=-1;for(;++le<Lt.length;)if(Lt[le][1].type==="listOrdered"||Lt[le][1].type==="listUnordered")if(Lt[le][0]==="enter")oe.push(le);else{const me=oe.pop();le=r(Lt,me,le)}for(le=-1;++le<Lt.length;){const me=e[Lt[le][0]];mW.call(me,Lt[le][1].type)&&me[Lt[le][1].type].call(Object.assign({sliceSerialize:Lt[le][2].sliceSerialize},de),Lt[le][1])}if(de.tokenStack.length>0){const me=de.tokenStack[de.tokenStack.length-1];(me[1]||ID).call(de,void 0,me[0])}for(De.position={start:Dg(Lt.length>0?Lt[0][1].start:{line:1,column:1,offset:0}),end:Dg(Lt.length>0?Lt[Lt.length-2][1].end:{line:1,column:1,offset:0})},le=-1;++le<e.transforms.length;)De=e.transforms[le](De)||De;return De}function r(Lt,De,de){let oe=De-1,le=-1,me=!1,Ie,Qe,At,He;for(;++oe<=de;){const Re=Lt[oe];switch(Re[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Re[0]==="enter"?le++:le--,He=void 0;break}case"lineEndingBlank":{Re[0]==="enter"&&(Ie&&!He&&!le&&!At&&(At=oe),He=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:He=void 0}if(!le&&Re[0]==="enter"&&Re[1].type==="listItemPrefix"||le===-1&&Re[0]==="exit"&&(Re[1].type==="listUnordered"||Re[1].type==="listOrdered")){if(Ie){let Ze=oe;for(Qe=void 0;Ze--;){const y=Lt[Ze];if(y[1].type==="lineEnding"||y[1].type==="lineEndingBlank"){if(y[0]==="exit")continue;Qe&&(Lt[Qe][1].type="lineEndingBlank",me=!0),y[1].type="lineEnding",Qe=Ze}else if(!(y[1].type==="linePrefix"||y[1].type==="blockQuotePrefLine truncated
|
||||
`}]}function khe(n,e){const t=e.value?e.value+`
|
||||
@@ -879,7 +879,7 @@ ${Ne.shaderPreludeCode.vertexSource}`,define:Ne.shaderDefine},defaultProjectionD
|
||||
`});++i<n.length;)i&&t.push({type:"text",value:`
|
||||
`}),t.push(n[i]);return e&&n.length>0&&t.push({type:"text",value:`
|
||||
`}),t}function LD(n){let e=0,t=n.charCodeAt(e);for(;t===9||t===32;)e++,t=n.charCodeAt(e);return n.slice(e)}function FD(n,e){const t=vde(n,e),i=t.one(n,void 0),r=lde(t),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&o.children.push({type:"text",value:`
|
||||
`},r),o}function Mde(n,e){return n&&"run"in n?async function(t,i){const r=FD(t,{file:i,...e});await n.run(r,i)}:function(t,i){return FD(t,{file:i,...n||e})}}function zD(n){if(n)throw n}var SM,jD;function wde(){if(jD)return SM;jD=1;var n=Object.prototype.hasOwnProperty,e=Object.prototype.toString,t=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(g){return typeof Array.isArray=="function"?Array.isArray(g):e.call(g)==="[object Array]"},o=function(g){if(!g||e.call(g)!=="[object Object]")return!1;var _=n.call(g,"constructor"),E=g.constructor&&g.constructor.prototype&&n.call(g.constructor.prototype,"isPrototypeOf");if(g.constructor&&!_&&!E)return!1;var O;for(O in g);return typeof O>"u"||n.call(g,O)},s=function(g,_){t&&_.name==="__proto__"?t(g,_.name,{enumerable:!0,configurable:!0,value:_.newValue,writable:!0}):g[_.name]=_.newValue},a=function(g,_){if(_==="__proto__")if(n.call(g,_)){if(i)return i(g,_).value}else return;return g[_]};return SM=function p(){var g,_,E,O,B,z,G=arguments[0],Q=1,Z=arguments.length,X=!1;for(typeof G=="boolean"&&(X=G,G=arguments[1]||{},Q=2),(G==null||typeof G!="object"&&typeof G!="function")&&(G={});Q<Z;++Q)if(g=arguments[Q],g!=null)for(_ in g)E=a(G,_),O=a(g,_),G!==O&&(X&&O&&(o(O)||(B=r(O)))?(B?(B=!1,z=E&&r(E)?E:[]):z=E&&o(E)?E:{},s(G,{name:_,newValue:p(X,z,O)})):typeof O<"u"&&s(G,{name:_,newValue:O}));return G},SM}var Sde=wde();const EM=Zu(Sde);function BO(n){if(typeof n!="object"||n===null)return!1;const e=Object.getPrototypeOf(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function Ede(){const n=[],e={run:t,use:i};return e;function t(...r){let o=-1;const s=r.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...r);function a(p,...g){const _=n[++o];let E=-1;if(p){s(p);return}for(;++E<r.length;)(g[E]===null||g[E]===void 0)&&(g[E]=r[E]);r=g,_?Bde(_,a)(...g):s(null,...g)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return n.push(r),e}}function Bde(n,e){let t;return i;function i(...s){const a=n.length>s.length;let p;a&&s.push(r);try{p=n.apply(this,s)}catch(g){const _=g;if(a&&t)throw _;return r(_)}a||(p&&p.then&&typeof p.then=="function"?p.then(o,r):p instanceof Error?r(p):o(p))}function r(s,...a){t||(t=!0,e(s,...a))}function o(s){r(null,s)}}const Xm={basename:Ode,dirname:Ide,extname:Tde,join:kde,sep:"/"};function Ode(n,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');ux(n);let t=0,i=-1,r=n.length,o;if(e===void 0||e.length===0||e.length>n.length){for(;r--;)if(n.codePointAt(r)===47){if(o){t=r+1;break}}else i<0&&(o=!0,i=r+1);return i<0?"":n.slice(t,i)}if(e===n)return"";let s=-1,a=e.length-1;for(;r--;)if(n.codePointAt(r)===47){if(o){t=r+1;break}}else s<0&&(o=!0,s=r+1),a>-1&&(n.codePointAt(r)===e.codePointAt(a--)?a<0&&(i=r):(a=-1,i=s));return t===i?i=s:i<0&&(i=n.length),n.slice(t,i)}function Ide(n){if(ux(n),n.length===0)return".";let e=-1,t=n.length,i;for(;--t;)if(n.codePointAt(t)===47){if(i){e=t;break}}else i||(i=!0);return e<0?n.codePointAt(0)===47?"/":".":e===1&&n.codePointAt(0)===47?"//":n.slice(0,e)}function Tde(n){ux(n);let e=n.length,t=-1,i=0,r=-1,o=0,s;for(;e--;){const a=n.codePointAt(e);if(a===47){if(s){i=e+1;break}continue}t<0&&(s=!0,t=e+1),a===46?r<0?r=e:o!==1&&(o=1):r>-1&&(o=-1)}return r<0||t<0||o===0||o===1&&r===t-1&&r===i+1?"":n.slice(r,t)}function kde(...n){let e=-1,t;for(;++e<n.length;)ux(n[e]),n[e]&&(t=t===void 0?n[e]:t+"/"+n[e]);return t===void 0?".":Dde(t)}function Dde(n){ux(n);const e=n.codePointAt(0)===47;let t=Rde(n,!e);return t.length===0&&!e&&(t="."),t.length>0&&n.codePointAt(n.length-1)===47&&(t+="/"),e?"/"+t:t}function Rde(n,e){let t="",i=0,r=-1,o=0,s=-1,a,p;for(;++s<=n.length;){if(s<n.length)a=n.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(r===s-1||o===1))if(r!==s-1&&o===2){if(t.length<2||i!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(p=t.lastIndexOf("/"),p!==t.length-1){p<0?(t="",i=0):(t=t.slice(0,p),i=t.length-1-t.lastIndexOf("/")),r=s,o=0;continue}}else if(t.length>0){t="",i=0,r=s,o=0;continue}}e&&(t=t.length>0?t+"/..":"..",i=2)}else t.length>0?t+="/"+n.slice(r+1,s):t=n.slice(r+1,s),i=s-r-1;r=s,o=0}else a===46&&o>-1?o++:o=-1}return t}function ux(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const Pde={cwd:Ude};function Ude(){return"/"}function OO(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function Kde(n){if(typeof n=="string")n=new URL(n);else if(!OO(n)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(n.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return Lde(n)}function Lde(nLine truncated
|
||||
`},r),o}function Mde(n,e){return n&&"run"in n?async function(t,i){const r=FD(t,{file:i,...e});await n.run(r,i)}:function(t,i){return FD(t,{file:i,...n||e})}}function zD(n){if(n)throw n}var SM,jD;function wde(){if(jD)return SM;jD=1;var n=Object.prototype.hasOwnProperty,e=Object.prototype.toString,t=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(g){return typeof Array.isArray=="function"?Array.isArray(g):e.call(g)==="[object Array]"},o=function(g){if(!g||e.call(g)!=="[object Object]")return!1;var _=n.call(g,"constructor"),E=g.constructor&&g.constructor.prototype&&n.call(g.constructor.prototype,"isPrototypeOf");if(g.constructor&&!_&&!E)return!1;var O;for(O in g);return typeof O>"u"||n.call(g,O)},s=function(g,_){t&&_.name==="__proto__"?t(g,_.name,{enumerable:!0,configurable:!0,value:_.newValue,writable:!0}):g[_.name]=_.newValue},a=function(g,_){if(_==="__proto__")if(n.call(g,_)){if(i)return i(g,_).value}else return;return g[_]};return SM=function p(){var g,_,E,O,B,z,G=arguments[0],Q=1,Z=arguments.length,X=!1;for(typeof G=="boolean"&&(X=G,G=arguments[1]||{},Q=2),(G==null||typeof G!="object"&&typeof G!="function")&&(G={});Q<Z;++Q)if(g=arguments[Q],g!=null)for(_ in g)E=a(G,_),O=a(g,_),G!==O&&(X&&O&&(o(O)||(B=r(O)))?(B?(B=!1,z=E&&r(E)?E:[]):z=E&&o(E)?E:{},s(G,{name:_,newValue:p(X,z,O)})):typeof O<"u"&&s(G,{name:_,newValue:O}));return G},SM}var Sde=wde();const EM=Zu(Sde);function BO(n){if(typeof n!="object"||n===null)return!1;const e=Object.getPrototypeOf(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function Ede(){const n=[],e={run:t,use:i};return e;function t(...r){let o=-1;const s=r.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...r);function a(p,...g){const _=n[++o];let E=-1;if(p){s(p);return}for(;++E<r.length;)(g[E]===null||g[E]===void 0)&&(g[E]=r[E]);r=g,_?Bde(_,a)(...g):s(null,...g)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return n.push(r),e}}function Bde(n,e){let t;return i;function i(...s){const a=n.length>s.length;let p;a&&s.push(r);try{p=n.apply(this,s)}catch(g){const _=g;if(a&&t)throw _;return r(_)}a||(p&&p.then&&typeof p.then=="function"?p.then(o,r):p instanceof Error?r(p):o(p))}function r(s,...a){t||(t=!0,e(s,...a))}function o(s){r(null,s)}}const Jm={basename:Ode,dirname:Ide,extname:Tde,join:kde,sep:"/"};function Ode(n,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');ux(n);let t=0,i=-1,r=n.length,o;if(e===void 0||e.length===0||e.length>n.length){for(;r--;)if(n.codePointAt(r)===47){if(o){t=r+1;break}}else i<0&&(o=!0,i=r+1);return i<0?"":n.slice(t,i)}if(e===n)return"";let s=-1,a=e.length-1;for(;r--;)if(n.codePointAt(r)===47){if(o){t=r+1;break}}else s<0&&(o=!0,s=r+1),a>-1&&(n.codePointAt(r)===e.codePointAt(a--)?a<0&&(i=r):(a=-1,i=s));return t===i?i=s:i<0&&(i=n.length),n.slice(t,i)}function Ide(n){if(ux(n),n.length===0)return".";let e=-1,t=n.length,i;for(;--t;)if(n.codePointAt(t)===47){if(i){e=t;break}}else i||(i=!0);return e<0?n.codePointAt(0)===47?"/":".":e===1&&n.codePointAt(0)===47?"//":n.slice(0,e)}function Tde(n){ux(n);let e=n.length,t=-1,i=0,r=-1,o=0,s;for(;e--;){const a=n.codePointAt(e);if(a===47){if(s){i=e+1;break}continue}t<0&&(s=!0,t=e+1),a===46?r<0?r=e:o!==1&&(o=1):r>-1&&(o=-1)}return r<0||t<0||o===0||o===1&&r===t-1&&r===i+1?"":n.slice(r,t)}function kde(...n){let e=-1,t;for(;++e<n.length;)ux(n[e]),n[e]&&(t=t===void 0?n[e]:t+"/"+n[e]);return t===void 0?".":Dde(t)}function Dde(n){ux(n);const e=n.codePointAt(0)===47;let t=Rde(n,!e);return t.length===0&&!e&&(t="."),t.length>0&&n.codePointAt(n.length-1)===47&&(t+="/"),e?"/"+t:t}function Rde(n,e){let t="",i=0,r=-1,o=0,s=-1,a,p;for(;++s<=n.length;){if(s<n.length)a=n.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(r===s-1||o===1))if(r!==s-1&&o===2){if(t.length<2||i!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(p=t.lastIndexOf("/"),p!==t.length-1){p<0?(t="",i=0):(t=t.slice(0,p),i=t.length-1-t.lastIndexOf("/")),r=s,o=0;continue}}else if(t.length>0){t="",i=0,r=s,o=0;continue}}e&&(t=t.length>0?t+"/..":"..",i=2)}else t.length>0?t+="/"+n.slice(r+1,s):t=n.slice(r+1,s),i=s-r-1;r=s,o=0}else a===46&&o>-1?o++:o=-1}return t}function ux(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const Pde={cwd:Ude};function Ude(){return"/"}function OO(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function Kde(n){if(typeof n=="string")n=new URL(n);else if(!OO(n)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(n.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return Lde(n)}function Lde(nLine truncated
|
||||
* @license React
|
||||
* react-is.production.min.js
|
||||
*
|
||||
@@ -887,7 +887,7 @@ ${Ne.shaderPreludeCode.vertexSource}`,define:Ne.shaderDefine},defaultProjectionD
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var HD;function nfe(){if(HD)return Vs;HD=1;var n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),z;z=Symbol.for("react.module.reference");function G(Q){if(typeof Q=="object"&&Q!==null){var Z=Q.$$typeof;switch(Z){case n:switch(Q=Q.type,Q){case t:case r:case i:case g:case _:return Q;default:switch(Q=Q&&Q.$$typeof,Q){case a:case s:case p:case O:case E:case o:return Q;default:return Z}}case e:return Z}}}return Vs.ContextConsumer=s,Vs.ContextProvider=o,Vs.Element=n,Vs.ForwardRef=p,Vs.Fragment=t,Vs.Lazy=O,Vs.Memo=E,Vs.Portal=e,Vs.Profiler=r,Vs.StrictMode=i,Vs.Suspense=g,Vs.SuspenseList=_,Vs.isAsyncMode=function(){return!1},Vs.isConcurrentMode=function(){return!1},Vs.isContextConsumer=function(Q){return G(Q)===s},Vs.isContextProvider=function(Q){return G(Q)===o},Vs.isElement=function(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===n},Vs.isForwardRef=function(Q){return G(Q)===p},Vs.isFragment=function(Q){return G(Q)===t},Vs.isLazy=function(Q){return G(Q)===O},Vs.isMemo=function(Q){return G(Q)===E},Vs.isPortal=function(Q){return G(Q)===e},Vs.isProfiler=function(Q){return G(Q)===r},Vs.isStrictMode=function(Q){return G(Q)===i},Vs.isSuspense=function(Q){return G(Q)===g},Vs.isSuspenseList=function(Q){return G(Q)===_},Vs.isValidElementType=function(Q){return typeof Q=="string"||typeof Q=="function"||Q===t||Q===r||Q===i||Q===g||Q===_||Q===B||typeof Q=="object"&&Q!==null&&(Q.$$typeof===O||Q.$$typeof===E||Q.$$typeof===o||Q.$$typeof===s||Q.$$typeof===p||Q.$$typeof===z||Q.getModuleId!==void 0)},Vs.typeOf=G,Vs}var VD;function ife(){return VD||(VD=1,RM.exports=nfe()),RM.exports}ife();const $D=n=>typeof n=="object"&&n!=null&&n.nodeType===1,ZD=(n,e)=>(!e||n!=="hidden")&&n!=="visible"&&n!=="clip",Vx=(n,e)=>{if(n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth){const t=getComputedStyle(n,null);return ZD(t.overflowY,e)||ZD(t.overflowX,e)||(i=>{const r=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(i);return!!r&&(r.clientHeight<i.scrollHeight||r.clientWidth<i.scrollWidth)})(n)}return!1},$x=(n,e,t,i,r,o,s,a)=>o<n&&s>e||o>n&&s<e?0:o<=n&&a<=t||s>=e&&a>=t?o-n-i:s>e&&a<t||o<n&&a>t?s-e+r:0,rfe=n=>{const e=n.parentElement;return e??(n.getRootNode().host||null)},ofe=(n,e)=>{var t,i,r,o;if(typeof document>"u")return[];const{inline:s,boundary:a,skipOverflowHiddenElements:p}=e,g=typeof a=="function"?a:be=>be!==a;if(!$D(n))throw new TypeError("Invalid target");const _=document.scrollingElement||document.documentElement,E=[];let O=n;for(;$D(O)&&g(O);){if(O=rfe(O),O===_){E.push(O);break}O!=null&&O===document.body&&Vx(O)&&!Vx(document.documentElement)||O!=null&&Vx(O,p)&&E.push(O)}const B=(i=(t=window.visualViewport)==null?void 0:t.width)!=null?i:innerWidth,z=(o=(r=window.visualViewport)==null?void 0:r.height)!=null?o:innerHeight,{scrollX:G,scrollY:Q}=window,{height:Z,width:X,top:re,right:ie,bottom:V,left:ee}=n.getBoundingClientRect(),{top:W,right:he,left:ge}=(be=>{const ze=window.getComputedStyle(be);return{top:parseFloat(ze.scrollMarginTop)||0,right:parseFloat(ze.scrollMarginRight)||0,bottom:parseFloat(ze.scrollMarginBottom)||0,left:parseFloat(ze.scrollMarginLeft)||0}})(n);let ve=re-W,_e=s==="center"?ee+X/2-ge+he:s==="end"?ie+he:ee-ge;const Me=[];for(let be=0;be<E.length;be++){const ze=E[be],{height:Ce,width:Fe,top:ot,right:mt,bottom:it,left:ue}=ze.getBoundingClientRect();if(re>=0&&ee>=0&&V<=z&&ie<=B&&(ze===_&&!Vx(ze)||re>=ot&&V<=it&&ee>=ue&&ie<=mt))return Me;const We=getComputedStyle(ze),tt=parseInt(We.borderLeftWidth,10),ke=parseInt(We.borderTopWidth,10),Et=parseInt(We.borderRightWidth,10),gt=parseInt(We.borderBottomWidth,10);let xt=0,Kt=0;const je="offsetWidth"in ze?ze.offsetWidth-ze.clientWidth-tt-Et:0,Ke="offsetHeight"in ze?ze.offsetHeight-ze.clientHeight-ke-gt:0,Ue="offsetWidth"in ze?ze.offsetWidth===0?0:Fe/ze.offsetWidth:0,Ve="offsetHeight"in ze?ze.offsetHeight===0?0:Ce/ze.offsetHeight:0;if(_===ze)xt=$x(Q,Q+z,z,ke,gt,Q+ve,Q+ve+Z,Z),Kt=s==="start"?_e:s==="center"?_e-B/2:s==="end"?_e-B:$x(G,G+B,B,tt,Et,G+_e,G+_e+X,X),xt=Math.max(0,xt+Q),Kt=Math.max(0,Kt+G);else{xt=$x(ot,it,Ce,ke,gt+Ke,ve,ve+Z,Z),Kt=s==="start"?_e-ue-tt:s==="center"?_e-(ue+Fe/2)+je/2:s==="end"?_e-mt+Et+je:$x(ue,mt,Fe,tt,Et+je,_e,_e+X,X);const{scrollLeft:bt,scrollTop:vt}=ze;xt=Ve===0?0:Math.max(0,Math.min(vt+xt/Ve,ze.scrollHeight-Ce/Ve+Ke)),Kt=Ue===0?0:Math.max(0,Math.min(bt+Kt/Ue,ze.scrollWidth-Fe/Ue+je)),ve+=vt-xt,_e+=bt-Kt}Me.push({el:ze,top:xt,left:Kt})}return Me};var cC=function(){return cC=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var Line truncated
|
||||
*/var HD;function nfe(){if(HD)return Vs;HD=1;var n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),z;z=Symbol.for("react.module.reference");function G(Q){if(typeof Q=="object"&&Q!==null){var Z=Q.$$typeof;switch(Z){case n:switch(Q=Q.type,Q){case t:case r:case i:case g:case _:return Q;default:switch(Q=Q&&Q.$$typeof,Q){case a:case s:case p:case O:case E:case o:return Q;default:return Z}}case e:return Z}}}return Vs.ContextConsumer=s,Vs.ContextProvider=o,Vs.Element=n,Vs.ForwardRef=p,Vs.Fragment=t,Vs.Lazy=O,Vs.Memo=E,Vs.Portal=e,Vs.Profiler=r,Vs.StrictMode=i,Vs.Suspense=g,Vs.SuspenseList=_,Vs.isAsyncMode=function(){return!1},Vs.isConcurrentMode=function(){return!1},Vs.isContextConsumer=function(Q){return G(Q)===s},Vs.isContextProvider=function(Q){return G(Q)===o},Vs.isElement=function(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===n},Vs.isForwardRef=function(Q){return G(Q)===p},Vs.isFragment=function(Q){return G(Q)===t},Vs.isLazy=function(Q){return G(Q)===O},Vs.isMemo=function(Q){return G(Q)===E},Vs.isPortal=function(Q){return G(Q)===e},Vs.isProfiler=function(Q){return G(Q)===r},Vs.isStrictMode=function(Q){return G(Q)===i},Vs.isSuspense=function(Q){return G(Q)===g},Vs.isSuspenseList=function(Q){return G(Q)===_},Vs.isValidElementType=function(Q){return typeof Q=="string"||typeof Q=="function"||Q===t||Q===r||Q===i||Q===g||Q===_||Q===B||typeof Q=="object"&&Q!==null&&(Q.$$typeof===O||Q.$$typeof===E||Q.$$typeof===o||Q.$$typeof===s||Q.$$typeof===p||Q.$$typeof===z||Q.getModuleId!==void 0)},Vs.typeOf=G,Vs}var VD;function ife(){return VD||(VD=1,RM.exports=nfe()),RM.exports}ife();const $D=n=>typeof n=="object"&&n!=null&&n.nodeType===1,ZD=(n,e)=>(!e||n!=="hidden")&&n!=="visible"&&n!=="clip",Vx=(n,e)=>{if(n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth){const t=getComputedStyle(n,null);return ZD(t.overflowY,e)||ZD(t.overflowX,e)||(i=>{const r=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(i);return!!r&&(r.clientHeight<i.scrollHeight||r.clientWidth<i.scrollWidth)})(n)}return!1},$x=(n,e,t,i,r,o,s,a)=>o<n&&s>e||o>n&&s<e?0:o<=n&&a<=t||s>=e&&a>=t?o-n-i:s>e&&a<t||o<n&&a>t?s-e+r:0,rfe=n=>{const e=n.parentElement;return e??(n.getRootNode().host||null)},ofe=(n,e)=>{var t,i,r,o;if(typeof document>"u")return[];const{inline:s,boundary:a,skipOverflowHiddenElements:p}=e,g=typeof a=="function"?a:be=>be!==a;if(!$D(n))throw new TypeError("Invalid target");const _=document.scrollingElement||document.documentElement,E=[];let O=n;for(;$D(O)&&g(O);){if(O=rfe(O),O===_){E.push(O);break}O!=null&&O===document.body&&Vx(O)&&!Vx(document.documentElement)||O!=null&&Vx(O,p)&&E.push(O)}const B=(i=(t=window.visualViewport)==null?void 0:t.width)!=null?i:innerWidth,z=(o=(r=window.visualViewport)==null?void 0:r.height)!=null?o:innerHeight,{scrollX:G,scrollY:Q}=window,{height:Z,width:X,top:re,right:ie,bottom:V,left:ee}=n.getBoundingClientRect(),{top:W,right:he,left:ge}=(be=>{const ze=window.getComputedStyle(be);return{top:parseFloat(ze.scrollMarginTop)||0,right:parseFloat(ze.scrollMarginRight)||0,bottom:parseFloat(ze.scrollMarginBottom)||0,left:parseFloat(ze.scrollMarginLeft)||0}})(n);let ve=re-W,_e=s==="center"?ee+X/2-ge+he:s==="end"?ie+he:ee-ge;const Me=[];for(let be=0;be<E.length;be++){const ze=E[be],{height:Ce,width:Fe,top:ot,right:mt,bottom:it,left:ue}=ze.getBoundingClientRect();if(re>=0&&ee>=0&&V<=z&&ie<=B&&(ze===_&&!Vx(ze)||re>=ot&&V<=it&&ee>=ue&&ie<=mt))return Me;const We=getComputedStyle(ze),tt=parseInt(We.borderLeftWidth,10),ke=parseInt(We.borderTopWidth,10),Et=parseInt(We.borderRightWidth,10),gt=parseInt(We.borderBottomWidth,10);let xt=0,Kt=0;const je="offsetWidth"in ze?ze.offsetWidth-ze.clientWidth-tt-Et:0,Ke="offsetHeight"in ze?ze.offsetHeight-ze.clientHeight-ke-gt:0,Ue="offsetWidth"in ze?ze.offsetWidth===0?0:Fe/ze.offsetWidth:0,Ve="offsetHeight"in ze?ze.offsetHeight===0?0:Ce/ze.offsetHeight:0;if(_===ze)xt=$x(Q,Q+z,z,ke,gt,Q+ve,Q+ve+Z,Z),Kt=s==="start"?_e:s==="center"?_e-B/2:s==="end"?_e-B:$x(G,G+B,B,tt,Et,G+_e,G+_e+X,X),xt=Math.max(0,xt+Q),Kt=Math.max(0,Kt+G);else{xt=$x(ot,it,Ce,ke,gt+Ke,ve,ve+Z,Z),Kt=s==="start"?_e-ue-tt:s==="center"?_e-(ue+Fe/2)+je/2:s==="end"?_e-mt+Et+je:$x(ue,mt,Fe,tt,Et+je,_e,_e+X,X);const{scrollLeft:bt,scrollTop:vt}=ze;xt=Ve===0?0:Math.max(0,Math.min(vt+xt/Ve,ze.scrollHeight-Ce/Ve+Ke)),Kt=Ue===0?0:Math.max(0,Math.min(bt+Kt/Ue,ze.scrollWidth-Fe/Ue+je)),ve+=vt-xt,_e+=bt-Kt}Me.push({el:ze,top:xt,left:Kt})}return Me};var cC=function(){return cC=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i];for(var Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ape(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var cpe=S4(function n(e){var t=this,i=e.expanded,r=i===void 0?[]:i,o=e.allowMultipleExpanded,s=o===void 0?!1:o,a=e.allowZeroExpanded,p=a===void 0?!1:a;w4(this,n),lu(this,"expanded",void 0),lu(this,"allowMultipleExpanded",void 0),lu(this,"allowZeroExpanded",void 0),lu(this,"toggleExpanded",function(g){if(t.isItemDisabled(g))return t;var _=t.isItemExpanded(g);return _?t.augment({expanded:t.expanded.filter(function(E){return E!==g})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(rpe(t.expanded),[g]):[g]})}),lu(this,"isItemDisabled",function(g){var _=t.isItemExpanded(g),E=t.expanded.length===1;return!!(_&&!t.allowZeroExpanded&&E)}),lu(this,"isItemExpanded",function(g){return t.expanded.indexOf(g)!==-1}),lu(this,"getPanelAttributes",function(g,_){var E=_??t.isItemExpanded(g);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!E:void 0,"aria-labelledby":t.getButtonId(g),id:t.getPanelId(g),hidden:E?void 0:!0}}),lu(this,"getHeadingAttributes",function(){return{role:"heading"}}),lu(this,"getButtonAttributes",function(g,_){var E=_??t.isItemExpanded(g),O=t.isItemDisabled(g);return{id:t.getButtonId(g),"aria-disabled":O,"aria-expanded":E,"aria-controls":t.getPanelId(g),role:"button",tabIndex:0}}),lu(this,"getPanelId",function(g){return"accordion__panel-".concat(g)}),lu(this,"getButtonId",function(g){return"accordion__heading-".concat(g)}),lu(this,"augment",function(g){return new n(RO({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},g))}),this.expanded=r,this.allowMultipleExpanded=s,this.allowZeroExpanded=p}),$W=Gt.createContext(null),ZW=function(n){rI(t,n);var e=oI(t);function t(){var i;w4(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),lu(Am(i),"state",new cpe({expanded:i.props.preExpanded,allowMultipleExpanded:i.props.allowMultipleExpanded,allowZeroExpanded:i.props.allowZeroExpanded})),lu(Am(i),"toggleExpanded",function(a){i.setState(function(p){return p.toggleExpanded(a)},function(){i.props.onChange&&i.props.onChange(i.state.expanded)})}),lu(Am(i),"isItemDisabled",function(a){return i.state.isItemDisabled(a)}),lu(Am(i),"isItemExpanded",function(a){return i.state.isItemExpanded(a)}),lu(Am(i),"getPanelAttributes",function(a,p){return i.state.getPanelAttributes(a,p)}),lu(Am(i),"getHeadingAttributes",function(){return i.state.getHeadingAttributes()}),lu(Am(i),"getButtonAttributes",function(a,p){return i.state.getButtonAttributes(a,p)}),i}return S4(t,[{key:"render",value:function(){var r=this.state,o=r.allowZeroExpanded,s=r.allowMultipleExpanded;return Gt.createElement($W.Provider,{value:{allowMultipleExpanded:s,allowZeroExpanded:o,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),t}(Gt.PureComponent);lu(ZW,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var XW=function(n){rI(t,n);var e=oI(t);function t(){var i;w4(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return i=e.call.apply(e,[this].concat(o)),lu(Am(i),"renderChildren",function(a){return a?i.props.children(a):null}),i}return S4(t,[{key:"render",value:function(){return Gt.createElement($W.Consumer,null,this.renderChildren)}}]),t}(Gt.PureComponent),hpe=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],dpe=function(e){var t=e.className,i=t===void 0?"accordion":t,r=e.allowMultipleExpanded,o=e.allowZeroExpanded,s=e.onChange,a=e.preExpanded,p=E4(e,hpe);return Gt.createElement(ZW,{preExpanded:a,allowMultipleExpanded:r,allowZeroExpanded:o,onChange:s},Gt.createElement("div",C0({"data-accordion-component":"Accordion",className:i},p)))},KO;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(KO||(KO={}));var JW=KO,qM=0;function fpe(){var n=qM;return qM=qM+1,"raa-".concat(n)}var ppe=Gt.useId||fpe,mpe=/[\u0009\u000a\u000c\u000d\u0020]/g;function xb(n){return n===""||mpe.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var eQ=Gt.createContext(null),gpe=function(e){var t=e.children,i=e.uuid,r=e.accordionContext,o=e.dangerouslySetExpanded,s=function(){r.toggleExpanded(i)},a=function(g){var _=o??g.isItemExpanded(i),E=g.isItemDisabled(i),O=g.getPanelAttributes(i,o),B=g.getHeadingAttributes(i),z=g.getButtonAttributes(i,o);return Gt.createElement(eQ.Provider,{value:{uuid:i,expanded:_,disabled:E,toggleExpanded:s,panelAttributes:O,headingAttributes:B,buttonAttributes:z}},t)};return Gt.createElement(XW,nu
Line truncated
|
||||
|
||||
@@ -899,21 +899,21 @@ From the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion)
|
||||
|
||||
b`.split(/\n/).length!=3?function(d){for(var C=0,T=[],I=d.length;C<=I;){var F=d.indexOf(`
|
||||
`,C);F==-1&&(F=d.length);var J=d.slice(C,d.charAt(F-1)=="\r"?F-1:F),pe=J.indexOf("\r");pe!=-1?(T.push(J.slice(0,pe)),C+=pe+1):(T.push(J),C=F+1)}return T}:function(d){return d.split(/\r\n?|\n/)},ei=window.getSelection?function(d){try{return d.selectionStart!=d.selectionEnd}catch{return!1}}:function(d){var C;try{C=d.ownerDocument.selection.createRange()}catch{}return!C||C.parentElement()!=d?!1:C.compareEndPoints("StartToEnd",C)!=0},cr=function(){var d=Ce("div");return"oncopy"in d?!0:(d.setAttribute("oncopy","return;"),typeof d.oncopy=="function")}(),Ni=null;function br(d){if(Ni!=null)return Ni;var C=ze(d,Ce("span","x")),T=C.getBoundingClientRect(),I=ot(C,0,1).getBoundingClientRect();return Ni=Math.abs(T.left-I.left)>1}var Wa={},Rr={};function Gi(d,C){arguments.length>2&&(C.dependencies=Array.prototype.slice.call(arguments,2)),Wa[d]=C}function bl(d,C){Rr[d]=C}function La(d){if(typeof d=="string"&&Rr.hasOwnProperty(d))d=Rr[d];else if(d&&typeof d.name=="string"&&Rr.hasOwnProperty(d.name)){var C=Rr[d.name];typeof C=="string"&&(C={name:C}),d=Oi(C,d),d.name=C.name}else{if(typeof d=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(d))return La("application/xml");if(typeof d=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(d))return La("application/json")}return typeof d=="string"?{name:d}:d||{name:"null"}}function Bo(d,C){C=La(C);var T=Wa[C.name];if(!T)return Bo(d,"text/plain");var I=T(d,C);if(rs.hasOwnProperty(C.name)){var F=rs[C.name];for(var J in F)F.hasOwnProperty(J)&&(I.hasOwnProperty(J)&&(I["_"+J]=I[J]),I[J]=F[J])}if(I.name=C.name,C.helperType&&(I.helperType=C.helperType),C.modeProps)for(var pe in C.modeProps)I[pe]=C.modeProps[pe];return I}var rs={};function Rl(d,C){var T=rs.hasOwnProperty(d)?rs[d]:rs[d]={};je(C,T)}function ho(d,C){if(C===!0)return C;if(d.copyState)return d.copyState(C);var T={};for(var I in C){var F=C[I];F instanceof Array&&(F=F.concat([])),T[I]=F}return T}function Xu(d,C){for(var T;d.innerMode&&(T=d.innerMode(C),!(!T||T.mode==d));)C=T.state,d=T.mode;return T||{mode:d,state:C}}function Fa(d,C,T){return d.startState?d.startState(C,T):!0}var Xi=function(d,C,T){this.pos=this.start=0,this.string=d,this.tabSize=C||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=T};Xi.prototype.eol=function(){return this.pos>=this.string.length},Xi.prototype.sol=function(){return this.pos==this.lineStart},Xi.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Xi.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Xi.prototype.eat=function(d){var C=this.string.charAt(this.pos),T;if(typeof d=="string"?T=C==d:T=C&&(d.test?d.test(C):d(C)),T)return++this.pos,C},Xi.prototype.eatWhile=function(d){for(var C=this.pos;this.eat(d););return this.pos>C},Xi.prototype.eatSpace=function(){for(var d=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>d},Xi.prototype.skipToEnd=function(){this.pos=this.string.length},Xi.prototype.skipTo=function(d){var C=this.string.indexOf(d,this.pos);if(C>-1)return this.pos=C,!0},Xi.prototype.backUp=function(d){this.pos-=d},Xi.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ke(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ke(this.string,this.lineStart,this.tabSize):0)},Xi.prototype.indentation=function(){return Ke(this.string,null,this.tabSize)-(this.lineStart?Ke(this.string,this.lineStart,this.tabSize):0)},Xi.prototype.match=function(d,C,T){if(typeof d=="string"){var I=function(pe){return T?pe.toLowerCase():pe},F=this.string.substr(this.pos,d.length);if(I(F)==I(d))return C!==!1&&(this.pos+=d.length),!0}else{var J=this.string.slice(this.pos).match(d);return J&&J.index>0?null:(J&&C!==!1&&(this.pos+=J[0].length),J)}},Xi.prototype.current=function(){return this.string.slice(this.start,this.pos)},Xi.prototype.hideFirstChars=function(d,C){this.lineStart+=d;try{return C()}finally{this.lineStart-=d}},Xi.prototype.lookAhead=function(d){var C=this.lineOracle;return C&&C.lookAhead(d)},Xi.prototype.baseToken=function(){var d=this.lineOracle;return d&&d.baseToken(this.pos)};function Si(d,C){if(C-=d.first,C<0||C>=d.size)throw new Error("There is no line "+(C+d.first)+" in the document.");for(var T=d;!T.lines;)for(var I=0;;++I){var F=T.children[I],J=F.chunkSize();if(C<J){T=F;break}C-=J}return T.lines[C]}function fs(d,C,T){var I=[],F=C.line;return d.iter(C.line,T.line+1,function(J){var pe=J.text;F==T.line&&(pe=pe.slice(0,T.ch)),F==C.line&&(pe=pe.slice(C.ch)),I.push(pe),++F}),I}function Oa(d,C,T){var I=[];return d.iter(C,T,function(F){I.push(F.text)}),I}function ea(d,C){var T=C-d.height;if(T)for(var I=d;I;I=I.parent)I.height+=T}function Xe(d){if(d.parent==null)return null;for(var C=d.parent,T=Ve(C.lines,d),I=C.parent;I;C=I,I=I.parent)for(var F=0;I.children[F]!=C;++F)T+=I.children[F].chunkSize();return T+C.first}function Bt(d,C){var T=d.first;e:do{for(var I=0;I<d.child
Line truncated
|
||||
`?(Pn=_t.appendChild(Ce("span",en[0]=="\r"?"␍":"","cm-invalidchar")),Pn.setAttribute("cm-text",en[0]),d.col+=1):(Pn=d.cm.options.specialCharPlaceholder(en[0]),Pn.setAttribute("cm-text",en[0]),p&&g<9?_t.appendChild(Ce("span",[Pn])):_t.appendChild(Pn),d.col+=1);d.map.push(d.pos,d.pos+1,Pn),d.pos++}}if(d.trailingSpace=Se.charCodeAt(C.length-1)==32,T||I||F||Ge||J||pe){var _i=T||"";I&&(_i+=I),F&&(_i+=F);var yi=Ce("span",[_t],_i,J);if(pe)for(var Pi in pe)pe.hasOwnProperty(Pi)&&Pi!="style"&&Pi!="class"&&yi.setAttribute(Pi,pe[Pi]);return d.content.appendChild(yi)}d.content.appendChild(_t)}}function $h(d,C){if(d.length>1&&!/ /.test(d))return d;for(var T=C,I="",F=0;F<d.length;F++){var J=d.charAt(F);J==" "&&T&&(F==d.length-1||d.charCodeAt(F+1)==32)&&(J=" "),I+=J,T=J==" "}return I}function go(d,C){return function(T,I,F,J,pe,Se,Pe){F=F?F+" cm-force-border":"cm-force-border";for(var Ge=T.pos,_t=Ge+I.length;;){for(var Tt=void 0,en=0;en<C.length&&(Tt=C[en],!(Tt.to>Ge&&Tt.from<=Ge));en++);if(Tt.to>=_t)return d(T,I,F,J,pe,Se,Pe);d(T,I.slice(0,Tt.to-Ge),F,J,null,Se,Pe),J=null,I=I.slice(Tt.to-Ge),Ge=Tt.to}}}function hc(d,C,T,I){var F=!I&&T.widgetNode;F&&d.map.push(d.pos,d.pos+C,F),!I&&d.cm.display.input.needsContentAttribute&&(F||(F=d.content.appendChild(document.createElement("span"))),F.setAttribute("cm-marker",T.id)),F&&(d.cm.display.input.setUneditable(F),d.content.appendChild(F)),d.pos+=C,d.trailingSpace=!1}function Bd(d,C,T){var I=d.markedSpans,F=d.text,J=0;if(!I){for(var pe=1;pe<T.length;pe+=2)C.addToken(C,F.slice(J,J=T[pe]),Ed(T[pe+1],C.cm.options));return}for(var Se=F.length,Pe=0,Ge=1,_t="",Tt,en,Vt=0,bn,Pn,ai,gi,_i;;){if(Vt==Pe){bn=Pn=ai=en="",_i=null,gi=null,Vt=1/0;for(var yi=[],Pi=void 0,ur=0;ur<I.length;++ur){var Vi=I[ur],to=Vi.marker;if(to.type=="bookmark"&&Vi.from==Pe&&to.widgetNode)yi.push(to);else if(Vi.from<=Pe&&(Vi.to==null||Vi.to>Pe||to.collapsed&&Vi.to==Pe&&Vi.from==Pe)){if(Vi.to!=null&&Vi.to!=Pe&&Vt>Vi.to&&(Vt=Vi.to,Pn=""),to.className&&(bn+=" "+to.className),to.css&&(en=(en?en+";":"")+to.css),to.startStyle&&Vi.from==Pe&&(ai+=" "+to.startStyle),to.endStyle&&Vi.to==Vt&&(Pi||(Pi=[])).push(to.endStyle,Vi.to),to.title&&((_i||(_i={})).title=to.title),to.attributes)for(var Er in to.attributes)(_i||(_i={}))[Er]=to.attributes[Er];to.collapsed&&(!gi||lt(gi.marker,to)<0)&&(gi=Vi)}else Vi.from>Pe&&Vt>Vi.from&&(Vt=Vi.from)}if(Pi)for(var As=0;As<Pi.length;As+=2)Pi[As+1]==Vt&&(Pn+=" "+Pi[As]);if(!gi||gi.from==Pe)for(var ma=0;ma<yi.length;++ma)hc(C,0,yi[ma]);if(gi&&(gi.from||0)==Pe){if(hc(C,(gi.to==null?Se+1:gi.to)-Pe,gi.marker,gi.from==null),gi.to==null)return;gi.to==Pe&&(gi=!1)}}if(Pe>=Se)break;for(var Vr=Math.min(Se,Vt);;){if(_t){var Ms=Pe+_t.length;if(!gi){var ws=Ms>Vr?_t.slice(0,Vr-Pe):_t;C.addToken(C,ws,Tt?Tt+bn:bn,ai,Pe+ws.length==Vt?Pn:"",en,_i)}if(Ms>=Vr){_t=_t.slice(Vr-Pe),Pe=Vr;break}Pe=Ms,ai=""}_t=F.slice(J,J=T[Ge++]),Tt=Ed(T[Ge++],C.cm.options)}}}function Bm(d,C,T){this.line=C,this.rest=io(C),this.size=this.rest?Xe(Wn(this.rest))-T+1:1,this.node=this.text=null,this.hidden=vr(d,C)}function Sh(d,C,T){for(var I=[],F,J=C;J<T;J=F){var pe=new Bm(d.doc,Si(d.doc,J),J);F=J+pe.size,I.push(pe)}return I}var Od=null;function b0(d){Od?Od.ops.push(d):d.ownsGroup=Od={ops:[d],delayedCallbacks:[]}}function Yf(d){var C=d.delayedCallbacks,T=0;do{for(;T<C.length;T++)C[T].call(null);for(var I=0;I<d.ops.length;I++){var F=d.ops[I];if(F.cursorActivityHandlers)for(;F.cursorActivityCalled<F.cursorActivityHandlers.length;)F.cursorActivityHandlers[F.cursorActivityCalled++].call(null,F.cm)}}while(T<C.length)}function qf(d,C){var T=d.ownsGroup;if(T)try{Yf(T)}finally{Od=null,C(T)}}var nA=null;function as(d,C){var T=dt(d,C);if(T.length){var I=Array.prototype.slice.call(arguments,2),F;Od?F=Od.delayedCallbacks:nA?F=nA:(F=nA=[],setTimeout(Id,0));for(var J=function(Se){F.push(function(){return T[Se].apply(null,I)})},pe=0;pe<T.length;++pe)J(pe)}}function Id(){var d=nA;nA=null;for(var C=0;C<d.length;++C)d[C]()}function Yl(d,C,T,I){for(var F=0;F<C.changes.length;F++){var J=C.changes[F];J=="text"?Xh(d,C):J=="gutter"?Eh(d,C,T,I):J=="class"?Hf(d,C):J=="widget"&&Bh(d,C,I)}C.changes=null}function Td(d){return d.node==d.text&&(d.node=Ce("div",null,null,"position: relative"),d.text.parentNode&&d.text.parentNode.replaceChild(d.node,d.text),d.node.appendChild(d.text),p&&g<8&&(d.node.style.zIndex=2)),d.node}function Zh(d,C){var T=C.bgClass?C.bgClass+" "+(C.line.bgClass||""):C.line.bgClass;if(T&&(T+=" CodeMirror-linebackground"),C.background)T?C.background.className=T:(C.background.parentNode.removeChild(C.background),C.background=null);else if(T){var I=Td(C);C.background=I.insertBefore(Ce("div",null,T),I.firstChild),d.display.input.setUneditable(C.background)}}function th(d,C){var T=d.display.externalMeasured;return T&&T.line==C.line?(d.display.externalMeasured=null,C.measure=T.measure,T.built):NA(d,C)}function Xh(d,C){var T=C.text.className,I=th(d,C);C.text==C.node&&(C.node=I.pre),C.text.parentNode.replaceChild(I.pre,C.text),C.text=I.pre,I.bgClass
Line truncated
|
||||
`?(Pn=_t.appendChild(Ce("span",en[0]=="\r"?"␍":"","cm-invalidchar")),Pn.setAttribute("cm-text",en[0]),d.col+=1):(Pn=d.cm.options.specialCharPlaceholder(en[0]),Pn.setAttribute("cm-text",en[0]),p&&g<9?_t.appendChild(Ce("span",[Pn])):_t.appendChild(Pn),d.col+=1);d.map.push(d.pos,d.pos+1,Pn),d.pos++}}if(d.trailingSpace=Se.charCodeAt(C.length-1)==32,T||I||F||Ge||J||pe){var _i=T||"";I&&(_i+=I),F&&(_i+=F);var yi=Ce("span",[_t],_i,J);if(pe)for(var Pi in pe)pe.hasOwnProperty(Pi)&&Pi!="style"&&Pi!="class"&&yi.setAttribute(Pi,pe[Pi]);return d.content.appendChild(yi)}d.content.appendChild(_t)}}function $h(d,C){if(d.length>1&&!/ /.test(d))return d;for(var T=C,I="",F=0;F<d.length;F++){var J=d.charAt(F);J==" "&&T&&(F==d.length-1||d.charCodeAt(F+1)==32)&&(J=" "),I+=J,T=J==" "}return I}function go(d,C){return function(T,I,F,J,pe,Se,Pe){F=F?F+" cm-force-border":"cm-force-border";for(var Ge=T.pos,_t=Ge+I.length;;){for(var Tt=void 0,en=0;en<C.length&&(Tt=C[en],!(Tt.to>Ge&&Tt.from<=Ge));en++);if(Tt.to>=_t)return d(T,I,F,J,pe,Se,Pe);d(T,I.slice(0,Tt.to-Ge),F,J,null,Se,Pe),J=null,I=I.slice(Tt.to-Ge),Ge=Tt.to}}}function hc(d,C,T,I){var F=!I&&T.widgetNode;F&&d.map.push(d.pos,d.pos+C,F),!I&&d.cm.display.input.needsContentAttribute&&(F||(F=d.content.appendChild(document.createElement("span"))),F.setAttribute("cm-marker",T.id)),F&&(d.cm.display.input.setUneditable(F),d.content.appendChild(F)),d.pos+=C,d.trailingSpace=!1}function Bd(d,C,T){var I=d.markedSpans,F=d.text,J=0;if(!I){for(var pe=1;pe<T.length;pe+=2)C.addToken(C,F.slice(J,J=T[pe]),Ed(T[pe+1],C.cm.options));return}for(var Se=F.length,Pe=0,Ge=1,_t="",Tt,en,Vt=0,bn,Pn,ai,gi,_i;;){if(Vt==Pe){bn=Pn=ai=en="",_i=null,gi=null,Vt=1/0;for(var yi=[],Pi=void 0,ur=0;ur<I.length;++ur){var Vi=I[ur],to=Vi.marker;if(to.type=="bookmark"&&Vi.from==Pe&&to.widgetNode)yi.push(to);else if(Vi.from<=Pe&&(Vi.to==null||Vi.to>Pe||to.collapsed&&Vi.to==Pe&&Vi.from==Pe)){if(Vi.to!=null&&Vi.to!=Pe&&Vt>Vi.to&&(Vt=Vi.to,Pn=""),to.className&&(bn+=" "+to.className),to.css&&(en=(en?en+";":"")+to.css),to.startStyle&&Vi.from==Pe&&(ai+=" "+to.startStyle),to.endStyle&&Vi.to==Vt&&(Pi||(Pi=[])).push(to.endStyle,Vi.to),to.title&&((_i||(_i={})).title=to.title),to.attributes)for(var Er in to.attributes)(_i||(_i={}))[Er]=to.attributes[Er];to.collapsed&&(!gi||lt(gi.marker,to)<0)&&(gi=Vi)}else Vi.from>Pe&&Vt>Vi.from&&(Vt=Vi.from)}if(Pi)for(var As=0;As<Pi.length;As+=2)Pi[As+1]==Vt&&(Pn+=" "+Pi[As]);if(!gi||gi.from==Pe)for(var ma=0;ma<yi.length;++ma)hc(C,0,yi[ma]);if(gi&&(gi.from||0)==Pe){if(hc(C,(gi.to==null?Se+1:gi.to)-Pe,gi.marker,gi.from==null),gi.to==null)return;gi.to==Pe&&(gi=!1)}}if(Pe>=Se)break;for(var Vr=Math.min(Se,Vt);;){if(_t){var Ms=Pe+_t.length;if(!gi){var ws=Ms>Vr?_t.slice(0,Vr-Pe):_t;C.addToken(C,ws,Tt?Tt+bn:bn,ai,Pe+ws.length==Vt?Pn:"",en,_i)}if(Ms>=Vr){_t=_t.slice(Vr-Pe),Pe=Vr;break}Pe=Ms,ai=""}_t=F.slice(J,J=T[Ge++]),Tt=Ed(T[Ge++],C.cm.options)}}}function Om(d,C,T){this.line=C,this.rest=io(C),this.size=this.rest?Xe(Wn(this.rest))-T+1:1,this.node=this.text=null,this.hidden=vr(d,C)}function Sh(d,C,T){for(var I=[],F,J=C;J<T;J=F){var pe=new Om(d.doc,Si(d.doc,J),J);F=J+pe.size,I.push(pe)}return I}var Od=null;function b0(d){Od?Od.ops.push(d):d.ownsGroup=Od={ops:[d],delayedCallbacks:[]}}function Yf(d){var C=d.delayedCallbacks,T=0;do{for(;T<C.length;T++)C[T].call(null);for(var I=0;I<d.ops.length;I++){var F=d.ops[I];if(F.cursorActivityHandlers)for(;F.cursorActivityCalled<F.cursorActivityHandlers.length;)F.cursorActivityHandlers[F.cursorActivityCalled++].call(null,F.cm)}}while(T<C.length)}function qf(d,C){var T=d.ownsGroup;if(T)try{Yf(T)}finally{Od=null,C(T)}}var nA=null;function as(d,C){var T=dt(d,C);if(T.length){var I=Array.prototype.slice.call(arguments,2),F;Od?F=Od.delayedCallbacks:nA?F=nA:(F=nA=[],setTimeout(Id,0));for(var J=function(Se){F.push(function(){return T[Se].apply(null,I)})},pe=0;pe<T.length;++pe)J(pe)}}function Id(){var d=nA;nA=null;for(var C=0;C<d.length;++C)d[C]()}function Yl(d,C,T,I){for(var F=0;F<C.changes.length;F++){var J=C.changes[F];J=="text"?Xh(d,C):J=="gutter"?Eh(d,C,T,I):J=="class"?Hf(d,C):J=="widget"&&Bh(d,C,I)}C.changes=null}function Td(d){return d.node==d.text&&(d.node=Ce("div",null,null,"position: relative"),d.text.parentNode&&d.text.parentNode.replaceChild(d.node,d.text),d.node.appendChild(d.text),p&&g<8&&(d.node.style.zIndex=2)),d.node}function Zh(d,C){var T=C.bgClass?C.bgClass+" "+(C.line.bgClass||""):C.line.bgClass;if(T&&(T+=" CodeMirror-linebackground"),C.background)T?C.background.className=T:(C.background.parentNode.removeChild(C.background),C.background=null);else if(T){var I=Td(C);C.background=I.insertBefore(Ce("div",null,T),I.firstChild),d.display.input.setUneditable(C.background)}}function th(d,C){var T=d.display.externalMeasured;return T&&T.line==C.line?(d.display.externalMeasured=null,C.measure=T.measure,T.built):NA(d,C)}function Xh(d,C){var T=C.text.className,I=th(d,C);C.text==C.node&&(C.node=I.pre),C.text.parentNode.replaceChild(I.pre,C.text),C.text=I.pre,I.bgClass
Line truncated
|
||||
top: `+Pi+"px; width: "+(ur??Pe-yi)+`px;
|
||||
height: `+(Vi-Pi)+"px"))}function Tt(yi,Pi,ur){var Vi=Si(F,yi),to=Vi.text.length,Er,As;function ma(ws,ga){return En(d,an(yi,ws),"div",Vi,ga)}function Vr(ws,ga,nu){var Ps=Uo(d,Vi,null,ws),qs=ga=="ltr"==(nu=="after")?"left":"right",kr=nu=="after"?Ps.begin:Ps.end-(/\s/.test(Vi.text.charAt(Ps.end-1))?2:1);return ma(kr,qs)[qs]}var Ms=Ze(Vi,F.direction);return Qe(Ms,Pi||0,ur??to,function(ws,ga,nu,Ps){var qs=nu=="ltr",kr=ma(ws,qs?"left":"right"),ka=ma(ga-1,qs?"right":"left"),iu=Pi==null&&ws==0,xc=ur==null&&ga==to,bu=Ps==0,dh=!Ms||Ps==Ms.length-1;if(ka.top-kr.top<=3){var gs=(Ge?iu:xc)&&bu,kA=(Ge?xc:iu)&&dh,Ol=gs?Se:(qs?kr:ka).left,Mc=kA?Pe:(qs?ka:kr).right;_t(Ol,kr.top,Mc-Ol,kr.bottom)}else{var hl,xu,ic,fd;qs?(hl=Ge&&iu&&bu?Se:kr.left,xu=Ge?Pe:Vr(ws,nu,"before"),ic=Ge?Se:Vr(ga,nu,"after"),fd=Ge&&xc&&dh?Pe:ka.right):(hl=Ge?Vr(ws,nu,"before"):Se,xu=!Ge&&iu&&bu?Pe:kr.right,ic=!Ge&&xc&&dh?Se:ka.left,fd=Ge?Vr(ga,nu,"after"):Pe),_t(hl,kr.top,xu-hl,kr.bottom),kr.bottom<ka.top&&_t(Se,kr.bottom,null,ka.top),_t(ic,ka.top,fd-ic,ka.bottom)}(!Er||mc(kr,Er)<0)&&(Er=kr),mc(ka,Er)<0&&(Er=ka),(!As||mc(kr,As)<0)&&(As=kr),mc(ka,As)<0&&(As=ka)}),{start:Er,end:As}}var en=C.from(),Vt=C.to();if(en.line==Vt.line)Tt(en.line,en.ch,Vt.ch);else{var bn=Si(F,en.line),Pn=Si(F,Vt.line),ai=Ui(bn)==Ui(Pn),gi=Tt(en.line,en.ch,ai?bn.text.length+1:null).end,_i=Tt(Vt.line,ai?0:null,Vt.ch).start;ai&&(gi.top<_i.top-2?(_t(gi.right,gi.top,null,gi.bottom),_t(Se,_i.top,_i.left,_i.bottom)):_t(gi.right,gi.top,_i.left-gi.right,gi.bottom)),gi.bottom<_i.top&&_t(Se,gi.bottom,null,_i.top)}T.appendChild(J)}function Uc(d){if(d.state.focused){var C=d.display;clearInterval(C.blinker);var T=!0;C.cursorDiv.style.visibility="",d.options.cursorBlinkRate>0?C.blinker=setInterval(function(){d.hasFocus()||bA(d),C.cursorDiv.style.visibility=(T=!T)?"":"hidden"},d.options.cursorBlinkRate):d.options.cursorBlinkRate<0&&(C.cursorDiv.style.visibility="hidden")}}function ks(d){d.hasFocus()||(d.display.input.focus(),d.state.focused||Ud(d))}function Th(d){d.state.delayingBlurEvent=!0,setTimeout(function(){d.state.delayingBlurEvent&&(d.state.delayingBlurEvent=!1,d.state.focused&&bA(d))},100)}function Ud(d,C){d.state.delayingBlurEvent&&!d.state.draggingText&&(d.state.delayingBlurEvent=!1),d.options.readOnly!="nocursor"&&(d.state.focused||(rt(d,"focus",d,C),d.state.focused=!0,ue(d.display.wrapper,"CodeMirror-focused"),!d.curOp&&d.display.selForContextMenu!=d.doc.sel&&(d.display.input.reset(),_&&setTimeout(function(){return d.display.input.reset(!0)},20)),d.display.input.receivedFocus()),Uc(d))}function bA(d,C){d.state.delayingBlurEvent||(d.state.focused&&(rt(d,"blur",d,C),d.state.focused=!1,Me(d.display.wrapper,"CodeMirror-focused")),clearInterval(d.display.blinker),setTimeout(function(){d.state.focused||(d.display.shift=!1)},150))}function Kd(d){for(var C=d.display,T=C.lineDiv.offsetTop,I=Math.max(0,C.scroller.getBoundingClientRect().top),F=C.lineDiv.getBoundingClientRect().top,J=0,pe=0;pe<C.view.length;pe++){var Se=C.view[pe],Pe=d.options.lineWrapping,Ge=void 0,_t=0;if(!Se.hidden){if(F+=Se.line.height,p&&g<8){var Tt=Se.node.offsetTop+Se.node.offsetHeight;Ge=Tt-T,T=Tt}else{var en=Se.node.getBoundingClientRect();Ge=en.bottom-en.top,!Pe&&Se.text.firstChild&&(_t=Se.text.firstChild.getBoundingClientRect().right-en.left-1)}var Vt=Se.line.height-Ge;if((Vt>.005||Vt<-.005)&&(F<I&&(J-=Vt),ea(Se.line,Ge),rh(Se.line),Se.rest))for(var bn=0;bn<Se.rest.length;bn++)rh(Se.rest[bn]);if(_t>d.display.sizerWidth){var Pn=Math.ceil(_t/Du(d.display));Pn>d.display.maxLineLength&&(d.display.maxLineLength=Pn,d.display.maxLine=Se.line,d.display.maxLineChanged=!0)}}}Math.abs(J)>2&&(C.scroller.scrollTop+=J)}function rh(d){if(d.widgets)for(var C=0;C<d.widgets.length;++C){var T=d.widgets[C],I=T.node.parentNode;I&&(T.height=I.offsetHeight)}}function Uu(d,C,T){var I=T&&T.top!=null?Math.max(0,T.top):d.scroller.scrollTop;I=Math.floor(I-kc(d));var F=T&&T.bottom!=null?T.bottom:I+d.wrapper.clientHeight,J=Bt(C,I),pe=Bt(C,F);if(T&&T.ensure){var Se=T.ensure.from.line,Pe=T.ensure.to.line;Se<J?(J=Se,pe=Bt(C,Qo(Si(C,Se))+d.wrapper.clientHeight)):Math.min(Pe,C.lastLine())>=pe&&(J=Bt(C,Qo(Si(C,Pe))-d.wrapper.clientHeight),pe=Pe)}return{from:J,to:Math.max(pe,J+1)}}function QA(d,C){if(!tn(d,"scrollCursorIntoView")){var T=d.display,I=T.sizer.getBoundingClientRect(),F=null,J=T.wrapper.ownerDocument;if(C.top+I.top<0?F=!0:C.bottom+I.top>(J.defaultView.innerHeight||J.documentElement.clientHeight)&&(F=!1),F!=null&&!Z){var pe=Ce("div","",null,`position: absolute;
|
||||
top: `+(C.top-T.viewOffset-kc(d.display))+`px;
|
||||
height: `+(C.bottom-C.top+GA(d)+T.barHeight)+`px;
|
||||
left: `+C.left+"px; width: "+Math.max(2,C.right-C.left)+"px;");d.display.lineSpace.appendChild(pe),pe.scrollIntoView(F),d.display.lineSpace.removeChild(pe)}}}function kh(d,C,T,I){I==null&&(I=0);var F;!d.options.lineWrapping&&C==T&&(T=C.sticky=="before"?an(C.line,C.ch+1,"before"):C,C=C.ch?an(C.line,C.sticky=="before"?C.ch-1:C.ch,"after"):C);for(var J=0;J<5;J++){var pe=!1,Se=Cn(d,C),Pe=!T||T==C?Se:Cn(d,T);F={left:Math.min(Se.left,Pe.left),top:Math.min(Se.top,Pe.top)-I,right:Math.max(Se.left,Pe.left),bottom:Math.max(Se.bottom,Pe.bottom)+I};var Ge=Ku(d,F),_t=d.doc.scrollTop,Tt=d.doc.scrollLeft;if(Ge.scrollTop!=null&&(oh(d,Ge.scrollTop),Math.abs(d.doc.scrollTop-_t)>1&&(pe=!0)),Ge.scrollLeft!=null&&(Ma(d,Ge.scrollLeft),Math.abs(d.doc.scrollLeft-Tt)>1&&(pe=!0)),!pe)break}return F}function id(d,C){var T=Ku(d,C);T.scrollTop!=null&&oh(d,T.scrollTop),T.scrollLeft!=null&&Ma(d,T.scrollLeft)}function Ku(d,C){var T=d.display,I=ku(d.display);C.top<0&&(C.top=0);var F=d.curOp&&d.curOp.scrollTop!=null?d.curOp.scrollTop:T.scroller.scrollTop,J=ed(d),pe={};C.bottom-C.top>J&&(C.bottom=C.top+J);var Se=d.doc.height+kd(T),Pe=C.top<I,Ge=C.bottom>Se-I;if(C.top<F)pe.scrollTop=Pe?0:C.top;else if(C.bottom>F+J){var _t=Math.min(C.top,(Ge?Se:C.bottom)-J);_t!=F&&(pe.scrollTop=_t)}var Tt=d.options.fixedGutter?0:T.gutters.offsetWidth,en=d.curOp&&d.curOp.scrollLeft!=null?d.curOp.scrollLeft:T.scroller.scrollLeft-Tt,Vt=iA(d)-T.gutters.offsetWidth,bn=C.right-C.left>Vt;return bn&&(C.right=C.left+Vt),C.left<10?pe.scrollLeft=0:C.left<en?pe.scrollLeft=Math.max(0,C.left+Tt-(bn?0:10)):C.right>Vt+en-3&&(pe.scrollLeft=C.right+(bn?0:10)-Vt),pe}function Ul(d,C){C!=null&&(qA(d),d.curOp.scrollTop=(d.curOp.scrollTop==null?d.doc.scrollTop:d.curOp.scrollTop)+C)}function qo(d){qA(d);var C=d.getCursor();d.curOp.scrollToPos={from:C,to:C,margin:d.options.cursorScrollMargin}}function ha(d,C,T){(C!=null||T!=null)&&qA(d),C!=null&&(d.curOp.scrollLeft=C),T!=null&&(d.curOp.scrollTop=T)}function YA(d,C){qA(d),d.curOp.scrollToPos=C}function qA(d){var C=d.curOp.scrollToPos;if(C){d.curOp.scrollToPos=null;var T=Di(d,C.from),I=Di(d,C.to);Kc(d,T,I,C.margin)}}function Kc(d,C,T,I){var F=Ku(d,{left:Math.min(C.left,T.left),top:Math.min(C.top,T.top)-I,right:Math.max(C.right,T.right),bottom:Math.max(C.bottom,T.bottom)+I});ha(d,F.scrollLeft,F.scrollTop)}function oh(d,C){Math.abs(d.doc.scrollTop-C)<2||(r||Ea(d,{top:C}),ah(d,C,!0),r&&Ea(d),lh(d,100))}function ah(d,C,T){C=Math.max(0,Math.min(d.display.scroller.scrollHeight-d.display.scroller.clientHeight,C)),!(d.display.scroller.scrollTop==C&&!T)&&(d.doc.scrollTop=C,d.display.scrollbars.setScrollTop(C),d.display.scroller.scrollTop!=C&&(d.display.scroller.scrollTop=C))}function Ma(d,C,T,I){C=Math.max(0,Math.min(C,d.display.scroller.scrollWidth-d.display.scroller.clientWidth)),!((T?C==d.doc.scrollLeft:Math.abs(d.doc.scrollLeft-C)<2)&&!I)&&(d.doc.scrollLeft=C,ff(d),d.display.scroller.scrollLeft!=C&&(d.display.scroller.scrollLeft=C),d.display.scrollbars.setScrollLeft(C))}function Sa(d){var C=d.display,T=C.gutters.offsetWidth,I=Math.round(d.doc.height+kd(d.display));return{clientHeight:C.scroller.clientHeight,viewHeight:C.wrapper.clientHeight,scrollWidth:C.scroller.scrollWidth,clientWidth:C.scroller.clientWidth,viewWidth:C.wrapper.clientWidth,barLeft:d.options.fixedGutter?T:0,docHeight:I,scrollHeight:I+GA(d)+C.barHeight,nativeBarWidth:C.nativeBarWidth,gutterWidth:T}}var Jr=function(d,C,T){this.cm=T;var I=this.vert=Ce("div",[Ce("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),F=this.horiz=Ce("div",[Ce("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");I.tabIndex=F.tabIndex=-1,d(I),d(F),yt(I,"scroll",function(){I.clientHeight&&C(I.scrollTop,"vertical")}),yt(F,"scroll",function(){F.clientWidth&&C(F.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,p&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Jr.prototype.update=function(d){var C=d.scrollWidth>d.clientWidth+1,T=d.scrollHeight>d.clientHeight+1,I=d.nativeBarWidth;if(T){this.vert.style.display="block",this.vert.style.bottom=C?I+"px":"0";var F=d.viewHeight-(C?I:0);this.vert.firstChild.style.height=Math.max(0,d.scrollHeight-d.clientHeight+F)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(C){this.horiz.style.display="block",this.horiz.style.right=T?I+"px":"0",this.horiz.style.left=d.barLeft+"px";var J=d.viewWidth-d.barLeft-(T?I:0);this.horiz.firstChild.style.width=Math.max(0,d.scrollWidth-d.clientWidth+J)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&d.clientHeight>0&&(I==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:T?I:0,bottom:C?I:0}},Jr.prototype.setScrollLeft=function(d){this.horiz.scrollLeft!=d&&(this.horiz.scrollLeft=d),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Jr.prototype.setScrollTop=function(d){this.vert.scrollTop!=d&&(this.vert.scrollTop=d),thi
Line truncated
|
||||
`},setDirection:bs(function(d){d!="rtl"&&(d="ltr"),d!=this.direction&&(this.direction=d,this.iter(function(C){return C.order=null}),this.cm&&wA(this.cm))})}),ut.prototype.eachLine=ut.prototype.iter;var ht=0;function ft(d){var C=this;if(St(C),!(tn(C,d)||du(C.display,d))){Yn(d),p&&(ht=+new Date);var T=qa(C,d,!0),I=d.dataTransfer.files;if(!(!T||C.isReadOnly()))if(I&&I.length&&window.FileReader&&window.File)for(var F=I.length,J=Array(F),pe=0,Se=function(){++pe==F&&na(C,function(){T=Hi(C.doc,T);var Vt={from:T,to:T,text:C.doc.splitLines(J.filter(function(bn){return bn!=null}).join(C.doc.lineSeparator())),origin:"paste"};il(C.doc,Vt),gu(C.doc,$A(Hi(C.doc,T),Hi(C.doc,ZA(Vt))))})()},Pe=function(Vt,bn){if(C.options.allowDropFileTypes&&Ve(C.options.allowDropFileTypes,Vt.type)==-1){Se();return}var Pn=new FileReader;Pn.onerror=function(){return Se()},Pn.onload=function(){var ai=Pn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ai)){Se();return}J[bn]=ai,Se()},Pn.readAsText(Vt)},Ge=0;Ge<I.length;Ge++)Pe(I[Ge],Ge);else{if(C.state.draggingText&&C.doc.sel.contains(T)>-1){C.state.draggingText(d),setTimeout(function(){return C.display.input.focus()},20);return}try{var _t=d.dataTransfer.getData("Text");if(_t){var Tt;if(C.state.draggingText&&!C.state.draggingText.copy&&(Tt=C.listSelections()),yo(C.doc,$A(T,T)),Tt)for(var en=0;en<Tt.length;++en)Jl(C.doc,"",Tt[en].anchor,Tt[en].head,"drag");C.replaceSelection(_t,"around","paste"),C.display.input.focus()}}catch{}}}}function Mt(d,C){if(p&&(!d.state.draggingText||+new Date-ht<100)){Ii(C);return}if(!(tn(d,C)||du(d.display,C))&&(C.dataTransfer.setData("Text",d.getSelection()),C.dataTransfer.effectAllowed="copyMove",C.dataTransfer.setDragImage&&!G)){var T=Ce("img",null,null,"position: fixed; left: 0; top: 0;");T.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",z&&(T.width=T.height=1,d.display.wrapper.appendChild(T),T._top=T.offsetTop),C.dataTransfer.setDragImage(T,0,0),z&&T.parentNode.removeChild(T)}}function Ct(d,C){var T=qa(d,C);if(T){var I=document.createDocumentFragment();Pr(d,T,I),d.display.dragCursor||(d.display.dragCursor=Ce("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),d.display.lineSpace.insertBefore(d.display.dragCursor,d.display.cursorDiv)),ze(d.display.dragCursor,I)}}function St(d){d.display.dragCursor&&(d.display.lineSpace.removeChild(d.display.dragCursor),d.display.dragCursor=null)}function Pt(d){if(document.getElementsByClassName){for(var C=document.getElementsByClassName("CodeMirror"),T=[],I=0;I<C.length;I++){var F=C[I].CodeMirror;F&&T.push(F)}T.length&&T[0].operation(function(){for(var J=0;J<T.length;J++)d(T[J])})}}var zt=!1;function Ot(){zt||(Ht(),zt=!0)}function Ht(){var d;yt(window,"resize",function(){d==null&&(d=setTimeout(function(){d=null,Pt(fn)},100))}),yt(window,"blur",function(){return Pt(bA)})}function fn(d){var C=d.display;C.cachedCharWidth=C.cachedTextHeight=C.cachedPaddingH=null,C.scrollbarsClipped=!1,d.setSize()}for(var Jt={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},rn=0;rn<10;rn++)Jt[rn+48]=Jt[rn+96]=String(rn);for(var An=65;An<=90;An++)Jt[An]=String.fromCharCode(An);for(var Zn=1;Zn<=12;Zn++)Jt[Zn+111]=Jt[Zn+63235]="F"+Zn;var qn={};qn.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},qn.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},qn.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","CtrlLine truncated
|
||||
`,"start")},toggleOverwrite:function(d){return d.toggleOverwrite()}};function Rs(d,C){var T=Si(d.doc,C),I=Ui(T);return I!=T&&(C=Xe(I)),us(!0,d,I,C,1)}function JA(d,C){var T=Si(d.doc,C),I=tr(T);return I!=T&&(C=Xe(I)),us(!0,d,T,C,-1)}function _c(d,C){var T=Rs(d,C.line),I=Si(d.doc,T.line),F=Ze(I,d.doc.direction);if(!F||F[0].level==0){var J=Math.max(T.ch,I.text.search(/\S/)),pe=C.line==T.line&&C.ch<=J&&C.ch;return an(T.line,pe?0:J,T.sticky)}return T}function eu(d,C,T){if(typeof C=="string"&&(C=Ds[C],!C))return!1;d.display.input.ensurePolled();var I=d.display.shift,F=!1;try{d.isReadOnly()&&(d.state.suppressEdits=!0),T&&(d.display.shift=!1),F=C(d)!=vt}finally{d.display.shift=I,d.state.suppressEdits=!1}return F}function Lh(d,C,T){for(var I=0;I<d.state.keyMaps.length;I++){var F=fr(C,d.state.keyMaps[I],T,d);if(F)return F}return d.options.extraKeys&&fr(C,d.options.extraKeys,T,d)||fr(C,d.options.keyMap,T,d)}var hh=new Ue;function ec(d,C,T,I){var F=d.state.keySeq;if(F){if(xo(C))return"handled";if(/\'$/.test(C)?d.state.keySeq=null:hh.set(50,function(){d.state.keySeq==F&&(d.state.keySeq=null,d.display.input.reset())}),Gc(d,F+" "+C,T,I))return!0}return Gc(d,C,T,I)}function Gc(d,C,T,I){var F=Lh(d,C,I);return F=="multi"&&(d.state.keySeq=C),F=="handled"&&as(d,"keyHandled",d,C,T),(F=="handled"||F=="multi")&&(Yn(T),Uc(d)),!!F}function El(d,C){var T=jo(C,!0);return T?C.shiftKey&&!d.state.keySeq?ec(d,"Shift-"+T,C,function(I){return eu(d,I,!0)})||ec(d,T,C,function(I){if(typeof I=="string"?/^go[A-Z]/.test(I):I.motion)return eu(d,I)}):ec(d,T,C,function(I){return eu(d,I)}):!1}function tc(d,C,T){return ec(d,"'"+T+"'",C,function(I){return eu(d,I,!0)})}var Bl=null;function Wc(d){var C=this;if(!(d.target&&d.target!=C.display.input.getField())&&(C.curOp.focus=it(Et(C)),!tn(C,d))){p&&g<11&&d.keyCode==27&&(d.returnValue=!1);var T=d.keyCode;C.display.shift=T==16||d.shiftKey;var I=El(C,d);z&&(Bl=I?T:null,!I&&T==88&&!cr&&(V?d.metaKey:d.ctrlKey)&&C.replaceSelection("",null,"cut")),r&&!V&&!I&&T==46&&d.shiftKey&&!d.ctrlKey&&document.execCommand&&document.execCommand("cut"),T==18&&!/\bCodeMirror-crosshair\b/.test(C.display.lineDiv.className)&&Mo(C)}}function Mo(d){var C=d.display.lineDiv;ue(C,"CodeMirror-crosshair");function T(I){(I.keyCode==18||!I.altKey)&&(Me(C,"CodeMirror-crosshair"),kt(document,"keyup",T),kt(document,"mouseover",T))}yt(document,"keyup",T),yt(document,"mouseover",T)}function ia(d){d.keyCode==16&&(this.doc.sel.shift=!1),tn(this,d)}function vu(d){var C=this;if(!(d.target&&d.target!=C.display.input.getField())&&!(du(C.display,d)||tn(C,d)||d.ctrlKey&&!d.altKey||V&&d.metaKey)){var T=d.keyCode,I=d.charCode;if(z&&T==Bl){Bl=null,Yn(d);return}if(!(z&&(!d.which||d.which<10)&&El(C,d))){var F=String.fromCharCode(I??T);F!="\b"&&(tc(C,d,F)||C.display.input.onKeyPress(d))}}}var xs=400,BA=function(d,C,T){this.time=d,this.pos=C,this.button=T};BA.prototype.compare=function(d,C,T){return this.time+xs>d&&li(C,this.pos)==0&&T==this.button};var Cu,ju;function tu(d,C){var T=+new Date;return ju&&ju.compare(T,d,C)?(Cu=ju=null,"triple"):Cu&&Cu.compare(T,d,C)?(ju=new BA(T,d,C),Cu=null,"double"):(Cu=new BA(T,d,C),ju=null,"single")}function Qc(d){var C=this,T=C.display;if(!(tn(C,d)||T.activeTouch&&T.input.supportsTouch())){if(T.input.ensurePolled(),T.shift=d.shiftKey,du(T,d)){_||(T.scroller.draggable=!1,setTimeout(function(){return T.scroller.draggable=!0},100));return}if(!hd(C,d)){var I=qa(C,d),F=ni(d),J=I?tu(I,F):"single";xt(C).focus(),F==1&&C.state.selectingText&&C.state.selectingText(d),!(I&&uA(C,F,I,J,d))&&(F==1?I?OA(C,I,J,d):di(d)==T.scroller&&Yn(d):F==2?(I&&XA(C.doc,I),setTimeout(function(){return T.input.focus()},20)):F==3&&(ve?C.display.input.onContextMenu(d):Th(C)))}}}function uA(d,C,T,I,F){var J="Click";return I=="double"?J="Double"+J:I=="triple"&&(J="Triple"+J),J=(C==1?"Left":C==2?"Middle":"Right")+J,ec(d,fa(J,F),F,function(pe){if(typeof pe=="string"&&(pe=Ds[pe]),!pe)return!1;var Se=!1;try{d.isReadOnly()&&(d.state.suppressEdits=!0),Se=pe(d,T)!=vt}finally{d.state.suppressEdits=!1}return Se})}function Za(d,C,T){var I=d.getOption("configureMouse"),F=I?I(d,C,T):{};if(F.unit==null){var J=ee?T.shiftKey&&T.metaKey:T.altKey;F.unit=J?"rectangle":C=="single"?"char":C=="double"?"word":"line"}return(F.extend==null||d.doc.extend)&&(F.extend=d.doc.extend||T.shiftKey),F.addNew==null&&(F.addNew=V?T.metaKey:T.ctrlKey),F.moveOnDrag==null&&(F.moveOnDrag=!(V?T.altKey:T.ctrlKey)),F}function OA(d,C,T,I){p?setTimeout(Kt(ks,d),0):d.curOp.focus=it(Et(d));var F=Za(d,T,I),J=d.doc.sel,pe;d.options.dragDrop&&qi&&!d.isReadOnly()&&T=="single"&&(pe=J.contains(C))>-1&&(li((pe=J.ranges[pe]).from(),C)<0||C.xRel>0)&&(li(pe.to(),C)>0||C.xRel<0)?tp(d,I,C,F):TA(d,I,C,F)}function tp(d,C,T,I){var F=d.display,J=!1,pe=na(d,function(Ge){_&&(F.scroller.draggable=!1),d.state.draggingText=!1,d.state.delayingBlurEvent&&(d.hasFocus()?d.state.delayingBlurEvent=!1:Th(d)),kt(F.wrapper.ownerDocument,"mouseup",pe),kt(F.wrapper.ownerDocument,"mousemove",Se),kt(F.scroller,"dragstart",Pe),kt(F.scro
Line truncated
|
||||
`,"start")},toggleOverwrite:function(d){return d.toggleOverwrite()}};function Rs(d,C){var T=Si(d.doc,C),I=Ui(T);return I!=T&&(C=Xe(I)),us(!0,d,I,C,1)}function JA(d,C){var T=Si(d.doc,C),I=tr(T);return I!=T&&(C=Xe(I)),us(!0,d,T,C,-1)}function _c(d,C){var T=Rs(d,C.line),I=Si(d.doc,T.line),F=Ze(I,d.doc.direction);if(!F||F[0].level==0){var J=Math.max(T.ch,I.text.search(/\S/)),pe=C.line==T.line&&C.ch<=J&&C.ch;return an(T.line,pe?0:J,T.sticky)}return T}function eu(d,C,T){if(typeof C=="string"&&(C=Ds[C],!C))return!1;d.display.input.ensurePolled();var I=d.display.shift,F=!1;try{d.isReadOnly()&&(d.state.suppressEdits=!0),T&&(d.display.shift=!1),F=C(d)!=vt}finally{d.display.shift=I,d.state.suppressEdits=!1}return F}function Lh(d,C,T){for(var I=0;I<d.state.keyMaps.length;I++){var F=fr(C,d.state.keyMaps[I],T,d);if(F)return F}return d.options.extraKeys&&fr(C,d.options.extraKeys,T,d)||fr(C,d.options.keyMap,T,d)}var hh=new Ue;function ec(d,C,T,I){var F=d.state.keySeq;if(F){if(xo(C))return"handled";if(/\'$/.test(C)?d.state.keySeq=null:hh.set(50,function(){d.state.keySeq==F&&(d.state.keySeq=null,d.display.input.reset())}),Gc(d,F+" "+C,T,I))return!0}return Gc(d,C,T,I)}function Gc(d,C,T,I){var F=Lh(d,C,I);return F=="multi"&&(d.state.keySeq=C),F=="handled"&&as(d,"keyHandled",d,C,T),(F=="handled"||F=="multi")&&(Yn(T),Uc(d)),!!F}function El(d,C){var T=jo(C,!0);return T?C.shiftKey&&!d.state.keySeq?ec(d,"Shift-"+T,C,function(I){return eu(d,I,!0)})||ec(d,T,C,function(I){if(typeof I=="string"?/^go[A-Z]/.test(I):I.motion)return eu(d,I)}):ec(d,T,C,function(I){return eu(d,I)}):!1}function tc(d,C,T){return ec(d,"'"+T+"'",C,function(I){return eu(d,I,!0)})}var Bl=null;function Wc(d){var C=this;if(!(d.target&&d.target!=C.display.input.getField())&&(C.curOp.focus=it(Et(C)),!tn(C,d))){p&&g<11&&d.keyCode==27&&(d.returnValue=!1);var T=d.keyCode;C.display.shift=T==16||d.shiftKey;var I=El(C,d);z&&(Bl=I?T:null,!I&&T==88&&!cr&&(V?d.metaKey:d.ctrlKey)&&C.replaceSelection("",null,"cut")),r&&!V&&!I&&T==46&&d.shiftKey&&!d.ctrlKey&&document.execCommand&&document.execCommand("cut"),T==18&&!/\bCodeMirror-crosshair\b/.test(C.display.lineDiv.className)&&Mo(C)}}function Mo(d){var C=d.display.lineDiv;ue(C,"CodeMirror-crosshair");function T(I){(I.keyCode==18||!I.altKey)&&(Me(C,"CodeMirror-crosshair"),kt(document,"keyup",T),kt(document,"mouseover",T))}yt(document,"keyup",T),yt(document,"mouseover",T)}function ia(d){d.keyCode==16&&(this.doc.sel.shift=!1),tn(this,d)}function vu(d){var C=this;if(!(d.target&&d.target!=C.display.input.getField())&&!(du(C.display,d)||tn(C,d)||d.ctrlKey&&!d.altKey||V&&d.metaKey)){var T=d.keyCode,I=d.charCode;if(z&&T==Bl){Bl=null,Yn(d);return}if(!(z&&(!d.which||d.which<10)&&El(C,d))){var F=String.fromCharCode(I??T);F!="\b"&&(tc(C,d,F)||C.display.input.onKeyPress(d))}}}var xs=400,BA=function(d,C,T){this.time=d,this.pos=C,this.button=T};BA.prototype.compare=function(d,C,T){return this.time+xs>d&&li(C,this.pos)==0&&T==this.button};var Cu,ju;function tu(d,C){var T=+new Date;return ju&&ju.compare(T,d,C)?(Cu=ju=null,"triple"):Cu&&Cu.compare(T,d,C)?(ju=new BA(T,d,C),Cu=null,"double"):(Cu=new BA(T,d,C),ju=null,"single")}function Qc(d){var C=this,T=C.display;if(!(tn(C,d)||T.activeTouch&&T.input.supportsTouch())){if(T.input.ensurePolled(),T.shift=d.shiftKey,du(T,d)){_||(T.scroller.draggable=!1,setTimeout(function(){return T.scroller.draggable=!0},100));return}if(!hd(C,d)){var I=qa(C,d),F=ni(d),J=I?tu(I,F):"single";xt(C).focus(),F==1&&C.state.selectingText&&C.state.selectingText(d),!(I&&uA(C,F,I,J,d))&&(F==1?I?OA(C,I,J,d):di(d)==T.scroller&&Yn(d):F==2?(I&&XA(C.doc,I),setTimeout(function(){return T.input.focus()},20)):F==3&&(ve?C.display.input.onContextMenu(d):Th(C)))}}}function uA(d,C,T,I,F){var J="Click";return I=="double"?J="Double"+J:I=="triple"&&(J="Triple"+J),J=(C==1?"Left":C==2?"Middle":"Right")+J,ec(d,fa(J,F),F,function(pe){if(typeof pe=="string"&&(pe=Ds[pe]),!pe)return!1;var Se=!1;try{d.isReadOnly()&&(d.state.suppressEdits=!0),Se=pe(d,T)!=vt}finally{d.state.suppressEdits=!1}return Se})}function Za(d,C,T){var I=d.getOption("configureMouse"),F=I?I(d,C,T):{};if(F.unit==null){var J=ee?T.shiftKey&&T.metaKey:T.altKey;F.unit=J?"rectangle":C=="single"?"char":C=="double"?"word":"line"}return(F.extend==null||d.doc.extend)&&(F.extend=d.doc.extend||T.shiftKey),F.addNew==null&&(F.addNew=V?T.metaKey:T.ctrlKey),F.moveOnDrag==null&&(F.moveOnDrag=!(V?T.altKey:T.ctrlKey)),F}function OA(d,C,T,I){p?setTimeout(Kt(ks,d),0):d.curOp.focus=it(Et(d));var F=Za(d,T,I),J=d.doc.sel,pe;d.options.dragDrop&&qi&&!d.isReadOnly()&&T=="single"&&(pe=J.contains(C))>-1&&(li((pe=J.ranges[pe]).from(),C)<0||C.xRel>0)&&(li(pe.to(),C)>0||C.xRel<0)?tp(d,I,C,F):TA(d,I,C,F)}function tp(d,C,T,I){var F=d.display,J=!1,pe=na(d,function(Ge){_&&(F.scroller.draggable=!1),d.state.draggingText=!1,d.state.delayingBlurEvent&&(d.hasFocus()?d.state.delayingBlurEvent=!1:Th(d)),kt(F.wrapper.ownerDocument,"mouseup",pe),kt(F.wrapper.ownerDocument,"mousemove",Se),kt(F.scroller,"dragstart",Pe),kt(F.scro
Line truncated
|
||||
`)==C){if(I.ranges.length%cA.text.length==0){Ge=[];for(var _t=0;_t<cA.text.length;_t++)Ge.push(J.splitLines(cA.text[_t]))}}else Pe.length==I.ranges.length&&d.options.pasteLinesPerSelection&&(Ge=On(Pe,function(gi){return[gi]}));for(var Tt=d.curOp.updateInput,en=I.ranges.length-1;en>=0;en--){var Vt=I.ranges[en],bn=Vt.from(),Pn=Vt.to();Vt.empty()&&(T&&T>0?bn=an(bn.line,bn.ch-T):d.state.overwrite&&!Se?Pn=an(Pn.line,Math.min(Si(J,Pn.line).text.length,Pn.ch+Wn(Pe).length)):Se&&cA&&cA.lineWise&&cA.text.join(`
|
||||
`)==Pe.join(`
|
||||
`)&&(bn=Pn=an(bn.line,0)));var ai={from:bn,to:Pn,text:Ge?Ge[en%Ge.length]:Pe,origin:F||(Se?"paste":d.state.cutIncoming>pe?"cut":"+input")};il(d.doc,ai),as(d,"inputRead",d,ai)}C&&!Se&&ap(d,C),qo(d),d.curOp.updateInput<2&&(d.curOp.updateInput=Tt),d.curOp.typing=!0,d.state.pasteIncoming=d.state.cutIncoming=-1}function ms(d,C){var T=d.clipboardData&&d.clipboardData.getData("Text");if(T)return d.preventDefault(),!C.isReadOnly()&&!C.options.disableInput&&C.hasFocus()&&Ha(C,function(){return rl(C,T,0,null,"paste")}),!0}function ap(d,C){if(!(!d.options.electricChars||!d.options.smartIndent))for(var T=d.doc.sel,I=T.ranges.length-1;I>=0;I--){var F=T.ranges[I];if(!(F.head.ch>100||I&&T.ranges[I-1].head.line==F.head.line)){var J=d.getModeAt(F.head),pe=!1;if(J.electricChars){for(var Se=0;Se<J.electricChars.length;Se++)if(C.indexOf(J.electricChars.charAt(Se))>-1){pe=op(d,F.head.line,"smart");break}}else J.electricInput&&J.electricInput.test(Si(d.doc,F.head.line).text.slice(0,F.head.ch))&&(pe=op(d,F.head.line,"smart"));pe&&as(d,"electricInput",d,F.head.line)}}}function Wp(d){for(var C=[],T=[],I=0;I<d.doc.sel.ranges.length;I++){var F=d.doc.sel.ranges[I].head.line,J={anchor:an(F,0),head:an(F+1,0)};T.push(J),C.push(d.getRange(J.anchor,J.head))}return{text:C,ranges:T}}function sp(d,C,T,I){d.setAttribute("autocorrect",T?"on":"off"),d.setAttribute("autocapitalize",I?"on":"off"),d.setAttribute("spellcheck",!!C)}function Cf(){var d=Ce("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),C=Ce("div",[d],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return _?d.style.width="1000px":d.setAttribute("wrap","off"),X&&(d.style.border="1px solid black"),C}function Nd(d){var C=d.optionHandlers,T=d.helpers={};d.prototype={constructor:d,focus:function(){xt(this).focus(),this.display.input.focus()},setOption:function(I,F){var J=this.options,pe=J[I];J[I]==F&&I!="mode"||(J[I]=F,C.hasOwnProperty(I)&&na(this,C[I])(this,F,pe),rt(this,"optionChange",this,I))},getOption:function(I){return this.options[I]},getDoc:function(){return this.doc},addKeyMap:function(I,F){this.state.keyMaps[F?"push":"unshift"](ja(I))},removeKeyMap:function(I){for(var F=this.state.keyMaps,J=0;J<F.length;++J)if(F[J]==I||F[J].name==I)return F.splice(J,1),!0},addOverlay:Cr(function(I,F){var J=I.token?I:d.getMode(this.options,I);if(J.startState)throw new Error("Overlays may not be stateful.");Bn(this.state.overlays,{mode:J,modeSpec:I,opaque:F&&F.opaque,priority:F&&F.priority||0},function(pe){return pe.priority}),this.state.modeGen++,Ts(this)}),removeOverlay:Cr(function(I){for(var F=this.state.overlays,J=0;J<F.length;++J){var pe=F[J].modeSpec;if(pe==I||typeof I=="string"&&pe.name==I){F.splice(J,1),this.state.modeGen++,Ts(this);return}}}),indentLine:Cr(function(I,F,J){typeof F!="string"&&typeof F!="number"&&(F==null?F=this.options.smartIndent?"smart":"prev":F=F?"add":"subtract"),Mn(this.doc,I)&&op(this,I,F,J)}),indentSelection:Cr(function(I){for(var F=this.doc.sel.ranges,J=-1,pe=0;pe<F.length;pe++){var Se=F[pe];if(Se.empty())Se.head.line>J&&(op(this,Se.head.line,I,!0),J=Se.head.line,pe==this.doc.sel.primIndex&&qo(this));else{var Pe=Se.from(),Ge=Se.to(),_t=Math.max(J,Pe.line);J=Math.min(this.lastLine(),Ge.line-(Ge.ch?0:1))+1;for(var Tt=_t;Tt<J;++Tt)op(this,Tt,I);var en=this.doc.sel.ranges;Pe.ch==0&&F.length==en.length&&en[pe].from().ch>0&&Ri(this.doc,pe,new eo(Pe,en[pe].to()),It)}}}),getTokenAt:function(I,F){return Wl(this,I,F)},getLineTokens:function(I,F){return Wl(this,an(I),F,!0)},getTokenTypeAt:function(I){I=Hi(this.doc,I);var F=Xs(this,Si(this.doc,I.line)),J=0,pe=(F.length-1)/2,Se=I.ch,Pe;if(Se==0)Pe=F[2];else for(;;){var Ge=J+pe>>1;if((Ge?F[Ge*2-1]:0)>=Se)pe=Ge;else if(F[Ge*2+1]<Se)J=Ge+1;else{Pe=F[Ge*2+2];break}}var _t=Pe?Pe.indexOf("overlay "):-1;return _t<0?Pe:_t==0?null:Pe.slice(0,_t-1)},getModeAt:function(I){var F=this.doc.mode;return F.innerMode?d.innerMode(F,this.getTokenAt(I).state).mode:F},getHelper:function(I,F){return this.getHelpers(I,F)[0]},getHelpers:function(I,F){var J=[];if(!T.hasOwnProperty(F))return J;var pe=T[F],Se=this.getModeAt(I);if(typeof Se[F]=="string")pe[Se[F]]&&J.push(pe[Se[F]]);else if(Se[F])for(var Pe=0;Pe<Se[F].length;Pe++){var Ge=pe[Se[F][Pe]];Ge&&J.push(Ge)}else Se.helperType&&pe[Se.helperType]?J.push(pe[Se.helperType]):pe[Se.name]&&J.push(pe[Se.name]);for(var _t=0;_t<pe._global.length;_t++){var Tt=pe._global[_t];Tt.pred(Se,this)&&Ve(J,Tt.val)==-1&&J.push(Tt.val)}return J},getStateAfter:function(I,F){var J=this.doc;return I=Ju(J,I??J.first+J.size-1),ta(this,I+1,F).state},cursorCoords:function(I,F){var J,pe=this.doc.sel.primary();return I==null?J=pe.head:typeof I=="object"?J=Hi(this.doc,I):J=I?pe.from():pe.to(),Cn(this,J,F||"page")},charCoords:function(I,F){return En(this,Hi(this.doc,I),F||"page")},coordsChar:function(I,F){return I=Xt(this,I,F||"page"),ko(this,I.left,I.top)},lineAtHeight:function(I,F){return I=Xt(this,{top:I,left:0},F||"page").top,Bt(
Line truncated
|
||||
`,ai=De(Pn,Vt)?"w":en&&Pn==`
|
||||
`?"n":!en||/\s/.test(Pn)?null:"p";if(en&&!bn&&!ai&&(ai="s"),Tt&&Tt!=ai){T<0&&(T=1,_t(),C.sticky="after");break}if(ai&&(Tt=ai),T>0&&!_t(!bn))break}var gi=Va(d,C,J,pe,!0);return no(J,gi)&&(gi.hitSide=!0),gi}function _f(d,C,T,I){var F=d.doc,J=C.left,pe;if(I=="page"){var Se=Math.min(d.display.wrapper.clientHeight,xt(d).innerHeight||F(d).documentElement.clientHeight),Pe=Math.max(Se-.5*ku(d.display),3);pe=(T>0?C.bottom:C.top)+T*Pe}else I=="line"&&(pe=T>0?C.bottom+3:C.top-3);for(var Ge;Ge=ko(d,J,pe),!!Ge.outside;){if(T<0?pe<=0:pe>=F.height){Ge.hitSide=!0;break}pe+=T*5}return Ge}var oa=function(d){this.cm=d,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ue,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};oa.prototype.init=function(d){var C=this,T=this,I=T.cm,F=T.div=d.lineDiv;F.contentEditable=!0,sp(F,I.options.spellcheck,I.options.autocorrect,I.options.autocapitalize);function J(Se){for(var Pe=Se.target;Pe;Pe=Pe.parentNode){if(Pe==F)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Pe.className))break}return!1}yt(F,"paste",function(Se){!J(Se)||tn(I,Se)||ms(Se,I)||g<=11&&setTimeout(na(I,function(){return C.updateFromDOM()}),20)}),yt(F,"compositionstart",function(Se){C.composing={data:Se.data,done:!1}}),yt(F,"compositionupdate",function(Se){C.composing||(C.composing={data:Se.data,done:!1})}),yt(F,"compositionend",function(Se){C.composing&&(Se.data!=C.composing.data&&C.readFromDOMSoon(),C.composing.done=!0)}),yt(F,"touchstart",function(){return T.forceCompositionEnd()}),yt(F,"input",function(){C.composing||C.readFromDOMSoon()});function pe(Se){if(!(!J(Se)||tn(I,Se))){if(I.somethingSelected())jd({lineWise:!1,text:I.getSelections()}),Se.type=="cut"&&I.replaceSelection("",null,"cut");else if(I.options.lineWiseCopyCut){var Pe=Wp(I);jd({lineWise:!0,text:Pe.text}),Se.type=="cut"&&I.operation(function(){I.setSelections(Pe.ranges,0,It),I.replaceSelection("",null,"cut")})}else return;if(Se.clipboardData){Se.clipboardData.clearData();var Ge=cA.text.join(`
|
||||
`);if(Se.clipboardData.setData("Text",Ge),Se.clipboardData.getData("Text")==Ge){Se.preventDefault();return}}var _t=Cf(),Tt=_t.firstChild;sp(Tt),I.display.lineSpace.insertBefore(_t,I.display.lineSpace.firstChild),Tt.value=cA.text.join(`
|
||||
`);var en=it(gt(F));tt(Tt),setTimeout(function(){I.display.lineSpace.removeChild(_t),en.focus(),en==F&&T.showPrimarySelection()},50)}}yt(F,"copy",pe),yt(F,"cut",pe)},oa.prototype.screenReaderLabelChanged=function(d){d?this.div.setAttribute("aria-label",d):this.div.removeAttribute("aria-label")},oa.prototype.prepareSelection=function(){var d=Ih(this.cm,!1);return d.focus=it(gt(this.div))==this.div,d},oa.prototype.showSelection=function(d,C){!d||!this.cm.display.view.length||((d.focus||C)&&this.showPrimarySelection(),this.showMultipleSelections(d))},oa.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},oa.prototype.showPrimarySelection=function(){var d=this.getSelection(),C=this.cm,T=C.doc.sel.primary(),I=T.from(),F=T.to();if(C.display.viewTo==C.display.viewFrom||I.line>=C.display.viewTo||F.line<C.display.viewFrom){d.removeAllRanges();return}var J=cl(C,d.anchorNode,d.anchorOffset),pe=cl(C,d.focusNode,d.focusOffset);if(!(J&&!J.bad&&pe&&!pe.bad&&li(Gs(J,pe),I)==0&&li(ps(J,pe),F)==0)){var Se=C.display.view,Pe=I.line>=C.display.viewFrom&&zh(C,I)||{node:Se[0].measure.map[2],offset:0},Ge=F.line<C.display.viewTo&&zh(C,F);if(!Ge){var _t=Se[Se.length-1].measure,Tt=_t.maps?_t.maps[_t.maps.length-1]:_t.map;Ge={node:Tt[Tt.length-1],offset:Tt[Tt.length-2]-Tt[Tt.length-3]}}if(!Pe||!Ge){d.removeAllRanges();return}var en=d.rangeCount&&d.getRangeAt(0),Vt;try{Vt=ot(Pe.node,Pe.offset,Ge.offset,Ge.node)}catch{}Vt&&(!r&&C.state.focused?(d.collapse(Pe.node,Pe.offset),Vt.collapsed||(d.removeAllRanges(),d.addRange(Vt))):(d.removeAllRanges(),d.addRange(Vt)),en&&d.anchorNode==null?d.addRange(en):r&&this.startGracePeriod()),this.rememberSelection()}},oa.prototype.startGracePeriod=function(){var d=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){d.gracePeriod=!1,d.selectionChanged()&&d.cm.operation(function(){return d.cm.curOp.selectionChanged=!0})},20)},oa.prototype.showMultipleSelections=function(d){ze(this.cm.display.cursorDiv,d.cursors),ze(this.cm.display.selectionDiv,d.selection)},oa.prototype.rememberSelection=function(){var d=this.getSelection();this.lastAnchorNode=d.anchorNode,this.lastAnchorOffset=d.anchorOffset,this.lastFocusNode=d.focusNode,this.lastFocusOffset=d.focusOffset},oa.prototype.selectionInEditor=function(){var d=this.getSelection();if(!d.rangeCount)return!1;var C=d.getRangeAt(0).commonAncestorContainer;return mt(this.div,C)},oa.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||it(gt(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},oa.prototype.blur=function(){this.div.blur()},oa.prototype.getField=function(){return this.div},oa.prototype.supportsTouch=function(){return!0},oa.prototype.receivedFocus=function(){var d=this,C=this;this.selectionInEditor()?setTimeout(function(){return d.pollSelection()},20):Ha(this.cm,function(){return C.cm.curOp.selectionChanged=!0});function T(){C.cm.state.focused&&(C.pollSelection(),C.polling.set(C.cm.options.pollInterval,T))}this.polling.set(this.cm.options.pollInterval,T)},oa.prototype.selectionChanged=function(){var d=this.getSelection();return d.anchorNode!=this.lastAnchorNode||d.anchorOffset!=this.lastAnchorOffset||d.focusNode!=this.lastFocusNode||d.focusOffset!=this.lastFocusOffset},oa.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var d=this.getSelection(),C=this.cm;if(re&&O&&this.cm.display.gutterSpecs.length&&Tm(d.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var T=cl(C,d.anchorNode,d.anchorOffset),I=cl(C,d.focusNode,d.focusOffset);T&&I&&Ha(C,function(){da(C.doc,$A(T,I),It),(T.bad||I.bad)&&(C.curOp.selectionChanged=!0)})}}},oa.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var d=this.cm,C=d.display,T=d.doc.sel.primary(),I=T.from(),F=T.to();if(I.ch==0&&I.line>d.firstLine()&&(I=an(I.line-1,Si(d.doc,I.line-1).length)),F.ch==Si(d.doc,F.line).text.length&&F.line<d.lastLine()&&(F=an(F.line+1,0)),I.line<C.viewFrom||F.line>C.viewTo-1)return!1;var J,pe,Se;I.line==C.viewFrom||(J=tl(d,I.line))==0?(pe=Xe(C.view[0].line),Se=C.view[0].node):(pe=Xe(C.view[J].line),Se=C.view[J-1].node.nextSibling);var Pe=tl(d,F.line),Ge,_t;if(Pe==C.view.length-1?(Ge=C.viewTo-1,_t=C.lineDiv.lastChild):(Ge=Xe(C.view[Pe+1].line)-1,_t=C.view[Pe+1].node.previousSibling),!Se)return!1;for(var Tt=d.doc.splitLines(_u(d,Se,_t,pe,Ge)),en=fs(d.doc,an(pe,0),an(Ge,Si(d.doc,Ge).text.length));Tt.length>1&&en.length>1;)if(Wn(Tt)==Wn(en))Tt.pop(),en.pop(),Ge--;else if(Tt[0]==en[0])Tt.shift(),en.shift(),pe++;else break;for(var Vt=0,bn=0,Pn=Tt[0],ai=en[0],gi=Math.min(Pn.length,ai.length);Vt<gi&&Pn.charCodeAt(Vt)==ai.charCodeAt(Vt);)++Vt;for(var _i=Wn(Tt),yi=Wn(en),Pi=Math.min(_i.length-(Tt.length==1?Vt:0),yi.length-(en.
Line truncated
|
||||
`);var en=it(gt(F));tt(Tt),setTimeout(function(){I.display.lineSpace.removeChild(_t),en.focus(),en==F&&T.showPrimarySelection()},50)}}yt(F,"copy",pe),yt(F,"cut",pe)},oa.prototype.screenReaderLabelChanged=function(d){d?this.div.setAttribute("aria-label",d):this.div.removeAttribute("aria-label")},oa.prototype.prepareSelection=function(){var d=Ih(this.cm,!1);return d.focus=it(gt(this.div))==this.div,d},oa.prototype.showSelection=function(d,C){!d||!this.cm.display.view.length||((d.focus||C)&&this.showPrimarySelection(),this.showMultipleSelections(d))},oa.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},oa.prototype.showPrimarySelection=function(){var d=this.getSelection(),C=this.cm,T=C.doc.sel.primary(),I=T.from(),F=T.to();if(C.display.viewTo==C.display.viewFrom||I.line>=C.display.viewTo||F.line<C.display.viewFrom){d.removeAllRanges();return}var J=cl(C,d.anchorNode,d.anchorOffset),pe=cl(C,d.focusNode,d.focusOffset);if(!(J&&!J.bad&&pe&&!pe.bad&&li(Gs(J,pe),I)==0&&li(ps(J,pe),F)==0)){var Se=C.display.view,Pe=I.line>=C.display.viewFrom&&zh(C,I)||{node:Se[0].measure.map[2],offset:0},Ge=F.line<C.display.viewTo&&zh(C,F);if(!Ge){var _t=Se[Se.length-1].measure,Tt=_t.maps?_t.maps[_t.maps.length-1]:_t.map;Ge={node:Tt[Tt.length-1],offset:Tt[Tt.length-2]-Tt[Tt.length-3]}}if(!Pe||!Ge){d.removeAllRanges();return}var en=d.rangeCount&&d.getRangeAt(0),Vt;try{Vt=ot(Pe.node,Pe.offset,Ge.offset,Ge.node)}catch{}Vt&&(!r&&C.state.focused?(d.collapse(Pe.node,Pe.offset),Vt.collapsed||(d.removeAllRanges(),d.addRange(Vt))):(d.removeAllRanges(),d.addRange(Vt)),en&&d.anchorNode==null?d.addRange(en):r&&this.startGracePeriod()),this.rememberSelection()}},oa.prototype.startGracePeriod=function(){var d=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){d.gracePeriod=!1,d.selectionChanged()&&d.cm.operation(function(){return d.cm.curOp.selectionChanged=!0})},20)},oa.prototype.showMultipleSelections=function(d){ze(this.cm.display.cursorDiv,d.cursors),ze(this.cm.display.selectionDiv,d.selection)},oa.prototype.rememberSelection=function(){var d=this.getSelection();this.lastAnchorNode=d.anchorNode,this.lastAnchorOffset=d.anchorOffset,this.lastFocusNode=d.focusNode,this.lastFocusOffset=d.focusOffset},oa.prototype.selectionInEditor=function(){var d=this.getSelection();if(!d.rangeCount)return!1;var C=d.getRangeAt(0).commonAncestorContainer;return mt(this.div,C)},oa.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||it(gt(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},oa.prototype.blur=function(){this.div.blur()},oa.prototype.getField=function(){return this.div},oa.prototype.supportsTouch=function(){return!0},oa.prototype.receivedFocus=function(){var d=this,C=this;this.selectionInEditor()?setTimeout(function(){return d.pollSelection()},20):Ha(this.cm,function(){return C.cm.curOp.selectionChanged=!0});function T(){C.cm.state.focused&&(C.pollSelection(),C.polling.set(C.cm.options.pollInterval,T))}this.polling.set(this.cm.options.pollInterval,T)},oa.prototype.selectionChanged=function(){var d=this.getSelection();return d.anchorNode!=this.lastAnchorNode||d.anchorOffset!=this.lastAnchorOffset||d.focusNode!=this.lastFocusNode||d.focusOffset!=this.lastFocusOffset},oa.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var d=this.getSelection(),C=this.cm;if(re&&O&&this.cm.display.gutterSpecs.length&&km(d.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var T=cl(C,d.anchorNode,d.anchorOffset),I=cl(C,d.focusNode,d.focusOffset);T&&I&&Ha(C,function(){da(C.doc,$A(T,I),It),(T.bad||I.bad)&&(C.curOp.selectionChanged=!0)})}}},oa.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var d=this.cm,C=d.display,T=d.doc.sel.primary(),I=T.from(),F=T.to();if(I.ch==0&&I.line>d.firstLine()&&(I=an(I.line-1,Si(d.doc,I.line-1).length)),F.ch==Si(d.doc,F.line).text.length&&F.line<d.lastLine()&&(F=an(F.line+1,0)),I.line<C.viewFrom||F.line>C.viewTo-1)return!1;var J,pe,Se;I.line==C.viewFrom||(J=tl(d,I.line))==0?(pe=Xe(C.view[0].line),Se=C.view[0].node):(pe=Xe(C.view[J].line),Se=C.view[J-1].node.nextSibling);var Pe=tl(d,F.line),Ge,_t;if(Pe==C.view.length-1?(Ge=C.viewTo-1,_t=C.lineDiv.lastChild):(Ge=Xe(C.view[Pe+1].line)-1,_t=C.view[Pe+1].node.previousSibling),!Se)return!1;for(var Tt=d.doc.splitLines(_u(d,Se,_t,pe,Ge)),en=fs(d.doc,an(pe,0),an(Ge,Si(d.doc,Ge).text.length));Tt.length>1&&en.length>1;)if(Wn(Tt)==Wn(en))Tt.pop(),en.pop(),Ge--;else if(Tt[0]==en[0])Tt.shift(),en.shift(),pe++;else break;for(var Vt=0,bn=0,Pn=Tt[0],ai=en[0],gi=Math.min(Pn.length,ai.length);Vt<gi&&Pn.charCodeAt(Vt)==ai.charCodeAt(Vt);)++Vt;for(var _i=Wn(Tt),yi=Wn(en),Pi=Math.min(_i.length-(Tt.length==1?Vt:0),yi.length-(en.
Line truncated
|
||||
`),tt(F))}else return;pe.type=="cut"&&(I.state.cutIncoming=+new Date)}}yt(F,"cut",J),yt(F,"copy",J),yt(d.scroller,"paste",function(pe){if(!(du(d,pe)||tn(I,pe))){if(!F.dispatchEvent){I.state.pasteIncoming=+new Date,T.focus();return}var Se=new Event("paste");Se.clipboardData=pe.clipboardData,F.dispatchEvent(Se)}}),yt(d.lineSpace,"selectstart",function(pe){du(d,pe)||Yn(pe)}),yt(F,"compositionstart",function(){var pe=I.getCursor("from");T.composing&&T.composing.range.clear(),T.composing={start:pe,range:I.markText(pe,I.getCursor("to"),{className:"CodeMirror-composing"})}}),yt(F,"compositionend",function(){T.composing&&(T.poll(),T.composing.range.clear(),T.composing=null)})},Ys.prototype.createField=function(d){this.wrapper=Cf(),this.textarea=this.wrapper.firstChild;var C=this.cm.options;sp(this.textarea,C.spellcheck,C.autocorrect,C.autocapitalize)},Ys.prototype.screenReaderLabelChanged=function(d){d?this.textarea.setAttribute("aria-label",d):this.textarea.removeAttribute("aria-label")},Ys.prototype.prepareSelection=function(){var d=this.cm,C=d.display,T=d.doc,I=Ih(d);if(d.options.moveInputWithCursor){var F=Cn(d,T.sel.primary().head,"div"),J=C.wrapper.getBoundingClientRect(),pe=C.lineDiv.getBoundingClientRect();I.teTop=Math.max(0,Math.min(C.wrapper.clientHeight-10,F.top+pe.top-J.top)),I.teLeft=Math.max(0,Math.min(C.wrapper.clientWidth-10,F.left+pe.left-J.left))}return I},Ys.prototype.showSelection=function(d){var C=this.cm,T=C.display;ze(T.cursorDiv,d.cursors),ze(T.selectionDiv,d.selection),d.teTop!=null&&(this.wrapper.style.top=d.teTop+"px",this.wrapper.style.left=d.teLeft+"px")},Ys.prototype.reset=function(d){if(!(this.contextMenuPending||this.composing&&d)){var C=this.cm;if(this.resetting=!0,C.somethingSelected()){this.prevInput="";var T=C.getSelection();this.textarea.value=T,C.state.focused&&tt(this.textarea),p&&g>=9&&(this.hasSelection=T)}else d||(this.prevInput=this.textarea.value="",p&&g>=9&&(this.hasSelection=null));this.resetting=!1}},Ys.prototype.getField=function(){return this.textarea},Ys.prototype.supportsTouch=function(){return!1},Ys.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ie||it(gt(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Ys.prototype.blur=function(){this.textarea.blur()},Ys.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ys.prototype.receivedFocus=function(){this.slowPoll()},Ys.prototype.slowPoll=function(){var d=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){d.poll(),d.cm.state.focused&&d.slowPoll()})},Ys.prototype.fastPoll=function(){var d=!1,C=this;C.pollingFast=!0;function T(){var I=C.poll();!I&&!d?(d=!0,C.polling.set(60,T)):(C.pollingFast=!1,C.slowPoll())}C.polling.set(20,T)},Ys.prototype.poll=function(){var d=this,C=this.cm,T=this.textarea,I=this.prevInput;if(this.contextMenuPending||this.resetting||!C.state.focused||ei(T)&&!I&&!this.composing||C.isReadOnly()||C.options.disableInput||C.state.keySeq)return!1;var F=T.value;if(F==I&&!C.somethingSelected())return!1;if(p&&g>=9&&this.hasSelection===F||V&&/[\uf700-\uf7ff]/.test(F))return C.display.input.reset(),!1;if(C.doc.sel==C.display.selForContextMenu){var J=F.charCodeAt(0);if(J==8203&&!I&&(I=""),J==8666)return this.reset(),this.cm.execCommand("undo")}for(var pe=0,Se=Math.min(I.length,F.length);pe<Se&&I.charCodeAt(pe)==F.charCodeAt(pe);)++pe;return Ha(C,function(){rl(C,F.slice(pe),I.length-pe,null,d.composing?"*compose":null),F.length>1e3||F.indexOf(`
|
||||
`)>-1?T.value=d.prevInput="":d.prevInput=F,d.composing&&(d.composing.range.clear(),d.composing.range=C.markText(d.composing.start,C.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ys.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ys.prototype.onKeyPress=function(){p&&g>=9&&(this.hasSelection=null),this.fastPoll()},Ys.prototype.onContextMenu=function(d){var C=this,T=C.cm,I=T.display,F=C.textarea;C.contextMenuPending&&C.contextMenuPending();var J=qa(T,d),pe=I.scroller.scrollTop;if(!J||z)return;var Se=T.options.resetSelectionOnContextMenu;Se&&T.doc.sel.contains(J)==-1&&na(T,da)(T.doc,$A(J),It);var Pe=F.style.cssText,Ge=C.wrapper.style.cssText,_t=C.wrapper.offsetParent.getBoundingClientRect();C.wrapper.style.cssText="position: static",F.style.cssText=`position: absolute; width: 30px; height: 30px;
|
||||
top: `+(d.clientY-_t.top-5)+"px; left: "+(d.clientX-_t.left-5)+`px;
|
||||
@@ -937,9 +937,9 @@ ${it}`,{message:xt,excerpt:gt,pointer:Kt}}function Me(it,ue){let We=W(ue);const
|
||||
`+p(Ue,bt,vt):Ke,rawMessage:Ke,source:Ve,line:bt,column:vt})},O={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(Ue){for(var Ve=arguments.length,bt=Array(Ve>1?Ve-1:0),vt=1;vt<Ve;vt++)bt[vt-1]=arguments[vt];return"Unexpected token <"+Ue+"> at "+bt.filter(Boolean).join(":")}},B={unexpectedSymbol:function(Ue){for(var Ve=arguments.length,bt=Array(Ve>1?Ve-1:0),vt=1;vt<Ve;vt++)bt[vt-1]=arguments[vt];return"Unexpected symbol <"+Ue+"> at "+bt.filter(Boolean).join(":")}},z={LEFT_BRACE:0,RIGHT_BRACE:1,LEFT_BRACKET:2,RIGHT_BRACKET:3,COLON:4,COMMA:5,STRING:6,NUMBER:7,TRUE:8,FALSE:9,NULL:10},G={"{":z.LEFT_BRACE,"}":z.RIGHT_BRACE,"[":z.LEFT_BRACKET,"]":z.RIGHT_BRACKET,":":z.COLON,",":z.COMMA},Q={true:z.TRUE,false:z.FALSE,null:z.NULL},Z={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},X={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},re={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function ie(Ke){return Ke>="1"&&Ke<="9"}function V(Ke){return Ke>="0"&&Ke<="9"}function ee(Ke){return V(Ke)||Ke>="a"&&Ke<="f"||Ke>="A"&&Ke<="F"}function W(Ke){return Ke==="e"||Ke==="E"}function he(Ke,Ue,Ve,bt){var vt=Ke.charAt(Ue);if(vt==="\r")Ue++,Ve++,bt=1,Ke.charAt(Ue)===`
|
||||
`&&Ue++;else if(vt===`
|
||||
`)Ue++,Ve++,bt=1;else if(vt===" "||vt===" ")Ue++,bt++;else return null;return{index:Ue,line:Ve,column:bt}}function ge(Ke,Ue,Ve,bt){var vt=Ke.charAt(Ue);return vt in G?{type:G[vt],line:Ve,column:bt+1,index:Ue+1,value:null}:null}function ve(Ke,Ue,Ve,bt){for(var vt in Q)if(Q.hasOwnProperty(vt)&&Ke.substr(Ue,vt.length)===vt)return{type:Q[vt],line:Ve,column:bt+vt.length,index:Ue+vt.length,value:vt};return null}function _e(Ke,Ue,Ve,bt){for(var vt=Ue,It=Z._START_;Ue<Ke.length;){var Yt=Ke.charAt(Ue);switch(It){case Z._START_:{if(Yt==='"')Ue++,It=Z.START_QUOTE_OR_CHAR;else return null;break}case Z.START_QUOTE_OR_CHAR:{if(Yt==="\\")Ue++,It=Z.ESCAPE;else{if(Yt==='"')return Ue++,{type:z.STRING,line:Ve,column:bt+Ue-vt,index:Ue,value:Ke.slice(vt,Ue)};Ue++}break}case Z.ESCAPE:{if(Yt in X){if(Ue++,Yt==="u")for(var Ut=0;Ut<4;Ut++){var on=Ke.charAt(Ue);if(on&&ee(on))Ue++;else return null}It=Z.START_QUOTE_OR_CHAR}else return null;break}}}}function Me(Ke,Ue,Ve,bt){var vt=Ue,It=Ue,Yt=re._START_;e:for(;Ue<Ke.length;){var Ut=Ke.charAt(Ue);switch(Yt){case re._START_:{if(Ut==="-")Yt=re.MINUS;else if(Ut==="0")It=Ue+1,Yt=re.ZERO;else if(ie(Ut))It=Ue+1,Yt=re.DIGIT;else return null;break}case re.MINUS:{if(Ut==="0")It=Ue+1,Yt=re.ZERO;else if(ie(Ut))It=Ue+1,Yt=re.DIGIT;else return null;break}case re.ZERO:{if(Ut===".")Yt=re.POINT;else if(W(Ut))Yt=re.EXP;else break e;break}case re.DIGIT:{if(V(Ut))It=Ue+1;else if(Ut===".")Yt=re.POINT;else if(W(Ut))Yt=re.EXP;else break e;break}case re.POINT:{if(V(Ut))It=Ue+1,Yt=re.DIGIT_FRACTION;else break e;break}case re.DIGIT_FRACTION:{if(V(Ut))It=Ue+1;else if(W(Ut))Yt=re.EXP;else break e;break}case re.EXP:{if(Ut==="+"||Ut==="-")Yt=re.EXP_DIGIT_OR_SIGN;else if(V(Ut))It=Ue+1,Yt=re.EXP_DIGIT_OR_SIGN;else break e;break}case re.EXP_DIGIT_OR_SIGN:{if(V(Ut))It=Ue+1;else break e;break}}Ue++}return It>0?{type:z.NUMBER,line:Ve,column:bt+It-vt,index:It,value:Ke.slice(vt,It)}:null}var be=function(Ue,Ve){for(var bt=1,vt=1,It=0,Yt=[];It<Ue.length;){var Ut=[Ue,It,bt,vt],on=he.apply(void 0,Ut);if(on){It=on.index,bt=on.line,vt=on.column;continue}var Vn=ge.apply(void 0,Ut)||ve.apply(void 0,Ut)||_e.apply(void 0,Ut)||Me.apply(void 0,Ut);if(Vn){var Wt={type:Vn.type,value:Vn.value,loc:a(bt,vt,It,Vn.line,Vn.column,Vn.index,Ve.source)};Yt.push(Wt),It=Vn.index,bt=Vn.line,vt=Vn.column}else E(B.unexpectedSymbol(s(Ue,It,It+1),Ve.source,bt,vt),Ue,Ve.source,bt,vt)}return Yt},ze={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},Ce={_START_:0,KEY:1,COLON:2},Fe={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},ot={loc:!0,source:null};function mt(Ke,Ue,Ve){var bt=Ue.length>0?Ue[Ue.length-1].loc.end:{line:1,column:1};E(O.unexpectedEnd(),Ke,Ve.source,bt.line,bt.column)}function it(Ke){for(var Ue=0,Ve=0;Ve<4;Ve++)Ue=Ue*16+parseInt(Ke[Ve],16);return String.fromCharCode(Ue)}var ue={b:"\b",f:"\f",n:`
|
||||
`,r:"\r",t:" "},We=['"',"\\","/"];function tt(Ke){for(var Ue="",Ve=0;Ve<Ke.length;Ve++){var bt=Ke.charAt(Ve);if(bt==="\\"){Ve++;var vt=Ke.charAt(Ve);if(vt==="u")Ue+=it(Ke.substr(Ve+1,4)),Ve+=4;else if(We.indexOf(vt)!==-1)Ue+=vt;else if(vt in ue)Ue+=ue[vt];else break}else Ue+=bt}return Ue}function ke(Ke,Ue,Ve,bt){for(var vt=void 0,It={type:"Object",children:[]},Yt=ze._START_;Ve<Ue.length;){var Ut=Ue[Ve];switch(Yt){case ze._START_:{if(Ut.type===z.LEFT_BRACE)vt=Ut,Yt=ze.OPEN_OBJECT,Ve++;else return null;break}case ze.OPEN_OBJECT:{if(Ut.type===z.RIGHT_BRACE)return bt.loc&&(It.loc=a(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Ut.loc.end.line,Ut.loc.end.column,Ut.loc.end.offset,bt.source)),{value:It,index:Ve+1};var on=Et(Ke,Ue,Ve,bt);It.children.push(on.value),Yt=ze.PROPERTY,Ve=on.index;break}case ze.PROPERTY:{if(Ut.type===z.RIGHT_BRACE)return bt.loc&&(It.loc=a(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Ut.loc.end.line,Ut.loc.end.column,Ut.loc.end.offset,bt.source)),{value:It,index:Ve+1};Ut.type===z.COMMA?(Yt=ze.COMMA,Ve++):E(O.unexpectedToken(s(Ke,Ut.loc.start.offset,Ut.loc.end.offset),bt.source,Ut.loc.start.line,Ut.loc.start.column),Ke,bt.source,Ut.loc.start.line,Ut.loc.start.column);break}case ze.COMMA:{var Vn=Et(Ke,Ue,Ve,bt);Vn?(Ve=Vn.index,It.children.push(Vn.value),Yt=ze.PROPERTY):E(O.unexpectedToken(s(Ke,Ut.loc.start.offset,Ut.loc.end.offset),bt.source,Ut.loc.start.line,Ut.loc.start.column),Ke,bt.source,Ut.loc.start.line,Ut.loc.start.column);break}}}mt(Ke,Ue,bt)}function Et(Ke,Ue,Ve,bt){for(var vt=void 0,It={type:"Property",key:null,value:null},Yt=Ce._START_;Ve<Ue.length;){var Ut=Ue[Ve];switch(Yt){case Ce._START_:{if(Ut.type===z.STRING){var on={type:"Identifier",value:tt(Ke.slice(Ut.loc.start.offset+1,Ut.loc.end.offset-1)),raw:Ut.value};bt.loc&&(on.loc=Ut.loc),vt=Ut,It.key=on,Yt=Ce.KEY,Ve++}else return null;break}case Ce.KEY:{Ut.type===z.COLON?(Yt=Ce.COLON,Ve++):E(O.unexpectedToken(s(Ke,Ut.loc.start.offset,Ut.loc.end.offset),bt.source,Ut.loc.start.line,Ut.loc.start.column),Ke,bt.source,Ut.loc.start.line,Ut.loc.start.column);break}case Ce.COLON:{var Vn=Kt(Ke,Ue,Ve,bt);return It.value=Vn.value,bt.loc&&(It.loc=a(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Vn.value.loc.end.line,Vn.value.loc.end.column,Vn.value.loc.end.offset,bt.source)),{value:It,index:Vn.index}}}}}function gt(Ke,Ue,Ve,bt){for(var vt=void 0,It={type:"Array",children:[]},Yt=Fe._START_,Ut=void 0;Ve<Ue.length;)switch(Ut=Ue[Ve],Yt){case Fe._START_:{if(Ut.type===z.LEFT_BRACKET)vt=Ut,Yt=Fe.OPEN_ARRAY,Ve++;else return null;break}case Fe.OPEN_ARRAY:{if(Ut.type===z.RIGHT_BRACKET)return bt.loc&&(It.loc=a(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Ut.loc.end.line,Ut.loc.end.column,Ut.loc.end.offset,bt.source)),{value:It,index:Ve+1};var on=Kt(Ke,Ue,Ve,bt);Ve=on.index,It.children.push(on.value),Yt=Fe.VALUE;break}case Fe.VALUE:{if(Ut.type===z.RIGHT_BRACKET)return bt.loc&&(It.loc=a(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Ut.loc.end.line,Ut.loc.end.column,Ut.loc.end.offset,bt.source)),{value:It,index:Ve+1};Ut.type===z.COMMA?(Yt=Fe.COMMA,Ve++):E(O.unexpectedToken(s(Ke,Ut.loc.start.offset,Ut.loc.end.offset),bt.source,Ut.loc.start.line,Ut.loc.start.column),Ke,bt.source,Ut.loc.start.line,Ut.loc.start.column);break}case Fe.COMMA:{var Vn=Kt(Ke,Ue,Ve,bt);Ve=Vn.index,It.children.push(Vn.value),Yt=Fe.VALUE;break}}mt(Ke,Ue,bt)}function xt(Ke,Ue,Ve,bt){var vt=Ue[Ve],It=null;switch(vt.type){case z.STRING:{It=tt(Ke.slice(vt.loc.start.offset+1,vt.loc.end.offset-1));break}case z.NUMBER:{It=Number(vt.value);break}case z.TRUE:{It=!0;break}case z.FALSE:{It=!1;break}case z.NULL:{It=null;break}default:return null}var Yt={type:"Literal",value:It,raw:vt.value};return bt.loc&&(Yt.loc=vt.loc),{value:Yt,index:Ve+1}}function Kt(Ke,Ue,Ve,bt){var vt=Ue[Ve],It=xt.apply(void 0,arguments)||ke.apply(void 0,arguments)||gt.apply(void 0,arguments);if(It)return It;E(O.unexpectedToken(s(Ke,vt.loc.start.offset,vt.loc.end.offset),bt.source,vt.loc.start.line,vt.loc.start.column),Ke,bt.source,vt.loc.start.line,vt.loc.start.column)}var je=function(Ke,Ue){Ue=Object.assign({},ot,Ue);var Ve=be(Ke,Ue);Ve.length===0&&mt(Ke,Ve,Ue);var bt=Kt(Ke,Ve,0,Ue);if(bt.index===Ve.length)return bt.value;var vt=Ve[bt.index];E(O.unexpectedToken(s(Ke,vt.loc.start.offset,vt.loc.end.offset),Ue.source,vt.loc.start.line,vt.loc.start.column),Ke,Ue.source,vt.loc.start.line,vt.loc.start.column)};return je})}(y3)),y3.exports}var Npe=jpe();const Gpe=Zu(Npe);function ui(){var n="/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",e="799818f2992b2f8307763d856702ede3cf326f4d",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",statementMap:{0:{start:{line:5,column:0},end:{line:10,column:3}},1:{start:{line:6,column:2},end:{line:9,column:4}},2:{start:{line:12,column:16},end:{line:12,column:18}},3:{start:{line:13,column:2},end:{line:30,column:3}},4:{start:{line:14,column:4},end:{line:14,column:16}}
Line truncated
|
||||
`,r:"\r",t:" "},We=['"',"\\","/"];function tt(Ke){for(var Ue="",Ve=0;Ve<Ke.length;Ve++){var bt=Ke.charAt(Ve);if(bt==="\\"){Ve++;var vt=Ke.charAt(Ve);if(vt==="u")Ue+=it(Ke.substr(Ve+1,4)),Ve+=4;else if(We.indexOf(vt)!==-1)Ue+=vt;else if(vt in ue)Ue+=ue[vt];else break}else Ue+=bt}return Ue}function ke(Ke,Ue,Ve,bt){for(var vt=void 0,It={type:"Object",children:[]},Yt=ze._START_;Ve<Ue.length;){var Ut=Ue[Ve];switch(Yt){case ze._START_:{if(Ut.type===z.LEFT_BRACE)vt=Ut,Yt=ze.OPEN_OBJECT,Ve++;else return null;break}case ze.OPEN_OBJECT:{if(Ut.type===z.RIGHT_BRACE)return bt.loc&&(It.loc=a(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Ut.loc.end.line,Ut.loc.end.column,Ut.loc.end.offset,bt.source)),{value:It,index:Ve+1};var on=Et(Ke,Ue,Ve,bt);It.children.push(on.value),Yt=ze.PROPERTY,Ve=on.index;break}case ze.PROPERTY:{if(Ut.type===z.RIGHT_BRACE)return bt.loc&&(It.loc=a(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Ut.loc.end.line,Ut.loc.end.column,Ut.loc.end.offset,bt.source)),{value:It,index:Ve+1};Ut.type===z.COMMA?(Yt=ze.COMMA,Ve++):E(O.unexpectedToken(s(Ke,Ut.loc.start.offset,Ut.loc.end.offset),bt.source,Ut.loc.start.line,Ut.loc.start.column),Ke,bt.source,Ut.loc.start.line,Ut.loc.start.column);break}case ze.COMMA:{var Vn=Et(Ke,Ue,Ve,bt);Vn?(Ve=Vn.index,It.children.push(Vn.value),Yt=ze.PROPERTY):E(O.unexpectedToken(s(Ke,Ut.loc.start.offset,Ut.loc.end.offset),bt.source,Ut.loc.start.line,Ut.loc.start.column),Ke,bt.source,Ut.loc.start.line,Ut.loc.start.column);break}}}mt(Ke,Ue,bt)}function Et(Ke,Ue,Ve,bt){for(var vt=void 0,It={type:"Property",key:null,value:null},Yt=Ce._START_;Ve<Ue.length;){var Ut=Ue[Ve];switch(Yt){case Ce._START_:{if(Ut.type===z.STRING){var on={type:"Identifier",value:tt(Ke.slice(Ut.loc.start.offset+1,Ut.loc.end.offset-1)),raw:Ut.value};bt.loc&&(on.loc=Ut.loc),vt=Ut,It.key=on,Yt=Ce.KEY,Ve++}else return null;break}case Ce.KEY:{Ut.type===z.COLON?(Yt=Ce.COLON,Ve++):E(O.unexpectedToken(s(Ke,Ut.loc.start.offset,Ut.loc.end.offset),bt.source,Ut.loc.start.line,Ut.loc.start.column),Ke,bt.source,Ut.loc.start.line,Ut.loc.start.column);break}case Ce.COLON:{var Vn=Kt(Ke,Ue,Ve,bt);return It.value=Vn.value,bt.loc&&(It.loc=a(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Vn.value.loc.end.line,Vn.value.loc.end.column,Vn.value.loc.end.offset,bt.source)),{value:It,index:Vn.index}}}}}function gt(Ke,Ue,Ve,bt){for(var vt=void 0,It={type:"Array",children:[]},Yt=Fe._START_,Ut=void 0;Ve<Ue.length;)switch(Ut=Ue[Ve],Yt){case Fe._START_:{if(Ut.type===z.LEFT_BRACKET)vt=Ut,Yt=Fe.OPEN_ARRAY,Ve++;else return null;break}case Fe.OPEN_ARRAY:{if(Ut.type===z.RIGHT_BRACKET)return bt.loc&&(It.loc=a(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Ut.loc.end.line,Ut.loc.end.column,Ut.loc.end.offset,bt.source)),{value:It,index:Ve+1};var on=Kt(Ke,Ue,Ve,bt);Ve=on.index,It.children.push(on.value),Yt=Fe.VALUE;break}case Fe.VALUE:{if(Ut.type===z.RIGHT_BRACKET)return bt.loc&&(It.loc=a(vt.loc.start.line,vt.loc.start.column,vt.loc.start.offset,Ut.loc.end.line,Ut.loc.end.column,Ut.loc.end.offset,bt.source)),{value:It,index:Ve+1};Ut.type===z.COMMA?(Yt=Fe.COMMA,Ve++):E(O.unexpectedToken(s(Ke,Ut.loc.start.offset,Ut.loc.end.offset),bt.source,Ut.loc.start.line,Ut.loc.start.column),Ke,bt.source,Ut.loc.start.line,Ut.loc.start.column);break}case Fe.COMMA:{var Vn=Kt(Ke,Ue,Ve,bt);Ve=Vn.index,It.children.push(Vn.value),Yt=Fe.VALUE;break}}mt(Ke,Ue,bt)}function xt(Ke,Ue,Ve,bt){var vt=Ue[Ve],It=null;switch(vt.type){case z.STRING:{It=tt(Ke.slice(vt.loc.start.offset+1,vt.loc.end.offset-1));break}case z.NUMBER:{It=Number(vt.value);break}case z.TRUE:{It=!0;break}case z.FALSE:{It=!1;break}case z.NULL:{It=null;break}default:return null}var Yt={type:"Literal",value:It,raw:vt.value};return bt.loc&&(Yt.loc=vt.loc),{value:Yt,index:Ve+1}}function Kt(Ke,Ue,Ve,bt){var vt=Ue[Ve],It=xt.apply(void 0,arguments)||ke.apply(void 0,arguments)||gt.apply(void 0,arguments);if(It)return It;E(O.unexpectedToken(s(Ke,vt.loc.start.offset,vt.loc.end.offset),bt.source,vt.loc.start.line,vt.loc.start.column),Ke,bt.source,vt.loc.start.line,vt.loc.start.column)}var je=function(Ke,Ue){Ue=Object.assign({},ot,Ue);var Ve=be(Ke,Ue);Ve.length===0&&mt(Ke,Ve,Ue);var bt=Kt(Ke,Ve,0,Ue);if(bt.index===Ve.length)return bt.value;var vt=Ve[bt.index];E(O.unexpectedToken(s(Ke,vt.loc.start.offset,vt.loc.end.offset),Ue.source,vt.loc.start.line,vt.loc.start.column),Ke,Ue.source,vt.loc.start.line,vt.loc.start.column)};return je})}(y3)),y3.exports}var Npe=jpe();const Gpe=Zu(Npe);function ui(){var n="/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",e="799818f2992b2f8307763d856702ede3cf326f4d",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",statementMap:{0:{start:{line:5,column:0},end:{line:10,column:3}},1:{start:{line:6,column:2},end:{line:9,column:4}},2:{start:{line:12,column:16},end:{line:12,column:18}},3:{start:{line:13,column:2},end:{line:30,column:3}},4:{start:{line:14,column:4},end:{line:14,column:16}}
Line truncated
|
||||
rgba(`+ie.r+","+ie.g+","+ie.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:ie.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+ie.r+","+ie.g+","+ie.b+`, 0) 0%,
|
||||
rgba(`+ie.r+","+ie.g+","+ie.b+", 1) 100%)"},pointer:{left:0,top:ie.a*100+"%"}},overwrite:n({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return i.default.createElement("div",{style:V.alpha},i.default.createElement("div",{style:V.checkboard},i.default.createElement(g.default,{renderers:this.props.renderers})),i.default.createElement("div",{style:V.gradient}),i.default.createElement("div",{style:V.container,ref:function(W){return re.container=W},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.default.createElement("div",{style:V.pointer},this.props.pointer?i.default.createElement(this.props.pointer,this.props):i.default.createElement("div",{style:V.slider}))))}}]),Z}(t.PureComponent||t.Component);return fv.default=G,fv}var mv={},XK;function hge(){if(XK)return mv;XK=1,Object.defineProperty(mv,"__esModule",{value:!0}),mv.EditableInput=void 0;var n=function(){function X(re,ie){for(var V=0;V<ie.length;V++){var ee=ie[V];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(re,ee.key,ee)}}return function(re,ie,V){return ie&&X(re.prototype,ie),V&&X(re,V),re}}(),e=Nl(),t=o(e),i=Em(),r=o(i);function o(X){return X&&X.__esModule?X:{default:X}}function s(X,re,ie){return re in X?Object.defineProperty(X,re,{value:ie,enumerable:!0,configurable:!0,writable:!0}):X[re]=ie,X}function a(X,re){if(!(X instanceof re))throw new TypeError("Cannot call a class as a function")}function p(X,re){if(!X)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return re&&(typeof re=="object"||typeof re=="function")?re:X}function g(X,re){if(typeof re!="function"&&re!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof re);X.prototype=Object.create(re&&re.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}),re&&(Object.setPrototypeOf?Object.setPrototypeOf(X,re):X.__proto__=re)}var _=1,E=38,O=40,B=[E,O],z=function(re){return B.indexOf(re)>-1},G=function(re){return Number(String(re).replace(/%/g,""))},Q=1,Z=mv.EditableInput=function(X){g(re,X);function re(ie){a(this,re);var V=p(this,(re.__proto__||Object.getPrototypeOf(re)).call(this));return V.handleBlur=function(){V.state.blurValue&&V.setState({value:V.state.blurValue,blurValue:null})},V.handleChange=function(ee){V.setUpdatedValue(ee.target.value,ee)},V.handleKeyDown=function(ee){var W=G(ee.target.value);if(!isNaN(W)&&z(ee.keyCode)){var he=V.getArrowOffset(),ge=ee.keyCode===E?W+he:W-he;V.setUpdatedValue(ge,ee)}},V.handleDrag=function(ee){if(V.props.dragLabel){var W=Math.round(V.props.value+ee.movementX);W>=0&&W<=V.props.dragMax&&V.props.onChange&&V.props.onChange(V.getValueObjectWithLabel(W),ee)}},V.handleMouseDown=function(ee){V.props.dragLabel&&(ee.preventDefault(),V.handleDrag(ee),window.addEventListener("mousemove",V.handleDrag),window.addEventListener("mouseup",V.handleMouseUp))},V.handleMouseUp=function(){V.unbindEventListeners()},V.unbindEventListeners=function(){window.removeEventListener("mousemove",V.handleDrag),window.removeEventListener("mouseup",V.handleMouseUp)},V.state={value:String(ie.value).toUpperCase(),blurValue:String(ie.value).toUpperCase()},V.inputId="rc-editable-input-"+Q++,V}return n(re,[{key:"componentDidUpdate",value:function(V,ee){this.props.value!==this.state.value&&(V.value!==this.props.value||ee.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(V){return s({},this.props.label,V)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||_}},{key:"setUpdatedValue",value:function(V,ee){var W=this.props.label?this.getValueObjectWithLabel(V):V;this.props.onChange&&this.props.onChange(W,ee),this.setState({value:V})}},{key:"render",value:function(){var V=this,ee=(0,r.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return t.default.createElement("div",{style:ee.wrap},t.default.createElement("input",{id:this.inputId,style:ee.input,ref:function(he){return V.input=he},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?t.default.createElement("label",{htmlFor:this.inputId,style:ee.label,onMouseDown:this.handleMouseDown},this.props.label):null)}
Line truncated
|
||||
rgba(`+ie.r+","+ie.g+","+ie.b+", 1) 100%)"},pointer:{left:0,top:ie.a*100+"%"}},overwrite:n({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return i.default.createElement("div",{style:V.alpha},i.default.createElement("div",{style:V.checkboard},i.default.createElement(g.default,{renderers:this.props.renderers})),i.default.createElement("div",{style:V.gradient}),i.default.createElement("div",{style:V.container,ref:function(W){return re.container=W},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.default.createElement("div",{style:V.pointer},this.props.pointer?i.default.createElement(this.props.pointer,this.props):i.default.createElement("div",{style:V.slider}))))}}]),Z}(t.PureComponent||t.Component);return fv.default=G,fv}var mv={},XK;function hge(){if(XK)return mv;XK=1,Object.defineProperty(mv,"__esModule",{value:!0}),mv.EditableInput=void 0;var n=function(){function X(re,ie){for(var V=0;V<ie.length;V++){var ee=ie[V];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(re,ee.key,ee)}}return function(re,ie,V){return ie&&X(re.prototype,ie),V&&X(re,V),re}}(),e=Nl(),t=o(e),i=Bm(),r=o(i);function o(X){return X&&X.__esModule?X:{default:X}}function s(X,re,ie){return re in X?Object.defineProperty(X,re,{value:ie,enumerable:!0,configurable:!0,writable:!0}):X[re]=ie,X}function a(X,re){if(!(X instanceof re))throw new TypeError("Cannot call a class as a function")}function p(X,re){if(!X)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return re&&(typeof re=="object"||typeof re=="function")?re:X}function g(X,re){if(typeof re!="function"&&re!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof re);X.prototype=Object.create(re&&re.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}),re&&(Object.setPrototypeOf?Object.setPrototypeOf(X,re):X.__proto__=re)}var _=1,E=38,O=40,B=[E,O],z=function(re){return B.indexOf(re)>-1},G=function(re){return Number(String(re).replace(/%/g,""))},Q=1,Z=mv.EditableInput=function(X){g(re,X);function re(ie){a(this,re);var V=p(this,(re.__proto__||Object.getPrototypeOf(re)).call(this));return V.handleBlur=function(){V.state.blurValue&&V.setState({value:V.state.blurValue,blurValue:null})},V.handleChange=function(ee){V.setUpdatedValue(ee.target.value,ee)},V.handleKeyDown=function(ee){var W=G(ee.target.value);if(!isNaN(W)&&z(ee.keyCode)){var he=V.getArrowOffset(),ge=ee.keyCode===E?W+he:W-he;V.setUpdatedValue(ge,ee)}},V.handleDrag=function(ee){if(V.props.dragLabel){var W=Math.round(V.props.value+ee.movementX);W>=0&&W<=V.props.dragMax&&V.props.onChange&&V.props.onChange(V.getValueObjectWithLabel(W),ee)}},V.handleMouseDown=function(ee){V.props.dragLabel&&(ee.preventDefault(),V.handleDrag(ee),window.addEventListener("mousemove",V.handleDrag),window.addEventListener("mouseup",V.handleMouseUp))},V.handleMouseUp=function(){V.unbindEventListeners()},V.unbindEventListeners=function(){window.removeEventListener("mousemove",V.handleDrag),window.removeEventListener("mouseup",V.handleMouseUp)},V.state={value:String(ie.value).toUpperCase(),blurValue:String(ie.value).toUpperCase()},V.inputId="rc-editable-input-"+Q++,V}return n(re,[{key:"componentDidUpdate",value:function(V,ee){this.props.value!==this.state.value&&(V.value!==this.props.value||ee.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(V){return s({},this.props.label,V)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||_}},{key:"setUpdatedValue",value:function(V,ee){var W=this.props.label?this.getValueObjectWithLabel(V):V;this.props.onChange&&this.props.onChange(W,ee),this.setState({value:V})}},{key:"render",value:function(){var V=this,ee=(0,r.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return t.default.createElement("div",{style:ee.wrap},t.default.createElement("input",{id:this.inputId,style:ee.input,ref:function(he){return V.input=he},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?t.default.createElement("label",{htmlFor:this.inputId,style:ee.label,onMouseDown:this.handleMouseDown},this.props.label):null)}
Line truncated
|
||||
.hue-horizontal {
|
||||
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
|
||||
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||||
@@ -953,7 +953,7 @@ ${it}`,{message:xt,excerpt:gt,pointer:Kt}}function Me(it,ue){let We=W(ue);const
|
||||
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
|
||||
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||||
}
|
||||
`),t.default.createElement("div",{style:re.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:re.slider}))))}}]),z}(e.PureComponent||e.Component);return gv.default=O,gv}var yv={},tL;function pge(){if(tL)return yv;tL=1,Object.defineProperty(yv,"__esModule",{value:!0}),yv.Raised=void 0;var n=Nl(),e=p(n),t=sg(),i=p(t),r=Em(),o=p(r),s=FQ(),a=p(s);function p(_){return _&&_.__esModule?_:{default:_}}var g=yv.Raised=function(E){var O=E.zDepth,B=E.radius,z=E.background,G=E.children,Q=E.styles,Z=Q===void 0?{}:Q,X=(0,o.default)((0,a.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+O+"px "+O*4+"px rgba(0,0,0,.24)",borderRadius:B,background:z}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},Z),{"zDepth-1":O===1});return e.default.createElement("div",{style:X.wrap},e.default.createElement("div",{style:X.bg}),e.default.createElement("div",{style:X.content},G))};return g.propTypes={background:i.default.string,zDepth:i.default.oneOf([0,1,2,3,4,5]),radius:i.default.number,styles:i.default.object},g.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},yv.default=g,yv}var vv={},r6,nL;function mge(){if(nL)return r6;nL=1;var n=Sm(),e=function(){return n.Date.now()};return r6=e,r6}var o6,iL;function gge(){if(iL)return o6;iL=1;var n=/\s/;function e(t){for(var i=t.length;i--&&n.test(t.charAt(i)););return i}return o6=e,o6}var a6,rL;function yge(){if(rL)return a6;rL=1;var n=gge(),e=/^\s+/;function t(i){return i&&i.slice(0,n(i)+1).replace(e,"")}return a6=t,a6}var s6,oL;function vge(){if(oL)return s6;oL=1;var n=yge(),e=Lp(),t=j4(),i=NaN,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt;function p(g){if(typeof g=="number")return g;if(t(g))return i;if(e(g)){var _=typeof g.valueOf=="function"?g.valueOf():g;g=e(_)?_+"":_}if(typeof g!="string")return g===0?g:+g;g=n(g);var E=o.test(g);return E||s.test(g)?a(g.slice(2),E?2:8):r.test(g)?i:+g}return s6=p,s6}var l6,aL;function zQ(){if(aL)return l6;aL=1;var n=Lp(),e=mge(),t=vge(),i="Expected a function",r=Math.max,o=Math.min;function s(a,p,g){var _,E,O,B,z,G,Q=0,Z=!1,X=!1,re=!0;if(typeof a!="function")throw new TypeError(i);p=t(p)||0,n(g)&&(Z=!!g.leading,X="maxWait"in g,O=X?r(t(g.maxWait)||0,p):O,re="trailing"in g?!!g.trailing:re);function ie(be){var ze=_,Ce=E;return _=E=void 0,Q=be,B=a.apply(Ce,ze),B}function V(be){return Q=be,z=setTimeout(he,p),Z?ie(be):B}function ee(be){var ze=be-G,Ce=be-Q,Fe=p-ze;return X?o(Fe,O-Ce):Fe}function W(be){var ze=be-G,Ce=be-Q;return G===void 0||ze>=p||ze<0||X&&Ce>=O}function he(){var be=e();if(W(be))return ge(be);z=setTimeout(he,ee(be))}function ge(be){return z=void 0,re&&_?ie(be):(_=E=void 0,B)}function ve(){z!==void 0&&clearTimeout(z),Q=0,_=G=E=z=void 0}function _e(){return z===void 0?B:ge(e())}function Me(){var be=e(),ze=W(be);if(_=arguments,E=this,G=be,ze){if(z===void 0)return V(G);if(X)return clearTimeout(z),z=setTimeout(he,p),ie(G)}return z===void 0&&(z=setTimeout(he,p)),B}return Me.cancel=ve,Me.flush=_e,Me}return l6=s,l6}var u6,sL;function Cge(){if(sL)return u6;sL=1;var n=zQ(),e=Lp(),t="Expected a function";function i(r,o,s){var a=!0,p=!0;if(typeof r!="function")throw new TypeError(t);return e(s)&&(a="leading"in s?!!s.leading:a,p="trailing"in s?!!s.trailing:p),n(r,o,{leading:a,maxWait:o,trailing:p})}return u6=i,u6}var i3={},lL;function _ge(){return lL||(lL=1,Object.defineProperty(i3,"__esModule",{value:!0}),i3.calculateChange=function(e,t,i){var r=i.getBoundingClientRect(),o=r.width,s=r.height,a=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,p=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,g=a-(i.getBoundingClientRect().left+window.pageXOffset),_=p-(i.getBoundingClientRect().top+window.pageYOffset);g<0?g=0:g>o&&(g=o),_<0?_=0:_>s&&(_=s);var E=g/o,O=1-_/s;return{h:t.h,s:E,v:O,a:t.a,source:"hsv"}}),i3}var uL;function bge(){if(uL)return vv;uL=1,Object.defineProperty(vv,"__esModule",{value:!0}),vv.Saturation=void 0;var n=function(){function G(Q,Z){for(var X=0;X<Z.length;X++){var re=Z[X];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(Q,re.key,re)}}return function(Q,Z,X){return Z&&G(Q.prototype,Z),X&&G(Q,X),Q}}(),e=Nl(),t=_(e),i=Em(),r=_(i),o=Cge(),s=_(o),a=_ge(),p=g(a);function g(G){if(G&&G.__esModule)return G;var Q={};if(G!=null)for(var Z in G)Object.prototype.hasOwnProperty.call(G,Z)&&(Q[Z]=G[Z]);return Q.default=G,Q}function _(G)
Line truncated
|
||||
`),t.default.createElement("div",{style:re.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:re.slider}))))}}]),z}(e.PureComponent||e.Component);return gv.default=O,gv}var yv={},tL;function pge(){if(tL)return yv;tL=1,Object.defineProperty(yv,"__esModule",{value:!0}),yv.Raised=void 0;var n=Nl(),e=p(n),t=sg(),i=p(t),r=Bm(),o=p(r),s=FQ(),a=p(s);function p(_){return _&&_.__esModule?_:{default:_}}var g=yv.Raised=function(E){var O=E.zDepth,B=E.radius,z=E.background,G=E.children,Q=E.styles,Z=Q===void 0?{}:Q,X=(0,o.default)((0,a.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+O+"px "+O*4+"px rgba(0,0,0,.24)",borderRadius:B,background:z}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},Z),{"zDepth-1":O===1});return e.default.createElement("div",{style:X.wrap},e.default.createElement("div",{style:X.bg}),e.default.createElement("div",{style:X.content},G))};return g.propTypes={background:i.default.string,zDepth:i.default.oneOf([0,1,2,3,4,5]),radius:i.default.number,styles:i.default.object},g.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},yv.default=g,yv}var vv={},r6,nL;function mge(){if(nL)return r6;nL=1;var n=Em(),e=function(){return n.Date.now()};return r6=e,r6}var o6,iL;function gge(){if(iL)return o6;iL=1;var n=/\s/;function e(t){for(var i=t.length;i--&&n.test(t.charAt(i)););return i}return o6=e,o6}var a6,rL;function yge(){if(rL)return a6;rL=1;var n=gge(),e=/^\s+/;function t(i){return i&&i.slice(0,n(i)+1).replace(e,"")}return a6=t,a6}var s6,oL;function vge(){if(oL)return s6;oL=1;var n=yge(),e=Lp(),t=j4(),i=NaN,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,a=parseInt;function p(g){if(typeof g=="number")return g;if(t(g))return i;if(e(g)){var _=typeof g.valueOf=="function"?g.valueOf():g;g=e(_)?_+"":_}if(typeof g!="string")return g===0?g:+g;g=n(g);var E=o.test(g);return E||s.test(g)?a(g.slice(2),E?2:8):r.test(g)?i:+g}return s6=p,s6}var l6,aL;function zQ(){if(aL)return l6;aL=1;var n=Lp(),e=mge(),t=vge(),i="Expected a function",r=Math.max,o=Math.min;function s(a,p,g){var _,E,O,B,z,G,Q=0,Z=!1,X=!1,re=!0;if(typeof a!="function")throw new TypeError(i);p=t(p)||0,n(g)&&(Z=!!g.leading,X="maxWait"in g,O=X?r(t(g.maxWait)||0,p):O,re="trailing"in g?!!g.trailing:re);function ie(be){var ze=_,Ce=E;return _=E=void 0,Q=be,B=a.apply(Ce,ze),B}function V(be){return Q=be,z=setTimeout(he,p),Z?ie(be):B}function ee(be){var ze=be-G,Ce=be-Q,Fe=p-ze;return X?o(Fe,O-Ce):Fe}function W(be){var ze=be-G,Ce=be-Q;return G===void 0||ze>=p||ze<0||X&&Ce>=O}function he(){var be=e();if(W(be))return ge(be);z=setTimeout(he,ee(be))}function ge(be){return z=void 0,re&&_?ie(be):(_=E=void 0,B)}function ve(){z!==void 0&&clearTimeout(z),Q=0,_=G=E=z=void 0}function _e(){return z===void 0?B:ge(e())}function Me(){var be=e(),ze=W(be);if(_=arguments,E=this,G=be,ze){if(z===void 0)return V(G);if(X)return clearTimeout(z),z=setTimeout(he,p),ie(G)}return z===void 0&&(z=setTimeout(he,p)),B}return Me.cancel=ve,Me.flush=_e,Me}return l6=s,l6}var u6,sL;function Cge(){if(sL)return u6;sL=1;var n=zQ(),e=Lp(),t="Expected a function";function i(r,o,s){var a=!0,p=!0;if(typeof r!="function")throw new TypeError(t);return e(s)&&(a="leading"in s?!!s.leading:a,p="trailing"in s?!!s.trailing:p),n(r,o,{leading:a,maxWait:o,trailing:p})}return u6=i,u6}var i3={},lL;function _ge(){return lL||(lL=1,Object.defineProperty(i3,"__esModule",{value:!0}),i3.calculateChange=function(e,t,i){var r=i.getBoundingClientRect(),o=r.width,s=r.height,a=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,p=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,g=a-(i.getBoundingClientRect().left+window.pageXOffset),_=p-(i.getBoundingClientRect().top+window.pageYOffset);g<0?g=0:g>o&&(g=o),_<0?_=0:_>s&&(_=s);var E=g/o,O=1-_/s;return{h:t.h,s:E,v:O,a:t.a,source:"hsv"}}),i3}var uL;function bge(){if(uL)return vv;uL=1,Object.defineProperty(vv,"__esModule",{value:!0}),vv.Saturation=void 0;var n=function(){function G(Q,Z){for(var X=0;X<Z.length;X++){var re=Z[X];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(Q,re.key,re)}}return function(Q,Z,X){return Z&&G(Q.prototype,Z),X&&G(Q,X),Q}}(),e=Nl(),t=_(e),i=Bm(),r=_(i),o=Cge(),s=_(o),a=_ge(),p=g(a);function g(G){if(G&&G.__esModule)return G;var Q={};if(G!=null)for(var Z in G)Object.prototype.hasOwnProperty.call(G,Z)&&(Q[Z]=G[Z]);return Q.default=G,Q}function _(G)
Line truncated
|
||||
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:ie,white:V,black:ee,pointer:W,circle:he}},{custom:!!this.props.style});return t.default.createElement("div",{style:ge.color,ref:function(_e){return X.container=_e},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t.default.createElement("style",null,`
|
||||
.saturation-white {
|
||||
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
|
||||
@@ -963,7 +963,7 @@ ${it}`,{message:xt,excerpt:gt,pointer:Kt}}function Me(it,ue){let We=W(ue);const
|
||||
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
|
||||
background: linear-gradient(to top, #000, rgba(0,0,0,0));
|
||||
}
|
||||
`),t.default.createElement("div",{style:ge.white,className:"saturation-white"},t.default.createElement("div",{style:ge.black,className:"saturation-black"}),t.default.createElement("div",{style:ge.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:ge.circle}))))}}]),Q}(e.PureComponent||e.Component);return vv.default=z,vv}var Cv={},Cd={},A6,AL;function xge(){if(AL)return A6;AL=1;var n=OQ(),e=BQ(),t=dQ(),i=Qf();function r(o,s){var a=i(o)?n:e;return a(o,t(s))}return A6=r,A6}var c6,cL;function Mge(){return cL||(cL=1,c6=xge()),c6}var v3={exports:{}},wge=v3.exports,hL;function Sge(){return hL||(hL=1,function(n,e){(function(t,i){n.exports=i()})(wge,function(){function t(je){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ke){return typeof Ke}:function(Ke){return Ke&&typeof Symbol=="function"&&Ke.constructor===Symbol&&Ke!==Symbol.prototype?"symbol":typeof Ke},t(je)}var i=/^\s+/,r=/\s+$/;function o(je,Ke){if(je=je||"",Ke=Ke||{},je instanceof o)return je;if(!(this instanceof o))return new o(je,Ke);var Ue=s(je);this._originalInput=je,this._r=Ue.r,this._g=Ue.g,this._b=Ue.b,this._a=Ue.a,this._roundA=Math.round(100*this._a)/100,this._format=Ke.format||Ue.format,this._gradientType=Ke.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=Ue.ok}o.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Ke=this.toRgb();return(Ke.r*299+Ke.g*587+Ke.b*114)/1e3},getLuminance:function(){var Ke=this.toRgb(),Ue,Ve,bt,vt,It,Yt;return Ue=Ke.r/255,Ve=Ke.g/255,bt=Ke.b/255,Ue<=.03928?vt=Ue/12.92:vt=Math.pow((Ue+.055)/1.055,2.4),Ve<=.03928?It=Ve/12.92:It=Math.pow((Ve+.055)/1.055,2.4),bt<=.03928?Yt=bt/12.92:Yt=Math.pow((bt+.055)/1.055,2.4),.2126*vt+.7152*It+.0722*Yt},setAlpha:function(Ke){return this._a=ze(Ke),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Ke=_(this._r,this._g,this._b);return{h:Ke.h*360,s:Ke.s,v:Ke.v,a:this._a}},toHsvString:function(){var Ke=_(this._r,this._g,this._b),Ue=Math.round(Ke.h*360),Ve=Math.round(Ke.s*100),bt=Math.round(Ke.v*100);return this._a==1?"hsv("+Ue+", "+Ve+"%, "+bt+"%)":"hsva("+Ue+", "+Ve+"%, "+bt+"%, "+this._roundA+")"},toHsl:function(){var Ke=p(this._r,this._g,this._b);return{h:Ke.h*360,s:Ke.s,l:Ke.l,a:this._a}},toHslString:function(){var Ke=p(this._r,this._g,this._b),Ue=Math.round(Ke.h*360),Ve=Math.round(Ke.s*100),bt=Math.round(Ke.l*100);return this._a==1?"hsl("+Ue+", "+Ve+"%, "+bt+"%)":"hsla("+Ue+", "+Ve+"%, "+bt+"%, "+this._roundA+")"},toHex:function(Ke){return O(this._r,this._g,this._b,Ke)},toHexString:function(Ke){return"#"+this.toHex(Ke)},toHex8:function(Ke){return B(this._r,this._g,this._b,this._a,Ke)},toHex8String:function(Ke){return"#"+this.toHex8(Ke)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Ce(this._r,255)*100)+"%",g:Math.round(Ce(this._g,255)*100)+"%",b:Math.round(Ce(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Ce(this._r,255)*100)+"%, "+Math.round(Ce(this._g,255)*100)+"%, "+Math.round(Ce(this._b,255)*100)+"%)":"rgba("+Math.round(Ce(this._r,255)*100)+"%, "+Math.round(Ce(this._g,255)*100)+"%, "+Math.round(Ce(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Me[O(this._r,this._g,this._b,!0)]||!1},toFilter:function(Ke){var Ue="#"+z(this._r,this._g,this._b,this._a),Ve=Ue,bt=this._gradientType?"GradientType = 1, ":"";if(Ke){var vt=o(Ke);Ve="#"+z(vt._r,vt._g,vt._b,vt._a)}return"progid:DXImageTransform.Microsoft.gradient("+bt+"startColorstr="+Ue+",endColorstr="+Ve+")"},toString:function(Ke){var Ue=!!Ke;Ke=Ke||this._format;var Ve=!1,bt=this._a<1&&this._a>=0,vt=!Ue&&bt&&(Ke==="hex"||Ke==="hex6"||Ke==="hex3"||Ke==="hex4"||Ke==="hex8"||Ke==="name");return vt?Ke==="name"&&this._a===0?this.toName():this.toRgbString():(Ke==="rgb"&&(Ve=this.toRgbString()),Ke==="prgb"&&(Ve=this.toPercentageRgbString()),(Ke==="hex"||Ke==="hex6")&&(Ve=this.toHexString()),Ke==="hex3"&&(Ve=this.toHexString(!0)),Ke==="hex4"&&(Ve=this.toHex8String(!0)),Ke==="hex8"&&(Ve=this.toHex8String()),Ke==="name"&&(Ve=this.toName()),Ke==="hsl"&&(Ve=this.toHslString()),Ke==="hsv"&&(Ve=this.toHsvString()),Ve||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(Ke,Ue){var Ve=Ke.apply(nu
Line truncated
|
||||
`),t.default.createElement("div",{style:ge.white,className:"saturation-white"},t.default.createElement("div",{style:ge.black,className:"saturation-black"}),t.default.createElement("div",{style:ge.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:ge.circle}))))}}]),Q}(e.PureComponent||e.Component);return vv.default=z,vv}var Cv={},Cd={},A6,AL;function xge(){if(AL)return A6;AL=1;var n=OQ(),e=BQ(),t=dQ(),i=Qf();function r(o,s){var a=i(o)?n:e;return a(o,t(s))}return A6=r,A6}var c6,cL;function Mge(){return cL||(cL=1,c6=xge()),c6}var v3={exports:{}},wge=v3.exports,hL;function Sge(){return hL||(hL=1,function(n,e){(function(t,i){n.exports=i()})(wge,function(){function t(je){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ke){return typeof Ke}:function(Ke){return Ke&&typeof Symbol=="function"&&Ke.constructor===Symbol&&Ke!==Symbol.prototype?"symbol":typeof Ke},t(je)}var i=/^\s+/,r=/\s+$/;function o(je,Ke){if(je=je||"",Ke=Ke||{},je instanceof o)return je;if(!(this instanceof o))return new o(je,Ke);var Ue=s(je);this._originalInput=je,this._r=Ue.r,this._g=Ue.g,this._b=Ue.b,this._a=Ue.a,this._roundA=Math.round(100*this._a)/100,this._format=Ke.format||Ue.format,this._gradientType=Ke.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=Ue.ok}o.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Ke=this.toRgb();return(Ke.r*299+Ke.g*587+Ke.b*114)/1e3},getLuminance:function(){var Ke=this.toRgb(),Ue,Ve,bt,vt,It,Yt;return Ue=Ke.r/255,Ve=Ke.g/255,bt=Ke.b/255,Ue<=.03928?vt=Ue/12.92:vt=Math.pow((Ue+.055)/1.055,2.4),Ve<=.03928?It=Ve/12.92:It=Math.pow((Ve+.055)/1.055,2.4),bt<=.03928?Yt=bt/12.92:Yt=Math.pow((bt+.055)/1.055,2.4),.2126*vt+.7152*It+.0722*Yt},setAlpha:function(Ke){return this._a=ze(Ke),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Ke=_(this._r,this._g,this._b);return{h:Ke.h*360,s:Ke.s,v:Ke.v,a:this._a}},toHsvString:function(){var Ke=_(this._r,this._g,this._b),Ue=Math.round(Ke.h*360),Ve=Math.round(Ke.s*100),bt=Math.round(Ke.v*100);return this._a==1?"hsv("+Ue+", "+Ve+"%, "+bt+"%)":"hsva("+Ue+", "+Ve+"%, "+bt+"%, "+this._roundA+")"},toHsl:function(){var Ke=p(this._r,this._g,this._b);return{h:Ke.h*360,s:Ke.s,l:Ke.l,a:this._a}},toHslString:function(){var Ke=p(this._r,this._g,this._b),Ue=Math.round(Ke.h*360),Ve=Math.round(Ke.s*100),bt=Math.round(Ke.l*100);return this._a==1?"hsl("+Ue+", "+Ve+"%, "+bt+"%)":"hsla("+Ue+", "+Ve+"%, "+bt+"%, "+this._roundA+")"},toHex:function(Ke){return O(this._r,this._g,this._b,Ke)},toHexString:function(Ke){return"#"+this.toHex(Ke)},toHex8:function(Ke){return B(this._r,this._g,this._b,this._a,Ke)},toHex8String:function(Ke){return"#"+this.toHex8(Ke)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Ce(this._r,255)*100)+"%",g:Math.round(Ce(this._g,255)*100)+"%",b:Math.round(Ce(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Ce(this._r,255)*100)+"%, "+Math.round(Ce(this._g,255)*100)+"%, "+Math.round(Ce(this._b,255)*100)+"%)":"rgba("+Math.round(Ce(this._r,255)*100)+"%, "+Math.round(Ce(this._g,255)*100)+"%, "+Math.round(Ce(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Me[O(this._r,this._g,this._b,!0)]||!1},toFilter:function(Ke){var Ue="#"+z(this._r,this._g,this._b,this._a),Ve=Ue,bt=this._gradientType?"GradientType = 1, ":"";if(Ke){var vt=o(Ke);Ve="#"+z(vt._r,vt._g,vt._b,vt._a)}return"progid:DXImageTransform.Microsoft.gradient("+bt+"startColorstr="+Ue+",endColorstr="+Ve+")"},toString:function(Ke){var Ue=!!Ke;Ke=Ke||this._format;var Ve=!1,bt=this._a<1&&this._a>=0,vt=!Ue&&bt&&(Ke==="hex"||Ke==="hex6"||Ke==="hex3"||Ke==="hex4"||Ke==="hex8"||Ke==="name");return vt?Ke==="name"&&this._a===0?this.toName():this.toRgbString():(Ke==="rgb"&&(Ve=this.toRgbString()),Ke==="prgb"&&(Ve=this.toPercentageRgbString()),(Ke==="hex"||Ke==="hex6")&&(Ve=this.toHexString()),Ke==="hex3"&&(Ve=this.toHexString(!0)),Ke==="hex4"&&(Ve=this.toHex8String(!0)),Ke==="hex8"&&(Ve=this.toHex8String()),Ke==="name"&&(Ve=this.toName()),Ke==="hsl"&&(Ve=this.toHslString()),Ke==="hsv"&&(Ve=this.toHsvString()),Ve||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(Ke,Ue){var Ve=Ke.apply(nu
Line truncated
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
@@ -987,7 +987,7 @@ ${it}`,{message:xt,excerpt:gt,pointer:Kt}}function Me(it,ue){let We=W(ue);const
|
||||
<\/script>
|
||||
</body>
|
||||
</html>
|
||||
`),r=(Li().s[9]++,new Blob([i],{type:"text/html;charset=utf-8"})),o=(Li().s[10]++,this.exportName());Li().s[11]++,LL.saveAs(r,o+".html")}async saveStyle(){Li().f[3]++;const e=(Li().s[12]++,this.tokenizedStyle());if(Li().s[13]++,zL)Li().b[2][1]++;else{Li().b[2][0]++;const r=(Li().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),o=(Li().s[15]++,this.exportName());Li().s[16]++,LL.saveAs(r,o+".json"),Li().s[17]++;return}let t=(Li().s[18]++,this.props.fileHandle);if(Li().s[19]++,t==null)if(Li().b[3][0]++,Li().s[20]++,t=await this.createFileHandle(),Li().s[21]++,this.props.onSetFileHandle(t),Li().s[22]++,t==null){Li().b[4][0]++,Li().s[23]++;return}else Li().b[4][1]++;else Li().b[3][1]++;const i=(Li().s[24]++,await t.createWritable());Li().s[25]++,await i.write(e),Li().s[26]++,await i.close(),Li().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){Li().f[4]++;const e=(Li().s[28]++,this.tokenizedStyle()),t=(Li().s[29]++,await this.createFileHandle());if(Li().s[30]++,this.props.onSetFileHandle(t),Li().s[31]++,t==null){Li().b[5][0]++,Li().s[32]++;return}else Li().b[5][1]++;const i=(Li().s[33]++,await t.createWritable());Li().s[34]++,await i.write(e),Li().s[35]++,await i.close(),Li().s[36]++,this.props.onOpenToggle()}async createFileHandle(){Li().f[5]++;const e=(Li().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(Li().s[38]++,await window.showSaveFilePicker(e));return Li().s[39]++,this.props.onSetFileHandle(t),Li().s[40]++,t}changeMetadataProperty(e,t){Li().f[6]++;const i=(Li().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});Li().s[42]++,this.props.onStyleChanged(i)}render(){Li().f[7]++;const e=(Li().s[43]++,this.props.t),t=(Li().s[44]++,$Q(e));return Li().s[45]++,Ae.jsx(lg,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e("Save Style"),className:"maputnik-export-modal",children:Ae.jsxs("section",{className:"maputnik-modal-section",children:[Ae.jsx("h1",{children:e("Save Style")}),Ae.jsx("p",{children:e("Save the JSON style to your computer.")}),Ae.jsxs("div",{children:[Ae.jsx(Xd,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(Li().b[6][0]++,this.props.mapStyle.metadata||(Li().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),Ae.jsx(Xd,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(Li().b[7][0]++,this.props.mapStyle.metadata||(Li().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),Ae.jsx(Xd,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(Li().b[8][0]++,this.props.mapStyle.metadata||(Li().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")}),Ae.jsx(Xd,{label:t.maputnik.locationiq_access_token.label,fieldSpec:t.maputnik.locationiq_access_token,value:(Li().b[9][0]++,this.props.mapStyle.metadata||(Li().b[9][1]++,{}))["maputnik:locationiq_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:locationiq_access_token")})]}),Ae.jsxs("div",{className:"maputnik-modal-export-buttons",children:[Ae.jsxs(Zs,{onClick:this.saveStyle.bind(this),children:[Ae.jsx(kB,{}),e("Save")]}),(Li().b[10][0]++,zL&&(Li().b[10][1]++,Ae.jsxs(Zs,{onClick:this.saveStyleAs.bind(this),children:[Ae.jsx(kB,{}),e("Save as")]}))),Ae.jsxs(Zs,{onClick:this.createHtml.bind(this),children:[Ae.jsx(jJ,{}),e("Create HTML")]})]})]})})}}const pye=(Li().s[46]++,is()(fye));function Pb(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="d4204cb1114c57682afd09034f9cc8268e27db52",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:4,column:26},end:{line:6,column:1}},1:{start:{line:5,column:2},end:{line:5,column:127}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:26},end:{line:4,column:27}},loc:{start:{line:4,column:37},end:{line:6,column:1}},line:4}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx"],names:[],mappings:"AAUM;AAVN,OAAO,uBAAsD;AAC7D,OAAO,cAAc;AAMrB,MAAM,oBAAsD,CAAC,UAAU;AACrE,SACE,oBAAC,YAAS,OAAO,MAAM,OACrB,8BAAC,qBAAmB,GAAG,OAAO,GAChC;AAEJ;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d4204cb1114c57682afd09034f9cc8268e27db52"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return Pb=function(){return s},s}Pb();Pb().s[0]++;const eY=n=>(Pb().f[0]++,Pb().s[1]++,Ae.jsx(jg,{label:n.label,children:Ae.jsx(C3,{...n})}));function Ub(){var n="/home/runner/work/maputnik/maputnik/src/components/Field
Line truncated
|
||||
`),r=(Li().s[9]++,new Blob([i],{type:"text/html;charset=utf-8"})),o=(Li().s[10]++,this.exportName());Li().s[11]++,LL.saveAs(r,o+".html")}async saveStyle(){Li().f[3]++;const e=(Li().s[12]++,this.tokenizedStyle());if(Li().s[13]++,zL)Li().b[2][1]++;else{Li().b[2][0]++;const r=(Li().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),o=(Li().s[15]++,this.exportName());Li().s[16]++,LL.saveAs(r,o+".json"),Li().s[17]++;return}let t=(Li().s[18]++,this.props.fileHandle);if(Li().s[19]++,t==null)if(Li().b[3][0]++,Li().s[20]++,t=await this.createFileHandle(),Li().s[21]++,this.props.onSetFileHandle(t),Li().s[22]++,t==null){Li().b[4][0]++,Li().s[23]++;return}else Li().b[4][1]++;else Li().b[3][1]++;const i=(Li().s[24]++,await t.createWritable());Li().s[25]++,await i.write(e),Li().s[26]++,await i.close(),Li().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){Li().f[4]++;const e=(Li().s[28]++,this.tokenizedStyle()),t=(Li().s[29]++,await this.createFileHandle());if(Li().s[30]++,this.props.onSetFileHandle(t),Li().s[31]++,t==null){Li().b[5][0]++,Li().s[32]++;return}else Li().b[5][1]++;const i=(Li().s[33]++,await t.createWritable());Li().s[34]++,await i.write(e),Li().s[35]++,await i.close(),Li().s[36]++,this.props.onOpenToggle()}async createFileHandle(){Li().f[5]++;const e=(Li().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(Li().s[38]++,await window.showSaveFilePicker(e));return Li().s[39]++,this.props.onSetFileHandle(t),Li().s[40]++,t}changeMetadataProperty(e,t){Li().f[6]++;const i=(Li().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});Li().s[42]++,this.props.onStyleChanged(i)}render(){Li().f[7]++;const e=(Li().s[43]++,this.props.t),t=(Li().s[44]++,$Q(e));return Li().s[45]++,Ae.jsx(lg,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e("Save Style"),className:"maputnik-export-modal",children:Ae.jsxs("section",{className:"maputnik-modal-section",children:[Ae.jsx("h1",{children:e("Save Style")}),Ae.jsx("p",{children:e("Save the JSON style to your computer.")}),Ae.jsxs("div",{children:[Ae.jsx(Xd,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(Li().b[6][0]++,this.props.mapStyle.metadata||(Li().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),Ae.jsx(Xd,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(Li().b[7][0]++,this.props.mapStyle.metadata||(Li().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),Ae.jsx(Xd,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(Li().b[8][0]++,this.props.mapStyle.metadata||(Li().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")}),Ae.jsx(Xd,{label:t.maputnik.locationiq_access_token.label,fieldSpec:t.maputnik.locationiq_access_token,value:(Li().b[9][0]++,this.props.mapStyle.metadata||(Li().b[9][1]++,{}))["maputnik:locationiq_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:locationiq_access_token")})]}),Ae.jsxs("div",{className:"maputnik-modal-export-buttons",children:[Ae.jsxs(Zs,{onClick:this.saveStyle.bind(this),children:[Ae.jsx(kB,{}),e("Save")]}),(Li().b[10][0]++,zL&&(Li().b[10][1]++,Ae.jsxs(Zs,{onClick:this.saveStyleAs.bind(this),children:[Ae.jsx(kB,{}),e("Save as")]}))),Ae.jsxs(Zs,{onClick:this.createHtml.bind(this),children:[Ae.jsx(jJ,{}),e("Create HTML")]})]})]})})}}const pye=(Li().s[46]++,is()(fye));function Pb(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="d4204cb1114c57682afd09034f9cc8268e27db52",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:4,column:26},end:{line:6,column:1}},1:{start:{line:5,column:2},end:{line:5,column:127}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:26},end:{line:4,column:27}},loc:{start:{line:4,column:37},end:{line:6,column:1}},line:4}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx"],names:[],mappings:"AAUM;AAVN,OAAO,uBAAsD;AAC7D,OAAO,cAAc;AAMrB,MAAM,oBAAsD,CAAC,UAAU;AACrE,SACE,oBAAC,YAAS,OAAO,MAAM,OACrB,8BAAC,qBAAmB,GAAG,OAAO,GAChC;AAEJ;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d4204cb1114c57682afd09034f9cc8268e27db52"},o=t[i]||(t[i]={});(!o[n]||o[n].hash!==e)&&(o[n]=r);var s=o[n];return Pb=function(){return s},s}Pb();Pb().s[0]++;const eY=n=>(Pb().f[0]++,Pb().s[1]++,Ae.jsx(jg,{label:n.label,children:Ae.jsx(C3,{...n})}));function Ub(){var n="/home/runner/work/maputnik/maputnik/src/components/Field
Line truncated
|
||||
`)>=0)return!1;return!0}function Ie(He,Re){var Ze;if(He.indent===" ")Ze=" ";else if(typeof He.indent=="number"&&He.indent>0)Ze=he.call(Array(He.indent+1)," ");else return null;return{base:Ze,prev:he.call(Array(Re+1),Ze)}}function Qe(He,Re){if(He.length===0)return"";var Ze=`
|
||||
`+Re.prev+Re.base;return Ze+he.call(He,","+Ze)+`
|
||||
`+Re.prev}function At(He,Re){var Ze=xt(He),y=[];if(Ze){y.length=He.length;for(var yt=0;yt<He.length;yt++)y[yt]=Ut(He,yt)?Re(He[yt],He):""}var dt=typeof Me=="function"?Me(He):[],kt;if(ze){kt={};for(var rt=0;rt<dt.length;rt++)kt["$"+dt[rt]]=dt[rt]}for(var tn in He)Ut(He,tn)&&(Ze&&String(Number(tn))===tn&&tn<He.length||ze&&kt["$"+tn]instanceof Symbol||(ee.call(/[^\w$]/,tn)?y.push(Re(tn,He)+": "+Re(He[tn],He)):y.push(tn+": "+Re(He[tn],He))));if(typeof Me=="function")for(var Rn=0;Rn<dt.length;Rn++)Fe.call(He,dt[Rn])&&y.push("["+Re(dt[Rn])+"]: "+Re(He[dt[Rn]],He));return y}return y6}var v6,YL;function Zye(){if(YL)return v6;YL=1;var n=G4(),e=OC(),t=function(a,p,g){for(var _=a,E;(E=_.next)!=null;_=E)if(E.key===p)return _.next=E.next,g||(E.next=a.next,a.next=E),E},i=function(a,p){if(a){var g=t(a,p);return g&&g.value}},r=function(a,p,g){var _=t(a,p);_?_.value=g:a.next={key:p,next:a.next,value:g}},o=function(a,p){return a?!!t(a,p):!1},s=function(a,p){if(a)return t(a,p,!0)};return v6=function(){var p,g={assert:function(_){if(!g.has(_))throw new e("Side channel does not contain "+n(_))},delete:function(_){var E=p&&p.next,O=s(p,_);return O&&E&&E===O&&(p=void 0),!!O},get:function(_){return i(p,_)},has:function(_){return o(p,_)},set:function(_,E){p||(p={next:void 0}),r(p,_,E)}};return g},v6}var C6,qL;function oY(){return qL||(qL=1,C6=Object),C6}var _6,HL;function Xye(){return HL||(HL=1,_6=Error),_6}var b6,VL;function Jye(){return VL||(VL=1,b6=EvalError),b6}var x6,$L;function eve(){return $L||($L=1,x6=RangeError),x6}var M6,ZL;function tve(){return ZL||(ZL=1,M6=ReferenceError),M6}var w6,XL;function nve(){return XL||(XL=1,w6=SyntaxError),w6}var S6,JL;function ive(){return JL||(JL=1,S6=URIError),S6}var E6,eF;function rve(){return eF||(eF=1,E6=Math.abs),E6}var B6,tF;function ove(){return tF||(tF=1,B6=Math.floor),B6}var O6,nF;function ave(){return nF||(nF=1,O6=Math.max),O6}var I6,iF;function sve(){return iF||(iF=1,I6=Math.min),I6}var T6,rF;function lve(){return rF||(rF=1,T6=Math.pow),T6}var k6,oF;function uve(){return oF||(oF=1,k6=Math.round),k6}var D6,aF;function Ave(){return aF||(aF=1,D6=Number.isNaN||function(e){return e!==e}),D6}var R6,sF;function cve(){if(sF)return R6;sF=1;var n=Ave();return R6=function(t){return n(t)||t===0?t:t<0?-1:1},R6}var P6,lF;function hve(){return lF||(lF=1,P6=Object.getOwnPropertyDescriptor),P6}var U6,uF;function aY(){if(uF)return U6;uF=1;var n=hve();if(n)try{n([],"length")}catch{n=null}return U6=n,U6}var K6,AF;function dve(){if(AF)return K6;AF=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return K6=n,K6}var L6,cF;function fve(){return cF||(cF=1,L6=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var r=42;e[t]=r;for(var o in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==r||a.enumerable!==!0)return!1}return!0}),L6}var F6,hF;function pve(){if(hF)return F6;hF=1;var n=typeof Symbol<"u"&&Symbol,e=fve();return F6=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},F6}var z6,dF;function sY(){return dF||(dF=1,z6=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),z6}var j6,fF;function lY(){if(fF)return j6;fF=1;var n=oY();return j6=n.getPrototypeOf||null,j6}var N6,pF;function mve(){if(pF)return N6;pF=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,i="[object Function]",r=function(p,g){for(var _=[],E=0;E<p.length;E+=1)_[E]=p[E];for(var O=0;O<g.length;O+=1)_[O+p.length]=g[O];return _},o=function(p,g){for(var _=[],E=g,O=0;E<p.length;E+=1,O+=1)_[O]=p[E];return _},s=function(a,p){for(var g="",_=0;_<a.length;_+=1)g+=a[_],_+1<a.length&&(g+=p);return g};return N6=function(p){var g=this;if(typeof g!="function"||e.apply(g)!==i)throw new TypeError(n+g);for(var _=o(arguments,1),E,O=function(){if(this instanceof E){var Z=g.apply(this,r(_,arguments));return Object(Z)===Z?Z:this}return g.apply(p,r(_,arguments))},B=t(0,g.length-_.length),z=[],G=0;G<B;G++)z[G]="$"+G;if(E=Function("binder","return function ("+s(z,",")+"){ return binder.apply(this,arguments); }")(O),g.prototype){var Q=function(){};Q.prototype=g.prototype,E.prototype=new Q,Q.prototype=null}return E},N6}var G6,mF;function W4(){if(mF)return G6;mF=1;var n=mve();return G6=Function.prototype.bind||n,G6}var W6,gF;function TI(){return gF||(gF=1,W6=Function.prototype.call),W6}var Q6,yF;function u
Line truncated
|
||||
@@ -1009,5 +1009,5 @@ and limitations under the License.
|
||||
* by Pedro Ladaria <pedro.ladaria@gmail.com>
|
||||
* https://github.com/pladaria/reconnecting-websocket
|
||||
* License MIT
|
||||
*/var Fve=function(){if(typeof WebSocket<"u")return WebSocket},zve=function(n){return typeof n<"u"&&!!n&&n.CLOSING===2},j1={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0};(function(){function n(e,t,i){var r=this;i===void 0&&(i={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(o){r._debug("open event");var s=r._options.minUptime,a=s===void 0?j1.minUptime:s;clearTimeout(r._connectTimeout),r._uptimeTimeout=setTimeout(function(){return r._acceptOpen()},a),r._ws.binaryType=r._binaryType,r._messageQueue.forEach(function(p){return r._ws.send(p)}),r._messageQueue=[],r.onopen&&r.onopen(o),r._listeners.open.forEach(function(p){return r._callEventListener(o,p)})},this._handleMessage=function(o){r._debug("message event"),r.onmessage&&r.onmessage(o),r._listeners.message.forEach(function(s){return r._callEventListener(o,s)})},this._handleError=function(o){r._debug("error event",o.message),r._disconnect(void 0,o.message==="TIMEOUT"?"timeout":void 0),r.onerror&&r.onerror(o),r._debug("exec error listeners"),r._listeners.error.forEach(function(s){return r._callEventListener(o,s)}),r._connect()},this._handleClose=function(o){r._debug("close event"),r._clearTimeouts(),r._shouldReconnect&&r._connect(),r.onclose&&r.onclose(o),r._listeners.close.forEach(function(s){return r._callEventListener(o,s)})},this._url=e,this._protocols=t,this._options=i,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(n,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(n,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CONNECTING",{get:function(){return n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"OPEN",{get:function(){return n.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSING",{get:function(){return n.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSED",{get:function(){return n.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bufferedAmount",{get:function(){var e=this._messageQueue.reduce(function(t,i){return typeof i=="string"?t+=i.length:i instanceof Blob?t+=i.size:t+=i.byteLength,t},0);return e+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?n.CLOSED:n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),n.prototype.close=function(e,t){if(e===void 0&&(e=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(e,t)},n.prototype.reconnect=function(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(e,t),this._connect())},n.prototype.send=function(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{var t=this._options.maxEnqueuedMessages,i=t===void 0?j1.maxEnqueuedMessages:t;this._messageQueue.length<i&&(this._debug("enqueue",e),this._messageQueue.push(e))}},n.prototype.addEventListener=function(e,t){this._listeners[e]&&this._listeners[e].push(t)},n.prototype.dispatchEvent=function(e){var t,i,r=this._listeners[e.type];if(r)try{for(var o=Rve(r),s=o.next();!s.done;s=o.next()){var a=s.value;this._callEventListener(e,a)}}catch(p){t={error:p}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}return!0},n.prototype.removeEventListener=function(e,t){this._listeLine truncated
|
||||
//# sourceMappingURL=index-BuKT1v1y.js.map
|
||||
*/var Fve=function(){if(typeof WebSocket<"u")return WebSocket},zve=function(n){return typeof n<"u"&&!!n&&n.CLOSING===2},j1={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0};(function(){function n(e,t,i){var r=this;i===void 0&&(i={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(o){r._debug("open event");var s=r._options.minUptime,a=s===void 0?j1.minUptime:s;clearTimeout(r._connectTimeout),r._uptimeTimeout=setTimeout(function(){return r._acceptOpen()},a),r._ws.binaryType=r._binaryType,r._messageQueue.forEach(function(p){return r._ws.send(p)}),r._messageQueue=[],r.onopen&&r.onopen(o),r._listeners.open.forEach(function(p){return r._callEventListener(o,p)})},this._handleMessage=function(o){r._debug("message event"),r.onmessage&&r.onmessage(o),r._listeners.message.forEach(function(s){return r._callEventListener(o,s)})},this._handleError=function(o){r._debug("error event",o.message),r._disconnect(void 0,o.message==="TIMEOUT"?"timeout":void 0),r.onerror&&r.onerror(o),r._debug("exec error listeners"),r._listeners.error.forEach(function(s){return r._callEventListener(o,s)}),r._connect()},this._handleClose=function(o){r._debug("close event"),r._clearTimeouts(),r._shouldReconnect&&r._connect(),r.onclose&&r.onclose(o),r._listeners.close.forEach(function(s){return r._callEventListener(o,s)})},this._url=e,this._protocols=t,this._options=i,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(n,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(n,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CONNECTING",{get:function(){return n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"OPEN",{get:function(){return n.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSING",{get:function(){return n.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSED",{get:function(){return n.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bufferedAmount",{get:function(){var e=this._messageQueue.reduce(function(t,i){return typeof i=="string"?t+=i.length:i instanceof Blob?t+=i.size:t+=i.byteLength,t},0);return e+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?n.CLOSED:n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),n.prototype.close=function(e,t){if(e===void 0&&(e=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(e,t)},n.prototype.reconnect=function(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(e,t),this._connect())},n.prototype.send=function(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{var t=this._options.maxEnqueuedMessages,i=t===void 0?j1.maxEnqueuedMessages:t;this._messageQueue.length<i&&(this._debug("enqueue",e),this._messageQueue.push(e))}},n.prototype.addEventListener=function(e,t){this._listeners[e]&&this._listeners[e].push(t)},n.prototype.dispatchEvent=function(e){var t,i,r=this._listeners[e.type];if(r)try{for(var o=Rve(r),s=o.next();!s.done;s=o.next()){var a=s.value;this._callEventListener(e,a)}}catch(p){t={error:p}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}return!0},n.prototype.removeEventListener=function(e,t){this._listeLine truncated
|
||||
//# sourceMappingURL=index-DyPMrqFk.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"mappings":";;;;;;;;6CAWA,IAAIA,EAAqB,OAAO,IAAI,4BAA4B,EAC9DC,EAAsB,OAAO,IAAI,gBAAgB,EACnD,SAASC,EAAQC,EAAMC,EAAQC,EAAU,CACvC,IAAIC,EAAM,KAGV,GAFWD,IAAX,SAAwBC,EAAM,GAAKD,GACxBD,EAAO,MAAlB,SAA0BE,EAAM,GAAKF,EAAO,KACxC,QAASA,EAAQ,CACnBC,EAAW,GACX,QAASE,KAAYH,EACTG,IAAV,QAAuBF,EAASE,CAAQ,EAAIH,EAAOG,CAAQ,EACjE,MAASF,EAAWD,EAClB,OAAAA,EAASC,EAAS,IACX,CACL,SAAUL,EACV,KAAMG,EACN,IAAKG,EACL,IAAgBF,IAAX,OAAoBA,EAAS,KAClC,MAAOC,EAEX,CACA,OAAAG,GAAA,SAAmBP,EACnBO,GAAA,IAAcN,EACdM,GAAA,KAAeN,2CC9BbO,GAAA,QAAiBC,GAAA;;;;;;;;6CCQnB,IAAIV,EAAqB,OAAO,IAAI,4BAA4B,EAC9DW,EAAoB,OAAO,IAAI,cAAc,EAC7CV,EAAsB,OAAO,IAAI,gBAAgB,EACjDW,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAqB,OAAO,IAAI,eAAe,EAC/CC,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAkB,OAAO,IAAI,YAAY,EACzCC,EAAkB,OAAO,IAAI,YAAY,EACzCC,EAAwB,OAAO,SACjC,SAASC,EAAcC,GAAe,CACpC,OAAaA,KAAT,MAAuC,OAAOA,IAApB,SAA0C,MACxEA,GACGF,GAAyBE,GAAcF,CAAqB,GAC7DE,GAAc,YAAY,EACN,OAAOA,IAAtB,WAAsCA,GAAgB,KAC/D,CACA,IAAIC,EAAuB,CACvB,UAAW,UAAY,CACrB,MAAO,EACb,EACI,mBAAoB,UAAY,GAChC,oBAAqB,UAAY,GACjC,gBAAiB,UAAY,IAE/BC,EAAS,OAAO,OAChBC,EAAc,GAChB,SAASC,EAAUC,GAAOC,GAASC,GAAS,CAC1C,KAAK,MAAQF,GACb,KAAK,QAAUC,GACf,KAAK,KAAOH,EACZ,KAAK,QAAUI,IAAWN,CAC5B,CACAG,EAAU,UAAU,iBAAmB,GACvCA,EAAU,UAAU,SAAW,SAAUI,GAAcC,GAAU,CAC/D,GACe,OAAOD,IAApB,UACe,OAAOA,IAAtB,YACQA,IAAR,KAEA,MAAM,MACJ,0GAEJ,KAAK,QAAQ,gBAAgB,KAAMA,GAAcC,GAAU,UAAU,CACvE,EACAL,EAAU,UAAU,YAAc,SAAUK,GAAU,CACpD,KAAK,QAAQ,mBAAmB,KAAMA,GAAU,aAAa,CAC/D,EACA,SAASC,GAAiB,EAC1BA,EAAe,UAAYN,EAAU,UACrC,SAASO,EAAcN,GAAOC,GAASC,GAAS,CAC9C,KAAK,MAAQF,GACb,KAAK,QAAUC,GACf,KAAK,KAAOH,EACZ,KAAK,QAAUI,IAAWN,CAC5B,CACA,IAAIW,GAA0BD,EAAc,UAAY,IAAID,EAC5DE,GAAuB,YAAcD,EACrCT,EAAOU,GAAwBR,EAAU,SAAS,EAClDQ,GAAuB,qBAAuB,GAC9C,IAAIC,GAAc,MAAM,QACtBC,EAAuB,CAAE,EAAG,KAAM,EAAG,KAAM,EAAG,KAAM,EAAG,KAAM,EAAG,IAAI,EACpEC,GAAiB,OAAO,UAAU,eACpC,SAASC,EAAanC,GAAMG,GAAKiC,GAAMC,GAAQC,GAAOd,GAAO,CAC3D,OAAAY,GAAOZ,GAAM,IACN,CACL,SAAU3B,EACV,KAAMG,GACN,IAAKG,GACL,IAAgBiC,KAAX,OAAkBA,GAAO,KAC9B,MAAOZ,GAEX,CACA,SAASe,GAAmBC,GAAYC,GAAQ,CAC9C,OAAON,EACLK,GAAW,KACXC,GACA,OACA,OACA,OACAD,GAAW,MAEf,CACA,SAASE,GAAeC,GAAQ,CAC9B,OACe,OAAOA,IAApB,UACSA,KAAT,MACAA,GAAO,WAAa9C,CAExB,CACA,SAAS+C,GAAOzC,GAAK,CACnB,IAAI0C,GAAgB,CAAE,IAAK,KAAM,IAAK,IAAI,EAC1C,MACE,IACA1C,GAAI,QAAQ,QAAS,SAAU2C,GAAO,CACpC,OAAOD,GAAcC,EAAK,CAChC,CAAK,CAEL,CACA,IAAIC,GAA6B,OACjC,SAASC,GAAcC,GAASC,GAAO,CACrC,OAAoB,OAAOD,IAApB,UAAwCA,KAAT,MAA4BA,GAAQ,KAAhB,KACtDL,GAAO,GAAKK,GAAQ,GAAG,EACvBC,GAAM,SAAS,EAAE,CACvB,CACA,SAASC,IAAS,EAClB,SAASC,GAAgBC,GAAU,CACjC,OAAQA,GAAS,OAAM,CACrB,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,OACjB,QACE,OACgB,OAAOA,GAAS,QAA7B,SACGA,GAAS,KAAKF,GAAQA,EAAM,GAC1BE,GAAS,OAAS,UACpBA,GAAS,KACP,SAAUC,GAAgB,CACVD,GAAS,SAAvB,YACIA,GAAS,OAAS,YACnBA,GAAS,MAAQC,GACpC,EACc,SAAUC,GAAO,CACDF,GAAS,SAAvB,YACIA,GAAS,OAAS,WAAcA,GAAS,OAASE,GACtE,CACA,GACQF,GAAS,OACjB,CACQ,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,MACzB,CACA,CACE,MAAMA,EACR,CACA,SAASG,GAAaC,GAAUC,GAAOC,GAAeC,GAAWhC,GAAU,CACzE,IAAI5B,GAAO,OAAOyD,IACEzD,KAAhB,aAAsCA,KAAd,aAAoByD,GAAW,MAC3D,IAAII,GAAiB,GACrB,GAAaJ,KAAT,KAAmBI,GAAiB,OAEtC,QAAQ7D,GAAI,CACV,IAAK,SACL,IAAK,SACL,IAAK,SACH6D,GAAiB,GACjB,MACF,IAAK,SACH,OAAQJ,GAAS,SAAQ,CACvB,KAAK5D,EACL,KAAKW,EACHqD,GAAiB,GACjB,MACF,KAAK7C,EACH,OACG6C,GAAiBJ,GAAS,MAC3BD,GACEK,GAAeJ,GAAS,QAAQ,EAChCC,GACAC,GACAC,GACAhC,EAChB,CAEA,CACA,CACE,GAAIiC,GACF,OACGjC,GAAWA,GAAS6B,EAAQ,EAC5BI,GACQD,KAAP,GAAmB,IAAMZ,GAAcS,GAAU,CAAC,EAAIG,GACxD5B,GAAYJ,EAAQ,GACd+B,GAAgB,GACVE,IAAR,OACGF,GACCE,GAAe,QAAQd,GAA4B,KAAK,EAAI,KAChES,GAAa5B,GAAU8B,GAAOC,GAAe,GAAI,SAAUG,GAAG,CAC5D,OAAOA,EACnB,CAAW,GACOlC,IAAR,OACCc,GAAed,EAAQ,IACrBA,GAAWW,GACVX,GACA+B,IACW/B,GAAS,KAAjB,MACA6B,IAAYA,GAAS,MAAQ7B,GAAS,IACnC,IACC,GAAKA,GAAS,KAAK,QAClBmB,GACA,OACE,KACRc,EAChB,GACUH,GAAM,KAAK9B,EAAQ,GACvB,EAEJiC,GAAiB,EACjB,IAAIE,GAAwBH,KAAP,GAAmB,IAAMA,GAAY,IAC1D,GAAI5B,GAAYyB,EAAQ,EACtB,QAASO,GAAI,EAAGA,GAAIP,GAAS,OAAQO,KAClCJ,GAAYH,GAASO,EAAC,EACpBhE,GAAO+D,GAAiBf,GAAcY,GAAWI,EAAC,EAClDH,IAAkBL,GACjBI,GACAF,GACAC,GACA3D,GACA4B,EACV,UACaoC,GAAI9C,EAAcuC,EAAQ,EAAmB,OAAOO,IAAtB,WACvC,IACEP,GAAWO,GAAE,KAAKP,EAAQ,EAAGO,GAAI,EACjC,EAAEJ,GAAYH,GAAS,KAAI,GAAI,MAG9BG,GAAYA,GAAU,MACpB5D,GAAO+D,GAAiBf,GAAcY,GAAWI,IAAG,EACpDH,IAAkBL,GACjBI,GACAF,GACAC,GACA3D,GACA4B,EACV,UACwB5B,KAAb,SAAmB,CAC1B,GAAmB,OAAOyD,GAAS,MAA/B,WACF,OAAOD,GACLJ,GAAgBK,EAAQ,EACxBC,GACAC,GACAC,GACAhC,IAEJ,MAAA8B,GAAQ,OAAOD,EAAQ,EACjB,MACJ,mDACyBC,KAAtB,kBACG,qBAAuB,OAAO,KAAKD,EAAQ,EAAE,KAAK,IAAI,EAAI,IAC1DC,IACJ,4EAER,CACE,OAAOG,EACT,CACA,SAASI,GAAYR,GAAUS,GAAMzC,GAAS,CAC5C,GAAYgC,IAAR,KAAkB,OAAOA,GAC7B,IAAIU,GAAS,GACXC,GAAQ,EACV,OAAAZ,GAAaC,GAAUU,GAAQ,GAAI,GAAI,SAAUE,GAAO,CACtD,OAAOH,GAAK,KAAKzC,GAAS4C,GAAOD,IAAO,CAC5C,CAAG,EACMD,EACT,CACA,SAASG,GAAgBC,GAAS,CAChC,GAAWA,GAAQ,UAAf,GAAwB,CAC1B,IAAIC,GAAOD,GAAQ,QACnBC,GAAOA,GAAI,EACXA,GAAK,KACH,SAAUC,GAAc,EACZF,GAAQ,UAAd,GAAgCA,GAAQ,UAAf,MAC1BA,GAAQ,QAAU,EAAKA,GAAQ,QAAUE,GACpD,EACM,SAAUlB,GAAO,EACLgB,GAAQ,UAAd,GAAgCA,GAAQ,UAAf,MAC1BA,GAAQ,QLine truncated
|
||||
{"version":3,"mappings":";;;;;;;;6CAWA,IAAIA,EAAqB,OAAO,IAAI,4BAA4B,EAC9DC,EAAsB,OAAO,IAAI,gBAAgB,EACnD,SAASC,EAAQC,EAAMC,EAAQC,EAAU,CACvC,IAAIC,EAAM,KAGV,GAFWD,IAAX,SAAwBC,EAAM,GAAKD,GACxBD,EAAO,MAAlB,SAA0BE,EAAM,GAAKF,EAAO,KACxC,QAASA,EAAQ,CACnBC,EAAW,GACX,QAASE,KAAYH,EACTG,IAAV,QAAuBF,EAASE,CAAQ,EAAIH,EAAOG,CAAQ,EACjE,MAASF,EAAWD,EAClB,OAAAA,EAASC,EAAS,IACX,CACL,SAAUL,EACV,KAAMG,EACN,IAAKG,EACL,IAAgBF,IAAX,OAAoBA,EAAS,KAClC,MAAOC,EAEX,CACA,OAAAG,GAAA,SAAmBP,EACnBO,GAAA,IAAcN,EACdM,GAAA,KAAeN,2CC9BbO,GAAA,QAAiBC,GAAA;;;;;;;;6CCQnB,IAAIV,EAAqB,OAAO,IAAI,4BAA4B,EAC9DW,EAAoB,OAAO,IAAI,cAAc,EAC7CV,EAAsB,OAAO,IAAI,gBAAgB,EACjDW,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAqB,OAAO,IAAI,eAAe,EAC/CC,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAkB,OAAO,IAAI,YAAY,EACzCC,EAAkB,OAAO,IAAI,YAAY,EACzCC,EAAwB,OAAO,SACjC,SAASC,EAAcC,GAAe,CACpC,OAAaA,KAAT,MAAuC,OAAOA,IAApB,SAA0C,MACxEA,GACGF,GAAyBE,GAAcF,CAAqB,GAC7DE,GAAc,YAAY,EACN,OAAOA,IAAtB,WAAsCA,GAAgB,KAC/D,CACA,IAAIC,EAAuB,CACvB,UAAW,UAAY,CACrB,MAAO,EACb,EACI,mBAAoB,UAAY,GAChC,oBAAqB,UAAY,GACjC,gBAAiB,UAAY,IAE/BC,EAAS,OAAO,OAChBC,EAAc,GAChB,SAASC,EAAUC,GAAOC,GAASC,GAAS,CAC1C,KAAK,MAAQF,GACb,KAAK,QAAUC,GACf,KAAK,KAAOH,EACZ,KAAK,QAAUI,IAAWN,CAC5B,CACAG,EAAU,UAAU,iBAAmB,GACvCA,EAAU,UAAU,SAAW,SAAUI,GAAcC,GAAU,CAC/D,GACe,OAAOD,IAApB,UACe,OAAOA,IAAtB,YACQA,IAAR,KAEA,MAAM,MACJ,0GAEJ,KAAK,QAAQ,gBAAgB,KAAMA,GAAcC,GAAU,UAAU,CACvE,EACAL,EAAU,UAAU,YAAc,SAAUK,GAAU,CACpD,KAAK,QAAQ,mBAAmB,KAAMA,GAAU,aAAa,CAC/D,EACA,SAASC,GAAiB,EAC1BA,EAAe,UAAYN,EAAU,UACrC,SAASO,EAAcN,GAAOC,GAASC,GAAS,CAC9C,KAAK,MAAQF,GACb,KAAK,QAAUC,GACf,KAAK,KAAOH,EACZ,KAAK,QAAUI,IAAWN,CAC5B,CACA,IAAIW,GAA0BD,EAAc,UAAY,IAAID,EAC5DE,GAAuB,YAAcD,EACrCT,EAAOU,GAAwBR,EAAU,SAAS,EAClDQ,GAAuB,qBAAuB,GAC9C,IAAIC,GAAc,MAAM,QACtBC,EAAuB,CAAE,EAAG,KAAM,EAAG,KAAM,EAAG,KAAM,EAAG,KAAM,EAAG,IAAI,EACpEC,GAAiB,OAAO,UAAU,eACpC,SAASC,EAAanC,GAAMG,GAAKiC,GAAMC,GAAQC,GAAOd,GAAO,CAC3D,OAAAY,GAAOZ,GAAM,IACN,CACL,SAAU3B,EACV,KAAMG,GACN,IAAKG,GACL,IAAgBiC,KAAX,OAAkBA,GAAO,KAC9B,MAAOZ,GAEX,CACA,SAASe,GAAmBC,GAAYC,GAAQ,CAC9C,OAAON,EACLK,GAAW,KACXC,GACA,OACA,OACA,OACAD,GAAW,MAEf,CACA,SAASE,GAAeC,GAAQ,CAC9B,OACe,OAAOA,IAApB,UACSA,KAAT,MACAA,GAAO,WAAa9C,CAExB,CACA,SAAS+C,GAAOzC,GAAK,CACnB,IAAI0C,GAAgB,CAAE,IAAK,KAAM,IAAK,IAAI,EAC1C,MACE,IACA1C,GAAI,QAAQ,QAAS,SAAU2C,GAAO,CACpC,OAAOD,GAAcC,EAAK,CAChC,CAAK,CAEL,CACA,IAAIC,GAA6B,OACjC,SAASC,GAAcC,GAASC,GAAO,CACrC,OAAoB,OAAOD,IAApB,UAAwCA,KAAT,MAA4BA,GAAQ,KAAhB,KACtDL,GAAO,GAAKK,GAAQ,GAAG,EACvBC,GAAM,SAAS,EAAE,CACvB,CACA,SAASC,IAAS,EAClB,SAASC,GAAgBC,GAAU,CACjC,OAAQA,GAAS,OAAM,CACrB,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,OACjB,QACE,OACgB,OAAOA,GAAS,QAA7B,SACGA,GAAS,KAAKF,GAAQA,EAAM,GAC1BE,GAAS,OAAS,UACpBA,GAAS,KACP,SAAUC,GAAgB,CACVD,GAAS,SAAvB,YACIA,GAAS,OAAS,YACnBA,GAAS,MAAQC,GACpC,EACc,SAAUC,GAAO,CACDF,GAAS,SAAvB,YACIA,GAAS,OAAS,WAAcA,GAAS,OAASE,GACtE,CACA,GACQF,GAAS,OACjB,CACQ,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,MACzB,CACA,CACE,MAAMA,EACR,CACA,SAASG,GAAaC,GAAUC,GAAOC,GAAeC,GAAWhC,GAAU,CACzE,IAAI5B,GAAO,OAAOyD,IACEzD,KAAhB,aAAsCA,KAAd,aAAoByD,GAAW,MAC3D,IAAII,GAAiB,GACrB,GAAaJ,KAAT,KAAmBI,GAAiB,OAEtC,QAAQ7D,GAAI,CACV,IAAK,SACL,IAAK,SACL,IAAK,SACH6D,GAAiB,GACjB,MACF,IAAK,SACH,OAAQJ,GAAS,SAAQ,CACvB,KAAK5D,EACL,KAAKW,EACHqD,GAAiB,GACjB,MACF,KAAK7C,EACH,OACG6C,GAAiBJ,GAAS,MAC3BD,GACEK,GAAeJ,GAAS,QAAQ,EAChCC,GACAC,GACAC,GACAhC,EAChB,CAEA,CACA,CACE,GAAIiC,GACF,OACGjC,GAAWA,GAAS6B,EAAQ,EAC5BI,GACQD,KAAP,GAAmB,IAAMZ,GAAcS,GAAU,CAAC,EAAIG,GACxD5B,GAAYJ,EAAQ,GACd+B,GAAgB,GACVE,IAAR,OACGF,GACCE,GAAe,QAAQd,GAA4B,KAAK,EAAI,KAChES,GAAa5B,GAAU8B,GAAOC,GAAe,GAAI,SAAUG,GAAG,CAC5D,OAAOA,EACnB,CAAW,GACOlC,IAAR,OACCc,GAAed,EAAQ,IACrBA,GAAWW,GACVX,GACA+B,IACW/B,GAAS,KAAjB,MACA6B,IAAYA,GAAS,MAAQ7B,GAAS,IACnC,IACC,GAAKA,GAAS,KAAK,QAClBmB,GACA,OACE,KACRc,EAChB,GACUH,GAAM,KAAK9B,EAAQ,GACvB,EAEJiC,GAAiB,EACjB,IAAIE,GAAwBH,KAAP,GAAmB,IAAMA,GAAY,IAC1D,GAAI5B,GAAYyB,EAAQ,EACtB,QAASO,GAAI,EAAGA,GAAIP,GAAS,OAAQO,KAClCJ,GAAYH,GAASO,EAAC,EACpBhE,GAAO+D,GAAiBf,GAAcY,GAAWI,EAAC,EAClDH,IAAkBL,GACjBI,GACAF,GACAC,GACA3D,GACA4B,EACV,UACaoC,GAAI9C,EAAcuC,EAAQ,EAAmB,OAAOO,IAAtB,WACvC,IACEP,GAAWO,GAAE,KAAKP,EAAQ,EAAGO,GAAI,EACjC,EAAEJ,GAAYH,GAAS,KAAI,GAAI,MAG9BG,GAAYA,GAAU,MACpB5D,GAAO+D,GAAiBf,GAAcY,GAAWI,IAAG,EACpDH,IAAkBL,GACjBI,GACAF,GACAC,GACA3D,GACA4B,EACV,UACwB5B,KAAb,SAAmB,CAC1B,GAAmB,OAAOyD,GAAS,MAA/B,WACF,OAAOD,GACLJ,GAAgBK,EAAQ,EACxBC,GACAC,GACAC,GACAhC,IAEJ,MAAA8B,GAAQ,OAAOD,EAAQ,EACjB,MACJ,mDACyBC,KAAtB,kBACG,qBAAuB,OAAO,KAAKD,EAAQ,EAAE,KAAK,IAAI,EAAI,IAC1DC,IACJ,4EAER,CACE,OAAOG,EACT,CACA,SAASI,GAAYR,GAAUS,GAAMzC,GAAS,CAC5C,GAAYgC,IAAR,KAAkB,OAAOA,GAC7B,IAAIU,GAAS,GACXC,GAAQ,EACV,OAAAZ,GAAaC,GAAUU,GAAQ,GAAI,GAAI,SAAUE,GAAO,CACtD,OAAOH,GAAK,KAAKzC,GAAS4C,GAAOD,IAAO,CAC5C,CAAG,EACMD,EACT,CACA,SAASG,GAAgBC,GAAS,CAChC,GAAWA,GAAQ,UAAf,GAAwB,CAC1B,IAAIC,GAAOD,GAAQ,QACnBC,GAAOA,GAAI,EACXA,GAAK,KACH,SAAUC,GAAc,EACZF,GAAQ,UAAd,GAAgCA,GAAQ,UAAf,MAC1BA,GAAQ,QAAU,EAAKA,GAAQ,QAAUE,GACpD,EACM,SAAUlB,GAAO,EACLgB,GAAQ,UAAd,GAAgCA,GAAQ,UAAf,MAC1BA,GAAQ,QLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
html{background-color:#1c1f24}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Regular-B-HLW1rL.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Medium-C0z2xw0d.ttf) format("truetype");font-weight:700;font-style:normal;font-display:swap}html{color:#f0f0f0;font-size:14px;box-sizing:border-box}body{overflow:hidden}*,*:before,*:after{box-sizing:inherit}p{font-size:12px;margin-top:5px;margin-bottom:5px;color:#a4a4a4;line-height:1.3}h1{font-size:20px;margin-bottom:10px;font-weight:700}h2{font-size:18px;margin-bottom:10px;font-weight:700}h3{font-size:16px;margin-bottom:10px;font-weight:700}h4{font-size:14px;margin-bottom:10px}input:focus,textarea:focus,*[role=button]:focus,button:focus,.maputnik-toolbar-link:focus,select:focus{color:#f0f0f0;outline:#8e8e8e auto 1px}label:hover{color:#f0f0f0}.clearfix:after{content:"";display:table;clear:both}a{color:#fff}.hide{display:none!important}.maputnik-map__container{background:#fff;display:flex;width:calc(100% - 570px)}.maputnik-map__container--error{align-items:center;justify-content:center}.maputnik-map__container__error-message{margin:16px;text-align:center}.maputnik-map__map{width:100%;height:100%}.maputnik-input-block:hover .maputnik-doc-button,.maputnik-filter-editor-compound-select:hover .maputnik-doc-button{opacity:1;pointer-events:all;cursor:pointer}.maputnik-doc-wrapper{display:inline-block;box-sizing:border-box;font-size:12px;line-height:2;-webkit-user-select:none;user-select:none;position:relative;vertical-align:top}.maputnik-doc-popup{display:none;color:#a4a4a4;background-color:#222429;padding:5px;font-size:10px;position:absolute;top:20px;left:0;width:120px;z-index:10;pointer-events:none}.maputnik-doc-button{opacity:0;pointer-events:none;background:#191b20;color:#fff;border:none;padding:4px}.maputnik-doc-button svg{pointer-events:none}.maputnik-doc-button--open{opacity:1;pointer-events:all}.maputnik-doc-inline{color:#a4a4a4;background-color:#222429;padding:5px;font-size:12px;margin-top:10px;line-height:1.5;flex:1 0}.maputnik-doc-target:hover .maputnik-doc-popup{display:block;text-align:left}.maputnik-button{display:inline-block;cursor:pointer;background-color:#303237;color:#a4a4a4;font-size:12px;padding:5px;-webkit-user-select:none;user-select:none;border-width:0;border-radius:2px;box-sizing:border-box;text-decoration:none}.maputnik-button:hover{background-color:#4d5058;color:#f0f0f0}.maputnik-button:disabled{background-color:#242629;color:#303237;cursor:not-allowed}.maputnik-big-button{margin-top:10px;display:inline-block;padding:10px;font-size:14px}.maputnik-wide-button{padding:5px 10px}.maputnik-green-button{background-color:#53b972;color:#191b20}.maputnik-white-button{background-color:#f0f0f0;color:#191b20}.maputnik-icon-button{background-color:transparent}.maputnik-icon-button:hover:not(:disabled){background-color:transparent}.maputnik-icon-button:hover:not(:disabled) label,.maputnik-icon-button:hover:not(:disabled) svg{cursor:pointer}.maputnik-icon-button:hover:not(:disabled) svg{fill:#f0f0f0}.maputnik-input-block{margin:10px;display:flex;flex-wrap:wrap}.maputnik-input-block-label{color:#a4a4a4;-webkit-user-select:none;user-select:none;width:32%;vertical-align:top;font-size:12px}.maputnik-input-block-action{color:#a4a4a4;-webkit-user-select:none;user-select:none;width:18%;vertical-align:top;font-size:12px;text-align:right}.maputnik-input-block-content{width:50%}.maputnik-action-block .maputnik-input-block-label{display:inline-block;width:32%;margin-bottom:10px}.maputnik-action-block .maputnik-input-block-action{vertical-align:top;display:inline-block;width:18%}.maputnik-action-block .maputnik-input-block-action>div{text-align:right}.maputnik-data-spec-block .maputnik-inline-error,.maputnik-zoom-spec-property .maputnik-inline-error{margin-left:32%}.maputnik-space{-webkit-flex-grow:1;-ms-flex-grow:1;-moz-flex-grow:1;-o-flex-grow:1;flex-grow:1}.maputnik-message-panel{padding:5px}.maputnik-message-panel-error{color:#cf4a4a}.maputnik-message-panel__switch-button{all:unset;text-decoration:underline;cursor:pointer}.maputnik-dialog__buttons{text-align:right}.map-state-menu{display:inline-block}.map-staLine truncated
|
||||
+2
-2
@@ -37,8 +37,8 @@
|
||||
}
|
||||
|
||||
</style>
|
||||
<script type="module" crossorigin src="/maputnik/assets/index-BuKT1v1y.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/maputnik/assets/index-MGRbWx6i.css">
|
||||
<script type="module" crossorigin src="/maputnik/assets/index-DyPMrqFk.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/maputnik/assets/index-BpQ5zcU1.css">
|
||||
</head>
|
||||
<body>
|
||||
<!-- From <https://github.com/hail2u/color-blindness-emulation> -->
|
||||
|
||||
Reference in new issue
Block a user