bimland/dist/Cesium/ThirdParty/Workers/deflate.js

1 line
16 KiB
JavaScript
Raw Permalink Normal View History

2023-07-26 17:04:38 +08:00
!function(e){var t=256,n=256,a=-2,i=-5,r=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];function _(){var e=this;function t(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.build_tree=function(n){var a,i,r,_=e.dyn_tree,o=e.stat_desc.static_tree,u=e.stat_desc.elems,d=-1;for(n.heap_len=0,n.heap_max=573,a=0;a<u;a++)0!==_[2*a]?(n.heap[++n.heap_len]=d=a,n.depth[a]=0):_[2*a+1]=0;for(;n.heap_len<2;)_[2*(r=n.heap[++n.heap_len]=d<2?++d:0)]=1,n.depth[r]=0,n.opt_len--,o&&(n.static_len-=o[2*r+1]);for(e.max_code=d,a=Math.floor(n.heap_len/2);a>=1;a--)n.pqdownheap(_,a);r=u;do{a=n.heap[1],n.heap[1]=n.heap[n.heap_len--],n.pqdownheap(_,1),i=n.heap[1],n.heap[--n.heap_max]=a,n.heap[--n.heap_max]=i,_[2*r]=_[2*a]+_[2*i],n.depth[r]=Math.max(n.depth[a],n.depth[i])+1,_[2*a+1]=_[2*i+1]=r,n.heap[1]=r++,n.pqdownheap(_,1)}while(n.heap_len>=2);n.heap[--n.heap_max]=n.heap[1],function(t){var n,a,i,r,_,o,u=e.dyn_tree,d=e.stat_desc.static_tree,l=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,s=e.stat_desc.max_length,c=0;for(r=0;r<=15;r++)t.bl_count[r]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)(r=u[2*u[2*(a=t.heap[n])+1]+1]+1)>s&&(r=s,c++),u[2*a+1]=r,a>e.max_code||(t.bl_count[r]++,_=0,a>=f&&(_=l[a-f]),o=u[2*a],t.opt_len+=o*(r+_),d&&(t.static_len+=o*(d[2*a+1]+_)));if(0!==c){do{for(r=s-1;0===t.bl_count[r];)r--;t.bl_count[r]--,t.bl_count[r+1]+=2,t.bl_count[s]--,c-=2}while(c>0);for(r=s;0!==r;r--)for(a=t.bl_count[r];0!==a;)(i=t.heap[--n])>e.max_code||(u[2*i+1]!=r&&(t.opt_len+=(r-u[2*i+1])*u[2*i],u[2*i+1]=r),a--)}}(n),function(e,n,a){var i,r,_,o=[],u=0;for(i=1;i<=15;i++)o[i]=u=u+a[i-1]<<1;for(r=0;r<=n;r++)0!==(_=e[2*r+1])&&(e[2*r]=t(o[_]++,_))}(_,e.max_code,n.bl_count)}}function o(e,t,n,a,i){var r=this;r.static_tree=e,r.extra_bits=t,r.extra_base=n,r.elems=a,r.max_length=i}_._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28],_.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80