feat: python code execution
This commit is contained in:
1 parent
ba61f87a2f
commit
58a13aec7e
67 files changed
+1918
-11
No files matched your search
@@ -0,0 +1,2 @@
|
||||
const e=15,t=573,n=-2;function r(e){return i(e.map((([e,t])=>new Array(e).fill(t,0,e))))}function i(e){return e.reduce(((e,t)=>e.concat(Array.isArray(t)?i(t):t)),[])}const a=[0,1,2,3].concat(...r([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function s(){const n=this;function r(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}n.build_tree=function(i){const a=n.dyn_tree,s=n.stat_desc.static_tree,o=n.stat_desc.elems;let c,l,d,f=-1;for(i.heap_len=0,i.heap_max=t,c=0;c<o;c++)0!==a[2*c]?(i.heap[++i.heap_len]=f=c,i.depth[c]=0):a[2*c+1]=0;for(;i.heap_len<2;)d=i.heap[++i.heap_len]=f<2?++f:0,a[2*d]=1,i.depth[d]=0,i.opt_len--,s&&(i.static_len-=s[2*d+1]);for(n.max_code=f,c=Math.floor(i.heap_len/2);c>=1;c--)i.pqdownheap(a,c);d=o;do{c=i.heap[1],i.heap[1]=i.heap[i.heap_len--],i.pqdownheap(a,1),l=i.heap[1],i.heap[--i.heap_max]=c,i.heap[--i.heap_max]=l,a[2*d]=a[2*c]+a[2*l],i.depth[d]=Math.max(i.depth[c],i.depth[l])+1,a[2*c+1]=a[2*l+1]=d,i.heap[1]=d++,i.pqdownheap(a,1)}while(i.heap_len>=2);i.heap[--i.heap_max]=i.heap[1],function(r){const i=n.dyn_tree,a=n.stat_desc.static_tree,s=n.stat_desc.extra_bits,o=n.stat_desc.extra_base,c=n.stat_desc.max_length;let l,d,f,u,p,m,h=0;for(u=0;u<=e;u++)r.bl_count[u]=0;for(i[2*r.heap[r.heap_max]+1]=0,l=r.heap_max+1;l<t;l++)d=r.heap[l],u=i[2*i[2*d+1]+1]+1,u>c&&(u=c,h++),i[2*d+1]=u,d>n.max_code||(r.bl_count[u]++,p=0,d>=o&&(p=s[d-o]),m=i[2*d],r.opt_len+=m*(u+p),a&&(r.static_len+=m*(a[2*d+1]+p)));if(0!==h){do{for(u=c-1;0===r.bl_count[u];)u--;r.bl_count[u]--,r.bl_count[u+1]+=2,r.bl_count[c]--,h-=2}while(h>0);for(u=c;0!==u;u--)for(d=r.bl_count[u];0!==d;)f=r.heap[--l],f>n.max_code||(i[2*f+1]!=u&&(r.opt_len+=(u-i[2*f+1])*i[2*f],i[2*f+1]=u),d--)}}(i),function(t,n,i){const a=[];let s,o,c,l=0;for(s=1;s<=e;s++)a[s]=l=l+i[s-1]<<1;for(o=0;o<=n;o++)c=t[2*o+1],0!==c&&(t[2*o]=r(a[c]++,c))}(a,n.max_code,i.bl_count)}}function o(e,t,n,r,i){const a=this;a.static_tree=e,a.extra_bits=t,a.extra_base=n,a.elems=r,a.max_length=i}s._length_code=[0,1,2,3,4,5,6,7].concat(...r([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),s.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],s.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],s.d_code=function(e){return e<256?a[e]:a[256+(e>>>7)]},s.extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],s.extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],s.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const c=r([[144,8],[112,9],[24,7],[8,8]]);o.static_ltree=i([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((e,t)=>[e,c[t]])));const l=r([[30,5]]);function d(e,t,n,r,i){const a=this;a.good_length=e,a.max_lazy=t,a.nice_length=n,a.max_chain=r,a.func=i}o.static_dtree=i([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((e,t)=>[e,l[t]]))),o.static_l_desc=new o(o.static_ltree,s.extra_lbits,257,286,e),o.static_d_desc=new o(o.static_dtree,s.extra_dbits,0,30,e),o.static_bl_desc=new o(null,s.extra_blbits,0,19,7);const f=[new d(0,0,0,0,0),new d(4,4,8,4,1),new d(4,5,16,8,1),new d(4,6,32,32,1),new d(4,4,16,16,2),new d(8,16,32,32,2),new d(8,16,128,128,2),new d(8,32,128,256,2),new d(32,128,258,1024,2),new d(32,258,258,4096,2)],u=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],p=113,m=666,h=262;function w(e,t,n,r){const i=e[2*t],a=e[2*n];return i<a||i==a&&r[t]<=r[n]}function x(){const e=this;let t,r,i,a,c,l,d,x,g,b,v,y,_,k,S,z,A,D,E,j,C,F,R,U,T,O,I,W,q,P,N,M,B;const L=new s,G=new s,H=new s;let V,Z,K,X,Y,Q;function J(){let t;for(t=0;t<286;t++)N[2*t]=Line truncated
|
||||
//# sourceMappingURL=zip-D2yvzXKD.js.map
|
||||
Reference in new issue
Block a user