@xyd-js/foo 0.1.0-xyd.1 → 0.1.0-xyd.42

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/CHANGELOG.md ADDED
@@ -0,0 +1,254 @@
1
+ # @xyd-js/foo
2
+
3
+ ## 0.1.0-xyd.42
4
+
5
+ ### Patch Changes
6
+
7
+ - update all packages
8
+
9
+ ## 0.1.0-xyd.41
10
+
11
+ ### Patch Changes
12
+
13
+ - update all packages
14
+
15
+ ## 0.1.0-xyd.40
16
+
17
+ ### Patch Changes
18
+
19
+ - update all packages
20
+
21
+ ## 0.1.0-xyd.39
22
+
23
+ ### Patch Changes
24
+
25
+ - update all packages
26
+
27
+ ## 0.1.0-xyd.38
28
+
29
+ ### Patch Changes
30
+
31
+ - update all packages
32
+
33
+ ## 0.1.0-xyd.37
34
+
35
+ ### Patch Changes
36
+
37
+ - update all packages
38
+
39
+ ## 0.1.0-xyd.36
40
+
41
+ ### Patch Changes
42
+
43
+ - update all packages
44
+
45
+ ## 0.1.0-xyd.35
46
+
47
+ ### Patch Changes
48
+
49
+ - update all packages
50
+
51
+ ## 0.1.0-xyd.34
52
+
53
+ ### Patch Changes
54
+
55
+ - update all packages
56
+
57
+ ## 0.1.0-xyd.33
58
+
59
+ ### Patch Changes
60
+
61
+ - update all packages
62
+
63
+ ## 0.1.0-xyd.32
64
+
65
+ ### Patch Changes
66
+
67
+ - update all packages
68
+
69
+ ## 0.1.0-xyd.31
70
+
71
+ ### Patch Changes
72
+
73
+ - update all packages
74
+
75
+ ## 0.1.0-xyd.30
76
+
77
+ ### Patch Changes
78
+
79
+ - update all packages
80
+
81
+ ## 0.1.0-xyd.29
82
+
83
+ ### Patch Changes
84
+
85
+ - update all packages
86
+
87
+ ## 0.1.0-xyd.28
88
+
89
+ ### Patch Changes
90
+
91
+ - update all packages
92
+
93
+ ## 0.1.0-xyd.27
94
+
95
+ ### Patch Changes
96
+
97
+ - update all packages
98
+
99
+ ## 0.1.0-xyd.26
100
+
101
+ ### Patch Changes
102
+
103
+ - update all packages
104
+
105
+ ## 0.1.0-xyd.25
106
+
107
+ ### Patch Changes
108
+
109
+ - update all packages
110
+
111
+ ## 0.1.0-xyd.24
112
+
113
+ ### Patch Changes
114
+
115
+ - update all packages
116
+
117
+ ## 0.1.0-xyd.23
118
+
119
+ ### Patch Changes
120
+
121
+ - update all packages
122
+
123
+ ## 0.1.0-xyd.22
124
+
125
+ ### Patch Changes
126
+
127
+ - update all packages
128
+
129
+ ## 0.1.0-xyd.21
130
+
131
+ ### Patch Changes
132
+
133
+ - update all packages
134
+
135
+ ## 0.1.0-xyd.20
136
+
137
+ ### Patch Changes
138
+
139
+ - update all packages
140
+
141
+ ## 0.1.0-xyd.19
142
+
143
+ ### Patch Changes
144
+
145
+ - update all packages
146
+ - update all packages
147
+
148
+ ## 0.1.0-xyd.18
149
+
150
+ ### Patch Changes
151
+
152
+ - update all packages
153
+
154
+ ## 0.1.0-xyd.17
155
+
156
+ ### Patch Changes
157
+
158
+ - update all packages
159
+ - update all packages
160
+
161
+ ## 0.1.0-xyd.16
162
+
163
+ ### Patch Changes
164
+
165
+ - update all packages
166
+ - update all packages
167
+
168
+ ## 0.1.0-xyd.15
169
+
170
+ ### Patch Changes
171
+
172
+ - update all packages
173
+ - update all packages
174
+
175
+ ## 0.1.0-xyd.14
176
+
177
+ ### Patch Changes
178
+
179
+ - update all packages
180
+ - update all packages
181
+
182
+ ## 0.1.0-xyd.13
183
+
184
+ ### Patch Changes
185
+
186
+ - update all packages
187
+ - update all packages
188
+
189
+ ## 0.1.0-xyd.12
190
+
191
+ ### Patch Changes
192
+
193
+ - update all packages
194
+ - update all packages
195
+
196
+ ## 0.1.0-xyd.11
197
+
198
+ ### Patch Changes
199
+
200
+ - update all packages
201
+
202
+ ## 0.1.0-xyd.10
203
+
204
+ ### Patch Changes
205
+
206
+ - update all packages
207
+
208
+ ## 0.1.0-xyd.9
209
+
210
+ ### Patch Changes
211
+
212
+ - update all packages
213
+
214
+ ## 0.1.0-xyd.8
215
+
216
+ ### Patch Changes
217
+
218
+ - update
219
+
220
+ ## 0.1.0-xyd.7
221
+
222
+ ### Patch Changes
223
+
224
+ - update
225
+
226
+ ## 0.1.0-xyd.6
227
+
228
+ ### Patch Changes
229
+
230
+ - update
231
+
232
+ ## 0.1.0-xyd.5
233
+
234
+ ### Patch Changes
235
+
236
+ - update
237
+
238
+ ## 0.1.0-xyd.4
239
+
240
+ ### Patch Changes
241
+
242
+ - update
243
+
244
+ ## 0.1.0-xyd.3
245
+
246
+ ### Patch Changes
247
+
248
+ - test
249
+
250
+ ## 0.1.0-xyd.2
251
+
252
+ ### Patch Changes
253
+
254
+ - update packages
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 xyd
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.js CHANGED
@@ -1 +1,2 @@
1
1
  var t="test";export{t as test};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../index.ts"],"sourcesContent":["export const test = \"test\""],"names":["test"],"mappings":"AAAO,IAAMA,EAAO"}
