hi-ucs/front/public/leaflet/libs/iClientfor3D/Workers/zlib.min.js

25 lines
18 KiB
Vue
Raw Normal View History

2022-06-14 09:32:49 +08:00
/**
* Cesium - https://github.com/AnalyticalGraphicsInc/cesium
*
* Copyright 2011-2017 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/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md for full licensing details.
*/
/** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */
!function(){(function(){"use strict";function r(r){throw r}function t(r,t){var e=r.split("."),i=U;!(e[0]in i)&&i.execScript&&i.execScript("var "+e[0]);for(var n;e.length&&(n=e.shift());)e.length||t===k?i=i[n]?i[n]:i[n]={}:i[n]=t}function e(t,e){this.index="number"==typeof e?e:0,this.i=0,this.buffer=t instanceof(m?Uint8Array:Array)?t:new(m?Uint8Array:Array)(32768),2*this.buffer.length<=this.index&&r(Error("invalid index")),this.buffer.length<=this.index&&this.f()}function i(r){this.buffer=new(m?Uint16Array:Array)(2*r),this.length=0}function n(r){var t,e,i,n,s,a,h,f,o,u,c=r.length,l=0,b=Number.POSITIVE_INFINITY;for(f=0;c>f;++f)r[f]>l&&(l=r[f]),r[f]<b&&(b=r[f]);for(t=1<<l,e=new(m?Uint32Array:Array)(t),i=1,n=0,s=2;l>=i;){for(f=0;c>f;++f)if(r[f]===i){for(a=0,h=n,o=0;i>o;++o)a=a<<1|1&h,h>>=1;for(u=i<<16|f,o=a;t>o;o+=s)e[o]=u;++n}++i,n<<=1,s<<=1}return[e,l,b]}function s(r,t){this.h=D,this.w=0,this.input=m&&r instanceof Array?new Uint8Array(r):r,this.b=0,t&&(t.lazy&&(this.w=t.lazy),"number"==typeof t.compressionType&&(this.h=t.compressionType),t.outputBuffer&&(this.a=m&&t.outputBuffer instanceof Array?new Uint8Array(t.outputBuffer):t.outputBuffer),"number"==typeof t.outputIndex&&(this.b=t.outputIndex)),this.a||(this.a=new(m?Uint8Array:Array)(32768))}function a(r,t){this.length=r,this.H=t}function h(t,e){function i(t,e){var i,n=t.H,s=[],a=0;i=S[t.length],s[a++]=65535&i,s[a++]=i>>16&255,s[a++]=i>>24;var h;switch(w){case 1===n:h=[0,n-1,0];break;case 2===n:h=[1,n-2,0];break;case 3===n:h=[2,n-3,0];break;case 4===n:h=[3,n-4,0];break;case 6>=n:h=[4,n-5,1];break;case 8>=n:h=[5,n-7,1];break;case 12>=n:h=[6,n-9,2];break;case 16>=n:h=[7,n-13,2];break;case 24>=n:h=[8,n-17,3];break;case 32>=n:h=[9,n-25,3];break;case 48>=n:h=[10,n-33,4];break;case 64>=n:h=[11,n-49,4];break;case 96>=n:h=[12,n-65,5];break;case 128>=n:h=[13,n-97,5];break;case 192>=n:h=[14,n-129,6];break;case 256>=n:h=[15,n-193,6];break;case 384>=n:h=[16,n-257,7];break;case 512>=n:h=[17,n-385,7];break;case 768>=n:h=[18,n-513,8];break;case 1024>=n:h=[19,n-769,8];break;case 1536>=n:h=[20,n-1025,9];break;case 2048>=n:h=[21,n-1537,9];break;case 3072>=n:h=[22,n-2049,10];break;case 4096>=n:h=[23,n-3073,10];break;case 6144>=n:h=[24,n-4097,11];break;case 8192>=n:h=[25,n-6145,11];break;case 12288>=n:h=[26,n-8193,12];break;case 16384>=n:h=[27,n-12289,12];break;case 24576>=n:h=[28,n-16385,13];break;case 32768>=n:h=[29,n-24577,13];break;default:r("invalid distance")}i=h,s[a++]=i[0],s[a++]=i[1],s[a++]=i[2];var f,o;for(f=0,o=s.length;o>f;++f)p[g++]=s[f];A[s[0]]++,v[s[3]]++,d=t.length+e-1,l=null}var n,s,a,h,o,u,c,l,b,y={},p=m?new Uint16Array(2*e.length):[],g=0,d=0,A=new(m?Uint32Array:Array)(286),v=new(m?Uint32Array:Array)(30),U=t.w;if(!m){for(a=0;285>=a;)A[a++]=0;for(a=0;29>=a;)v[a++]=0}for(A[256]=1,n=0,s=e.length;s>n;++n){for(a=o=0,h=3;h>a&&n+a!==s;++a)o=o<<8|e[n+a];if(y[o]===k&&(y[o]=[]),u=y[o],!(0<d--)){for(;0<u.length&&32768<n-u[0];)u.shift();if(n+3>=s){for(l&&i(l,-1),a=0,h=s-n;h>a;++a)b=e[n+a],p[g++]=b,++A[b];break}0<u.length?(c=f(e,n,u),l?l.length<c.length?(b=e[n-1],p[g++]=b,++A[b],i(c,0)):i(l,-1):c.length<U?l=c:i(c,0)):l?i(l,-1):(b=e[n],p[g++]=b,++A[b])}u.push(n)}return p[g++]=256,A[256]++,t.M=A,t.L=v,m?p.subarray(0,g):p}function f(r,t,e){var i,n,s,h,f,o,u=0,c=r.length;h=0,o=e.length;r:for(;o>h;h++){if(i=e[o-h-1],s=3,u>3){for(f=u;f>3;f--)if(r[i+f-1]!==r[t+f-1])continue r;s=u}for(;258>s&&c>t+s&&r[i+s]===r[t+s];)++s;if(s>u&&(n=i,u=s),258===s)break}return new a(u,t-n)}function o(r,t){var e,n,s,a,h,f=r.length,o=new i(572),c=new(m?Uint8Array:Array)(f);if(!m)for(a=0;f>a;a++)c[a]=0;for(a=0;f>a;++a)0<r[a]&&o.push(a,r[a]);if(e=Array(o.length/2),n=new(m?Uint32Array:Array)(o.length/2),1===e.length)return c[o.pop().index]=1,c;for(a=0,h=o.length/2;h>a;++a)e[a]=o.pop(),n[a]=e[a].value;for(s=u(n,n.length,t),a=0,h=e.length;h>a;++a)c[e[a].index]=s[a];return c}function u(r,t,e){function i(r){var e=b[r][y[r]];e===t?(i(r+1),i(r+1)):--c[e],++y[r]}var n,s,a,h,f,o=new(m?Uint16Array:Array)(e),u=new(m?Uint8Array:Array)(e),c=new(m?Uint8Array:Array)(t),l=Array(e),b=Array(e),y=Array(e),p=(1<<e)-t,g=1<<e-1;for(o[e-