react-rails 2.6.2 → 2.7.1

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.
@@ -1,561 +1 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("react-dom"), require("react"), require("react-dom/server"));
4
- else if(typeof define === 'function' && define.amd)
5
- define(["react-dom", "react", "react-dom/server"], factory);
6
- else if(typeof exports === 'object')
7
- exports["ReactRailsUJS"] = factory(require("react-dom"), require("react"), require("react-dom/server"));
8
- else
9
- root["ReactRailsUJS"] = factory(root["ReactDOM"], root["React"], root["ReactDOMServer"]);
10
- })(this, function(__WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_5__, __WEBPACK_EXTERNAL_MODULE_6__) {
11
- return /******/ (function(modules) { // webpackBootstrap
12
- /******/ // The module cache
13
- /******/ var installedModules = {};
14
- /******/
15
- /******/ // The require function
16
- /******/ function __webpack_require__(moduleId) {
17
- /******/
18
- /******/ // Check if module is in cache
19
- /******/ if(installedModules[moduleId]) {
20
- /******/ return installedModules[moduleId].exports;
21
- /******/ }
22
- /******/ // Create a new module (and put it into the cache)
23
- /******/ var module = installedModules[moduleId] = {
24
- /******/ i: moduleId,
25
- /******/ l: false,
26
- /******/ exports: {}
27
- /******/ };
28
- /******/
29
- /******/ // Execute the module function
30
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
31
- /******/
32
- /******/ // Flag the module as loaded
33
- /******/ module.l = true;
34
- /******/
35
- /******/ // Return the exports of the module
36
- /******/ return module.exports;
37
- /******/ }
38
- /******/
39
- /******/
40
- /******/ // expose the modules object (__webpack_modules__)
41
- /******/ __webpack_require__.m = modules;
42
- /******/
43
- /******/ // expose the module cache
44
- /******/ __webpack_require__.c = installedModules;
45
- /******/
46
- /******/ // identity function for calling harmony imports with the correct context
47
- /******/ __webpack_require__.i = function(value) { return value; };
48
- /******/
49
- /******/ // define getter function for harmony exports
50
- /******/ __webpack_require__.d = function(exports, name, getter) {
51
- /******/ if(!__webpack_require__.o(exports, name)) {
52
- /******/ Object.defineProperty(exports, name, {
53
- /******/ configurable: false,
54
- /******/ enumerable: true,
55
- /******/ get: getter
56
- /******/ });
57
- /******/ }
58
- /******/ };
59
- /******/
60
- /******/ // getDefaultExport function for compatibility with non-harmony modules
61
- /******/ __webpack_require__.n = function(module) {
62
- /******/ var getter = module && module.__esModule ?
63
- /******/ function getDefault() { return module['default']; } :
64
- /******/ function getModuleExports() { return module; };
65
- /******/ __webpack_require__.d(getter, 'a', getter);
66
- /******/ return getter;
67
- /******/ };
68
- /******/
69
- /******/ // Object.prototype.hasOwnProperty.call
70
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
71
- /******/
72
- /******/ // __webpack_public_path__
73
- /******/ __webpack_require__.p = "";
74
- /******/
75
- /******/ // Load entry module and return exports
76
- /******/ return __webpack_require__(__webpack_require__.s = 7);
77
- /******/ })
78
- /************************************************************************/
79
- /******/ ([
80
- /* 0 */
81
- /***/ (function(module, exports) {
82
-
83
- // Assume className is simple and can be found at top-level (window).
84
- // Fallback to eval to handle cases like 'My.React.ComponentName'.
85
- // Also, try to gracefully import Babel 6 style default exports
86
- var topLevel = typeof window === "undefined" ? this : window;
87
-
88
- module.exports = function(className) {
89
- var constructor;
90
- // Try to access the class globally first
91
- constructor = topLevel[className];
92
-
93
- // If that didn't work, try eval
94
- if (!constructor) {
95
- constructor = eval(className);
96
- }
97
-
98
- // Lastly, if there is a default attribute try that
99
- if (constructor && constructor['default']) {
100
- constructor = constructor['default'];
101
- }
102
-
103
- return constructor;
104
- }
105
-
106
-
107
- /***/ }),
108
- /* 1 */
109
- /***/ (function(module, exports) {
110
-
111
- module.exports = __WEBPACK_EXTERNAL_MODULE_1__;
112
-
113
- /***/ }),
114
- /* 2 */
115
- /***/ (function(module, exports, __webpack_require__) {
116
-
117
- var nativeEvents = __webpack_require__(8)
118
- var pjaxEvents = __webpack_require__(9)
119
- var turbolinksEvents = __webpack_require__(10)
120
- var turbolinksClassicDeprecatedEvents = __webpack_require__(12)
121
- var turbolinksClassicEvents = __webpack_require__(11)
122
-
123
- // see what things are globally available
124
- // and setup event handlers to those things
125
- module.exports = function(ujs) {
126
- if (ujs.handleEvent) {
127
- // We're calling this a second time -- remove previous handlers
128
- if (typeof Turbolinks !== "undefined" && typeof Turbolinks.EVENTS !== "undefined") {
129
- turbolinksClassicEvents.teardown(ujs);
130
- }
131
- turbolinksEvents.teardown(ujs);
132
- turbolinksClassicDeprecatedEvents.teardown(ujs);
133
- pjaxEvents.teardown(ujs);
134
- nativeEvents.teardown(ujs);
135
- }
136
-
137
- if ('addEventListener' in window) {
138
- ujs.handleEvent = function(eventName, callback) {
139
- document.addEventListener(eventName, callback);
140
- };
141
- ujs.removeEvent = function(eventName, callback) {
142
- document.removeEventListener(eventName, callback);
143
- };
144
- } else {
145
- ujs.handleEvent = function(eventName, callback) {
146
- window.attachEvent(eventName, callback);
147
- };
148
- ujs.removeEvent = function(eventName, callback) {
149
- window.detachEvent(eventName, callback);
150
- };
151
- }
152
-
153
- // Detect which kind of events to set up:
154
- if (typeof Turbolinks !== 'undefined' && Turbolinks.supported) {
155
- if (typeof Turbolinks.EVENTS !== 'undefined') {
156
- // Turbolinks.EVENTS is in classic version 2.4.0+
157
- turbolinksClassicEvents.setup(ujs)
158
- } else if (typeof Turbolinks.controller !== "undefined") {
159
- // Turbolinks.controller is in version 5+
160
- turbolinksEvents.setup(ujs);
161
- } else {
162
- turbolinksClassicDeprecatedEvents.setup(ujs);
163
- }
164
- } else if (typeof $ !== "undefined" && typeof $.pjax === 'function') {
165
- pjaxEvents.setup(ujs);
166
- } else {
167
- nativeEvents.setup(ujs);
168
- }
169
- }
170
-
171
-
172
- /***/ }),
173
- /* 3 */
174
- /***/ (function(module, exports, __webpack_require__) {
175
-
176
- // Make a function which:
177
- // - First tries to require the name
178
- // - Then falls back to global lookup
179
- var fromGlobal = __webpack_require__(0)
180
- var fromRequireContext = __webpack_require__(13)
181
-
182
- module.exports = function(reqctx) {
183
- var fromCtx = fromRequireContext(reqctx)
184
- return function(className) {
185
- var component;
186
- try {
187
- // `require` will raise an error if this className isn't found:
188
- component = fromCtx(className)
189
- } catch (firstErr) {
190
- // fallback to global:
191
- try {
192
- component = fromGlobal(className)
193
- } catch (secondErr) {
194
- console.error(firstErr)
195
- console.error(secondErr)
196
- }
197
- }
198
- return component
199
- }
200
- }
201
-
202
-
203
- /***/ }),
204
- /* 4 */
205
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
206
-
207
- "use strict";
208
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
209
- /* harmony export (immutable) */ __webpack_exports__["supportsHydration"] = supportsHydration;
210
- /* harmony export (immutable) */ __webpack_exports__["reactHydrate"] = reactHydrate;
211
- /* harmony export (immutable) */ __webpack_exports__["createReactRootLike"] = createReactRootLike;
212
- const ReactDOM = __webpack_require__(1)
213
-
214
- function supportsHydration() {
215
- return typeof ReactDOM.hydrate === "function" || typeof ReactDOM.hydrateRoot === "function"
216
- }
217
-
218
- function reactHydrate(node, component) {
219
- if (typeof ReactDOM.hydrateRoot === "function") {
220
- return ReactDOM.hydrateRoot(node, component)
221
- } else {
222
- return ReactDOM.hydrate(component, node)
223
- }
224
- }
225
-
226
- function createReactRootLike(node) {
227
- return ReactDOM.createRoot ? ReactDOM.createRoot(node) : legacyReactRootLike(node)
228
- }
229
-
230
- function legacyReactRootLike(node) {
231
- const root = {
232
- render(component) {
233
- return ReactDOM.render(component, node)
234
- }
235
- }
236
- return root
237
- }
238
-
239
-
240
- /***/ }),
241
- /* 5 */
242
- /***/ (function(module, exports) {
243
-
244
- module.exports = __WEBPACK_EXTERNAL_MODULE_5__;
245
-
246
- /***/ }),
247
- /* 6 */
248
- /***/ (function(module, exports) {
249
-
250
- module.exports = __WEBPACK_EXTERNAL_MODULE_6__;
251
-
252
- /***/ }),
253
- /* 7 */
254
- /***/ (function(module, exports, __webpack_require__) {
255
-
256
- var React = __webpack_require__(5)
257
- var ReactDOM = __webpack_require__(1)
258
- var ReactDOMServer = __webpack_require__(6)
259
-
260
- var detectEvents = __webpack_require__(2)
261
- var constructorFromGlobal = __webpack_require__(0)
262
- var constructorFromRequireContextWithGlobalFallback = __webpack_require__(3)
263
- const { supportsHydration, reactHydrate, createReactRootLike } = __webpack_require__(4)
264
-
265
- var ReactRailsUJS = {
266
- // This attribute holds the name of component which should be mounted
267
- // example: `data-react-class="MyApp.Items.EditForm"`
268
- CLASS_NAME_ATTR: 'data-react-class',
269
-
270
- // This attribute holds JSON stringified props for initializing the component
271
- // example: `data-react-props="{\"item\": { \"id\": 1, \"name\": \"My Item\"} }"`
272
- PROPS_ATTR: 'data-react-props',
273
-
274
- // This attribute holds which method to use between: ReactDOM.hydrate, ReactDOM.render
275
- RENDER_ATTR: 'data-hydrate',
276
-
277
- // A unique identifier to identify a node
278
- CACHE_ID_ATTR: "data-react-cache-id",
279
-
280
- TURBOLINKS_PERMANENT_ATTR: "data-turbolinks-permanent",
281
-
282
- // If jQuery is detected, save a reference to it for event handlers
283
- jQuery: (typeof window !== 'undefined') && (typeof window.jQuery !== 'undefined') && window.jQuery,
284
-
285
- components: {},
286
-
287
- // helper method for the mount and unmount methods to find the
288
- // `data-react-class` DOM elements
289
- findDOMNodes: function(searchSelector) {
290
- var classNameAttr = ReactRailsUJS.CLASS_NAME_ATTR
291
- // we will use fully qualified paths as we do not bind the callbacks
292
- var selector, parent;
293
-
294
- switch (typeof searchSelector) {
295
- case 'undefined':
296
- selector = '[' + classNameAttr + ']';
297
- parent = document;
298
- break;
299
- case 'object':
300
- selector = '[' + classNameAttr + ']';
301
- parent = searchSelector;
302
- break;
303
- case 'string':
304
- selector = searchSelector + '[' + classNameAttr + '], ' +
305
- searchSelector + ' [' + classNameAttr + ']';
306
- parent = document;
307
- break
308
- default:
309
- break;
310
- }
311
-
312
- if (ReactRailsUJS.jQuery) {
313
- return ReactRailsUJS.jQuery(selector, parent);
314
- } else {
315
- return parent.querySelectorAll(selector);
316
- }
317
- },
318
-
319
- // Get the constructor for a className (returns a React class)
320
- // Override this function to lookup classes in a custom way,
321
- // the default is ReactRailsUJS.ComponentGlobal
322
- getConstructor: constructorFromGlobal,
323
-
324
- // Given a Webpack `require.context`,
325
- // try finding components with `require`,
326
- // then falling back to global lookup.
327
- useContext: function(requireContext) {
328
- this.getConstructor = constructorFromRequireContextWithGlobalFallback(requireContext)
329
- },
330
-
331
- // Render `componentName` with `props` to a string,
332
- // using the specified `renderFunction` from `react-dom/server`.
333
- serverRender: function(renderFunction, componentName, props) {
334
- var componentClass = this.getConstructor(componentName)
335
- var element = React.createElement(componentClass, props)
336
- return ReactDOMServer[renderFunction](element)
337
- },
338
-
339
- // Within `searchSelector`, find nodes which should have React components
340
- // inside them, and mount them with their props.
341
- mountComponents: function(searchSelector) {
342
- var ujs = ReactRailsUJS
343
- var nodes = ujs.findDOMNodes(searchSelector);
344
-
345
- for (var i = 0; i < nodes.length; ++i) {
346
- var node = nodes[i];
347
- var className = node.getAttribute(ujs.CLASS_NAME_ATTR);
348
- var constructor = ujs.getConstructor(className);
349
- var propsJson = node.getAttribute(ujs.PROPS_ATTR);
350
- var props = propsJson && JSON.parse(propsJson);
351
- var hydrate = node.getAttribute(ujs.RENDER_ATTR);
352
- var cacheId = node.getAttribute(ujs.CACHE_ID_ATTR);
353
- var turbolinksPermanent = node.hasAttribute(ujs.TURBOLINKS_PERMANENT_ATTR);
354
-
355
- if (!constructor) {
356
- var message = "Cannot find component: '" + className + "'"
357
- if (console && console.log) {
358
- console.log("%c[react-rails] %c" + message + " for element", "font-weight: bold", "", node)
359
- }
360
- throw new Error(message + ". Make sure your component is available to render.")
361
- } else {
362
- var component = this.components[cacheId];
363
- if(component === undefined) {
364
- component = React.createElement(constructor, props);
365
- if(turbolinksPermanent) {
366
- this.components[cacheId] = component;
367
- }
368
- }
369
-
370
- if (hydrate && supportsHydration()) {
371
- component = reactHydrate(node, component);
372
- } else {
373
- const root = createReactRootLike(node)
374
- component = root.render(component);
375
- }
376
- }
377
- }
378
- },
379
-
380
- // Within `searchSelector`, find nodes which have React components
381
- // inside them, and unmount those components.
382
- unmountComponents: function(searchSelector) {
383
- var nodes = ReactRailsUJS.findDOMNodes(searchSelector);
384
-
385
- for (var i = 0; i < nodes.length; ++i) {
386
- var node = nodes[i];
387
- ReactDOM.unmountComponentAtNode(node);
388
- }
389
- },
390
-
391
- // Check the global context for installed libraries
392
- // and figure out which library to hook up to (pjax, Turbolinks, jQuery)
393
- // This is called on load, but you can call it again if needed
394
- // (It will unmount itself)
395
- detectEvents: function() {
396
- detectEvents(this)
397
- },
398
- }
399
-
400
- // These stable references are so that handlers can be added and removed:
401
- ReactRailsUJS.handleMount = function(e) {
402
- var target = undefined;
403
- if (e && e.target) {
404
- target = e.target;
405
- }
406
- ReactRailsUJS.mountComponents(target);
407
- }
408
- ReactRailsUJS.handleUnmount = function(e) {
409
- var target = undefined;
410
- if (e && e.target) {
411
- target = e.target;
412
- }
413
- ReactRailsUJS.unmountComponents(target);
414
- }
415
-
416
-
417
- if (typeof window !== "undefined") {
418
- // Only setup events for browser (not server-rendering)
419
- ReactRailsUJS.detectEvents()
420
- }
421
-
422
- // It's a bit of a no-no to populate the global namespace,
423
- // but we really need it!
424
- // We need access to this object for server rendering, and
425
- // we can't do a dynamic `require`, so we'll grab it from here:
426
- self.ReactRailsUJS = ReactRailsUJS
427
-
428
- module.exports = ReactRailsUJS
429
-
430
-
431
- /***/ }),
432
- /* 8 */
433
- /***/ (function(module, exports) {
434
-
435
- module.exports = {
436
- // Attach handlers to browser events to mount
437
- // (There are no unmount handlers since the page is destroyed on navigation)
438
- setup: function(ujs) {
439
- if ('addEventListener' in window) {
440
- ujs.handleEvent('DOMContentLoaded', ujs.handleMount);
441
- } else {
442
- // add support to IE8 without jQuery
443
- ujs.handleEvent('onload', ujs.handleMount);
444
- }
445
- },
446
-
447
- teardown: function(ujs) {
448
- ujs.removeEvent('DOMContentLoaded', ujs.handleMount);
449
- ujs.removeEvent('onload', ujs.handleMount);
450
- }
451
- }
452
-
453
-
454
- /***/ }),
455
- /* 9 */
456
- /***/ (function(module, exports) {
457
-
458
- module.exports = {
459
- // pjax support
460
- setup: function(ujs) {
461
- ujs.handleEvent('ready', ujs.handleMount);
462
- ujs.handleEvent('pjax:end', ujs.handleMount);
463
- ujs.handleEvent('pjax:beforeReplace', ujs.handleUnmount);
464
- },
465
-
466
- teardown: function(ujs) {
467
- ujs.removeEvent('ready', ujs.handleMount);
468
- ujs.removeEvent('pjax:end', ujs.handleMount);
469
- ujs.removeEvent('pjax:beforeReplace', ujs.handleUnmount);
470
- },
471
- }
472
-
473
-
474
- /***/ }),
475
- /* 10 */
476
- /***/ (function(module, exports) {
477
-
478
- module.exports = {
479
- // Turbolinks 5+ got rid of named events (?!)
480
- setup: function(ujs) {
481
- ujs.handleEvent('turbolinks:load', ujs.handleMount);
482
- },
483
-
484
- teardown: function(ujs) {
485
- ujs.removeEvent('turbolinks:load', ujs.handleMount);
486
- },
487
- }
488
-
489
-
490
- /***/ }),
491
- /* 11 */
492
- /***/ (function(module, exports) {
493
-
494
- module.exports = {
495
- // Attach handlers to Turbolinks-Classic events
496
- // for mounting and unmounting components
497
- setup: function(ujs) {
498
- ujs.handleEvent(Turbolinks.EVENTS.CHANGE, ujs.handleMount);
499
- ujs.handleEvent(Turbolinks.EVENTS.BEFORE_UNLOAD, ujs.handleUnmount);
500
- },
501
- teardown: function(ujs) {
502
- ujs.removeEvent(Turbolinks.EVENTS.CHANGE, ujs.handleMount);
503
- ujs.removeEvent(Turbolinks.EVENTS.BEFORE_UNLOAD, ujs.handleUnmount);
504
- }
505
- }
506
-
507
-
508
- /***/ }),
509
- /* 12 */
510
- /***/ (function(module, exports) {
511
-
512
- module.exports = {
513
- // Before Turbolinks 2.4.0, Turbolinks didn't
514
- // have named events and didn't have a before-unload event.
515
- // Also, it didn't work with the Turbolinks cache, see
516
- // https://github.com/reactjs/react-rails/issues/87
517
- setup: function(ujs) {
518
- Turbolinks.pagesCached(0)
519
- ujs.handleEvent('page:change', ujs.handleMount);
520
- ujs.handleEvent('page:receive', ujs.handleUnmount);
521
- },
522
- teardown: function(ujs) {
523
- ujs.removeEvent('page:change', ujs.handleMount);
524
- ujs.removeEvent('page:receive', ujs.handleUnmount);
525
- }
526
- }
527
-
528
-
529
- /***/ }),
530
- /* 13 */
531
- /***/ (function(module, exports) {
532
-
533
- // Load React components by requiring them from "components/", for example:
534
- //
535
- // - "pages/index" -> `require("components/pages/index")`
536
- // - "pages/show.Header" -> `require("components/pages/show").Header`
537
- // - "pages/show.Body.Content" -> `require("components/pages/show").Body.Content`
538
- //
539
- module.exports = function(reqctx) {
540
- return function(className) {
541
- var parts = className.split(".")
542
- var filename = parts.shift()
543
- var keys = parts
544
- // Load the module:
545
- var component = reqctx("./" + filename)
546
- // Then access each key:
547
- keys.forEach(function(k) {
548
- component = component[k]
549
- })
550
- // support `export default`
551
- if (component.__esModule) {
552
- component = component["default"]
553
- }
554
- return component
555
- }
556
- }
557
-
558
-
559
- /***/ })
560
- /******/ ]);
561
- });
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("react-dom/server")):"function"==typeof define&&define.amd?define(["react","react-dom","react-dom/server"],t):"object"==typeof exports?exports.ReactRailsUJS=t(require("react"),require("react-dom"),require("react-dom/server")):e.ReactRailsUJS=t(e.React,e.ReactDOM,e.ReactDOMServer)}(self,((__WEBPACK_EXTERNAL_MODULE__787__,__WEBPACK_EXTERNAL_MODULE__156__,__WEBPACK_EXTERNAL_MODULE__997__)=>(()=>{var __webpack_modules__={10:(e,t,n)=>{var o=n(787),r=n(156),a=n(997),u=n(230),c=n(121),d=n(831),i=n(37),_=n(39);const{supportsHydration:s,reactHydrate:l,createReactRootLike:p}=n(198);var v={CLASS_NAME_ATTR:"data-react-class",PROPS_ATTR:"data-react-props",RENDER_ATTR:"data-hydrate",CACHE_ID_ATTR:"data-react-cache-id",TURBOLINKS_PERMANENT_ATTR:"data-turbolinks-permanent",jQuery:"undefined"!=typeof window&&void 0!==window.jQuery&&window.jQuery,components:{},findDOMNodes:function(e){var t,n,o=v.CLASS_NAME_ATTR;switch(typeof e){case"undefined":t="["+o+"]",n=document;break;case"object":t="["+o+"]",n=e;break;case"string":t=e+"["+o+"], "+e+" ["+o+"]",n=document}return v.jQuery?v.jQuery(t,n):n.querySelectorAll(t)},getConstructor:c,constructorFromGlobal:c,constructorFromRequireContext:d,constructorFromRequireContextWithGlobalFallback:i,useContext:function(e){this.getConstructor=i(e)},useContexts:function(e){this.getConstructor=_(e)},serverRender:function(e,t,n){var r=this.getConstructor(t),u=o.createElement(r,n);return a[e](u)},mountComponents:function(e){for(var t=v,n=t.findDOMNodes(e),r=0;r<n.length;++r){var a=n[r],u=a.getAttribute(t.CLASS_NAME_ATTR),c=t.getConstructor(u),d=a.getAttribute(t.PROPS_ATTR),i=d&&JSON.parse(d),_=a.getAttribute(t.RENDER_ATTR),f=a.getAttribute(t.CACHE_ID_ATTR),E=a.hasAttribute(t.TURBOLINKS_PERMANENT_ATTR);if(!c){var h="Cannot find component: '"+u+"'";throw console&&console.log&&console.log("%c[react-rails] %c"+h+" for element","font-weight: bold","",a),new Error(h+". Make sure your component is available to render.")}var m=this.components[f];void 0===m&&(m=o.createElement(c,i),E&&(this.components[f]=m)),m=_&&s()?l(a,m):p(a).render(m)}},unmountComponents:function(e){for(var t=v.findDOMNodes(e),n=0;n<t.length;++n){var o=t[n];r.unmountComponentAtNode(o)}},detectEvents:function(){u(this)},handleMount:function(e){var t=void 0;e&&e.target&&(t=e.target),v.mountComponents(t)},handleUnmount:function(e){var t=void 0;e&&e.target&&(t=e.target),v.unmountComponents(t)}};"undefined"!=typeof window&&v.detectEvents(),self.ReactRailsUJS=v,e.exports=v},230:(e,t,n)=>{var o=n(528),r=n(921),a=n(228),u=n(724),c=n(968);e.exports=function(e){e.handleEvent&&("undefined"!=typeof Turbolinks&&void 0!==Turbolinks.EVENTS&&c.teardown(e),a.teardown(e),u.teardown(e),r.teardown(e),o.teardown(e)),"addEventListener"in window?(e.handleEvent=function(e,t){document.addEventListener(e,t)},e.removeEvent=function(e,t){document.removeEventListener(e,t)}):(e.handleEvent=function(e,t){window.attachEvent(e,t)},e.removeEvent=function(e,t){window.detachEvent(e,t)}),"undefined"!=typeof Turbolinks&&Turbolinks.supported?void 0!==Turbolinks.EVENTS?c.setup(e):void 0!==Turbolinks.controller?a.setup(e):u.setup(e):"undefined"!=typeof $&&"function"==typeof $.pjax?r.setup(e):o.setup(e)}},528:e=>{e.exports={setup:function(e){"addEventListener"in window?e.handleEvent("DOMContentLoaded",e.handleMount):e.handleEvent("onload",e.handleMount)},teardown:function(e){e.removeEvent("DOMContentLoaded",e.handleMount),e.removeEvent("onload",e.handleMount)}}},921:e=>{e.exports={setup:function(e){e.handleEvent("ready",e.handleMount),e.handleEvent("pjax:end",e.handleMount),e.handleEvent("pjax:beforeReplace",e.handleUnmount)},teardown:function(e){e.removeEvent("ready",e.handleMount),e.removeEvent("pjax:end",e.handleMount),e.removeEvent("pjax:beforeReplace",e.handleUnmount)}}},228:e=>{e.exports={setup:function(e){e.handleEvent("turbolinks:load",e.handleMount)},teardown:function(e){e.removeEvent("turbolinks:load",e.handleMount)}}},968:e=>{e.exports={setup:function(e){e.handleEvent(Turbolinks.EVENTS.CHANGE,e.handleMount),e.handleEvent(Turbolinks.EVENTS.BEFORE_UNLOAD,e.handleUnmount)},teardown:function(e){e.removeEvent(Turbolinks.EVENTS.CHANGE,e.handleMount),e.removeEvent(Turbolinks.EVENTS.BEFORE_UNLOAD,e.handleUnmount)}}},724:e=>{e.exports={setup:function(e){Turbolinks.pagesCached(0),e.handleEvent("page:change",e.handleMount),e.handleEvent("page:receive",e.handleUnmount)},teardown:function(e){e.removeEvent("page:change",e.handleMount),e.removeEvent("page:receive",e.handleUnmount)}}},121:function(module){var topLevel="undefined"==typeof window?this:window;module.exports=function(className){var constructor;return constructor=topLevel[className],constructor||(constructor=eval(className)),constructor&&constructor.default&&(constructor=constructor.default),constructor}},831:e=>{e.exports=function(e){return function(t){var n=t.split("."),o=n.shift(),r=n,a=e("./"+o);return r.forEach((function(e){a=a[e]})),a.__esModule&&(a=a.default),a}}},37:(e,t,n)=>{var o=n(121),r=n(831);e.exports=function(e){var t=r(e);return function(e){var n;try{n=t(e)}catch(t){try{n=o(e)}catch(e){console.error(t),console.error(e)}}return n}}},39:(e,t,n)=>{var o=n(121),r=n(831);e.exports=function(e){var t=e.map((e=>r(e)));return function(e){var n;try{var r,a,u=0;do{r=t[u];try{n=r(e)}catch(e){a||(a=e)}u+=1}while(u<t.length);if(!n)throw a}catch(a){try{n=o(e)}catch(e){console.error(a),console.error(e)}}return n}}},198:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createReactRootLike:()=>i,reactHydrate:()=>d,supportsHydration:()=>c});var o=n(156),r=n.n(o);let a=r();if(void 0!==r()&&(r().version.split(".")[0]||16)>=18)try{a=n(Object(function(){var e=new Error("Cannot find module 'react-dom/client'");throw e.code="MODULE_NOT_FOUND",e}()))}catch(e){a=r()}const u=a;function c(){return"function"==typeof u.hydrate||"function"==typeof u.hydrateRoot}function d(e,t){return"function"==typeof u.hydrateRoot?u.hydrateRoot(e,t):u.hydrate(t,e)}function i(e){return u.createRoot?u.createRoot(e):function(e){return{render:t=>u.render(t,e)}}(e)}},787:e=>{"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__787__},156:e=>{"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__156__},997:e=>{"use strict";e.exports=__WEBPACK_EXTERNAL_MODULE__997__}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__=__webpack_require__(10);return __webpack_exports__})()));