@css-inline/css-inline-wasm 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +23 -23
- package/index.min.js +2 -2
- package/index.mjs +23 -23
- package/index_bg.wasm +0 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -33,6 +33,18 @@ heap.push(void 0, null, true, false);
|
|
|
33
33
|
function getObject(idx) {
|
|
34
34
|
return heap[idx];
|
|
35
35
|
}
|
|
36
|
+
var heap_next = heap.length;
|
|
37
|
+
function dropObject(idx) {
|
|
38
|
+
if (idx < 132)
|
|
39
|
+
return;
|
|
40
|
+
heap[idx] = heap_next;
|
|
41
|
+
heap_next = idx;
|
|
42
|
+
}
|
|
43
|
+
function takeObject(idx) {
|
|
44
|
+
const ret = getObject(idx);
|
|
45
|
+
dropObject(idx);
|
|
46
|
+
return ret;
|
|
47
|
+
}
|
|
36
48
|
var WASM_VECTOR_LEN = 0;
|
|
37
49
|
var cachedUint8Memory0 = null;
|
|
38
50
|
function getUint8Memory0() {
|
|
@@ -104,7 +116,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
104
116
|
ptr = ptr >>> 0;
|
|
105
117
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
106
118
|
}
|
|
107
|
-
var heap_next = heap.length;
|
|
108
119
|
function addHeapObject(obj) {
|
|
109
120
|
if (heap_next === heap.length)
|
|
110
121
|
heap.push(heap.length + 1);
|
|
@@ -113,17 +124,6 @@ function addHeapObject(obj) {
|
|
|
113
124
|
heap[idx] = obj;
|
|
114
125
|
return idx;
|
|
115
126
|
}
|
|
116
|
-
function dropObject(idx) {
|
|
117
|
-
if (idx < 132)
|
|
118
|
-
return;
|
|
119
|
-
heap[idx] = heap_next;
|
|
120
|
-
heap_next = idx;
|
|
121
|
-
}
|
|
122
|
-
function takeObject(idx) {
|
|
123
|
-
const ret = getObject(idx);
|
|
124
|
-
dropObject(idx);
|
|
125
|
-
return ret;
|
|
126
|
-
}
|
|
127
127
|
var cachedFloat64Memory0 = null;
|
|
128
128
|
function getFloat64Memory0() {
|
|
129
129
|
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
@@ -261,6 +261,14 @@ function __wbg_get_imports() {
|
|
|
261
261
|
const ret = getObject(arg0) === void 0;
|
|
262
262
|
return ret;
|
|
263
263
|
};
|
|
264
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
265
|
+
takeObject(arg0);
|
|
266
|
+
};
|
|
267
|
+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
268
|
+
const v = getObject(arg0);
|
|
269
|
+
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
|
|
270
|
+
return ret;
|
|
271
|
+
};
|
|
264
272
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
265
273
|
const obj = getObject(arg1);
|
|
266
274
|
const ret = typeof obj === "string" ? obj : void 0;
|
|
@@ -269,20 +277,15 @@ function __wbg_get_imports() {
|
|
|
269
277
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
270
278
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
271
279
|
};
|
|
272
|
-
imports.wbg.
|
|
273
|
-
const
|
|
274
|
-
const ret = typeof
|
|
280
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
281
|
+
const val = getObject(arg0);
|
|
282
|
+
const ret = typeof val === "object" && val !== null;
|
|
275
283
|
return ret;
|
|
276
284
|
};
|
|
277
285
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
278
286
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
279
287
|
return addHeapObject(ret);
|
|
280
288
|
};
|
|
281
|
-
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
282
|
-
const val = getObject(arg0);
|
|
283
|
-
const ret = typeof val === "object" && val !== null;
|
|
284
|
-
return ret;
|
|
285
|
-
};
|
|
286
289
|
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
287
290
|
const ret = getObject(arg0);
|
|
288
291
|
return addHeapObject(ret);
|
|
@@ -303,9 +306,6 @@ function __wbg_get_imports() {
|
|
|
303
306
|
const ret = +getObject(arg0);
|
|
304
307
|
return ret;
|
|
305
308
|
};
|
|
306
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
307
|
-
takeObject(arg0);
|
|
308
|
-
};
|
|
309
309
|
imports.wbg.__wbg_length_1d25fa9e4ac21ce7 = function(arg0) {
|
|
310
310
|
const ret = getObject(arg0).length;
|
|
311
311
|
return ret;
|
package/index.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var cssInline=(()=>{var S=Object.defineProperty;var $=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var B=(e,n)=>{for(var t in n)S(e,t,{get:n[t],enumerable:!0})},q=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of D(n))!N.call(e,i)&&i!==t&&S(e,i,{get:()=>n[i],enumerable:!(r=$(n,i))||r.enumerable});return e};var z=e=>q(S({},"__esModule",{value:!0}),e);var Y={};B(Y,{initWasm:()=>K,inline:()=>Q,version:()=>X});var c,b=new Array(128).fill(void 0);b.push(void 0,null,!0,!1);function o(e){return b[e]}var h=0,g=null;function A(){return(g===null||g.byteLength===0)&&(g=new Uint8Array(c.memory.buffer)),g}var I=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},
|
|
2
|
-
${e.stack}`:r}function T(e,n){let t,r;try{let d=c.__wbindgen_add_to_stack_pointer(-16),L=W(e,c.__wbindgen_malloc,c.__wbindgen_realloc),R=h;c.inline(d,L,R,l(n));var i=u()[d/4+0],f=u()[d/4+1],s=u()[d/4+2],_=u()[d/4+3],a=i,x=f;if(_)throw a=0,x=0,
|
|
1
|
+
"use strict";var cssInline=(()=>{var S=Object.defineProperty;var $=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var B=(e,n)=>{for(var t in n)S(e,t,{get:n[t],enumerable:!0})},q=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of D(n))!N.call(e,i)&&i!==t&&S(e,i,{get:()=>n[i],enumerable:!(r=$(n,i))||r.enumerable});return e};var z=e=>q(S({},"__esModule",{value:!0}),e);var Y={};B(Y,{initWasm:()=>K,inline:()=>Q,version:()=>X});var c,b=new Array(128).fill(void 0);b.push(void 0,null,!0,!1);function o(e){return b[e]}var m=b.length;function C(e){e<132||(b[e]=m,m=e)}function M(e){let n=o(e);return C(e),n}var h=0,g=null;function A(){return(g===null||g.byteLength===0)&&(g=new Uint8Array(c.memory.buffer)),g}var I=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},P=typeof I.encodeInto=="function"?function(e,n){return I.encodeInto(e,n)}:function(e,n){let t=I.encode(e);return n.set(t),{read:e.length,written:t.length}};function W(e,n,t){if(t===void 0){let _=I.encode(e),a=n(_.length,1)>>>0;return A().subarray(a,a+_.length).set(_),h=_.length,a}let r=e.length,i=n(r,1)>>>0,f=A(),s=0;for(;s<r;s++){let _=e.charCodeAt(s);if(_>127)break;f[i+s]=_}if(s!==r){s!==0&&(e=e.slice(s)),i=t(i,r,r=s+e.length*3,1)>>>0;let _=A().subarray(i+s,i+r),a=P(e,_);s+=a.written}return h=s,i}function j(e){return e==null}var w=null;function u(){return(w===null||w.byteLength===0)&&(w=new Int32Array(c.memory.buffer)),w}var O=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&O.decode();function p(e,n){return e=e>>>0,O.decode(A().subarray(e,e+n))}function l(e){m===b.length&&b.push(b.length+1);let n=m;return m=b[n],b[n]=e,n}var y=null;function H(){return(y===null||y.byteLength===0)&&(y=new Float64Array(c.memory.buffer)),y}function E(e){let n=typeof e;if(n=="number"||n=="boolean"||e==null)return`${e}`;if(n=="string")return`"${e}"`;if(n=="symbol"){let i=e.description;return i==null?"Symbol":`Symbol(${i})`}if(n=="function"){let i=e.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(e)){let i=e.length,f="[";i>0&&(f+=E(e[0]));for(let s=1;s<i;s++)f+=", "+E(e[s]);return f+="]",f}let t=/\[object ([^\]]+)\]/.exec(toString.call(e)),r;if(t.length>1)r=t[1];else return toString.call(e);if(r=="Object")try{return"Object("+JSON.stringify(e)+")"}catch{return"Object"}return e instanceof Error?`${e.name}: ${e.message}
|
|
2
|
+
${e.stack}`:r}function T(e,n){let t,r;try{let d=c.__wbindgen_add_to_stack_pointer(-16),L=W(e,c.__wbindgen_malloc,c.__wbindgen_realloc),R=h;c.inline(d,L,R,l(n));var i=u()[d/4+0],f=u()[d/4+1],s=u()[d/4+2],_=u()[d/4+3],a=i,x=f;if(_)throw a=0,x=0,M(s);return t=a,r=x,p(a,x)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(t,r,1)}}function k(){let e,n;try{let i=c.__wbindgen_add_to_stack_pointer(-16);c.version(i);var t=u()[i/4+0],r=u()[i/4+1];return e=t,n=r,p(t,r)}finally{c.__wbindgen_add_to_stack_pointer(16),c.__wbindgen_free(e,n,1)}}async function J(e,n){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,n)}catch(r){if(e.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r}let t=await e.arrayBuffer();return await WebAssembly.instantiate(t,n)}else{let t=await WebAssembly.instantiate(e,n);return t instanceof WebAssembly.Instance?{instance:t,module:e}:t}}function V(){let e={};return e.wbg={},e.wbg.__wbindgen_is_undefined=function(n){return o(n)===void 0},e.wbg.__wbindgen_object_drop_ref=function(n){M(n)},e.wbg.__wbindgen_boolean_get=function(n){let t=o(n);return typeof t=="boolean"?t?1:0:2},e.wbg.__wbindgen_string_get=function(n,t){let r=o(t),i=typeof r=="string"?r:void 0;var f=j(i)?0:W(i,c.__wbindgen_malloc,c.__wbindgen_realloc),s=h;u()[n/4+1]=s,u()[n/4+0]=f},e.wbg.__wbindgen_is_object=function(n){let t=o(n);return typeof t=="object"&&t!==null},e.wbg.__wbindgen_string_new=function(n,t){let r=p(n,t);return l(r)},e.wbg.__wbindgen_object_clone_ref=function(n){let t=o(n);return l(t)},e.wbg.__wbg_getwithrefkey_4a92a5eca60879b9=function(n,t){let r=o(n)[o(t)];return l(r)},e.wbg.__wbindgen_in=function(n,t){return o(n)in o(t)},e.wbg.__wbg_isSafeInteger_f93fde0dca9820f8=function(n){return Number.isSafeInteger(o(n))},e.wbg.__wbindgen_as_number=function(n){return+o(n)},e.wbg.__wbg_length_1d25fa9e4ac21ce7=function(n){return o(n).length},e.wbg.__wbindgen_memory=function(){let n=c.memory;return l(n)},e.wbg.__wbg_buffer_a448f833075b71ba=function(n){let t=o(n).buffer;return l(t)},e.wbg.__wbg_new_8f67e318f15d7254=function(n){let t=new Uint8Array(o(n));return l(t)},e.wbg.__wbg_set_2357bf09366ee480=function(n,t,r){o(n).set(o(t),r>>>0)},e.wbg.__wbindgen_error_new=function(n,t){let r=new Error(p(n,t));return l(r)},e.wbg.__wbindgen_jsval_loose_eq=function(n,t){return o(n)==o(t)},e.wbg.__wbindgen_number_get=function(n,t){let r=o(t),i=typeof r=="number"?r:void 0;H()[n/8+1]=j(i)?0:i,u()[n/4+0]=!j(i)},e.wbg.__wbg_instanceof_Uint8Array_bced6f43aed8c1aa=function(n){let t;try{t=o(n)instanceof Uint8Array}catch{t=!1}return t},e.wbg.__wbg_instanceof_ArrayBuffer_e7d53d51371448e2=function(n){let t;try{t=o(n)instanceof ArrayBuffer}catch{t=!1}return t},e.wbg.__wbindgen_debug_string=function(n,t){let r=E(o(t)),i=W(r,c.__wbindgen_malloc,c.__wbindgen_realloc),f=h;u()[n/4+1]=f,u()[n/4+0]=i},e.wbg.__wbindgen_throw=function(n,t){throw new Error(p(n,t))},e}function G(e,n){return c=e.exports,U.__wbindgen_wasm_module=n,y=null,w=null,g=null,c}async function U(e){if(c!==void 0)return c;typeof e>"u"&&(e=new URL("index_bg.wasm",void 0));let n=V();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));let{instance:t,module:r}=await J(await e,n);return G(t,r)}var v=U;var F=!1,K=async e=>{if(F)throw new Error("Already initialized. The `initWasm()` function can be used only once.");await v(await e),F=!0};function Q(e,n){return T(e,n)}function X(){return k()}return z(Y);})();
|
package/index.mjs
CHANGED
|
@@ -5,6 +5,18 @@ heap.push(void 0, null, true, false);
|
|
|
5
5
|
function getObject(idx) {
|
|
6
6
|
return heap[idx];
|
|
7
7
|
}
|
|
8
|
+
var heap_next = heap.length;
|
|
9
|
+
function dropObject(idx) {
|
|
10
|
+
if (idx < 132)
|
|
11
|
+
return;
|
|
12
|
+
heap[idx] = heap_next;
|
|
13
|
+
heap_next = idx;
|
|
14
|
+
}
|
|
15
|
+
function takeObject(idx) {
|
|
16
|
+
const ret = getObject(idx);
|
|
17
|
+
dropObject(idx);
|
|
18
|
+
return ret;
|
|
19
|
+
}
|
|
8
20
|
var WASM_VECTOR_LEN = 0;
|
|
9
21
|
var cachedUint8Memory0 = null;
|
|
10
22
|
function getUint8Memory0() {
|
|
@@ -76,7 +88,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
76
88
|
ptr = ptr >>> 0;
|
|
77
89
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
78
90
|
}
|
|
79
|
-
var heap_next = heap.length;
|
|
80
91
|
function addHeapObject(obj) {
|
|
81
92
|
if (heap_next === heap.length)
|
|
82
93
|
heap.push(heap.length + 1);
|
|
@@ -85,17 +96,6 @@ function addHeapObject(obj) {
|
|
|
85
96
|
heap[idx] = obj;
|
|
86
97
|
return idx;
|
|
87
98
|
}
|
|
88
|
-
function dropObject(idx) {
|
|
89
|
-
if (idx < 132)
|
|
90
|
-
return;
|
|
91
|
-
heap[idx] = heap_next;
|
|
92
|
-
heap_next = idx;
|
|
93
|
-
}
|
|
94
|
-
function takeObject(idx) {
|
|
95
|
-
const ret = getObject(idx);
|
|
96
|
-
dropObject(idx);
|
|
97
|
-
return ret;
|
|
98
|
-
}
|
|
99
99
|
var cachedFloat64Memory0 = null;
|
|
100
100
|
function getFloat64Memory0() {
|
|
101
101
|
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
@@ -233,6 +233,14 @@ function __wbg_get_imports() {
|
|
|
233
233
|
const ret = getObject(arg0) === void 0;
|
|
234
234
|
return ret;
|
|
235
235
|
};
|
|
236
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
237
|
+
takeObject(arg0);
|
|
238
|
+
};
|
|
239
|
+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
|
|
240
|
+
const v = getObject(arg0);
|
|
241
|
+
const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
|
|
242
|
+
return ret;
|
|
243
|
+
};
|
|
236
244
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
237
245
|
const obj = getObject(arg1);
|
|
238
246
|
const ret = typeof obj === "string" ? obj : void 0;
|
|
@@ -241,20 +249,15 @@ function __wbg_get_imports() {
|
|
|
241
249
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
242
250
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
243
251
|
};
|
|
244
|
-
imports.wbg.
|
|
245
|
-
const
|
|
246
|
-
const ret = typeof
|
|
252
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
253
|
+
const val = getObject(arg0);
|
|
254
|
+
const ret = typeof val === "object" && val !== null;
|
|
247
255
|
return ret;
|
|
248
256
|
};
|
|
249
257
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
250
258
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
251
259
|
return addHeapObject(ret);
|
|
252
260
|
};
|
|
253
|
-
imports.wbg.__wbindgen_is_object = function(arg0) {
|
|
254
|
-
const val = getObject(arg0);
|
|
255
|
-
const ret = typeof val === "object" && val !== null;
|
|
256
|
-
return ret;
|
|
257
|
-
};
|
|
258
261
|
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
259
262
|
const ret = getObject(arg0);
|
|
260
263
|
return addHeapObject(ret);
|
|
@@ -275,9 +278,6 @@ function __wbg_get_imports() {
|
|
|
275
278
|
const ret = +getObject(arg0);
|
|
276
279
|
return ret;
|
|
277
280
|
};
|
|
278
|
-
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
279
|
-
takeObject(arg0);
|
|
280
|
-
};
|
|
281
281
|
imports.wbg.__wbg_length_1d25fa9e4ac21ce7 = function(arg0) {
|
|
282
282
|
const ret = getObject(arg0).length;
|
|
283
283
|
return ret;
|
package/index_bg.wasm
CHANGED
|
Binary file
|