UNPKG

bcgis-base

Version:

The SDK is based on Cesium for secondary development of 2, 3D all-in-one WebGis application framework, the framework optimizes the use of Cesium and add some additional features, designed for developers to quickly build WebGis applications.

2 lines 11.4 kB
/*! For license information please see 575.min.js.LICENSE.txt */ (self.webpackChunkBC=self.webpackChunkBC||[]).push([[575],{2587:t=>{"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,s,r,h){s=s||"&",r=r||"=";var n={};if("string"!=typeof t||0===t.length)return n;var o=/\+/g;t=t.split(s);var a=1e3;h&&"number"==typeof h.maxKeys&&(a=h.maxKeys);var i=t.length;a>0&&i>a&&(i=a);for(var l=0;l<i;++l){var u,c,p,f,m=t[l].replace(o,"%20"),v=m.indexOf(r);v>=0?(u=m.substr(0,v),c=m.substr(v+1)):(u=m,c=""),p=decodeURIComponent(u),f=decodeURIComponent(c),e(n,p)?Array.isArray(n[p])?n[p].push(f):n[p]=[n[p],f]:n[p]=f}return n}},2361:t=>{"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,s,r,h){return s=s||"&",r=r||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map((function(h){var n=encodeURIComponent(e(h))+r;return Array.isArray(t[h])?t[h].map((function(t){return n+encodeURIComponent(e(t))})).join(s):n+encodeURIComponent(e(t[h]))})).join(s):h?encodeURIComponent(e(h))+r+encodeURIComponent(e(t)):""}},7673:(t,e,s)=>{"use strict";e.decode=e.parse=s(2587),e.encode=e.stringify=s(2361)},2511:function(t,e,s){var r;t=s.nmd(t),function(h){e&&e.nodeType,t&&t.nodeType;var n="object"==typeof s.g&&s.g;n.global!==n&&n.window!==n&&n.self;var o,a=2147483647,i=36,l=/^xn--/,u=/[^\x20-\x7E]/,c=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,m=String.fromCharCode;function v(t){throw RangeError(p[t])}function d(t,e){for(var s=t.length,r=[];s--;)r[s]=e(t[s]);return r}function g(t,e){var s=t.split("@"),r="";return s.length>1&&(r=s[0]+"@",t=s[1]),r+d((t=t.replace(c,".")).split("."),e).join(".")}function y(t){for(var e,s,r=[],h=0,n=t.length;h<n;)(e=t.charCodeAt(h++))>=55296&&e<=56319&&h<n?56320==(64512&(s=t.charCodeAt(h++)))?r.push(((1023&e)<<10)+(1023&s)+65536):(r.push(e),h--):r.push(e);return r}function b(t){return d(t,(function(t){var e="";return t>65535&&(e+=m((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+m(t)})).join("")}function j(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function O(t,e,s){var r=0;for(t=s?f(t/700):t>>1,t+=f(t/e);t>455;r+=i)t=f(t/35);return f(r+36*t/(t+38))}function x(t){var e,s,r,h,n,o,l,u,c,p,m,d=[],g=t.length,y=0,j=128,x=72;for((s=t.lastIndexOf("-"))<0&&(s=0),r=0;r<s;++r)t.charCodeAt(r)>=128&&v("not-basic"),d.push(t.charCodeAt(r));for(h=s>0?s+1:0;h<g;){for(n=y,o=1,l=i;h>=g&&v("invalid-input"),((u=(m=t.charCodeAt(h++))-48<10?m-22:m-65<26?m-65:m-97<26?m-97:i)>=i||u>f((a-y)/o))&&v("overflow"),y+=u*o,!(u<(c=l<=x?1:l>=x+26?26:l-x));l+=i)o>f(a/(p=i-c))&&v("overflow"),o*=p;x=O(y-n,e=d.length+1,0==n),f(y/e)>a-j&&v("overflow"),j+=f(y/e),y%=e,d.splice(y++,0,j)}return b(d)}function C(t){var e,s,r,h,n,o,l,u,c,p,d,g,b,x,C,w=[];for(g=(t=y(t)).length,e=128,s=0,n=72,o=0;o<g;++o)(d=t[o])<128&&w.push(m(d));for(r=h=w.length,h&&w.push("-");r<g;){for(l=a,o=0;o<g;++o)(d=t[o])>=e&&d<l&&(l=d);for(l-e>f((a-s)/(b=r+1))&&v("overflow"),s+=(l-e)*b,e=l,o=0;o<g;++o)if((d=t[o])<e&&++s>a&&v("overflow"),d==e){for(u=s,c=i;!(u<(p=c<=n?1:c>=n+26?26:c-n));c+=i)C=u-p,x=i-p,w.push(m(j(p+C%x,0))),u=f(C/x);w.push(m(j(u,0))),n=O(s,b,r==h),s=0,++r}++s,++e}return w.join("")}o={version:"1.3.2",ucs2:{decode:y,encode:b},decode:x,encode:C,toASCII:function(t){return g(t,(function(t){return u.test(t)?"xn--"+C(t):t}))},toUnicode:function(t){return g(t,(function(t){return l.test(t)?x(t.slice(4).toLowerCase()):t}))}},void 0===(r=function(){return o}.call(e,s,e,t))||(t.exports=r)}()},8575:(t,e,s)=>{"use strict";var r=s(2511),h=s(2502);function n(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=b,e.resolve=function(t,e){return b(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?b(t,!1,!0).resolveObject(e):e},e.format=function(t){return h.isString(t)&&(t=b(t)),t instanceof n?t.format():n.prototype.format.call(t)},e.Url=n;var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),c=["%","/","?",";","#"].concat(u),p=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},d={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=s(7673);function b(t,e,s){if(t&&h.isObject(t)&&t instanceof n)return t;var r=new n;return r.parse(t,e,s),r}n.prototype.parse=function(t,e,s){if(!h.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),a=-1!==n&&n<t.indexOf("#")?"?":"#",l=t.split(a);l[0]=l[0].replace(/\\/g,"/");var b=t=l.join(a);if(b=b.trim(),!s&&1===t.split("#").length){var j=i.exec(b);if(j)return this.path=b,this.href=b,this.pathname=j[1],j[2]?(this.search=j[2],this.query=e?y.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var O=o.exec(b);if(O){var x=(O=O[0]).toLowerCase();this.protocol=x,b=b.substr(O.length)}if(s||O||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var C="//"===b.substr(0,2);!C||O&&d[O]||(b=b.substr(2),this.slashes=!0)}if(!d[O]&&(C||O&&!g[O])){for(var w,A,I=-1,q=0;q<p.length;q++)-1!==(U=b.indexOf(p[q]))&&(-1===I||U<I)&&(I=U);for(-1!==(A=-1===I?b.lastIndexOf("@"):b.lastIndexOf("@",I))&&(w=b.slice(0,A),b=b.slice(A+1),this.auth=decodeURIComponent(w)),I=-1,q=0;q<c.length;q++){var U;-1!==(U=b.indexOf(c[q]))&&(-1===I||U<I)&&(I=U)}-1===I&&(I=b.length),this.host=b.slice(0,I),b=b.slice(I),this.parseHost(),this.hostname=this.hostname||"";var R="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!R)for(var k=this.hostname.split(/\./),N=(q=0,k.length);q<N;q++){var S=k[q];if(S&&!S.match(f)){for(var E="",F=0,$=S.length;F<$;F++)S.charCodeAt(F)>127?E+="x":E+=S[F];if(!E.match(f)){var z=k.slice(0,q),L=k.slice(q+1),T=S.match(m);T&&(z.push(T[1]),L.unshift(T[2])),L.length&&(b="/"+L.join(".")+b),this.hostname=z.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=r.toASCII(this.hostname));var B=this.port?":"+this.port:"",H=this.hostname||"";this.host=H+B,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!v[x])for(q=0,N=u.length;q<N;q++){var K=u[q];if(-1!==b.indexOf(K)){var P=encodeURIComponent(K);P===K&&(P=escape(K)),b=b.split(K).join(P)}}var Z=b.indexOf("#");-1!==Z&&(this.hash=b.substr(Z),b=b.slice(0,Z));var _=b.indexOf("?");if(-1!==_?(this.search=b.substr(_),this.query=b.substr(_+1),e&&(this.query=y.parse(this.query)),b=b.slice(0,_)):e&&(this.search="",this.query={}),b&&(this.pathname=b),g[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){B=this.pathname||"";var M=this.search||"";this.path=B+M}return this.href=this.format(),this},n.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",s=this.pathname||"",r=this.hash||"",n=!1,o="";this.host?n=t+this.host:this.hostname&&(n=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(n+=":"+this.port)),this.query&&h.isObject(this.query)&&Object.keys(this.query).length&&(o=y.stringify(this.query));var a=this.search||o&&"?"+o||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||g[e])&&!1!==n?(n="//"+(n||""),s&&"/"!==s.charAt(0)&&(s="/"+s)):n||(n=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),e+n+(s=s.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(a=a.replace("#","%23"))+r},n.prototype.resolve=function(t){return this.resolveObject(b(t,!1,!0)).format()},n.prototype.resolveObject=function(t){if(h.isString(t)){var e=new n;e.parse(t,!1,!0),t=e}for(var s=new n,r=Object.keys(this),o=0;o<r.length;o++){var a=r[o];s[a]=this[a]}if(s.hash=t.hash,""===t.href)return s.href=s.format(),s;if(t.slashes&&!t.protocol){for(var i=Object.keys(t),l=0;l<i.length;l++){var u=i[l];"protocol"!==u&&(s[u]=t[u])}return g[s.protocol]&&s.hostname&&!s.pathname&&(s.path=s.pathname="/"),s.href=s.format(),s}if(t.protocol&&t.protocol!==s.protocol){if(!g[t.protocol]){for(var c=Object.keys(t),p=0;p<c.length;p++){var f=c[p];s[f]=t[f]}return s.href=s.format(),s}if(s.protocol=t.protocol,t.host||d[t.protocol])s.pathname=t.pathname;else{for(var m=(t.pathname||"").split("/");m.length&&!(t.host=m.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==m[0]&&m.unshift(""),m.length<2&&m.unshift(""),s.pathname=m.join("/")}if(s.search=t.search,s.query=t.query,s.host=t.host||"",s.auth=t.auth,s.hostname=t.hostname||t.host,s.port=t.port,s.pathname||s.search){var v=s.pathname||"",y=s.search||"";s.path=v+y}return s.slashes=s.slashes||t.slashes,s.href=s.format(),s}var b=s.pathname&&"/"===s.pathname.charAt(0),j=t.host||t.pathname&&"/"===t.pathname.charAt(0),O=j||b||s.host&&t.pathname,x=O,C=s.pathname&&s.pathname.split("/")||[],w=(m=t.pathname&&t.pathname.split("/")||[],s.protocol&&!g[s.protocol]);if(w&&(s.hostname="",s.port=null,s.host&&(""===C[0]?C[0]=s.host:C.unshift(s.host)),s.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===m[0]?m[0]=t.host:m.unshift(t.host)),t.host=null),O=O&&(""===m[0]||""===C[0])),j)s.host=t.host||""===t.host?t.host:s.host,s.hostname=t.hostname||""===t.hostname?t.hostname:s.hostname,s.search=t.search,s.query=t.query,C=m;else if(m.length)C||(C=[]),C.pop(),C=C.concat(m),s.search=t.search,s.query=t.query;else if(!h.isNullOrUndefined(t.search))return w&&(s.hostname=s.host=C.shift(),(R=!!(s.host&&s.host.indexOf("@")>0)&&s.host.split("@"))&&(s.auth=R.shift(),s.host=s.hostname=R.shift())),s.search=t.search,s.query=t.query,h.isNull(s.pathname)&&h.isNull(s.search)||(s.path=(s.pathname?s.pathname:"")+(s.search?s.search:"")),s.href=s.format(),s;if(!C.length)return s.pathname=null,s.search?s.path="/"+s.search:s.path=null,s.href=s.format(),s;for(var A=C.slice(-1)[0],I=(s.host||t.host||C.length>1)&&("."===A||".."===A)||""===A,q=0,U=C.length;U>=0;U--)"."===(A=C[U])?C.splice(U,1):".."===A?(C.splice(U,1),q++):q&&(C.splice(U,1),q--);if(!O&&!x)for(;q--;q)C.unshift("..");!O||""===C[0]||C[0]&&"/"===C[0].charAt(0)||C.unshift(""),I&&"/"!==C.join("/").substr(-1)&&C.push("");var R,k=""===C[0]||C[0]&&"/"===C[0].charAt(0);return w&&(s.hostname=s.host=k?"":C.length?C.shift():"",(R=!!(s.host&&s.host.indexOf("@")>0)&&s.host.split("@"))&&(s.auth=R.shift(),s.host=s.hostname=R.shift())),(O=O||s.host&&C.length)&&!k&&C.unshift(""),C.length?s.pathname=C.join("/"):(s.pathname=null,s.path=null),h.isNull(s.pathname)&&h.isNull(s.search)||(s.path=(s.pathname?s.pathname:"")+(s.search?s.search:"")),s.auth=t.auth||s.auth,s.slashes=s.slashes||t.slashes,s.href=s.format(),s},n.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},2502:t=>{"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}}}]);