67 lines
150 KiB
JavaScript
67 lines
150 KiB
JavaScript
|
/**
|
||
|
* @license
|
||
|
* Cesium - https://github.com/CesiumGS/cesium
|
||
|
* Version 1.129
|
||
|
*
|
||
|
* Copyright 2011-2022 Cesium Contributors
|
||
|
*
|
||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
* you may not use this file except in compliance with the License.
|
||
|
* You may obtain a copy of the License at
|
||
|
*
|
||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||
|
*
|
||
|
* Unless required by applicable law or agreed to in writing, software
|
||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
* See the License for the specific language governing permissions and
|
||
|
* limitations under the License.
|
||
|
*
|
||
|
* Columbus View (Pat. Pend.)
|
||
|
*
|
||
|
* Portions licensed separately.
|
||
|
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
||
|
*/
|
||
|
|
||
|
import{a as g,b as Me,c as be,d as qe,e as L,f as _e,g as ut}from"./chunk-MGW7GK6C.js";import{a as R}from"./chunk-WFYQVCMU.js";import{a as Se}from"./chunk-B3NSNNUV.js";import{a as A,b as a}from"./chunk-BOXFFUY5.js";import{a as Et,c as Tt,d as Ze,e as p}from"./chunk-OVZZEY7C.js";var In=Tt((et,tt)=>{/*! https://mths.be/punycode v1.4.0 by @mathias */(function(e){var t=typeof et=="object"&&et&&!et.nodeType&&et,n=typeof tt=="object"&&tt&&!tt.nodeType&&tt,o=typeof global=="object"&&global;(o.global===o||o.window===o||o.self===o)&&(e=o);var i,r=2147483647,s=36,u=1,d=26,m=38,l=700,w=72,E=128,T="-",M=/^xn--/,v=/[^\x20-\x7E]/,I=/[\x2E\u3002\uFF0E\uFF61]/g,N={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},F=s-u,k=Math.floor,B=String.fromCharCode,Q;function W(b){throw new RangeError(N[b])}function K(b,z){for(var D=b.length,Y=[];D--;)Y[D]=z(b[D]);return Y}function oe(b,z){var D=b.split("@"),Y="";D.length>1&&(Y=D[0]+"@",b=D[1]),b=b.replace(I,".");var re=b.split("."),ae=K(re,z).join(".");return Y+ae}function X(b){for(var z=[],D=0,Y=b.length,re,ae;D<Y;)re=b.charCodeAt(D++),re>=55296&&re<=56319&&D<Y?(ae=b.charCodeAt(D++),(ae&64512)==56320?z.push(((re&1023)<<10)+(ae&1023)+65536):(z.push(re),D--)):z.push(re);return z}function ne(b){return K(b,function(z){var D="";return z>65535&&(z-=65536,D+=B(z>>>10&1023|55296),z=56320|z&1023),D+=B(z),D}).join("")}function Z(b){return b-48<10?b-22:b-65<26?b-65:b-97<26?b-97:s}function c(b,z){return b+22+75*(b<26)-((z!=0)<<5)}function f(b,z,D){var Y=0;for(b=D?k(b/l):b>>1,b+=k(b/z);b>F*d>>1;Y+=s)b=k(b/F);return k(Y+(F+1)*b/(b+m))}function h(b){var z=[],D=b.length,Y,re=0,ae=E,ee=w,fe,he,me,de,pe,V,ge,Te,je;for(fe=b.lastIndexOf(T),fe<0&&(fe=0),he=0;he<fe;++he)b.charCodeAt(he)>=128&&W("not-basic"),z.push(b.charCodeAt(he));for(me=fe>0?fe+1:0;me<D;){for(de=re,pe=1,V=s;me>=D&&W("invalid-input"),ge=Z(b.charCodeAt(me++)),(ge>=s||ge>k((r-re)/pe))&&W("overflow"),re+=ge*pe,Te=V<=ee?u:V>=ee+d?d:V-ee,!(ge<Te);V+=s)je=s-Te,pe>k(r/je)&&W("overflow"),pe*=je;Y=z.length+1,ee=f(re-de,Y,de==0),k(re/Y)>r-ae&&W("overflow"),ae+=k(re/Y),re%=Y,z.splice(re++,0,ae)}return ne(z)}function y(b){var z,D,Y,re,ae,ee,fe,he,me,de,pe,V=[],ge,Te,je,ft;for(b=X(b),ge=b.length,z=E,D=0,ae=w,ee=0;ee<ge;++ee)pe=b[ee],pe<128&&V.push(B(pe));for(Y=re=V.length,re&&V.push(T);Y<ge;){for(fe=r,ee=0;ee<ge;++ee)pe=b[ee],pe>=z&&pe<fe&&(fe=pe);for(Te=Y+1,fe-z>k((r-D)/Te)&&W("overflow"),D+=(fe-z)*Te,z=fe,ee=0;ee<ge;++ee)if(pe=b[ee],pe<z&&++D>r&&W("overflow"),pe==z){for(he=D,me=s;de=me<=ae?u:me>=ae+d?d:me-ae,!(he<de);me+=s)ft=he-de,je=s-de,V.push(B(c(de+ft%je,0))),he=k(ft/je);V.push(B(c(he,0))),ae=f(D,Te,Y==re),D=0,++Y}++D,++z}return V.join("")}function O(b){return oe(b,function(z){return M.test(z)?h(z.slice(4).toLowerCase()):z})}function C(b){return oe(b,function(z){return v.test(z)?"xn--"+y(z):z})}if(i={version:"1.3.2",ucs2:{decode:X,encode:ne},decode:h,encode:y,toASCII:C,toUnicode:O},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return i});else if(t&&n)if(tt.exports==t)n.exports=i;else for(Q in i)i.hasOwnProperty(Q)&&(t[Q]=i[Q]);else e.punycode=i})(et)});var Dn=Tt((qn,Ut)=>{/*!
|
||
|
* URI.js - Mutating URLs
|
||
|
* IPv6 Support
|
||
|
*
|
||
|
* Version: 1.19.11
|
||
|
*
|
||
|
* Author: Rodney Rehm
|
||
|
* Web: http://medialize.github.io/URI.js/
|
||
|
*
|
||
|
* Licensed under
|
||
|
* MIT License http://www.opensource.org/licenses/mit-license
|
||
|
*
|
||
|
*/(function(e,t){"use strict";typeof Ut=="object"&&Ut.exports?Ut.exports=t():typeof define=="function"&&define.amd?define(t):e.IPv6=t(e)})(qn,function(e){"use strict";var t=e&&e.IPv6;function n(i){var r=i.toLowerCase(),s=r.split(":"),u=s.length,d=8;s[0]===""&&s[1]===""&&s[2]===""?(s.shift(),s.shift()):s[0]===""&&s[1]===""?s.shift():s[u-1]===""&&s[u-2]===""&&s.pop(),u=s.length,s[u-1].indexOf(".")!==-1&&(d=7);var m;for(m=0;m<u&&s[m]!=="";m++);if(m<d)for(s.splice(m,1,"0000");s.length<d;)s.splice(m,0,"0000");for(var l,w=0;w<d;w++){l=s[w].split("");for(var E=0;E<3&&(l[0]==="0"&&l.length>1);E++)l.splice(0,1);s[w]=l.join("")}var T=-1,M=0,v=0,I=-1,N=!1;for(w=0;w<d;w++)N?s[w]==="0"?v+=1:(N=!1,v>M&&(T=I,M=v)):s[w]==="0"&&(N=!0,I=w,v=1);v>M&&(T=I,M=v),M>1&&s.splice(T,M,""),u=s.length;var F="";for(s[0]===""&&(F=":"),w=0;w<u&&(F+=s[w],w!==u-1);w++)F+=":";return s[u-1]===""&&(F+=":"),F}function o(){return e.IPv6===this&&(e.IPv6=t),this}return{best:n,noConflict:o}})});var kn=Tt((Nn,zt)=>{/*!
|
||
|
* URI.js - Mutating URLs
|
||
|
* Second Level Domain (SLD) Support
|
||
|
*
|
||
|
* Version: 1.19.11
|
||
|
*
|
||
|
* Author: Rodney Rehm
|
||
|
* Web: http://medialize.github.io/URI.js/
|
||
|
*
|
||
|
* Licensed under
|
||
|
* MIT License http://www.opensource.org/licenses/mit-license
|
||
|
*
|
||
|
*/(function(e,t){"use strict";typeof zt=="object"&&zt.exports?zt.exports=t():typeof define=="function"&&define.amd?define(t):e.SecondLevelDomains=t(e)})(Nn,function(e){"use strict";var t=e&&e.SecondLevelDomains,n={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow l
|
||
|
* URI.js - Mutating URLs
|
||
|
*
|
||
|
* Version: 1.19.11
|
||
|
*
|
||
|
* Author: Rodney Rehm
|
||
|
* Web: http://medialize.github.io/URI.js/
|
||
|
*
|
||
|
* Licensed under
|
||
|
* MIT License http://www.opensource.org/licenses/mit-license
|
||
|
*
|
||
|
*/(function(e,t){"use strict";typeof It=="object"&&It.exports?It.exports=t(In(),Dn(),kn()):typeof define=="function"&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],t):e.URI=t(e.punycode,e.IPv6,e.SecondLevelDomains,e)})(Fn,function(e,t,n,o){"use strict";var i=o&&o.URI;function r(c,f){var h=arguments.length>=1,y=arguments.length>=2;if(!(this instanceof r))return h?y?new r(c,f):new r(c):new r;if(c===void 0){if(h)throw new TypeError("undefined is not a valid argument for URI");typeof location<"u"?c=location.href+"":c=""}if(c===null&&h)throw new TypeError("null is not a valid argument for URI");return this.href(c),f!==void 0?this.absoluteTo(f):this}function s(c){return/^[0-9]+$/.test(c)}r.version="1.19.11";var u=r.prototype,d=Object.prototype.hasOwnProperty;function m(c){return c.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function l(c){return c===void 0?"Undefined":String(Object.prototype.toString.call(c)).slice(8,-1)}function w(c){return l(c)==="Array"}function E(c,f){var h={},y,O;if(l(f)==="RegExp")h=null;else if(w(f))for(y=0,O=f.length;y<O;y++)h[f[y]]=!0;else h[f]=!0;for(y=0,O=c.length;y<O;y++){var C=h&&h[c[y]]!==void 0||!h&&f.test(c[y]);C&&(c.splice(y,1),O--,y--)}return c}function T(c,f){var h,y;if(w(f)){for(h=0,y=f.length;h<y;h++)if(!T(c,f[h]))return!1;return!0}var O=l(f);for(h=0,y=c.length;h<y;h++)if(O==="RegExp"){if(typeof c[h]=="string"&&c[h].match(f))return!0}else if(c[h]===f)return!0;return!1}function M(c,f){if(!w(c)||!w(f)||c.length!==f.length)return!1;c.sort(),f.sort();for(var h=0,y=c.length;h<y;h++)if(c[h]!==f[h])return!1;return!0}function v(c){var f=/^\/+|\/+$/g;return c.replace(f,"")}r._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:r.preventInvalidHostname,duplicateQueryParameters:r.duplicateQueryParameters,escapeQuerySpace:r.escapeQuerySpace}},r.preventInvalidHostname=!1,r.duplicateQueryParameters=!1,r.escapeQuerySpace=!0,r.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,r.idn_expression=/[^a-z0-9\._-]/i,r.punycode_expression=/(xn--)/i,r.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,r.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,r.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/ig,r.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},r.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,r.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,r.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},r.hostProtocols=["http","https"],r.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,r.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",
|
||
|
(${this[1]}, ${this[5]}, ${this[9]}, ${this[13]})
|
||
|
(${this[2]}, ${this[6]}, ${this[10]}, ${this[14]})
|
||
|
(${this[3]}, ${this[7]}, ${this[11]}, ${this[15]})`};var J=_;function Mn(e,t,n){n=n??!1;let o={},i=p(e),r=p(t),s,u,d;if(i)for(s in e)e.hasOwnProperty(s)&&(u=e[s],r&&n&&typeof u=="object"&&t.hasOwnProperty(s)?(d=t[s],typeof d=="object"?o[s]=Mn(u,d,n):o[s]=u):o[s]=u);if(r)for(s in t)t.hasOwnProperty(s)&&!o.hasOwnProperty(s)&&(d=t[s],o[s]=d);return o}var Pe=Mn;function Zo(e,t,n){a.defined("array",e),a.defined("itemToFind",t),a.defined("comparator",n);let o=0,i=e.length-1,r,s;for(;o<=i;){if(r=~~((o+i)/2),s=n(e[r],t),s<0){o=r+1;continue}if(s>0){i=r-1;continue}return r}return~(i+1)}var Qe=Zo;function Jo(e,t,n,o,i){this.xPoleWander=e,this.yPoleWander=t,this.xPoleOffset=n,this.yPoleOffset=o,this.ut1MinusUtc=i}var ht=Jo;function Go(e){if(e===null||isNaN(e))throw new A("year is required and must be a number.");return e%4===0&&e%100!==0||e%400===0}var dt=Go;var Pn=[31,28,31,30,31,30,31,31,30,31,30,31];function Ko(e,t,n,o,i,r,s,u){e=e??1,t=t??1,n=n??1,o=o??0,i=i??0,r=r??0,s=s??0,u=u??!1,v(),I(),this.year=e,this.month=t,this.day=n,this.hour=o,this.minute=i,this.second=r,this.millisecond=s,this.isLeapSecond=u;function v(){a.typeOf.number.greaterThanOrEquals("Year",e,1),a.typeOf.number.lessThanOrEquals("Year",e,9999),a.typeOf.number.greaterThanOrEquals("Month",t,1),a.typeOf.number.lessThanOrEquals("Month",t,12),a.typeOf.number.greaterThanOrEquals("Day",n,1),a.typeOf.number.lessThanOrEquals("Day",n,31),a.typeOf.number.greaterThanOrEquals("Hour",o,0),a.typeOf.number.lessThanOrEquals("Hour",o,23),a.typeOf.number.greaterThanOrEquals("Minute",i,0),a.typeOf.number.lessThanOrEquals("Minute",i,59),a.typeOf.bool("IsLeapSecond",u),a.typeOf.number.greaterThanOrEquals("Second",r,0),a.typeOf.number.lessThanOrEquals("Second",r,u?60:59),a.typeOf.number.greaterThanOrEquals("Millisecond",s,0),a.typeOf.number.lessThan("Millisecond",s,1e3)}function I(){let N=t===2&&dt(e)?Pn[t-1]+1:Pn[t-1];if(n>N)throw new A("Month and Day represents invalid date")}}var vt=Ko;function er(e,t){this.julianDate=e,this.offset=t}var te=er;var tr={SECONDS_PER_MILLISECOND:.001,SECONDS_PER_MINUTE:60,MINUTES_PER_HOUR:60,HOURS_PER_DAY:24,SECONDS_PER_HOUR:3600,MINUTES_PER_DAY:1440,SECONDS_PER_DAY:86400,DAYS_PER_JULIAN_CENTURY:36525,PICOSECOND:1e-9,MODIFIED_JULIAN_DATE_DIFFERENCE:24000005e-1},ie=Object.freeze(tr);var nr={UTC:0,TAI:1},H=Object.freeze(nr);var zn=new vt,At=[31,28,31,30,31,30,31,31,30,31,30,31],jt=29;function nn(e,t){return U.compare(e.julianDate,t.julianDate)}var Ke=new te;function Pt(e){Ke.julianDate=e;let t=U.leapSeconds,n=Qe(t,Ke,nn);n<0&&(n=~n),n>=t.length&&(n=t.length-1);let o=t[n].offset;n>0&&U.secondsDifference(t[n].julianDate,e)>o&&(n--,o=t[n].offset),U.addSeconds(e,o,e)}function Un(e,t){Ke.julianDate=e;let n=U.leapSeconds,o=Qe(n,Ke,nn);if(o<0&&(o=~o),o===0)return U.addSeconds(e,-n[0].offset,t);if(o>=n.length)return U.addSeconds(e,-n[o-1].offset,t);let i=U.secondsDifference(n[o].julianDate,e);if(i===0)return U.addSeconds(e,-n[o].offset,t);if(!(i<=1))return U.addSeconds(e,-n[--o].offset,t)}function Ne(e,t,n){let o=t/ie.SECONDS_PER_DAY|0;return e+=o,t-=ie.SECONDS_PER_DAY*o,t<0&&(e--,t+=ie.SECONDS_PER_DAY),n.dayNumber=e,n.secondsOfDay=t,n}function on(e,t,n,o,i,r,s){let u=(t-14)/12|0,d=e+4800+u,m=(1461*d/4|0)+(367*(t-2-12*u)/12|0)-(3*((d+100)/100|0)/4|0)+n-32075;o=o-12,o<0&&(o+=24);let l=r+(o*ie.SECONDS_PER_HOUR+i*ie.SECONDS_PER_MINUTE+s*ie.SECONDS_PER_MILLISECOND);return l>=43200&&(m-=1),[m,l]}var or=/^(\d{4})$/,rr=/^(\d{4})-(\d{2})$/,ir=/^(\d{4})-?(\d{3})$/,cr=/^(\d{4})-?W(\d{2})-?(\d{1})?$/,sr=/^(\d{4})-?(\d{2})-?(\d{2})$/,rn=/([Z+\-])?(\d{2})?:?(\d{2})?$/,ar=/^(\d{2})(\.\d+)?/.source+rn.source,fr=/^(\d{2}):?(\d{2})(\.\d+)?/.source+rn.source,ur=/^(\d{2}):?(\d{2}):?(\d{2})(\.\d+)?/.source+rn.source,Re="Invalid ISO 8601 date.";function U(e,t,n){this.dayNumber=void 0,this.secondsOfDay=void 0,e=e??0,t=t??0,n=n??H.UTC;let o=e|0;t=t+(e-o)*ie.SECONDS_PER_DAY,Ne(o,t,this),n===H.UTC&&Pt(this)}U.fromGregorianDate=function(e,t){if(!(e instanceof vt))throw new A("date must be a valid GregorianDate.");let n=on(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond);retu
|
||
|
`);for(let o=0;o<n.length;++o){let i=n[o],r=i.indexOf(": ");if(r>0){let s=i.substring(0,r),u=i.substring(r+2);t[s]=u}}return t}var eo=Cr;function to(e,t,n){this.statusCode=e,this.response=t,this.responseHeaders=n,typeof this.responseHeaders=="string"&&(this.responseHeaders=eo(this.responseHeaders))}to.prototype.toString=function(){let e="Request has failed.";return p(this.statusCode)&&(e+=` Status Code: ${this.statusCode}`),e};var yt=to;var kt=Ze(We(),1);function lt(){this._listeners=[],this._scopes=[],this._toRemove=[],this._insideRaiseEvent=!1}Object.defineProperties(lt.prototype,{numberOfListeners:{get:function(){return this._listeners.length-this._toRemove.length}}});lt.prototype.addEventListener=function(e,t){a.typeOf.func("listener",e),this._listeners.push(e),this._scopes.push(t);let n=this;return function(){n.removeEventListener(e,t)}};lt.prototype.removeEventListener=function(e,t){a.typeOf.func("listener",e);let n=this._listeners,o=this._scopes,i=-1;for(let r=0;r<n.length;r++)if(n[r]===e&&o[r]===t){i=r;break}return i!==-1?(this._insideRaiseEvent?(this._toRemove.push(i),n[i]=void 0,o[i]=void 0):(n.splice(i,1),o.splice(i,1)),!0):!1};function vr(e,t){return t-e}lt.prototype.raiseEvent=function(){this._insideRaiseEvent=!0;let e,t=this._listeners,n=this._scopes,o=t.length;for(e=0;e<o;e++){let r=t[e];p(r)&&t[e].apply(n[e],arguments)}let i=this._toRemove;if(o=i.length,o>0){for(i.sort(vr),e=0;e<o;e++){let r=i[e];t.splice(r,1),n.splice(r,1)}i.length=0}this._insideRaiseEvent=!1};var no=lt;function He(e){a.typeOf.object("options",e),a.defined("options.comparator",e.comparator),this._comparator=e.comparator,this._array=[],this._length=0,this._maximumLength=void 0}Object.defineProperties(He.prototype,{length:{get:function(){return this._length}},internalArray:{get:function(){return this._array}},maximumLength:{get:function(){return this._maximumLength},set:function(e){a.typeOf.number.greaterThanOrEquals("maximumLength",e,0);let t=this._length;if(e<t){let n=this._array;for(let o=e;o<t;++o)n[o]=void 0;this._length=e,n.length=e}this._maximumLength=e}},comparator:{get:function(){return this._comparator}}});function an(e,t,n){let o=e[t];e[t]=e[n],e[n]=o}He.prototype.reserve=function(e){e=e??this._length,this._array.length=e};He.prototype.heapify=function(e){e=e??0;let t=this._length,n=this._comparator,o=this._array,i=-1,r=!0;for(;r;){let s=2*(e+1),u=s-1;u<t&&n(o[u],o[e])<0?i=u:i=e,s<t&&n(o[s],o[i])<0&&(i=s),i!==e?(an(o,i,e),e=i):r=!1}};He.prototype.resort=function(){let e=this._length;for(let t=Math.ceil(e/2);t>=0;--t)this.heapify(t)};He.prototype.insert=function(e){a.defined("element",e);let t=this._array,n=this._comparator,o=this._maximumLength,i=this._length++;for(i<t.length?t[i]=e:t.push(e);i!==0;){let s=Math.floor((i-1)/2);if(n(t[i],t[s])<0)an(t,i,s),i=s;else break}let r;return p(o)&&this._length>o&&(r=t[o],this._length=o),r};He.prototype.pop=function(e){if(e=e??0,this._length===0)return;a.typeOf.number.lessThan("index",e,this._length);let t=this._array,n=t[e];return an(t,e,--this._length),this.heapify(e),t[this._length]=void 0,n};var oo=He;function Ar(e,t){return e.priority-t.priority}var G={numberOfAttemptedRequests:0,numberOfActiveRequests:0,numberOfCancelledRequests:0,numberOfCancelledActiveRequests:0,numberOfFailedRequests:0,numberOfActiveRequestsEver:0,lastNumberOfActiveRequests:0},ot=20,le=new oo({comparator:Ar});le.maximumLength=ot;le.reserve(ot);var ve=[],Ue={},jr=typeof document<"u"?new kt.default(document.location.href):new kt.default,Ft=new no;function se(){}se.maximumRequests=50;se.maximumRequestsPerServer=18;se.requestsByServer={};se.throttleRequests=!0;se.debugShowStatistics=!1;se.requestCompletedEvent=Ft;Object.defineProperties(se,{statistics:{get:function(){return G}},priorityHeapLength:{get:function(){return ot},set:function(e){if(e<ot)for(;le.length>e;){let t=le.pop();$e(t)}ot=e,le.maximumLength=e,le.reserve(e)}}});function ro(e){p(e.priorityFunction)&&(e.priority=e.priorityFunction())}se.serverHasOpenSlots=function(e,t){t=t??1;let n=se.requestsByServer[e]??se.maximumRequestsPerServer;return Ue[e]+t<=n};se
|
||
|
(${this[1]}, ${this[3]})`};var bf=q;export{De as a,J as b,Pe as c,Fe as d,Ro as e,Xe as f,qo as g,hf as h,bf as i};
|