@runopencode/rx-stencil 0.4.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/LICENSE +18 -0
- package/README.md +39 -0
- package/dist/cjs/index-5f6f12ab.js +1265 -0
- package/dist/cjs/index-5f6f12ab.js.map +1 -0
- package/dist/cjs/index.cjs.js +572 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/rx-async.cjs.entry.js +71 -0
- package/dist/cjs/rx-async.cjs.entry.js.map +1 -0
- package/dist/cjs/rx-stencil.cjs.js +25 -0
- package/dist/cjs/rx-stencil.cjs.js.map +1 -0
- package/dist/cjs/set-property-88176225.js +1167 -0
- package/dist/cjs/set-property-88176225.js.map +1 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/async/async.js +67 -0
- package/dist/collection/components/async/async.js.map +1 -0
- package/dist/collection/components/async/async.scss +3 -0
- package/dist/collection/index.js +3 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/rx/decorator/index.js +3 -0
- package/dist/collection/rx/decorator/index.js.map +1 -0
- package/dist/collection/rx/decorator/query-selector-all.js +41 -0
- package/dist/collection/rx/decorator/query-selector-all.js.map +1 -0
- package/dist/collection/rx/decorator/query-selector.js +54 -0
- package/dist/collection/rx/decorator/query-selector.js.map +1 -0
- package/dist/collection/rx/index.js +5 -0
- package/dist/collection/rx/index.js.map +1 -0
- package/dist/collection/rx/observable/index.js +4 -0
- package/dist/collection/rx/observable/index.js.map +1 -0
- package/dist/collection/rx/observable/mutation-observable.js +13 -0
- package/dist/collection/rx/observable/mutation-observable.js.map +1 -0
- package/dist/collection/rx/observable/property-observable.js +28 -0
- package/dist/collection/rx/observable/property-observable.js.map +1 -0
- package/dist/collection/rx/observable/render-observable.js +24 -0
- package/dist/collection/rx/observable/render-observable.js.map +1 -0
- package/dist/collection/rx/operator/index.js +4 -0
- package/dist/collection/rx/operator/index.js.map +1 -0
- package/dist/collection/rx/operator/schedule-render.js +23 -0
- package/dist/collection/rx/operator/schedule-render.js.map +1 -0
- package/dist/collection/rx/operator/to-property.js +19 -0
- package/dist/collection/rx/operator/to-property.js.map +1 -0
- package/dist/collection/rx/operator/until-disconnected.js +105 -0
- package/dist/collection/rx/operator/until-disconnected.js.map +1 -0
- package/dist/collection/rx/subscriber/index.js +2 -0
- package/dist/collection/rx/subscriber/index.js.map +1 -0
- package/dist/collection/rx/subscriber/set-property.js +16 -0
- package/dist/collection/rx/subscriber/set-property.js.map +1 -0
- package/dist/collection/utils/get-property-descriptor.js +18 -0
- package/dist/collection/utils/get-property-descriptor.js.map +1 -0
- package/dist/collection/utils/index.js +2 -0
- package/dist/collection/utils/index.js.map +1 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +562 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/rx-async.d.ts +11 -0
- package/dist/components/rx-async.js +86 -0
- package/dist/components/rx-async.js.map +1 -0
- package/dist/components/set-property.js +1150 -0
- package/dist/components/set-property.js.map +1 -0
- package/dist/esm/index-9102de09.js +1236 -0
- package/dist/esm/index-9102de09.js.map +1 -0
- package/dist/esm/index.js +561 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/rx-async.entry.js +67 -0
- package/dist/esm/rx-async.entry.js.map +1 -0
- package/dist/esm/rx-stencil.js +20 -0
- package/dist/esm/rx-stencil.js.map +1 -0
- package/dist/esm/set-property-7fa82bef.js +1150 -0
- package/dist/esm/set-property-7fa82bef.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/rx-stencil/index.esm.js +2 -0
- package/dist/rx-stencil/index.esm.js.map +1 -0
- package/dist/rx-stencil/p-01af4414.entry.js +2 -0
- package/dist/rx-stencil/p-01af4414.entry.js.map +1 -0
- package/dist/rx-stencil/p-0cd0b2da.js +2 -0
- package/dist/rx-stencil/p-0cd0b2da.js.map +1 -0
- package/dist/rx-stencil/p-8411601b.js +3 -0
- package/dist/rx-stencil/p-8411601b.js.map +1 -0
- package/dist/rx-stencil/rx-stencil.esm.js +2 -0
- package/dist/rx-stencil/rx-stencil.esm.js.map +1 -0
- package/dist/types/components/async/async.d.ts +10 -0
- package/dist/types/components.d.ts +41 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/rx/decorator/index.d.ts +2 -0
- package/dist/types/rx/decorator/query-selector-all.d.ts +22 -0
- package/dist/types/rx/decorator/query-selector.d.ts +30 -0
- package/dist/types/rx/index.d.ts +4 -0
- package/dist/types/rx/observable/index.d.ts +3 -0
- package/dist/types/rx/observable/mutation-observable.d.ts +2 -0
- package/dist/types/rx/observable/property-observable.d.ts +6 -0
- package/dist/types/rx/observable/render-observable.d.ts +8 -0
- package/dist/types/rx/operator/index.d.ts +3 -0
- package/dist/types/rx/operator/schedule-render.d.ts +12 -0
- package/dist/types/rx/operator/to-property.d.ts +9 -0
- package/dist/types/rx/operator/until-disconnected.d.ts +7 -0
- package/dist/types/rx/subscriber/index.d.ts +1 -0
- package/dist/types/rx/subscriber/set-property.d.ts +16 -0
- package/dist/types/stencil-public-runtime.d.ts +1652 -0
- package/dist/types/utils/get-property-descriptor.d.ts +7 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +21 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +11 -0
- package/package.json +42 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-5f6f12ab.js');
|
|
6
|
+
|
|
7
|
+
const defineCustomElements = (win, options) => {
|
|
8
|
+
if (typeof window === 'undefined') return undefined;
|
|
9
|
+
return index.bootstrapLazy([["rx-async.cjs",[[0,"rx-async",{"value":[16]}]]]], options);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
exports.setNonce = index.setNonce;
|
|
13
|
+
exports.defineCustomElements = defineCustomElements;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=loader.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"loader.cjs.js","mappings":";;;;;;AAGY,MAAC,oBAAoB,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK;AACtD,EAAE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,OAAO,SAAS,CAAC;AAEtD,EAAE,OAAOA,mBAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D;;;;;","names":["bootstrapLazy"],"sources":["@lazy-external-entrypoint?app-data=conditional"],"sourcesContent":["export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\nexport const defineCustomElements = (win, options) => {\n if (typeof window === 'undefined') return undefined;\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n};\n"],"version":3}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-5f6f12ab.js');
|
|
6
|
+
const setProperty = require('./set-property-88176225.js');
|
|
7
|
+
|
|
8
|
+
function of(...args) {
|
|
9
|
+
const scheduler = setProperty.popScheduler(args);
|
|
10
|
+
return setProperty.from(args, scheduler);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function isObservable(obj) {
|
|
14
|
+
return !!obj && (obj instanceof setProperty.Observable || (setProperty.isFunction(obj.lift) && setProperty.isFunction(obj.subscribe)));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function switchMap(project, resultSelector) {
|
|
18
|
+
return setProperty.operate((source, subscriber) => {
|
|
19
|
+
let innerSubscriber = null;
|
|
20
|
+
let index = 0;
|
|
21
|
+
let isComplete = false;
|
|
22
|
+
const checkComplete = () => isComplete && !innerSubscriber && subscriber.complete();
|
|
23
|
+
source.subscribe(setProperty.createOperatorSubscriber(subscriber, (value) => {
|
|
24
|
+
innerSubscriber === null || innerSubscriber === void 0 ? void 0 : innerSubscriber.unsubscribe();
|
|
25
|
+
let innerIndex = 0;
|
|
26
|
+
const outerIndex = index++;
|
|
27
|
+
setProperty.innerFrom(project(value, outerIndex)).subscribe((innerSubscriber = setProperty.createOperatorSubscriber(subscriber, (innerValue) => subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue), () => {
|
|
28
|
+
innerSubscriber = null;
|
|
29
|
+
checkComplete();
|
|
30
|
+
})));
|
|
31
|
+
}, () => {
|
|
32
|
+
isComplete = true;
|
|
33
|
+
checkComplete();
|
|
34
|
+
}));
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const asyncScss = ":host{display:inline-block}";
|
|
39
|
+
|
|
40
|
+
const Async = class {
|
|
41
|
+
constructor(hostRef) {
|
|
42
|
+
index.registerInstance(this, hostRef);
|
|
43
|
+
this._value = null;
|
|
44
|
+
this.value = null;
|
|
45
|
+
}
|
|
46
|
+
connectedCallback() {
|
|
47
|
+
setProperty.propertyObservable(this, 'value').pipe(switchMap((value) => {
|
|
48
|
+
if (isObservable(value)) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
if (value instanceof Promise) {
|
|
52
|
+
return setProperty.from(value);
|
|
53
|
+
}
|
|
54
|
+
return of(value);
|
|
55
|
+
})).subscribe(setProperty.setProperty(this, '_value', {
|
|
56
|
+
scheduleRender: true,
|
|
57
|
+
nextTick: false,
|
|
58
|
+
}));
|
|
59
|
+
}
|
|
60
|
+
disconnectedCallback() {
|
|
61
|
+
// noop
|
|
62
|
+
}
|
|
63
|
+
render() {
|
|
64
|
+
return (index.h(index.Host, null, this._value));
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
Async.style = asyncScss;
|
|
68
|
+
|
|
69
|
+
exports.rx_async = Async;
|
|
70
|
+
|
|
71
|
+
//# sourceMappingURL=rx-async.cjs.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"rx-async.entry.cjs.js","mappings":";;;;;;;AAEO,SAAS,EAAE,CAAC,GAAG,IAAI,EAAE;AAC5B,IAAI,MAAM,SAAS,GAAGA,wBAAY,CAAC,IAAI,CAAC,CAAC;AACzC,IAAI,OAAOC,gBAAI,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AACjC;;ACHO,SAAS,YAAY,CAAC,GAAG,EAAE;AAClC,IAAI,OAAO,CAAC,CAAC,GAAG,KAAK,GAAG,YAAYC,sBAAU,KAAKC,sBAAU,CAAC,GAAG,CAAC,IAAI,CAAC,IAAIA,sBAAU,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AACvG;;ACDO,SAAS,SAAS,CAAC,OAAO,EAAE,cAAc,EAAE;AACnD,IAAI,OAAOC,mBAAO,CAAC,CAAC,MAAM,EAAE,UAAU,KAAK;AAC3C,QAAQ,IAAI,eAAe,GAAG,IAAI,CAAC;AACnC,QAAQ,IAAI,KAAK,GAAG,CAAC,CAAC;AACtB,QAAQ,IAAI,UAAU,GAAG,KAAK,CAAC;AAC/B,QAAQ,MAAM,aAAa,GAAG,MAAM,UAAU,IAAI,CAAC,eAAe,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;AAC5F,QAAQ,MAAM,CAAC,SAAS,CAACC,oCAAwB,CAAC,UAAU,EAAE,CAAC,KAAK,KAAK;AACzE,YAAY,eAAe,KAAK,IAAI,IAAI,eAAe,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,eAAe,CAAC,WAAW,EAAE,CAAC;AAC5G,YAAY,IAAI,UAAU,GAAG,CAAC,CAAC;AAC/B,YAAY,MAAM,UAAU,GAAG,KAAK,EAAE,CAAC;AACvC,YAAYC,qBAAS,CAAC,OAAO,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,SAAS,EAAE,eAAe,GAAGD,oCAAwB,CAAC,UAAU,EAAE,CAAC,UAAU,KAAK,UAAU,CAAC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,GAAG,UAAU,CAAC,EAAE,MAAM;AACtP,gBAAgB,eAAe,GAAG,IAAI,CAAC;AACvC,gBAAgB,aAAa,EAAE,CAAC;AAChC,aAAa,CAAC,EAAE,CAAC;AACjB,SAAS,EAAE,MAAM;AACjB,YAAY,UAAU,GAAG,IAAI,CAAC;AAC9B,YAAY,aAAa,EAAE,CAAC;AAC5B,SAAS,CAAC,CAAC,CAAC;AACZ,KAAK,CAAC,CAAC;AACP;;ACtBA,MAAM,SAAS,GAAG,6BAA6B;;MC0BlC,KAAK;;;IAKN,WAAM,GAAY,IAAI,CAAC;iBAFJ,IAAI;;EAIxB,iBAAiB;IACpBE,8BAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAClC,SAAS,CAAC,CAAC,KAAiB;MACxB,IAAI,YAAY,CAAC,KAAK,CAAC,EAAE;QACrB,OAAO,KAAK,CAAC;OAChB;MAED,IAAI,KAAK,YAAY,OAAO,EAAE;QAC1B,OAAON,gBAAI,CAAC,KAAK,CAAC,CAAC;OACtB;MAED,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC;KACpB,CAAC,CACL,CAAC,SAAS,CAACO,uBAAW,CAAC,IAAI,EAAE,QAAQ,EAAE;MACpC,cAAc,EAAE,IAAI;MACpB,QAAQ,EAAQ,KAAK;KACxB,CAAC,CAAC,CAAC;GACP;EAEM,oBAAoB;;GAE1B;EAEM,MAAM;IACT,QACIC,QAACC,UAAI,QACA,IAAI,CAAC,MAAM,CACT,EACV;GACJ;;;;;;","names":["popScheduler","from","Observable","isFunction","operate","createOperatorSubscriber","innerFrom","propertyObservable","setProperty","h","Host"],"sources":["node_modules/rxjs/dist/esm/internal/observable/of.js","node_modules/rxjs/dist/esm/internal/util/isObservable.js","node_modules/rxjs/dist/esm/internal/operators/switchMap.js","src/components/async/async.scss?tag=rx-async","src/components/async/async.tsx"],"sourcesContent":["import { popScheduler } from '../util/args';\nimport { from } from './from';\nexport function of(...args) {\n const scheduler = popScheduler(args);\n return from(args, scheduler);\n}\n//# sourceMappingURL=of.js.map","import { Observable } from '../Observable';\nimport { isFunction } from './isFunction';\nexport function isObservable(obj) {\n return !!obj && (obj instanceof Observable || (isFunction(obj.lift) && isFunction(obj.subscribe)));\n}\n//# sourceMappingURL=isObservable.js.map","import { innerFrom } from '../observable/innerFrom';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function switchMap(project, resultSelector) {\n return operate((source, subscriber) => {\n let innerSubscriber = null;\n let index = 0;\n let isComplete = false;\n const checkComplete = () => isComplete && !innerSubscriber && subscriber.complete();\n source.subscribe(createOperatorSubscriber(subscriber, (value) => {\n innerSubscriber === null || innerSubscriber === void 0 ? void 0 : innerSubscriber.unsubscribe();\n let innerIndex = 0;\n const outerIndex = index++;\n innerFrom(project(value, outerIndex)).subscribe((innerSubscriber = createOperatorSubscriber(subscriber, (innerValue) => subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue), () => {\n innerSubscriber = null;\n checkComplete();\n })));\n }, () => {\n isComplete = true;\n checkComplete();\n }));\n });\n}\n//# sourceMappingURL=switchMap.js.map",":host {\n display: inline-block;\n}","import {\n Component,\n ComponentInterface,\n h,\n Host,\n Prop,\n} from '@stencil/core';\nimport {\n from,\n isObservable,\n Observable,\n of,\n switchMap,\n} from 'rxjs';\nimport {\n propertyObservable,\n setProperty,\n} from '../../rx';\n\nexport type AsyncValue = Promise<unknown> | Observable<unknown> | null | undefined;\n\n@Component({\n tag: 'rx-async',\n shadow: false,\n styleUrl: 'async.scss',\n})\nexport class Async implements ComponentInterface {\n\n @Prop()\n public value: AsyncValue = null;\n\n private _value: unknown = null;\n\n public connectedCallback(): void {\n propertyObservable(this, 'value').pipe(\n switchMap((value: AsyncValue): Observable<unknown> => {\n if (isObservable(value)) {\n return value;\n }\n\n if (value instanceof Promise) {\n return from(value);\n }\n\n return of(value);\n }),\n ).subscribe(setProperty(this, '_value', {\n scheduleRender: true,\n nextTick: false,\n }));\n }\n\n public disconnectedCallback(): void {\n // noop\n }\n\n public render(): any {\n return (\n <Host>\n {this._value}\n </Host>\n )\n }\n}"],"version":3}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-5f6f12ab.js');
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
Stencil Client Patch Browser v4.3.0 | MIT Licensed | https://stenciljs.com
|
|
9
|
+
*/
|
|
10
|
+
const patchBrowser = () => {
|
|
11
|
+
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('rx-stencil.cjs.js', document.baseURI).href));
|
|
12
|
+
const opts = {};
|
|
13
|
+
if (importMeta !== '') {
|
|
14
|
+
opts.resourcesUrl = new URL('.', importMeta).href;
|
|
15
|
+
}
|
|
16
|
+
return index.promiseResolve(opts);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
patchBrowser().then(options => {
|
|
20
|
+
return index.bootstrapLazy([["rx-async.cjs",[[0,"rx-async",{"value":[16]}]]]], options);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
exports.setNonce = index.setNonce;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=rx-stencil.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"rx-stencil.cjs.js","mappings":";;;;;;AAAA;AACA;AACA;AAGA,MAAM,YAAY,GAAG,MAAM;AAyB3B,IAAI,MAAM,UAAU,GAAG,4MAAe,CAAC;AACvC,IAAI,MAAM,IAAI,GAAiE,EAAE,CAAC;AAClF,IAAI,IAAI,UAAU,KAAK,EAAE,EAAE;AAC3B,QAAQ,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC;AAC1D,KAAK;AACL,IAAI,OAAOA,oBAAc,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;;AChCD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,IAAI;AAE/B,EAAE,OAAOC,mBAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC;;;;","names":["promiseResolve","bootstrapLazy"],"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.3.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n if (BUILD.profile && !performance.mark) {\n // not all browsers support performance.mark/measure (Safari 10)\n // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist,\n // simply stub the implementations out.\n // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking)\n // @ts-ignore\n performance.mark = performance.measure = () => {\n /*noop*/\n };\n performance.getEntriesByName = () => [];\n }\n // @ts-ignore\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"version":3}
|