package/dist/renderoll.js CHANGED
@@ -1 +1,4 @@
1
- function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function t(){t=function(){return r};var e,r={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},i=u.iterator||"@@iterator",c=u.asyncIterator||"@@asyncIterator",s=u.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,u=Object.create(o.prototype),i=new $(n||[]);return a(u,"_invoke",{value:R(e,r,i)}),u}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=f;var d="suspendedStart",y="suspendedYield",h="executing",v="completed",m={};function g(){}function b(){}function _(){}var w={};l(w,i,(function(){return this}));var S=Object.getPrototypeOf,E=S&&S(S(L([])));E&&E!==n&&o.call(E,i)&&(w=E);var k=_.prototype=g.prototype=Object.create(w);function O(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(n,a,u,i){var c=p(e[n],e,a);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&o.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,u,i)}),(function(e){r("throw",e,u,i)})):t.resolve(l).then((function(e){s.value=e,u(s)}),(function(e){return r("throw",e,u,i)}))}i(c.arg)}var n;a(this,"_invoke",{value:function(e,o){function a(){return new t((function(t,n){r(e,o,t,n)}))}return n=n?n.then(a,a):a()}})}function R(t,r,n){var o=d;return function(a,u){if(o===h)throw Error("Generator is already running");if(o===v){if("throw"===a)throw u;return{value:e,done:!0}}for(n.method=a,n.arg=u;;){var i=n.delegate;if(i){var c=x(i,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var s=p(t,r,n);if("normal"===s.type){if(o=n.done?v:y,s.arg===m)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=v,n.method="throw",n.arg=s.arg)}}}function x(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=p(o,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var u=a.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function $(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function L(t){if(t||""===t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function r(){for(;++n<t.length;)if(o.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(typeof t+" is not iterable")}return b.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:b,configurable:!0}),b.displayName=l(_,s,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,l(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},r.awrap=function(e){return{__await:e}},O(C.prototype),l(C.prototype,c,(function(){return this})),r.AsyncIterator=C,r.async=function(e,t,n,o,a){void 0===a&&(a=Promise);var u=new C(f(e,t,n,o),a);return r.isGeneratorFunction(t)?u:u.next().then((function(e){return e.done?e.value:u.next()}))},O(k),l(k,s,"Generator"),l(k,i,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=L,$.prototype={constructor:$,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return i.type="throw",i.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var u=this.tryEntries[a],i=u.completion;if("root"===u.tryLoc)return n("end");if(u.tryLoc<=this.prev){var c=o.call(u,"catchLoc"),s=o.call(u,"finallyLoc");if(c&&s){if(this.prev<u.catchLoc)return n(u.catchLoc,!0);if(this.prev<u.finallyLoc)return n(u.finallyLoc)}else if(c){if(this.prev<u.catchLoc)return n(u.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return n(u.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var u=a?a.completion:{};return u.type=e,u.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(u)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:L(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},r}function r(t,r){return function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,u,i=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,0===t);else for(;!(c=(n=a.call(r)).done)&&(i.push(n.value),i.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(s)throw o}}return i}}(t,r)||function(t,r){if(t){if("string"==typeof t)return e(t,r);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t,r,n){return new(r||(r=Promise))((function(o,a){function u(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(u,i)}c((n=n.apply(e,t||[])).next())}))}function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}"function"==typeof SuppressedError&&SuppressedError;var u,i={exports:{}},c={};function s(){if(u)return c;u=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),y=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,m={};function g(e,t,r){this.props=e,this.context=t,this.refs=m,this.updater=r||h}function b(){}function _(e,t,r){this.props=e,this.context=t,this.refs=m,this.updater=r||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==n(e)&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=g.prototype;var w=_.prototype=new b;w.constructor=_,v(w,g.prototype),w.isPureReactComponent=!0;var S=Array.isArray,E=Object.prototype.hasOwnProperty,k={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function C(t,r,n){var o,a={},u=null,i=null;if(null!=r)for(o in void 0!==r.ref&&(i=r.ref),void 0!==r.key&&(u=""+r.key),r)E.call(r,o)&&!O.hasOwnProperty(o)&&(a[o]=r[o]);var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){for(var s=Array(c),l=0;l<c;l++)s[l]=arguments[l+2];a.children=s}if(t&&t.defaultProps)for(o in c=t.defaultProps)void 0===a[o]&&(a[o]=c[o]);return{$$typeof:e,type:t,key:u,ref:i,props:a,_owner:k.current}}function R(t){return"object"===n(t)&&null!==t&&t.$$typeof===e}var x=/\/+/g;function j(e,t){return"object"===n(e)&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(r,o,a,u,i){var c=n(r);"undefined"!==c&&"boolean"!==c||(r=null);var s=!1;if(null===r)s=!0;else switch(c){case"string":case"number":s=!0;break;case"object":switch(r.$$typeof){case e:case t:s=!0}}if(s)return i=i(s=r),r=""===u?"."+j(s,0):u,S(i)?(a="",null!=r&&(a=r.replace(x,"$&/")+"/"),P(i,o,a,"",(function(e){return e}))):null!=i&&(R(i)&&(i=function(t,r){return{$$typeof:e,type:t.type,key:r,ref:t.ref,props:t.props,_owner:t._owner}}(i,a+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(x,"$&/")+"/")+r)),o.push(i)),1;if(s=0,u=""===u?".":u+":",S(r))for(var l=0;l<r.length;l++){var f=u+j(c=r[l],l);s+=P(c,o,a,f,i)}else if(f=function(e){return null===e||"object"!==n(e)?null:"function"==typeof(e=y&&e[y]||e["@@iterator"])?e:null}(r),"function"==typeof f)for(r=f.call(r),l=0;!(c=r.next()).done;)s+=P(c=c.value,o,a,f=u+j(c,l++),i);else if("object"===c)throw o=String(r),Error("Objects are not valid as a React child (found: "+("[object Object]"===o?"object with keys {"+Object.keys(r).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.");return s}function $(e,t,r){if(null==e)return e;var n=[],o=0;return P(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function L(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var T={current:null},I={transition:null},N={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:I,ReactCurrentOwner:k};function D(){throw Error("act(...) is not supported in production builds of React.")}return c.Children={map:$,forEach:function(e,t,r){$(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return $(e,(function(){t++})),t},toArray:function(e){return $(e,(function(e){return e}))||[]},only:function(e){if(!R(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},c.Component=g,c.Fragment=r,c.Profiler=a,c.PureComponent=_,c.StrictMode=o,c.Suspense=f,c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,c.act=D,c.cloneElement=function(t,r,n){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=v({},t.props),a=t.key,u=t.ref,i=t._owner;if(null!=r){if(void 0!==r.ref&&(u=r.ref,i=k.current),void 0!==r.key&&(a=""+r.key),t.type&&t.type.defaultProps)var c=t.type.defaultProps;for(s in r)E.call(r,s)&&!O.hasOwnProperty(s)&&(o[s]=void 0===r[s]&&void 0!==c?c[s]:r[s])}var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){c=Array(s);for(var l=0;l<s;l++)c[l]=arguments[l+2];o.children=c}return{$$typeof:e,type:t.type,key:a,ref:u,props:o,_owner:i}},c.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},c.createElement=C,c.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},c.createRef=function(){return{current:null}},c.forwardRef=function(e){return{$$typeof:l,render:e}},c.isValidElement=R,c.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:L}},c.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},c.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},c.unstable_act=D,c.useCallback=function(e,t){return T.current.useCallback(e,t)},c.useContext=function(e){return T.current.useContext(e)},c.useDebugValue=function(){},c.useDeferredValue=function(e){return T.current.useDeferredValue(e)},c.useEffect=function(e,t){return T.current.useEffect(e,t)},c.useId=function(){return T.current.useId()},c.useImperativeHandle=function(e,t,r){return T.current.useImperativeHandle(e,t,r)},c.useInsertionEffect=function(e,t){return T.current.useInsertionEffect(e,t)},c.useLayoutEffect=function(e,t){return T.current.useLayoutEffect(e,t)},c.useMemo=function(e,t){return T.current.useMemo(e,t)},c.useReducer=function(e,t,r){return T.current.useReducer(e,t,r)},c.useRef=function(e){return T.current.useRef(e)},c.useState=function(e){return T.current.useState(e)},c.useSyncExternalStore=function(e,t,r){return T.current.useSyncExternalStore(e,t,r)},c.useTransition=function(){return T.current.useTransition()},c.version="18.3.1",c}var l,f,p={exports:{}};function d(){return l||(l=1,e=p,t=p.exports,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),v=Symbol.iterator;function m(e){if(null===e||"object"!==n(e))return null;var t=v&&e[v]||e["@@iterator"];return"function"==typeof t?t:null}var g={current:null},b={transition:null},_={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},w={current:null},S={},E=null;function k(e){E=e}S.setExtraStackFrame=function(e){E=e},S.getCurrentStack=null,S.getStackAddendum=function(){var e="";E&&(e+=E);var t=S.getCurrentStack;return t&&(e+=t()||""),e};var O={ReactCurrentDispatcher:g,ReactCurrentBatchConfig:b,ReactCurrentOwner:w};function C(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];x("warn",e,r)}function R(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];x("error",e,r)}function x(e,t,r){var n=O.ReactDebugCurrentFrame.getStackAddendum();""!==n&&(t+="%s",r=r.concat([n]));var o=r.map((function(e){return String(e)}));o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}O.ReactDebugCurrentFrame=S,O.ReactCurrentActQueue=_;var j={};function P(e,t){var r=e.constructor,n=r&&(r.displayName||r.name)||"ReactClass",o=n+"."+t;j[o]||(R("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,n),j[o]=!0)}var $={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,r){P(e,"forceUpdate")},enqueueReplaceState:function(e,t,r,n){P(e,"replaceState")},enqueueSetState:function(e,t,r,n){P(e,"setState")}},L=Object.assign,T={};function I(e,t,r){this.props=e,this.context=t,this.refs=T,this.updater=r||$}Object.freeze(T),I.prototype.isReactComponent={},I.prototype.setState=function(e,t){if("object"!==n(e)&&"function"!=typeof e&&null!=e)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},I.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var N={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},D=function(e,t){Object.defineProperty(I.prototype,e,{get:function(){C("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var A in N)N.hasOwnProperty(A)&&D(A,N[A]);function F(){}function M(e,t,r){this.props=e,this.context=t,this.refs=T,this.updater=r||$}F.prototype=I.prototype;var V=M.prototype=new F;V.constructor=M,L(V,I.prototype),V.isPureReactComponent=!0;var U=Array.isArray;function z(e){return U(e)}function q(e){return""+e}function B(e){if(function(e){try{return q(e),!1}catch(e){return!0}}(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),q(e)}function Y(e){return e.displayName||"Context"}function G(e){if(null==e)return null;if("number"==typeof e.tag&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case a:return"Fragment";case o:return"Portal";case i:return"Profiler";case u:return"StrictMode";case f:return"Suspense";case p:return"SuspenseList"}if("object"===n(e))switch(e.$$typeof){case s:return Y(e)+".Consumer";case c:return Y(e._context)+".Provider";case l:return function(e,t,r){var n=e.displayName;if(n)return n;var o=t.displayName||t.name||"";return""!==o?r+"("+o+")":r}(e,e.render,"ForwardRef");case d:var t=e.displayName||null;return null!==t?t:G(e.type)||"Memo";case y:var r=e,h=r._payload,v=r._init;try{return G(v(h))}catch(e){return null}}return null}var H,W,K,J=Object.prototype.hasOwnProperty,X={key:!0,ref:!0,__self:!0,__source:!0};function Q(e){if(J.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function Z(e){if(J.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}K={};var ee=function(e,t,n,o,a,u,i){var c={$$typeof:r,type:e,key:t,ref:n,props:i,_owner:u,_store:{}};return Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function te(e,t,r){var n,o={},a=null,u=null,i=null,c=null;if(null!=t)for(n in Q(t)&&(u=t.ref,function(e){if("string"==typeof e.ref&&w.current&&e.__self&&w.current.stateNode!==e.__self){var t=G(w.current.type);K[t]||(R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',t,e.ref),K[t]=!0)}}(t)),Z(t)&&(B(t.key),a=""+t.key),i=void 0===t.__self?null:t.__self,c=void 0===t.__source?null:t.__source,t)J.call(t,n)&&!X.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(1===s)o.children=r;else if(s>1){for(var l=Array(s),f=0;f<s;f++)l[f]=arguments[f+2];Object.freeze&&Object.freeze(l),o.children=l}if(e&&e.defaultProps){var p=e.defaultProps;for(n in p)void 0===o[n]&&(o[n]=p[n])}if(a||u){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;a&&function(e,t){var r=function(){H||(H=!0,R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(o,d),u&&function(e,t){var r=function(){W||(W=!0,R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}(o,d)}return ee(e,a,u,i,c,w.current,o)}function re(e,t,r){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n,o,a=L({},e.props),u=e.key,i=e.ref,c=e._self,s=e._source,l=e._owner;if(null!=t)for(n in Q(t)&&(i=t.ref,l=w.current),Z(t)&&(B(t.key),u=""+t.key),e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)J.call(t,n)&&!X.hasOwnProperty(n)&&(void 0===t[n]&&void 0!==o?a[n]=o[n]:a[n]=t[n]);var f=arguments.length-2;if(1===f)a.children=r;else if(f>1){for(var p=Array(f),d=0;d<f;d++)p[d]=arguments[d+2];a.children=p}return ee(e.type,u,i,c,s,l,a)}function ne(e){return"object"===n(e)&&null!==e&&e.$$typeof===r}var oe,ae=!1,ue=/\/+/g;function ie(e){return e.replace(ue,"$&/")}function ce(e,t){return"object"===n(e)&&null!==e&&null!=e.key?(B(e.key),r=""+e.key,o={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,(function(e){return o[e]}))):t.toString(36);var r,o}function se(e,t,a,u,i){var c=n(e);"undefined"!==c&&"boolean"!==c||(e=null);var s,l,f,p=!1;if(null===e)p=!0;else switch(c){case"string":case"number":p=!0;break;case"object":switch(e.$$typeof){case r:case o:p=!0}}if(p){var d=e,y=i(d),h=""===u?"."+ce(d,0):u;if(z(y)){var v="";null!=h&&(v=ie(h)+"/"),se(y,t,v,"",(function(e){return e}))}else null!=y&&(ne(y)&&(!y.key||d&&d.key===y.key||B(y.key),s=y,l=a+(!y.key||d&&d.key===y.key?"":ie(""+y.key)+"/")+h,y=ee(s.type,l,s.ref,s._self,s._source,s._owner,s.props)),t.push(y));return 1}var g=0,b=""===u?".":u+":";if(z(e))for(var _=0;_<e.length;_++)g+=se(f=e[_],t,a,b+ce(f,_),i);else{var w=m(e);if("function"==typeof w){var S=e;w===S.entries&&(ae||C("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ae=!0);for(var E,k=w.call(S),O=0;!(E=k.next()).done;)g+=se(f=E.value,t,a,b+ce(f,O++),i)}else if("object"===c){var R=String(e);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===R?"object with keys {"+Object.keys(e).join(", ")+"}":R)+"). If you meant to render a collection of children, use an array instead.")}}return g}function le(e,t,r){if(null==e)return e;var n=[],o=0;return se(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function fe(e){if(-1===e._status){var t=(0,e._result)();if(t.then((function(t){if(0===e._status||-1===e._status){var r=e;r._status=1,r._result=t}}),(function(t){if(0===e._status||-1===e._status){var r=e;r._status=2,r._result=t}})),-1===e._status){var r=e;r._status=0,r._result=t}}if(1===e._status){var n=e._result;return void 0===n&&R("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",n),"default"in n||R("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",n),n.default}throw e._result}function pe(e){return"string"==typeof e||"function"==typeof e||e===a||e===i||e===u||e===f||e===p||e===h||"object"===n(e)&&null!==e&&(e.$$typeof===y||e.$$typeof===d||e.$$typeof===c||e.$$typeof===s||e.$$typeof===l||e.$$typeof===oe||void 0!==e.getModuleId)}function de(){var e=g.current;return null===e&&R("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}oe=Symbol.for("react.module.reference");var ye,he,ve,me,ge,be,_e,we=0;function Se(){}Se.__reactDisabledLog=!0;var Ee,ke=O.ReactCurrentDispatcher;function Oe(e,t,r){if(void 0===Ee)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);Ee=n&&n[1]||""}return"\n"+Ee+e}var Ce,Re=!1,xe="function"==typeof WeakMap?WeakMap:Map;function je(e,t){if(!e||Re)return"";var r,o=Ce.get(e);if(void 0!==o)return o;Re=!0;var a,u=Error.prepareStackTrace;Error.prepareStackTrace=void 0,a=ke.current,ke.current=null,function(){if(0===we){ye=console.log,he=console.info,ve=console.warn,me=console.error,ge=console.group,be=console.groupCollapsed,_e=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Se,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}we++}();try{if(t){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),"object"===("undefined"==typeof Reflect?"undefined":n(Reflect))&&Reflect.construct){try{Reflect.construct(i,[])}catch(e){r=e}Reflect.construct(e,[],i)}else{try{i.call()}catch(e){r=e}e.call(i.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var c=t.stack.split("\n"),s=r.stack.split("\n"),l=c.length-1,f=s.length-1;l>=1&&f>=0&&c[l]!==s[f];)f--;for(;l>=1&&f>=0;l--,f--)if(c[l]!==s[f]){if(1!==l||1!==f)do{if(l--,--f<0||c[l]!==s[f]){var p="\n"+c[l].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),"function"==typeof e&&Ce.set(e,p),p}}while(l>=1&&f>=0);break}}}finally{Re=!1,ke.current=a,function(){if(0==--we){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},e,{value:ye}),info:L({},e,{value:he}),warn:L({},e,{value:ve}),error:L({},e,{value:me}),group:L({},e,{value:ge}),groupCollapsed:L({},e,{value:be}),groupEnd:L({},e,{value:_e})})}we<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=u}var d=e?e.displayName||e.name:"",y=d?Oe(d):"";return"function"==typeof e&&Ce.set(e,y),y}function Pe(e,t,r){if(null==e)return"";if("function"==typeof e)return je(e,function(e){var t=e.prototype;return!(!t||!t.isReactComponent)}(e));if("string"==typeof e)return Oe(e);switch(e){case f:return Oe("Suspense");case p:return Oe("SuspenseList")}if("object"===n(e))switch(e.$$typeof){case l:return je(e.render,!1);case d:return Pe(e.type,t,r);case y:var o=e,a=o._payload,u=o._init;try{return Pe(u(a),t,r)}catch(e){}}return""}Ce=new xe;var $e,Le={},Te=O.ReactDebugCurrentFrame;function Ie(e){if(e){var t=e._owner,r=Pe(e.type,e._source,t?t.type:null);Te.setExtraStackFrame(r)}else Te.setExtraStackFrame(null)}function Ne(e){if(e){var t=e._owner;k(Pe(e.type,e._source,t?t.type:null))}else k(null)}function De(){if(w.current){var e=G(w.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}$e=!1;var Ae={};function Fe(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=De();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!Ae[r]){Ae[r]=!0;var n="";e&&e._owner&&e._owner!==w.current&&(n=" It was passed a child from "+G(e._owner.type)+"."),Ne(e),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),Ne(null)}}}function Me(e,t){if("object"===n(e))if(z(e))for(var r=0;r<e.length;r++){var o=e[r];ne(o)&&Fe(o,t)}else if(ne(e))e._store&&(e._store.validated=!0);else if(e){var a=m(e);if("function"==typeof a&&a!==e.entries)for(var u,i=a.call(e);!(u=i.next()).done;)ne(u.value)&&Fe(u.value,t)}}function Ve(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!==n(r)||r.$$typeof!==l&&r.$$typeof!==d)return;t=r.propTypes}if(t){var o=G(r);!function(e,t,r,o,a){var u=Function.call.bind(J);for(var i in e)if(u(e,i)){var c=void 0;try{if("function"!=typeof e[i]){var s=Error((o||"React class")+": "+r+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+n(e[i])+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}c=e[i](t,i,o,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){c=e}!c||c instanceof Error||(Ie(a),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",o||"React class",r,i,n(c)),Ie(null)),c instanceof Error&&!(c.message in Le)&&(Le[c.message]=!0,Ie(a),R("Failed %s type: %s",r,c.message),Ie(null))}}(t,e.props,"prop",o,e)}else void 0===r.PropTypes||$e||($e=!0,R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",G(r)||"Unknown"));"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ue(e,t,o){var u,i,c=pe(e);if(!c){var s="";(void 0===e||"object"===n(e)&&null!==e&&0===Object.keys(e).length)&&(s+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var l,f=null!=(u=t)&&void 0!==(i=u.__source)?"\n\nCheck your code at "+i.fileName.replace(/^.*[\\\/]/,"")+":"+i.lineNumber+".":"";s+=f||De(),null===e?l="null":z(e)?l="array":void 0!==e&&e.$$typeof===r?(l="<"+(G(e.type)||"Unknown")+" />",s=" Did you accidentally export a JSX literal instead of a component?"):l=n(e),R("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",l,s)}var p=te.apply(this,arguments);if(null==p)return p;if(c)for(var d=2;d<arguments.length;d++)Me(arguments[d],e);return e===a?function(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){Ne(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),Ne(null);break}}null!==e.ref&&(Ne(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),Ne(null))}(p):Ve(p),p}var ze=!1,qe=!1,Be=null,Ye=0,Ge=!1;function He(e){var t=Ye;Ye++,null===_.current&&(_.current=[]);var r,o=_.isBatchingLegacy;try{if(_.isBatchingLegacy=!0,r=e(),!o&&_.didScheduleLegacyUpdate){var a=_.current;null!==a&&(_.didScheduleLegacyUpdate=!1,Xe(a))}}catch(e){throw We(t),e}finally{_.isBatchingLegacy=o}if(null!==r&&"object"===n(r)&&"function"==typeof r.then){var u=r,i=!1,c={then:function(e,r){i=!0,u.then((function(n){We(t),0===Ye?Ke(n,e,r):e(n)}),(function(e){We(t),r(e)}))}};return Ge||"undefined"==typeof Promise||Promise.resolve().then((function(){})).then((function(){i||(Ge=!0,R("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))})),c}var s=r;if(We(t),0===Ye){var l=_.current;return null!==l&&(Xe(l),_.current=null),{then:function(e,t){null===_.current?(_.current=[],Ke(s,e,t)):e(s)}}}return{then:function(e,t){e(s)}}}function We(e){e!==Ye-1&&R("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ye=e}function Ke(t,r,n){var o=_.current;if(null!==o)try{Xe(o),function(t){if(null===Be)try{var r=("require"+Math.random()).slice(0,7);Be=(e&&e[r]).call(e,"timers").setImmediate}catch(e){Be=function(e){!1===qe&&(qe=!0,"undefined"==typeof MessageChannel&&R("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}Be(t)}((function(){0===o.length?(_.current=null,r(t)):Ke(t,r,n)}))}catch(e){n(e)}else r(t)}var Je=!1;function Xe(e){if(!Je){Je=!0;var t=0;try{for(;t<e.length;t++){var r=e[t];do{r=r(!0)}while(null!==r)}e.length=0}catch(r){throw e=e.slice(t+1),r}finally{Je=!1}}}var Qe=Ue,Ze=function(e,t,r){for(var n=re.apply(this,arguments),o=2;o<arguments.length;o++)Me(arguments[o],n.type);return Ve(n),n},et=function(e){var t=Ue.bind(null,e);return t.type=e,ze||(ze=!0,C("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(t,"type",{enumerable:!1,get:function(){return C("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},tt={map:le,forEach:function(e,t,r){le(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return le(e,(function(){t++})),t},toArray:function(e){return le(e,(function(e){return e}))||[]},only:function(e){if(!ne(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=tt,t.Component=I,t.Fragment=a,t.Profiler=i,t.PureComponent=M,t.StrictMode=u,t.Suspense=f,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,t.act=He,t.cloneElement=Ze,t.createContext=function(e){var t={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:c,_context:t};var r=!1,n=!1,o=!1,a={$$typeof:s,_context:t};return Object.defineProperties(a,{Provider:{get:function(){return n||(n=!0,R("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return r||(r=!0,R("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){o||(C("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),o=!0)}}}),t.Consumer=a,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=Qe,t.createFactory=et,t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===d?R("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?R("forwardRef requires a render function but was given %s.",null===e?"null":n(e)):0!==e.length&&2!==e.length&&R("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||R("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,r={$$typeof:l,render:e};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(r){t=r,e.name||e.displayName||(e.displayName=r)}}),r},t.isValidElement=ne,t.lazy=function(e){var t,r,n={$$typeof:y,_payload:{_status:-1,_result:e},_init:fe};return Object.defineProperties(n,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){R("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),t=e,Object.defineProperty(n,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return r},set:function(e){R("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),r=e,Object.defineProperty(n,"propTypes",{enumerable:!0})}}}),n},t.memo=function(e,t){pe(e)||R("memo: The first argument must be a component. Instead received: %s",null===e?"null":n(e));var r,o={$$typeof:d,type:e,compare:void 0===t?null:t};return Object.defineProperty(o,"displayName",{enumerable:!1,configurable:!0,get:function(){return r},set:function(t){r=t,e.name||e.displayName||(e.displayName=t)}}),o},t.startTransition=function(e,t){var r=b.transition;b.transition={};var n=b.transition;b.transition._updatedFibers=new Set;try{e()}finally{b.transition=r,null===r&&n._updatedFibers&&(n._updatedFibers.size>10&&C("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),n._updatedFibers.clear())}},t.unstable_act=He,t.useCallback=function(e,t){return de().useCallback(e,t)},t.useContext=function(e){var t=de();if(void 0!==e._context){var r=e._context;r.Consumer===e?R("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):r.Provider===e&&R("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},t.useDebugValue=function(e,t){return de().useDebugValue(e,t)},t.useDeferredValue=function(e){return de().useDeferredValue(e)},t.useEffect=function(e,t){return de().useEffect(e,t)},t.useId=function(){return de().useId()},t.useImperativeHandle=function(e,t,r){return de().useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return de().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return de().useLayoutEffect(e,t)},t.useMemo=function(e,t){return de().useMemo(e,t)},t.useReducer=function(e,t,r){return de().useReducer(e,t,r)},t.useRef=function(e){return de().useRef(e)},t.useState=function(e){return de().useState(e)},t.useSyncExternalStore=function(e,t,r){return de().useSyncExternalStore(e,t,r)},t.useTransition=function(){return de().useTransition()},t.version="18.3.1","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),p.exports;var e,t}var y=(f||(f=1,"production"===process.env.NODE_ENV?i.exports=s():i.exports=d()),i.exports),h=a(y),v={host:"h14x5hdg"},m={host:"h1mxi4b9"},g={host:"h1blppic",host$$active:"h1hhdaqt"};function b(e,n){var a=r(y.useState(!1),2),u=a[0],i=a[1],c=r(y.useState(!1),2),s=c[0],l=c[1];y.useEffect((function(){l(!0)}),[]);var f=function(e,n){var a=this;return y.lazy((function(){return o(a,void 0,void 0,t().mark((function o(){var a,u,i,c;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e();case 2:return a=t.sent,u=r(a,2),i=u[0],c=u[1],t.abrupt("return",{default:function(e){var t,o=e.children,a=r(y.useState(0),2),u=a[0],s=a[1],l=y.useRef(null),f=y.useContext(_).onFinish;function p(){s(u+1)}y.useEffect((function(){var e=S();if(e)return function(){e.disconnect()}}),[]),y.useEffect((function(){var e,t;(null==l?void 0:l.current)&&(null===(t=null==l?void 0:(e=l.current).scrollIntoView)||void 0===t||t.call(e),f())}),[l]);var d=!!u,v=h.createElement(h.Fragment,null,h.createElement(i,{onLoaded:p}),h.createElement("div",{ref:l},o),h.createElement(c,{onLoaded:p})),m=(null==n?void 0:n.decorator)?null===(t=null==n?void 0:n.decorator)||void 0===t?void 0:t.call(n,{children:v}):v;return h.createElement("div",{className:"\n ".concat(g.host,"\n ").concat(d&&g.host$$active,"\n ")},m)}});case 7:case"end":return t.stop()}}),o)})))}))}(e,n);return function(e){var t=e.children;return h.createElement(_.Provider,{value:{onFinish:function(){u||i(!0)}}},!u&&h.createElement("div",{className:s?m.host:""},t),!u&&h.createElement(w,null),h.createElement(y.Suspense,{fallback:h.createElement(w,null)},h.createElement(f,null,t)))}}var _=y.createContext({onFinish:function(){}});function w(){return h.createElement("div",{className:v.host})}function S(){var e=document.querySelectorAll("[data-slug]");if(e.length){var t=new IntersectionObserver((function(e){e.forEach((function(e){if(e.isIntersecting){var t=e.target.getAttribute("data-slug");window.history.pushState(null,"","".concat(t));var r=new CustomEvent("xyd.history.pushState",{detail:{url:t}});window.dispatchEvent(r)}}))}),{threshold:.3});return e.forEach((function(e){return t.observe(e)})),t}console.warn("No elements with [data-slug] found.")}export{b as renderoll};
1
+ import t,{useState as n,useEffect as e,createContext as r,Suspense as o,lazy as i,useRef as a,useContext as c}from"react";function u(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}function l(){
2
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
3
+ var t,n,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",o=e.toStringTag||"@@toStringTag";function i(e,r,o,i){var u=r&&r.prototype instanceof c?r:c,l=Object.create(u.prototype);return f(l,"_invoke",function(e,r,o){var i,c,u,l=0,f=o||[],s=!1,v={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(n,e){return i=n,c=0,u=t,v.n=e,a}};function d(e,r){for(c=e,u=r,n=0;!s&&l&&!o&&n<f.length;n++){var o,i=f[n],d=v.p,h=i[2];e>3?(o=h===r)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=t):i[0]<=d&&((o=e<2&&d<i[1])?(c=0,v.v=r,v.n=i[1]):d<h&&(o=e<3||i[0]>r||r>h)&&(i[4]=e,i[5]=r,v.n=h,c=0))}if(o||e>1)return a;throw s=!0,r}return function(o,f,h){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&d(f,h),c=f,u=h;(n=c<2?t:u)||!s;){i||(c?c<3?(c>1&&(v.n=-1),d(c,u)):v.n=u:v.v=u);try{if(l=2,i){if(c||(o="next"),n=i[o]){if(!(n=n.call(i,u)))throw TypeError("iterator result is not an object");if(!n.done)return n;u=n.value,c<2&&(c=0)}else 1===c&&(n=i.return)&&n.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=t}else if((n=(s=v.n<0)?u:e.call(r,v))!==a)break}catch(n){i=t,c=1,u=n}finally{l=1}}return{value:n,done:s}}}(e,o,i),!0),l}var a={};function c(){}function u(){}function s(){}n=Object.getPrototypeOf;var v=[][r]?n(n([][r]())):(f(n={},r,function(){return this}),n),d=s.prototype=c.prototype=Object.create(v);function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,f(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return u.prototype=s,f(d,"constructor",s),f(s,"constructor",u),u.displayName="GeneratorFunction",f(s,o,"GeneratorFunction"),f(d),f(d,o,"Generator"),f(d,r,function(){return this}),f(d,"toString",function(){return"[object Generator]"}),(l=function(){return{w:i,m:h}})()}function f(t,n,e,r){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}f=function(t,n,e,r){if(n)o?o(t,n,{value:e,enumerable:!r,configurable:!r,writable:!r}):t[n]=e;else{function i(n,e){f(t,n,function(t){return this._invoke(n,e,t)})}i("next",0),i("throw",1),i("return",2)}},f(t,n,e,r)}function s(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i,a,c=[],u=!0,l=!1;try{if(i=(e=e.call(t)).next,0===n);else for(;!(u=(r=i.call(e)).done)&&(c.push(r.value),c.length!==n);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,n)||function(t,n){if(t){if("string"==typeof t)return u(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?u(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,n,e,r){return new(e||(e=Promise))(function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e(function(t){t(n)})).then(a,c)}u((r=r.apply(t,n||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;var d={host:"h14x5hdg"},h={host:"h1mxi4b9"},p={host:"h1blppic",host$$active:"h1hhdaqt"};function y(r,u){var f=s(n(!1),2),d=f[0],y=f[1],w=s(n(!1),2),E=w[0],S=w[1];e(function(){S(!0)},[]);var O=function(r,o){var u=this;return i(function(){return v(u,void 0,void 0,l().m(function i(){var u,f,v,d;return l().w(function(i){for(;;)switch(i.n){case 0:return i.n=1,r();case 1:return u=i.v,f=s(u,2),v=f[0],d=f[1],i.a(2,{default:function(r){var i,u=r.children,l=s(n(0),2),f=l[0],h=l[1],y=a(null),b=c(m).onFinish;function w(){h(f+1)}e(function(){var t=g();if(t)return function(){t.disconnect()}},[]),e(function(){var t,n;(null==y?void 0:y.current)&&(null===(n=null==y?void 0:(t=y.current).scrollIntoView)||void 0===n||n.call(t),b())},[y]);var E=!!f,S=t.createElement(t.Fragment,null,t.createElement(v,{onLoaded:w}),t.createElement("div",{ref:y},u),t.createElement(d,{onLoaded:w})),O=(null==o?void 0:o.decorator)?null===(i=null==o?void 0:o.decorator)||void 0===i?void 0:i.call(o,{children:S}):S;return t.createElement("div",{className:"\n ".concat(p.host,"\n ").concat(E&&p.host$$active,"\n ")},O)}})}},i)}))})}(r,u);return function(n){var e=n.children;return t.createElement(m.Provider,{value:{onFinish:function(){d||y(!0)}}},!d&&t.createElement("div",{className:E?h.host:""},e),!d&&t.createElement(b,null),t.createElement(o,{fallback:t.createElement(b,null)},t.createElement(O,null,e)))}}var m=r({onFinish:function(){}});function b(){return t.createElement("div",{className:d.host})}function g(){var t=document.querySelectorAll("[data-slug]");if(t.length){var n=new IntersectionObserver(function(t){t.forEach(function(t){if(t.isIntersecting){var n=t.target.getAttribute("data-slug");window.history.pushState(null,"","".concat(n));var e=new CustomEvent("xyd.history.pushState",{detail:{url:n}});window.dispatchEvent(e)}})},{threshold:.3});return t.forEach(function(t){return n.observe(t)}),n}console.warn("No elements with [data-slug] found.")}export{y as renderoll};
4
+ //# sourceMappingURL=renderoll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderoll.js","sources":["../../../node_modules/.pnpm/@rollup+plugin-typescript@12.1.3_rollup@4.44.1_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js","../packages/renderoll/renderoll.tsx"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nvar ownKeys = function(o) {\r\n ownKeys = Object.getOwnPropertyNames || function (o) {\r\n var ar = [];\r\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\r\n return ar;\r\n };\r\n return ownKeys(o);\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\r\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\r\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\r\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\r\n });\r\n }\r\n return path;\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __esDecorate: __esDecorate,\r\n __runInitializers: __runInitializers,\r\n __propKey: __propKey,\r\n __setFunctionName: __setFunctionName,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,\r\n};\r\n","import React, {createContext, lazy, useContext, useEffect, useRef, useState, Suspense} from \"react\";\nimport type {RefObject} from \"react\";\nimport {css} from \"@linaria/core\";\n\nconst styles = {\n loader: {\n host: css`\n z-index: 999999;\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n\n background: white; // TODO: customization\n `\n },\n serveComponent: {\n host: css`\n opacity: 0;\n position: absolute;\n height: 100%;\n z-index: 999999;\n `\n },\n content: {\n host: css`\n opacity: 0;\n transition: opacity 0.3s;\n `,\n host$$active: css`\n opacity: 1;\n `\n }\n}\n\nexport interface RenderollOptions {\n decorator?: (props: { children: React.ReactNode }) => React.ReactNode\n}\n\nexport function renderoll(\n async: () => Promise<any>,\n options?: RenderollOptions\n) {\n const [once, setOnce] = useState(false)\n const [inited, setInited] = useState(false)\n\n useEffect(() => {\n setInited(true)\n }, []);\n\n const $RenderLazyComponent = $Lazy(async, options)\n\n return ({children}) => {\n return <$LazyContext.Provider value={{\n onFinish: () => {\n if (once) {\n return\n }\n setOnce(true)\n }\n }}>\n {\n !once && <div className={inited ? styles.serveComponent.host : \"\"}>\n {children}\n </div>\n }\n\n {!once && <$Loader/>}\n\n <Suspense fallback={<$Loader/>}>\n <$RenderLazyComponent>\n {children}\n </$RenderLazyComponent>\n </Suspense>\n </$LazyContext.Provider>\n }\n}\n\n// TODO: better api for `onFinish` because this does not match pixel perferct server component\nconst $LazyContext = createContext({\n onFinish: () => {\n }\n})\n\nfunction $Loader() {\n return <div className={styles.loader.host}/>\n}\n\n// TODO: in the future different method than data-slug\n// custom observer logic instead not pixel perfect threshold\nfunction historyPushStateScroller() {\n const elements = document.querySelectorAll('[data-slug]');\n\n if (!elements.length) {\n console.warn(\"No elements with [data-slug] found.\");\n return;\n }\n\n const observer = new IntersectionObserver((entries) => {\n entries.forEach(entry => {\n if (!entry.isIntersecting) {\n return\n }\n\n const slug = entry.target.getAttribute(\"data-slug\");\n\n window.history.pushState(null, \"\", `${slug}`);\n\n const event = new CustomEvent(\"xyd.history.pushState\", {\n detail: {\n url: slug,\n }\n });\n window.dispatchEvent(event);\n });\n }, {threshold: 0.3});\n\n elements.forEach(element => observer.observe(element));\n\n return observer\n}\n\nfunction $Lazy(\n async: () => Promise<any>,\n options?: RenderollOptions\n) {\n return lazy(async () => {\n const [Prev, Next] = await async()\n\n return {\n default: ({children}) => {\n const [count, setCount] = useState(0)\n const serverContent = useRef<Element>(null);\n const {onFinish} = useContext($LazyContext)\n\n useEffect(() => {\n const observer = historyPushStateScroller()\n\n if (!observer) {\n return\n }\n\n return () => {\n observer.disconnect();\n };\n }, []);\n\n useEffect(() => {\n if (serverContent?.current) {\n // TODO: below mechanism does not match perfect - do we need to compare with server view position?\n serverContent?.current.scrollIntoView?.();\n\n onFinish()\n }\n }, [serverContent]);\n\n function onLoaded() {\n setCount(count + 1)\n }\n\n const loaded = !!count\n\n const tree = <>\n <Prev onLoaded={onLoaded}/>\n\n <div ref={serverContent as RefObject<HTMLDivElement>}>\n {children}\n </div>\n\n <Next onLoaded={onLoaded}/>\n </>\n\n const content = options?.decorator\n ? options?.decorator?.({children: tree})\n : tree\n\n return <div\n className={`\n ${styles.content.host}\n ${loaded && styles.content.host$$active}\n `}>\n\n {content}\n </div>\n }\n }\n })\n}"],"names":["__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","value","step","next","e","rejected","result","done","then","apply","SuppressedError","styles","host","host$$active","renderoll","async","options","_useState2","_slicedToArray","useState","once","setOnce","_useState4","inited","setInited","useEffect","$RenderLazyComponent","_this","this","lazy","_regenerator","m","_callee","_yield$async","_yield$async2","Prev","Next","w","_context","n","v","a","default","_ref2","children","_useState6","count","setCount","serverContent","useRef","onFinish","useContext","$LazyContext","onLoaded","observer","historyPushStateScroller","disconnect","current","_b","_a","scrollIntoView","call","loaded","tree","React","createElement","Fragment","ref","content","decorator","className","concat","$Lazy","_ref","Provider","$Loader","Suspense","fallback","createContext","elements","document","querySelectorAll","length","IntersectionObserver","entries","forEach","entry","isIntersecting","slug","target","getAttribute","window","history","pushState","event","CustomEvent","detail","url","dispatchEvent","threshold","element","observe","console","warn"],"mappings":";;y3FAkHO,SAASA,EAAUC,EAASC,EAAYC,EAAGC,GAE9C,OAAO,IAAKD,IAAMA,EAAIE,UAAU,SAAUC,EAASC,GAC/C,SAASC,EAAUC,GAAS,IAAMC,EAAKN,EAAUO,KAAKF,IAAW,MAAOG,GAAKL,EAAOK,EAAI,CAAE,CAC1F,SAASC,EAASJ,GAAS,IAAMC,EAAKN,EAAiB,MAAEK,IAAW,MAAOG,GAAKL,EAAOK,EAAI,CAAE,CAC7F,SAASF,EAAKI,GAJlB,IAAeL,EAIaK,EAAOC,KAAOT,EAAQQ,EAAOL,QAJ1CA,EAIyDK,EAAOL,MAJhDA,aAAiBN,EAAIM,EAAQ,IAAIN,EAAE,SAAUG,GAAWA,EAAQG,EAAQ,IAIjBO,KAAKR,EAAWK,EAAW,CAC7GH,GAAMN,EAAYA,EAAUa,MAAMhB,EAASC,GAAc,KAAKS,OAClE,EACJ,CA8MkD,mBAApBO,iBAAiCA,gBCpU/D,IAAMC,EACM,CACJC,KAAI,YAFND,EAac,CACZC,KAAI,YAdND,EAqBO,CACLC,KAAI,WAIJC,aAAY,YAUd,SAAUC,EACZC,EACAC,GAEA,IAAuCC,EAAAC,EAAfC,GAAS,GAAM,GAAhCC,EAAIH,EAAA,GAAEI,EAAOJ,EAAA,GACuBK,EAAAJ,EAAfC,GAAS,GAAM,GAApCI,EAAMD,EAAA,GAAEE,EAASF,EAAA,GAExBG,EAAU,WACND,GAAU,IACX,IAEH,IAAME,EAwEV,SACIX,EACAC,GAA0B,IAAAW,EAAAC,KAE1B,OAAOC,EAAK,WAAA,OAAWrC,EAAAmC,OAAA,OAAA,EAAAG,IAAAC,EAAA,SAAAC,IAAA,IAAAC,EAAAC,EAAAC,EAAAC,EAAA,OAAAN,IAAAO,EAAA,SAAAC,GAAA,cAAAA,EAAAC,GAAA,KAAA,EACE,OADFD,EAAAC,EAAA,EACQxB,IAAO,KAAA,EAAjB,OAAiBkB,EAAAK,EAAAE,EAAAN,EAAAhB,EAAAe,EAAA,GAA3BE,EAAID,EAAA,GAAEE,EAAIF,EAAA,GAAAI,EAAAG,EAAA,EAEV,CACHC,QAASA,SAAFC,GAAiB,MAAbC,EAAAA,EAAAA,SAC8BC,EAAA3B,EAAXC,EAAS,GAAE,GAA9B2B,EAAKD,EAAA,GAAEE,EAAQF,EAAA,GAChBG,EAAgBC,EAAgB,MAC/BC,EAAYC,EAAWC,GAAvBF,SAuBP,SAASG,IACLN,EAASD,EAAQ,EACrB,CAvBArB,EAAU,WACN,IAAM6B,EAAWC,IAEjB,GAAKD,EAIL,OAAO,WACHA,EAASE,eAEd,IAEH/B,EAAU,oBACFuB,aAAa,EAAbA,EAAeS,WAEsB,QAArCC,EAAAV,aAAa,GAAAW,EAAbX,EAAeS,SAAQG,sBAAc,IAAAF,GAAAA,EAAAG,KAAAF,GAErCT,IAER,EAAG,CAACF,IAMJ,IAAMc,IAAWhB,EAEXiB,EAAOC,EAAAC,cAAAD,EAAAE,SAAA,KACTF,EAAAC,cAAC9B,EAAI,CAACkB,SAAUA,IAEhBW,EAAAC,cAAA,MAAA,CAAKE,IAAKnB,GACLJ,GAGLoB,EAAAC,cAAC7B,EAAI,CAACiB,SAAUA,KAGde,GAAUpD,aAAO,EAAPA,EAASqD,mBACnBV,EAAA3C,aAAO,EAAPA,EAASqD,uCAAY,CAACzB,SAAUmB,IAChCA,EAEN,OAAOC,EAAAC,cAAA,MAAA,CACHK,uCAASC,OACH5D,EAAeC,KAAI,8BAAA2D,OACnBT,GAAUnD,EAAeE,aAAY,2BAG1CuD,EAET,IACH,EAAApC,EAAA,KAET,CAzIiCwC,CAAMzD,EAAOC,GAE1C,OAAO,SAAAyD,GAAe,IAAb7B,EAAAA,EAAAA,SACL,OAAOoB,gBAACZ,EAAasB,SAAQ,CAACzE,MAAO,CACjCiD,SAAUA,WACF9B,GAGJC,GAAQ,EACZ,KAGKD,GAAQ4C,EAAAC,cAAA,MAAA,CAAKK,UAAW/C,EAASZ,EAAsBC,KAAO,IAC1DgC,IAIPxB,GAAQ4C,EAAAC,cAACU,EAAO,MAElBX,EAAAC,cAACW,EAAQ,CAACC,SAAUb,EAAAC,cAACU,EAAO,OACxBX,EAAAC,cAACvC,EAAoB,KAChBkB,KAKrB,CAGA,IAAMQ,EAAe0B,EAAc,CAC/B5B,SAAUA,WAAK,IAInB,SAASyB,IACL,OAAOX,EAAAC,cAAA,MAAA,CAAKK,UAAW3D,EAAcC,MACzC,CAIA,SAAS2C,IACL,IAAMwB,EAAWC,SAASC,iBAAiB,eAE3C,GAAKF,EAASG,OAAd,CAKA,IAAM5B,EAAW,IAAI6B,qBAAsBC,SAAAA,GACvCA,EAAQC,QAAQC,SAAAA,GACZ,GAAKA,EAAMC,eAAX,CAIA,IAAMC,EAAOF,EAAMG,OAAOC,aAAa,aAEvCC,OAAOC,QAAQC,UAAU,KAAM,GAAE,GAAAtB,OAAKiB,IAEtC,IAAMM,EAAQ,IAAIC,YAAY,wBAAyB,CACnDC,OAAQ,CACJC,IAAKT,KAGbG,OAAOO,cAAcJ,EAXrB,CAYJ,EACJ,EAAG,CAACK,UAAW,KAIf,OAFApB,EAASM,QAAQe,SAAAA,GAAO,OAAI9C,EAAS+C,QAAQD,KAEtC9C,CAvBP,CAFIgD,QAAQC,KAAK,sCA0BrB","x_google_ignoreList":[0]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyd-js/foo",
3
- "version": "0.1.0-xyd.1",
3
+ "version": "0.1.0-xyd.42",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "dependencies": {},
19
19
  "peerDependencies": {
20
- "react": "^18.3.1"
20
+ "react": "^19.1.0"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@linaria/atomic": "^6.2.0",
package/rollup.config.js CHANGED
@@ -1,6 +1,3 @@
1
- import {fileURLToPath} from 'url';
2
- import {dirname} from 'path';
3
-
4
1
  import resolve from '@rollup/plugin-node-resolve';
5
2
  import commonjs from '@rollup/plugin-commonjs';
6
3
  import typescript from '@rollup/plugin-typescript';
@@ -10,15 +7,20 @@ import babel from '@rollup/plugin-babel';
10
7
  import postcss from 'rollup-plugin-postcss';
11
8
  import wyw from '@wyw-in-js/rollup';
12
9
 
13
- const __filename = fileURLToPath(import.meta.url);
14
- const __dirname = dirname(__filename);
15
-
16
10
  import {createRequire} from 'module';
17
11
 
18
12
  const require = createRequire(import.meta.url);
19
- const {dependencies} = require('./package.json', {assert: {type: 'json'}});
13
+ const {
14
+ dependencies,
15
+ peerDependencies,
16
+ devDependencies
17
+ } = require('./package.json', {assert: {type: 'json'}});
20
18
 
21
- const external = Object.keys(dependencies);
19
+ const external = [
20
+ ...Object.keys(dependencies),
21
+ ...Object.keys(peerDependencies),
22
+ ...Object.keys(devDependencies),
23
+ ];
22
24
 
23
25
  export default [
24
26
  {
@@ -30,7 +32,7 @@ export default [
30
32
  {
31
33
  dir: 'dist',
32
34
  format: 'esm',
33
- sourcemap: false,
35
+ sourcemap: true,
34
36
  entryFileNames: '[name].js'
35
37
  }
36
38
  ],