rails_admin 3.2.1 → 4.0.0.beta
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.
- checksums.yaml +4 -4
- data/Gemfile +8 -6
- data/README.md +11 -11
- data/Rakefile +3 -11
- data/app/assets/builds/rails_admin.css +10 -0
- data/app/assets/builds/rails_admin.js +34 -0
- data/app/controllers/rails_admin/main_controller.rb +3 -3
- data/app/helpers/rails_admin/application_helper.rb +3 -15
- data/app/helpers/rails_admin/form_builder.rb +10 -9
- data/app/views/layouts/rails_admin/_head.html.erb +10 -27
- data/app/views/layouts/rails_admin/_head_custom.html.erb +3 -0
- data/app/views/layouts/rails_admin/_secondary_navigation.html.erb +1 -1
- data/app/views/rails_admin/main/_dashboard_history.html.erb +1 -1
- data/app/views/rails_admin/main/_delete_notice.html.erb +3 -3
- data/app/views/rails_admin/main/_form_boolean.html.erb +9 -13
- data/app/views/rails_admin/main/_submit_buttons.html.erb +4 -4
- data/app/views/rails_admin/main/bulk_delete.html.erb +2 -2
- data/app/views/rails_admin/main/dashboard.html.erb +3 -3
- data/app/views/rails_admin/main/delete.html.erb +2 -2
- data/app/views/rails_admin/main/export.html.erb +2 -2
- data/app/views/rails_admin/main/history.html.erb +2 -2
- data/app/views/rails_admin/main/index.html.erb +3 -3
- data/config/initializers/active_record_extensions.rb +1 -4
- data/lib/generators/rails_admin/install_generator.rb +37 -92
- data/lib/generators/rails_admin/templates/rails_admin.scss.erb +1 -1
- data/lib/rails_admin/abstract_model.rb +69 -191
- data/lib/rails_admin/adapters/active_record/association.rb +1 -1
- data/lib/rails_admin/adapters/active_record/property.rb +7 -0
- data/lib/rails_admin/adapters/active_record/reflection.rb +87 -0
- data/lib/rails_admin/adapters/active_record/repository.rb +216 -0
- data/lib/rails_admin/adapters/active_record/statement_builder.rb +148 -0
- data/lib/rails_admin/adapters/active_record/where_builder.rb +40 -0
- data/lib/rails_admin/adapters/active_record.rb +7 -356
- data/lib/rails_admin/adapters/mongoid/association.rb +1 -1
- data/lib/rails_admin/adapters/mongoid/extension.rb +16 -6
- data/lib/rails_admin/adapters/mongoid/property.rb +7 -0
- data/lib/rails_admin/adapters/mongoid/reflection.rb +58 -0
- data/lib/rails_admin/adapters/mongoid/repository.rb +237 -0
- data/lib/rails_admin/adapters/mongoid/statement_builder.rb +93 -0
- data/lib/rails_admin/adapters/mongoid.rb +7 -300
- data/lib/rails_admin/adapters/reflection.rb +105 -0
- data/lib/rails_admin/adapters/repository.rb +169 -0
- data/lib/rails_admin/adapters/statement_builder.rb +109 -0
- data/lib/rails_admin/adapters.rb +94 -0
- data/lib/rails_admin/config/actions/base.rb +8 -0
- data/lib/rails_admin/config/actions/bulk_delete.rb +4 -4
- data/lib/rails_admin/config/actions/dashboard.rb +1 -1
- data/lib/rails_admin/config/actions/edit.rb +3 -2
- data/lib/rails_admin/config/actions/index.rb +1 -1
- data/lib/rails_admin/config/actions/new.rb +3 -2
- data/lib/rails_admin/config/actions/show.rb +1 -1
- data/lib/rails_admin/config/configurable.rb +4 -3
- data/lib/rails_admin/config/fields/association.rb +9 -8
- data/lib/rails_admin/config/fields/base.rb +55 -37
- data/lib/rails_admin/config/fields/collection_association.rb +2 -2
- data/lib/rails_admin/config/fields/factories/carrierwave.rb +35 -20
- data/lib/rails_admin/config/fields/factories/dragonfly.rb +30 -18
- data/lib/rails_admin/config/fields/factories/enum.rb +14 -8
- data/lib/rails_admin/config/fields/factories/paperclip.rb +29 -19
- data/lib/rails_admin/config/fields/factories/shrine.rb +19 -8
- data/lib/rails_admin/config/fields/singular_association.rb +6 -1
- data/lib/rails_admin/config/fields/types/active_record_enum.rb +3 -7
- data/lib/rails_admin/config/fields/types/belongs_to_association.rb +8 -4
- data/lib/rails_admin/config/fields/types/bson_object_id.rb +1 -1
- data/lib/rails_admin/config/fields/types/datetime.rb +0 -4
- data/lib/rails_admin/config/fields/types/dragonfly.rb +1 -1
- data/lib/rails_admin/config/fields/types/enum.rb +11 -2
- data/lib/rails_admin/config/fields/types/multiple_file_upload.rb +0 -2
- data/lib/rails_admin/config/fields/types/polymorphic_association.rb +4 -4
- data/lib/rails_admin/config/fields/types/time.rb +1 -1
- data/lib/rails_admin/config/model.rb +27 -5
- data/lib/rails_admin/config/sections/list.rb +0 -8
- data/lib/rails_admin/config.rb +7 -21
- data/lib/rails_admin/criteria/path.rb +66 -0
- data/lib/rails_admin/criteria/period.rb +67 -0
- data/lib/rails_admin/engine.rb +11 -15
- data/lib/rails_admin/extensions/pundit/authorization_adapter.rb +2 -2
- data/lib/rails_admin/extensions/url_for_extension.rb +8 -0
- data/lib/rails_admin/support/asset_source.rb +42 -0
- data/lib/rails_admin/support/composite_keys_serializer.rb +28 -2
- data/lib/rails_admin/support/csv_converter.rb +3 -10
- data/lib/rails_admin/version.rb +8 -7
- data/lib/rails_admin.rb +7 -0
- data/lib/tasks/assets.rake +23 -0
- data/package.json +12 -7
- data/src/rails_admin/base.js +18 -15
- data/src/rails_admin/filter-box.js +7 -4
- data/src/rails_admin/filtering-multiselect.js +1 -1
- data/src/rails_admin/filtering-select.js +8 -8
- data/src/rails_admin/flatpickr.js +14 -0
- data/src/rails_admin/remote-form.js +74 -48
- data/src/rails_admin/styles/base/theming.scss +48 -25
- data/src/rails_admin/styles/base.scss +25 -1
- data/src/rails_admin/styles/filtering-select.scss +23 -62
- data/src/rails_admin/ui.js +1 -1
- data/src/rails_admin/vendor/jquery_nested_form.js +4 -4
- data/src/rails_admin/widgets.js +44 -11
- metadata +34 -130
- data/app/assets/javascripts/rails_admin/application.js.erb +0 -30
- data/app/assets/javascripts/rails_admin/custom/ui.js +0 -1
- data/app/assets/stylesheets/rails_admin/application.scss.erb +0 -35
- data/app/assets/stylesheets/rails_admin/custom/mixins.scss +0 -11
- data/app/assets/stylesheets/rails_admin/custom/theming.scss +0 -13
- data/app/assets/stylesheets/rails_admin/custom/variables.scss +0 -15
- data/lib/generators/rails_admin/importmap_formatter.rb +0 -28
- data/lib/generators/rails_admin/templates/rails_admin.vite.js +0 -2
- data/lib/generators/rails_admin/templates/rails_admin.webpacker.js +0 -2
- data/lib/rails_admin/adapters/active_record/object_extension.rb +0 -13
- data/lib/rails_admin/adapters/active_record.rb.bak +0 -348
- data/lib/rails_admin/adapters/mongoid/object_extension.rb +0 -29
- data/lib/rails_admin/support/es_module_processor.rb +0 -23
- data/vendor/assets/fonts/rails_admin/fa-solid-900.ttf +0 -0
- data/vendor/assets/javascripts/rails_admin/bootstrap.js +0 -5046
- data/vendor/assets/javascripts/rails_admin/flatpickr-with-locales.js +0 -11246
- data/vendor/assets/javascripts/rails_admin/jquery-ui/data.js +0 -41
- data/vendor/assets/javascripts/rails_admin/jquery-ui/effect.js +0 -1637
- data/vendor/assets/javascripts/rails_admin/jquery-ui/ie.js +0 -17
- data/vendor/assets/javascripts/rails_admin/jquery-ui/keycode.js +0 -47
- data/vendor/assets/javascripts/rails_admin/jquery-ui/position.js +0 -500
- data/vendor/assets/javascripts/rails_admin/jquery-ui/safe-active-element.js +0 -42
- data/vendor/assets/javascripts/rails_admin/jquery-ui/scroll-parent.js +0 -47
- data/vendor/assets/javascripts/rails_admin/jquery-ui/unique-id.js +0 -51
- data/vendor/assets/javascripts/rails_admin/jquery-ui/version.js +0 -17
- data/vendor/assets/javascripts/rails_admin/jquery-ui/widget.js +0 -735
- data/vendor/assets/javascripts/rails_admin/jquery-ui/widgets/autocomplete.js +0 -689
- data/vendor/assets/javascripts/rails_admin/jquery-ui/widgets/menu.js +0 -680
- data/vendor/assets/javascripts/rails_admin/jquery-ui/widgets/mouse.js +0 -230
- data/vendor/assets/javascripts/rails_admin/jquery-ui/widgets/sortable.js +0 -1561
- data/vendor/assets/javascripts/rails_admin/jquery3.js +0 -10881
- data/vendor/assets/javascripts/rails_admin/popper.js +0 -1974
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_accordion.scss +0 -118
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_alert.scss +0 -57
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_badge.scss +0 -29
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_breadcrumb.scss +0 -28
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_button-group.scss +0 -139
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_buttons.scss +0 -111
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_card.scss +0 -216
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_carousel.scss +0 -229
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_close.scss +0 -40
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_containers.scss +0 -41
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_dropdown.scss +0 -240
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_forms.scss +0 -9
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_functions.scss +0 -302
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_grid.scss +0 -33
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_helpers.scss +0 -9
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_images.scss +0 -42
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_list-group.scss +0 -174
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_mixins.scss +0 -43
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_modal.scss +0 -209
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_nav.scss +0 -139
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_navbar.scss +0 -335
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_offcanvas.scss +0 -83
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_pagination.scss +0 -64
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_placeholders.scss +0 -51
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_popover.scss +0 -158
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_progress.scss +0 -48
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_reboot.scss +0 -625
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_root.scss +0 -54
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_spinners.scss +0 -69
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_tables.scss +0 -155
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_toasts.scss +0 -51
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_tooltip.scss +0 -115
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_transitions.scss +0 -27
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_type.scss +0 -104
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_utilities.scss +0 -630
- data/vendor/assets/stylesheets/rails_admin/bootstrap/_variables.scss +0 -1641
- data/vendor/assets/stylesheets/rails_admin/bootstrap/bootstrap.scss +0 -53
- data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_floating-labels.scss +0 -63
- data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_form-check.scss +0 -152
- data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_form-control.scss +0 -219
- data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_form-range.scss +0 -91
- data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_form-select.scss +0 -72
- data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_form-text.scss +0 -11
- data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_input-group.scss +0 -121
- data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_labels.scss +0 -36
- data/vendor/assets/stylesheets/rails_admin/bootstrap/forms/_validation.scss +0 -12
- data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_clearfix.scss +0 -3
- data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_colored-links.scss +0 -12
- data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_position.scss +0 -30
- data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_ratio.scss +0 -26
- data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_stacks.scss +0 -15
- data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_stretched-link.scss +0 -15
- data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_text-truncation.scss +0 -7
- data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_visually-hidden.scss +0 -8
- data/vendor/assets/stylesheets/rails_admin/bootstrap/helpers/_vr.scss +0 -8
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_alert.scss +0 -11
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_backdrop.scss +0 -14
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_border-radius.scss +0 -78
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_box-shadow.scss +0 -18
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_breakpoints.scss +0 -127
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_buttons.scss +0 -133
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_caret.scss +0 -64
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_clearfix.scss +0 -9
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_color-scheme.scss +0 -7
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_container.scss +0 -9
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_deprecate.scss +0 -10
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_forms.scss +0 -144
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_gradients.scss +0 -47
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_grid.scss +0 -151
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_image.scss +0 -16
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_list-group.scss +0 -24
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_lists.scss +0 -7
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_pagination.scss +0 -31
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_reset-text.scss +0 -17
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_resize.scss +0 -6
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_table-variants.scss +0 -21
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_text-truncate.scss +0 -8
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_transition.scss +0 -26
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_utilities.scss +0 -89
- data/vendor/assets/stylesheets/rails_admin/bootstrap/mixins/_visually-hidden.scss +0 -29
- data/vendor/assets/stylesheets/rails_admin/bootstrap/utilities/_api.scss +0 -47
- data/vendor/assets/stylesheets/rails_admin/bootstrap/vendor/_rfs.scss +0 -354
- data/vendor/assets/stylesheets/rails_admin/flatpickr.css +0 -791
- data/vendor/assets/stylesheets/rails_admin/font-awesome.scss +0 -6351
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*! RailsAdmin - generated from src/, do not edit - https://github.com/railsadminteam/rails_admin */
|
|
2
|
+
(()=>{var Jh=Object.create;var vo=Object.defineProperty;var Gh=Object.getOwnPropertyDescriptor;var Xh=Object.getOwnPropertyNames;var Qh=Object.getPrototypeOf,Zh=Object.prototype.hasOwnProperty;var mu=i=>{throw TypeError(i)};var $h=(i,e,t)=>e in i?vo(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var Ci=(i,e)=>()=>(i&&(e=i(i=0)),e);var gu=(i,e)=>()=>(e||i((e={exports:{}}).exports,e),e.exports),Za=(i,e)=>{for(var t in e)vo(i,t,{get:e[t],enumerable:!0})},ep=(i,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Xh(e))!Zh.call(i,o)&&o!==t&&vo(i,o,{get:()=>e[o],enumerable:!(r=Gh(e,o))||r.enumerable});return i};var fi=(i,e,t)=>(t=i!=null?Jh(Qh(i)):{},ep(e||!i||!i.__esModule?vo(t,"default",{value:i,enumerable:!0}):t,i));var Z=(i,e,t)=>$h(i,typeof e!="symbol"?e+"":e,t),$a=(i,e,t)=>e.has(i)||mu("Cannot "+t);var ce=(i,e,t)=>($a(i,e,"read from private field"),t?t.call(i):e.get(i)),Te=(i,e,t)=>e.has(i)?mu("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Fe=(i,e,t,r)=>($a(i,e,"write to private field"),r?r.call(i,t):e.set(i,t),t),pe=(i,e,t)=>($a(i,e,"access private method"),t);var gn,zo=Ci(()=>{gn={logger:typeof console<"u"?console:void 0,WebSocket:typeof WebSocket<"u"?WebSocket:void 0}});var Re,Pr=Ci(()=>{zo();Re={log(...i){this.enabled&&(i.push(Date.now()),gn.logger.log("[ActionCable]",...i))}}});var Rs,Yo,Hs,Ko,Fl=Ci(()=>{Pr();Rs=()=>new Date().getTime(),Yo=i=>(Rs()-i)/1e3,Hs=class{constructor(e){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=e,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=Rs(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),Re.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=Rs(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),Re.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordMessage(){this.pingedAt=Rs()}recordConnect(){this.reconnectAttempts=0,delete this.disconnectedAt,Re.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=Rs(),Re.log("ConnectionMonitor recorded disconnect")}startPolling(){this.stopPolling(),this.poll()}stopPolling(){clearTimeout(this.pollTimeout)}poll(){this.pollTimeout=setTimeout(()=>{this.reconnectIfStale(),this.poll()},this.getPollInterval())}getPollInterval(){let{staleThreshold:e,reconnectionBackoffRate:t}=this.constructor,r=Math.pow(1+t,Math.min(this.reconnectAttempts,10)),l=(this.reconnectAttempts===0?1:t)*Math.random();return e*1e3*r*(1+l)}reconnectIfStale(){this.connectionIsStale()&&(Re.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${Yo(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?Re.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${Yo(this.disconnectedAt)} s`):(Re.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return Yo(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&Yo(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){document.visibilityState==="visible"&&setTimeout(()=>{(this.connectionIsStale()||!this.connection.isOpen())&&(Re.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())},200)}};Hs.staleThreshold=6;Hs.reconnectionBackoffRate=.15;Ko=Hs});var Fs,jl=Ci(()=>{Fs={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart",remote:"remote"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]}});var js,Wl,om,bf,Ws,Jo,ql=Ci(()=>{zo();Fl();jl();Pr();({message_types:js,protocols:Wl}=Fs),om=Wl.slice(0,Wl.length-1),bf=[].indexOf,Ws=class{constructor(e){this.open=this.open.bind(this),this.consumer=e,this.subscriptions=this.consumer.subscriptions,this.monitor=new Ko(this),this.disconnected=!0}send(e){return this.isOpen()?(this.webSocket.send(JSON.stringify(e)),!0):!1}open(){if(this.isActive())return Re.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1;{let e=[...Wl,...this.consumer.subprotocols||[]];return Re.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${e}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new gn.WebSocket(this.consumer.url,e),this.installEventHandlers(),this.monitor.start(),!0}}close({allowReconnect:e}={allowReconnect:!0}){if(e||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(Re.log(`Reopening WebSocket, current state is ${this.getState()}`),this.isActive())try{return this.close()}catch(e){Re.log("Failed to reopen WebSocket",e)}finally{Re.log(`Reopening WebSocket in ${this.constructor.reopenDelay}ms`),setTimeout(this.open,this.constructor.reopenDelay)}else return this.open()}getProtocol(){if(this.webSocket)return this.webSocket.protocol}isOpen(){return this.isState("open")}isActive(){return this.isState("open","connecting")}triedToReconnect(){return this.monitor.reconnectAttempts>0}isProtocolSupported(){return bf.call(om,this.getProtocol())>=0}isState(...e){return bf.call(e,this.getState())>=0}getState(){if(this.webSocket){for(let e in gn.WebSocket)if(gn.WebSocket[e]===this.webSocket.readyState)return e.toLowerCase()}return null}installEventHandlers(){for(let e in this.events){let t=this.events[e].bind(this);this.webSocket[`on${e}`]=t}}uninstallEventHandlers(){for(let e in this.events)this.webSocket[`on${e}`]=function(){}}};Ws.reopenDelay=500;Ws.prototype.events={message(i){if(!this.isProtocolSupported())return;let{identifier:e,message:t,reason:r,reconnect:o,type:l}=JSON.parse(i.data);switch(this.monitor.recordMessage(),l){case js.welcome:return this.triedToReconnect()&&(this.reconnectAttempted=!0),this.monitor.recordConnect(),this.subscriptions.reload();case js.disconnect:return Re.log(`Disconnecting. Reason: ${r}`),this.close({allowReconnect:o});case js.ping:return null;case js.confirmation:return this.subscriptions.confirmSubscription(e),this.reconnectAttempted?(this.reconnectAttempted=!1,this.subscriptions.notify(e,"connected",{reconnected:!0})):this.subscriptions.notify(e,"connected",{reconnected:!1});case js.rejection:return this.subscriptions.reject(e);default:return this.subscriptions.notify(e,"received",t)}},open(){if(Re.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return Re.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(i){if(Re.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){Re.log("WebSocket onerror event")}};Jo=Ws});var am,Kn,Bl=Ci(()=>{am=function(i,e){if(e!=null)for(let t in e){let r=e[t];i[t]=r}return i},Kn=class{constructor(e,t={},r){this.consumer=e,this.identifier=JSON.stringify(t),am(this,r)}perform(e,t={}){return t.action=e,this.send(t)}send(e){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(e)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}});var Vl,Go,Ul=Ci(()=>{Pr();Vl=class{constructor(e){this.subscriptions=e,this.pendingSubscriptions=[]}guarantee(e){this.pendingSubscriptions.indexOf(e)==-1?(Re.log(`SubscriptionGuarantor guaranteeing ${e.identifier}`),this.pendingSubscriptions.push(e)):Re.log(`SubscriptionGuarantor already guaranteeing ${e.identifier}`),this.startGuaranteeing()}forget(e){Re.log(`SubscriptionGuarantor forgetting ${e.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter(t=>t!==e)}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout(()=>{this.subscriptions&&typeof this.subscriptions.subscribe=="function"&&this.pendingSubscriptions.map(e=>{Re.log(`SubscriptionGuarantor resubscribing ${e.identifier}`),this.subscriptions.subscribe(e)})},500)}},Go=Vl});var Jn,zl=Ci(()=>{Bl();Ul();Pr();Jn=class{constructor(e){this.consumer=e,this.guarantor=new Go(this),this.subscriptions=[]}create(e,t){let r=e,o=typeof r=="object"?r:{channel:r},l=new Kn(this.consumer,o,t);return this.add(l)}add(e){return this.subscriptions.push(e),this.consumer.ensureActiveConnection(),this.notify(e,"initialized"),this.subscribe(e),e}remove(e){return this.forget(e),this.findAll(e.identifier).length||this.sendCommand(e,"unsubscribe"),e}reject(e){return this.findAll(e).map(t=>(this.forget(t),this.notify(t,"rejected"),t))}forget(e){return this.guarantor.forget(e),this.subscriptions=this.subscriptions.filter(t=>t!==e),e}findAll(e){return this.subscriptions.filter(t=>t.identifier===e)}reload(){return this.subscriptions.map(e=>this.subscribe(e))}notifyAll(e,...t){return this.subscriptions.map(r=>this.notify(r,e,...t))}notify(e,t,...r){let o;return typeof e=="string"?o=this.findAll(e):o=[e],o.map(l=>typeof l[t]=="function"?l[t](...r):void 0)}subscribe(e){this.sendCommand(e,"subscribe")&&this.guarantor.guarantee(e)}confirmSubscription(e){Re.log(`Subscription confirmed ${e}`),this.findAll(e).map(t=>this.guarantor.forget(t))}sendCommand(e,t){let{identifier:r}=e;return this.consumer.send({command:t,identifier:r})}}});function Yl(i){if(typeof i=="function"&&(i=i()),i&&!/^wss?:/i.test(i)){let e=document.createElement("a");return e.href=i,e.href=e.href,e.protocol=e.protocol.replace("http","ws"),e.href}else return i}var Nr,yf=Ci(()=>{ql();zl();Nr=class{constructor(e){this._url=e,this.subscriptions=new Jn(this),this.connection=new Jo(this),this.subprotocols=[]}get url(){return Yl(this._url)}send(e){return this.connection.send(e)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}addSubProtocol(e){this.subprotocols=[...this.subprotocols,e]}}});var _f={};Za(_f,{Connection:()=>Jo,ConnectionMonitor:()=>Ko,Consumer:()=>Nr,INTERNAL:()=>Fs,Subscription:()=>Kn,SubscriptionGuarantor:()=>Go,Subscriptions:()=>Jn,adapters:()=>gn,createConsumer:()=>lm,createWebSocketURL:()=>Yl,getConfig:()=>wf,logger:()=>Re});function lm(i=wf("url")||Fs.default_mount_path){return new Nr(i)}function wf(i){let e=document.head.querySelector(`meta[name='action-cable-${i}']`);if(e)return e.getAttribute("content")}var Ef=Ci(()=>{ql();Fl();yf();jl();Bl();zl();Ul();zo();Pr()});var di=gu((qf,Zo)=>{(function(i,e){"use strict";typeof Zo=="object"&&typeof Zo.exports=="object"?Zo.exports=i.document?e(i,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(i)})(typeof window<"u"?window:qf,function(i,e){"use strict";var t=[],r=Object.getPrototypeOf,o=t.slice,l=t.flat?function(n){return t.flat.call(n)}:function(n){return t.concat.apply([],n)},m=t.push,f=t.indexOf,y={},A=y.toString,S=y.hasOwnProperty,N=S.toString,L=N.call(Object),M={},T=function(a){return typeof a=="function"&&typeof a.nodeType!="number"&&typeof a.item!="function"},k=function(a){return a!=null&&a===a.window},D=i.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function g(n,a,c){c=c||D;var h,v,b=c.createElement("script");if(b.text=n,a)for(h in w)v=a[h]||a.getAttribute&&a.getAttribute(h),v&&b.setAttribute(h,v);c.head.appendChild(b).parentNode.removeChild(b)}function d(n){return n==null?n+"":typeof n=="object"||typeof n=="function"?y[A.call(n)]||"object":typeof n}var u="3.7.1",p=/HTML$/i,s=function(n,a){return new s.fn.init(n,a)};s.fn=s.prototype={jquery:u,constructor:s,length:0,toArray:function(){return o.call(this)},get:function(n){return n==null?o.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var a=s.merge(this.constructor(),n);return a.prevObject=this,a},each:function(n){return s.each(this,n)},map:function(n){return this.pushStack(s.map(this,function(a,c){return n.call(a,c,a)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(s.grep(this,function(n,a){return(a+1)%2}))},odd:function(){return this.pushStack(s.grep(this,function(n,a){return a%2}))},eq:function(n){var a=this.length,c=+n+(n<0?a:0);return this.pushStack(c>=0&&c<a?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:m,sort:t.sort,splice:t.splice},s.extend=s.fn.extend=function(){var n,a,c,h,v,b,_=arguments[0]||{},P=1,O=arguments.length,R=!1;for(typeof _=="boolean"&&(R=_,_=arguments[P]||{},P++),typeof _!="object"&&!T(_)&&(_={}),P===O&&(_=this,P--);P<O;P++)if((n=arguments[P])!=null)for(a in n)h=n[a],!(a==="__proto__"||_===h)&&(R&&h&&(s.isPlainObject(h)||(v=Array.isArray(h)))?(c=_[a],v&&!Array.isArray(c)?b=[]:!v&&!s.isPlainObject(c)?b={}:b=c,v=!1,_[a]=s.extend(R,b,h)):h!==void 0&&(_[a]=h));return _},s.extend({expando:"jQuery"+(u+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n)},noop:function(){},isPlainObject:function(n){var a,c;return!n||A.call(n)!=="[object Object]"?!1:(a=r(n),a?(c=S.call(a,"constructor")&&a.constructor,typeof c=="function"&&N.call(c)===L):!0)},isEmptyObject:function(n){var a;for(a in n)return!1;return!0},globalEval:function(n,a,c){g(n,{nonce:a&&a.nonce},c)},each:function(n,a){var c,h=0;if(j(n))for(c=n.length;h<c&&a.call(n[h],h,n[h])!==!1;h++);else for(h in n)if(a.call(n[h],h,n[h])===!1)break;return n},text:function(n){var a,c="",h=0,v=n.nodeType;if(!v)for(;a=n[h++];)c+=s.text(a);return v===1||v===11?n.textContent:v===9?n.documentElement.textContent:v===3||v===4?n.nodeValue:c},makeArray:function(n,a){var c=a||[];return n!=null&&(j(Object(n))?s.merge(c,typeof n=="string"?[n]:n):m.call(c,n)),c},inArray:function(n,a,c){return a==null?-1:f.call(a,n,c)},isXMLDoc:function(n){var a=n&&n.namespaceURI,c=n&&(n.ownerDocument||n).documentElement;return!p.test(a||c&&c.nodeName||"HTML")},merge:function(n,a){for(var c=+a.length,h=0,v=n.length;h<c;h++)n[v++]=a[h];return n.length=v,n},grep:function(n,a,c){for(var h,v=[],b=0,_=n.length,P=!c;b<_;b++)h=!a(n[b],b),h!==P&&v.push(n[b]);return v},map:function(n,a,c){var h,v,b=0,_=[];if(j(n))for(h=n.length;b<h;b++)v=a(n[b],b,c),v!=null&&_.push(v);else for(b in n)v=a(n[b],b,c),v!=null&&_.push(v);return l(_)},guid:1,support:M}),typeof Symbol=="function"&&(s.fn[Symbol.iterator]=t[Symbol.iterator]),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,a){y["[object "+a+"]"]=a.toLowerCase()});function j(n){var a=!!n&&"length"in n&&n.length,c=d(n);return T(n)||k(n)?!1:c==="array"||a===0||typeof a=="number"&&a>0&&a-1 in n}function B(n,a){return n.nodeName&&n.nodeName.toLowerCase()===a.toLowerCase()}var K=t.pop,J=t.sort,ae=t.splice,te="[\\x20\\t\\r\\n\\f]",we=new RegExp("^"+te+"+|((?:^|[^\\\\])(?:\\\\.)*)"+te+"+$","g");s.contains=function(n,a){var c=a&&a.parentNode;return n===c||!!(c&&c.nodeType===1&&(n.contains?n.contains(c):n.compareDocumentPosition&&n.compareDocumentPosition(c)&16))};var Ce=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function ct(n,a){return a?n==="\0"?"\uFFFD":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n}s.escapeSelector=function(n){return(n+"").replace(Ce,ct)};var Le=D,ze=m;(function(){var n,a,c,h,v,b=ze,_,P,O,R,U,Y=s.expando,W=0,X=0,ve=ho(),xe=ho(),_e=ho(),bt=ho(),ot=function(x,I){return x===I&&(v=!0),0},_i="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Ei="(?:\\\\[\\da-fA-F]{1,6}"+te+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Ae="\\["+te+"*("+Ei+")(?:"+te+"*([*^$|!~]?=)"+te+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Ei+"))|)"+te+"*\\]",jn=":("+Ei+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Ae+")*)|.*)\\)|)",ke=new RegExp(te+"+","g"),Je=new RegExp("^"+te+"*,"+te+"*"),fs=new RegExp("^"+te+"*([>+~]|"+te+")"+te+"*"),za=new RegExp(te+"|>"),Si=new RegExp(jn),ds=new RegExp("^"+Ei+"$"),Ai={ID:new RegExp("^#("+Ei+")"),CLASS:new RegExp("^\\.("+Ei+")"),TAG:new RegExp("^("+Ei+"|[*])"),ATTR:new RegExp("^"+Ae),PSEUDO:new RegExp("^"+jn),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+te+"*(even|odd|(([+-]|)(\\d*)n|)"+te+"*(?:([+-]|)"+te+"*(\\d+)|))"+te+"*\\)|)","i"),bool:new RegExp("^(?:"+_i+")$","i"),needsContext:new RegExp("^"+te+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+te+"*((?:-\\d)?\\d*)"+te+"*\\)|)(?=[^-]|$)","i")},sn=/^(?:input|select|textarea|button)$/i,on=/^h\d$/i,Jt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ya=/[+~]/,Fi=new RegExp("\\\\[\\da-fA-F]{1,6}"+te+"?|\\\\([^\\r\\n\\f])","g"),ji=function(x,I){var F="0x"+x.slice(1)-65536;return I||(F<0?String.fromCharCode(F+65536):String.fromCharCode(F>>10|55296,F&1023|56320))},qh=function(){an()},Bh=mo(function(x){return x.disabled===!0&&B(x,"fieldset")},{dir:"parentNode",next:"legend"});function Vh(){try{return _.activeElement}catch{}}try{b.apply(t=o.call(Le.childNodes),Le.childNodes),t[Le.childNodes.length].nodeType}catch{b={apply:function(I,F){ze.apply(I,o.call(F))},call:function(I){ze.apply(I,o.call(arguments,1))}}}function Ie(x,I,F,q){var z,$,ie,le,ne,Ee,me,ye=I&&I.ownerDocument,Se=I?I.nodeType:9;if(F=F||[],typeof x!="string"||!x||Se!==1&&Se!==9&&Se!==11)return F;if(!q&&(an(I),I=I||_,O)){if(Se!==11&&(ne=Jt.exec(x)))if(z=ne[1]){if(Se===9)if(ie=I.getElementById(z)){if(ie.id===z)return b.call(F,ie),F}else return F;else if(ye&&(ie=ye.getElementById(z))&&Ie.contains(I,ie)&&ie.id===z)return b.call(F,ie),F}else{if(ne[2])return b.apply(F,I.getElementsByTagName(x)),F;if((z=ne[3])&&I.getElementsByClassName)return b.apply(F,I.getElementsByClassName(z)),F}if(!bt[x+" "]&&(!R||!R.test(x))){if(me=x,ye=I,Se===1&&(za.test(x)||fs.test(x))){for(ye=Ya.test(x)&&Ka(I.parentNode)||I,(ye!=I||!M.scope)&&((le=I.getAttribute("id"))?le=s.escapeSelector(le):I.setAttribute("id",le=Y)),Ee=hs(x),$=Ee.length;$--;)Ee[$]=(le?"#"+le:":scope")+" "+po(Ee[$]);me=Ee.join(",")}try{return b.apply(F,ye.querySelectorAll(me)),F}catch{bt(x,!0)}finally{le===Y&&I.removeAttribute("id")}}}return pu(x.replace(we,"$1"),I,F,q)}function ho(){var x=[];function I(F,q){return x.push(F+" ")>a.cacheLength&&delete I[x.shift()],I[F+" "]=q}return I}function ui(x){return x[Y]=!0,x}function pr(x){var I=_.createElement("fieldset");try{return!!x(I)}catch{return!1}finally{I.parentNode&&I.parentNode.removeChild(I),I=null}}function Uh(x){return function(I){return B(I,"input")&&I.type===x}}function zh(x){return function(I){return(B(I,"input")||B(I,"button"))&&I.type===x}}function du(x){return function(I){return"form"in I?I.parentNode&&I.disabled===!1?"label"in I?"label"in I.parentNode?I.parentNode.disabled===x:I.disabled===x:I.isDisabled===x||I.isDisabled!==!x&&Bh(I)===x:I.disabled===x:"label"in I?I.disabled===x:!1}}function Wn(x){return ui(function(I){return I=+I,ui(function(F,q){for(var z,$=x([],F.length,I),ie=$.length;ie--;)F[z=$[ie]]&&(F[z]=!(q[z]=F[z]))})})}function Ka(x){return x&&typeof x.getElementsByTagName<"u"&&x}function an(x){var I,F=x?x.ownerDocument||x:Le;return F==_||F.nodeType!==9||!F.documentElement||(_=F,P=_.documentElement,O=!s.isXMLDoc(_),U=P.matches||P.webkitMatchesSelector||P.msMatchesSelector,P.msMatchesSelector&&Le!=_&&(I=_.defaultView)&&I.top!==I&&I.addEventListener("unload",qh),M.getById=pr(function(q){return P.appendChild(q).id=s.expando,!_.getElementsByName||!_.getElementsByName(s.expando).length}),M.disconnectedMatch=pr(function(q){return U.call(q,"*")}),M.scope=pr(function(){return _.querySelectorAll(":scope")}),M.cssHas=pr(function(){try{return _.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),M.getById?(a.filter.ID=function(q){var z=q.replace(Fi,ji);return function($){return $.getAttribute("id")===z}},a.find.ID=function(q,z){if(typeof z.getElementById<"u"&&O){var $=z.getElementById(q);return $?[$]:[]}}):(a.filter.ID=function(q){var z=q.replace(Fi,ji);return function($){var ie=typeof $.getAttributeNode<"u"&&$.getAttributeNode("id");return ie&&ie.value===z}},a.find.ID=function(q,z){if(typeof z.getElementById<"u"&&O){var $,ie,le,ne=z.getElementById(q);if(ne){if($=ne.getAttributeNode("id"),$&&$.value===q)return[ne];for(le=z.getElementsByName(q),ie=0;ne=le[ie++];)if($=ne.getAttributeNode("id"),$&&$.value===q)return[ne]}return[]}}),a.find.TAG=function(q,z){return typeof z.getElementsByTagName<"u"?z.getElementsByTagName(q):z.querySelectorAll(q)},a.find.CLASS=function(q,z){if(typeof z.getElementsByClassName<"u"&&O)return z.getElementsByClassName(q)},R=[],pr(function(q){var z;P.appendChild(q).innerHTML="<a id='"+Y+"' href='' disabled='disabled'></a><select id='"+Y+"-\r\\' disabled='disabled'><option selected=''></option></select>",q.querySelectorAll("[selected]").length||R.push("\\["+te+"*(?:value|"+_i+")"),q.querySelectorAll("[id~="+Y+"-]").length||R.push("~="),q.querySelectorAll("a#"+Y+"+*").length||R.push(".#.+[+~]"),q.querySelectorAll(":checked").length||R.push(":checked"),z=_.createElement("input"),z.setAttribute("type","hidden"),q.appendChild(z).setAttribute("name","D"),P.appendChild(q).disabled=!0,q.querySelectorAll(":disabled").length!==2&&R.push(":enabled",":disabled"),z=_.createElement("input"),z.setAttribute("name",""),q.appendChild(z),q.querySelectorAll("[name='']").length||R.push("\\["+te+"*name"+te+"*="+te+`*(?:''|"")`)}),M.cssHas||R.push(":has"),R=R.length&&new RegExp(R.join("|")),ot=function(q,z){if(q===z)return v=!0,0;var $=!q.compareDocumentPosition-!z.compareDocumentPosition;return $||($=(q.ownerDocument||q)==(z.ownerDocument||z)?q.compareDocumentPosition(z):1,$&1||!M.sortDetached&&z.compareDocumentPosition(q)===$?q===_||q.ownerDocument==Le&&Ie.contains(Le,q)?-1:z===_||z.ownerDocument==Le&&Ie.contains(Le,z)?1:h?f.call(h,q)-f.call(h,z):0:$&4?-1:1)}),_}Ie.matches=function(x,I){return Ie(x,null,null,I)},Ie.matchesSelector=function(x,I){if(an(x),O&&!bt[I+" "]&&(!R||!R.test(I)))try{var F=U.call(x,I);if(F||M.disconnectedMatch||x.document&&x.document.nodeType!==11)return F}catch{bt(I,!0)}return Ie(I,_,null,[x]).length>0},Ie.contains=function(x,I){return(x.ownerDocument||x)!=_&&an(x),s.contains(x,I)},Ie.attr=function(x,I){(x.ownerDocument||x)!=_&&an(x);var F=a.attrHandle[I.toLowerCase()],q=F&&S.call(a.attrHandle,I.toLowerCase())?F(x,I,!O):void 0;return q!==void 0?q:x.getAttribute(I)},Ie.error=function(x){throw new Error("Syntax error, unrecognized expression: "+x)},s.uniqueSort=function(x){var I,F=[],q=0,z=0;if(v=!M.sortStable,h=!M.sortStable&&o.call(x,0),J.call(x,ot),v){for(;I=x[z++];)I===x[z]&&(q=F.push(z));for(;q--;)ae.call(x,F[q],1)}return h=null,x},s.fn.uniqueSort=function(){return this.pushStack(s.uniqueSort(o.apply(this)))},a=s.expr={cacheLength:50,createPseudo:ui,match:Ai,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(x){return x[1]=x[1].replace(Fi,ji),x[3]=(x[3]||x[4]||x[5]||"").replace(Fi,ji),x[2]==="~="&&(x[3]=" "+x[3]+" "),x.slice(0,4)},CHILD:function(x){return x[1]=x[1].toLowerCase(),x[1].slice(0,3)==="nth"?(x[3]||Ie.error(x[0]),x[4]=+(x[4]?x[5]+(x[6]||1):2*(x[3]==="even"||x[3]==="odd")),x[5]=+(x[7]+x[8]||x[3]==="odd")):x[3]&&Ie.error(x[0]),x},PSEUDO:function(x){var I,F=!x[6]&&x[2];return Ai.CHILD.test(x[0])?null:(x[3]?x[2]=x[4]||x[5]||"":F&&Si.test(F)&&(I=hs(F,!0))&&(I=F.indexOf(")",F.length-I)-F.length)&&(x[0]=x[0].slice(0,I),x[2]=F.slice(0,I)),x.slice(0,3))}},filter:{TAG:function(x){var I=x.replace(Fi,ji).toLowerCase();return x==="*"?function(){return!0}:function(F){return B(F,I)}},CLASS:function(x){var I=ve[x+" "];return I||(I=new RegExp("(^|"+te+")"+x+"("+te+"|$)"))&&ve(x,function(F){return I.test(typeof F.className=="string"&&F.className||typeof F.getAttribute<"u"&&F.getAttribute("class")||"")})},ATTR:function(x,I,F){return function(q){var z=Ie.attr(q,x);return z==null?I==="!=":I?(z+="",I==="="?z===F:I==="!="?z!==F:I==="^="?F&&z.indexOf(F)===0:I==="*="?F&&z.indexOf(F)>-1:I==="$="?F&&z.slice(-F.length)===F:I==="~="?(" "+z.replace(ke," ")+" ").indexOf(F)>-1:I==="|="?z===F||z.slice(0,F.length+1)===F+"-":!1):!0}},CHILD:function(x,I,F,q,z){var $=x.slice(0,3)!=="nth",ie=x.slice(-4)!=="last",le=I==="of-type";return q===1&&z===0?function(ne){return!!ne.parentNode}:function(ne,Ee,me){var ye,Se,de,je,Ht,St=$!==ie?"nextSibling":"previousSibling",Gt=ne.parentNode,Ti=le&&ne.nodeName.toLowerCase(),mr=!me&&!le,Mt=!1;if(Gt){if($){for(;St;){for(de=ne;de=de[St];)if(le?B(de,Ti):de.nodeType===1)return!1;Ht=St=x==="only"&&!Ht&&"nextSibling"}return!0}if(Ht=[ie?Gt.firstChild:Gt.lastChild],ie&&mr){for(Se=Gt[Y]||(Gt[Y]={}),ye=Se[x]||[],je=ye[0]===W&&ye[1],Mt=je&&ye[2],de=je&&Gt.childNodes[je];de=++je&&de&&de[St]||(Mt=je=0)||Ht.pop();)if(de.nodeType===1&&++Mt&&de===ne){Se[x]=[W,je,Mt];break}}else if(mr&&(Se=ne[Y]||(ne[Y]={}),ye=Se[x]||[],je=ye[0]===W&&ye[1],Mt=je),Mt===!1)for(;(de=++je&&de&&de[St]||(Mt=je=0)||Ht.pop())&&!((le?B(de,Ti):de.nodeType===1)&&++Mt&&(mr&&(Se=de[Y]||(de[Y]={}),Se[x]=[W,Mt]),de===ne)););return Mt-=z,Mt===q||Mt%q===0&&Mt/q>=0}}},PSEUDO:function(x,I){var F,q=a.pseudos[x]||a.setFilters[x.toLowerCase()]||Ie.error("unsupported pseudo: "+x);return q[Y]?q(I):q.length>1?(F=[x,x,"",I],a.setFilters.hasOwnProperty(x.toLowerCase())?ui(function(z,$){for(var ie,le=q(z,I),ne=le.length;ne--;)ie=f.call(z,le[ne]),z[ie]=!($[ie]=le[ne])}):function(z){return q(z,0,F)}):q}},pseudos:{not:ui(function(x){var I=[],F=[],q=Qa(x.replace(we,"$1"));return q[Y]?ui(function(z,$,ie,le){for(var ne,Ee=q(z,null,le,[]),me=z.length;me--;)(ne=Ee[me])&&(z[me]=!($[me]=ne))}):function(z,$,ie){return I[0]=z,q(I,null,ie,F),I[0]=null,!F.pop()}}),has:ui(function(x){return function(I){return Ie(x,I).length>0}}),contains:ui(function(x){return x=x.replace(Fi,ji),function(I){return(I.textContent||s.text(I)).indexOf(x)>-1}}),lang:ui(function(x){return ds.test(x||"")||Ie.error("unsupported lang: "+x),x=x.replace(Fi,ji).toLowerCase(),function(I){var F;do if(F=O?I.lang:I.getAttribute("xml:lang")||I.getAttribute("lang"))return F=F.toLowerCase(),F===x||F.indexOf(x+"-")===0;while((I=I.parentNode)&&I.nodeType===1);return!1}}),target:function(x){var I=i.location&&i.location.hash;return I&&I.slice(1)===x.id},root:function(x){return x===P},focus:function(x){return x===Vh()&&_.hasFocus()&&!!(x.type||x.href||~x.tabIndex)},enabled:du(!1),disabled:du(!0),checked:function(x){return B(x,"input")&&!!x.checked||B(x,"option")&&!!x.selected},selected:function(x){return x.parentNode&&x.parentNode.selectedIndex,x.selected===!0},empty:function(x){for(x=x.firstChild;x;x=x.nextSibling)if(x.nodeType<6)return!1;return!0},parent:function(x){return!a.pseudos.empty(x)},header:function(x){return on.test(x.nodeName)},input:function(x){return sn.test(x.nodeName)},button:function(x){return B(x,"input")&&x.type==="button"||B(x,"button")},text:function(x){var I;return B(x,"input")&&x.type==="text"&&((I=x.getAttribute("type"))==null||I.toLowerCase()==="text")},first:Wn(function(){return[0]}),last:Wn(function(x,I){return[I-1]}),eq:Wn(function(x,I,F){return[F<0?F+I:F]}),even:Wn(function(x,I){for(var F=0;F<I;F+=2)x.push(F);return x}),odd:Wn(function(x,I){for(var F=1;F<I;F+=2)x.push(F);return x}),lt:Wn(function(x,I,F){var q;for(F<0?q=F+I:F>I?q=I:q=F;--q>=0;)x.push(q);return x}),gt:Wn(function(x,I,F){for(var q=F<0?F+I:F;++q<I;)x.push(q);return x})}},a.pseudos.nth=a.pseudos.eq;for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})a.pseudos[n]=Uh(n);for(n in{submit:!0,reset:!0})a.pseudos[n]=zh(n);function hu(){}hu.prototype=a.filters=a.pseudos,a.setFilters=new hu;function hs(x,I){var F,q,z,$,ie,le,ne,Ee=xe[x+" "];if(Ee)return I?0:Ee.slice(0);for(ie=x,le=[],ne=a.preFilter;ie;){(!F||(q=Je.exec(ie)))&&(q&&(ie=ie.slice(q[0].length)||ie),le.push(z=[])),F=!1,(q=fs.exec(ie))&&(F=q.shift(),z.push({value:F,type:q[0].replace(we," ")}),ie=ie.slice(F.length));for($ in a.filter)(q=Ai[$].exec(ie))&&(!ne[$]||(q=ne[$](q)))&&(F=q.shift(),z.push({value:F,type:$,matches:q}),ie=ie.slice(F.length));if(!F)break}return I?ie.length:ie?Ie.error(x):xe(x,le).slice(0)}function po(x){for(var I=0,F=x.length,q="";I<F;I++)q+=x[I].value;return q}function mo(x,I,F){var q=I.dir,z=I.next,$=z||q,ie=F&&$==="parentNode",le=X++;return I.first?function(ne,Ee,me){for(;ne=ne[q];)if(ne.nodeType===1||ie)return x(ne,Ee,me);return!1}:function(ne,Ee,me){var ye,Se,de=[W,le];if(me){for(;ne=ne[q];)if((ne.nodeType===1||ie)&&x(ne,Ee,me))return!0}else for(;ne=ne[q];)if(ne.nodeType===1||ie)if(Se=ne[Y]||(ne[Y]={}),z&&B(ne,z))ne=ne[q]||ne;else{if((ye=Se[$])&&ye[0]===W&&ye[1]===le)return de[2]=ye[2];if(Se[$]=de,de[2]=x(ne,Ee,me))return!0}return!1}}function Ja(x){return x.length>1?function(I,F,q){for(var z=x.length;z--;)if(!x[z](I,F,q))return!1;return!0}:x[0]}function Yh(x,I,F){for(var q=0,z=I.length;q<z;q++)Ie(x,I[q],F);return F}function go(x,I,F,q,z){for(var $,ie=[],le=0,ne=x.length,Ee=I!=null;le<ne;le++)($=x[le])&&(!F||F($,q,z))&&(ie.push($),Ee&&I.push(le));return ie}function Ga(x,I,F,q,z,$){return q&&!q[Y]&&(q=Ga(q)),z&&!z[Y]&&(z=Ga(z,$)),ui(function(ie,le,ne,Ee){var me,ye,Se,de,je=[],Ht=[],St=le.length,Gt=ie||Yh(I||"*",ne.nodeType?[ne]:ne,[]),Ti=x&&(ie||!I)?go(Gt,je,x,ne,Ee):Gt;if(F?(de=z||(ie?x:St||q)?[]:le,F(Ti,de,ne,Ee)):de=Ti,q)for(me=go(de,Ht),q(me,[],ne,Ee),ye=me.length;ye--;)(Se=me[ye])&&(de[Ht[ye]]=!(Ti[Ht[ye]]=Se));if(ie){if(z||x){if(z){for(me=[],ye=de.length;ye--;)(Se=de[ye])&&me.push(Ti[ye]=Se);z(null,de=[],me,Ee)}for(ye=de.length;ye--;)(Se=de[ye])&&(me=z?f.call(ie,Se):je[ye])>-1&&(ie[me]=!(le[me]=Se))}}else de=go(de===le?de.splice(St,de.length):de),z?z(null,le,de,Ee):b.apply(le,de)})}function Xa(x){for(var I,F,q,z=x.length,$=a.relative[x[0].type],ie=$||a.relative[" "],le=$?1:0,ne=mo(function(ye){return ye===I},ie,!0),Ee=mo(function(ye){return f.call(I,ye)>-1},ie,!0),me=[function(ye,Se,de){var je=!$&&(de||Se!=c)||((I=Se).nodeType?ne(ye,Se,de):Ee(ye,Se,de));return I=null,je}];le<z;le++)if(F=a.relative[x[le].type])me=[mo(Ja(me),F)];else{if(F=a.filter[x[le].type].apply(null,x[le].matches),F[Y]){for(q=++le;q<z&&!a.relative[x[q].type];q++);return Ga(le>1&&Ja(me),le>1&&po(x.slice(0,le-1).concat({value:x[le-2].type===" "?"*":""})).replace(we,"$1"),F,le<q&&Xa(x.slice(le,q)),q<z&&Xa(x=x.slice(q)),q<z&&po(x))}me.push(F)}return Ja(me)}function Kh(x,I){var F=I.length>0,q=x.length>0,z=function($,ie,le,ne,Ee){var me,ye,Se,de=0,je="0",Ht=$&&[],St=[],Gt=c,Ti=$||q&&a.find.TAG("*",Ee),mr=W+=Gt==null?1:Math.random()||.1,Mt=Ti.length;for(Ee&&(c=ie==_||ie||Ee);je!==Mt&&(me=Ti[je])!=null;je++){if(q&&me){for(ye=0,!ie&&me.ownerDocument!=_&&(an(me),le=!O);Se=x[ye++];)if(Se(me,ie||_,le)){b.call(ne,me);break}Ee&&(W=mr)}F&&((me=!Se&&me)&&de--,$&&Ht.push(me))}if(de+=je,F&&je!==de){for(ye=0;Se=I[ye++];)Se(Ht,St,ie,le);if($){if(de>0)for(;je--;)Ht[je]||St[je]||(St[je]=K.call(ne));St=go(St)}b.apply(ne,St),Ee&&!$&&St.length>0&&de+I.length>1&&s.uniqueSort(ne)}return Ee&&(W=mr,c=Gt),Ht};return F?ui(z):z}function Qa(x,I){var F,q=[],z=[],$=_e[x+" "];if(!$){for(I||(I=hs(x)),F=I.length;F--;)$=Xa(I[F]),$[Y]?q.push($):z.push($);$=_e(x,Kh(z,q)),$.selector=x}return $}function pu(x,I,F,q){var z,$,ie,le,ne,Ee=typeof x=="function"&&x,me=!q&&hs(x=Ee.selector||x);if(F=F||[],me.length===1){if($=me[0]=me[0].slice(0),$.length>2&&(ie=$[0]).type==="ID"&&I.nodeType===9&&O&&a.relative[$[1].type]){if(I=(a.find.ID(ie.matches[0].replace(Fi,ji),I)||[])[0],I)Ee&&(I=I.parentNode);else return F;x=x.slice($.shift().value.length)}for(z=Ai.needsContext.test(x)?0:$.length;z--&&(ie=$[z],!a.relative[le=ie.type]);)if((ne=a.find[le])&&(q=ne(ie.matches[0].replace(Fi,ji),Ya.test($[0].type)&&Ka(I.parentNode)||I))){if($.splice(z,1),x=q.length&&po($),!x)return b.apply(F,q),F;break}}return(Ee||Qa(x,me))(q,I,!O,F,!I||Ya.test(x)&&Ka(I.parentNode)||I),F}M.sortStable=Y.split("").sort(ot).join("")===Y,an(),M.sortDetached=pr(function(x){return x.compareDocumentPosition(_.createElement("fieldset"))&1}),s.find=Ie,s.expr[":"]=s.expr.pseudos,s.unique=s.uniqueSort,Ie.compile=Qa,Ie.select=pu,Ie.setDocument=an,Ie.tokenize=hs,Ie.escape=s.escapeSelector,Ie.getText=s.text,Ie.isXML=s.isXMLDoc,Ie.selectors=s.expr,Ie.support=s.support,Ie.uniqueSort=s.uniqueSort})();var rt=function(n,a,c){for(var h=[],v=c!==void 0;(n=n[a])&&n.nodeType!==9;)if(n.nodeType===1){if(v&&s(n).is(c))break;h.push(n)}return h},Ne=function(n,a){for(var c=[];n;n=n.nextSibling)n.nodeType===1&&n!==a&&c.push(n);return c},gt=s.expr.match.needsContext,ut=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Xe(n,a,c){return T(a)?s.grep(n,function(h,v){return!!a.call(h,v,h)!==c}):a.nodeType?s.grep(n,function(h){return h===a!==c}):typeof a!="string"?s.grep(n,function(h){return f.call(a,h)>-1!==c}):s.filter(a,n,c)}s.filter=function(n,a,c){var h=a[0];return c&&(n=":not("+n+")"),a.length===1&&h.nodeType===1?s.find.matchesSelector(h,n)?[h]:[]:s.find.matches(n,s.grep(a,function(v){return v.nodeType===1}))},s.fn.extend({find:function(n){var a,c,h=this.length,v=this;if(typeof n!="string")return this.pushStack(s(n).filter(function(){for(a=0;a<h;a++)if(s.contains(v[a],this))return!0}));for(c=this.pushStack([]),a=0;a<h;a++)s.find(n,v[a],c);return h>1?s.uniqueSort(c):c},filter:function(n){return this.pushStack(Xe(this,n||[],!1))},not:function(n){return this.pushStack(Xe(this,n||[],!0))},is:function(n){return!!Xe(this,typeof n=="string"&>.test(n)?s(n):n||[],!1).length}});var _t,ft=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Be=s.fn.init=function(n,a,c){var h,v;if(!n)return this;if(c=c||_t,typeof n=="string")if(n[0]==="<"&&n[n.length-1]===">"&&n.length>=3?h=[null,n,null]:h=ft.exec(n),h&&(h[1]||!a))if(h[1]){if(a=a instanceof s?a[0]:a,s.merge(this,s.parseHTML(h[1],a&&a.nodeType?a.ownerDocument||a:D,!0)),ut.test(h[1])&&s.isPlainObject(a))for(h in a)T(this[h])?this[h](a[h]):this.attr(h,a[h]);return this}else return v=D.getElementById(h[2]),v&&(this[0]=v,this.length=1),this;else return!a||a.jquery?(a||c).find(n):this.constructor(a).find(n);else{if(n.nodeType)return this[0]=n,this.length=1,this;if(T(n))return c.ready!==void 0?c.ready(n):n(s)}return s.makeArray(n,this)};Be.prototype=s.fn,_t=s(D);var et=/^(?:parents|prev(?:Until|All))/,Pt={children:!0,contents:!0,next:!0,prev:!0};s.fn.extend({has:function(n){var a=s(n,this),c=a.length;return this.filter(function(){for(var h=0;h<c;h++)if(s.contains(this,a[h]))return!0})},closest:function(n,a){var c,h=0,v=this.length,b=[],_=typeof n!="string"&&s(n);if(!gt.test(n)){for(;h<v;h++)for(c=this[h];c&&c!==a;c=c.parentNode)if(c.nodeType<11&&(_?_.index(c)>-1:c.nodeType===1&&s.find.matchesSelector(c,n))){b.push(c);break}}return this.pushStack(b.length>1?s.uniqueSort(b):b)},index:function(n){return n?typeof n=="string"?f.call(s(n),this[0]):f.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,a){return this.pushStack(s.uniqueSort(s.merge(this.get(),s(n,a))))},addBack:function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))}});function Qe(n,a){for(;(n=n[a])&&n.nodeType!==1;);return n}s.each({parent:function(n){var a=n.parentNode;return a&&a.nodeType!==11?a:null},parents:function(n){return rt(n,"parentNode")},parentsUntil:function(n,a,c){return rt(n,"parentNode",c)},next:function(n){return Qe(n,"nextSibling")},prev:function(n){return Qe(n,"previousSibling")},nextAll:function(n){return rt(n,"nextSibling")},prevAll:function(n){return rt(n,"previousSibling")},nextUntil:function(n,a,c){return rt(n,"nextSibling",c)},prevUntil:function(n,a,c){return rt(n,"previousSibling",c)},siblings:function(n){return Ne((n.parentNode||{}).firstChild,n)},children:function(n){return Ne(n.firstChild)},contents:function(n){return n.contentDocument!=null&&r(n.contentDocument)?n.contentDocument:(B(n,"template")&&(n=n.content||n),s.merge([],n.childNodes))}},function(n,a){s.fn[n]=function(c,h){var v=s.map(this,a,c);return n.slice(-5)!=="Until"&&(h=c),h&&typeof h=="string"&&(v=s.filter(h,v)),this.length>1&&(Pt[n]||s.uniqueSort(v),et.test(n)&&v.reverse()),this.pushStack(v)}});var Ye=/[^\x20\t\r\n\f]+/g;function Zi(n){var a={};return s.each(n.match(Ye)||[],function(c,h){a[h]=!0}),a}s.Callbacks=function(n){n=typeof n=="string"?Zi(n):s.extend({},n);var a,c,h,v,b=[],_=[],P=-1,O=function(){for(v=v||n.once,h=a=!0;_.length;P=-1)for(c=_.shift();++P<b.length;)b[P].apply(c[0],c[1])===!1&&n.stopOnFalse&&(P=b.length,c=!1);n.memory||(c=!1),a=!1,v&&(c?b=[]:b="")},R={add:function(){return b&&(c&&!a&&(P=b.length-1,_.push(c)),(function U(Y){s.each(Y,function(W,X){T(X)?(!n.unique||!R.has(X))&&b.push(X):X&&X.length&&d(X)!=="string"&&U(X)})})(arguments),c&&!a&&O()),this},remove:function(){return s.each(arguments,function(U,Y){for(var W;(W=s.inArray(Y,b,W))>-1;)b.splice(W,1),W<=P&&P--}),this},has:function(U){return U?s.inArray(U,b)>-1:b.length>0},empty:function(){return b&&(b=[]),this},disable:function(){return v=_=[],b=c="",this},disabled:function(){return!b},lock:function(){return v=_=[],!c&&!a&&(b=c=""),this},locked:function(){return!!v},fireWith:function(U,Y){return v||(Y=Y||[],Y=[U,Y.slice?Y.slice():Y],_.push(Y),a||O()),this},fire:function(){return R.fireWith(this,arguments),this},fired:function(){return!!h}};return R};function Et(n){return n}function Nt(n){throw n}function gi(n,a,c,h){var v;try{n&&T(v=n.promise)?v.call(n).done(a).fail(c):n&&T(v=n.then)?v.call(n,a,c):a.apply(void 0,[n].slice(h))}catch(b){c.apply(void 0,[b])}}s.extend({Deferred:function(n){var a=[["notify","progress",s.Callbacks("memory"),s.Callbacks("memory"),2],["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),0,"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),1,"rejected"]],c="pending",h={state:function(){return c},always:function(){return v.done(arguments).fail(arguments),this},catch:function(b){return h.then(null,b)},pipe:function(){var b=arguments;return s.Deferred(function(_){s.each(a,function(P,O){var R=T(b[O[4]])&&b[O[4]];v[O[1]](function(){var U=R&&R.apply(this,arguments);U&&T(U.promise)?U.promise().progress(_.notify).done(_.resolve).fail(_.reject):_[O[0]+"With"](this,R?[U]:arguments)})}),b=null}).promise()},then:function(b,_,P){var O=0;function R(U,Y,W,X){return function(){var ve=this,xe=arguments,_e=function(){var ot,_i;if(!(U<O)){if(ot=W.apply(ve,xe),ot===Y.promise())throw new TypeError("Thenable self-resolution");_i=ot&&(typeof ot=="object"||typeof ot=="function")&&ot.then,T(_i)?X?_i.call(ot,R(O,Y,Et,X),R(O,Y,Nt,X)):(O++,_i.call(ot,R(O,Y,Et,X),R(O,Y,Nt,X),R(O,Y,Et,Y.notifyWith))):(W!==Et&&(ve=void 0,xe=[ot]),(X||Y.resolveWith)(ve,xe))}},bt=X?_e:function(){try{_e()}catch(ot){s.Deferred.exceptionHook&&s.Deferred.exceptionHook(ot,bt.error),U+1>=O&&(W!==Nt&&(ve=void 0,xe=[ot]),Y.rejectWith(ve,xe))}};U?bt():(s.Deferred.getErrorHook?bt.error=s.Deferred.getErrorHook():s.Deferred.getStackHook&&(bt.error=s.Deferred.getStackHook()),i.setTimeout(bt))}}return s.Deferred(function(U){a[0][3].add(R(0,U,T(P)?P:Et,U.notifyWith)),a[1][3].add(R(0,U,T(b)?b:Et)),a[2][3].add(R(0,U,T(_)?_:Nt))}).promise()},promise:function(b){return b!=null?s.extend(b,h):h}},v={};return s.each(a,function(b,_){var P=_[2],O=_[5];h[_[1]]=P.add,O&&P.add(function(){c=O},a[3-b][2].disable,a[3-b][3].disable,a[0][2].lock,a[0][3].lock),P.add(_[3].fire),v[_[0]]=function(){return v[_[0]+"With"](this===v?void 0:this,arguments),this},v[_[0]+"With"]=P.fireWith}),h.promise(v),n&&n.call(v,v),v},when:function(n){var a=arguments.length,c=a,h=Array(c),v=o.call(arguments),b=s.Deferred(),_=function(P){return function(O){h[P]=this,v[P]=arguments.length>1?o.call(arguments):O,--a||b.resolveWith(h,v)}};if(a<=1&&(gi(n,b.done(_(c)).resolve,b.reject,!a),b.state()==="pending"||T(v[c]&&v[c].then)))return b.then();for(;c--;)gi(v[c],_(c),b.reject);return b.promise()}});var $i=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;s.Deferred.exceptionHook=function(n,a){i.console&&i.console.warn&&n&&$i.test(n.name)&&i.console.warn("jQuery.Deferred exception: "+n.message,n.stack,a)},s.readyException=function(n){i.setTimeout(function(){throw n})};var ri=s.Deferred();s.fn.ready=function(n){return ri.then(n).catch(function(a){s.readyException(a)}),this},s.extend({isReady:!1,readyWait:1,ready:function(n){(n===!0?--s.readyWait:s.isReady)||(s.isReady=!0,!(n!==!0&&--s.readyWait>0)&&ri.resolveWith(D,[s]))}}),s.ready.then=ri.then;function Yt(){D.removeEventListener("DOMContentLoaded",Yt),i.removeEventListener("load",Yt),s.ready()}D.readyState==="complete"||D.readyState!=="loading"&&!D.documentElement.doScroll?i.setTimeout(s.ready):(D.addEventListener("DOMContentLoaded",Yt),i.addEventListener("load",Yt));var dt=function(n,a,c,h,v,b,_){var P=0,O=n.length,R=c==null;if(d(c)==="object"){v=!0;for(P in c)dt(n,a,P,c[P],!0,b,_)}else if(h!==void 0&&(v=!0,T(h)||(_=!0),R&&(_?(a.call(n,h),a=null):(R=a,a=function(U,Y,W){return R.call(s(U),W)})),a))for(;P<O;P++)a(n[P],c,_?h:h.call(n[P],P,a(n[P],c)));return v?n:R?a.call(n):O?a(n[0],c):b},Mi=/^-ms-/,si=/-([a-z])/g;function It(n,a){return a.toUpperCase()}function tt(n){return n.replace(Mi,"ms-").replace(si,It)}var Rt=function(n){return n.nodeType===1||n.nodeType===9||!+n.nodeType};function xt(){this.expando=s.expando+xt.uid++}xt.uid=1,xt.prototype={cache:function(n){var a=n[this.expando];return a||(a={},Rt(n)&&(n.nodeType?n[this.expando]=a:Object.defineProperty(n,this.expando,{value:a,configurable:!0}))),a},set:function(n,a,c){var h,v=this.cache(n);if(typeof a=="string")v[tt(a)]=c;else for(h in a)v[tt(h)]=a[h];return v},get:function(n,a){return a===void 0?this.cache(n):n[this.expando]&&n[this.expando][tt(a)]},access:function(n,a,c){return a===void 0||a&&typeof a=="string"&&c===void 0?this.get(n,a):(this.set(n,a,c),c!==void 0?c:a)},remove:function(n,a){var c,h=n[this.expando];if(h!==void 0){if(a!==void 0)for(Array.isArray(a)?a=a.map(tt):(a=tt(a),a=a in h?[a]:a.match(Ye)||[]),c=a.length;c--;)delete h[a[c]];(a===void 0||s.isEmptyObject(h))&&(n.nodeType?n[this.expando]=void 0:delete n[this.expando])}},hasData:function(n){var a=n[this.expando];return a!==void 0&&!s.isEmptyObject(a)}};var oe=new xt,We=new xt,Oi=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,vi=/[A-Z]/g;function Li(n){return n==="true"?!0:n==="false"?!1:n==="null"?null:n===+n+""?+n:Oi.test(n)?JSON.parse(n):n}function en(n,a,c){var h;if(c===void 0&&n.nodeType===1)if(h="data-"+a.replace(vi,"-$&").toLowerCase(),c=n.getAttribute(h),typeof c=="string"){try{c=Li(c)}catch{}We.set(n,a,c)}else c=void 0;return c}s.extend({hasData:function(n){return We.hasData(n)||oe.hasData(n)},data:function(n,a,c){return We.access(n,a,c)},removeData:function(n,a){We.remove(n,a)},_data:function(n,a,c){return oe.access(n,a,c)},_removeData:function(n,a){oe.remove(n,a)}}),s.fn.extend({data:function(n,a){var c,h,v,b=this[0],_=b&&b.attributes;if(n===void 0){if(this.length&&(v=We.get(b),b.nodeType===1&&!oe.get(b,"hasDataAttrs"))){for(c=_.length;c--;)_[c]&&(h=_[c].name,h.indexOf("data-")===0&&(h=tt(h.slice(5)),en(b,h,v[h])));oe.set(b,"hasDataAttrs",!0)}return v}return typeof n=="object"?this.each(function(){We.set(this,n)}):dt(this,function(P){var O;if(b&&P===void 0)return O=We.get(b,n),O!==void 0||(O=en(b,n),O!==void 0)?O:void 0;this.each(function(){We.set(this,n,P)})},null,a,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){We.remove(this,n)})}}),s.extend({queue:function(n,a,c){var h;if(n)return a=(a||"fx")+"queue",h=oe.get(n,a),c&&(!h||Array.isArray(c)?h=oe.access(n,a,s.makeArray(c)):h.push(c)),h||[]},dequeue:function(n,a){a=a||"fx";var c=s.queue(n,a),h=c.length,v=c.shift(),b=s._queueHooks(n,a),_=function(){s.dequeue(n,a)};v==="inprogress"&&(v=c.shift(),h--),v&&(a==="fx"&&c.unshift("inprogress"),delete b.stop,v.call(n,_,b)),!h&&b&&b.empty.fire()},_queueHooks:function(n,a){var c=a+"queueHooks";return oe.get(n,c)||oe.access(n,c,{empty:s.Callbacks("once memory").add(function(){oe.remove(n,[a+"queue",c])})})}}),s.fn.extend({queue:function(n,a){var c=2;return typeof n!="string"&&(a=n,n="fx",c--),arguments.length<c?s.queue(this[0],n):a===void 0?this:this.each(function(){var h=s.queue(this,n,a);s._queueHooks(this,n),n==="fx"&&h[0]!=="inprogress"&&s.dequeue(this,n)})},dequeue:function(n){return this.each(function(){s.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,a){var c,h=1,v=s.Deferred(),b=this,_=this.length,P=function(){--h||v.resolveWith(b,[b])};for(typeof n!="string"&&(a=n,n=void 0),n=n||"fx";_--;)c=oe.get(b[_],n+"queueHooks"),c&&c.empty&&(h++,c.empty.add(P));return P(),v.promise(a)}});var Dn=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,bi=new RegExp("^(?:([+-])=|)("+Dn+")([a-z%]*)$","i"),Dt=["Top","Right","Bottom","Left"],Kt=D.documentElement,oi=function(n){return s.contains(n.ownerDocument,n)},He={composed:!0};Kt.getRootNode&&(oi=function(n){return s.contains(n.ownerDocument,n)||n.getRootNode(He)===n.ownerDocument});var ai=function(n,a){return n=a||n,n.style.display==="none"||n.style.display===""&&oi(n)&&s.css(n,"display")==="none"};function Pi(n,a,c,h){var v,b,_=20,P=h?function(){return h.cur()}:function(){return s.css(n,a,"")},O=P(),R=c&&c[3]||(s.cssNumber[a]?"":"px"),U=n.nodeType&&(s.cssNumber[a]||R!=="px"&&+O)&&bi.exec(s.css(n,a));if(U&&U[3]!==R){for(O=O/2,R=R||U[3],U=+O||1;_--;)s.style(n,a,U+R),(1-b)*(1-(b=P()/O||.5))<=0&&(_=0),U=U/b;U=U*2,s.style(n,a,U+R),c=c||[]}return c&&(U=+U||+O||0,v=c[1]?U+(c[1]+1)*c[2]:+c[2],h&&(h.unit=R,h.start=U,h.end=v)),v}var kn={};function Ni(n){var a,c=n.ownerDocument,h=n.nodeName,v=kn[h];return v||(a=c.body.appendChild(c.createElement(h)),v=s.css(a,"display"),a.parentNode.removeChild(a),v==="none"&&(v="block"),kn[h]=v,v)}function Bt(n,a){for(var c,h,v=[],b=0,_=n.length;b<_;b++)h=n[b],h.style&&(c=h.style.display,a?(c==="none"&&(v[b]=oe.get(h,"display")||null,v[b]||(h.style.display="")),h.style.display===""&&ai(h)&&(v[b]=Ni(h))):c!=="none"&&(v[b]="none",oe.set(h,"display",c)));for(b=0;b<_;b++)v[b]!=null&&(n[b].style.display=v[b]);return n}s.fn.extend({show:function(){return Bt(this,!0)},hide:function(){return Bt(this)},toggle:function(n){return typeof n=="boolean"?n?this.show():this.hide():this.each(function(){ai(this)?s(this).show():s(this).hide()})}});var ht=/^(?:checkbox|radio)$/i,Mn=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,cr=/^$|^module$|\/(?:java|ecma)script/i;(function(){var n=D.createDocumentFragment(),a=n.appendChild(D.createElement("div")),c=D.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),a.appendChild(c),M.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="<textarea>x</textarea>",M.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue,a.innerHTML="<option></option>",M.option=!!a.lastChild})();var E={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};E.tbody=E.tfoot=E.colgroup=E.caption=E.thead,E.th=E.td,M.option||(E.optgroup=E.option=[1,"<select multiple='multiple'>","</select>"]);function C(n,a){var c;return typeof n.getElementsByTagName<"u"?c=n.getElementsByTagName(a||"*"):typeof n.querySelectorAll<"u"?c=n.querySelectorAll(a||"*"):c=[],a===void 0||a&&B(n,a)?s.merge([n],c):c}function H(n,a){for(var c=0,h=n.length;c<h;c++)oe.set(n[c],"globalEval",!a||oe.get(a[c],"globalEval"))}var V=/<|&#?\w+;/;function Q(n,a,c,h,v){for(var b,_,P,O,R,U,Y=a.createDocumentFragment(),W=[],X=0,ve=n.length;X<ve;X++)if(b=n[X],b||b===0)if(d(b)==="object")s.merge(W,b.nodeType?[b]:b);else if(!V.test(b))W.push(a.createTextNode(b));else{for(_=_||Y.appendChild(a.createElement("div")),P=(Mn.exec(b)||["",""])[1].toLowerCase(),O=E[P]||E._default,_.innerHTML=O[1]+s.htmlPrefilter(b)+O[2],U=O[0];U--;)_=_.lastChild;s.merge(W,_.childNodes),_=Y.firstChild,_.textContent=""}for(Y.textContent="",X=0;b=W[X++];){if(h&&s.inArray(b,h)>-1){v&&v.push(b);continue}if(R=oi(b),_=C(Y.appendChild(b),"script"),R&&H(_),c)for(U=0;b=_[U++];)cr.test(b.type||"")&&c.push(b)}return Y}var ee=/^([^.]*)(?:\.(.+)|)/;function he(){return!0}function re(){return!1}function be(n,a,c,h,v,b){var _,P;if(typeof a=="object"){typeof c!="string"&&(h=h||c,c=void 0);for(P in a)be(n,P,c,h,a[P],b);return n}if(h==null&&v==null?(v=c,h=c=void 0):v==null&&(typeof c=="string"?(v=h,h=void 0):(v=h,h=c,c=void 0)),v===!1)v=re;else if(!v)return n;return b===1&&(_=v,v=function(O){return s().off(O),_.apply(this,arguments)},v.guid=_.guid||(_.guid=s.guid++)),n.each(function(){s.event.add(this,a,v,h,c)})}s.event={global:{},add:function(n,a,c,h,v){var b,_,P,O,R,U,Y,W,X,ve,xe,_e=oe.get(n);if(Rt(n))for(c.handler&&(b=c,c=b.handler,v=b.selector),v&&s.find.matchesSelector(Kt,v),c.guid||(c.guid=s.guid++),(O=_e.events)||(O=_e.events=Object.create(null)),(_=_e.handle)||(_=_e.handle=function(bt){return typeof s<"u"&&s.event.triggered!==bt.type?s.event.dispatch.apply(n,arguments):void 0}),a=(a||"").match(Ye)||[""],R=a.length;R--;)P=ee.exec(a[R])||[],X=xe=P[1],ve=(P[2]||"").split(".").sort(),X&&(Y=s.event.special[X]||{},X=(v?Y.delegateType:Y.bindType)||X,Y=s.event.special[X]||{},U=s.extend({type:X,origType:xe,data:h,handler:c,guid:c.guid,selector:v,needsContext:v&&s.expr.match.needsContext.test(v),namespace:ve.join(".")},b),(W=O[X])||(W=O[X]=[],W.delegateCount=0,(!Y.setup||Y.setup.call(n,h,ve,_)===!1)&&n.addEventListener&&n.addEventListener(X,_)),Y.add&&(Y.add.call(n,U),U.handler.guid||(U.handler.guid=c.guid)),v?W.splice(W.delegateCount++,0,U):W.push(U),s.event.global[X]=!0)},remove:function(n,a,c,h,v){var b,_,P,O,R,U,Y,W,X,ve,xe,_e=oe.hasData(n)&&oe.get(n);if(!(!_e||!(O=_e.events))){for(a=(a||"").match(Ye)||[""],R=a.length;R--;){if(P=ee.exec(a[R])||[],X=xe=P[1],ve=(P[2]||"").split(".").sort(),!X){for(X in O)s.event.remove(n,X+a[R],c,h,!0);continue}for(Y=s.event.special[X]||{},X=(h?Y.delegateType:Y.bindType)||X,W=O[X]||[],P=P[2]&&new RegExp("(^|\\.)"+ve.join("\\.(?:.*\\.|)")+"(\\.|$)"),_=b=W.length;b--;)U=W[b],(v||xe===U.origType)&&(!c||c.guid===U.guid)&&(!P||P.test(U.namespace))&&(!h||h===U.selector||h==="**"&&U.selector)&&(W.splice(b,1),U.selector&&W.delegateCount--,Y.remove&&Y.remove.call(n,U));_&&!W.length&&((!Y.teardown||Y.teardown.call(n,ve,_e.handle)===!1)&&s.removeEvent(n,X,_e.handle),delete O[X])}s.isEmptyObject(O)&&oe.remove(n,"handle events")}},dispatch:function(n){var a,c,h,v,b,_,P=new Array(arguments.length),O=s.event.fix(n),R=(oe.get(this,"events")||Object.create(null))[O.type]||[],U=s.event.special[O.type]||{};for(P[0]=O,a=1;a<arguments.length;a++)P[a]=arguments[a];if(O.delegateTarget=this,!(U.preDispatch&&U.preDispatch.call(this,O)===!1)){for(_=s.event.handlers.call(this,O,R),a=0;(v=_[a++])&&!O.isPropagationStopped();)for(O.currentTarget=v.elem,c=0;(b=v.handlers[c++])&&!O.isImmediatePropagationStopped();)(!O.rnamespace||b.namespace===!1||O.rnamespace.test(b.namespace))&&(O.handleObj=b,O.data=b.data,h=((s.event.special[b.origType]||{}).handle||b.handler).apply(v.elem,P),h!==void 0&&(O.result=h)===!1&&(O.preventDefault(),O.stopPropagation()));return U.postDispatch&&U.postDispatch.call(this,O),O.result}},handlers:function(n,a){var c,h,v,b,_,P=[],O=a.delegateCount,R=n.target;if(O&&R.nodeType&&!(n.type==="click"&&n.button>=1)){for(;R!==this;R=R.parentNode||this)if(R.nodeType===1&&!(n.type==="click"&&R.disabled===!0)){for(b=[],_={},c=0;c<O;c++)h=a[c],v=h.selector+" ",_[v]===void 0&&(_[v]=h.needsContext?s(v,this).index(R)>-1:s.find(v,this,null,[R]).length),_[v]&&b.push(h);b.length&&P.push({elem:R,handlers:b})}}return R=this,O<a.length&&P.push({elem:R,handlers:a.slice(O)}),P},addProp:function(n,a){Object.defineProperty(s.Event.prototype,n,{enumerable:!0,configurable:!0,get:T(a)?function(){if(this.originalEvent)return a(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(c){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:c})}})},fix:function(n){return n[s.expando]?n:new s.Event(n)},special:{load:{noBubble:!0},click:{setup:function(n){var a=this||n;return ht.test(a.type)&&a.click&&B(a,"input")&&se(a,"click",!0),!1},trigger:function(n){var a=this||n;return ht.test(a.type)&&a.click&&B(a,"input")&&se(a,"click"),!0},_default:function(n){var a=n.target;return ht.test(a.type)&&a.click&&B(a,"input")&&oe.get(a,"click")||B(a,"a")}},beforeunload:{postDispatch:function(n){n.result!==void 0&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};function se(n,a,c){if(!c){oe.get(n,a)===void 0&&s.event.add(n,a,he);return}oe.set(n,a,!1),s.event.add(n,a,{namespace:!1,handler:function(h){var v,b=oe.get(this,a);if(h.isTrigger&1&&this[a]){if(b)(s.event.special[a]||{}).delegateType&&h.stopPropagation();else if(b=o.call(arguments),oe.set(this,a,b),this[a](),v=oe.get(this,a),oe.set(this,a,!1),b!==v)return h.stopImmediatePropagation(),h.preventDefault(),v}else b&&(oe.set(this,a,s.event.trigger(b[0],b.slice(1),this)),h.stopPropagation(),h.isImmediatePropagationStopped=he)}})}s.removeEvent=function(n,a,c){n.removeEventListener&&n.removeEventListener(a,c)},s.Event=function(n,a){if(!(this instanceof s.Event))return new s.Event(n,a);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.defaultPrevented===void 0&&n.returnValue===!1?he:re,this.target=n.target&&n.target.nodeType===3?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n,a&&s.extend(this,a),this.timeStamp=n&&n.timeStamp||Date.now(),this[s.expando]=!0},s.Event.prototype={constructor:s.Event,isDefaultPrevented:re,isPropagationStopped:re,isImmediatePropagationStopped:re,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=he,n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=he,n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=he,n&&!this.isSimulated&&n.stopImmediatePropagation(),this.stopPropagation()}},s.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},s.event.addProp),s.each({focus:"focusin",blur:"focusout"},function(n,a){function c(h){if(D.documentMode){var v=oe.get(this,"handle"),b=s.event.fix(h);b.type=h.type==="focusin"?"focus":"blur",b.isSimulated=!0,v(h),b.target===b.currentTarget&&v(b)}else s.event.simulate(a,h.target,s.event.fix(h))}s.event.special[n]={setup:function(){var h;if(se(this,n,!0),D.documentMode)h=oe.get(this,a),h||this.addEventListener(a,c),oe.set(this,a,(h||0)+1);else return!1},trigger:function(){return se(this,n),!0},teardown:function(){var h;if(D.documentMode)h=oe.get(this,a)-1,h?oe.set(this,a,h):(this.removeEventListener(a,c),oe.remove(this,a));else return!1},_default:function(h){return oe.get(h.target,n)},delegateType:a},s.event.special[a]={setup:function(){var h=this.ownerDocument||this.document||this,v=D.documentMode?this:h,b=oe.get(v,a);b||(D.documentMode?this.addEventListener(a,c):h.addEventListener(n,c,!0)),oe.set(v,a,(b||0)+1)},teardown:function(){var h=this.ownerDocument||this.document||this,v=D.documentMode?this:h,b=oe.get(v,a)-1;b?oe.set(v,a,b):(D.documentMode?this.removeEventListener(a,c):h.removeEventListener(n,c,!0),oe.remove(v,a))}}}),s.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,a){s.event.special[n]={delegateType:a,bindType:a,handle:function(c){var h,v=this,b=c.relatedTarget,_=c.handleObj;return(!b||b!==v&&!s.contains(v,b))&&(c.type=_.origType,h=_.handler.apply(this,arguments),c.type=a),h}}}),s.fn.extend({on:function(n,a,c,h){return be(this,n,a,c,h)},one:function(n,a,c,h){return be(this,n,a,c,h,1)},off:function(n,a,c){var h,v;if(n&&n.preventDefault&&n.handleObj)return h=n.handleObj,s(n.delegateTarget).off(h.namespace?h.origType+"."+h.namespace:h.origType,h.selector,h.handler),this;if(typeof n=="object"){for(v in n)this.off(v,a,n[v]);return this}return(a===!1||typeof a=="function")&&(c=a,a=void 0),c===!1&&(c=re),this.each(function(){s.event.remove(this,n,c,a)})}});var fe=/<script|<style|<link/i,Me=/checked\s*(?:[^=]|=\s*.checked.)/i,kt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function st(n,a){return B(n,"table")&&B(a.nodeType!==11?a:a.firstChild,"tr")&&s(n).children("tbody")[0]||n}function yi(n){return n.type=(n.getAttribute("type")!==null)+"/"+n.type,n}function li(n){return(n.type||"").slice(0,5)==="true/"?n.type=n.type.slice(5):n.removeAttribute("type"),n}function On(n,a){var c,h,v,b,_,P,O;if(a.nodeType===1){if(oe.hasData(n)&&(b=oe.get(n),O=b.events,O)){oe.remove(a,"handle events");for(v in O)for(c=0,h=O[v].length;c<h;c++)s.event.add(a,v,O[v][c])}We.hasData(n)&&(_=We.access(n),P=s.extend({},_),We.set(a,P))}}function tn(n,a){var c=a.nodeName.toLowerCase();c==="input"&&ht.test(n.type)?a.checked=n.checked:(c==="input"||c==="textarea")&&(a.defaultValue=n.defaultValue)}function ci(n,a,c,h){a=l(a);var v,b,_,P,O,R,U=0,Y=n.length,W=Y-1,X=a[0],ve=T(X);if(ve||Y>1&&typeof X=="string"&&!M.checkClone&&Me.test(X))return n.each(function(xe){var _e=n.eq(xe);ve&&(a[0]=X.call(this,xe,_e.html())),ci(_e,a,c,h)});if(Y&&(v=Q(a,n[0].ownerDocument,!1,n,h),b=v.firstChild,v.childNodes.length===1&&(v=b),b||h)){for(_=s.map(C(v,"script"),yi),P=_.length;U<Y;U++)O=v,U!==W&&(O=s.clone(O,!0,!0),P&&s.merge(_,C(O,"script"))),c.call(n[U],O,U);if(P)for(R=_[_.length-1].ownerDocument,s.map(_,li),U=0;U<P;U++)O=_[U],cr.test(O.type||"")&&!oe.access(O,"globalEval")&&s.contains(R,O)&&(O.src&&(O.type||"").toLowerCase()!=="module"?s._evalUrl&&!O.noModule&&s._evalUrl(O.src,{nonce:O.nonce||O.getAttribute("nonce")},R):g(O.textContent.replace(kt,""),O,R))}return n}function Ln(n,a,c){for(var h,v=a?s.filter(a,n):n,b=0;(h=v[b])!=null;b++)!c&&h.nodeType===1&&s.cleanData(C(h)),h.parentNode&&(c&&oi(h)&&H(C(h,"script")),h.parentNode.removeChild(h));return n}s.extend({htmlPrefilter:function(n){return n},clone:function(n,a,c){var h,v,b,_,P=n.cloneNode(!0),O=oi(n);if(!M.noCloneChecked&&(n.nodeType===1||n.nodeType===11)&&!s.isXMLDoc(n))for(_=C(P),b=C(n),h=0,v=b.length;h<v;h++)tn(b[h],_[h]);if(a)if(c)for(b=b||C(n),_=_||C(P),h=0,v=b.length;h<v;h++)On(b[h],_[h]);else On(n,P);return _=C(P,"script"),_.length>0&&H(_,!O&&C(n,"script")),P},cleanData:function(n){for(var a,c,h,v=s.event.special,b=0;(c=n[b])!==void 0;b++)if(Rt(c)){if(a=c[oe.expando]){if(a.events)for(h in a.events)v[h]?s.event.remove(c,h):s.removeEvent(c,h,a.handle);c[oe.expando]=void 0}c[We.expando]&&(c[We.expando]=void 0)}}}),s.fn.extend({detach:function(n){return Ln(this,n,!0)},remove:function(n){return Ln(this,n)},text:function(n){return dt(this,function(a){return a===void 0?s.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=a)})},null,n,arguments.length)},append:function(){return ci(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var a=st(this,n);a.appendChild(n)}})},prepend:function(){return ci(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var a=st(this,n);a.insertBefore(n,a.firstChild)}})},before:function(){return ci(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return ci(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,a=0;(n=this[a])!=null;a++)n.nodeType===1&&(s.cleanData(C(n,!1)),n.textContent="");return this},clone:function(n,a){return n=n??!1,a=a??n,this.map(function(){return s.clone(this,n,a)})},html:function(n){return dt(this,function(a){var c=this[0]||{},h=0,v=this.length;if(a===void 0&&c.nodeType===1)return c.innerHTML;if(typeof a=="string"&&!fe.test(a)&&!E[(Mn.exec(a)||["",""])[1].toLowerCase()]){a=s.htmlPrefilter(a);try{for(;h<v;h++)c=this[h]||{},c.nodeType===1&&(s.cleanData(C(c,!1)),c.innerHTML=a);c=0}catch{}}c&&this.empty().append(a)},null,n,arguments.length)},replaceWith:function(){var n=[];return ci(this,arguments,function(a){var c=this.parentNode;s.inArray(this,n)<0&&(s.cleanData(C(this)),c&&c.replaceChild(a,this))},n)}}),s.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,a){s.fn[n]=function(c){for(var h,v=[],b=s(c),_=b.length-1,P=0;P<=_;P++)h=P===_?this:this.clone(!0),s(b[P])[a](h),m.apply(v,h.get());return this.pushStack(v)}});var nn=new RegExp("^("+Dn+")(?!px)[a-z%]+$","i"),rn=/^--/,Ii=function(n){var a=n.ownerDocument.defaultView;return(!a||!a.opener)&&(a=i),a.getComputedStyle(n)},Pn=function(n,a,c){var h,v,b={};for(v in a)b[v]=n.style[v],n.style[v]=a[v];h=c.call(n);for(v in a)n.style[v]=b[v];return h},ur=new RegExp(Dt.join("|"),"i");(function(){function n(){if(R){O.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",R.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Kt.appendChild(O).appendChild(R);var U=i.getComputedStyle(R);c=U.top!=="1%",P=a(U.marginLeft)===12,R.style.right="60%",b=a(U.right)===36,h=a(U.width)===36,R.style.position="absolute",v=a(R.offsetWidth/3)===12,Kt.removeChild(O),R=null}}function a(U){return Math.round(parseFloat(U))}var c,h,v,b,_,P,O=D.createElement("div"),R=D.createElement("div");R.style&&(R.style.backgroundClip="content-box",R.cloneNode(!0).style.backgroundClip="",M.clearCloneStyle=R.style.backgroundClip==="content-box",s.extend(M,{boxSizingReliable:function(){return n(),h},pixelBoxStyles:function(){return n(),b},pixelPosition:function(){return n(),c},reliableMarginLeft:function(){return n(),P},scrollboxSize:function(){return n(),v},reliableTrDimensions:function(){var U,Y,W,X;return _==null&&(U=D.createElement("table"),Y=D.createElement("tr"),W=D.createElement("div"),U.style.cssText="position:absolute;left:-11111px;border-collapse:separate",Y.style.cssText="box-sizing:content-box;border:1px solid",Y.style.height="1px",W.style.height="9px",W.style.display="block",Kt.appendChild(U).appendChild(Y).appendChild(W),X=i.getComputedStyle(Y),_=parseInt(X.height,10)+parseInt(X.borderTopWidth,10)+parseInt(X.borderBottomWidth,10)===Y.offsetHeight,Kt.removeChild(U)),_}}))})();function wi(n,a,c){var h,v,b,_,P=rn.test(a),O=n.style;return c=c||Ii(n),c&&(_=c.getPropertyValue(a)||c[a],P&&_&&(_=_.replace(we,"$1")||void 0),_===""&&!oi(n)&&(_=s.style(n,a)),!M.pixelBoxStyles()&&nn.test(_)&&ur.test(a)&&(h=O.width,v=O.minWidth,b=O.maxWidth,O.minWidth=O.maxWidth=O.width=_,_=c.width,O.width=h,O.minWidth=v,O.maxWidth=b)),_!==void 0?_+"":_}function $r(n,a){return{get:function(){if(n()){delete this.get;return}return(this.get=a).apply(this,arguments)}}}var es=["Webkit","Moz","ms"],ts=D.createElement("div").style,is={};function ao(n){for(var a=n[0].toUpperCase()+n.slice(1),c=es.length;c--;)if(n=es[c]+a,n in ts)return n}function fr(n){var a=s.cssProps[n]||is[n];return a||(n in ts?n:is[n]=ao(n)||n)}var lo=/^(none|table(?!-c[ea]).+)/,co={position:"absolute",visibility:"hidden",display:"block"},ns={letterSpacing:"0",fontWeight:"400"};function rs(n,a,c){var h=bi.exec(a);return h?Math.max(0,h[2]-(c||0))+(h[3]||"px"):a}function dr(n,a,c,h,v,b){var _=a==="width"?1:0,P=0,O=0,R=0;if(c===(h?"border":"content"))return 0;for(;_<4;_+=2)c==="margin"&&(R+=s.css(n,c+Dt[_],!0,v)),h?(c==="content"&&(O-=s.css(n,"padding"+Dt[_],!0,v)),c!=="margin"&&(O-=s.css(n,"border"+Dt[_]+"Width",!0,v))):(O+=s.css(n,"padding"+Dt[_],!0,v),c!=="padding"?O+=s.css(n,"border"+Dt[_]+"Width",!0,v):P+=s.css(n,"border"+Dt[_]+"Width",!0,v));return!h&&b>=0&&(O+=Math.max(0,Math.ceil(n["offset"+a[0].toUpperCase()+a.slice(1)]-b-O-P-.5))||0),O+R}function ss(n,a,c){var h=Ii(n),v=!M.boxSizingReliable()||c,b=v&&s.css(n,"boxSizing",!1,h)==="border-box",_=b,P=wi(n,a,h),O="offset"+a[0].toUpperCase()+a.slice(1);if(nn.test(P)){if(!c)return P;P="auto"}return(!M.boxSizingReliable()&&b||!M.reliableTrDimensions()&&B(n,"tr")||P==="auto"||!parseFloat(P)&&s.css(n,"display",!1,h)==="inline")&&n.getClientRects().length&&(b=s.css(n,"boxSizing",!1,h)==="border-box",_=O in n,_&&(P=n[O])),P=parseFloat(P)||0,P+dr(n,a,c||(b?"border":"content"),_,h,P)+"px"}s.extend({cssHooks:{opacity:{get:function(n,a){if(a){var c=wi(n,"opacity");return c===""?"1":c}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(n,a,c,h){if(!(!n||n.nodeType===3||n.nodeType===8||!n.style)){var v,b,_,P=tt(a),O=rn.test(a),R=n.style;if(O||(a=fr(P)),_=s.cssHooks[a]||s.cssHooks[P],c!==void 0){if(b=typeof c,b==="string"&&(v=bi.exec(c))&&v[1]&&(c=Pi(n,a,v),b="number"),c==null||c!==c)return;b==="number"&&!O&&(c+=v&&v[3]||(s.cssNumber[P]?"":"px")),!M.clearCloneStyle&&c===""&&a.indexOf("background")===0&&(R[a]="inherit"),(!_||!("set"in _)||(c=_.set(n,c,h))!==void 0)&&(O?R.setProperty(a,c):R[a]=c)}else return _&&"get"in _&&(v=_.get(n,!1,h))!==void 0?v:R[a]}},css:function(n,a,c,h){var v,b,_,P=tt(a),O=rn.test(a);return O||(a=fr(P)),_=s.cssHooks[a]||s.cssHooks[P],_&&"get"in _&&(v=_.get(n,!0,c)),v===void 0&&(v=wi(n,a,h)),v==="normal"&&a in ns&&(v=ns[a]),c===""||c?(b=parseFloat(v),c===!0||isFinite(b)?b||0:v):v}}),s.each(["height","width"],function(n,a){s.cssHooks[a]={get:function(c,h,v){if(h)return lo.test(s.css(c,"display"))&&(!c.getClientRects().length||!c.getBoundingClientRect().width)?Pn(c,co,function(){return ss(c,a,v)}):ss(c,a,v)},set:function(c,h,v){var b,_=Ii(c),P=!M.scrollboxSize()&&_.position==="absolute",O=P||v,R=O&&s.css(c,"boxSizing",!1,_)==="border-box",U=v?dr(c,a,v,R,_):0;return R&&P&&(U-=Math.ceil(c["offset"+a[0].toUpperCase()+a.slice(1)]-parseFloat(_[a])-dr(c,a,"border",!1,_)-.5)),U&&(b=bi.exec(h))&&(b[3]||"px")!=="px"&&(c.style[a]=h,h=s.css(c,a)),rs(c,h,U)}}}),s.cssHooks.marginLeft=$r(M.reliableMarginLeft,function(n,a){if(a)return(parseFloat(wi(n,"marginLeft"))||n.getBoundingClientRect().left-Pn(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"}),s.each({margin:"",padding:"",border:"Width"},function(n,a){s.cssHooks[n+a]={expand:function(c){for(var h=0,v={},b=typeof c=="string"?c.split(" "):[c];h<4;h++)v[n+Dt[h]+a]=b[h]||b[h-2]||b[0];return v}},n!=="margin"&&(s.cssHooks[n+a].set=rs)}),s.fn.extend({css:function(n,a){return dt(this,function(c,h,v){var b,_,P={},O=0;if(Array.isArray(h)){for(b=Ii(c),_=h.length;O<_;O++)P[h[O]]=s.css(c,h[O],!1,b);return P}return v!==void 0?s.style(c,h,v):s.css(c,h)},n,a,arguments.length>1)}});function vt(n,a,c,h,v){return new vt.prototype.init(n,a,c,h,v)}s.Tween=vt,vt.prototype={constructor:vt,init:function(n,a,c,h,v,b){this.elem=n,this.prop=c,this.easing=v||s.easing._default,this.options=a,this.start=this.now=this.cur(),this.end=h,this.unit=b||(s.cssNumber[c]?"":"px")},cur:function(){var n=vt.propHooks[this.prop];return n&&n.get?n.get(this):vt.propHooks._default.get(this)},run:function(n){var a,c=vt.propHooks[this.prop];return this.options.duration?this.pos=a=s.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):this.pos=a=n,this.now=(this.end-this.start)*a+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):vt.propHooks._default.set(this),this}},vt.prototype.init.prototype=vt.prototype,vt.propHooks={_default:{get:function(n){var a;return n.elem.nodeType!==1||n.elem[n.prop]!=null&&n.elem.style[n.prop]==null?n.elem[n.prop]:(a=s.css(n.elem,n.prop,""),!a||a==="auto"?0:a)},set:function(n){s.fx.step[n.prop]?s.fx.step[n.prop](n):n.elem.nodeType===1&&(s.cssHooks[n.prop]||n.elem.style[fr(n.prop)]!=null)?s.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}},vt.propHooks.scrollTop=vt.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}},s.easing={linear:function(n){return n},swing:function(n){return .5-Math.cos(n*Math.PI)/2},_default:"swing"},s.fx=vt.prototype.init,s.fx.step={};var Ri,Nn,uo=/^(?:toggle|show|hide)$/,fo=/queueHooks$/;function hr(){Nn&&(D.hidden===!1&&i.requestAnimationFrame?i.requestAnimationFrame(hr):i.setTimeout(hr,s.fx.interval),s.fx.tick())}function os(){return i.setTimeout(function(){Ri=void 0}),Ri=Date.now()}function In(n,a){var c,h=0,v={height:n};for(a=a?1:0;h<4;h+=2-a)c=Dt[h],v["margin"+c]=v["padding"+c]=n;return a&&(v.opacity=v.width=n),v}function as(n,a,c){for(var h,v=(Ke.tweeners[a]||[]).concat(Ke.tweeners["*"]),b=0,_=v.length;b<_;b++)if(h=v[b].call(c,a,n))return h}function Ra(n,a,c){var h,v,b,_,P,O,R,U,Y="width"in a||"height"in a,W=this,X={},ve=n.style,xe=n.nodeType&&ai(n),_e=oe.get(n,"fxshow");c.queue||(_=s._queueHooks(n,"fx"),_.unqueued==null&&(_.unqueued=0,P=_.empty.fire,_.empty.fire=function(){_.unqueued||P()}),_.unqueued++,W.always(function(){W.always(function(){_.unqueued--,s.queue(n,"fx").length||_.empty.fire()})}));for(h in a)if(v=a[h],uo.test(v)){if(delete a[h],b=b||v==="toggle",v===(xe?"hide":"show"))if(v==="show"&&_e&&_e[h]!==void 0)xe=!0;else continue;X[h]=_e&&_e[h]||s.style(n,h)}if(O=!s.isEmptyObject(a),!(!O&&s.isEmptyObject(X))){Y&&n.nodeType===1&&(c.overflow=[ve.overflow,ve.overflowX,ve.overflowY],R=_e&&_e.display,R==null&&(R=oe.get(n,"display")),U=s.css(n,"display"),U==="none"&&(R?U=R:(Bt([n],!0),R=n.style.display||R,U=s.css(n,"display"),Bt([n]))),(U==="inline"||U==="inline-block"&&R!=null)&&s.css(n,"float")==="none"&&(O||(W.done(function(){ve.display=R}),R==null&&(U=ve.display,R=U==="none"?"":U)),ve.display="inline-block")),c.overflow&&(ve.overflow="hidden",W.always(function(){ve.overflow=c.overflow[0],ve.overflowX=c.overflow[1],ve.overflowY=c.overflow[2]})),O=!1;for(h in X)O||(_e?"hidden"in _e&&(xe=_e.hidden):_e=oe.access(n,"fxshow",{display:R}),b&&(_e.hidden=!xe),xe&&Bt([n],!0),W.done(function(){xe||Bt([n]),oe.remove(n,"fxshow");for(h in X)s.style(n,h,X[h])})),O=as(xe?_e[h]:0,h,W),h in _e||(_e[h]=O.start,xe&&(O.end=O.start,O.start=0))}}function De(n,a){var c,h,v,b,_;for(c in n)if(h=tt(c),v=a[h],b=n[c],Array.isArray(b)&&(v=b[1],b=n[c]=b[0]),c!==h&&(n[h]=b,delete n[c]),_=s.cssHooks[h],_&&"expand"in _){b=_.expand(b),delete n[h];for(c in b)c in n||(n[c]=b[c],a[c]=v)}else a[h]=v}function Ke(n,a,c){var h,v,b=0,_=Ke.prefilters.length,P=s.Deferred().always(function(){delete O.elem}),O=function(){if(v)return!1;for(var Y=Ri||os(),W=Math.max(0,R.startTime+R.duration-Y),X=W/R.duration||0,ve=1-X,xe=0,_e=R.tweens.length;xe<_e;xe++)R.tweens[xe].run(ve);return P.notifyWith(n,[R,ve,W]),ve<1&&_e?W:(_e||P.notifyWith(n,[R,1,0]),P.resolveWith(n,[R]),!1)},R=P.promise({elem:n,props:s.extend({},a),opts:s.extend(!0,{specialEasing:{},easing:s.easing._default},c),originalProperties:a,originalOptions:c,startTime:Ri||os(),duration:c.duration,tweens:[],createTween:function(Y,W){var X=s.Tween(n,R.opts,Y,W,R.opts.specialEasing[Y]||R.opts.easing);return R.tweens.push(X),X},stop:function(Y){var W=0,X=Y?R.tweens.length:0;if(v)return this;for(v=!0;W<X;W++)R.tweens[W].run(1);return Y?(P.notifyWith(n,[R,1,0]),P.resolveWith(n,[R,Y])):P.rejectWith(n,[R,Y]),this}}),U=R.props;for(De(U,R.opts.specialEasing);b<_;b++)if(h=Ke.prefilters[b].call(R,n,U,R.opts),h)return T(h.stop)&&(s._queueHooks(R.elem,R.opts.queue).stop=h.stop.bind(h)),h;return s.map(U,as,R),T(R.opts.start)&&R.opts.start.call(n,R),R.progress(R.opts.progress).done(R.opts.done,R.opts.complete).fail(R.opts.fail).always(R.opts.always),s.fx.timer(s.extend(O,{elem:n,anim:R,queue:R.opts.queue})),R}s.Animation=s.extend(Ke,{tweeners:{"*":[function(n,a){var c=this.createTween(n,a);return Pi(c.elem,n,bi.exec(a),c),c}]},tweener:function(n,a){T(n)?(a=n,n=["*"]):n=n.match(Ye);for(var c,h=0,v=n.length;h<v;h++)c=n[h],Ke.tweeners[c]=Ke.tweeners[c]||[],Ke.tweeners[c].unshift(a)},prefilters:[Ra],prefilter:function(n,a){a?Ke.prefilters.unshift(n):Ke.prefilters.push(n)}}),s.speed=function(n,a,c){var h=n&&typeof n=="object"?s.extend({},n):{complete:c||!c&&a||T(n)&&n,duration:n,easing:c&&a||a&&!T(a)&&a};return s.fx.off?h.duration=0:typeof h.duration!="number"&&(h.duration in s.fx.speeds?h.duration=s.fx.speeds[h.duration]:h.duration=s.fx.speeds._default),(h.queue==null||h.queue===!0)&&(h.queue="fx"),h.old=h.complete,h.complete=function(){T(h.old)&&h.old.call(this),h.queue&&s.dequeue(this,h.queue)},h},s.fn.extend({fadeTo:function(n,a,c,h){return this.filter(ai).css("opacity",0).show().end().animate({opacity:a},n,c,h)},animate:function(n,a,c,h){var v=s.isEmptyObject(n),b=s.speed(a,c,h),_=function(){var P=Ke(this,s.extend({},n),b);(v||oe.get(this,"finish"))&&P.stop(!0)};return _.finish=_,v||b.queue===!1?this.each(_):this.queue(b.queue,_)},stop:function(n,a,c){var h=function(v){var b=v.stop;delete v.stop,b(c)};return typeof n!="string"&&(c=a,a=n,n=void 0),a&&this.queue(n||"fx",[]),this.each(function(){var v=!0,b=n!=null&&n+"queueHooks",_=s.timers,P=oe.get(this);if(b)P[b]&&P[b].stop&&h(P[b]);else for(b in P)P[b]&&P[b].stop&&fo.test(b)&&h(P[b]);for(b=_.length;b--;)_[b].elem===this&&(n==null||_[b].queue===n)&&(_[b].anim.stop(c),v=!1,_.splice(b,1));(v||!c)&&s.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var a,c=oe.get(this),h=c[n+"queue"],v=c[n+"queueHooks"],b=s.timers,_=h?h.length:0;for(c.finish=!0,s.queue(this,n,[]),v&&v.stop&&v.stop.call(this,!0),a=b.length;a--;)b[a].elem===this&&b[a].queue===n&&(b[a].anim.stop(!0),b.splice(a,1));for(a=0;a<_;a++)h[a]&&h[a].finish&&h[a].finish.call(this);delete c.finish})}}),s.each(["toggle","show","hide"],function(n,a){var c=s.fn[a];s.fn[a]=function(h,v,b){return h==null||typeof h=="boolean"?c.apply(this,arguments):this.animate(In(a,!0),h,v,b)}}),s.each({slideDown:In("show"),slideUp:In("hide"),slideToggle:In("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,a){s.fn[n]=function(c,h,v){return this.animate(a,c,h,v)}}),s.timers=[],s.fx.tick=function(){var n,a=0,c=s.timers;for(Ri=Date.now();a<c.length;a++)n=c[a],!n()&&c[a]===n&&c.splice(a--,1);c.length||s.fx.stop(),Ri=void 0},s.fx.timer=function(n){s.timers.push(n),s.fx.start()},s.fx.interval=13,s.fx.start=function(){Nn||(Nn=!0,hr())},s.fx.stop=function(){Nn=null},s.fx.speeds={slow:600,fast:200,_default:400},s.fn.delay=function(n,a){return n=s.fx&&s.fx.speeds[n]||n,a=a||"fx",this.queue(a,function(c,h){var v=i.setTimeout(c,n);h.stop=function(){i.clearTimeout(v)}})},(function(){var n=D.createElement("input"),a=D.createElement("select"),c=a.appendChild(D.createElement("option"));n.type="checkbox",M.checkOn=n.value!=="",M.optSelected=c.selected,n=D.createElement("input"),n.value="t",n.type="radio",M.radioValue=n.value==="t"})();var Rn,Hi=s.expr.attrHandle;s.fn.extend({attr:function(n,a){return dt(this,s.attr,n,a,arguments.length>1)},removeAttr:function(n){return this.each(function(){s.removeAttr(this,n)})}}),s.extend({attr:function(n,a,c){var h,v,b=n.nodeType;if(!(b===3||b===8||b===2)){if(typeof n.getAttribute>"u")return s.prop(n,a,c);if((b!==1||!s.isXMLDoc(n))&&(v=s.attrHooks[a.toLowerCase()]||(s.expr.match.bool.test(a)?Rn:void 0)),c!==void 0){if(c===null){s.removeAttr(n,a);return}return v&&"set"in v&&(h=v.set(n,c,a))!==void 0?h:(n.setAttribute(a,c+""),c)}return v&&"get"in v&&(h=v.get(n,a))!==null?h:(h=s.find.attr(n,a),h??void 0)}},attrHooks:{type:{set:function(n,a){if(!M.radioValue&&a==="radio"&&B(n,"input")){var c=n.value;return n.setAttribute("type",a),c&&(n.value=c),a}}}},removeAttr:function(n,a){var c,h=0,v=a&&a.match(Ye);if(v&&n.nodeType===1)for(;c=v[h++];)n.removeAttribute(c)}}),Rn={set:function(n,a,c){return a===!1?s.removeAttr(n,c):n.setAttribute(c,c),c}},s.each(s.expr.match.bool.source.match(/\w+/g),function(n,a){var c=Hi[a]||s.find.attr;Hi[a]=function(h,v,b){var _,P,O=v.toLowerCase();return b||(P=Hi[O],Hi[O]=_,_=c(h,v,b)!=null?O:null,Hi[O]=P),_}});var Ha=/^(?:input|select|textarea|button)$/i,ls=/^(?:a|area)$/i;s.fn.extend({prop:function(n,a){return dt(this,s.prop,n,a,arguments.length>1)},removeProp:function(n){return this.each(function(){delete this[s.propFix[n]||n]})}}),s.extend({prop:function(n,a,c){var h,v,b=n.nodeType;if(!(b===3||b===8||b===2))return(b!==1||!s.isXMLDoc(n))&&(a=s.propFix[a]||a,v=s.propHooks[a]),c!==void 0?v&&"set"in v&&(h=v.set(n,c,a))!==void 0?h:n[a]=c:v&&"get"in v&&(h=v.get(n,a))!==null?h:n[a]},propHooks:{tabIndex:{get:function(n){var a=s.find.attr(n,"tabindex");return a?parseInt(a,10):Ha.test(n.nodeName)||ls.test(n.nodeName)&&n.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),M.optSelected||(s.propHooks.selected={get:function(n){var a=n.parentNode;return a&&a.parentNode&&a.parentNode.selectedIndex,null},set:function(n){var a=n.parentNode;a&&(a.selectedIndex,a.parentNode&&a.parentNode.selectedIndex)}}),s.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){s.propFix[this.toLowerCase()]=this});function Hn(n){var a=n.match(Ye)||[];return a.join(" ")}function Fn(n){return n.getAttribute&&n.getAttribute("class")||""}function Fa(n){return Array.isArray(n)?n:typeof n=="string"?n.match(Ye)||[]:[]}s.fn.extend({addClass:function(n){var a,c,h,v,b,_;return T(n)?this.each(function(P){s(this).addClass(n.call(this,P,Fn(this)))}):(a=Fa(n),a.length?this.each(function(){if(h=Fn(this),c=this.nodeType===1&&" "+Hn(h)+" ",c){for(b=0;b<a.length;b++)v=a[b],c.indexOf(" "+v+" ")<0&&(c+=v+" ");_=Hn(c),h!==_&&this.setAttribute("class",_)}}):this)},removeClass:function(n){var a,c,h,v,b,_;return T(n)?this.each(function(P){s(this).removeClass(n.call(this,P,Fn(this)))}):arguments.length?(a=Fa(n),a.length?this.each(function(){if(h=Fn(this),c=this.nodeType===1&&" "+Hn(h)+" ",c){for(b=0;b<a.length;b++)for(v=a[b];c.indexOf(" "+v+" ")>-1;)c=c.replace(" "+v+" "," ");_=Hn(c),h!==_&&this.setAttribute("class",_)}}):this):this.attr("class","")},toggleClass:function(n,a){var c,h,v,b,_=typeof n,P=_==="string"||Array.isArray(n);return T(n)?this.each(function(O){s(this).toggleClass(n.call(this,O,Fn(this),a),a)}):typeof a=="boolean"&&P?a?this.addClass(n):this.removeClass(n):(c=Fa(n),this.each(function(){if(P)for(b=s(this),v=0;v<c.length;v++)h=c[v],b.hasClass(h)?b.removeClass(h):b.addClass(h);else(n===void 0||_==="boolean")&&(h=Fn(this),h&&oe.set(this,"__className__",h),this.setAttribute&&this.setAttribute("class",h||n===!1?"":oe.get(this,"__className__")||""))}))},hasClass:function(n){var a,c,h=0;for(a=" "+n+" ";c=this[h++];)if(c.nodeType===1&&(" "+Hn(Fn(c))+" ").indexOf(a)>-1)return!0;return!1}});var Ah=/\r/g;s.fn.extend({val:function(n){var a,c,h,v=this[0];return arguments.length?(h=T(n),this.each(function(b){var _;this.nodeType===1&&(h?_=n.call(this,b,s(this).val()):_=n,_==null?_="":typeof _=="number"?_+="":Array.isArray(_)&&(_=s.map(_,function(P){return P==null?"":P+""})),a=s.valHooks[this.type]||s.valHooks[this.nodeName.toLowerCase()],(!a||!("set"in a)||a.set(this,_,"value")===void 0)&&(this.value=_))})):v?(a=s.valHooks[v.type]||s.valHooks[v.nodeName.toLowerCase()],a&&"get"in a&&(c=a.get(v,"value"))!==void 0?c:(c=v.value,typeof c=="string"?c.replace(Ah,""):c??"")):void 0}}),s.extend({valHooks:{option:{get:function(n){var a=s.find.attr(n,"value");return a??Hn(s.text(n))}},select:{get:function(n){var a,c,h,v=n.options,b=n.selectedIndex,_=n.type==="select-one",P=_?null:[],O=_?b+1:v.length;for(b<0?h=O:h=_?b:0;h<O;h++)if(c=v[h],(c.selected||h===b)&&!c.disabled&&(!c.parentNode.disabled||!B(c.parentNode,"optgroup"))){if(a=s(c).val(),_)return a;P.push(a)}return P},set:function(n,a){for(var c,h,v=n.options,b=s.makeArray(a),_=v.length;_--;)h=v[_],(h.selected=s.inArray(s.valHooks.option.get(h),b)>-1)&&(c=!0);return c||(n.selectedIndex=-1),b}}}}),s.each(["radio","checkbox"],function(){s.valHooks[this]={set:function(n,a){if(Array.isArray(a))return n.checked=s.inArray(s(n).val(),a)>-1}},M.checkOn||(s.valHooks[this].get=function(n){return n.getAttribute("value")===null?"on":n.value})});var cs=i.location,nu={guid:Date.now()},ja=/\?/;s.parseXML=function(n){var a,c;if(!n||typeof n!="string")return null;try{a=new i.DOMParser().parseFromString(n,"text/xml")}catch{}return c=a&&a.getElementsByTagName("parsererror")[0],(!a||c)&&s.error("Invalid XML: "+(c?s.map(c.childNodes,function(h){return h.textContent}).join(`
|
|
3
|
+
`):n)),a};var ru=/^(?:focusinfocus|focusoutblur)$/,su=function(n){n.stopPropagation()};s.extend(s.event,{trigger:function(n,a,c,h){var v,b,_,P,O,R,U,Y,W=[c||D],X=S.call(n,"type")?n.type:n,ve=S.call(n,"namespace")?n.namespace.split("."):[];if(b=Y=_=c=c||D,!(c.nodeType===3||c.nodeType===8)&&!ru.test(X+s.event.triggered)&&(X.indexOf(".")>-1&&(ve=X.split("."),X=ve.shift(),ve.sort()),O=X.indexOf(":")<0&&"on"+X,n=n[s.expando]?n:new s.Event(X,typeof n=="object"&&n),n.isTrigger=h?2:3,n.namespace=ve.join("."),n.rnamespace=n.namespace?new RegExp("(^|\\.)"+ve.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=void 0,n.target||(n.target=c),a=a==null?[n]:s.makeArray(a,[n]),U=s.event.special[X]||{},!(!h&&U.trigger&&U.trigger.apply(c,a)===!1))){if(!h&&!U.noBubble&&!k(c)){for(P=U.delegateType||X,ru.test(P+X)||(b=b.parentNode);b;b=b.parentNode)W.push(b),_=b;_===(c.ownerDocument||D)&&W.push(_.defaultView||_.parentWindow||i)}for(v=0;(b=W[v++])&&!n.isPropagationStopped();)Y=b,n.type=v>1?P:U.bindType||X,R=(oe.get(b,"events")||Object.create(null))[n.type]&&oe.get(b,"handle"),R&&R.apply(b,a),R=O&&b[O],R&&R.apply&&Rt(b)&&(n.result=R.apply(b,a),n.result===!1&&n.preventDefault());return n.type=X,!h&&!n.isDefaultPrevented()&&(!U._default||U._default.apply(W.pop(),a)===!1)&&Rt(c)&&O&&T(c[X])&&!k(c)&&(_=c[O],_&&(c[O]=null),s.event.triggered=X,n.isPropagationStopped()&&Y.addEventListener(X,su),c[X](),n.isPropagationStopped()&&Y.removeEventListener(X,su),s.event.triggered=void 0,_&&(c[O]=_)),n.result}},simulate:function(n,a,c){var h=s.extend(new s.Event,c,{type:n,isSimulated:!0});s.event.trigger(h,null,a)}}),s.fn.extend({trigger:function(n,a){return this.each(function(){s.event.trigger(n,a,this)})},triggerHandler:function(n,a){var c=this[0];if(c)return s.event.trigger(n,a,c,!0)}});var Th=/\[\]$/,ou=/\r?\n/g,Ch=/^(?:submit|button|image|reset|file)$/i,xh=/^(?:input|select|textarea|keygen)/i;function Wa(n,a,c,h){var v;if(Array.isArray(a))s.each(a,function(b,_){c||Th.test(n)?h(n,_):Wa(n+"["+(typeof _=="object"&&_!=null?b:"")+"]",_,c,h)});else if(!c&&d(a)==="object")for(v in a)Wa(n+"["+v+"]",a[v],c,h);else h(n,a)}s.param=function(n,a){var c,h=[],v=function(b,_){var P=T(_)?_():_;h[h.length]=encodeURIComponent(b)+"="+encodeURIComponent(P??"")};if(n==null)return"";if(Array.isArray(n)||n.jquery&&!s.isPlainObject(n))s.each(n,function(){v(this.name,this.value)});else for(c in n)Wa(c,n[c],a,v);return h.join("&")},s.fn.extend({serialize:function(){return s.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=s.prop(this,"elements");return n?s.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!s(this).is(":disabled")&&xh.test(this.nodeName)&&!Ch.test(n)&&(this.checked||!ht.test(n))}).map(function(n,a){var c=s(this).val();return c==null?null:Array.isArray(c)?s.map(c,function(h){return{name:a.name,value:h.replace(ou,`\r
|
|
4
|
+
`)}}):{name:a.name,value:c.replace(ou,`\r
|
|
5
|
+
`)}}).get()}});var Dh=/%20/g,kh=/#.*$/,Mh=/([?&])_=[^&]*/,Oh=/^(.*?):[ \t]*([^\r\n]*)$/mg,Lh=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ph=/^(?:GET|HEAD)$/,Nh=/^\/\//,au={},qa={},lu="*/".concat("*"),Ba=D.createElement("a");Ba.href=cs.href;function cu(n){return function(a,c){typeof a!="string"&&(c=a,a="*");var h,v=0,b=a.toLowerCase().match(Ye)||[];if(T(c))for(;h=b[v++];)h[0]==="+"?(h=h.slice(1)||"*",(n[h]=n[h]||[]).unshift(c)):(n[h]=n[h]||[]).push(c)}}function uu(n,a,c,h){var v={},b=n===qa;function _(P){var O;return v[P]=!0,s.each(n[P]||[],function(R,U){var Y=U(a,c,h);if(typeof Y=="string"&&!b&&!v[Y])return a.dataTypes.unshift(Y),_(Y),!1;if(b)return!(O=Y)}),O}return _(a.dataTypes[0])||!v["*"]&&_("*")}function Va(n,a){var c,h,v=s.ajaxSettings.flatOptions||{};for(c in a)a[c]!==void 0&&((v[c]?n:h||(h={}))[c]=a[c]);return h&&s.extend(!0,n,h),n}function Ih(n,a,c){for(var h,v,b,_,P=n.contents,O=n.dataTypes;O[0]==="*";)O.shift(),h===void 0&&(h=n.mimeType||a.getResponseHeader("Content-Type"));if(h){for(v in P)if(P[v]&&P[v].test(h)){O.unshift(v);break}}if(O[0]in c)b=O[0];else{for(v in c){if(!O[0]||n.converters[v+" "+O[0]]){b=v;break}_||(_=v)}b=b||_}if(b)return b!==O[0]&&O.unshift(b),c[b]}function Rh(n,a,c,h){var v,b,_,P,O,R={},U=n.dataTypes.slice();if(U[1])for(_ in n.converters)R[_.toLowerCase()]=n.converters[_];for(b=U.shift();b;)if(n.responseFields[b]&&(c[n.responseFields[b]]=a),!O&&h&&n.dataFilter&&(a=n.dataFilter(a,n.dataType)),O=b,b=U.shift(),b){if(b==="*")b=O;else if(O!=="*"&&O!==b){if(_=R[O+" "+b]||R["* "+b],!_){for(v in R)if(P=v.split(" "),P[1]===b&&(_=R[O+" "+P[0]]||R["* "+P[0]],_)){_===!0?_=R[v]:R[v]!==!0&&(b=P[0],U.unshift(P[1]));break}}if(_!==!0)if(_&&n.throws)a=_(a);else try{a=_(a)}catch(Y){return{state:"parsererror",error:_?Y:"No conversion from "+O+" to "+b}}}}return{state:"success",data:a}}s.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:cs.href,type:"GET",isLocal:Lh.test(cs.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":lu,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":s.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,a){return a?Va(Va(n,s.ajaxSettings),a):Va(s.ajaxSettings,n)},ajaxPrefilter:cu(au),ajaxTransport:cu(qa),ajax:function(n,a){typeof n=="object"&&(a=n,n=void 0),a=a||{};var c,h,v,b,_,P,O,R,U,Y,W=s.ajaxSetup({},a),X=W.context||W,ve=W.context&&(X.nodeType||X.jquery)?s(X):s.event,xe=s.Deferred(),_e=s.Callbacks("once memory"),bt=W.statusCode||{},ot={},_i={},Ei="canceled",Ae={readyState:0,getResponseHeader:function(ke){var Je;if(O){if(!b)for(b={};Je=Oh.exec(v);)b[Je[1].toLowerCase()+" "]=(b[Je[1].toLowerCase()+" "]||[]).concat(Je[2]);Je=b[ke.toLowerCase()+" "]}return Je==null?null:Je.join(", ")},getAllResponseHeaders:function(){return O?v:null},setRequestHeader:function(ke,Je){return O==null&&(ke=_i[ke.toLowerCase()]=_i[ke.toLowerCase()]||ke,ot[ke]=Je),this},overrideMimeType:function(ke){return O==null&&(W.mimeType=ke),this},statusCode:function(ke){var Je;if(ke)if(O)Ae.always(ke[Ae.status]);else for(Je in ke)bt[Je]=[bt[Je],ke[Je]];return this},abort:function(ke){var Je=ke||Ei;return c&&c.abort(Je),jn(0,Je),this}};if(xe.promise(Ae),W.url=((n||W.url||cs.href)+"").replace(Nh,cs.protocol+"//"),W.type=a.method||a.type||W.method||W.type,W.dataTypes=(W.dataType||"*").toLowerCase().match(Ye)||[""],W.crossDomain==null){P=D.createElement("a");try{P.href=W.url,P.href=P.href,W.crossDomain=Ba.protocol+"//"+Ba.host!=P.protocol+"//"+P.host}catch{W.crossDomain=!0}}if(W.data&&W.processData&&typeof W.data!="string"&&(W.data=s.param(W.data,W.traditional)),uu(au,W,a,Ae),O)return Ae;R=s.event&&W.global,R&&s.active++===0&&s.event.trigger("ajaxStart"),W.type=W.type.toUpperCase(),W.hasContent=!Ph.test(W.type),h=W.url.replace(kh,""),W.hasContent?W.data&&W.processData&&(W.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(W.data=W.data.replace(Dh,"+")):(Y=W.url.slice(h.length),W.data&&(W.processData||typeof W.data=="string")&&(h+=(ja.test(h)?"&":"?")+W.data,delete W.data),W.cache===!1&&(h=h.replace(Mh,"$1"),Y=(ja.test(h)?"&":"?")+"_="+nu.guid+++Y),W.url=h+Y),W.ifModified&&(s.lastModified[h]&&Ae.setRequestHeader("If-Modified-Since",s.lastModified[h]),s.etag[h]&&Ae.setRequestHeader("If-None-Match",s.etag[h])),(W.data&&W.hasContent&&W.contentType!==!1||a.contentType)&&Ae.setRequestHeader("Content-Type",W.contentType),Ae.setRequestHeader("Accept",W.dataTypes[0]&&W.accepts[W.dataTypes[0]]?W.accepts[W.dataTypes[0]]+(W.dataTypes[0]!=="*"?", "+lu+"; q=0.01":""):W.accepts["*"]);for(U in W.headers)Ae.setRequestHeader(U,W.headers[U]);if(W.beforeSend&&(W.beforeSend.call(X,Ae,W)===!1||O))return Ae.abort();if(Ei="abort",_e.add(W.complete),Ae.done(W.success),Ae.fail(W.error),c=uu(qa,W,a,Ae),!c)jn(-1,"No Transport");else{if(Ae.readyState=1,R&&ve.trigger("ajaxSend",[Ae,W]),O)return Ae;W.async&&W.timeout>0&&(_=i.setTimeout(function(){Ae.abort("timeout")},W.timeout));try{O=!1,c.send(ot,jn)}catch(ke){if(O)throw ke;jn(-1,ke)}}function jn(ke,Je,fs,za){var Si,ds,Ai,sn,on,Jt=Je;O||(O=!0,_&&i.clearTimeout(_),c=void 0,v=za||"",Ae.readyState=ke>0?4:0,Si=ke>=200&&ke<300||ke===304,fs&&(sn=Ih(W,Ae,fs)),!Si&&s.inArray("script",W.dataTypes)>-1&&s.inArray("json",W.dataTypes)<0&&(W.converters["text script"]=function(){}),sn=Rh(W,sn,Ae,Si),Si?(W.ifModified&&(on=Ae.getResponseHeader("Last-Modified"),on&&(s.lastModified[h]=on),on=Ae.getResponseHeader("etag"),on&&(s.etag[h]=on)),ke===204||W.type==="HEAD"?Jt="nocontent":ke===304?Jt="notmodified":(Jt=sn.state,ds=sn.data,Ai=sn.error,Si=!Ai)):(Ai=Jt,(ke||!Jt)&&(Jt="error",ke<0&&(ke=0))),Ae.status=ke,Ae.statusText=(Je||Jt)+"",Si?xe.resolveWith(X,[ds,Jt,Ae]):xe.rejectWith(X,[Ae,Jt,Ai]),Ae.statusCode(bt),bt=void 0,R&&ve.trigger(Si?"ajaxSuccess":"ajaxError",[Ae,W,Si?ds:Ai]),_e.fireWith(X,[Ae,Jt]),R&&(ve.trigger("ajaxComplete",[Ae,W]),--s.active||s.event.trigger("ajaxStop")))}return Ae},getJSON:function(n,a,c){return s.get(n,a,c,"json")},getScript:function(n,a){return s.get(n,void 0,a,"script")}}),s.each(["get","post"],function(n,a){s[a]=function(c,h,v,b){return T(h)&&(b=b||v,v=h,h=void 0),s.ajax(s.extend({url:c,type:a,dataType:b,data:h,success:v},s.isPlainObject(c)&&c))}}),s.ajaxPrefilter(function(n){var a;for(a in n.headers)a.toLowerCase()==="content-type"&&(n.contentType=n.headers[a]||"")}),s._evalUrl=function(n,a,c){return s.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(h){s.globalEval(h,a,c)}})},s.fn.extend({wrapAll:function(n){var a;return this[0]&&(T(n)&&(n=n.call(this[0])),a=s(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&a.insertBefore(this[0]),a.map(function(){for(var c=this;c.firstElementChild;)c=c.firstElementChild;return c}).append(this)),this},wrapInner:function(n){return T(n)?this.each(function(a){s(this).wrapInner(n.call(this,a))}):this.each(function(){var a=s(this),c=a.contents();c.length?c.wrapAll(n):a.append(n)})},wrap:function(n){var a=T(n);return this.each(function(c){s(this).wrapAll(a?n.call(this,c):n)})},unwrap:function(n){return this.parent(n).not("body").each(function(){s(this).replaceWith(this.childNodes)}),this}}),s.expr.pseudos.hidden=function(n){return!s.expr.pseudos.visible(n)},s.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},s.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch{}};var Hh={0:200,1223:204},us=s.ajaxSettings.xhr();M.cors=!!us&&"withCredentials"in us,M.ajax=us=!!us,s.ajaxTransport(function(n){var a,c;if(M.cors||us&&!n.crossDomain)return{send:function(h,v){var b,_=n.xhr();if(_.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(b in n.xhrFields)_[b]=n.xhrFields[b];n.mimeType&&_.overrideMimeType&&_.overrideMimeType(n.mimeType),!n.crossDomain&&!h["X-Requested-With"]&&(h["X-Requested-With"]="XMLHttpRequest");for(b in h)_.setRequestHeader(b,h[b]);a=function(P){return function(){a&&(a=c=_.onload=_.onerror=_.onabort=_.ontimeout=_.onreadystatechange=null,P==="abort"?_.abort():P==="error"?typeof _.status!="number"?v(0,"error"):v(_.status,_.statusText):v(Hh[_.status]||_.status,_.statusText,(_.responseType||"text")!=="text"||typeof _.responseText!="string"?{binary:_.response}:{text:_.responseText},_.getAllResponseHeaders()))}},_.onload=a(),c=_.onerror=_.ontimeout=a("error"),_.onabort!==void 0?_.onabort=c:_.onreadystatechange=function(){_.readyState===4&&i.setTimeout(function(){a&&c()})},a=a("abort");try{_.send(n.hasContent&&n.data||null)}catch(P){if(a)throw P}},abort:function(){a&&a()}}}),s.ajaxPrefilter(function(n){n.crossDomain&&(n.contents.script=!1)}),s.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return s.globalEval(n),n}}}),s.ajaxPrefilter("script",function(n){n.cache===void 0&&(n.cache=!1),n.crossDomain&&(n.type="GET")}),s.ajaxTransport("script",function(n){if(n.crossDomain||n.scriptAttrs){var a,c;return{send:function(h,v){a=s("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",c=function(b){a.remove(),c=null,b&&v(b.type==="error"?404:200,b.type)}),D.head.appendChild(a[0])},abort:function(){c&&c()}}}});var fu=[],Ua=/(=)\?(?=&|$)|\?\?/;s.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=fu.pop()||s.expando+"_"+nu.guid++;return this[n]=!0,n}}),s.ajaxPrefilter("json jsonp",function(n,a,c){var h,v,b,_=n.jsonp!==!1&&(Ua.test(n.url)?"url":typeof n.data=="string"&&(n.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&Ua.test(n.data)&&"data");if(_||n.dataTypes[0]==="jsonp")return h=n.jsonpCallback=T(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,_?n[_]=n[_].replace(Ua,"$1"+h):n.jsonp!==!1&&(n.url+=(ja.test(n.url)?"&":"?")+n.jsonp+"="+h),n.converters["script json"]=function(){return b||s.error(h+" was not called"),b[0]},n.dataTypes[0]="json",v=i[h],i[h]=function(){b=arguments},c.always(function(){v===void 0?s(i).removeProp(h):i[h]=v,n[h]&&(n.jsonpCallback=a.jsonpCallback,fu.push(h)),b&&T(v)&&v(b[0]),b=v=void 0}),"script"}),M.createHTMLDocument=(function(){var n=D.implementation.createHTMLDocument("").body;return n.innerHTML="<form></form><form></form>",n.childNodes.length===2})(),s.parseHTML=function(n,a,c){if(typeof n!="string")return[];typeof a=="boolean"&&(c=a,a=!1);var h,v,b;return a||(M.createHTMLDocument?(a=D.implementation.createHTMLDocument(""),h=a.createElement("base"),h.href=D.location.href,a.head.appendChild(h)):a=D),v=ut.exec(n),b=!c&&[],v?[a.createElement(v[1])]:(v=Q([n],a,b),b&&b.length&&s(b).remove(),s.merge([],v.childNodes))},s.fn.load=function(n,a,c){var h,v,b,_=this,P=n.indexOf(" ");return P>-1&&(h=Hn(n.slice(P)),n=n.slice(0,P)),T(a)?(c=a,a=void 0):a&&typeof a=="object"&&(v="POST"),_.length>0&&s.ajax({url:n,type:v||"GET",dataType:"html",data:a}).done(function(O){b=arguments,_.html(h?s("<div>").append(s.parseHTML(O)).find(h):O)}).always(c&&function(O,R){_.each(function(){c.apply(this,b||[O.responseText,R,O])})}),this},s.expr.pseudos.animated=function(n){return s.grep(s.timers,function(a){return n===a.elem}).length},s.offset={setOffset:function(n,a,c){var h,v,b,_,P,O,R,U=s.css(n,"position"),Y=s(n),W={};U==="static"&&(n.style.position="relative"),P=Y.offset(),b=s.css(n,"top"),O=s.css(n,"left"),R=(U==="absolute"||U==="fixed")&&(b+O).indexOf("auto")>-1,R?(h=Y.position(),_=h.top,v=h.left):(_=parseFloat(b)||0,v=parseFloat(O)||0),T(a)&&(a=a.call(n,c,s.extend({},P))),a.top!=null&&(W.top=a.top-P.top+_),a.left!=null&&(W.left=a.left-P.left+v),"using"in a?a.using.call(n,W):Y.css(W)}},s.fn.extend({offset:function(n){if(arguments.length)return n===void 0?this:this.each(function(v){s.offset.setOffset(this,n,v)});var a,c,h=this[0];if(h)return h.getClientRects().length?(a=h.getBoundingClientRect(),c=h.ownerDocument.defaultView,{top:a.top+c.pageYOffset,left:a.left+c.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var n,a,c,h=this[0],v={top:0,left:0};if(s.css(h,"position")==="fixed")a=h.getBoundingClientRect();else{for(a=this.offset(),c=h.ownerDocument,n=h.offsetParent||c.documentElement;n&&(n===c.body||n===c.documentElement)&&s.css(n,"position")==="static";)n=n.parentNode;n&&n!==h&&n.nodeType===1&&(v=s(n).offset(),v.top+=s.css(n,"borderTopWidth",!0),v.left+=s.css(n,"borderLeftWidth",!0))}return{top:a.top-v.top-s.css(h,"marginTop",!0),left:a.left-v.left-s.css(h,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&s.css(n,"position")==="static";)n=n.offsetParent;return n||Kt})}}),s.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,a){var c=a==="pageYOffset";s.fn[n]=function(h){return dt(this,function(v,b,_){var P;if(k(v)?P=v:v.nodeType===9&&(P=v.defaultView),_===void 0)return P?P[a]:v[b];P?P.scrollTo(c?P.pageXOffset:_,c?_:P.pageYOffset):v[b]=_},n,h,arguments.length)}}),s.each(["top","left"],function(n,a){s.cssHooks[a]=$r(M.pixelPosition,function(c,h){if(h)return h=wi(c,a),nn.test(h)?s(c).position()[a]+"px":h})}),s.each({Height:"height",Width:"width"},function(n,a){s.each({padding:"inner"+n,content:a,"":"outer"+n},function(c,h){s.fn[h]=function(v,b){var _=arguments.length&&(c||typeof v!="boolean"),P=c||(v===!0||b===!0?"margin":"border");return dt(this,function(O,R,U){var Y;return k(O)?h.indexOf("outer")===0?O["inner"+n]:O.document.documentElement["client"+n]:O.nodeType===9?(Y=O.documentElement,Math.max(O.body["scroll"+n],Y["scroll"+n],O.body["offset"+n],Y["offset"+n],Y["client"+n])):U===void 0?s.css(O,R,P):s.style(O,R,U,P)},a,_?v:void 0,_)}})}),s.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,a){s.fn[a]=function(c){return this.on(a,c)}}),s.fn.extend({bind:function(n,a,c){return this.on(n,null,a,c)},unbind:function(n,a){return this.off(n,null,a)},delegate:function(n,a,c,h){return this.on(a,n,c,h)},undelegate:function(n,a,c){return arguments.length===1?this.off(n,"**"):this.off(a,n||"**",c)},hover:function(n,a){return this.on("mouseenter",n).on("mouseleave",a||n)}}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(n,a){s.fn[a]=function(c,h){return arguments.length>0?this.on(a,null,c,h):this.trigger(a)}});var Fh=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;s.proxy=function(n,a){var c,h,v;if(typeof a=="string"&&(c=n[a],a=n,n=c),!!T(n))return h=o.call(arguments,2),v=function(){return n.apply(a||this,h.concat(o.call(arguments)))},v.guid=n.guid=n.guid||s.guid++,v},s.holdReady=function(n){n?s.readyWait++:s.ready(!0)},s.isArray=Array.isArray,s.parseJSON=JSON.parse,s.nodeName=B,s.isFunction=T,s.isWindow=k,s.camelCase=tt,s.type=d,s.now=Date.now,s.isNumeric=function(n){var a=s.type(n);return(a==="number"||a==="string")&&!isNaN(n-parseFloat(n))},s.trim=function(n){return n==null?"":(n+"").replace(Fh,"$1")},typeof define=="function"&&define.amd&&define("jquery",[],function(){return s});var jh=i.jQuery,Wh=i.$;return s.noConflict=function(n){return i.$===s&&(i.$=Wh),n&&i.jQuery===s&&(i.jQuery=jh),s},typeof e>"u"&&(i.jQuery=i.$=s),s})});var vh=gu((Na,gh)=>{(function(i,e){typeof Na=="object"&&typeof gh<"u"?e(Na):typeof define=="function"&&define.amd?define(["exports"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i.index={}))})(Na,(function(i){"use strict";var e=function(){return e=Object.assign||function(Ke){for(var Rn,Hi=1,Ha=arguments.length;Hi<Ha;Hi++){Rn=arguments[Hi];for(var ls in Rn)Object.prototype.hasOwnProperty.call(Rn,ls)&&(Ke[ls]=Rn[ls])}return Ke},e.apply(this,arguments)},t=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},r={weekdays:{shorthand:["\u0623\u062D\u062F","\u0627\u062B\u0646\u064A\u0646","\u062B\u0644\u0627\u062B\u0627\u0621","\u0623\u0631\u0628\u0639\u0627\u0621","\u062E\u0645\u064A\u0633","\u062C\u0645\u0639\u0629","\u0633\u0628\u062A"],longhand:["\u0627\u0644\u0623\u062D\u062F","\u0627\u0644\u0627\u062B\u0646\u064A\u0646","\u0627\u0644\u062B\u0644\u0627\u062B\u0627\u0621","\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621","\u0627\u0644\u062E\u0645\u064A\u0633","\u0627\u0644\u062C\u0645\u0639\u0629","\u0627\u0644\u0633\u0628\u062A"]},months:{shorthand:["1","2","3","4","5","6","7","8","9","10","11","12"],longhand:["\u064A\u0646\u0627\u064A\u0631","\u0641\u0628\u0631\u0627\u064A\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064A\u0644","\u0645\u0627\u064A\u0648","\u064A\u0648\u0646\u064A\u0648","\u064A\u0648\u0644\u064A\u0648","\u0623\u063A\u0633\u0637\u0633","\u0633\u0628\u062A\u0645\u0628\u0631","\u0623\u0643\u062A\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062F\u064A\u0633\u0645\u0628\u0631"]},firstDayOfWeek:6,rangeSeparator:" \u0625\u0644\u0649 ",weekAbbreviation:"Wk",scrollTitle:"\u0642\u0645 \u0628\u0627\u0644\u062A\u0645\u0631\u064A\u0631 \u0644\u0644\u0632\u064A\u0627\u062F\u0629",toggleTitle:"\u0627\u0636\u063A\u0637 \u0644\u0644\u062A\u0628\u062F\u064A\u0644",amPM:["\u0635","\u0645"],yearAriaLabel:"\u0633\u0646\u0629",monthAriaLabel:"\u0634\u0647\u0631",hourAriaLabel:"\u0633\u0627\u0639\u0629",minuteAriaLabel:"\u062F\u0642\u064A\u0642\u0629",time_24hr:!1};t.l10ns.ar=r,t.l10ns;var o=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},l={weekdays:{shorthand:["So","Mo","Di","Mi","Do","Fr","Sa"],longhand:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},months:{shorthand:["J\xE4n","Feb","M\xE4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],longhand:["J\xE4nner","Februar","M\xE4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},firstDayOfWeek:1,weekAbbreviation:"KW",rangeSeparator:" bis ",scrollTitle:"Zum \xC4ndern scrollen",toggleTitle:"Zum Umschalten klicken",time_24hr:!0};o.l10ns.at=l,o.l10ns;var m=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},f={weekdays:{shorthand:["B.","B.e.","\xC7.a.","\xC7.","C.a.","C.","\u015E."],longhand:["Bazar","Bazar ert\u0259si","\xC7\u0259r\u015F\u0259nb\u0259 ax\u015Fam\u0131","\xC7\u0259r\u015F\u0259nb\u0259","C\xFCm\u0259 ax\u015Fam\u0131","C\xFCm\u0259","\u015E\u0259nb\u0259"]},months:{shorthand:["Yan","Fev","Mar","Apr","May","\u0130yn","\u0130yl","Avq","Sen","Okt","Noy","Dek"],longhand:["Yanvar","Fevral","Mart","Aprel","May","\u0130yun","\u0130yul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"]},firstDayOfWeek:1,ordinal:function(){return"."},rangeSeparator:" - ",weekAbbreviation:"Hf",scrollTitle:"Art\u0131rmaq \xFC\xE7\xFCn s\xFCr\xFC\u015Fd\xFCr\xFCn",toggleTitle:"A\xE7 / Ba\u011Fla",amPM:["G\u018F","GS"],time_24hr:!0};m.l10ns.az=f,m.l10ns;var y=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},A={weekdays:{shorthand:["\u041D\u0434","\u041F\u043D","\u0410\u045E","\u0421\u0440","\u0427\u0446","\u041F\u0442","\u0421\u0431"],longhand:["\u041D\u044F\u0434\u0437\u0435\u043B\u044F","\u041F\u0430\u043D\u044F\u0434\u0437\u0435\u043B\u0430\u043A","\u0410\u045E\u0442\u043E\u0440\u0430\u043A","\u0421\u0435\u0440\u0430\u0434\u0430","\u0427\u0430\u0446\u0432\u0435\u0440","\u041F\u044F\u0442\u043D\u0456\u0446\u0430","\u0421\u0443\u0431\u043E\u0442\u0430"]},months:{shorthand:["\u0421\u0442\u0443","\u041B\u044E\u0442","\u0421\u0430\u043A","\u041A\u0440\u0430","\u0422\u0440\u0430","\u0427\u044D\u0440","\u041B\u0456\u043F","\u0416\u043D\u0456","\u0412\u0435\u0440","\u041A\u0430\u0441","\u041B\u0456\u0441","\u0421\u043D\u0435"],longhand:["\u0421\u0442\u0443\u0434\u0437\u0435\u043D\u044C","\u041B\u044E\u0442\u044B","\u0421\u0430\u043A\u0430\u0432\u0456\u043A","\u041A\u0440\u0430\u0441\u0430\u0432\u0456\u043A","\u0422\u0440\u0430\u0432\u0435\u043D\u044C","\u0427\u044D\u0440\u0432\u0435\u043D\u044C","\u041B\u0456\u043F\u0435\u043D\u044C","\u0416\u043D\u0456\u0432\u0435\u043D\u044C","\u0412\u0435\u0440\u0430\u0441\u0435\u043D\u044C","\u041A\u0430\u0441\u0442\u0440\u044B\u0447\u043D\u0456\u043A","\u041B\u0456\u0441\u0442\u0430\u043F\u0430\u0434","\u0421\u043D\u0435\u0436\u0430\u043D\u044C"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" \u2014 ",weekAbbreviation:"\u0422\u044B\u0434.",scrollTitle:"\u041F\u0440\u0430\u043A\u0440\u0443\u0446\u0456\u0446\u0435 \u0434\u043B\u044F \u043F\u0430\u0432\u0435\u043B\u0456\u0447\u044D\u043D\u043D\u044F",toggleTitle:"\u041D\u0430\u0446\u0456\u0441\u043D\u0456\u0446\u0435 \u0434\u043B\u044F \u043F\u0435\u0440\u0430\u043A\u043B\u044E\u0447\u044D\u043D\u043D\u044F",amPM:["\u0414\u041F","\u041F\u041F"],yearAriaLabel:"\u0413\u043E\u0434",time_24hr:!0};y.l10ns.be=A,y.l10ns;var S=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},N={firstDayOfWeek:1,weekdays:{shorthand:["Ned","Pon","Uto","Sri","\u010Cet","Pet","Sub"],longhand:["Nedjelja","Ponedjeljak","Utorak","Srijeda","\u010Cetvrtak","Petak","Subota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],longhand:["Januar","Februar","Mart","April","Maj","Juni","Juli","Avgust","Septembar","Oktobar","Novembar","Decembar"]},time_24hr:!0};S.l10ns.bs=N,S.l10ns;var L=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},M={weekdays:{shorthand:["\u041D\u0434","\u041F\u043D","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041F\u0442","\u0421\u0431"],longhand:["\u041D\u0435\u0434\u0435\u043B\u044F","\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u043D\u0438\u043A","\u0412\u0442\u043E\u0440\u043D\u0438\u043A","\u0421\u0440\u044F\u0434\u0430","\u0427\u0435\u0442\u0432\u044A\u0440\u0442\u044A\u043A","\u041F\u0435\u0442\u044A\u043A","\u0421\u044A\u0431\u043E\u0442\u0430"]},months:{shorthand:["\u042F\u043D\u0443","\u0424\u0435\u0432","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440","\u041C\u0430\u0439","\u042E\u043D\u0438","\u042E\u043B\u0438","\u0410\u0432\u0433","\u0421\u0435\u043F","\u041E\u043A\u0442","\u041D\u043E\u0435","\u0414\u0435\u043A"],longhand:["\u042F\u043D\u0443\u0430\u0440\u0438","\u0424\u0435\u0432\u0440\u0443\u0430\u0440\u0438","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0438\u043B","\u041C\u0430\u0439","\u042E\u043D\u0438","\u042E\u043B\u0438","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043F\u0442\u0435\u043C\u0432\u0440\u0438","\u041E\u043A\u0442\u043E\u043C\u0432\u0440\u0438","\u041D\u043E\u0435\u043C\u0432\u0440\u0438","\u0414\u0435\u043A\u0435\u043C\u0432\u0440\u0438"]},time_24hr:!0,firstDayOfWeek:1};L.l10ns.bg=M,L.l10ns;var T=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},k={weekdays:{shorthand:["\u09B0\u09AC\u09BF","\u09B8\u09CB\u09AE","\u09AE\u0999\u09CD\u0997\u09B2","\u09AC\u09C1\u09A7","\u09AC\u09C3\u09B9\u09B8\u09CD\u09AA\u09A4\u09BF","\u09B6\u09C1\u0995\u09CD\u09B0","\u09B6\u09A8\u09BF"],longhand:["\u09B0\u09AC\u09BF\u09AC\u09BE\u09B0","\u09B8\u09CB\u09AE\u09AC\u09BE\u09B0","\u09AE\u0999\u09CD\u0997\u09B2\u09AC\u09BE\u09B0","\u09AC\u09C1\u09A7\u09AC\u09BE\u09B0","\u09AC\u09C3\u09B9\u09B8\u09CD\u09AA\u09A4\u09BF\u09AC\u09BE\u09B0","\u09B6\u09C1\u0995\u09CD\u09B0\u09AC\u09BE\u09B0","\u09B6\u09A8\u09BF\u09AC\u09BE\u09B0"]},months:{shorthand:["\u099C\u09BE\u09A8\u09C1","\u09AB\u09C7\u09AC\u09CD\u09B0\u09C1","\u09AE\u09BE\u09B0\u09CD\u099A","\u098F\u09AA\u09CD\u09B0\u09BF\u09B2","\u09AE\u09C7","\u099C\u09C1\u09A8","\u099C\u09C1\u09B2\u09BE\u0987","\u0986\u0997","\u09B8\u09C7\u09AA\u09CD\u099F\u09C7","\u0985\u0995\u09CD\u099F\u09CB","\u09A8\u09AD\u09C7","\u09A1\u09BF\u09B8\u09C7"],longhand:["\u099C\u09BE\u09A8\u09C1\u09AF\u09BC\u09BE\u09B0\u09C0","\u09AB\u09C7\u09AC\u09CD\u09B0\u09C1\u09AF\u09BC\u09BE\u09B0\u09C0","\u09AE\u09BE\u09B0\u09CD\u099A","\u098F\u09AA\u09CD\u09B0\u09BF\u09B2","\u09AE\u09C7","\u099C\u09C1\u09A8","\u099C\u09C1\u09B2\u09BE\u0987","\u0986\u0997\u09B8\u09CD\u099F","\u09B8\u09C7\u09AA\u09CD\u099F\u09C7\u09AE\u09CD\u09AC\u09B0","\u0985\u0995\u09CD\u099F\u09CB\u09AC\u09B0","\u09A8\u09AD\u09C7\u09AE\u09CD\u09AC\u09B0","\u09A1\u09BF\u09B8\u09C7\u09AE\u09CD\u09AC\u09B0"]}};T.l10ns.bn=k,T.l10ns;var D=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},w={weekdays:{shorthand:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],longhand:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"]},months:{shorthand:["Gen","Febr","Mar\xE7","Abr","Maig","Juny","Jul","Ag","Set","Oct","Nov","Des"],longhand:["Gener","Febrer","Mar\xE7","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"]},ordinal:function(De){var Ke=De%100;if(Ke>3&&Ke<21)return"\xE8";switch(Ke%10){case 1:return"r";case 2:return"n";case 3:return"r";case 4:return"t";default:return"\xE8"}},firstDayOfWeek:1,rangeSeparator:" a ",time_24hr:!0};D.l10ns.cat=D.l10ns.ca=w,D.l10ns;var g=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},d={weekdays:{shorthand:["\u06CC\u06D5\u06A9\u0634\u06D5\u0645\u0645\u06D5","\u062F\u0648\u0648\u0634\u06D5\u0645\u0645\u06D5","\u0633\u06CE\u0634\u06D5\u0645\u0645\u06D5","\u0686\u0648\u0627\u0631\u0634\u06D5\u0645\u0645\u06D5","\u067E\u06CE\u0646\u062C\u0634\u06D5\u0645\u0645\u06D5","\u0647\u06D5\u06CC\u0646\u06CC","\u0634\u06D5\u0645\u0645\u06D5"],longhand:["\u06CC\u06D5\u06A9\u0634\u06D5\u0645\u0645\u06D5","\u062F\u0648\u0648\u0634\u06D5\u0645\u0645\u06D5","\u0633\u06CE\u0634\u06D5\u0645\u0645\u06D5","\u0686\u0648\u0627\u0631\u0634\u06D5\u0645\u0645\u06D5","\u067E\u06CE\u0646\u062C\u0634\u06D5\u0645\u0645\u06D5","\u0647\u06D5\u06CC\u0646\u06CC","\u0634\u06D5\u0645\u0645\u06D5"]},months:{shorthand:["\u0695\u06CE\u0628\u06D5\u0646\u062F\u0627\u0646","\u0695\u06D5\u0634\u06D5\u0645\u06D5","\u0646\u06D5\u0648\u0631\u06C6\u0632","\u06AF\u0648\u06B5\u0627\u0646","\u062C\u06C6\u0632\u06D5\u0631\u062F\u0627\u0646","\u067E\u0648\u0648\u0634\u067E\u06D5\u0695","\u06AF\u06D5\u0644\u0627\u0648\u06CE\u0698","\u062E\u06D5\u0631\u0645\u0627\u0646\u0627\u0646","\u0695\u06D5\u0632\u0628\u06D5\u0631","\u06AF\u06D5\u06B5\u0627\u0695\u06CE\u0632\u0627\u0646","\u0633\u06D5\u0631\u0645\u0627\u0648\u06D5\u0632","\u0628\u06D5\u0641\u0631\u0627\u0646\u0628\u0627\u0631"],longhand:["\u0695\u06CE\u0628\u06D5\u0646\u062F\u0627\u0646","\u0695\u06D5\u0634\u06D5\u0645\u06D5","\u0646\u06D5\u0648\u0631\u06C6\u0632","\u06AF\u0648\u06B5\u0627\u0646","\u062C\u06C6\u0632\u06D5\u0631\u062F\u0627\u0646","\u067E\u0648\u0648\u0634\u067E\u06D5\u0695","\u06AF\u06D5\u0644\u0627\u0648\u06CE\u0698","\u062E\u06D5\u0631\u0645\u0627\u0646\u0627\u0646","\u0695\u06D5\u0632\u0628\u06D5\u0631","\u06AF\u06D5\u06B5\u0627\u0695\u06CE\u0632\u0627\u0646","\u0633\u06D5\u0631\u0645\u0627\u0648\u06D5\u0632","\u0628\u06D5\u0641\u0631\u0627\u0646\u0628\u0627\u0631"]},firstDayOfWeek:6,ordinal:function(){return""}};g.l10ns.ckb=d,g.l10ns;var u=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},p={weekdays:{shorthand:["Ne","Po","\xDAt","St","\u010Ct","P\xE1","So"],longhand:["Ned\u011Ble","Pond\u011Bl\xED","\xDAter\xFD","St\u0159eda","\u010Ctvrtek","P\xE1tek","Sobota"]},months:{shorthand:["Led","\xDAn","B\u0159e","Dub","Kv\u011B","\u010Cer","\u010Cvc","Srp","Z\xE1\u0159","\u0158\xEDj","Lis","Pro"],longhand:["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"]},firstDayOfWeek:1,ordinal:function(){return"."},rangeSeparator:" do ",weekAbbreviation:"T\xFDd.",scrollTitle:"Rolujte pro zm\u011Bnu",toggleTitle:"P\u0159epnout dopoledne/odpoledne",amPM:["dop.","odp."],yearAriaLabel:"Rok",time_24hr:!0};u.l10ns.cs=p,u.l10ns;var s=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},j={weekdays:{shorthand:["Sul","Llun","Maw","Mer","Iau","Gwe","Sad"],longhand:["Dydd Sul","Dydd Llun","Dydd Mawrth","Dydd Mercher","Dydd Iau","Dydd Gwener","Dydd Sadwrn"]},months:{shorthand:["Ion","Chwef","Maw","Ebr","Mai","Meh","Gorff","Awst","Medi","Hyd","Tach","Rhag"],longhand:["Ionawr","Chwefror","Mawrth","Ebrill","Mai","Mehefin","Gorffennaf","Awst","Medi","Hydref","Tachwedd","Rhagfyr"]},firstDayOfWeek:1,ordinal:function(De){return De===1?"af":De===2?"ail":De===3||De===4?"ydd":De===5||De===6?"ed":De>=7&&De<=10||De==12||De==15||De==18||De==20?"fed":De==11||De==13||De==14||De==16||De==17||De==19?"eg":De>=21&&De<=39?"ain":""},time_24hr:!0};s.l10ns.cy=j,s.l10ns;var B=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},K={weekdays:{shorthand:["s\xF8n","man","tir","ons","tors","fre","l\xF8r"],longhand:["s\xF8ndag","mandag","tirsdag","onsdag","torsdag","fredag","l\xF8rdag"]},months:{shorthand:["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],longhand:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},ordinal:function(){return"."},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"uge",time_24hr:!0};B.l10ns.da=K,B.l10ns;var J=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},ae={weekdays:{shorthand:["So","Mo","Di","Mi","Do","Fr","Sa"],longhand:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},months:{shorthand:["Jan","Feb","M\xE4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],longhand:["Januar","Februar","M\xE4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},firstDayOfWeek:1,weekAbbreviation:"KW",rangeSeparator:" bis ",scrollTitle:"Zum \xC4ndern scrollen",toggleTitle:"Zum Umschalten klicken",time_24hr:!0};J.l10ns.de=ae,J.l10ns;var te={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(De){var Ke=De%100;if(Ke>3&&Ke<21)return"th";switch(Ke%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},we=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Ce={firstDayOfWeek:1,rangeSeparator:" \u011Dis ",weekAbbreviation:"Sem",scrollTitle:"Rulumu por pligrandigi la valoron",toggleTitle:"Klaku por \u015Dalti",weekdays:{shorthand:["Dim","Lun","Mar","Mer","\u0134a\u016D","Ven","Sab"],longhand:["diman\u0109o","lundo","mardo","merkredo","\u0135a\u016Ddo","vendredo","sabato"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","A\u016Dg","Sep","Okt","Nov","Dec"],longhand:["januaro","februaro","marto","aprilo","majo","junio","julio","a\u016Dgusto","septembro","oktobro","novembro","decembro"]},ordinal:function(){return"-a"},time_24hr:!0};we.l10ns.eo=Ce,we.l10ns;var ct=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Le={weekdays:{shorthand:["Dom","Lun","Mar","Mi\xE9","Jue","Vie","S\xE1b"],longhand:["Domingo","Lunes","Martes","Mi\xE9rcoles","Jueves","Viernes","S\xE1bado"]},months:{shorthand:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],longhand:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"]},ordinal:function(){return"\xBA"},firstDayOfWeek:1,rangeSeparator:" a ",time_24hr:!0};ct.l10ns.es=Le,ct.l10ns;var ze=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},rt={weekdays:{shorthand:["P","E","T","K","N","R","L"],longhand:["P\xFChap\xE4ev","Esmasp\xE4ev","Teisip\xE4ev","Kolmap\xE4ev","Neljap\xE4ev","Reede","Laup\xE4ev"]},months:{shorthand:["Jaan","Veebr","M\xE4rts","Apr","Mai","Juuni","Juuli","Aug","Sept","Okt","Nov","Dets"],longhand:["Jaanuar","Veebruar","M\xE4rts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"]},firstDayOfWeek:1,ordinal:function(){return"."},weekAbbreviation:"N\xE4d",rangeSeparator:" kuni ",scrollTitle:"Keri, et suurendada",toggleTitle:"Kl\xF5psa, et vahetada",time_24hr:!0};ze.l10ns.et=rt,ze.l10ns;var Ne=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},gt={weekdays:{shorthand:["\u06CC\u06A9","\u062F\u0648","\u0633\u0647","\u0686\u0647\u0627\u0631","\u067E\u0646\u062C","\u062C\u0645\u0639\u0647","\u0634\u0646\u0628\u0647"],longhand:["\u06CC\u06A9\u200C\u0634\u0646\u0628\u0647","\u062F\u0648\u0634\u0646\u0628\u0647","\u0633\u0647\u200C\u0634\u0646\u0628\u0647","\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647","\u067E\u0646\u0686\u200C\u0634\u0646\u0628\u0647","\u062C\u0645\u0639\u0647","\u0634\u0646\u0628\u0647"]},months:{shorthand:["\u0698\u0627\u0646\u0648\u06CC\u0647","\u0641\u0648\u0631\u06CC\u0647","\u0645\u0627\u0631\u0633","\u0622\u0648\u0631\u06CC\u0644","\u0645\u0647","\u0698\u0648\u0626\u0646","\u0698\u0648\u0626\u06CC\u0647","\u0627\u0648\u062A","\u0633\u067E\u062A\u0627\u0645\u0628\u0631","\u0627\u06A9\u062A\u0628\u0631","\u0646\u0648\u0627\u0645\u0628\u0631","\u062F\u0633\u0627\u0645\u0628\u0631"],longhand:["\u0698\u0627\u0646\u0648\u06CC\u0647","\u0641\u0648\u0631\u06CC\u0647","\u0645\u0627\u0631\u0633","\u0622\u0648\u0631\u06CC\u0644","\u0645\u0647","\u0698\u0648\u0626\u0646","\u0698\u0648\u0626\u06CC\u0647","\u0627\u0648\u062A","\u0633\u067E\u062A\u0627\u0645\u0628\u0631","\u0627\u06A9\u062A\u0628\u0631","\u0646\u0648\u0627\u0645\u0628\u0631","\u062F\u0633\u0627\u0645\u0628\u0631"]},firstDayOfWeek:6,ordinal:function(){return""}};Ne.l10ns.fa=gt,Ne.l10ns;var ut=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Xe={firstDayOfWeek:1,weekdays:{shorthand:["su","ma","ti","ke","to","pe","la"],longhand:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},months:{shorthand:["tammi","helmi","maalis","huhti","touko","kes\xE4","hein\xE4","elo","syys","loka","marras","joulu"],longhand:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kes\xE4kuu","hein\xE4kuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},ordinal:function(){return"."},time_24hr:!0};ut.l10ns.fi=Xe,ut.l10ns;var _t=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},ft={weekdays:{shorthand:["Sun","M\xE1n","T\xFDs","Mik","H\xF3s","Fr\xED","Ley"],longhand:["Sunnudagur","M\xE1nadagur","T\xFDsdagur","Mikudagur","H\xF3sdagur","Fr\xEDggjadagur","Leygardagur"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],longhand:["Januar","Februar","Mars","Apr\xEDl","Mai","Juni","Juli","August","Septembur","Oktobur","Novembur","Desembur"]},ordinal:function(){return"."},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"vika",scrollTitle:"Rulla fyri at broyta",toggleTitle:"Tr\xFDst fyri at skifta",yearAriaLabel:"\xC1r",time_24hr:!0};_t.l10ns.fo=ft,_t.l10ns;var Be=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},et={firstDayOfWeek:1,weekdays:{shorthand:["dim","lun","mar","mer","jeu","ven","sam"],longhand:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},months:{shorthand:["janv","f\xE9vr","mars","avr","mai","juin","juil","ao\xFBt","sept","oct","nov","d\xE9c"],longhand:["janvier","f\xE9vrier","mars","avril","mai","juin","juillet","ao\xFBt","septembre","octobre","novembre","d\xE9cembre"]},ordinal:function(De){return De>1?"":"er"},rangeSeparator:" au ",weekAbbreviation:"Sem",scrollTitle:"D\xE9filer pour augmenter la valeur",toggleTitle:"Cliquer pour basculer",time_24hr:!0};Be.l10ns.fr=et,Be.l10ns;var Pt=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Qe={weekdays:{shorthand:["\u039A\u03C5","\u0394\u03B5","\u03A4\u03C1","\u03A4\u03B5","\u03A0\u03AD","\u03A0\u03B1","\u03A3\u03AC"],longhand:["\u039A\u03C5\u03C1\u03B9\u03B1\u03BA\u03AE","\u0394\u03B5\u03C5\u03C4\u03AD\u03C1\u03B1","\u03A4\u03C1\u03AF\u03C4\u03B7","\u03A4\u03B5\u03C4\u03AC\u03C1\u03C4\u03B7","\u03A0\u03AD\u03BC\u03C0\u03C4\u03B7","\u03A0\u03B1\u03C1\u03B1\u03C3\u03BA\u03B5\u03C5\u03AE","\u03A3\u03AC\u03B2\u03B2\u03B1\u03C4\u03BF"]},months:{shorthand:["\u0399\u03B1\u03BD","\u03A6\u03B5\u03B2","\u039C\u03AC\u03C1","\u0391\u03C0\u03C1","\u039C\u03AC\u03B9","\u0399\u03BF\u03CD\u03BD","\u0399\u03BF\u03CD\u03BB","\u0391\u03CD\u03B3","\u03A3\u03B5\u03C0","\u039F\u03BA\u03C4","\u039D\u03BF\u03AD","\u0394\u03B5\u03BA"],longhand:["\u0399\u03B1\u03BD\u03BF\u03C5\u03AC\u03C1\u03B9\u03BF\u03C2","\u03A6\u03B5\u03B2\u03C1\u03BF\u03C5\u03AC\u03C1\u03B9\u03BF\u03C2","\u039C\u03AC\u03C1\u03C4\u03B9\u03BF\u03C2","\u0391\u03C0\u03C1\u03AF\u03BB\u03B9\u03BF\u03C2","\u039C\u03AC\u03B9\u03BF\u03C2","\u0399\u03BF\u03CD\u03BD\u03B9\u03BF\u03C2","\u0399\u03BF\u03CD\u03BB\u03B9\u03BF\u03C2","\u0391\u03CD\u03B3\u03BF\u03C5\u03C3\u03C4\u03BF\u03C2","\u03A3\u03B5\u03C0\u03C4\u03AD\u03BC\u03B2\u03C1\u03B9\u03BF\u03C2","\u039F\u03BA\u03C4\u03CE\u03B2\u03C1\u03B9\u03BF\u03C2","\u039D\u03BF\u03AD\u03BC\u03B2\u03C1\u03B9\u03BF\u03C2","\u0394\u03B5\u03BA\u03AD\u03BC\u03B2\u03C1\u03B9\u03BF\u03C2"]},firstDayOfWeek:1,ordinal:function(){return""},weekAbbreviation:"\u0395\u03B2\u03B4",rangeSeparator:" \u03AD\u03C9\u03C2 ",scrollTitle:"\u039C\u03B5\u03C4\u03B1\u03BA\u03C5\u03BB\u03AE\u03C3\u03C4\u03B5 \u03B3\u03B9\u03B1 \u03C0\u03C1\u03BF\u03C3\u03B1\u03CD\u03BE\u03B7\u03C3\u03B7",toggleTitle:"\u039A\u03AC\u03BD\u03C4\u03B5 \u03BA\u03BB\u03B9\u03BA \u03B3\u03B9\u03B1 \u03B1\u03BB\u03BB\u03B1\u03B3\u03AE",amPM:["\u03A0\u039C","\u039C\u039C"],yearAriaLabel:"\u03C7\u03C1\u03CC\u03BD\u03BF\u03C2",monthAriaLabel:"\u03BC\u03AE\u03BD\u03B1\u03C2",hourAriaLabel:"\u03CE\u03C1\u03B1",minuteAriaLabel:"\u03BB\u03B5\u03C0\u03C4\u03CC"};Pt.l10ns.gr=Qe,Pt.l10ns;var Ye=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Zi={weekdays:{shorthand:["\u05D0","\u05D1","\u05D2","\u05D3","\u05D4","\u05D5","\u05E9"],longhand:["\u05E8\u05D0\u05E9\u05D5\u05DF","\u05E9\u05E0\u05D9","\u05E9\u05DC\u05D9\u05E9\u05D9","\u05E8\u05D1\u05D9\u05E2\u05D9","\u05D7\u05DE\u05D9\u05E9\u05D9","\u05E9\u05D9\u05E9\u05D9","\u05E9\u05D1\u05EA"]},months:{shorthand:["\u05D9\u05E0\u05D5\u05F3","\u05E4\u05D1\u05E8\u05F3","\u05DE\u05E8\u05E5","\u05D0\u05E4\u05E8\u05F3","\u05DE\u05D0\u05D9","\u05D9\u05D5\u05E0\u05D9","\u05D9\u05D5\u05DC\u05D9","\u05D0\u05D5\u05D2\u05F3","\u05E1\u05E4\u05D8\u05F3","\u05D0\u05D5\u05E7\u05F3","\u05E0\u05D5\u05D1\u05F3","\u05D3\u05E6\u05DE\u05F3"],longhand:["\u05D9\u05E0\u05D5\u05D0\u05E8","\u05E4\u05D1\u05E8\u05D5\u05D0\u05E8","\u05DE\u05E8\u05E5","\u05D0\u05E4\u05E8\u05D9\u05DC","\u05DE\u05D0\u05D9","\u05D9\u05D5\u05E0\u05D9","\u05D9\u05D5\u05DC\u05D9","\u05D0\u05D5\u05D2\u05D5\u05E1\u05D8","\u05E1\u05E4\u05D8\u05DE\u05D1\u05E8","\u05D0\u05D5\u05E7\u05D8\u05D5\u05D1\u05E8","\u05E0\u05D5\u05D1\u05DE\u05D1\u05E8","\u05D3\u05E6\u05DE\u05D1\u05E8"]},rangeSeparator:" \u05D0\u05DC ",time_24hr:!0};Ye.l10ns.he=Zi,Ye.l10ns;var Et=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Nt={weekdays:{shorthand:["\u0930\u0935\u093F","\u0938\u094B\u092E","\u092E\u0902\u0917\u0932","\u092C\u0941\u0927","\u0917\u0941\u0930\u0941","\u0936\u0941\u0915\u094D\u0930","\u0936\u0928\u093F"],longhand:["\u0930\u0935\u093F\u0935\u093E\u0930","\u0938\u094B\u092E\u0935\u093E\u0930","\u092E\u0902\u0917\u0932\u0935\u093E\u0930","\u092C\u0941\u0927\u0935\u093E\u0930","\u0917\u0941\u0930\u0941\u0935\u093E\u0930","\u0936\u0941\u0915\u094D\u0930\u0935\u093E\u0930","\u0936\u0928\u093F\u0935\u093E\u0930"]},months:{shorthand:["\u091C\u0928","\u092B\u0930","\u092E\u093E\u0930\u094D\u091A","\u0905\u092A\u094D\u0930\u0947\u0932","\u092E\u0908","\u091C\u0942\u0928","\u091C\u0942\u0932\u093E\u0908","\u0905\u0917","\u0938\u093F\u0924","\u0905\u0915\u094D\u091F","\u0928\u0935","\u0926\u093F"],longhand:["\u091C\u0928\u0935\u0930\u0940 ","\u092B\u0930\u0935\u0930\u0940","\u092E\u093E\u0930\u094D\u091A","\u0905\u092A\u094D\u0930\u0947\u0932","\u092E\u0908","\u091C\u0942\u0928","\u091C\u0942\u0932\u093E\u0908","\u0905\u0917\u0938\u094D\u0924 ","\u0938\u093F\u0924\u092E\u094D\u092C\u0930","\u0905\u0915\u094D\u091F\u0942\u092C\u0930","\u0928\u0935\u092E\u094D\u092C\u0930","\u0926\u093F\u0938\u092E\u094D\u092C\u0930"]}};Et.l10ns.hi=Nt,Et.l10ns;var gi=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},$i={firstDayOfWeek:1,weekdays:{shorthand:["Ned","Pon","Uto","Sri","\u010Cet","Pet","Sub"],longhand:["Nedjelja","Ponedjeljak","Utorak","Srijeda","\u010Cetvrtak","Petak","Subota"]},months:{shorthand:["Sij","Velj","O\u017Eu","Tra","Svi","Lip","Srp","Kol","Ruj","Lis","Stu","Pro"],longhand:["Sije\u010Danj","Velja\u010Da","O\u017Eujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"]},time_24hr:!0};gi.l10ns.hr=$i,gi.l10ns;var ri=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Yt={firstDayOfWeek:1,weekdays:{shorthand:["V","H","K","Sz","Cs","P","Szo"],longhand:["Vas\xE1rnap","H\xE9tf\u0151","Kedd","Szerda","Cs\xFCt\xF6rt\xF6k","P\xE9ntek","Szombat"]},months:{shorthand:["Jan","Feb","M\xE1r","\xC1pr","M\xE1j","J\xFAn","J\xFAl","Aug","Szep","Okt","Nov","Dec"],longhand:["Janu\xE1r","Febru\xE1r","M\xE1rcius","\xC1prilis","M\xE1jus","J\xFAnius","J\xFAlius","Augusztus","Szeptember","Okt\xF3ber","November","December"]},ordinal:function(){return"."},weekAbbreviation:"H\xE9t",scrollTitle:"G\xF6rgessen",toggleTitle:"Kattintson a v\xE1lt\xE1shoz",rangeSeparator:" - ",time_24hr:!0};ri.l10ns.hu=Yt,ri.l10ns;var dt=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Mi={weekdays:{shorthand:["\u053F\u056B\u0580","\u0535\u0580\u056F","\u0535\u0580\u0584","\u0549\u0580\u0584","\u0540\u0576\u0563","\u0548\u0582\u0580\u0562","\u0547\u0562\u0569"],longhand:["\u053F\u056B\u0580\u0561\u056F\u056B","\u0535\u056F\u0578\u0582\u0577\u0561\u0562\u0569\u056B","\u0535\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056B","\u0549\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056B","\u0540\u056B\u0576\u0563\u0577\u0561\u0562\u0569\u056B","\u0548\u0582\u0580\u0562\u0561\u0569","\u0547\u0561\u0562\u0561\u0569"]},months:{shorthand:["\u0540\u0576\u057E","\u0553\u057F\u0580","\u0544\u0561\u0580","\u0531\u057A\u0580","\u0544\u0561\u0575","\u0540\u0576\u057D","\u0540\u056C\u057D","\u0555\u0563\u057D","\u054D\u0565\u057A","\u0540\u0578\u056F","\u0546\u0574\u0562","\u0534\u0565\u056F"],longhand:["\u0540\u0578\u0582\u0576\u057E\u0561\u0580","\u0553\u0565\u057F\u0580\u057E\u0561\u0580","\u0544\u0561\u0580\u057F","\u0531\u057A\u0580\u056B\u056C","\u0544\u0561\u0575\u056B\u057D","\u0540\u0578\u0582\u0576\u056B\u057D","\u0540\u0578\u0582\u056C\u056B\u057D","\u0555\u0563\u0578\u057D\u057F\u0578\u057D","\u054D\u0565\u057A\u057F\u0565\u0574\u0562\u0565\u0580","\u0540\u0578\u056F\u057F\u0565\u0574\u0562\u0565\u0580","\u0546\u0578\u0575\u0565\u0574\u0562\u0565\u0580","\u0534\u0565\u056F\u057F\u0565\u0574\u0562\u0565\u0580"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" \u2014 ",weekAbbreviation:"\u0547\u0532\u054F",scrollTitle:"\u0548\u056C\u0578\u0580\u0565\u0584\u055D \u0574\u0565\u056E\u0561\u0581\u0576\u0565\u056C\u0578\u0582 \u0570\u0561\u0574\u0561\u0580",toggleTitle:"\u054D\u0565\u0572\u0574\u0565\u0584\u055D \u0583\u0578\u056D\u0565\u056C\u0578\u0582 \u0570\u0561\u0574\u0561\u0580",amPM:["\u0544\u053F","\u053F\u0540"],yearAriaLabel:"\u054F\u0561\u0580\u056B",monthAriaLabel:"\u0531\u0574\u056B\u057D",hourAriaLabel:"\u053A\u0561\u0574",minuteAriaLabel:"\u0550\u0578\u057A\u0565",time_24hr:!0};dt.l10ns.hy=Mi,dt.l10ns;var si=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},It={weekdays:{shorthand:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],longhand:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agu","Sep","Okt","Nov","Des"],longhand:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},firstDayOfWeek:1,ordinal:function(){return""},time_24hr:!0,rangeSeparator:" - "};si.l10ns.id=It,si.l10ns;var tt=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Rt={weekdays:{shorthand:["Sun","M\xE1n","\xDEri","Mi\xF0","Fim","F\xF6s","Lau"],longhand:["Sunnudagur","M\xE1nudagur","\xDEri\xF0judagur","Mi\xF0vikudagur","Fimmtudagur","F\xF6studagur","Laugardagur"]},months:{shorthand:["Jan","Feb","Mar","Apr","Ma\xED","J\xFAn","J\xFAl","\xC1g\xFA","Sep","Okt","N\xF3v","Des"],longhand:["Jan\xFAar","Febr\xFAar","Mars","Apr\xEDl","Ma\xED","J\xFAn\xED","J\xFAl\xED","\xC1g\xFAst","September","Okt\xF3ber","N\xF3vember","Desember"]},ordinal:function(){return"."},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"vika",yearAriaLabel:"\xC1r",time_24hr:!0};tt.l10ns.is=Rt,tt.l10ns;var xt=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},oe={weekdays:{shorthand:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],longhand:["Domenica","Luned\xEC","Marted\xEC","Mercoled\xEC","Gioved\xEC","Venerd\xEC","Sabato"]},months:{shorthand:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],longhand:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"]},firstDayOfWeek:1,ordinal:function(){return"\xB0"},rangeSeparator:" al ",weekAbbreviation:"Se",scrollTitle:"Scrolla per aumentare",toggleTitle:"Clicca per cambiare",time_24hr:!0};xt.l10ns.it=oe,xt.l10ns;var We=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Oi={weekdays:{shorthand:["\u65E5","\u6708","\u706B","\u6C34","\u6728","\u91D1","\u571F"],longhand:["\u65E5\u66DC\u65E5","\u6708\u66DC\u65E5","\u706B\u66DC\u65E5","\u6C34\u66DC\u65E5","\u6728\u66DC\u65E5","\u91D1\u66DC\u65E5","\u571F\u66DC\u65E5"]},months:{shorthand:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],longhand:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"]},time_24hr:!0,rangeSeparator:" \u304B\u3089 ",monthAriaLabel:"\u6708",amPM:["\u5348\u524D","\u5348\u5F8C"],yearAriaLabel:"\u5E74",hourAriaLabel:"\u6642\u9593",minuteAriaLabel:"\u5206"};We.l10ns.ja=Oi,We.l10ns;var vi=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Li={weekdays:{shorthand:["\u10D9\u10D5","\u10DD\u10E0","\u10E1\u10D0","\u10DD\u10D7","\u10EE\u10E3","\u10DE\u10D0","\u10E8\u10D0"],longhand:["\u10D9\u10D5\u10D8\u10E0\u10D0","\u10DD\u10E0\u10E8\u10D0\u10D1\u10D0\u10D7\u10D8","\u10E1\u10D0\u10DB\u10E8\u10D0\u10D1\u10D0\u10D7\u10D8","\u10DD\u10D7\u10EE\u10E8\u10D0\u10D1\u10D0\u10D7\u10D8","\u10EE\u10E3\u10D7\u10E8\u10D0\u10D1\u10D0\u10D7\u10D8","\u10DE\u10D0\u10E0\u10D0\u10E1\u10D9\u10D4\u10D5\u10D8","\u10E8\u10D0\u10D1\u10D0\u10D7\u10D8"]},months:{shorthand:["\u10D8\u10D0\u10DC","\u10D7\u10D4\u10D1","\u10DB\u10D0\u10E0","\u10D0\u10DE\u10E0","\u10DB\u10D0\u10D8","\u10D8\u10D5\u10DC","\u10D8\u10D5\u10DA","\u10D0\u10D2\u10D5","\u10E1\u10D4\u10E5","\u10DD\u10E5\u10E2","\u10DC\u10DD\u10D4","\u10D3\u10D4\u10D9"],longhand:["\u10D8\u10D0\u10DC\u10D5\u10D0\u10E0\u10D8","\u10D7\u10D4\u10D1\u10D4\u10E0\u10D5\u10D0\u10DA\u10D8","\u10DB\u10D0\u10E0\u10E2\u10D8","\u10D0\u10DE\u10E0\u10D8\u10DA\u10D8","\u10DB\u10D0\u10D8\u10E1\u10D8","\u10D8\u10D5\u10DC\u10D8\u10E1\u10D8","\u10D8\u10D5\u10DA\u10D8\u10E1\u10D8","\u10D0\u10D2\u10D5\u10D8\u10E1\u10E2\u10DD","\u10E1\u10D4\u10E5\u10E2\u10D4\u10DB\u10D1\u10D4\u10E0\u10D8","\u10DD\u10E5\u10E2\u10DD\u10DB\u10D1\u10D4\u10E0\u10D8","\u10DC\u10DD\u10D4\u10DB\u10D1\u10D4\u10E0\u10D8","\u10D3\u10D4\u10D9\u10D4\u10DB\u10D1\u10D4\u10E0\u10D8"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" \u2014 ",weekAbbreviation:"\u10D9\u10D5.",scrollTitle:"\u10D3\u10D0\u10E1\u10E5\u10E0\u10DD\u10DA\u10D4\u10D7 \u10D2\u10D0\u10E1\u10D0\u10D3\u10D8\u10D3\u10D4\u10D1\u10DA\u10D0\u10D3",toggleTitle:"\u10D3\u10D0\u10D0\u10D9\u10DA\u10D8\u10D9\u10D4\u10D7 \u10D2\u10D0\u10D3\u10D0\u10E0\u10D7\u10D5\u10D8\u10E1\u10D7\u10D5\u10D8\u10E1",amPM:["AM","PM"],yearAriaLabel:"\u10EC\u10D4\u10DA\u10D8",time_24hr:!0};vi.l10ns.ka=Li,vi.l10ns;var en=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Dn={weekdays:{shorthand:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],longhand:["\uC77C\uC694\uC77C","\uC6D4\uC694\uC77C","\uD654\uC694\uC77C","\uC218\uC694\uC77C","\uBAA9\uC694\uC77C","\uAE08\uC694\uC77C","\uD1A0\uC694\uC77C"]},months:{shorthand:["1\uC6D4","2\uC6D4","3\uC6D4","4\uC6D4","5\uC6D4","6\uC6D4","7\uC6D4","8\uC6D4","9\uC6D4","10\uC6D4","11\uC6D4","12\uC6D4"],longhand:["1\uC6D4","2\uC6D4","3\uC6D4","4\uC6D4","5\uC6D4","6\uC6D4","7\uC6D4","8\uC6D4","9\uC6D4","10\uC6D4","11\uC6D4","12\uC6D4"]},ordinal:function(){return"\uC77C"},rangeSeparator:" ~ ",amPM:["\uC624\uC804","\uC624\uD6C4"]};en.l10ns.ko=Dn,en.l10ns;var bi=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Dt={weekdays:{shorthand:["\u17A2\u17B6\u1791\u17B7\u178F\u17D2\u1799","\u1785\u1793\u17D2\u1791","\u17A2\u1784\u17D2\u1782\u17B6\u179A","\u1796\u17BB\u1792","\u1796\u17D2\u179A\u17A0\u179F.","\u179F\u17BB\u1780\u17D2\u179A","\u179F\u17C5\u179A\u17CD"],longhand:["\u17A2\u17B6\u1791\u17B7\u178F\u17D2\u1799","\u1785\u1793\u17D2\u1791","\u17A2\u1784\u17D2\u1782\u17B6\u179A","\u1796\u17BB\u1792","\u1796\u17D2\u179A\u17A0\u179F\u17D2\u1794\u178F\u17B7\u17CD","\u179F\u17BB\u1780\u17D2\u179A","\u179F\u17C5\u179A\u17CD"]},months:{shorthand:["\u1798\u1780\u179A\u17B6","\u1780\u17BB\u1798\u17D2\u1797\u17C7","\u1798\u17B8\u1793\u17B6","\u1798\u17C1\u179F\u17B6","\u17A7\u179F\u1797\u17B6","\u1798\u17B7\u1790\u17BB\u1793\u17B6","\u1780\u1780\u17D2\u1780\u178A\u17B6","\u179F\u17B8\u17A0\u17B6","\u1780\u1789\u17D2\u1789\u17B6","\u178F\u17BB\u179B\u17B6","\u179C\u17B7\u1785\u17D2\u1786\u17B7\u1780\u17B6","\u1792\u17D2\u1793\u17BC"],longhand:["\u1798\u1780\u179A\u17B6","\u1780\u17BB\u1798\u17D2\u1797\u17C7","\u1798\u17B8\u1793\u17B6","\u1798\u17C1\u179F\u17B6","\u17A7\u179F\u1797\u17B6","\u1798\u17B7\u1790\u17BB\u1793\u17B6","\u1780\u1780\u17D2\u1780\u178A\u17B6","\u179F\u17B8\u17A0\u17B6","\u1780\u1789\u17D2\u1789\u17B6","\u178F\u17BB\u179B\u17B6","\u179C\u17B7\u1785\u17D2\u1786\u17B7\u1780\u17B6","\u1792\u17D2\u1793\u17BC"]},ordinal:function(){return""},firstDayOfWeek:1,rangeSeparator:" \u178A\u179B\u17CB ",weekAbbreviation:"\u179F\u1794\u17D2\u178F\u17B6\u17A0\u17CD",scrollTitle:"\u179A\u17C6\u1780\u17B7\u179B\u178A\u17BE\u1798\u17D2\u1794\u17B8\u1794\u1784\u17D2\u1780\u17BE\u1793",toggleTitle:"\u1785\u17BB\u1785\u178A\u17BE\u1798\u17D2\u1794\u17B8\u1795\u17D2\u179B\u17B6\u179F\u17CB\u1794\u17D2\u178A\u17BC\u179A",yearAriaLabel:"\u1786\u17D2\u1793\u17B6\u17C6",time_24hr:!0};bi.l10ns.km=Dt,bi.l10ns;var Kt=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},oi={weekdays:{shorthand:["\u0416\u0441","\u0414\u0441","\u0421c","\u0421\u0440","\u0411\u0441","\u0416\u043C","\u0421\u0431"],longhand:["\u0416\u0435\u043A\u0441\u0435\u043D\u0431i","\u0414\u04AF\u0439\u0441\u0435\u043D\u0431i","\u0421\u0435\u0439\u0441\u0435\u043D\u0431i","\u0421\u04D9\u0440\u0441\u0435\u043D\u0431i","\u0411\u0435\u0439\u0441\u0435\u043D\u0431i","\u0416\u04B1\u043C\u0430","\u0421\u0435\u043D\u0431i"]},months:{shorthand:["\u049A\u0430\u04A3","\u0410\u049B\u043F","\u041D\u0430\u0443","\u0421\u04D9\u0443","\u041C\u0430\u043C","\u041C\u0430\u0443","\u0428i\u043B","\u0422\u0430\u043C","\u049A\u044B\u0440","\u049A\u0430\u0437","\u049A\u0430\u0440","\u0416\u0435\u043B"],longhand:["\u049A\u0430\u04A3\u0442\u0430\u0440","\u0410\u049B\u043F\u0430\u043D","\u041D\u0430\u0443\u0440\u044B\u0437","\u0421\u04D9\u0443i\u0440","\u041C\u0430\u043C\u044B\u0440","\u041C\u0430\u0443\u0441\u044B\u043C","\u0428i\u043B\u0434\u0435","\u0422\u0430\u043C\u044B\u0437","\u049A\u044B\u0440\u043A\u04AF\u0439\u0435\u043A","\u049A\u0430\u0437\u0430\u043D","\u049A\u0430\u0440\u0430\u0448\u0430","\u0416\u0435\u043B\u0442\u043E\u049B\u0441\u0430\u043D"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" \u2014 ",weekAbbreviation:"\u0410\u043F\u0442\u0430",scrollTitle:"\u04AE\u043B\u043A\u0435\u0439\u0442\u0443 \u04AF\u0448\u0456\u043D \u0430\u0439\u043D\u0430\u043B\u0434\u044B\u0440\u044B\u04A3\u044B\u0437",toggleTitle:"\u0410\u0443\u044B\u0441\u0442\u044B\u0440\u0443 \u04AF\u0448\u0456\u043D \u0431\u0430\u0441\u044B\u04A3\u044B\u0437",amPM:["\u0422\u0414","\u0422\u041A"],yearAriaLabel:"\u0416\u044B\u043B"};Kt.l10ns.kz=oi,Kt.l10ns;var He=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},ai={weekdays:{shorthand:["S","Pr","A","T","K","Pn","\u0160"],longhand:["Sekmadienis","Pirmadienis","Antradienis","Tre\u010Diadienis","Ketvirtadienis","Penktadienis","\u0160e\u0161tadienis"]},months:{shorthand:["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rgp","Rgs","Spl","Lap","Grd"],longhand:["Sausis","Vasaris","Kovas","Balandis","Gegu\u017E\u0117","Bir\u017Eelis","Liepa","Rugpju\u0304tis","Rugse\u0307jis","Spalis","Lapkritis","Gruodis"]},firstDayOfWeek:1,ordinal:function(){return"-a"},rangeSeparator:" iki ",weekAbbreviation:"Sav",scrollTitle:"Keisti laik\u0105 pel\u0117s rateliu",toggleTitle:"Perjungti laiko format\u0105",time_24hr:!0};He.l10ns.lt=ai,He.l10ns;var Pi=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},kn={firstDayOfWeek:1,weekdays:{shorthand:["Sv","Pr","Ot","Tr","Ce","Pk","Se"],longhand:["Sv\u0113tdiena","Pirmdiena","Otrdiena","Tre\u0161diena","Ceturtdiena","Piektdiena","Sestdiena"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mai","J\u016Bn","J\u016Bl","Aug","Sep","Okt","Nov","Dec"],longhand:["Janv\u0101ris","Febru\u0101ris","Marts","Apr\u012Blis","Maijs","J\u016Bnijs","J\u016Blijs","Augusts","Septembris","Oktobris","Novembris","Decembris"]},rangeSeparator:" l\u012Bdz ",time_24hr:!0};Pi.l10ns.lv=kn,Pi.l10ns;var Ni=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Bt={weekdays:{shorthand:["\u041D\u0435","\u041F\u043E","\u0412\u0442","\u0421\u0440","\u0427\u0435","\u041F\u0435","\u0421\u0430"],longhand:["\u041D\u0435\u0434\u0435\u043B\u0430","\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u043D\u0438\u043A","\u0412\u0442\u043E\u0440\u043D\u0438\u043A","\u0421\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0440\u0442\u043E\u043A","\u041F\u0435\u0442\u043E\u043A","\u0421\u0430\u0431\u043E\u0442\u0430"]},months:{shorthand:["\u0408\u0430\u043D","\u0424\u0435\u0432","\u041C\u0430\u0440","\u0410\u043F\u0440","\u041C\u0430\u0458","\u0408\u0443\u043D","\u0408\u0443\u043B","\u0410\u0432\u0433","\u0421\u0435\u043F","\u041E\u043A\u0442","\u041D\u043E\u0435","\u0414\u0435\u043A"],longhand:["\u0408\u0430\u043D\u0443\u0430\u0440\u0438","\u0424\u0435\u0432\u0440\u0443\u0430\u0440\u0438","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0438\u043B","\u041C\u0430\u0458","\u0408\u0443\u043D\u0438","\u0408\u0443\u043B\u0438","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043F\u0442\u0435\u043C\u0432\u0440\u0438","\u041E\u043A\u0442\u043E\u043C\u0432\u0440\u0438","\u041D\u043E\u0435\u043C\u0432\u0440\u0438","\u0414\u0435\u043A\u0435\u043C\u0432\u0440\u0438"]},firstDayOfWeek:1,weekAbbreviation:"\u041D\u0435\u0434.",rangeSeparator:" \u0434\u043E ",time_24hr:!0};Ni.l10ns.mk=Bt,Ni.l10ns;var ht=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Mn={firstDayOfWeek:1,weekdays:{shorthand:["\u0414\u0430","\u041C\u044F","\u041B\u0445","\u041F\u04AF","\u0411\u0430","\u0411\u044F","\u041D\u044F"],longhand:["\u0414\u0430\u0432\u0430\u0430","\u041C\u044F\u0433\u043C\u0430\u0440","\u041B\u0445\u0430\u0433\u0432\u0430","\u041F\u04AF\u0440\u044D\u0432","\u0411\u0430\u0430\u0441\u0430\u043D","\u0411\u044F\u043C\u0431\u0430","\u041D\u044F\u043C"]},months:{shorthand:["1-\u0440 \u0441\u0430\u0440","2-\u0440 \u0441\u0430\u0440","3-\u0440 \u0441\u0430\u0440","4-\u0440 \u0441\u0430\u0440","5-\u0440 \u0441\u0430\u0440","6-\u0440 \u0441\u0430\u0440","7-\u0440 \u0441\u0430\u0440","8-\u0440 \u0441\u0430\u0440","9-\u0440 \u0441\u0430\u0440","10-\u0440 \u0441\u0430\u0440","11-\u0440 \u0441\u0430\u0440","12-\u0440 \u0441\u0430\u0440"],longhand:["\u041D\u044D\u0433\u0434\u04AF\u0433\u044D\u044D\u0440 \u0441\u0430\u0440","\u0425\u043E\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0414\u04E9\u0440\u04E9\u0432\u0434\u04AF\u0433\u044D\u044D\u0440 \u0441\u0430\u0440","\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0417\u0443\u0440\u0433\u0430\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0414\u043E\u043B\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u041D\u0430\u0439\u043C\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0415\u0441\u0434\u04AF\u0433\u044D\u044D\u0440 \u0441\u0430\u0440","\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440","\u0410\u0440\u0432\u0430\u043D\u043D\u044D\u0433\u0434\u04AF\u0433\u044D\u044D\u0440 \u0441\u0430\u0440","\u0410\u0440\u0432\u0430\u043D\u0445\u043E\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440"]},rangeSeparator:"-\u0441 ",time_24hr:!0};ht.l10ns.mn=Mn,ht.l10ns;var cr=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},E={weekdays:{shorthand:["Aha","Isn","Sel","Rab","Kha","Jum","Sab"],longhand:["Ahad","Isnin","Selasa","Rabu","Khamis","Jumaat","Sabtu"]},months:{shorthand:["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ogo","Sep","Okt","Nov","Dis"],longhand:["Januari","Februari","Mac","April","Mei","Jun","Julai","Ogos","September","Oktober","November","Disember"]},firstDayOfWeek:1,ordinal:function(){return""}};cr.l10ns;var C=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},H={weekdays:{shorthand:["\u1014\u103D\u1031","\u101C\u102C","\u1002\u102B","\u101F\u1030\u1038","\u1000\u103C\u102C","\u101E\u1031\u102C","\u1014\u1031"],longhand:["\u1010\u1014\u1004\u103A\u1039\u1002\u1014\u103D\u1031","\u1010\u1014\u1004\u103A\u1039\u101C\u102C","\u1021\u1004\u103A\u1039\u1002\u102B","\u1017\u102F\u1012\u1039\u1013\u101F\u1030\u1038","\u1000\u103C\u102C\u101E\u1015\u1010\u1031\u1038","\u101E\u1031\u102C\u1000\u103C\u102C","\u1005\u1014\u1031"]},months:{shorthand:["\u1007\u1014\u103A","\u1016\u1031","\u1019\u1010\u103A","\u1015\u103C\u102E","\u1019\u1031","\u1007\u103D\u1014\u103A","\u101C\u102D\u102F\u1004\u103A","\u101E\u103C","\u1005\u1000\u103A","\u1021\u1031\u102C\u1000\u103A","\u1014\u102D\u102F","\u1012\u102E"],longhand:["\u1007\u1014\u103A\u1014\u101D\u102B\u101B\u102E","\u1016\u1031\u1016\u1031\u102C\u103A\u101D\u102B\u101B\u102E","\u1019\u1010\u103A","\u1027\u1015\u103C\u102E","\u1019\u1031","\u1007\u103D\u1014\u103A","\u1007\u1030\u101C\u102D\u102F\u1004\u103A","\u101E\u103C\u1002\u102F\u1010\u103A","\u1005\u1000\u103A\u1010\u1004\u103A\u1018\u102C","\u1021\u1031\u102C\u1000\u103A\u1010\u102D\u102F\u1018\u102C","\u1014\u102D\u102F\u101D\u1004\u103A\u1018\u102C","\u1012\u102E\u1007\u1004\u103A\u1018\u102C"]},firstDayOfWeek:1,ordinal:function(){return""},time_24hr:!0};C.l10ns.my=H,C.l10ns;var V=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Q={weekdays:{shorthand:["zo","ma","di","wo","do","vr","za"],longhand:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},months:{shorthand:["jan","feb","mrt","apr","mei","jun","jul","aug","sept","okt","nov","dec"],longhand:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},firstDayOfWeek:1,weekAbbreviation:"wk",rangeSeparator:" t/m ",scrollTitle:"Scroll voor volgende / vorige",toggleTitle:"Klik om te wisselen",time_24hr:!0,ordinal:function(De){return De===1||De===8||De>=20?"ste":"de"}};V.l10ns.nl=Q,V.l10ns;var ee=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},he={weekdays:{shorthand:["S\xF8.","M\xE5.","Ty.","On.","To.","Fr.","La."],longhand:["S\xF8ndag","M\xE5ndag","Tysdag","Onsdag","Torsdag","Fredag","Laurdag"]},months:{shorthand:["Jan","Feb","Mars","Apr","Mai","Juni","Juli","Aug","Sep","Okt","Nov","Des"],longhand:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"]},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"Veke",scrollTitle:"Scroll for \xE5 endre",toggleTitle:"Klikk for \xE5 veksle",time_24hr:!0,ordinal:function(){return"."}};ee.l10ns.nn=he,ee.l10ns;var re=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},be={weekdays:{shorthand:["S\xF8n","Man","Tir","Ons","Tor","Fre","L\xF8r"],longhand:["S\xF8ndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","L\xF8rdag"]},months:{shorthand:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],longhand:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"]},firstDayOfWeek:1,rangeSeparator:" til ",weekAbbreviation:"Uke",scrollTitle:"Scroll for \xE5 endre",toggleTitle:"Klikk for \xE5 veksle",time_24hr:!0,ordinal:function(){return"."}};re.l10ns.no=be,re.l10ns;var se=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},fe={weekdays:{shorthand:["\u0A10\u0A24","\u0A38\u0A4B\u0A2E","\u0A2E\u0A70\u0A17\u0A32","\u0A2C\u0A41\u0A71\u0A27","\u0A35\u0A40\u0A30","\u0A38\u0A3C\u0A41\u0A71\u0A15\u0A30","\u0A38\u0A3C\u0A28\u0A3F\u0A71\u0A1A\u0A30"],longhand:["\u0A10\u0A24\u0A35\u0A3E\u0A30","\u0A38\u0A4B\u0A2E\u0A35\u0A3E\u0A30","\u0A2E\u0A70\u0A17\u0A32\u0A35\u0A3E\u0A30","\u0A2C\u0A41\u0A71\u0A27\u0A35\u0A3E\u0A30","\u0A35\u0A40\u0A30\u0A35\u0A3E\u0A30","\u0A38\u0A3C\u0A41\u0A71\u0A15\u0A30\u0A35\u0A3E\u0A30","\u0A38\u0A3C\u0A28\u0A3F\u0A71\u0A1A\u0A30\u0A35\u0A3E\u0A30"]},months:{shorthand:["\u0A1C\u0A28","\u0A2B\u0A3C\u0A30","\u0A2E\u0A3E\u0A30","\u0A05\u0A2A\u0A4D\u0A30\u0A48","\u0A2E\u0A08","\u0A1C\u0A42\u0A28","\u0A1C\u0A41\u0A32\u0A3E","\u0A05\u0A17","\u0A38\u0A24\u0A70","\u0A05\u0A15","\u0A28\u0A35\u0A70","\u0A26\u0A38\u0A70"],longhand:["\u0A1C\u0A28\u0A35\u0A30\u0A40","\u0A2B\u0A3C\u0A30\u0A35\u0A30\u0A40","\u0A2E\u0A3E\u0A30\u0A1A","\u0A05\u0A2A\u0A4D\u0A30\u0A48\u0A32","\u0A2E\u0A08","\u0A1C\u0A42\u0A28","\u0A1C\u0A41\u0A32\u0A3E\u0A08","\u0A05\u0A17\u0A38\u0A24","\u0A38\u0A24\u0A70\u0A2C\u0A30","\u0A05\u0A15\u0A24\u0A42\u0A2C\u0A30","\u0A28\u0A35\u0A70\u0A2C\u0A30","\u0A26\u0A38\u0A70\u0A2C\u0A30"]},time_24hr:!0};se.l10ns.pa=fe,se.l10ns;var Me=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},kt={weekdays:{shorthand:["Nd","Pn","Wt","\u015Ar","Cz","Pt","So"],longhand:["Niedziela","Poniedzia\u0142ek","Wtorek","\u015Aroda","Czwartek","Pi\u0105tek","Sobota"]},months:{shorthand:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Pa\u017A","Lis","Gru"],longhand:["Stycze\u0144","Luty","Marzec","Kwiecie\u0144","Maj","Czerwiec","Lipiec","Sierpie\u0144","Wrzesie\u0144","Pa\u017Adziernik","Listopad","Grudzie\u0144"]},rangeSeparator:" do ",weekAbbreviation:"tydz.",scrollTitle:"Przewi\u0144, aby zwi\u0119kszy\u0107",toggleTitle:"Kliknij, aby prze\u0142\u0105czy\u0107",firstDayOfWeek:1,time_24hr:!0,ordinal:function(){return"."}};Me.l10ns.pl=kt,Me.l10ns;var st=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},yi={weekdays:{shorthand:["Dom","Seg","Ter","Qua","Qui","Sex","S\xE1b"],longhand:["Domingo","Segunda-feira","Ter\xE7a-feira","Quarta-feira","Quinta-feira","Sexta-feira","S\xE1bado"]},months:{shorthand:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],longhand:["Janeiro","Fevereiro","Mar\xE7o","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"]},rangeSeparator:" at\xE9 ",time_24hr:!0};st.l10ns.pt=yi,st.l10ns;var li=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},On={weekdays:{shorthand:["Dum","Lun","Mar","Mie","Joi","Vin","S\xE2m"],longhand:["Duminic\u0103","Luni","Mar\u021Bi","Miercuri","Joi","Vineri","S\xE2mb\u0103t\u0103"]},months:{shorthand:["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Noi","Dec"],longhand:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"]},firstDayOfWeek:1,time_24hr:!0,ordinal:function(){return""}};li.l10ns.ro=On,li.l10ns;var tn=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},ci={weekdays:{shorthand:["\u0412\u0441","\u041F\u043D","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041F\u0442","\u0421\u0431"],longhand:["\u0412\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435","\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A","\u0412\u0442\u043E\u0440\u043D\u0438\u043A","\u0421\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0435\u0440\u0433","\u041F\u044F\u0442\u043D\u0438\u0446\u0430","\u0421\u0443\u0431\u0431\u043E\u0442\u0430"]},months:{shorthand:["\u042F\u043D\u0432","\u0424\u0435\u0432","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440","\u041C\u0430\u0439","\u0418\u044E\u043D\u044C","\u0418\u044E\u043B\u044C","\u0410\u0432\u0433","\u0421\u0435\u043D","\u041E\u043A\u0442","\u041D\u043E\u044F","\u0414\u0435\u043A"],longhand:["\u042F\u043D\u0432\u0430\u0440\u044C","\u0424\u0435\u0432\u0440\u0430\u043B\u044C","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0435\u043B\u044C","\u041C\u0430\u0439","\u0418\u044E\u043D\u044C","\u0418\u044E\u043B\u044C","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043D\u0442\u044F\u0431\u0440\u044C","\u041E\u043A\u0442\u044F\u0431\u0440\u044C","\u041D\u043E\u044F\u0431\u0440\u044C","\u0414\u0435\u043A\u0430\u0431\u0440\u044C"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" \u2014 ",weekAbbreviation:"\u041D\u0435\u0434.",scrollTitle:"\u041F\u0440\u043E\u043A\u0440\u0443\u0442\u0438\u0442\u0435 \u0434\u043B\u044F \u0443\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u044F",toggleTitle:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0434\u043B\u044F \u043F\u0435\u0440\u0435\u043A\u043B\u044E\u0447\u0435\u043D\u0438\u044F",amPM:["\u0414\u041F","\u041F\u041F"],yearAriaLabel:"\u0413\u043E\u0434",time_24hr:!0};tn.l10ns.ru=ci,tn.l10ns;var Ln=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},nn={weekdays:{shorthand:["\u0D89","\u0DC3","\u0D85","\u0DB6","\u0DB6\u0DCA\u200D\u0DBB","\u0DC3\u0DD2","\u0DC3\u0DD9"],longhand:["\u0D89\u0DBB\u0DD2\u0DAF\u0DCF","\u0DC3\u0DB3\u0DD4\u0DAF\u0DCF","\u0D85\u0D9F\u0DC4\u0DBB\u0DD4\u0DC0\u0DCF\u0DAF\u0DCF","\u0DB6\u0DAF\u0DCF\u0DAF\u0DCF","\u0DB6\u0DCA\u200D\u0DBB\u0DC4\u0DC3\u0DCA\u0DB4\u0DAD\u0DD2\u0DB1\u0DCA\u0DAF\u0DCF","\u0DC3\u0DD2\u0D9A\u0DD4\u0DBB\u0DCF\u0DAF\u0DCF","\u0DC3\u0DD9\u0DB1\u0DC3\u0DD4\u0DBB\u0DCF\u0DAF\u0DCF"]},months:{shorthand:["\u0DA2\u0DB1","\u0DB4\u0DD9\u0DB6","\u0DB8\u0DCF\u0DBB\u0DCA","\u0D85\u0DB4\u0DCA\u200D\u0DBB\u0DDA","\u0DB8\u0DD0\u0DBA\u0DD2","\u0DA2\u0DD4\u0DB1\u0DD2","\u0DA2\u0DD6\u0DBD\u0DD2","\u0D85\u0D9C\u0DDD","\u0DC3\u0DD0\u0DB4\u0DCA","\u0D94\u0D9A\u0DCA","\u0DB1\u0DDC\u0DC0\u0DD0","\u0DAF\u0DD9\u0DC3\u0DD0"],longhand:["\u0DA2\u0DB1\u0DC0\u0DCF\u0DBB\u0DD2","\u0DB4\u0DD9\u0DB6\u0DBB\u0DC0\u0DCF\u0DBB\u0DD2","\u0DB8\u0DCF\u0DBB\u0DCA\u0DAD\u0DD4","\u0D85\u0DB4\u0DCA\u200D\u0DBB\u0DDA\u0DBD\u0DCA","\u0DB8\u0DD0\u0DBA\u0DD2","\u0DA2\u0DD4\u0DB1\u0DD2","\u0DA2\u0DD6\u0DBD\u0DD2","\u0D85\u0D9C\u0DDD\u0DC3\u0DCA\u0DAD\u0DD4","\u0DC3\u0DD0\u0DB4\u0DCA\u0DAD\u0DD0\u0DB8\u0DCA\u0DB6\u0DBB\u0DCA","\u0D94\u0D9A\u0DCA\u0DAD\u0DDD\u0DB6\u0DBB\u0DCA","\u0DB1\u0DDC\u0DC0\u0DD0\u0DB8\u0DCA\u0DB6\u0DBB\u0DCA","\u0DAF\u0DD9\u0DC3\u0DD0\u0DB8\u0DCA\u0DB6\u0DBB\u0DCA"]},time_24hr:!0};Ln.l10ns.si=nn,Ln.l10ns;var rn=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Ii={weekdays:{shorthand:["Ned","Pon","Ut","Str","\u0160tv","Pia","Sob"],longhand:["Nede\u013Ea","Pondelok","Utorok","Streda","\u0160tvrtok","Piatok","Sobota"]},months:{shorthand:["Jan","Feb","Mar","Apr","M\xE1j","J\xFAn","J\xFAl","Aug","Sep","Okt","Nov","Dec"],longhand:["Janu\xE1r","Febru\xE1r","Marec","Apr\xEDl","M\xE1j","J\xFAn","J\xFAl","August","September","Okt\xF3ber","November","December"]},firstDayOfWeek:1,rangeSeparator:" do ",time_24hr:!0,ordinal:function(){return"."}};rn.l10ns.sk=Ii,rn.l10ns;var Pn=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},ur={weekdays:{shorthand:["Ned","Pon","Tor","Sre","\u010Cet","Pet","Sob"],longhand:["Nedelja","Ponedeljek","Torek","Sreda","\u010Cetrtek","Petek","Sobota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],longhand:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"]},firstDayOfWeek:1,rangeSeparator:" do ",time_24hr:!0,ordinal:function(){return"."}};Pn.l10ns.sl=ur,Pn.l10ns;var wi=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},$r={weekdays:{shorthand:["Di","H\xEB","Ma","M\xEB","En","Pr","Sh"],longhand:["E Diel","E H\xEBn\xEB","E Mart\xEB","E M\xEBrkur\xEB","E Enjte","E Premte","E Shtun\xEB"]},months:{shorthand:["Jan","Shk","Mar","Pri","Maj","Qer","Kor","Gus","Sht","Tet","N\xEBn","Dhj"],longhand:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","N\xEBntor","Dhjetor"]},firstDayOfWeek:1,rangeSeparator:" deri ",weekAbbreviation:"Java",yearAriaLabel:"Viti",monthAriaLabel:"Muaji",hourAriaLabel:"Ora",minuteAriaLabel:"Minuta",time_24hr:!0};wi.l10ns.sq=$r,wi.l10ns;var es=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},ts={weekdays:{shorthand:["Ned","Pon","Uto","Sre","\u010Cet","Pet","Sub"],longhand:["Nedelja","Ponedeljak","Utorak","Sreda","\u010Cetvrtak","Petak","Subota"]},months:{shorthand:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Avg","Sep","Okt","Nov","Dec"],longhand:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"]},firstDayOfWeek:1,weekAbbreviation:"Ned.",rangeSeparator:" do ",time_24hr:!0};es.l10ns.sr=ts,es.l10ns;var is=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},ao={firstDayOfWeek:1,weekAbbreviation:"v",weekdays:{shorthand:["s\xF6n","m\xE5n","tis","ons","tor","fre","l\xF6r"],longhand:["s\xF6ndag","m\xE5ndag","tisdag","onsdag","torsdag","fredag","l\xF6rdag"]},months:{shorthand:["jan","feb","mar","apr","maj","jun","jul","aug","sep","okt","nov","dec"],longhand:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},rangeSeparator:" till ",time_24hr:!0,ordinal:function(){return"."}};is.l10ns.sv=ao,is.l10ns;var fr=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},lo={weekdays:{shorthand:["\u0E2D\u0E32","\u0E08","\u0E2D","\u0E1E","\u0E1E\u0E24","\u0E28","\u0E2A"],longhand:["\u0E2D\u0E32\u0E17\u0E34\u0E15\u0E22\u0E4C","\u0E08\u0E31\u0E19\u0E17\u0E23\u0E4C","\u0E2D\u0E31\u0E07\u0E04\u0E32\u0E23","\u0E1E\u0E38\u0E18","\u0E1E\u0E24\u0E2B\u0E31\u0E2A\u0E1A\u0E14\u0E35","\u0E28\u0E38\u0E01\u0E23\u0E4C","\u0E40\u0E2A\u0E32\u0E23\u0E4C"]},months:{shorthand:["\u0E21.\u0E04.","\u0E01.\u0E1E.","\u0E21\u0E35.\u0E04.","\u0E40\u0E21.\u0E22.","\u0E1E.\u0E04.","\u0E21\u0E34.\u0E22.","\u0E01.\u0E04.","\u0E2A.\u0E04.","\u0E01.\u0E22.","\u0E15.\u0E04.","\u0E1E.\u0E22.","\u0E18.\u0E04."],longhand:["\u0E21\u0E01\u0E23\u0E32\u0E04\u0E21","\u0E01\u0E38\u0E21\u0E20\u0E32\u0E1E\u0E31\u0E19\u0E18\u0E4C","\u0E21\u0E35\u0E19\u0E32\u0E04\u0E21","\u0E40\u0E21\u0E29\u0E32\u0E22\u0E19","\u0E1E\u0E24\u0E29\u0E20\u0E32\u0E04\u0E21","\u0E21\u0E34\u0E16\u0E38\u0E19\u0E32\u0E22\u0E19","\u0E01\u0E23\u0E01\u0E0E\u0E32\u0E04\u0E21","\u0E2A\u0E34\u0E07\u0E2B\u0E32\u0E04\u0E21","\u0E01\u0E31\u0E19\u0E22\u0E32\u0E22\u0E19","\u0E15\u0E38\u0E25\u0E32\u0E04\u0E21","\u0E1E\u0E24\u0E28\u0E08\u0E34\u0E01\u0E32\u0E22\u0E19","\u0E18\u0E31\u0E19\u0E27\u0E32\u0E04\u0E21"]},firstDayOfWeek:1,rangeSeparator:" \u0E16\u0E36\u0E07 ",scrollTitle:"\u0E40\u0E25\u0E37\u0E48\u0E2D\u0E19\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E2B\u0E23\u0E37\u0E2D\u0E25\u0E14",toggleTitle:"\u0E04\u0E25\u0E34\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19",time_24hr:!0,ordinal:function(){return""}};fr.l10ns.th=lo,fr.l10ns;var co=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},ns={weekdays:{shorthand:["Paz","Pzt","Sal","\xC7ar","Per","Cum","Cmt"],longhand:["Pazar","Pazartesi","Sal\u0131","\xC7ar\u015Famba","Per\u015Fembe","Cuma","Cumartesi"]},months:{shorthand:["Oca","\u015Eub","Mar","Nis","May","Haz","Tem","A\u011Fu","Eyl","Eki","Kas","Ara"],longhand:["Ocak","\u015Eubat","Mart","Nisan","May\u0131s","Haziran","Temmuz","A\u011Fustos","Eyl\xFCl","Ekim","Kas\u0131m","Aral\u0131k"]},firstDayOfWeek:1,ordinal:function(){return"."},rangeSeparator:" - ",weekAbbreviation:"Hf",scrollTitle:"Art\u0131rmak i\xE7in kayd\u0131r\u0131n",toggleTitle:"A\xE7/Kapa",amPM:["\xD6\xD6","\xD6S"],time_24hr:!0};co.l10ns.tr=ns,co.l10ns;var rs=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},dr={firstDayOfWeek:1,weekdays:{shorthand:["\u041D\u0434","\u041F\u043D","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041F\u0442","\u0421\u0431"],longhand:["\u041D\u0435\u0434\u0456\u043B\u044F","\u041F\u043E\u043D\u0435\u0434\u0456\u043B\u043E\u043A","\u0412\u0456\u0432\u0442\u043E\u0440\u043E\u043A","\u0421\u0435\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0435\u0440","\u041F'\u044F\u0442\u043D\u0438\u0446\u044F","\u0421\u0443\u0431\u043E\u0442\u0430"]},months:{shorthand:["\u0421\u0456\u0447","\u041B\u044E\u0442","\u0411\u0435\u0440","\u041A\u0432\u0456","\u0422\u0440\u0430","\u0427\u0435\u0440","\u041B\u0438\u043F","\u0421\u0435\u0440","\u0412\u0435\u0440","\u0416\u043E\u0432","\u041B\u0438\u0441","\u0413\u0440\u0443"],longhand:["\u0421\u0456\u0447\u0435\u043D\u044C","\u041B\u044E\u0442\u0438\u0439","\u0411\u0435\u0440\u0435\u0437\u0435\u043D\u044C","\u041A\u0432\u0456\u0442\u0435\u043D\u044C","\u0422\u0440\u0430\u0432\u0435\u043D\u044C","\u0427\u0435\u0440\u0432\u0435\u043D\u044C","\u041B\u0438\u043F\u0435\u043D\u044C","\u0421\u0435\u0440\u043F\u0435\u043D\u044C","\u0412\u0435\u0440\u0435\u0441\u0435\u043D\u044C","\u0416\u043E\u0432\u0442\u0435\u043D\u044C","\u041B\u0438\u0441\u0442\u043E\u043F\u0430\u0434","\u0413\u0440\u0443\u0434\u0435\u043D\u044C"]},time_24hr:!0};rs.l10ns.uk=dr,rs.l10ns;var ss=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},vt={weekdays:{shorthand:["\u042F\u043A\u0448","\u0414\u0443\u0448","\u0421\u0435\u0448","\u0427\u043E\u0440","\u041F\u0430\u0439","\u0416\u0443\u043C","\u0428\u0430\u043D"],longhand:["\u042F\u043A\u0448\u0430\u043D\u0431\u0430","\u0414\u0443\u0448\u0430\u043D\u0431\u0430","\u0421\u0435\u0448\u0430\u043D\u0431\u0430","\u0427\u043E\u0440\u0448\u0430\u043D\u0431\u0430","\u041F\u0430\u0439\u0448\u0430\u043D\u0431\u0430","\u0416\u0443\u043C\u0430","\u0428\u0430\u043D\u0431\u0430"]},months:{shorthand:["\u042F\u043D\u0432","\u0424\u0435\u0432","\u041C\u0430\u0440","\u0410\u043F\u0440","\u041C\u0430\u0439","\u0418\u044E\u043D","\u0418\u044E\u043B","\u0410\u0432\u0433","\u0421\u0435\u043D","\u041E\u043A\u0442","\u041D\u043E\u044F","\u0414\u0435\u043A"],longhand:["\u042F\u043D\u0432\u0430\u0440","\u0424\u0435\u0432\u0440\u0430\u043B","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0435\u043B","\u041C\u0430\u0439","\u0418\u044E\u043D","\u0418\u044E\u043B","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043D\u0442\u044F\u0431\u0440","\u041E\u043A\u0442\u044F\u0431\u0440","\u041D\u043E\u044F\u0431\u0440","\u0414\u0435\u043A\u0430\u0431\u0440"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" \u2014 ",weekAbbreviation:"\u04B2\u0430\u0444\u0442\u0430",scrollTitle:"\u041A\u0430\u0442\u0442\u0430\u043B\u0430\u0448\u0442\u0438\u0440\u0438\u0448 \u0443\u0447\u0443\u043D \u0430\u0439\u043B\u0430\u043D\u0442\u0438\u0440\u0438\u043D\u0433",toggleTitle:"\u040E\u0442\u0438\u0448 \u0443\u0447\u0443\u043D \u0431\u043E\u0441\u0438\u043D\u0433",amPM:["AM","PM"],yearAriaLabel:"\u0419\u0438\u043B",time_24hr:!0};ss.l10ns.uz=vt,ss.l10ns;var Ri=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},Nn={weekdays:{shorthand:["Ya","Du","Se","Cho","Pa","Ju","Sha"],longhand:["Yakshanba","Dushanba","Seshanba","Chorshanba","Payshanba","Juma","Shanba"]},months:{shorthand:["Yan","Fev","Mar","Apr","May","Iyun","Iyul","Avg","Sen","Okt","Noy","Dek"],longhand:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avgust","Sentabr","Oktabr","Noyabr","Dekabr"]},firstDayOfWeek:1,ordinal:function(){return""},rangeSeparator:" \u2014 ",weekAbbreviation:"Hafta",scrollTitle:"Kattalashtirish uchun aylantiring",toggleTitle:"O\u2018tish uchun bosing",amPM:["AM","PM"],yearAriaLabel:"Yil",time_24hr:!0};Ri.l10ns.uz_latn=Nn,Ri.l10ns;var uo=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},fo={weekdays:{shorthand:["CN","T2","T3","T4","T5","T6","T7"],longhand:["Ch\u1EE7 nh\u1EADt","Th\u1EE9 hai","Th\u1EE9 ba","Th\u1EE9 t\u01B0","Th\u1EE9 n\u0103m","Th\u1EE9 s\xE1u","Th\u1EE9 b\u1EA3y"]},months:{shorthand:["Th1","Th2","Th3","Th4","Th5","Th6","Th7","Th8","Th9","Th10","Th11","Th12"],longhand:["Th\xE1ng m\u1ED9t","Th\xE1ng hai","Th\xE1ng ba","Th\xE1ng t\u01B0","Th\xE1ng n\u0103m","Th\xE1ng s\xE1u","Th\xE1ng b\u1EA3y","Th\xE1ng t\xE1m","Th\xE1ng ch\xEDn","Th\xE1ng m\u01B0\u1EDDi","Th\xE1ng m\u01B0\u1EDDi m\u1ED9t","Th\xE1ng m\u01B0\u1EDDi hai"]},firstDayOfWeek:1,rangeSeparator:" \u0111\u1EBFn "};uo.l10ns.vn=fo,uo.l10ns;var hr=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},os={weekdays:{shorthand:["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"],longhand:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},months:{shorthand:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],longhand:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},rangeSeparator:" \u81F3 ",weekAbbreviation:"\u5468",scrollTitle:"\u6EDA\u52A8\u5207\u6362",toggleTitle:"\u70B9\u51FB\u5207\u6362 12/24 \u5C0F\u65F6\u65F6\u5236"};hr.l10ns.zh=os,hr.l10ns;var In=typeof window<"u"&&window.flatpickr!==void 0?window.flatpickr:{l10ns:{}},as={weekdays:{shorthand:["\u9031\u65E5","\u9031\u4E00","\u9031\u4E8C","\u9031\u4E09","\u9031\u56DB","\u9031\u4E94","\u9031\u516D"],longhand:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"]},months:{shorthand:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],longhand:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"]},rangeSeparator:" \u81F3 ",weekAbbreviation:"\u9031",scrollTitle:"\u6EFE\u52D5\u5207\u63DB",toggleTitle:"\u9EDE\u64CA\u5207\u63DB 12/24 \u5C0F\u6642\u6642\u5236"};In.l10ns.zh_tw=as,In.l10ns;var Ra={ar:r,at:l,az:f,be:A,bg:M,bn:k,bs:N,ca:w,ckb:d,cat:w,cs:p,cy:j,da:K,de:ae,default:e({},te),en:te,eo:Ce,es:Le,et:rt,fa:gt,fi:Xe,fo:ft,fr:et,gr:Qe,he:Zi,hi:Nt,hr:$i,hu:Yt,hy:Mi,id:It,is:Rt,it:oe,ja:Oi,ka:Li,ko:Dn,km:Dt,kz:oi,lt:ai,lv:kn,mk:Bt,mn:Mn,ms:E,my:H,nl:Q,nn:he,no:be,pa:fe,pl:kt,pt:yi,ro:On,ru:ci,si:nn,sk:Ii,sl:ur,sq:$r,sr:ts,sv:ao,th:lo,tr:ns,uk:dr,vn:fo,zh:os,zh_tw:as,uz:vt,uz_latn:Nn};i.default=Ra,Object.defineProperty(i,"__esModule",{value:!0})}))});var Rl={};Za(Rl,{FetchEnctype:()=>cn,FetchMethod:()=>Vt,FetchRequest:()=>mn,FetchResponse:()=>Cr,FrameElement:()=>Ut,FrameLoadingStyle:()=>Vn,FrameRenderer:()=>Dr,PageRenderer:()=>kr,PageSnapshot:()=>Xt,StreamActions:()=>Il,StreamElement:()=>Ho,StreamSourceElement:()=>Fo,cache:()=>Xu,config:()=>at,connectStreamSource:()=>Ns,disconnectStreamSource:()=>Is,fetch:()=>Pl,fetchEnctypeFromString:()=>Iu,fetchMethodFromString:()=>Bo,isSafe:()=>Vo,morphBodyElements:()=>sf,morphChildren:()=>Uo,morphElements:()=>Ps,morphTurboFrameElements:()=>of,navigator:()=>Qu,registerAdapter:()=>Zu,renderStreamMessage:()=>ef,session:()=>Ze,setConfirmMethod:()=>nf,setFormMode:()=>rf,setProgressBarDelay:()=>tf,start:()=>Nl,visit:()=>$u});var Vn={eager:"eager",lazy:"lazy"},jo=class jo extends HTMLElement{constructor(){super();Z(this,"loaded",Promise.resolve());this.delegate=new jo.delegateConstructor(this)}static get observedAttributes(){return["disabled","loading","src"]}connectedCallback(){this.delegate.connect()}disconnectedCallback(){this.delegate.disconnect()}reload(){return this.delegate.sourceURLReloaded()}attributeChangedCallback(t){t=="loading"?this.delegate.loadingStyleChanged():t=="src"?this.delegate.sourceURLChanged():t=="disabled"&&this.delegate.disabledChanged()}get src(){return this.getAttribute("src")}set src(t){t?this.setAttribute("src",t):this.removeAttribute("src")}get refresh(){return this.getAttribute("refresh")}set refresh(t){t?this.setAttribute("refresh",t):this.removeAttribute("refresh")}get shouldReloadWithMorph(){return this.src&&this.refresh==="morph"}get loading(){return tp(this.getAttribute("loading")||"")}set loading(t){t?this.setAttribute("loading",t):this.removeAttribute("loading")}get disabled(){return this.hasAttribute("disabled")}set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get autoscroll(){return this.hasAttribute("autoscroll")}set autoscroll(t){t?this.setAttribute("autoscroll",""):this.removeAttribute("autoscroll")}get complete(){return!this.delegate.isLoading}get isActive(){return this.ownerDocument===document&&!this.isPreview}get isPreview(){return this.ownerDocument?.documentElement?.hasAttribute("data-turbo-preview")}};Z(jo,"delegateConstructor");var Ut=jo;function tp(i){switch(i.toLowerCase()){case"lazy":return Vn.lazy;default:return Vn.eager}}var ip={enabled:!0,progressBarDelay:500,unvisitableExtensions:new Set([".7z",".aac",".apk",".avi",".bmp",".bz2",".css",".csv",".deb",".dmg",".doc",".docx",".exe",".gif",".gz",".heic",".heif",".ico",".iso",".jpeg",".jpg",".js",".json",".m4a",".mkv",".mov",".mp3",".mp4",".mpeg",".mpg",".msi",".ogg",".ogv",".pdf",".pkg",".png",".ppt",".pptx",".rar",".rtf",".svg",".tar",".tif",".tiff",".txt",".wav",".webm",".webp",".wma",".wmv",".xls",".xlsx",".xml",".zip"])};function vs(i){if(i.getAttribute("data-turbo-eval")=="false")return i;{let e=document.createElement("script"),t=Du();return t&&(e.nonce=t),e.textContent=i.textContent,e.async=!1,np(e,i),e}}function np(i,e){for(let{name:t,value:r}of e.attributes)i.setAttribute(t,r)}function rp(i){let e=document.createElement("template");return e.innerHTML=i,e.content}function Ve(i,{target:e,cancelable:t,detail:r}={}){let o=new CustomEvent(i,{cancelable:t,bubbles:!0,composed:!0,detail:r});return e&&e.isConnected?e.dispatchEvent(o):document.documentElement.dispatchEvent(o),o}function vu(i){i.preventDefault(),i.stopImmediatePropagation()}function ms(){return document.visibilityState==="hidden"?Au():Su()}function Su(){return new Promise(i=>requestAnimationFrame(()=>i()))}function Au(){return new Promise(i=>setTimeout(()=>i(),0))}function Tu(i=""){return new DOMParser().parseFromString(i,"text/html")}function Cu(i,...e){let t=sp(i,e).replace(/^\n/,"").split(`
|
|
6
|
+
`),r=t[0].match(/^\s+/),o=r?r[0].length:0;return t.map(l=>l.slice(o)).join(`
|
|
7
|
+
`)}function sp(i,e){return i.reduce((t,r,o)=>{let l=e[o]==null?"":e[o];return t+r+l},"")}function pn(){return Array.from({length:36}).map((i,e)=>e==8||e==13||e==18||e==23?"-":e==14?"4":e==19?(Math.floor(Math.random()*4)+8).toString(16):Math.floor(Math.random()*16).toString(16)).join("")}function Ao(i,...e){for(let t of e.map(r=>r?.getAttribute(i)))if(typeof t=="string")return t;return null}function op(i,...e){return e.some(t=>t&&t.hasAttribute(i))}function To(...i){for(let e of i)e.localName=="turbo-frame"&&e.setAttribute("busy",""),e.setAttribute("aria-busy","true")}function Co(...i){for(let e of i)e.localName=="turbo-frame"&&e.removeAttribute("busy"),e.removeAttribute("aria-busy")}function ap(i,e=2e3){return new Promise(t=>{let r=()=>{i.removeEventListener("error",r),i.removeEventListener("load",r),t()};i.addEventListener("load",r,{once:!0}),i.addEventListener("error",r,{once:!0}),setTimeout(t,e)})}function xu(i){switch(i){case"replace":return history.replaceState;case"advance":case"restore":return history.pushState}}function lp(i){return i=="advance"||i=="replace"||i=="restore"}function Yn(...i){let e=Ao("data-turbo-action",...i);return lp(e)?e:null}function Ml(i){return document.querySelector(`meta[name="${i}"]`)}function xo(i){let e=Ml(i);return e&&e.content}function Du(){let i=Ml("csp-nonce");if(i){let{nonce:e,content:t}=i;return e==""?t:e}}function cp(i,e){let t=Ml(i);return t||(t=document.createElement("meta"),t.setAttribute("name",i),document.head.appendChild(t)),t.setAttribute("content",e),t}function yr(i,e){if(i instanceof Element)return i.closest(e)||yr(i.assignedSlot||i.getRootNode()?.host,e)}function Ol(i){return!!i&&i.closest("[inert], :disabled, [hidden], details:not([open]), dialog:not([open])")==null&&typeof i.focus=="function"}function ku(i){return Array.from(i.querySelectorAll("[autofocus]")).find(Ol)}async function up(i,e){let t=e();i(),await Su();let r=e();return[t,r]}function Mu(i){if(i==="_blank")return!1;if(i){for(let e of document.getElementsByName(i))if(e instanceof HTMLIFrameElement)return!1;return!0}else return!0}function Ou(i){let e=yr(i,"a[href], a[xlink\\:href]");if(!e||e.href.startsWith("#")||e.hasAttribute("download"))return null;let t=e.getAttribute("target");return t&&t!=="_self"?null:e}function fp(i,e){let t=null;return(...r)=>{let o=()=>i.apply(this,r);clearTimeout(t),t=setTimeout(o,e)}}var dp={"aria-disabled":{beforeSubmit:i=>{i.setAttribute("aria-disabled","true"),i.addEventListener("click",vu)},afterSubmit:i=>{i.removeAttribute("aria-disabled"),i.removeEventListener("click",vu)}},disabled:{beforeSubmit:i=>i.disabled=!0,afterSubmit:i=>i.disabled=!1}},ws,el=class{constructor(e){Te(this,ws,null);Object.assign(this,e)}get submitter(){return ce(this,ws)}set submitter(e){Fe(this,ws,dp[e]||e)}};ws=new WeakMap;var hp=new el({mode:"on",submitter:"disabled"}),at={drive:ip,forms:hp};function yt(i){return new URL(i.toString(),document.baseURI)}function gs(i){let e;if(i.hash)return i.hash.slice(1);if(e=i.href.match(/#(.*)$/))return e[1]}function Ll(i,e){let t=e?.getAttribute("formaction")||i.getAttribute("action")||i.action;return yt(t)}function pp(i){return(bp(i).match(/\.[^.]*$/)||[])[0]||""}function mp(i,e){let t=bu(e.origin+e.pathname);return bu(i.href)===t||i.href.startsWith(t)}function ln(i,e){return mp(i,e)&&!at.drive.unvisitableExtensions.has(pp(i))}function Lu(i){return yt(i.getAttribute("href")||"")}function gp(i){let e=gs(i);return e!=null?i.href.slice(0,-(e.length+1)):i.href}function yo(i){return gp(i)}function Pu(i,e){return yt(i).href==yt(e).href}function vp(i){return i.pathname.split("/").slice(1)}function bp(i){return vp(i).slice(-1)[0]}function bu(i){return i.endsWith("/")?i:i+"/"}var Cr=class{constructor(e){this.response=e}get succeeded(){return this.response.ok}get failed(){return!this.succeeded}get clientError(){return this.statusCode>=400&&this.statusCode<=499}get serverError(){return this.statusCode>=500&&this.statusCode<=599}get redirected(){return this.response.redirected}get location(){return yt(this.response.url)}get isHTML(){return this.contentType&&this.contentType.match(/^(?:text\/([^\s;,]+\b)?html|application\/xhtml\+xml)\b/)}get statusCode(){return this.response.status}get contentType(){return this.header("Content-Type")}get responseText(){return this.response.clone().text()}get responseHTML(){return this.isHTML?this.response.clone().text():Promise.resolve(void 0)}header(e){return this.response.headers.get(e)}},tl=class extends Set{constructor(e){super(),this.maxSize=e}add(e){if(this.size>=this.maxSize){let r=this.values().next().value;this.delete(r)}super.add(e)}},Nu=new tl(20);function Pl(i,e={}){let t=new Headers(e.headers||{}),r=pn();return Nu.add(r),t.append("X-Turbo-Request-Id",r),window.fetch(i,{...e,headers:t})}function Bo(i){switch(i.toLowerCase()){case"get":return Vt.get;case"post":return Vt.post;case"put":return Vt.put;case"patch":return Vt.patch;case"delete":return Vt.delete}}var Vt={get:"get",post:"post",put:"put",patch:"patch",delete:"delete"};function Iu(i){switch(i.toLowerCase()){case cn.multipart:return cn.multipart;case cn.plain:return cn.plain;default:return cn.urlEncoded}}var cn={urlEncoded:"application/x-www-form-urlencoded",multipart:"multipart/form-data",plain:"text/plain"},_s,Mr,Ru,Hu,mn=class{constructor(e,t,r,o=new URLSearchParams,l=null,m=cn.urlEncoded){Te(this,Mr);Z(this,"abortController",new AbortController);Te(this,_s,e=>{});let[f,y]=yu(yt(r),t,o,m);this.delegate=e,this.url=f,this.target=l,this.fetchOptions={credentials:"same-origin",redirect:"follow",method:t.toUpperCase(),headers:{...this.defaultHeaders},body:y,signal:this.abortSignal,referrer:this.delegate.referrer?.href},this.enctype=m}get method(){return this.fetchOptions.method}set method(e){let t=this.isSafe?this.url.searchParams:this.fetchOptions.body||new FormData,r=Bo(e)||Vt.get;this.url.search="";let[o,l]=yu(this.url,r,t,this.enctype);this.url=o,this.fetchOptions.body=l,this.fetchOptions.method=r.toUpperCase()}get headers(){return this.fetchOptions.headers}set headers(e){this.fetchOptions.headers=e}get body(){return this.isSafe?this.url.searchParams:this.fetchOptions.body}set body(e){this.fetchOptions.body=e}get location(){return this.url}get params(){return this.url.searchParams}get entries(){return this.body?Array.from(this.body.entries()):[]}cancel(){this.abortController.abort()}async perform(){let{fetchOptions:e}=this;this.delegate.prepareRequest(this);let t=await pe(this,Mr,Ru).call(this,e);try{this.delegate.requestStarted(this),t.detail.fetchRequest?this.response=t.detail.fetchRequest.response:this.response=Pl(this.url.href,e);let r=await this.response;return await this.receive(r)}catch(r){if(r.name!=="AbortError")throw pe(this,Mr,Hu).call(this,r)&&this.delegate.requestErrored(this,r),r}finally{this.delegate.requestFinished(this)}}async receive(e){let t=new Cr(e);return Ve("turbo:before-fetch-response",{cancelable:!0,detail:{fetchResponse:t},target:this.target}).defaultPrevented?this.delegate.requestPreventedHandlingResponse(this,t):t.succeeded?this.delegate.requestSucceededWithResponse(this,t):this.delegate.requestFailedWithResponse(this,t),t}get defaultHeaders(){return{Accept:"text/html, application/xhtml+xml"}}get isSafe(){return Vo(this.method)}get abortSignal(){return this.abortController.signal}acceptResponseType(e){this.headers.Accept=[e,this.headers.Accept].join(", ")}};_s=new WeakMap,Mr=new WeakSet,Ru=async function(e){let t=new Promise(o=>Fe(this,_s,o)),r=Ve("turbo:before-fetch-request",{cancelable:!0,detail:{fetchOptions:e,url:this.url,resume:ce(this,_s)},target:this.target});return this.url=r.detail.url,r.defaultPrevented&&await t,r},Hu=function(e){return!Ve("turbo:fetch-request-error",{target:this.target,cancelable:!0,detail:{request:this,error:e}}).defaultPrevented};function Vo(i){return Bo(i)==Vt.get}function yu(i,e,t,r){let o=Array.from(t).length>0?new URLSearchParams(Fu(t)):i.searchParams;return Vo(e)?[yp(i,o),null]:r==cn.urlEncoded?[i,o]:[i,t]}function Fu(i){let e=[];for(let[t,r]of i)r instanceof File||e.push([t,r]);return e}function yp(i,e){let t=new URLSearchParams(Fu(e));return i.search=t.toString(),i}var il=class{constructor(e,t){Z(this,"started",!1);Z(this,"intersect",e=>{e.slice(-1)[0]?.isIntersecting&&this.delegate.elementAppearedInViewport(this.element)});this.delegate=e,this.element=t,this.intersectionObserver=new IntersectionObserver(this.intersect)}start(){this.started||(this.started=!0,this.intersectionObserver.observe(this.element))}stop(){this.started&&(this.started=!1,this.intersectionObserver.unobserve(this.element))}},Ui=class{static wrap(e){return typeof e=="string"?new this(rp(e)):e}constructor(e){this.fragment=wp(e)}};Z(Ui,"contentType","text/vnd.turbo-stream.html");function wp(i){for(let e of i.querySelectorAll("turbo-stream")){let t=document.importNode(e,!0);for(let r of t.templateElement.content.querySelectorAll("script"))r.replaceWith(vs(r));e.replaceWith(t)}return i}var _p=i=>i,un,Do=class{constructor(e,t=_p){Z(this,"keys",[]);Z(this,"entries",{});Te(this,un);this.size=e,Fe(this,un,t)}has(e){return ce(this,un).call(this,e)in this.entries}get(e){if(this.has(e)){let t=this.read(e);return this.touch(e),t}}put(e,t){return this.write(e,t),this.touch(e),t}clear(){for(let e of Object.keys(this.entries))this.evict(e)}read(e){return this.entries[ce(this,un).call(this,e)]}write(e,t){this.entries[ce(this,un).call(this,e)]=t}touch(e){e=ce(this,un).call(this,e);let t=this.keys.indexOf(e);t>-1&&this.keys.splice(t,1),this.keys.unshift(e),this.trim()}trim(){for(let e of this.keys.splice(this.size))this.evict(e)}evict(e){delete this.entries[e]}};un=new WeakMap;var Ep=100,Un,_r,nl=class extends Do{constructor(t=1,r=Ep){super(t,yo);Te(this,Un,null);Te(this,_r,{});this.prefetchDelay=r}putLater(t,r,o){Fe(this,Un,setTimeout(()=>{r.perform(),this.put(t,r,o),Fe(this,Un,null)},this.prefetchDelay))}put(t,r,o=ju){super.put(t,r),ce(this,_r)[yo(t)]=new Date(new Date().getTime()+o)}clear(){super.clear(),ce(this,Un)&&clearTimeout(ce(this,Un))}evict(t){super.evict(t),delete ce(this,_r)[t]}has(t){if(super.has(t)){let r=ce(this,_r)[yo(t)];return r&&r>Date.now()}else return!1}};Un=new WeakMap,_r=new WeakMap;var ju=10*1e3,br=new nl,gr={initialized:"initialized",requesting:"requesting",waiting:"waiting",receiving:"receiving",stopping:"stopping",stopped:"stopped"},ko=class i{constructor(e,t,r,o=!1){Z(this,"state",gr.initialized);let l=Dp(t,r),m=xp(Cp(t,r),l),f=Sp(t,r),y=kp(t,r);this.delegate=e,this.formElement=t,this.submitter=r,this.fetchRequest=new mn(this,l,m,f,t,y),this.mustRedirect=o}static confirmMethod(e){return Promise.resolve(confirm(e))}get method(){return this.fetchRequest.method}set method(e){this.fetchRequest.method=e}get action(){return this.fetchRequest.url.toString()}set action(e){this.fetchRequest.url=yt(e)}get body(){return this.fetchRequest.body}get enctype(){return this.fetchRequest.enctype}get isSafe(){return this.fetchRequest.isSafe}get location(){return this.fetchRequest.url}async start(){let{initialized:e,requesting:t}=gr,r=Ao("data-turbo-confirm",this.submitter,this.formElement);if(!(typeof r=="string"&&!await(typeof at.forms.confirm=="function"?at.forms.confirm:i.confirmMethod)(r,this.formElement,this.submitter))&&this.state==e)return this.state=t,this.fetchRequest.perform()}stop(){let{stopping:e,stopped:t}=gr;if(this.state!=e&&this.state!=t)return this.state=e,this.fetchRequest.cancel(),!0}prepareRequest(e){if(!e.isSafe){let t=Ap(xo("csrf-param"))||xo("csrf-token");t&&(e.headers["X-CSRF-Token"]=t)}this.requestAcceptsTurboStreamResponse(e)&&e.acceptResponseType(Ui.contentType)}requestStarted(e){this.state=gr.waiting,this.submitter&&at.forms.submitter.beforeSubmit(this.submitter),this.setSubmitsWith(),To(this.formElement),Ve("turbo:submit-start",{target:this.formElement,detail:{formSubmission:this}}),this.delegate.formSubmissionStarted(this)}requestPreventedHandlingResponse(e,t){br.clear(),this.result={success:t.succeeded,fetchResponse:t}}requestSucceededWithResponse(e,t){if(t.clientError||t.serverError){this.delegate.formSubmissionFailedWithResponse(this,t);return}if(br.clear(),this.requestMustRedirect(e)&&Tp(t)){let r=new Error("Form responses must redirect to another location");this.delegate.formSubmissionErrored(this,r)}else this.state=gr.receiving,this.result={success:!0,fetchResponse:t},this.delegate.formSubmissionSucceededWithResponse(this,t)}requestFailedWithResponse(e,t){this.result={success:!1,fetchResponse:t},this.delegate.formSubmissionFailedWithResponse(this,t)}requestErrored(e,t){this.result={success:!1,error:t},this.delegate.formSubmissionErrored(this,t)}requestFinished(e){this.state=gr.stopped,this.submitter&&at.forms.submitter.afterSubmit(this.submitter),this.resetSubmitterText(),Co(this.formElement),Ve("turbo:submit-end",{target:this.formElement,detail:{formSubmission:this,...this.result}}),this.delegate.formSubmissionFinished(this)}setSubmitsWith(){if(!(!this.submitter||!this.submitsWith)){if(this.submitter.matches("button"))this.originalSubmitText=this.submitter.innerHTML,this.submitter.innerHTML=this.submitsWith;else if(this.submitter.matches("input")){let e=this.submitter;this.originalSubmitText=e.value,e.value=this.submitsWith}}}resetSubmitterText(){if(!(!this.submitter||!this.originalSubmitText)){if(this.submitter.matches("button"))this.submitter.innerHTML=this.originalSubmitText;else if(this.submitter.matches("input")){let e=this.submitter;e.value=this.originalSubmitText}}}requestMustRedirect(e){return!e.isSafe&&this.mustRedirect}requestAcceptsTurboStreamResponse(e){return!e.isSafe||op("data-turbo-stream",this.submitter,this.formElement)}get submitsWith(){return this.submitter?.getAttribute("data-turbo-submits-with")}};function Sp(i,e){let t=new FormData(i),r=e?.getAttribute("name"),o=e?.getAttribute("value");return r&&t.append(r,o||""),t}function Ap(i){if(i!=null){let t=(document.cookie?document.cookie.split("; "):[]).find(r=>r.startsWith(i));if(t){let r=t.split("=").slice(1).join("=");return r?decodeURIComponent(r):void 0}}}function Tp(i){return i.statusCode==200&&!i.redirected}function Cp(i,e){let t=typeof i.action=="string"?i.action:null;return e?.hasAttribute("formaction")?e.getAttribute("formaction")||"":i.getAttribute("action")||t||""}function xp(i,e){let t=yt(i);return Vo(e)&&(t.search=""),t}function Dp(i,e){let t=e?.getAttribute("formmethod")||i.getAttribute("method")||"";return Bo(t.toLowerCase())||Vt.get}function kp(i,e){return Iu(e?.getAttribute("formenctype")||i.enctype)}var xr=class{constructor(e){this.element=e}get activeElement(){return this.element.ownerDocument.activeElement}get children(){return[...this.element.children]}hasAnchor(e){return this.getElementForAnchor(e)!=null}getElementForAnchor(e){return e?this.element.querySelector(`[id='${e}'], a[name='${e}']`):null}get isConnected(){return this.element.isConnected}get firstAutofocusableElement(){return ku(this.element)}get permanentElements(){return qu(this.element)}getPermanentElementById(e){return Wu(this.element,e)}getPermanentElementMapForSnapshot(e){let t={};for(let r of this.permanentElements){let{id:o}=r,l=e.getPermanentElementById(o);l&&(t[o]=[r,l])}return t}};function Wu(i,e){return i.querySelector(`#${e}[data-turbo-permanent]`)}function qu(i){return i.querySelectorAll("[id][data-turbo-permanent]")}var bs=class{constructor(e,t){Z(this,"started",!1);Z(this,"submitCaptured",()=>{this.eventTarget.removeEventListener("submit",this.submitBubbled,!1),this.eventTarget.addEventListener("submit",this.submitBubbled,!1)});Z(this,"submitBubbled",e=>{if(!e.defaultPrevented){let t=e.target instanceof HTMLFormElement?e.target:void 0,r=e.submitter||void 0;t&&Mp(t,r)&&Op(t,r)&&this.delegate.willSubmitForm(t,r)&&(e.preventDefault(),e.stopImmediatePropagation(),this.delegate.formSubmitted(t,r))}});this.delegate=e,this.eventTarget=t}start(){this.started||(this.eventTarget.addEventListener("submit",this.submitCaptured,!0),this.started=!0)}stop(){this.started&&(this.eventTarget.removeEventListener("submit",this.submitCaptured,!0),this.started=!1)}};function Mp(i,e){return(e?.getAttribute("formmethod")||i.getAttribute("method"))!="dialog"}function Op(i,e){let t=e?.getAttribute("formtarget")||i.getAttribute("target");return Mu(t)}var Es,Ss,Mo=class{constructor(e,t){Te(this,Es,e=>{});Te(this,Ss,e=>{});this.delegate=e,this.element=t}scrollToAnchor(e){let t=this.snapshot.getElementForAnchor(e);t?(this.focusElement(t),this.scrollToElement(t)):this.scrollToPosition({x:0,y:0})}scrollToAnchorFromLocation(e){this.scrollToAnchor(gs(e))}scrollToElement(e){e.scrollIntoView()}focusElement(e){e instanceof HTMLElement&&(e.hasAttribute("tabindex")?e.focus():(e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")))}scrollToPosition({x:e,y:t}){this.scrollRoot.scrollTo(e,t)}scrollToTop(){this.scrollToPosition({x:0,y:0})}get scrollRoot(){return window}async render(e){let{isPreview:t,shouldRender:r,willRender:o,newSnapshot:l}=e,m=o;if(r)try{this.renderPromise=new Promise(S=>Fe(this,Es,S)),this.renderer=e,await this.prepareToRenderSnapshot(e);let f=new Promise(S=>Fe(this,Ss,S)),y={resume:ce(this,Ss),render:this.renderer.renderElement,renderMethod:this.renderer.renderMethod};this.delegate.allowsImmediateRender(l,y)||await f,await this.renderSnapshot(e),this.delegate.viewRenderedSnapshot(l,t,this.renderer.renderMethod),this.delegate.preloadOnLoadLinksForView(this.element),this.finishRenderingSnapshot(e)}finally{delete this.renderer,ce(this,Es).call(this,void 0),delete this.renderPromise}else m&&this.invalidate(e.reloadReason)}invalidate(e){this.delegate.viewInvalidated(e)}async prepareToRenderSnapshot(e){this.markAsPreview(e.isPreview),await e.prepareToRender()}markAsPreview(e){e?this.element.setAttribute("data-turbo-preview",""):this.element.removeAttribute("data-turbo-preview")}markVisitDirection(e){this.element.setAttribute("data-turbo-visit-direction",e)}unmarkVisitDirection(){this.element.removeAttribute("data-turbo-visit-direction")}async renderSnapshot(e){await e.render()}finishRenderingSnapshot(e){e.finishRendering()}};Es=new WeakMap,Ss=new WeakMap;var rl=class extends Mo{missing(){this.element.innerHTML='<strong class="turbo-frame-error">Content missing</strong>'}get snapshot(){return new xr(this.element)}},Oo=class{constructor(e,t){Z(this,"clickBubbled",e=>{this.clickEventIsSignificant(e)?this.clickEvent=e:delete this.clickEvent});Z(this,"linkClicked",e=>{this.clickEvent&&this.clickEventIsSignificant(e)&&this.delegate.shouldInterceptLinkClick(e.target,e.detail.url,e.detail.originalEvent)&&(this.clickEvent.preventDefault(),e.preventDefault(),this.delegate.linkClickIntercepted(e.target,e.detail.url,e.detail.originalEvent)),delete this.clickEvent});Z(this,"willVisit",e=>{delete this.clickEvent});this.delegate=e,this.element=t}start(){this.element.addEventListener("click",this.clickBubbled),document.addEventListener("turbo:click",this.linkClicked),document.addEventListener("turbo:before-visit",this.willVisit)}stop(){this.element.removeEventListener("click",this.clickBubbled),document.removeEventListener("turbo:click",this.linkClicked),document.removeEventListener("turbo:before-visit",this.willVisit)}clickEventIsSignificant(e){let t=e.composed?e.target?.parentElement:e.target,r=Ou(t)||t;return r instanceof Element&&r.closest("turbo-frame, html")==this.element}},Lo=class{constructor(e,t){Z(this,"started",!1);Z(this,"clickCaptured",()=>{this.eventTarget.removeEventListener("click",this.clickBubbled,!1),this.eventTarget.addEventListener("click",this.clickBubbled,!1)});Z(this,"clickBubbled",e=>{if(e instanceof MouseEvent&&this.clickEventIsSignificant(e)){let t=e.composedPath&&e.composedPath()[0]||e.target,r=Ou(t);if(r&&Mu(r.target)){let o=Lu(r);this.delegate.willFollowLinkToLocation(r,o,e)&&(e.preventDefault(),this.delegate.followedLinkToLocation(r,o))}}});this.delegate=e,this.eventTarget=t}start(){this.started||(this.eventTarget.addEventListener("click",this.clickCaptured,!0),this.started=!0)}stop(){this.started&&(this.eventTarget.removeEventListener("click",this.clickCaptured,!0),this.started=!1)}clickEventIsSignificant(e){return!(e.target&&e.target.isContentEditable||e.defaultPrevented||e.which>1||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)}},Po=class{constructor(e,t){this.delegate=e,this.linkInterceptor=new Lo(this,t)}start(){this.linkInterceptor.start()}stop(){this.linkInterceptor.stop()}canPrefetchRequestToLocation(e,t){return!1}prefetchAndCacheRequestToLocation(e,t){}willFollowLinkToLocation(e,t,r){return this.delegate.willSubmitFormLinkToLocation(e,t,r)&&(e.hasAttribute("data-turbo-method")||e.hasAttribute("data-turbo-stream"))}followedLinkToLocation(e,t){let r=document.createElement("form"),o="hidden";for(let[N,L]of t.searchParams)r.append(Object.assign(document.createElement("input"),{type:o,name:N,value:L}));let l=Object.assign(t,{search:""});r.setAttribute("data-turbo","true"),r.setAttribute("action",l.href),r.setAttribute("hidden","");let m=e.getAttribute("data-turbo-method");m&&r.setAttribute("method",m);let f=e.getAttribute("data-turbo-frame");f&&r.setAttribute("data-turbo-frame",f);let y=Yn(e);y&&r.setAttribute("data-turbo-action",y);let A=e.getAttribute("data-turbo-confirm");A&&r.setAttribute("data-turbo-confirm",A),e.hasAttribute("data-turbo-stream")&&r.setAttribute("data-turbo-stream",""),this.delegate.submittedFormLinkToLocation(e,t,r),document.body.appendChild(r),r.addEventListener("turbo:submit-end",()=>r.remove(),{once:!0}),requestAnimationFrame(()=>r.requestSubmit())}},No=class{static async preservingPermanentElements(e,t,r){let o=new this(e,t);o.enter(),await r(),o.leave()}constructor(e,t){this.delegate=e,this.permanentElementMap=t}enter(){for(let e in this.permanentElementMap){let[t,r]=this.permanentElementMap[e];this.delegate.enteringBardo(t,r),this.replaceNewPermanentElementWithPlaceholder(r)}}leave(){for(let e in this.permanentElementMap){let[t]=this.permanentElementMap[e];this.replaceCurrentPermanentElementWithClone(t),this.replacePlaceholderWithPermanentElement(t),this.delegate.leavingBardo(t)}}replaceNewPermanentElementWithPlaceholder(e){let t=Lp(e);e.replaceWith(t)}replaceCurrentPermanentElementWithClone(e){let t=e.cloneNode(!0);e.replaceWith(t)}replacePlaceholderWithPermanentElement(e){this.getPlaceholderById(e.id)?.replaceWith(e)}getPlaceholderById(e){return this.placeholders.find(t=>t.content==e)}get placeholders(){return[...document.querySelectorAll("meta[name=turbo-permanent-placeholder][content]")]}};function Lp(i){let e=document.createElement("meta");return e.setAttribute("name","turbo-permanent-placeholder"),e.setAttribute("content",i.id),e}var Bi,ys=class{constructor(e,t,r,o=!0){Te(this,Bi,null);this.currentSnapshot=e,this.newSnapshot=t,this.isPreview=r,this.willRender=o,this.renderElement=this.constructor.renderElement,this.promise=new Promise((l,m)=>this.resolvingFunctions={resolve:l,reject:m})}static renderElement(e,t){}get shouldRender(){return!0}get shouldAutofocus(){return!0}get reloadReason(){}prepareToRender(){}render(){}finishRendering(){this.resolvingFunctions&&(this.resolvingFunctions.resolve(),delete this.resolvingFunctions)}async preservingPermanentElements(e){await No.preservingPermanentElements(this,this.permanentElementMap,e)}focusFirstAutofocusableElement(){if(this.shouldAutofocus){let e=this.connectedSnapshot.firstAutofocusableElement;e&&e.focus()}}enteringBardo(e){ce(this,Bi)||e.contains(this.currentSnapshot.activeElement)&&Fe(this,Bi,this.currentSnapshot.activeElement)}leavingBardo(e){e.contains(ce(this,Bi))&&ce(this,Bi)instanceof HTMLElement&&(ce(this,Bi).focus(),Fe(this,Bi,null))}get connectedSnapshot(){return this.newSnapshot.isConnected?this.newSnapshot:this.currentSnapshot}get currentElement(){return this.currentSnapshot.element}get newElement(){return this.newSnapshot.element}get permanentElementMap(){return this.currentSnapshot.getPermanentElementMapForSnapshot(this.newSnapshot)}get renderMethod(){return"replace"}};Bi=new WeakMap;var Dr=class extends ys{static renderElement(e,t){let r=document.createRange();r.selectNodeContents(e),r.deleteContents();let o=t,l=o.ownerDocument?.createRange();l&&(l.selectNodeContents(o),e.appendChild(l.extractContents()))}constructor(e,t,r,o,l,m=!0){super(t,r,o,l,m),this.delegate=e}get shouldRender(){return!0}async render(){await ms(),this.preservingPermanentElements(()=>{this.loadFrameElement()}),this.scrollFrameIntoView(),await ms(),this.focusFirstAutofocusableElement(),await ms(),this.activateScriptElements()}loadFrameElement(){this.delegate.willRenderFrame(this.currentElement,this.newElement),this.renderElement(this.currentElement,this.newElement)}scrollFrameIntoView(){if(this.currentElement.autoscroll||this.newElement.autoscroll){let e=this.currentElement.firstElementChild,t=Pp(this.currentElement.getAttribute("data-autoscroll-block"),"end"),r=Np(this.currentElement.getAttribute("data-autoscroll-behavior"),"auto");if(e)return e.scrollIntoView({block:t,behavior:r}),!0}return!1}activateScriptElements(){for(let e of this.newScriptElements){let t=vs(e);e.replaceWith(t)}}get newScriptElements(){return this.currentElement.querySelectorAll("script")}};function Pp(i,e){return i=="end"||i=="start"||i=="center"||i=="nearest"?i:e}function Np(i,e){return i=="auto"||i=="smooth"?i:e}var Ip=(function(){let i=()=>{},e={morphStyle:"outerHTML",callbacks:{beforeNodeAdded:i,afterNodeAdded:i,beforeNodeMorphed:i,afterNodeMorphed:i,beforeNodeRemoved:i,afterNodeRemoved:i,beforeAttributeUpdated:i},head:{style:"merge",shouldPreserve:L=>L.getAttribute("im-preserve")==="true",shouldReAppend:L=>L.getAttribute("im-re-append")==="true",shouldRemove:i,afterHeadMorphed:i},restoreFocus:!0};function t(L,M,T={}){L=S(L);let k=N(M),D=A(L,k,T),w=o(D,()=>f(D,L,k,g=>g.morphStyle==="innerHTML"?(l(g,L,k),Array.from(L.childNodes)):r(g,L,k)));return D.pantry.remove(),w}function r(L,M,T){let k=N(M);return l(L,k,T,M,M.nextSibling),Array.from(k.childNodes)}function o(L,M){if(!L.config.restoreFocus)return M();let T=document.activeElement;if(!(T instanceof HTMLInputElement||T instanceof HTMLTextAreaElement))return M();let{id:k,selectionStart:D,selectionEnd:w}=T,g=M();return k&&k!==document.activeElement?.getAttribute("id")&&(T=L.target.querySelector(`[id="${k}"]`),T?.focus()),T&&!T.selectionEnd&&w&&T.setSelectionRange(D,w),g}let l=(function(){function L(u,p,s,j=null,B=null){p instanceof HTMLTemplateElement&&s instanceof HTMLTemplateElement&&(p=p.content,s=s.content),j||(j=p.firstChild);for(let K of s.childNodes){if(j&&j!=B){let ae=T(u,K,j,B);if(ae){ae!==j&&D(u,j,ae),m(ae,K,u),j=ae.nextSibling;continue}}if(K instanceof Element){let ae=K.getAttribute("id");if(u.persistentIds.has(ae)){let te=w(p,ae,j,u);m(te,K,u),j=te.nextSibling;continue}}let J=M(p,K,j,u);J&&(j=J.nextSibling)}for(;j&&j!=B;){let K=j;j=j.nextSibling,k(u,K)}}function M(u,p,s,j){if(j.callbacks.beforeNodeAdded(p)===!1)return null;if(j.idMap.has(p)){let B=document.createElement(p.tagName);return u.insertBefore(B,s),m(B,p,j),j.callbacks.afterNodeAdded(B),B}else{let B=document.importNode(p,!0);return u.insertBefore(B,s),j.callbacks.afterNodeAdded(B),B}}let T=(function(){function u(j,B,K,J){let ae=null,te=B.nextSibling,we=0,Ce=K;for(;Ce&&Ce!=J;){if(s(Ce,B)){if(p(j,Ce,B))return Ce;ae===null&&(j.idMap.has(Ce)||(ae=Ce))}if(ae===null&&te&&s(Ce,te)&&(we++,te=te.nextSibling,we>=2&&(ae=void 0)),j.activeElementAndParents.includes(Ce))break;Ce=Ce.nextSibling}return ae||null}function p(j,B,K){let J=j.idMap.get(B),ae=j.idMap.get(K);if(!ae||!J)return!1;for(let te of J)if(ae.has(te))return!0;return!1}function s(j,B){let K=j,J=B;return K.nodeType===J.nodeType&&K.tagName===J.tagName&&(!K.getAttribute?.("id")||K.getAttribute?.("id")===J.getAttribute?.("id"))}return u})();function k(u,p){if(u.idMap.has(p))d(u.pantry,p,null);else{if(u.callbacks.beforeNodeRemoved(p)===!1)return;p.parentNode?.removeChild(p),u.callbacks.afterNodeRemoved(p)}}function D(u,p,s){let j=p;for(;j&&j!==s;){let B=j;j=j.nextSibling,k(u,B)}return j}function w(u,p,s,j){let B=j.target.getAttribute?.("id")===p&&j.target||j.target.querySelector(`[id="${p}"]`)||j.pantry.querySelector(`[id="${p}"]`);return g(B,j),d(u,B,s),B}function g(u,p){let s=u.getAttribute("id");for(;u=u.parentNode;){let j=p.idMap.get(u);j&&(j.delete(s),j.size||p.idMap.delete(u))}}function d(u,p,s){if(u.moveBefore)try{u.moveBefore(p,s)}catch{u.insertBefore(p,s)}else u.insertBefore(p,s)}return L})(),m=(function(){function L(g,d,u){return u.ignoreActive&&g===document.activeElement?null:(u.callbacks.beforeNodeMorphed(g,d)===!1||(g instanceof HTMLHeadElement&&u.head.ignore||(g instanceof HTMLHeadElement&&u.head.style!=="morph"?y(g,d,u):(M(g,d,u),w(g,u)||l(u,g,d))),u.callbacks.afterNodeMorphed(g,d)),g)}function M(g,d,u){let p=d.nodeType;if(p===1){let s=g,j=d,B=s.attributes,K=j.attributes;for(let J of K)D(J.name,s,"update",u)||s.getAttribute(J.name)!==J.value&&s.setAttribute(J.name,J.value);for(let J=B.length-1;0<=J;J--){let ae=B[J];if(ae&&!j.hasAttribute(ae.name)){if(D(ae.name,s,"remove",u))continue;s.removeAttribute(ae.name)}}w(s,u)||T(s,j,u)}(p===8||p===3)&&g.nodeValue!==d.nodeValue&&(g.nodeValue=d.nodeValue)}function T(g,d,u){if(g instanceof HTMLInputElement&&d instanceof HTMLInputElement&&d.type!=="file"){let p=d.value,s=g.value;k(g,d,"checked",u),k(g,d,"disabled",u),d.hasAttribute("value")?s!==p&&(D("value",g,"update",u)||(g.setAttribute("value",p),g.value=p)):D("value",g,"remove",u)||(g.value="",g.removeAttribute("value"))}else if(g instanceof HTMLOptionElement&&d instanceof HTMLOptionElement)k(g,d,"selected",u);else if(g instanceof HTMLTextAreaElement&&d instanceof HTMLTextAreaElement){let p=d.value,s=g.value;if(D("value",g,"update",u))return;p!==s&&(g.value=p),g.firstChild&&g.firstChild.nodeValue!==p&&(g.firstChild.nodeValue=p)}}function k(g,d,u,p){let s=d[u],j=g[u];if(s!==j){let B=D(u,g,"update",p);B||(g[u]=d[u]),s?B||g.setAttribute(u,""):D(u,g,"remove",p)||g.removeAttribute(u)}}function D(g,d,u,p){return g==="value"&&p.ignoreActiveValue&&d===document.activeElement?!0:p.callbacks.beforeAttributeUpdated(g,d,u)===!1}function w(g,d){return!!d.ignoreActiveValue&&g===document.activeElement&&g!==document.body}return L})();function f(L,M,T,k){if(L.head.block){let D=M.querySelector("head"),w=T.querySelector("head");if(D&&w){let g=y(D,w,L);return Promise.all(g).then(()=>{let d=Object.assign(L,{head:{block:!1,ignore:!0}});return k(d)})}}return k(L)}function y(L,M,T){let k=[],D=[],w=[],g=[],d=new Map;for(let p of M.children)d.set(p.outerHTML,p);for(let p of L.children){let s=d.has(p.outerHTML),j=T.head.shouldReAppend(p),B=T.head.shouldPreserve(p);s||B?j?D.push(p):(d.delete(p.outerHTML),w.push(p)):T.head.style==="append"?j&&(D.push(p),g.push(p)):T.head.shouldRemove(p)!==!1&&D.push(p)}g.push(...d.values());let u=[];for(let p of g){let s=document.createRange().createContextualFragment(p.outerHTML).firstChild;if(T.callbacks.beforeNodeAdded(s)!==!1){if("href"in s&&s.href||"src"in s&&s.src){let j,B=new Promise(function(K){j=K});s.addEventListener("load",function(){j()}),u.push(B)}L.appendChild(s),T.callbacks.afterNodeAdded(s),k.push(s)}}for(let p of D)T.callbacks.beforeNodeRemoved(p)!==!1&&(L.removeChild(p),T.callbacks.afterNodeRemoved(p));return T.head.afterHeadMorphed(L,{added:k,kept:w,removed:D}),u}let A=(function(){function L(u,p,s){let{persistentIds:j,idMap:B}=g(u,p),K=M(s),J=K.morphStyle||"outerHTML";if(!["innerHTML","outerHTML"].includes(J))throw`Do not understand how to morph style ${J}`;return{target:u,newContent:p,config:K,morphStyle:J,ignoreActive:K.ignoreActive,ignoreActiveValue:K.ignoreActiveValue,restoreFocus:K.restoreFocus,idMap:B,persistentIds:j,pantry:T(),activeElementAndParents:k(u),callbacks:K.callbacks,head:K.head}}function M(u){let p=Object.assign({},e);return Object.assign(p,u),p.callbacks=Object.assign({},e.callbacks,u.callbacks),p.head=Object.assign({},e.head,u.head),p}function T(){let u=document.createElement("div");return u.hidden=!0,document.body.insertAdjacentElement("afterend",u),u}function k(u){let p=[],s=document.activeElement;if(s?.tagName!=="BODY"&&u.contains(s))for(;s&&(p.push(s),s!==u);)s=s.parentElement;return p}function D(u){let p=Array.from(u.querySelectorAll("[id]"));return u.getAttribute?.("id")&&p.push(u),p}function w(u,p,s,j){for(let B of j){let K=B.getAttribute("id");if(p.has(K)){let J=B;for(;J;){let ae=u.get(J);if(ae==null&&(ae=new Set,u.set(J,ae)),ae.add(K),J===s)break;J=J.parentElement}}}}function g(u,p){let s=D(u),j=D(p),B=d(s,j),K=new Map;w(K,B,u,s);let J=p.__idiomorphRoot||p;return w(K,B,J,j),{persistentIds:B,idMap:K}}function d(u,p){let s=new Set,j=new Map;for(let{id:K,tagName:J}of u)j.has(K)?s.add(K):j.set(K,J);let B=new Set;for(let{id:K,tagName:J}of p)B.has(K)?s.add(K):j.get(K)===J&&B.add(K);for(let K of s)B.delete(K);return B}return L})(),{normalizeElement:S,normalizeParent:N}=(function(){let L=new WeakSet;function M(w){return w instanceof Document?w.documentElement:w}function T(w){if(w==null)return document.createElement("div");if(typeof w=="string")return T(D(w));if(L.has(w))return w;if(w instanceof Node){if(w.parentNode)return new k(w);{let g=document.createElement("div");return g.append(w),g}}else{let g=document.createElement("div");for(let d of[...w])g.append(d);return g}}class k{constructor(g){this.originalNode=g,this.realParentNode=g.parentNode,this.previousSibling=g.previousSibling,this.nextSibling=g.nextSibling}get childNodes(){let g=[],d=this.previousSibling?this.previousSibling.nextSibling:this.realParentNode.firstChild;for(;d&&d!=this.nextSibling;)g.push(d),d=d.nextSibling;return g}querySelectorAll(g){return this.childNodes.reduce((d,u)=>{if(u instanceof Element){u.matches(g)&&d.push(u);let p=u.querySelectorAll(g);for(let s=0;s<p.length;s++)d.push(p[s])}return d},[])}insertBefore(g,d){return this.realParentNode.insertBefore(g,d)}moveBefore(g,d){return this.realParentNode.moveBefore(g,d)}get __idiomorphRoot(){return this.originalNode}}function D(w){let g=new DOMParser,d=w.replace(/<svg(\s[^>]*>|>)([\s\S]*?)<\/svg>/gim,"");if(d.match(/<\/html>/)||d.match(/<\/head>/)||d.match(/<\/body>/)){let u=g.parseFromString(w,"text/html");if(d.match(/<\/html>/))return L.add(u),u;{let p=u.firstChild;return p&&L.add(p),p}}else{let p=g.parseFromString("<body><template>"+w+"</template></body>","text/html").body.querySelector("template").content;return L.add(p),p}}return{normalizeElement:M,normalizeParent:T}})();return{morph:t,defaults:e}})();function Ps(i,e,{callbacks:t,...r}={}){Ip.morph(i,e,{...r,callbacks:new sl(t)})}function Uo(i,e,t={}){Ps(i,e.childNodes,{...t,morphStyle:"innerHTML"})}function Bu(i,e){return i instanceof Ut&&i.shouldReloadWithMorph&&(!e||Rp(i,e))&&!i.closest("[data-turbo-permanent]")}function Rp(i,e){return e instanceof Element&&e.nodeName==="TURBO-FRAME"&&i.id===e.id&&(!e.getAttribute("src")||Pu(i.src,e.getAttribute("src")))}function Vu(i){return i.parentElement.closest("turbo-frame[src][refresh=morph]")}var As,sl=class{constructor({beforeNodeMorphed:e}={}){Te(this,As);Z(this,"beforeNodeAdded",e=>!(e.id&&e.hasAttribute("data-turbo-permanent")&&document.getElementById(e.id)));Z(this,"beforeNodeMorphed",(e,t)=>{if(e instanceof Element)return!e.hasAttribute("data-turbo-permanent")&&ce(this,As).call(this,e,t)?!Ve("turbo:before-morph-element",{cancelable:!0,target:e,detail:{currentElement:e,newElement:t}}).defaultPrevented:!1});Z(this,"beforeAttributeUpdated",(e,t,r)=>!Ve("turbo:before-morph-attribute",{cancelable:!0,target:t,detail:{attributeName:e,mutationType:r}}).defaultPrevented);Z(this,"beforeNodeRemoved",e=>this.beforeNodeMorphed(e));Z(this,"afterNodeMorphed",(e,t)=>{e instanceof Element&&Ve("turbo:morph-element",{target:e,detail:{currentElement:e,newElement:t}})});Fe(this,As,e||(()=>!0))}};As=new WeakMap;var Io=class extends Dr{static renderElement(e,t){Ve("turbo:before-frame-morph",{target:e,detail:{currentElement:e,newElement:t}}),Uo(e,t,{callbacks:{beforeNodeMorphed:(r,o)=>Bu(r,o)&&Vu(r)===e?(r.reload(),!1):!0}})}async preservingPermanentElements(e){return await e()}},qi=class qi{constructor(){Z(this,"hiding",!1);Z(this,"value",0);Z(this,"visible",!1);Z(this,"trickle",()=>{this.setValue(this.value+Math.random()/100)});this.stylesheetElement=this.createStylesheetElement(),this.progressElement=this.createProgressElement(),this.installStylesheetElement(),this.setValue(0)}static get defaultCSS(){return Cu`
|
|
8
|
+
.turbo-progress-bar {
|
|
9
|
+
position: fixed;
|
|
10
|
+
display: block;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
height: 3px;
|
|
14
|
+
background: #0076ff;
|
|
15
|
+
z-index: 2147483647;
|
|
16
|
+
transition:
|
|
17
|
+
width ${qi.animationDuration}ms ease-out,
|
|
18
|
+
opacity ${qi.animationDuration/2}ms ${qi.animationDuration/2}ms ease-in;
|
|
19
|
+
transform: translate3d(0, 0, 0);
|
|
20
|
+
}
|
|
21
|
+
`}show(){this.visible||(this.visible=!0,this.installProgressElement(),this.startTrickling())}hide(){this.visible&&!this.hiding&&(this.hiding=!0,this.fadeProgressElement(()=>{this.uninstallProgressElement(),this.stopTrickling(),this.visible=!1,this.hiding=!1}))}setValue(e){this.value=e,this.refresh()}installStylesheetElement(){document.head.insertBefore(this.stylesheetElement,document.head.firstChild)}installProgressElement(){this.progressElement.style.width="0",this.progressElement.style.opacity="1",document.documentElement.insertBefore(this.progressElement,document.body),this.refresh()}fadeProgressElement(e){this.progressElement.style.opacity="0",setTimeout(e,qi.animationDuration*1.5)}uninstallProgressElement(){this.progressElement.parentNode&&document.documentElement.removeChild(this.progressElement)}startTrickling(){this.trickleInterval||(this.trickleInterval=window.setInterval(this.trickle,qi.animationDuration))}stopTrickling(){window.clearInterval(this.trickleInterval),delete this.trickleInterval}refresh(){requestAnimationFrame(()=>{this.progressElement.style.width=`${10+this.value*90}%`})}createStylesheetElement(){let e=document.createElement("style");e.type="text/css",e.textContent=qi.defaultCSS;let t=Du();return t&&(e.nonce=t),e}createProgressElement(){let e=document.createElement("div");return e.className="turbo-progress-bar",e}};Z(qi,"animationDuration",300);var ol=qi,al=class extends xr{constructor(){super(...arguments);Z(this,"detailsByOuterHTML",this.children.filter(t=>!Wp(t)).map(t=>Vp(t)).reduce((t,r)=>{let{outerHTML:o}=r,l=o in t?t[o]:{type:Hp(r),tracked:Fp(r),elements:[]};return{...t,[o]:{...l,elements:[...l.elements,r]}}},{}))}get trackedElementSignature(){return Object.keys(this.detailsByOuterHTML).filter(t=>this.detailsByOuterHTML[t].tracked).join("")}getScriptElementsNotInSnapshot(t){return this.getElementsMatchingTypeNotInSnapshot("script",t)}getStylesheetElementsNotInSnapshot(t){return this.getElementsMatchingTypeNotInSnapshot("stylesheet",t)}getElementsMatchingTypeNotInSnapshot(t,r){return Object.keys(this.detailsByOuterHTML).filter(o=>!(o in r.detailsByOuterHTML)).map(o=>this.detailsByOuterHTML[o]).filter(({type:o})=>o==t).map(({elements:[o]})=>o)}get provisionalElements(){return Object.keys(this.detailsByOuterHTML).reduce((t,r)=>{let{type:o,tracked:l,elements:m}=this.detailsByOuterHTML[r];return o==null&&!l?[...t,...m]:m.length>1?[...t,...m.slice(1)]:t},[])}getMetaValue(t){let r=this.findMetaElementByName(t);return r?r.getAttribute("content"):null}findMetaElementByName(t){return Object.keys(this.detailsByOuterHTML).reduce((r,o)=>{let{elements:[l]}=this.detailsByOuterHTML[o];return Bp(l,t)?l:r},void 0|void 0)}};function Hp(i){if(jp(i))return"script";if(qp(i))return"stylesheet"}function Fp(i){return i.getAttribute("data-turbo-track")=="reload"}function jp(i){return i.localName=="script"}function Wp(i){return i.localName=="noscript"}function qp(i){let e=i.localName;return e=="style"||e=="link"&&i.getAttribute("rel")=="stylesheet"}function Bp(i,e){return i.localName=="meta"&&i.getAttribute("name")==e}function Vp(i){return i.hasAttribute("nonce")&&i.setAttribute("nonce",""),i}var Xt=class i extends xr{static fromHTMLString(e=""){return this.fromDocument(Tu(e))}static fromElement(e){return this.fromDocument(e.ownerDocument)}static fromDocument({documentElement:e,body:t,head:r}){return new this(e,t,new al(r))}constructor(e,t,r){super(t),this.documentElement=e,this.headSnapshot=r}clone(){let e=this.element.cloneNode(!0),t=this.element.querySelectorAll("select"),r=e.querySelectorAll("select");for(let[o,l]of t.entries()){let m=r[o];for(let f of m.selectedOptions)f.selected=!1;for(let f of l.selectedOptions)m.options[f.index].selected=!0}for(let o of e.querySelectorAll('input[type="password"]'))o.value="";for(let o of e.querySelectorAll("noscript"))o.remove();return new i(this.documentElement,e,this.headSnapshot)}get lang(){return this.documentElement.getAttribute("lang")}get dir(){return this.documentElement.getAttribute("dir")}get headElement(){return this.headSnapshot.element}get rootLocation(){let e=this.getSetting("root")??"/";return yt(e)}get cacheControlValue(){return this.getSetting("cache-control")}get isPreviewable(){return this.cacheControlValue!="no-preview"}get isCacheable(){return this.cacheControlValue!="no-cache"}get isVisitable(){return this.getSetting("visit-control")!="reload"}get prefersViewTransitions(){return(this.getSetting("view-transition")==="true"||this.headSnapshot.getMetaValue("view-transition")==="same-origin")&&!window.matchMedia("(prefers-reduced-motion: reduce)").matches}get refreshMethod(){return this.getSetting("refresh-method")}get refreshScroll(){return this.getSetting("refresh-scroll")}getSetting(e){return this.headSnapshot.getMetaValue(`turbo-${e}`)}},Ts,fn,ll=class{constructor(){Te(this,Ts,!1);Te(this,fn,Promise.resolve())}renderChange(e,t){return e&&this.viewTransitionsAvailable&&!ce(this,Ts)?(Fe(this,Ts,!0),Fe(this,fn,ce(this,fn).then(async()=>{await document.startViewTransition(t).finished}))):Fe(this,fn,ce(this,fn).then(t)),ce(this,fn)}get viewTransitionsAvailable(){return document.startViewTransition}};Ts=new WeakMap,fn=new WeakMap;var Up={action:"advance",historyChanged:!1,visitCachedSnapshot:()=>{},willRender:!0,updateHistory:!0,shouldCacheSnapshot:!0,acceptsStreamResponse:!1,refresh:{}},bo={visitStart:"visitStart",requestStart:"requestStart",requestEnd:"requestEnd",visitEnd:"visitEnd"},Wi={initialized:"initialized",started:"started",canceled:"canceled",failed:"failed",completed:"completed"},wr={networkFailure:0,timeoutFailure:-1,contentTypeMismatch:-2},zp={advance:"forward",restore:"back",replace:"none"},cl=class{constructor(e,t,r,o={}){Z(this,"identifier",pn());Z(this,"timingMetrics",{});Z(this,"followedRedirect",!1);Z(this,"historyChanged",!1);Z(this,"scrolled",!1);Z(this,"shouldCacheSnapshot",!0);Z(this,"acceptsStreamResponse",!1);Z(this,"snapshotCached",!1);Z(this,"state",Wi.initialized);Z(this,"viewTransitioner",new ll);this.delegate=e,this.location=t,this.restorationIdentifier=r||pn();let{action:l,historyChanged:m,referrer:f,snapshot:y,snapshotHTML:A,response:S,visitCachedSnapshot:N,willRender:L,updateHistory:M,shouldCacheSnapshot:T,acceptsStreamResponse:k,direction:D,refresh:w}={...Up,...o};this.action=l,this.historyChanged=m,this.referrer=f,this.snapshot=y,this.snapshotHTML=A,this.response=S,this.isPageRefresh=this.view.isPageRefresh(this),this.visitCachedSnapshot=N,this.willRender=L,this.updateHistory=M,this.scrolled=!L,this.shouldCacheSnapshot=T,this.acceptsStreamResponse=k,this.direction=D||zp[l],this.refresh=w}get adapter(){return this.delegate.adapter}get view(){return this.delegate.view}get history(){return this.delegate.history}get restorationData(){return this.history.getRestorationDataForIdentifier(this.restorationIdentifier)}start(){this.state==Wi.initialized&&(this.recordTimingMetric(bo.visitStart),this.state=Wi.started,this.adapter.visitStarted(this),this.delegate.visitStarted(this))}cancel(){this.state==Wi.started&&(this.request&&this.request.cancel(),this.cancelRender(),this.state=Wi.canceled)}complete(){this.state==Wi.started&&(this.recordTimingMetric(bo.visitEnd),this.adapter.visitCompleted(this),this.state=Wi.completed,this.followRedirect(),this.followedRedirect||this.delegate.visitCompleted(this))}fail(){this.state==Wi.started&&(this.state=Wi.failed,this.adapter.visitFailed(this),this.delegate.visitCompleted(this))}changeHistory(){if(!this.historyChanged&&this.updateHistory){let e=this.location.href===this.referrer?.href?"replace":this.action,t=xu(e);this.history.update(t,this.location,this.restorationIdentifier),this.historyChanged=!0}}issueRequest(){this.hasPreloadedResponse()?this.simulateRequest():this.shouldIssueRequest()&&!this.request&&(this.request=new mn(this,Vt.get,this.location),this.request.perform())}simulateRequest(){this.response&&(this.startRequest(),this.recordResponse(),this.finishRequest())}startRequest(){this.recordTimingMetric(bo.requestStart),this.adapter.visitRequestStarted(this)}recordResponse(e=this.response){if(this.response=e,e){let{statusCode:t}=e;wu(t)?this.adapter.visitRequestCompleted(this):this.adapter.visitRequestFailedWithStatusCode(this,t)}}finishRequest(){this.recordTimingMetric(bo.requestEnd),this.adapter.visitRequestFinished(this)}loadResponse(){if(this.response){let{statusCode:e,responseHTML:t}=this.response;this.render(async()=>{if(this.shouldCacheSnapshot&&this.cacheSnapshot(),this.view.renderPromise&&await this.view.renderPromise,wu(e)&&t!=null){let r=Xt.fromHTMLString(t);await this.renderPageSnapshot(r,!1),this.adapter.visitRendered(this),this.complete()}else await this.view.renderError(Xt.fromHTMLString(t),this),this.adapter.visitRendered(this),this.fail()})}}getCachedSnapshot(){let e=this.view.getCachedSnapshotForLocation(this.location)||this.getPreloadedSnapshot();if(e&&(!gs(this.location)||e.hasAnchor(gs(this.location)))&&(this.action=="restore"||e.isPreviewable))return e}getPreloadedSnapshot(){if(this.snapshotHTML)return Xt.fromHTMLString(this.snapshotHTML)}hasCachedSnapshot(){return this.getCachedSnapshot()!=null}loadCachedSnapshot(){let e=this.getCachedSnapshot();if(e){let t=this.shouldIssueRequest();this.render(async()=>{this.cacheSnapshot(),this.isPageRefresh?this.adapter.visitRendered(this):(this.view.renderPromise&&await this.view.renderPromise,await this.renderPageSnapshot(e,t),this.adapter.visitRendered(this),t||this.complete())})}}followRedirect(){this.redirectedToLocation&&!this.followedRedirect&&this.response?.redirected&&(this.adapter.visitProposedToLocation(this.redirectedToLocation,{action:"replace",response:this.response,shouldCacheSnapshot:!1,willRender:!1}),this.followedRedirect=!0)}prepareRequest(e){this.acceptsStreamResponse&&e.acceptResponseType(Ui.contentType)}requestStarted(){this.startRequest()}requestPreventedHandlingResponse(e,t){}async requestSucceededWithResponse(e,t){let r=await t.responseHTML,{redirected:o,statusCode:l}=t;r==null?this.recordResponse({statusCode:wr.contentTypeMismatch,redirected:o}):(this.redirectedToLocation=t.redirected?t.location:void 0,this.recordResponse({statusCode:l,responseHTML:r,redirected:o}))}async requestFailedWithResponse(e,t){let r=await t.responseHTML,{redirected:o,statusCode:l}=t;r==null?this.recordResponse({statusCode:wr.contentTypeMismatch,redirected:o}):this.recordResponse({statusCode:l,responseHTML:r,redirected:o})}requestErrored(e,t){this.recordResponse({statusCode:wr.networkFailure,redirected:!1})}requestFinished(){this.finishRequest()}performScroll(){!this.scrolled&&!this.view.forceReloaded&&!this.view.shouldPreserveScrollPosition(this)&&(this.action=="restore"?this.scrollToRestoredPosition()||this.scrollToAnchor()||this.view.scrollToTop():this.scrollToAnchor()||this.view.scrollToTop(),this.scrolled=!0)}scrollToRestoredPosition(){let{scrollPosition:e}=this.restorationData;if(e)return this.view.scrollToPosition(e),!0}scrollToAnchor(){let e=gs(this.location);if(e!=null)return this.view.scrollToAnchor(e),!0}recordTimingMetric(e){this.timingMetrics[e]=new Date().getTime()}getTimingMetrics(){return{...this.timingMetrics}}hasPreloadedResponse(){return typeof this.response=="object"}shouldIssueRequest(){return this.action=="restore"?!this.hasCachedSnapshot():this.willRender}cacheSnapshot(){this.snapshotCached||(this.view.cacheSnapshot(this.snapshot).then(e=>e&&this.visitCachedSnapshot(e)),this.snapshotCached=!0)}async render(e){this.cancelRender(),await new Promise(t=>{this.frame=document.visibilityState==="hidden"?setTimeout(()=>t(),0):requestAnimationFrame(()=>t())}),await e(),delete this.frame}async renderPageSnapshot(e,t){await this.viewTransitioner.renderChange(this.view.shouldTransitionTo(e),async()=>{await this.view.renderPage(e,t,this.willRender,this),this.performScroll()})}cancelRender(){this.frame&&(cancelAnimationFrame(this.frame),delete this.frame)}};function wu(i){return i>=200&&i<300}var ul=class{constructor(e){Z(this,"progressBar",new ol);Z(this,"showProgressBar",()=>{this.progressBar.show()});this.session=e}visitProposedToLocation(e,t){ln(e,this.navigator.rootLocation)?this.navigator.startVisit(e,t?.restorationIdentifier||pn(),t):window.location.href=e.toString()}visitStarted(e){this.location=e.location,this.redirectedToLocation=null,e.loadCachedSnapshot(),e.issueRequest()}visitRequestStarted(e){this.progressBar.setValue(0),e.hasCachedSnapshot()||e.action!="restore"?this.showVisitProgressBarAfterDelay():this.showProgressBar()}visitRequestCompleted(e){e.loadResponse(),e.response.redirected&&(this.redirectedToLocation=e.redirectedToLocation)}visitRequestFailedWithStatusCode(e,t){switch(t){case wr.networkFailure:case wr.timeoutFailure:case wr.contentTypeMismatch:return this.reload({reason:"request_failed",context:{statusCode:t}});default:return e.loadResponse()}}visitRequestFinished(e){}visitCompleted(e){this.progressBar.setValue(1),this.hideVisitProgressBar()}pageInvalidated(e){this.reload(e)}visitFailed(e){this.progressBar.setValue(1),this.hideVisitProgressBar()}visitRendered(e){}linkPrefetchingIsEnabledForLocation(e){return!0}formSubmissionStarted(e){this.progressBar.setValue(0),this.showFormProgressBarAfterDelay()}formSubmissionFinished(e){this.progressBar.setValue(1),this.hideFormProgressBar()}showVisitProgressBarAfterDelay(){this.visitProgressBarTimeout=window.setTimeout(this.showProgressBar,this.session.progressBarDelay)}hideVisitProgressBar(){this.progressBar.hide(),this.visitProgressBarTimeout!=null&&(window.clearTimeout(this.visitProgressBarTimeout),delete this.visitProgressBarTimeout)}showFormProgressBarAfterDelay(){this.formProgressBarTimeout==null&&(this.formProgressBarTimeout=window.setTimeout(this.showProgressBar,this.session.progressBarDelay))}hideFormProgressBar(){this.progressBar.hide(),this.formProgressBarTimeout!=null&&(window.clearTimeout(this.formProgressBarTimeout),delete this.formProgressBarTimeout)}reload(e){Ve("turbo:reload",{detail:e}),window.location.href=(this.redirectedToLocation||this.location)?.toString()||window.location.href}get navigator(){return this.session.navigator}},fl=class{constructor(){Z(this,"selector","[data-turbo-temporary]");Z(this,"started",!1);Z(this,"removeTemporaryElements",e=>{for(let t of this.temporaryElements)t.remove()})}start(){this.started||(this.started=!0,addEventListener("turbo:before-cache",this.removeTemporaryElements,!1))}stop(){this.started&&(this.started=!1,removeEventListener("turbo:before-cache",this.removeTemporaryElements,!1))}get temporaryElements(){return[...document.querySelectorAll(this.selector)]}},Qt,Uu,wo,_o,dl=class{constructor(e,t){Te(this,Qt);this.session=e,this.element=t,this.linkInterceptor=new Oo(this,t),this.formSubmitObserver=new bs(this,t)}start(){this.linkInterceptor.start(),this.formSubmitObserver.start()}stop(){this.linkInterceptor.stop(),this.formSubmitObserver.stop()}shouldInterceptLinkClick(e,t,r){return pe(this,Qt,wo).call(this,e)}linkClickIntercepted(e,t,r){let o=pe(this,Qt,_o).call(this,e);o&&o.delegate.linkClickIntercepted(e,t,r)}willSubmitForm(e,t){return e.closest("turbo-frame")==null&&pe(this,Qt,Uu).call(this,e,t)&&pe(this,Qt,wo).call(this,e,t)}formSubmitted(e,t){let r=pe(this,Qt,_o).call(this,e,t);r&&r.delegate.formSubmitted(e,t)}};Qt=new WeakSet,Uu=function(e,t){let r=Ll(e,t),o=this.element.ownerDocument.querySelector('meta[name="turbo-root"]'),l=yt(o?.content??"/");return pe(this,Qt,wo).call(this,e,t)&&ln(r,l)},wo=function(e,t){if(e instanceof HTMLFormElement?this.session.submissionIsNavigatable(e,t):this.session.elementIsNavigatable(e)){let o=pe(this,Qt,_o).call(this,e,t);return o?o!=e.closest("turbo-frame"):!1}else return!1},_o=function(e,t){let r=t?.getAttribute("data-turbo-frame")||e.getAttribute("data-turbo-frame");if(r&&r!="_top"){let o=this.element.querySelector(`#${r}:not([disabled])`);if(o instanceof Ut)return o}};var hl=class{constructor(e){Z(this,"location");Z(this,"restorationIdentifier",pn());Z(this,"restorationData",{});Z(this,"started",!1);Z(this,"currentIndex",0);Z(this,"onPopState",e=>{let{turbo:t}=e.state||{};if(this.location=new URL(window.location.href),t){let{restorationIdentifier:r,restorationIndex:o}=t;this.restorationIdentifier=r;let l=o>this.currentIndex?"forward":"back";this.delegate.historyPoppedToLocationWithRestorationIdentifierAndDirection(this.location,r,l),this.currentIndex=o}else this.currentIndex++,this.delegate.historyPoppedWithEmptyState(this.location)});this.delegate=e}start(){this.started||(addEventListener("popstate",this.onPopState,!1),this.currentIndex=history.state?.turbo?.restorationIndex||0,this.started=!0,this.replace(new URL(window.location.href)))}stop(){this.started&&(removeEventListener("popstate",this.onPopState,!1),this.started=!1)}push(e,t){this.update(history.pushState,e,t)}replace(e,t){this.update(history.replaceState,e,t)}update(e,t,r=pn()){e===history.pushState&&++this.currentIndex;let o={turbo:{restorationIdentifier:r,restorationIndex:this.currentIndex}};e.call(history,o,"",t.href),this.location=t,this.restorationIdentifier=r}getRestorationDataForIdentifier(e){return this.restorationData[e]||{}}updateRestorationData(e){let{restorationIdentifier:t}=this,r=this.restorationData[t];this.restorationData[t]={...r,...e}}assumeControlOfScrollRestoration(){this.previousScrollRestoration||(this.previousScrollRestoration=history.scrollRestoration??"auto",history.scrollRestoration="manual")}relinquishControlOfScrollRestoration(){this.previousScrollRestoration&&(history.scrollRestoration=this.previousScrollRestoration,delete this.previousScrollRestoration)}},Er,Cs,xs,Ds,Wo,ks,Or,zu,Yu,pl=class{constructor(e,t){Te(this,Or);Z(this,"started",!1);Te(this,Er,null);Te(this,Cs,()=>{this.eventTarget.addEventListener("mouseenter",ce(this,xs),{capture:!0,passive:!0}),this.eventTarget.addEventListener("mouseleave",ce(this,Ds),{capture:!0,passive:!0}),this.eventTarget.addEventListener("turbo:before-fetch-request",ce(this,ks),!0),this.started=!0});Te(this,xs,e=>{if(xo("turbo-prefetch")==="false")return;let t=e.target;if(t.matches&&t.matches("a[href]:not([target^=_]):not([download])")&&pe(this,Or,Yu).call(this,t)){let o=t,l=Lu(o);if(this.delegate.canPrefetchRequestToLocation(o,l)){Fe(this,Er,o);let m=new mn(this,Vt.get,l,new URLSearchParams,t);m.fetchOptions.priority="low",br.putLater(l,m,ce(this,Or,zu))}}});Te(this,Ds,e=>{e.target===ce(this,Er)&&ce(this,Wo).call(this)});Te(this,Wo,()=>{br.clear(),Fe(this,Er,null)});Te(this,ks,e=>{if(e.target.tagName!=="FORM"&&e.detail.fetchOptions.method==="GET"){let t=br.get(e.detail.url);t&&(e.detail.fetchRequest=t),br.clear()}});this.delegate=e,this.eventTarget=t}start(){this.started||(this.eventTarget.readyState==="loading"?this.eventTarget.addEventListener("DOMContentLoaded",ce(this,Cs),{once:!0}):ce(this,Cs).call(this))}stop(){this.started&&(this.eventTarget.removeEventListener("mouseenter",ce(this,xs),{capture:!0,passive:!0}),this.eventTarget.removeEventListener("mouseleave",ce(this,Ds),{capture:!0,passive:!0}),this.eventTarget.removeEventListener("turbo:before-fetch-request",ce(this,ks),!0),this.started=!1)}prepareRequest(e){let t=e.target;e.headers["X-Sec-Purpose"]="prefetch";let r=t.closest("turbo-frame"),o=t.getAttribute("data-turbo-frame")||r?.getAttribute("target")||r?.id;o&&o!=="_top"&&(e.headers["Turbo-Frame"]=o)}requestSucceededWithResponse(){}requestStarted(e){}requestErrored(e){}requestFinished(e){}requestPreventedHandlingResponse(e,t){}requestFailedWithResponse(e,t){}};Er=new WeakMap,Cs=new WeakMap,xs=new WeakMap,Ds=new WeakMap,Wo=new WeakMap,ks=new WeakMap,Or=new WeakSet,zu=function(){return Number(xo("turbo-prefetch-cache-time"))||ju},Yu=function(e){return!(!e.getAttribute("href")||Yp(e)||Kp(e)||Jp(e)||Gp(e)||Qp(e))};var Yp=i=>i.origin!==document.location.origin||!["http:","https:"].includes(i.protocol)||i.hasAttribute("target"),Kp=i=>i.pathname+i.search===document.location.pathname+document.location.search||i.href.startsWith("#"),Jp=i=>{if(i.getAttribute("data-turbo-prefetch")==="false"||i.getAttribute("data-turbo")==="false")return!0;let e=yr(i,"[data-turbo-prefetch]");return!!(e&&e.getAttribute("data-turbo-prefetch")==="false")},Gp=i=>{let e=i.getAttribute("data-turbo-method");return!!(e&&e.toLowerCase()!=="get"||Xp(i)||i.hasAttribute("data-turbo-confirm")||i.hasAttribute("data-turbo-stream"))},Xp=i=>i.hasAttribute("data-remote")||i.hasAttribute("data-behavior")||i.hasAttribute("data-confirm")||i.hasAttribute("data-method"),Qp=i=>Ve("turbo:before-prefetch",{target:i,cancelable:!0}).defaultPrevented,Lr,Ku,Ju,ml=class{constructor(e){Te(this,Lr);this.delegate=e}proposeVisit(e,t={}){this.delegate.allowsVisitingLocationWithAction(e,t.action)&&this.delegate.visitProposedToLocation(e,t)}startVisit(e,t,r={}){this.stop(),this.currentVisit=new cl(this,yt(e),t,{referrer:this.location,...r}),this.currentVisit.start()}submitForm(e,t){this.stop(),this.formSubmission=new ko(this,e,t,!0),this.formSubmission.start()}stop(){this.formSubmission&&(this.formSubmission.stop(),delete this.formSubmission),this.currentVisit&&(this.currentVisit.cancel(),delete this.currentVisit)}get adapter(){return this.delegate.adapter}get view(){return this.delegate.view}get rootLocation(){return this.view.snapshot.rootLocation}get history(){return this.delegate.history}formSubmissionStarted(e){typeof this.adapter.formSubmissionStarted=="function"&&this.adapter.formSubmissionStarted(e)}async formSubmissionSucceededWithResponse(e,t){if(e==this.formSubmission){let r=await t.responseHTML;if(r){let o=e.isSafe;o||this.view.clearSnapshotCache();let{statusCode:l,redirected:m}=t,y={action:pe(this,Lr,Ku).call(this,e,t),shouldCacheSnapshot:o,response:{statusCode:l,responseHTML:r,redirected:m}};this.proposeVisit(t.location,y)}}}async formSubmissionFailedWithResponse(e,t){let r=await t.responseHTML;if(r){let o=Xt.fromHTMLString(r);t.serverError?await this.view.renderError(o,this.currentVisit):await this.view.renderPage(o,!1,!0,this.currentVisit),o.refreshScroll!=="preserve"&&this.view.scrollToTop(),this.view.clearSnapshotCache()}}formSubmissionErrored(e,t){console.error(t)}formSubmissionFinished(e){typeof this.adapter.formSubmissionFinished=="function"&&this.adapter.formSubmissionFinished(e)}linkPrefetchingIsEnabledForLocation(e){return typeof this.adapter.linkPrefetchingIsEnabledForLocation=="function"?this.adapter.linkPrefetchingIsEnabledForLocation(e):!0}visitStarted(e){this.delegate.visitStarted(e)}visitCompleted(e){this.delegate.visitCompleted(e),delete this.currentVisit}locationWithActionIsSamePage(e,t){return!1}get location(){return this.history.location}get restorationIdentifier(){return this.history.restorationIdentifier}};Lr=new WeakSet,Ku=function(e,t){let{submitter:r,formElement:o}=e;return Yn(r,o)||pe(this,Lr,Ju).call(this,t)},Ju=function(e){return e.redirected&&e.location.href===this.location?.href?"replace":"advance"};var qn={initial:0,loading:1,interactive:2,complete:3},gl=class{constructor(e){Z(this,"stage",qn.initial);Z(this,"started",!1);Z(this,"interpretReadyState",()=>{let{readyState:e}=this;e=="interactive"?this.pageIsInteractive():e=="complete"&&this.pageIsComplete()});Z(this,"pageWillUnload",()=>{this.delegate.pageWillUnload()});this.delegate=e}start(){this.started||(this.stage==qn.initial&&(this.stage=qn.loading),document.addEventListener("readystatechange",this.interpretReadyState,!1),addEventListener("pagehide",this.pageWillUnload,!1),this.started=!0)}stop(){this.started&&(document.removeEventListener("readystatechange",this.interpretReadyState,!1),removeEventListener("pagehide",this.pageWillUnload,!1),this.started=!1)}pageIsInteractive(){this.stage==qn.loading&&(this.stage=qn.interactive,this.delegate.pageBecameInteractive())}pageIsComplete(){this.pageIsInteractive(),this.stage==qn.interactive&&(this.stage=qn.complete,this.delegate.pageLoaded())}get readyState(){return document.readyState}},vl=class{constructor(e){Z(this,"started",!1);Z(this,"onScroll",()=>{this.updatePosition({x:window.pageXOffset,y:window.pageYOffset})});this.delegate=e}start(){this.started||(addEventListener("scroll",this.onScroll,!1),this.onScroll(),this.started=!0)}stop(){this.started&&(removeEventListener("scroll",this.onScroll,!1),this.started=!1)}updatePosition(e){this.delegate.scrollPositionChanged(e)}},bl=class{render({fragment:e}){No.preservingPermanentElements(this,Zp(e),()=>{$p(e,()=>{em(()=>{document.documentElement.appendChild(e)})})})}enteringBardo(e,t){t.replaceWith(e.cloneNode(!0))}leavingBardo(){}};function Zp(i){let e=qu(document.documentElement),t={};for(let r of e){let{id:o}=r;for(let l of i.querySelectorAll("turbo-stream")){let m=Wu(l.templateElement.content,o);m&&(t[o]=[r,m])}}return t}async function $p(i,e){let t=`turbo-stream-autofocus-${pn()}`,r=i.querySelectorAll("turbo-stream"),o=tm(r),l=null;if(o&&(o.id?l=o.id:l=t,o.id=l),e(),await ms(),(document.activeElement==null||document.activeElement==document.body)&&l){let f=document.getElementById(l);Ol(f)&&f.focus(),f&&f.id==t&&f.removeAttribute("id")}}async function em(i){let[e,t]=await up(i,()=>document.activeElement),r=e&&e.id;if(r){let o=document.getElementById(r);Ol(o)&&o!=t&&o.focus()}}function tm(i){for(let e of i){let t=ku(e.templateElement.content);if(t)return t}return null}var dn,yl=class{constructor(e){Z(this,"sources",new Set);Te(this,dn,!1);Z(this,"inspectFetchResponse",e=>{let t=im(e);t&&nm(t)&&(e.preventDefault(),this.receiveMessageResponse(t))});Z(this,"receiveMessageEvent",e=>{ce(this,dn)&&typeof e.data=="string"&&this.receiveMessageHTML(e.data)});this.delegate=e}start(){ce(this,dn)||(Fe(this,dn,!0),addEventListener("turbo:before-fetch-response",this.inspectFetchResponse,!1))}stop(){ce(this,dn)&&(Fe(this,dn,!1),removeEventListener("turbo:before-fetch-response",this.inspectFetchResponse,!1))}connectStreamSource(e){this.streamSourceIsConnected(e)||(this.sources.add(e),e.addEventListener("message",this.receiveMessageEvent,!1))}disconnectStreamSource(e){this.streamSourceIsConnected(e)&&(this.sources.delete(e),e.removeEventListener("message",this.receiveMessageEvent,!1))}streamSourceIsConnected(e){return this.sources.has(e)}async receiveMessageResponse(e){let t=await e.responseHTML;t&&this.receiveMessageHTML(t)}receiveMessageHTML(e){this.delegate.receivedMessageFromStream(Ui.wrap(e))}};dn=new WeakMap;function im(i){let e=i.detail?.fetchResponse;if(e instanceof Cr)return e}function nm(i){return(i.contentType??"").startsWith(Ui.contentType)}var wl=class extends ys{static renderElement(e,t){let{documentElement:r,body:o}=document;r.replaceChild(t,o)}async render(){this.replaceHeadAndBody(),this.activateScriptElements()}replaceHeadAndBody(){let{documentElement:e,head:t}=document;e.replaceChild(this.newHead,t),this.renderElement(this.currentElement,this.newElement)}activateScriptElements(){for(let e of this.scriptElements){let t=e.parentNode;if(t){let r=vs(e);t.replaceChild(r,e)}}}get newHead(){return this.newSnapshot.headSnapshot.element}get scriptElements(){return document.documentElement.querySelectorAll("script")}},qo,Gu,kr=class extends ys{constructor(){super(...arguments);Te(this,qo)}static renderElement(t,r){document.body&&r instanceof HTMLBodyElement?document.body.replaceWith(r):document.documentElement.appendChild(r)}get shouldRender(){return this.newSnapshot.isVisitable&&this.trackedElementsAreIdentical}get reloadReason(){if(!this.newSnapshot.isVisitable)return{reason:"turbo_visit_control_is_reload"};if(!this.trackedElementsAreIdentical)return{reason:"tracked_element_mismatch"}}async prepareToRender(){pe(this,qo,Gu).call(this),await this.mergeHead()}async render(){this.willRender&&await this.replaceBody()}finishRendering(){super.finishRendering(),this.isPreview||this.focusFirstAutofocusableElement()}get currentHeadSnapshot(){return this.currentSnapshot.headSnapshot}get newHeadSnapshot(){return this.newSnapshot.headSnapshot}get newElement(){return this.newSnapshot.element}async mergeHead(){let t=this.mergeProvisionalElements(),r=this.copyNewHeadStylesheetElements();this.copyNewHeadScriptElements(),await t,await r,this.willRender&&this.removeUnusedDynamicStylesheetElements()}async replaceBody(){await this.preservingPermanentElements(async()=>{this.activateNewBody(),await this.assignNewBody()})}get trackedElementsAreIdentical(){return this.currentHeadSnapshot.trackedElementSignature==this.newHeadSnapshot.trackedElementSignature}async copyNewHeadStylesheetElements(){let t=[];for(let r of this.newHeadStylesheetElements)t.push(ap(r)),document.head.appendChild(r);await Promise.all(t)}copyNewHeadScriptElements(){for(let t of this.newHeadScriptElements)document.head.appendChild(vs(t))}removeUnusedDynamicStylesheetElements(){for(let t of this.unusedDynamicStylesheetElements)document.head.removeChild(t)}async mergeProvisionalElements(){let t=[...this.newHeadProvisionalElements];for(let r of this.currentHeadProvisionalElements)this.isCurrentElementInElementList(r,t)||document.head.removeChild(r);for(let r of t)document.head.appendChild(r)}isCurrentElementInElementList(t,r){for(let[o,l]of r.entries()){if(t.tagName=="TITLE"){if(l.tagName!="TITLE")continue;if(t.innerHTML==l.innerHTML)return r.splice(o,1),!0}if(l.isEqualNode(t))return r.splice(o,1),!0}return!1}removeCurrentHeadProvisionalElements(){for(let t of this.currentHeadProvisionalElements)document.head.removeChild(t)}copyNewHeadProvisionalElements(){for(let t of this.newHeadProvisionalElements)document.head.appendChild(t)}activateNewBody(){document.adoptNode(this.newElement),this.removeNoscriptElements(),this.activateNewBodyScriptElements()}removeNoscriptElements(){for(let t of this.newElement.querySelectorAll("noscript"))t.remove()}activateNewBodyScriptElements(){for(let t of this.newBodyScriptElements){let r=vs(t);t.replaceWith(r)}}async assignNewBody(){await this.renderElement(this.currentElement,this.newElement)}get unusedDynamicStylesheetElements(){return this.oldHeadStylesheetElements.filter(t=>t.getAttribute("data-turbo-track")==="dynamic")}get oldHeadStylesheetElements(){return this.currentHeadSnapshot.getStylesheetElementsNotInSnapshot(this.newHeadSnapshot)}get newHeadStylesheetElements(){return this.newHeadSnapshot.getStylesheetElementsNotInSnapshot(this.currentHeadSnapshot)}get newHeadScriptElements(){return this.newHeadSnapshot.getScriptElementsNotInSnapshot(this.currentHeadSnapshot)}get currentHeadProvisionalElements(){return this.currentHeadSnapshot.provisionalElements}get newHeadProvisionalElements(){return this.newHeadSnapshot.provisionalElements}get newBodyScriptElements(){return this.newElement.querySelectorAll("script")}};qo=new WeakSet,Gu=function(){let{documentElement:t}=this.currentSnapshot,{dir:r,lang:o}=this.newSnapshot;o?t.setAttribute("lang",o):t.removeAttribute("lang"),r?t.setAttribute("dir",r):t.removeAttribute("dir")};var Ro=class extends kr{static renderElement(e,t){Ps(e,t,{callbacks:{beforeNodeMorphed:(r,o)=>Bu(r,o)&&!Vu(r)?(r.reload(),!1):!0}}),Ve("turbo:morph",{detail:{currentElement:e,newElement:t}})}async preservingPermanentElements(e){return await e()}get renderMethod(){return"morph"}get shouldAutofocus(){return!1}},_l=class extends Do{constructor(e){super(e,yo)}get snapshots(){return this.entries}},El=class extends Mo{constructor(){super(...arguments);Z(this,"snapshotCache",new _l(10));Z(this,"lastRenderedLocation",new URL(location.href));Z(this,"forceReloaded",!1)}shouldTransitionTo(t){return this.snapshot.prefersViewTransitions&&t.prefersViewTransitions}renderPage(t,r=!1,o=!0,l){let f=this.isPageRefresh(l)&&(l?.refresh?.method||this.snapshot.refreshMethod)==="morph"?Ro:kr,y=new f(this.snapshot,t,r,o);return y.shouldRender?l?.changeHistory():this.forceReloaded=!0,this.render(y)}renderError(t,r){r?.changeHistory();let o=new wl(this.snapshot,t,!1);return this.render(o)}clearSnapshotCache(){this.snapshotCache.clear()}async cacheSnapshot(t=this.snapshot){if(t.isCacheable){this.delegate.viewWillCacheSnapshot();let{lastRenderedLocation:r}=this;await Au();let o=t.clone();return this.snapshotCache.put(r,o),o}}getCachedSnapshotForLocation(t){return this.snapshotCache.get(t)}isPageRefresh(t){return!t||this.lastRenderedLocation.pathname===t.location.pathname&&t.action==="replace"}shouldPreserveScrollPosition(t){return this.isPageRefresh(t)&&(t?.refresh?.scroll||this.snapshot.refreshScroll)==="preserve"}get snapshot(){return Xt.fromElement(this.element)}},Ms,Sl=class{constructor(e,t){Z(this,"selector","a[data-turbo-preload]");Te(this,Ms,()=>{this.preloadOnLoadLinksForView(document.body)});this.delegate=e,this.snapshotCache=t}start(){document.readyState==="loading"?document.addEventListener("DOMContentLoaded",ce(this,Ms)):this.preloadOnLoadLinksForView(document.body)}stop(){document.removeEventListener("DOMContentLoaded",ce(this,Ms))}preloadOnLoadLinksForView(e){for(let t of e.querySelectorAll(this.selector))this.delegate.shouldPreloadLink(t)&&this.preloadURL(t)}async preloadURL(e){let t=new URL(e.href);if(this.snapshotCache.has(t))return;await new mn(this,Vt.get,t,new URLSearchParams,e).perform()}prepareRequest(e){e.headers["X-Sec-Purpose"]="prefetch"}async requestSucceededWithResponse(e,t){try{let r=await t.responseHTML,o=Xt.fromHTMLString(r);this.snapshotCache.put(e.url,o)}catch{}}requestStarted(e){}requestErrored(e){}requestFinished(e){}requestPreventedHandlingResponse(e,t){}requestFailedWithResponse(e,t){}};Ms=new WeakMap;var Sr,Eo,Al=class{constructor(e){Te(this,Sr);this.session=e}clear(){this.session.clearCache()}resetCacheControl(){pe(this,Sr,Eo).call(this,"")}exemptPageFromCache(){pe(this,Sr,Eo).call(this,"no-cache")}exemptPageFromPreview(){pe(this,Sr,Eo).call(this,"no-preview")}};Sr=new WeakSet,Eo=function(e){cp("turbo-cache-control",e)};var Os,Tl=class{constructor(e){Z(this,"navigator",new ml(this));Z(this,"history",new hl(this));Z(this,"view",new El(this,document.documentElement));Z(this,"adapter",new ul(this));Z(this,"pageObserver",new gl(this));Z(this,"cacheObserver",new fl);Z(this,"linkPrefetchObserver",new pl(this,document));Z(this,"linkClickObserver",new Lo(this,window));Z(this,"formSubmitObserver",new bs(this,document));Z(this,"scrollObserver",new vl(this));Z(this,"streamObserver",new yl(this));Z(this,"formLinkClickObserver",new Po(this,document.documentElement));Z(this,"frameRedirector",new dl(this,document.documentElement));Z(this,"streamMessageRenderer",new bl);Z(this,"cache",new Al(this));Z(this,"enabled",!0);Z(this,"started",!1);Te(this,Os,150);this.recentRequests=e,this.preloader=new Sl(this,this.view.snapshotCache),this.debouncedRefresh=this.refresh,this.pageRefreshDebouncePeriod=this.pageRefreshDebouncePeriod}start(){this.started||(this.pageObserver.start(),this.cacheObserver.start(),this.linkPrefetchObserver.start(),this.formLinkClickObserver.start(),this.linkClickObserver.start(),this.formSubmitObserver.start(),this.scrollObserver.start(),this.streamObserver.start(),this.frameRedirector.start(),this.history.start(),this.preloader.start(),this.started=!0,this.enabled=!0)}disable(){this.enabled=!1}stop(){this.started&&(this.pageObserver.stop(),this.cacheObserver.stop(),this.linkPrefetchObserver.stop(),this.formLinkClickObserver.stop(),this.linkClickObserver.stop(),this.formSubmitObserver.stop(),this.scrollObserver.stop(),this.streamObserver.stop(),this.frameRedirector.stop(),this.history.stop(),this.preloader.stop(),this.started=!1)}registerAdapter(e){this.adapter=e}visit(e,t={}){let r=t.frame?document.getElementById(t.frame):null;if(r instanceof Ut){let o=t.action||Yn(r);r.delegate.proposeVisitIfNavigatedWithAction(r,o),r.src=e.toString()}else this.navigator.proposeVisit(yt(e),t)}refresh(e,t={}){t=typeof t=="string"?{requestId:t}:t;let{method:r,requestId:o,scroll:l}=t,m=o&&this.recentRequests.has(o),f=e===document.baseURI;!m&&!this.navigator.currentVisit&&f&&this.visit(e,{action:"replace",shouldCacheSnapshot:!1,refresh:{method:r,scroll:l}})}connectStreamSource(e){this.streamObserver.connectStreamSource(e)}disconnectStreamSource(e){this.streamObserver.disconnectStreamSource(e)}renderStreamMessage(e){this.streamMessageRenderer.render(Ui.wrap(e))}clearCache(){this.view.clearSnapshotCache()}setProgressBarDelay(e){console.warn("Please replace `session.setProgressBarDelay(delay)` with `session.progressBarDelay = delay`. The function is deprecated and will be removed in a future version of Turbo.`"),this.progressBarDelay=e}set progressBarDelay(e){at.drive.progressBarDelay=e}get progressBarDelay(){return at.drive.progressBarDelay}set drive(e){at.drive.enabled=e}get drive(){return at.drive.enabled}set formMode(e){at.forms.mode=e}get formMode(){return at.forms.mode}get location(){return this.history.location}get restorationIdentifier(){return this.history.restorationIdentifier}get pageRefreshDebouncePeriod(){return ce(this,Os)}set pageRefreshDebouncePeriod(e){this.refresh=fp(this.debouncedRefresh.bind(this),e),Fe(this,Os,e)}shouldPreloadLink(e){let t=e.hasAttribute("data-turbo-method"),r=e.hasAttribute("data-turbo-stream"),o=e.getAttribute("data-turbo-frame"),l=o=="_top"?null:document.getElementById(o)||yr(e,"turbo-frame:not([disabled])");if(t||r||l instanceof Ut)return!1;{let m=new URL(e.href);return this.elementIsNavigatable(e)&&ln(m,this.snapshot.rootLocation)}}historyPoppedToLocationWithRestorationIdentifierAndDirection(e,t,r){this.enabled?this.navigator.startVisit(e,t,{action:"restore",historyChanged:!0,direction:r}):this.adapter.pageInvalidated({reason:"turbo_disabled"})}historyPoppedWithEmptyState(e){this.history.replace(e),this.view.lastRenderedLocation=e,this.view.cacheSnapshot()}scrollPositionChanged(e){this.history.updateRestorationData({scrollPosition:e})}willSubmitFormLinkToLocation(e,t){return this.elementIsNavigatable(e)&&ln(t,this.snapshot.rootLocation)}submittedFormLinkToLocation(){}canPrefetchRequestToLocation(e,t){return this.elementIsNavigatable(e)&&ln(t,this.snapshot.rootLocation)&&this.navigator.linkPrefetchingIsEnabledForLocation(t)}willFollowLinkToLocation(e,t,r){return this.elementIsNavigatable(e)&&ln(t,this.snapshot.rootLocation)&&this.applicationAllowsFollowingLinkToLocation(e,t,r)}followedLinkToLocation(e,t){let r=this.getActionForLink(e),o=e.hasAttribute("data-turbo-stream");this.visit(t.href,{action:r,acceptsStreamResponse:o})}allowsVisitingLocationWithAction(e,t){return this.applicationAllowsVisitingLocation(e)}visitProposedToLocation(e,t){_u(e),this.adapter.visitProposedToLocation(e,t)}visitStarted(e){e.acceptsStreamResponse||(To(document.documentElement),this.view.markVisitDirection(e.direction)),_u(e.location),this.notifyApplicationAfterVisitingLocation(e.location,e.action)}visitCompleted(e){this.view.unmarkVisitDirection(),Co(document.documentElement),this.notifyApplicationAfterPageLoad(e.getTimingMetrics())}willSubmitForm(e,t){let r=Ll(e,t);return this.submissionIsNavigatable(e,t)&&ln(yt(r),this.snapshot.rootLocation)}formSubmitted(e,t){this.navigator.submitForm(e,t)}pageBecameInteractive(){this.view.lastRenderedLocation=this.location,this.notifyApplicationAfterPageLoad()}pageLoaded(){this.history.assumeControlOfScrollRestoration()}pageWillUnload(){this.history.relinquishControlOfScrollRestoration()}receivedMessageFromStream(e){this.renderStreamMessage(e)}viewWillCacheSnapshot(){this.notifyApplicationBeforeCachingSnapshot()}allowsImmediateRender({element:e},t){let r=this.notifyApplicationBeforeRender(e,t),{defaultPrevented:o,detail:{render:l}}=r;return this.view.renderer&&l&&(this.view.renderer.renderElement=l),!o}viewRenderedSnapshot(e,t,r){this.view.lastRenderedLocation=this.history.location,this.notifyApplicationAfterRender(r)}preloadOnLoadLinksForView(e){this.preloader.preloadOnLoadLinksForView(e)}viewInvalidated(e){this.adapter.pageInvalidated(e)}frameLoaded(e){this.notifyApplicationAfterFrameLoad(e)}frameRendered(e,t){this.notifyApplicationAfterFrameRender(e,t)}applicationAllowsFollowingLinkToLocation(e,t,r){return!this.notifyApplicationAfterClickingLinkToLocation(e,t,r).defaultPrevented}applicationAllowsVisitingLocation(e){return!this.notifyApplicationBeforeVisitingLocation(e).defaultPrevented}notifyApplicationAfterClickingLinkToLocation(e,t,r){return Ve("turbo:click",{target:e,detail:{url:t.href,originalEvent:r},cancelable:!0})}notifyApplicationBeforeVisitingLocation(e){return Ve("turbo:before-visit",{detail:{url:e.href},cancelable:!0})}notifyApplicationAfterVisitingLocation(e,t){return Ve("turbo:visit",{detail:{url:e.href,action:t}})}notifyApplicationBeforeCachingSnapshot(){return Ve("turbo:before-cache")}notifyApplicationBeforeRender(e,t){return Ve("turbo:before-render",{detail:{newBody:e,...t},cancelable:!0})}notifyApplicationAfterRender(e){return Ve("turbo:render",{detail:{renderMethod:e}})}notifyApplicationAfterPageLoad(e={}){return Ve("turbo:load",{detail:{url:this.location.href,timing:e}})}notifyApplicationAfterFrameLoad(e){return Ve("turbo:frame-load",{target:e})}notifyApplicationAfterFrameRender(e,t){return Ve("turbo:frame-render",{detail:{fetchResponse:e},target:t,cancelable:!0})}submissionIsNavigatable(e,t){if(at.forms.mode=="off")return!1;{let r=t?this.elementIsNavigatable(t):!0;return at.forms.mode=="optin"?r&&e.closest('[data-turbo="true"]')!=null:r&&this.elementIsNavigatable(e)}}elementIsNavigatable(e){let t=yr(e,"[data-turbo]"),r=yr(e,"turbo-frame");return at.drive.enabled||r?t?t.getAttribute("data-turbo")!="false":!0:t?t.getAttribute("data-turbo")=="true":!1}getActionForLink(e){return Yn(e)||"advance"}get snapshot(){return this.view.snapshot}};Os=new WeakMap;function _u(i){Object.defineProperties(i,rm)}var rm={absoluteURL:{get(){return this.toString()}}},Ze=new Tl(Nu),{cache:Xu,navigator:Qu}=Ze;function Nl(){Ze.start()}function Zu(i){Ze.registerAdapter(i)}function $u(i,e){Ze.visit(i,e)}function Ns(i){Ze.connectStreamSource(i)}function Is(i){Ze.disconnectStreamSource(i)}function ef(i){Ze.renderStreamMessage(i)}function tf(i){console.warn("Please replace `Turbo.setProgressBarDelay(delay)` with `Turbo.config.drive.progressBarDelay = delay`. The top-level function is deprecated and will be removed in a future version of Turbo.`"),at.drive.progressBarDelay=i}function nf(i){console.warn("Please replace `Turbo.setConfirmMethod(confirmMethod)` with `Turbo.config.forms.confirm = confirmMethod`. The top-level function is deprecated and will be removed in a future version of Turbo.`"),at.forms.confirm=i}function rf(i){console.warn("Please replace `Turbo.setFormMode(mode)` with `Turbo.config.forms.mode = mode`. The top-level function is deprecated and will be removed in a future version of Turbo.`"),at.forms.mode=i}function sf(i,e){Ro.renderElement(i,e)}function of(i,e){Io.renderElement(i,e)}var sm=Object.freeze({__proto__:null,PageRenderer:kr,PageSnapshot:Xt,FrameRenderer:Dr,fetch:Pl,config:at,session:Ze,cache:Xu,navigator:Qu,start:Nl,registerAdapter:Zu,visit:$u,connectStreamSource:Ns,disconnectStreamSource:Is,renderStreamMessage:ef,setProgressBarDelay:tf,setConfirmMethod:nf,setFormMode:rf,morphBodyElements:sf,morphTurboFrameElements:of,morphChildren:Uo,morphElements:Ps}),Cl=class extends Error{},Vi,xi,hn,Ls,Ar,Tr,ge,vr,af,lf,cf,uf,ff,df,hf,Dl,Bn,pf,So,mf,gf,vf,kl,xl=class{constructor(e){Te(this,ge);Z(this,"fetchResponseLoaded",e=>Promise.resolve());Te(this,Vi,null);Te(this,xi,()=>{});Te(this,hn,!1);Te(this,Ls,!1);Te(this,Ar,new Set);Te(this,Tr,!1);Z(this,"action",null);Z(this,"visitCachedSnapshot",({element:e})=>{let t=e.querySelector("#"+this.element.id);t&&this.previousFrameElement&&t.replaceChildren(...this.previousFrameElement.children),delete this.previousFrameElement});this.element=e,this.view=new rl(this,this.element),this.appearanceObserver=new il(this,this.element),this.formLinkClickObserver=new Po(this,this.element),this.linkInterceptor=new Oo(this,this.element),this.restorationIdentifier=pn(),this.formSubmitObserver=new bs(this,this.element)}connect(){ce(this,hn)||(Fe(this,hn,!0),this.loadingStyle==Vn.lazy?this.appearanceObserver.start():pe(this,ge,vr).call(this),this.formLinkClickObserver.start(),this.linkInterceptor.start(),this.formSubmitObserver.start())}disconnect(){ce(this,hn)&&(Fe(this,hn,!1),this.appearanceObserver.stop(),this.formLinkClickObserver.stop(),this.linkInterceptor.stop(),this.formSubmitObserver.stop(),this.element.hasAttribute("recurse")||ce(this,Vi)?.cancel())}disabledChanged(){this.disabled?ce(this,Vi)?.cancel():this.loadingStyle==Vn.eager&&pe(this,ge,vr).call(this)}sourceURLChanged(){pe(this,ge,mf).call(this,"src")||(this.sourceURL||ce(this,Vi)?.cancel(),this.element.isConnected&&(this.complete=!1),(this.loadingStyle==Vn.eager||ce(this,Ls))&&pe(this,ge,vr).call(this))}sourceURLReloaded(){let{refresh:e,src:t}=this.element;return Fe(this,Tr,t&&e==="morph"),this.element.removeAttribute("complete"),this.element.src=null,this.element.src=t,this.element.loaded}loadingStyleChanged(){this.loadingStyle==Vn.lazy?this.appearanceObserver.start():(this.appearanceObserver.stop(),pe(this,ge,vr).call(this))}async loadResponse(e){(e.redirected||e.succeeded&&e.isHTML)&&(this.sourceURL=e.response.url);try{let t=await e.responseHTML;if(t){let r=Tu(t);Xt.fromDocument(r).isVisitable?await pe(this,ge,af).call(this,e,r):await pe(this,ge,uf).call(this,e)}}finally{Fe(this,Tr,!1),this.fetchResponseLoaded=()=>Promise.resolve()}}elementAppearedInViewport(e){this.proposeVisitIfNavigatedWithAction(e,Yn(e)),pe(this,ge,vr).call(this)}willSubmitFormLinkToLocation(e){return pe(this,ge,So).call(this,e)}submittedFormLinkToLocation(e,t,r){let o=pe(this,ge,Bn).call(this,e);o&&r.setAttribute("data-turbo-frame",o.id)}shouldInterceptLinkClick(e,t,r){return pe(this,ge,So).call(this,e)}linkClickIntercepted(e,t){pe(this,ge,cf).call(this,e,t)}willSubmitForm(e,t){return e.closest("turbo-frame")==this.element&&pe(this,ge,So).call(this,e,t)}formSubmitted(e,t){this.formSubmission&&this.formSubmission.stop(),this.formSubmission=new ko(this,e,t);let{fetchRequest:r}=this.formSubmission,o=pe(this,ge,Bn).call(this,e,t);this.prepareRequest(r,o),this.formSubmission.start()}prepareRequest(e,t=this){e.headers["Turbo-Frame"]=t.id,this.currentNavigationElement?.hasAttribute("data-turbo-stream")&&e.acceptResponseType(Ui.contentType)}requestStarted(e){To(this.element)}requestPreventedHandlingResponse(e,t){ce(this,xi).call(this)}async requestSucceededWithResponse(e,t){await this.loadResponse(t),ce(this,xi).call(this)}async requestFailedWithResponse(e,t){await this.loadResponse(t),ce(this,xi).call(this)}requestErrored(e,t){console.error(t),ce(this,xi).call(this)}requestFinished(e){Co(this.element)}formSubmissionStarted({formElement:e}){To(e,pe(this,ge,Bn).call(this,e))}formSubmissionSucceededWithResponse(e,t){let r=pe(this,ge,Bn).call(this,e.formElement,e.submitter);r.delegate.proposeVisitIfNavigatedWithAction(r,Yn(e.submitter,e.formElement,r)),r.delegate.loadResponse(t),e.isSafe||Ze.clearCache()}formSubmissionFailedWithResponse(e,t){this.element.delegate.loadResponse(t),Ze.clearCache()}formSubmissionErrored(e,t){console.error(t)}formSubmissionFinished({formElement:e}){Co(e,pe(this,ge,Bn).call(this,e))}allowsImmediateRender({element:e},t){let r=Ve("turbo:before-frame-render",{target:this.element,detail:{newFrame:e,...t},cancelable:!0}),{defaultPrevented:o,detail:{render:l}}=r;return this.view.renderer&&l&&(this.view.renderer.renderElement=l),!o}viewRenderedSnapshot(e,t,r){}preloadOnLoadLinksForView(e){Ze.preloadOnLoadLinksForView(e)}viewInvalidated(){}willRenderFrame(e,t){this.previousFrameElement=e.cloneNode(!0)}proposeVisitIfNavigatedWithAction(e,t=null){if(this.action=t,this.action){let r=Xt.fromElement(e).clone(),{visitCachedSnapshot:o}=e.delegate;e.delegate.fetchResponseLoaded=async l=>{if(e.src){let{statusCode:m,redirected:f}=l,y=await l.responseHTML,S={response:{statusCode:m,redirected:f,responseHTML:y},visitCachedSnapshot:o,willRender:!1,updateHistory:!1,restorationIdentifier:this.restorationIdentifier,snapshot:r};this.action&&(S.action=this.action),Ze.visit(e.src,S)}}}}changeHistory(){if(this.action){let e=xu(this.action);Ze.history.update(e,yt(this.element.src||""),this.restorationIdentifier)}}async extractForeignFrameElement(e){let t,r=CSS.escape(this.id);try{if(t=Eu(e.querySelector(`turbo-frame#${r}`),this.sourceURL),t)return t;if(t=Eu(e.querySelector(`turbo-frame[src][recurse~=${r}]`),this.sourceURL),t)return await t.loaded,await this.extractForeignFrameElement(t)}catch(o){return console.error(o),new Ut}return null}get id(){return this.element.id}get disabled(){return this.element.disabled}get enabled(){return!this.disabled}get sourceURL(){if(this.element.src)return this.element.src}set sourceURL(e){pe(this,ge,gf).call(this,"src",()=>{this.element.src=e??null})}get loadingStyle(){return this.element.loading}get isLoading(){return this.formSubmission!==void 0||ce(this,xi).call(this)!==void 0}get complete(){return this.element.hasAttribute("complete")}set complete(e){e?this.element.setAttribute("complete",""):this.element.removeAttribute("complete")}get isActive(){return this.element.isActive&&ce(this,hn)}get rootLocation(){let t=this.element.ownerDocument.querySelector('meta[name="turbo-root"]')?.content??"/";return yt(t)}};Vi=new WeakMap,xi=new WeakMap,hn=new WeakMap,Ls=new WeakMap,Ar=new WeakMap,Tr=new WeakMap,ge=new WeakSet,vr=async function(){this.enabled&&this.isActive&&!this.complete&&this.sourceURL&&(this.element.loaded=pe(this,ge,lf).call(this,yt(this.sourceURL)),this.appearanceObserver.stop(),await this.element.loaded,Fe(this,Ls,!0))},af=async function(e,t){let r=await this.extractForeignFrameElement(t.body),o=ce(this,Tr)?Io:Dr;if(r){let l=new xr(r),m=new o(this,this.view.snapshot,l,!1,!1);this.view.renderPromise&&await this.view.renderPromise,this.changeHistory(),await this.view.render(m),this.complete=!0,Ze.frameRendered(e,this.element),Ze.frameLoaded(this.element),await this.fetchResponseLoaded(e)}else pe(this,ge,ff).call(this,e)&&pe(this,ge,df).call(this,e)},lf=async function(e){let t=new mn(this,Vt.get,e,new URLSearchParams,this.element);return ce(this,Vi)?.cancel(),Fe(this,Vi,t),new Promise(r=>{Fe(this,xi,()=>{Fe(this,xi,()=>{}),Fe(this,Vi,null),r()}),t.perform()})},cf=function(e,t,r){let o=pe(this,ge,Bn).call(this,e,r);o.delegate.proposeVisitIfNavigatedWithAction(o,Yn(r,e,o)),pe(this,ge,vf).call(this,e,()=>{o.src=t})},uf=async function(e){console.warn(`The response (${e.statusCode}) from <turbo-frame id="${this.element.id}"> is performing a full page visit due to turbo-visit-control.`),await pe(this,ge,Dl).call(this,e.response)},ff=function(e){this.element.setAttribute("complete","");let t=e.response,r=async(l,m)=>{l instanceof Response?pe(this,ge,Dl).call(this,l):Ze.visit(l,m)};return!Ve("turbo:frame-missing",{target:this.element,detail:{response:t,visit:r},cancelable:!0}).defaultPrevented},df=function(e){this.view.missing(),pe(this,ge,hf).call(this,e)},hf=function(e){let t=`The response (${e.statusCode}) did not contain the expected <turbo-frame id="${this.element.id}"> and will be ignored. To perform a full page visit instead, set turbo-visit-control to reload.`;throw new Cl(t)},Dl=async function(e){let t=new Cr(e),r=await t.responseHTML,{location:o,redirected:l,statusCode:m}=t;return Ze.visit(o,{response:{redirected:l,statusCode:m,responseHTML:r}})},Bn=function(e,t){let r=Ao("data-turbo-frame",t,e)||this.element.getAttribute("target"),o=pe(this,ge,kl).call(this,r);return o instanceof Ut?o:this.element},pf=function(e,t){let r=Ll(e,t);return ln(yt(r),this.rootLocation)},So=function(e,t){let r=Ao("data-turbo-frame",t,e)||this.element.getAttribute("target");if(e instanceof HTMLFormElement&&!pe(this,ge,pf).call(this,e,t)||!this.enabled||r=="_top")return!1;if(r){let o=pe(this,ge,kl).call(this,r);if(o)return!o.disabled;if(r=="_parent")return!1}return!(!Ze.elementIsNavigatable(e)||t&&!Ze.elementIsNavigatable(t))},mf=function(e){return ce(this,Ar).has(e)},gf=function(e,t){ce(this,Ar).add(e),t(),ce(this,Ar).delete(e)},vf=function(e,t){this.currentNavigationElement=e,t(),delete this.currentNavigationElement},kl=function(e){if(e!=null){let t=e==="_parent"?this.element.parentElement.closest("turbo-frame"):document.getElementById(e);if(t instanceof Ut)return t}};function Eu(i,e){if(i){let t=i.getAttribute("src");if(t!=null&&e!=null&&Pu(t,e))throw new Error(`Matching <turbo-frame id="${i.id}"> element has a source URL which references itself`);if(i.ownerDocument!==document&&(i=document.importNode(i,!0)),i instanceof Ut)return i.connectedCallback(),i.disconnectedCallback(),i}}var Il={after(){this.removeDuplicateTargetSiblings(),this.targetElements.forEach(i=>i.parentElement?.insertBefore(this.templateContent,i.nextSibling))},append(){this.removeDuplicateTargetChildren(),this.targetElements.forEach(i=>i.append(this.templateContent))},before(){this.removeDuplicateTargetSiblings(),this.targetElements.forEach(i=>i.parentElement?.insertBefore(this.templateContent,i))},prepend(){this.removeDuplicateTargetChildren(),this.targetElements.forEach(i=>i.prepend(this.templateContent))},remove(){this.targetElements.forEach(i=>i.remove())},replace(){let i=this.getAttribute("method");this.targetElements.forEach(e=>{i==="morph"?Ps(e,this.templateContent):e.replaceWith(this.templateContent)})},update(){let i=this.getAttribute("method");this.targetElements.forEach(e=>{i==="morph"?Uo(e,this.templateContent):(e.innerHTML="",e.append(this.templateContent))})},refresh(){let i=this.getAttribute("method"),e=this.requestId,t=this.getAttribute("scroll");Ze.refresh(this.baseURI,{method:i,requestId:e,scroll:t})}},zn,ps,Hl=class Hl extends HTMLElement{constructor(){super(...arguments);Te(this,zn)}static async renderElement(t){await t.performAction()}async connectedCallback(){try{await this.render()}catch(t){console.error(t)}finally{this.disconnect()}}async render(){return this.renderPromise??(this.renderPromise=(async()=>{let t=this.beforeRenderEvent;this.dispatchEvent(t)&&(await ms(),await t.detail.render(this))})())}disconnect(){try{this.remove()}catch{}}removeDuplicateTargetChildren(){this.duplicateChildren.forEach(t=>t.remove())}get duplicateChildren(){let t=this.targetElements.flatMap(o=>[...o.children]).filter(o=>!!o.getAttribute("id")),r=[...this.templateContent?.children||[]].filter(o=>!!o.getAttribute("id")).map(o=>o.getAttribute("id"));return t.filter(o=>r.includes(o.getAttribute("id")))}removeDuplicateTargetSiblings(){this.duplicateSiblings.forEach(t=>t.remove())}get duplicateSiblings(){let t=this.targetElements.flatMap(o=>[...o.parentElement.children]).filter(o=>!!o.id),r=[...this.templateContent?.children||[]].filter(o=>!!o.id).map(o=>o.id);return t.filter(o=>r.includes(o.id))}get performAction(){if(this.action){let t=Il[this.action];if(t)return t;pe(this,zn,ps).call(this,"unknown action")}pe(this,zn,ps).call(this,"action attribute is missing")}get targetElements(){if(this.target)return this.targetElementsById;if(this.targets)return this.targetElementsByQuery;pe(this,zn,ps).call(this,"target or targets attribute is missing")}get templateContent(){return this.templateElement.content.cloneNode(!0)}get templateElement(){if(this.firstElementChild===null){let t=this.ownerDocument.createElement("template");return this.appendChild(t),t}else if(this.firstElementChild instanceof HTMLTemplateElement)return this.firstElementChild;pe(this,zn,ps).call(this,"first child element must be a <template> element")}get action(){return this.getAttribute("action")}get target(){return this.getAttribute("target")}get targets(){return this.getAttribute("targets")}get requestId(){return this.getAttribute("request-id")}get description(){return(this.outerHTML.match(/<[^>]+>/)??[])[0]??"<turbo-stream>"}get beforeRenderEvent(){return new CustomEvent("turbo:before-stream-render",{bubbles:!0,cancelable:!0,detail:{newStream:this,render:Hl.renderElement}})}get targetElementsById(){let t=this.ownerDocument?.getElementById(this.target);return t!==null?[t]:[]}get targetElementsByQuery(){let t=this.ownerDocument?.querySelectorAll(this.targets);return t.length!==0?Array.prototype.slice.call(t):[]}};zn=new WeakSet,ps=function(t){throw new Error(`${this.description}: ${t}`)};var Ho=Hl,Fo=class extends HTMLElement{constructor(){super(...arguments);Z(this,"streamSource",null)}connectedCallback(){this.streamSource=this.src.match(/^ws{1,2}:/)?new WebSocket(this.src):new EventSource(this.src),Ns(this.streamSource)}disconnectedCallback(){this.streamSource&&(this.streamSource.close(),Is(this.streamSource))}get src(){return this.getAttribute("src")||""}};Ut.delegateConstructor=xl;customElements.get("turbo-frame")===void 0&&customElements.define("turbo-frame",Ut);customElements.get("turbo-stream")===void 0&&customElements.define("turbo-stream",Ho);customElements.get("turbo-stream-source")===void 0&&customElements.define("turbo-stream-source",Fo);(()=>{let i=document.currentScript;if(!i||i.hasAttribute("data-turbo-suppress-warning"))return;let e=i.parentElement;for(;e;){if(e==document.body)return console.warn(Cu`
|
|
22
|
+
You are loading Turbo from a <script> element inside the <body> element. This is probably not what you meant to do!
|
|
23
|
+
|
|
24
|
+
Load your application’s JavaScript bundle inside the <head> element instead. <script> elements in <body> are evaluated with each page change.
|
|
25
|
+
|
|
26
|
+
For more information, see: https://turbo.hotwired.dev/handbook/building#working-with-script-elements
|
|
27
|
+
|
|
28
|
+
——
|
|
29
|
+
Suppress this warning by adding a "data-turbo-suppress-warning" attribute to: %s
|
|
30
|
+
`,i.outerHTML);e=e.parentElement}})();window.Turbo={...sm,StreamActions:Il};Nl();var Af;async function cm(){return Af||Sf(um().then(Sf))}function Sf(i){return Af=i}async function um(){let{createConsumer:i}=await Promise.resolve().then(()=>(Ef(),_f));return i()}async function Tf(i,e){let{subscriptions:t}=await cm();return t.create(i,e)}function qs(i){return!i||typeof i!="object"||i instanceof Date||i instanceof RegExp?i:Array.isArray(i)?i.map(qs):Object.keys(i).reduce(function(e,t){var r=t[0].toLowerCase()+t.slice(1).replace(/([A-Z]+)/g,function(o,l){return"_"+l.toLowerCase()});return e[r]=qs(i[t]),e},{})}var Xo=class extends HTMLElement{async connectedCallback(){Ns(this),this.subscription=await Tf(this.channel,{received:this.dispatchMessageEvent.bind(this),connected:this.subscriptionConnected.bind(this),disconnected:this.subscriptionDisconnected.bind(this)})}disconnectedCallback(){Is(this),this.subscription&&this.subscription.unsubscribe(),this.subscriptionDisconnected()}attributeChangedCallback(){this.subscription&&(this.disconnectedCallback(),this.connectedCallback())}dispatchMessageEvent(e){let t=new MessageEvent("message",{data:e});return this.dispatchEvent(t)}subscriptionConnected(){this.setAttribute("connected","")}subscriptionDisconnected(){this.removeAttribute("connected")}get channel(){let e=this.getAttribute("channel"),t=this.getAttribute("signed-stream-name");return{channel:e,signed_stream_name:t,...qs({...this.dataset})}}};Z(Xo,"observedAttributes",["channel","signed-stream-name"]);customElements.get("turbo-cable-stream-source")===void 0&&customElements.define("turbo-cable-stream-source",Xo);function Cf(i){if(i.target instanceof HTMLFormElement){let{target:e,detail:{fetchOptions:t}}=i;e.addEventListener("turbo:submit-start",({detail:{formSubmission:{submitter:r}}})=>{let o=pm(t.body)?t.body:new URLSearchParams,l=dm(r,o,e);/get/i.test(l)||(/post/i.test(l)?o.delete("_method"):o.set("_method",l),t.method="post")},{once:!0})}}function dm(i,e,t){let r=hm(i),o=e.get("_method"),l=t.getAttribute("method")||"get";return typeof r=="string"?r:typeof o=="string"?o:l}function hm(i){return i instanceof HTMLButtonElement||i instanceof HTMLInputElement?i.name==="_method"?i.value:i.hasAttribute("formmethod")?i.formMethod:null:null}function pm(i){return i instanceof FormData||i instanceof URLSearchParams}window.Turbo=Rl;addEventListener("turbo:before-fetch-request",Cf);var kf={exports:{}};(function(i,e){(function(t){i.exports=t()})((function(t){var r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function o(w,g){var d=w[0],u=w[1],p=w[2],s=w[3];d+=(u&p|~u&s)+g[0]-680876936|0,d=(d<<7|d>>>25)+u|0,s+=(d&u|~d&p)+g[1]-389564586|0,s=(s<<12|s>>>20)+d|0,p+=(s&d|~s&u)+g[2]+606105819|0,p=(p<<17|p>>>15)+s|0,u+=(p&s|~p&d)+g[3]-1044525330|0,u=(u<<22|u>>>10)+p|0,d+=(u&p|~u&s)+g[4]-176418897|0,d=(d<<7|d>>>25)+u|0,s+=(d&u|~d&p)+g[5]+1200080426|0,s=(s<<12|s>>>20)+d|0,p+=(s&d|~s&u)+g[6]-1473231341|0,p=(p<<17|p>>>15)+s|0,u+=(p&s|~p&d)+g[7]-45705983|0,u=(u<<22|u>>>10)+p|0,d+=(u&p|~u&s)+g[8]+1770035416|0,d=(d<<7|d>>>25)+u|0,s+=(d&u|~d&p)+g[9]-1958414417|0,s=(s<<12|s>>>20)+d|0,p+=(s&d|~s&u)+g[10]-42063|0,p=(p<<17|p>>>15)+s|0,u+=(p&s|~p&d)+g[11]-1990404162|0,u=(u<<22|u>>>10)+p|0,d+=(u&p|~u&s)+g[12]+1804603682|0,d=(d<<7|d>>>25)+u|0,s+=(d&u|~d&p)+g[13]-40341101|0,s=(s<<12|s>>>20)+d|0,p+=(s&d|~s&u)+g[14]-1502002290|0,p=(p<<17|p>>>15)+s|0,u+=(p&s|~p&d)+g[15]+1236535329|0,u=(u<<22|u>>>10)+p|0,d+=(u&s|p&~s)+g[1]-165796510|0,d=(d<<5|d>>>27)+u|0,s+=(d&p|u&~p)+g[6]-1069501632|0,s=(s<<9|s>>>23)+d|0,p+=(s&u|d&~u)+g[11]+643717713|0,p=(p<<14|p>>>18)+s|0,u+=(p&d|s&~d)+g[0]-373897302|0,u=(u<<20|u>>>12)+p|0,d+=(u&s|p&~s)+g[5]-701558691|0,d=(d<<5|d>>>27)+u|0,s+=(d&p|u&~p)+g[10]+38016083|0,s=(s<<9|s>>>23)+d|0,p+=(s&u|d&~u)+g[15]-660478335|0,p=(p<<14|p>>>18)+s|0,u+=(p&d|s&~d)+g[4]-405537848|0,u=(u<<20|u>>>12)+p|0,d+=(u&s|p&~s)+g[9]+568446438|0,d=(d<<5|d>>>27)+u|0,s+=(d&p|u&~p)+g[14]-1019803690|0,s=(s<<9|s>>>23)+d|0,p+=(s&u|d&~u)+g[3]-187363961|0,p=(p<<14|p>>>18)+s|0,u+=(p&d|s&~d)+g[8]+1163531501|0,u=(u<<20|u>>>12)+p|0,d+=(u&s|p&~s)+g[13]-1444681467|0,d=(d<<5|d>>>27)+u|0,s+=(d&p|u&~p)+g[2]-51403784|0,s=(s<<9|s>>>23)+d|0,p+=(s&u|d&~u)+g[7]+1735328473|0,p=(p<<14|p>>>18)+s|0,u+=(p&d|s&~d)+g[12]-1926607734|0,u=(u<<20|u>>>12)+p|0,d+=(u^p^s)+g[5]-378558|0,d=(d<<4|d>>>28)+u|0,s+=(d^u^p)+g[8]-2022574463|0,s=(s<<11|s>>>21)+d|0,p+=(s^d^u)+g[11]+1839030562|0,p=(p<<16|p>>>16)+s|0,u+=(p^s^d)+g[14]-35309556|0,u=(u<<23|u>>>9)+p|0,d+=(u^p^s)+g[1]-1530992060|0,d=(d<<4|d>>>28)+u|0,s+=(d^u^p)+g[4]+1272893353|0,s=(s<<11|s>>>21)+d|0,p+=(s^d^u)+g[7]-155497632|0,p=(p<<16|p>>>16)+s|0,u+=(p^s^d)+g[10]-1094730640|0,u=(u<<23|u>>>9)+p|0,d+=(u^p^s)+g[13]+681279174|0,d=(d<<4|d>>>28)+u|0,s+=(d^u^p)+g[0]-358537222|0,s=(s<<11|s>>>21)+d|0,p+=(s^d^u)+g[3]-722521979|0,p=(p<<16|p>>>16)+s|0,u+=(p^s^d)+g[6]+76029189|0,u=(u<<23|u>>>9)+p|0,d+=(u^p^s)+g[9]-640364487|0,d=(d<<4|d>>>28)+u|0,s+=(d^u^p)+g[12]-421815835|0,s=(s<<11|s>>>21)+d|0,p+=(s^d^u)+g[15]+530742520|0,p=(p<<16|p>>>16)+s|0,u+=(p^s^d)+g[2]-995338651|0,u=(u<<23|u>>>9)+p|0,d+=(p^(u|~s))+g[0]-198630844|0,d=(d<<6|d>>>26)+u|0,s+=(u^(d|~p))+g[7]+1126891415|0,s=(s<<10|s>>>22)+d|0,p+=(d^(s|~u))+g[14]-1416354905|0,p=(p<<15|p>>>17)+s|0,u+=(s^(p|~d))+g[5]-57434055|0,u=(u<<21|u>>>11)+p|0,d+=(p^(u|~s))+g[12]+1700485571|0,d=(d<<6|d>>>26)+u|0,s+=(u^(d|~p))+g[3]-1894986606|0,s=(s<<10|s>>>22)+d|0,p+=(d^(s|~u))+g[10]-1051523|0,p=(p<<15|p>>>17)+s|0,u+=(s^(p|~d))+g[1]-2054922799|0,u=(u<<21|u>>>11)+p|0,d+=(p^(u|~s))+g[8]+1873313359|0,d=(d<<6|d>>>26)+u|0,s+=(u^(d|~p))+g[15]-30611744|0,s=(s<<10|s>>>22)+d|0,p+=(d^(s|~u))+g[6]-1560198380|0,p=(p<<15|p>>>17)+s|0,u+=(s^(p|~d))+g[13]+1309151649|0,u=(u<<21|u>>>11)+p|0,d+=(p^(u|~s))+g[4]-145523070|0,d=(d<<6|d>>>26)+u|0,s+=(u^(d|~p))+g[11]-1120210379|0,s=(s<<10|s>>>22)+d|0,p+=(d^(s|~u))+g[2]+718787259|0,p=(p<<15|p>>>17)+s|0,u+=(s^(p|~d))+g[9]-343485551|0,u=(u<<21|u>>>11)+p|0,w[0]=d+w[0]|0,w[1]=u+w[1]|0,w[2]=p+w[2]|0,w[3]=s+w[3]|0}function l(w){var g=[],d;for(d=0;d<64;d+=4)g[d>>2]=w.charCodeAt(d)+(w.charCodeAt(d+1)<<8)+(w.charCodeAt(d+2)<<16)+(w.charCodeAt(d+3)<<24);return g}function m(w){var g=[],d;for(d=0;d<64;d+=4)g[d>>2]=w[d]+(w[d+1]<<8)+(w[d+2]<<16)+(w[d+3]<<24);return g}function f(w){var g=w.length,d=[1732584193,-271733879,-1732584194,271733878],u,p,s,j,B,K;for(u=64;u<=g;u+=64)o(d,l(w.substring(u-64,u)));for(w=w.substring(u-64),p=w.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],u=0;u<p;u+=1)s[u>>2]|=w.charCodeAt(u)<<(u%4<<3);if(s[u>>2]|=128<<(u%4<<3),u>55)for(o(d,s),u=0;u<16;u+=1)s[u]=0;return j=g*8,j=j.toString(16).match(/(.*?)(.{0,8})$/),B=parseInt(j[2],16),K=parseInt(j[1],16)||0,s[14]=B,s[15]=K,o(d,s),d}function y(w){var g=w.length,d=[1732584193,-271733879,-1732584194,271733878],u,p,s,j,B,K;for(u=64;u<=g;u+=64)o(d,m(w.subarray(u-64,u)));for(w=u-64<g?w.subarray(u-64):new Uint8Array(0),p=w.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],u=0;u<p;u+=1)s[u>>2]|=w[u]<<(u%4<<3);if(s[u>>2]|=128<<(u%4<<3),u>55)for(o(d,s),u=0;u<16;u+=1)s[u]=0;return j=g*8,j=j.toString(16).match(/(.*?)(.{0,8})$/),B=parseInt(j[2],16),K=parseInt(j[1],16)||0,s[14]=B,s[15]=K,o(d,s),d}function A(w){var g="",d;for(d=0;d<4;d+=1)g+=r[w>>d*8+4&15]+r[w>>d*8&15];return g}function S(w){var g;for(g=0;g<w.length;g+=1)w[g]=A(w[g]);return w.join("")}S(f("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&(function(){function w(g,d){return g=g|0||0,g<0?Math.max(g+d,0):Math.min(g,d)}ArrayBuffer.prototype.slice=function(g,d){var u=this.byteLength,p=w(g,u),s=u,j,B,K,J;return d!==t&&(s=w(d,u)),p>s?new ArrayBuffer(0):(j=s-p,B=new ArrayBuffer(j),K=new Uint8Array(B),J=new Uint8Array(this,p,j),K.set(J),B)}})();function N(w){return/[\u0080-\uFFFF]/.test(w)&&(w=unescape(encodeURIComponent(w))),w}function L(w,g){var d=w.length,u=new ArrayBuffer(d),p=new Uint8Array(u),s;for(s=0;s<d;s+=1)p[s]=w.charCodeAt(s);return g?p:u}function M(w){return String.fromCharCode.apply(null,new Uint8Array(w))}function T(w,g,d){var u=new Uint8Array(w.byteLength+g.byteLength);return u.set(new Uint8Array(w)),u.set(new Uint8Array(g),w.byteLength),d?u:u.buffer}function k(w){var g=[],d=w.length,u;for(u=0;u<d-1;u+=2)g.push(parseInt(w.substr(u,2),16));return String.fromCharCode.apply(String,g)}function D(){this.reset()}return D.prototype.append=function(w){return this.appendBinary(N(w)),this},D.prototype.appendBinary=function(w){this._buff+=w,this._length+=w.length;var g=this._buff.length,d;for(d=64;d<=g;d+=64)o(this._hash,l(this._buff.substring(d-64,d)));return this._buff=this._buff.substring(d-64),this},D.prototype.end=function(w){var g=this._buff,d=g.length,u,p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],s;for(u=0;u<d;u+=1)p[u>>2]|=g.charCodeAt(u)<<(u%4<<3);return this._finish(p,d),s=S(this._hash),w&&(s=k(s)),this.reset(),s},D.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},D.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},D.prototype.setState=function(w){return this._buff=w.buff,this._length=w.length,this._hash=w.hash,this},D.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},D.prototype._finish=function(w,g){var d=g,u,p,s;if(w[d>>2]|=128<<(d%4<<3),d>55)for(o(this._hash,w),d=0;d<16;d+=1)w[d]=0;u=this._length*8,u=u.toString(16).match(/(.*?)(.{0,8})$/),p=parseInt(u[2],16),s=parseInt(u[1],16)||0,w[14]=p,w[15]=s,o(this._hash,w)},D.hash=function(w,g){return D.hashBinary(N(w),g)},D.hashBinary=function(w,g){var d=f(w),u=S(d);return g?k(u):u},D.ArrayBuffer=function(){this.reset()},D.ArrayBuffer.prototype.append=function(w){var g=T(this._buff.buffer,w,!0),d=g.length,u;for(this._length+=w.byteLength,u=64;u<=d;u+=64)o(this._hash,m(g.subarray(u-64,u)));return this._buff=u-64<d?new Uint8Array(g.buffer.slice(u-64)):new Uint8Array(0),this},D.ArrayBuffer.prototype.end=function(w){var g=this._buff,d=g.length,u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],p,s;for(p=0;p<d;p+=1)u[p>>2]|=g[p]<<(p%4<<3);return this._finish(u,d),s=S(this._hash),w&&(s=k(s)),this.reset(),s},D.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},D.ArrayBuffer.prototype.getState=function(){var w=D.prototype.getState.call(this);return w.buff=M(w.buff),w},D.ArrayBuffer.prototype.setState=function(w){return w.buff=L(w.buff,!0),D.prototype.setState.call(this,w)},D.ArrayBuffer.prototype.destroy=D.prototype.destroy,D.ArrayBuffer.prototype._finish=D.prototype._finish,D.ArrayBuffer.hash=function(w,g){var d=y(new Uint8Array(w)),u=S(d);return g?k(u):u},D}))})(kf);var mm=kf.exports,gm=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,Jl=class i{static create(e,t){new i(e).create(t)}constructor(e){this.file=e,this.chunkSize=2097152,this.chunkCount=Math.ceil(this.file.size/this.chunkSize),this.chunkIndex=0}create(e){this.callback=e,this.md5Buffer=new mm.ArrayBuffer,this.fileReader=new FileReader,this.fileReader.addEventListener("load",(t=>this.fileReaderDidLoad(t))),this.fileReader.addEventListener("error",(t=>this.fileReaderDidError(t))),this.readNextChunk()}fileReaderDidLoad(e){if(this.md5Buffer.append(e.target.result),!this.readNextChunk()){let t=this.md5Buffer.end(!0),r=btoa(t);this.callback(null,r)}}fileReaderDidError(e){this.callback(`Error reading ${this.file.name}`)}readNextChunk(){if(this.chunkIndex<this.chunkCount||this.chunkIndex==0&&this.chunkCount==0){let e=this.chunkIndex*this.chunkSize,t=Math.min(e+this.chunkSize,this.file.size),r=gm.call(this.file,e,t);return this.fileReader.readAsArrayBuffer(r),this.chunkIndex++,!0}else return!1}};function vm(i){let e=Mf(document.head,`meta[name="${i}"]`);if(e)return e.getAttribute("content")}function bm(i,e){typeof i=="string"&&(e=i,i=document);let t=i.querySelectorAll(e);return Lf(t)}function Mf(i,e){return typeof i=="string"&&(e=i,i=document),i.querySelector(e)}function Of(i,e,t={}){let{disabled:r}=i,{bubbles:o,cancelable:l,detail:m}=t,f=document.createEvent("Event");f.initEvent(e,o||!0,l||!0),f.detail=m||{};try{i.disabled=!1,i.dispatchEvent(f)}finally{i.disabled=r}return f}function Lf(i){return Array.isArray(i)?i:Array.from?Array.from(i):[].slice.call(i)}var Gl=class{constructor(e,t,r,o={}){this.file=e,this.attributes={filename:e.name,content_type:e.type||"application/octet-stream",byte_size:e.size,checksum:t},this.xhr=new XMLHttpRequest,this.xhr.open("POST",r,!0),this.xhr.responseType="json",this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.setRequestHeader("Accept","application/json"),this.xhr.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach((m=>{this.xhr.setRequestHeader(m,o[m])}));let l=vm("csrf-token");l!=null&&this.xhr.setRequestHeader("X-CSRF-Token",l),this.xhr.addEventListener("load",(m=>this.requestDidLoad(m))),this.xhr.addEventListener("error",(m=>this.requestDidError(m)))}get status(){return this.xhr.status}get response(){let{responseType:e,response:t}=this.xhr;return e=="json"?t:JSON.parse(t)}create(e){this.callback=e,this.xhr.send(JSON.stringify({blob:this.attributes}))}requestDidLoad(e){if(this.status>=200&&this.status<300){let{response:t}=this,{direct_upload:r}=t;delete t.direct_upload,this.attributes=t,this.directUploadData=r,this.callback(null,this.toJSON())}else this.requestDidError(e)}requestDidError(e){this.callback(`Error creating Blob for "${this.file.name}". Status: ${this.status}`)}toJSON(){let e={};for(let t in this.attributes)e[t]=this.attributes[t];return e}},Xl=class{constructor(e){this.blob=e,this.file=e.file;let{url:t,headers:r}=e.directUploadData;this.xhr=new XMLHttpRequest,this.xhr.open("PUT",t,!0),this.xhr.responseType="text";for(let o in r)this.xhr.setRequestHeader(o,r[o]);this.xhr.addEventListener("load",(o=>this.requestDidLoad(o))),this.xhr.addEventListener("error",(o=>this.requestDidError(o)))}create(e){this.callback=e,this.xhr.send(this.file.slice())}requestDidLoad(e){let{status:t,response:r}=this.xhr;t>=200&&t<300?this.callback(null,r):this.requestDidError(e)}requestDidError(e){this.callback(`Error storing "${this.file.name}". Status: ${this.xhr.status}`)}},ym=0,Ql=class{constructor(e,t,r,o={}){this.id=++ym,this.file=e,this.url=t,this.delegate=r,this.customHeaders=o}create(e){Jl.create(this.file,((t,r)=>{if(t){e(t);return}let o=new Gl(this.file,r,this.url,this.customHeaders);xf(this.delegate,"directUploadWillCreateBlobWithXHR",o.xhr),o.create((l=>{if(l)e(l);else{let m=new Xl(o);xf(this.delegate,"directUploadWillStoreFileWithXHR",m.xhr),m.create((f=>{f?e(f):e(null,o.toJSON())}))}}))}))}};function xf(i,e,...t){if(i&&typeof i[e]=="function")return i[e](...t)}var Zl=class{constructor(e,t){this.input=e,this.file=t,this.directUpload=new Ql(this.file,this.url,this),this.dispatch("initialize")}start(e){let t=document.createElement("input");t.type="hidden",t.name=this.input.name,this.input.insertAdjacentElement("beforebegin",t),this.dispatch("start"),this.directUpload.create(((r,o)=>{r?(t.parentNode.removeChild(t),this.dispatchError(r)):t.value=o.signed_id,this.dispatch("end"),e(r)}))}uploadRequestDidProgress(e){let t=e.loaded/e.total*100;t&&this.dispatch("progress",{progress:t})}get url(){return this.input.getAttribute("data-direct-upload-url")}dispatch(e,t={}){return t.file=this.file,t.id=this.directUpload.id,Of(this.input,`direct-upload:${e}`,{detail:t})}dispatchError(e){this.dispatch("error",{error:e}).defaultPrevented||alert(e)}directUploadWillCreateBlobWithXHR(e){this.dispatch("before-blob-request",{xhr:e})}directUploadWillStoreFileWithXHR(e){this.dispatch("before-storage-request",{xhr:e}),e.upload.addEventListener("progress",(t=>this.uploadRequestDidProgress(t)))}},wm="input[type=file][data-direct-upload-url]:not([disabled])",$l=class{constructor(e){this.form=e,this.inputs=bm(e,wm).filter((t=>t.files.length))}start(e){let t=this.createDirectUploadControllers(),r=()=>{let o=t.shift();o?o.start((l=>{l?(e(l),this.dispatch("end")):r()})):(e(),this.dispatch("end"))};this.dispatch("start"),r()}createDirectUploadControllers(){let e=[];return this.inputs.forEach((t=>{Lf(t.files).forEach((r=>{let o=new Zl(t,r);e.push(o)}))})),e}dispatch(e,t={}){return Of(this.form,`direct-uploads:${e}`,{detail:t})}},Kl="data-direct-uploads-processing",ec=new WeakMap,Df=!1;function tc(){Df||(Df=!0,document.addEventListener("click",_m,!0),document.addEventListener("submit",Em,!0),document.addEventListener("ajax:before",Sm))}function _m(i){let e=i.target.closest("button, input");e&&e.type==="submit"&&e.form&&ec.set(e.form,e)}function Em(i){Pf(i)}function Sm(i){i.target.tagName=="FORM"&&Pf(i)}function Pf(i){let e=i.target;if(e.hasAttribute(Kl)){i.preventDefault();return}let t=new $l(e),{inputs:r}=t;r.length&&(i.preventDefault(),e.setAttribute(Kl,""),r.forEach(Tm),t.start((o=>{e.removeAttribute(Kl),o?r.forEach(Cm):Am(e)})))}function Am(i){let e=ec.get(i)||Mf(i,"input[type=submit], button[type=submit]");if(e){let{disabled:t}=e;e.disabled=!1,e.focus(),e.click(),e.disabled=t}else e=document.createElement("input"),e.type="submit",e.style.display="none",i.appendChild(e),e.click(),i.removeChild(e);ec.delete(i)}function Tm(i){i.disabled=!0}function Cm(i){i.disabled=!1}function xm(){window.ActiveStorage&&tc()}setTimeout(xm,1);var Rf={exports:{}};(function(i,e){(function(t){i.exports=t()})((function(t){var r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function o(w,g){var d=w[0],u=w[1],p=w[2],s=w[3];d+=(u&p|~u&s)+g[0]-680876936|0,d=(d<<7|d>>>25)+u|0,s+=(d&u|~d&p)+g[1]-389564586|0,s=(s<<12|s>>>20)+d|0,p+=(s&d|~s&u)+g[2]+606105819|0,p=(p<<17|p>>>15)+s|0,u+=(p&s|~p&d)+g[3]-1044525330|0,u=(u<<22|u>>>10)+p|0,d+=(u&p|~u&s)+g[4]-176418897|0,d=(d<<7|d>>>25)+u|0,s+=(d&u|~d&p)+g[5]+1200080426|0,s=(s<<12|s>>>20)+d|0,p+=(s&d|~s&u)+g[6]-1473231341|0,p=(p<<17|p>>>15)+s|0,u+=(p&s|~p&d)+g[7]-45705983|0,u=(u<<22|u>>>10)+p|0,d+=(u&p|~u&s)+g[8]+1770035416|0,d=(d<<7|d>>>25)+u|0,s+=(d&u|~d&p)+g[9]-1958414417|0,s=(s<<12|s>>>20)+d|0,p+=(s&d|~s&u)+g[10]-42063|0,p=(p<<17|p>>>15)+s|0,u+=(p&s|~p&d)+g[11]-1990404162|0,u=(u<<22|u>>>10)+p|0,d+=(u&p|~u&s)+g[12]+1804603682|0,d=(d<<7|d>>>25)+u|0,s+=(d&u|~d&p)+g[13]-40341101|0,s=(s<<12|s>>>20)+d|0,p+=(s&d|~s&u)+g[14]-1502002290|0,p=(p<<17|p>>>15)+s|0,u+=(p&s|~p&d)+g[15]+1236535329|0,u=(u<<22|u>>>10)+p|0,d+=(u&s|p&~s)+g[1]-165796510|0,d=(d<<5|d>>>27)+u|0,s+=(d&p|u&~p)+g[6]-1069501632|0,s=(s<<9|s>>>23)+d|0,p+=(s&u|d&~u)+g[11]+643717713|0,p=(p<<14|p>>>18)+s|0,u+=(p&d|s&~d)+g[0]-373897302|0,u=(u<<20|u>>>12)+p|0,d+=(u&s|p&~s)+g[5]-701558691|0,d=(d<<5|d>>>27)+u|0,s+=(d&p|u&~p)+g[10]+38016083|0,s=(s<<9|s>>>23)+d|0,p+=(s&u|d&~u)+g[15]-660478335|0,p=(p<<14|p>>>18)+s|0,u+=(p&d|s&~d)+g[4]-405537848|0,u=(u<<20|u>>>12)+p|0,d+=(u&s|p&~s)+g[9]+568446438|0,d=(d<<5|d>>>27)+u|0,s+=(d&p|u&~p)+g[14]-1019803690|0,s=(s<<9|s>>>23)+d|0,p+=(s&u|d&~u)+g[3]-187363961|0,p=(p<<14|p>>>18)+s|0,u+=(p&d|s&~d)+g[8]+1163531501|0,u=(u<<20|u>>>12)+p|0,d+=(u&s|p&~s)+g[13]-1444681467|0,d=(d<<5|d>>>27)+u|0,s+=(d&p|u&~p)+g[2]-51403784|0,s=(s<<9|s>>>23)+d|0,p+=(s&u|d&~u)+g[7]+1735328473|0,p=(p<<14|p>>>18)+s|0,u+=(p&d|s&~d)+g[12]-1926607734|0,u=(u<<20|u>>>12)+p|0,d+=(u^p^s)+g[5]-378558|0,d=(d<<4|d>>>28)+u|0,s+=(d^u^p)+g[8]-2022574463|0,s=(s<<11|s>>>21)+d|0,p+=(s^d^u)+g[11]+1839030562|0,p=(p<<16|p>>>16)+s|0,u+=(p^s^d)+g[14]-35309556|0,u=(u<<23|u>>>9)+p|0,d+=(u^p^s)+g[1]-1530992060|0,d=(d<<4|d>>>28)+u|0,s+=(d^u^p)+g[4]+1272893353|0,s=(s<<11|s>>>21)+d|0,p+=(s^d^u)+g[7]-155497632|0,p=(p<<16|p>>>16)+s|0,u+=(p^s^d)+g[10]-1094730640|0,u=(u<<23|u>>>9)+p|0,d+=(u^p^s)+g[13]+681279174|0,d=(d<<4|d>>>28)+u|0,s+=(d^u^p)+g[0]-358537222|0,s=(s<<11|s>>>21)+d|0,p+=(s^d^u)+g[3]-722521979|0,p=(p<<16|p>>>16)+s|0,u+=(p^s^d)+g[6]+76029189|0,u=(u<<23|u>>>9)+p|0,d+=(u^p^s)+g[9]-640364487|0,d=(d<<4|d>>>28)+u|0,s+=(d^u^p)+g[12]-421815835|0,s=(s<<11|s>>>21)+d|0,p+=(s^d^u)+g[15]+530742520|0,p=(p<<16|p>>>16)+s|0,u+=(p^s^d)+g[2]-995338651|0,u=(u<<23|u>>>9)+p|0,d+=(p^(u|~s))+g[0]-198630844|0,d=(d<<6|d>>>26)+u|0,s+=(u^(d|~p))+g[7]+1126891415|0,s=(s<<10|s>>>22)+d|0,p+=(d^(s|~u))+g[14]-1416354905|0,p=(p<<15|p>>>17)+s|0,u+=(s^(p|~d))+g[5]-57434055|0,u=(u<<21|u>>>11)+p|0,d+=(p^(u|~s))+g[12]+1700485571|0,d=(d<<6|d>>>26)+u|0,s+=(u^(d|~p))+g[3]-1894986606|0,s=(s<<10|s>>>22)+d|0,p+=(d^(s|~u))+g[10]-1051523|0,p=(p<<15|p>>>17)+s|0,u+=(s^(p|~d))+g[1]-2054922799|0,u=(u<<21|u>>>11)+p|0,d+=(p^(u|~s))+g[8]+1873313359|0,d=(d<<6|d>>>26)+u|0,s+=(u^(d|~p))+g[15]-30611744|0,s=(s<<10|s>>>22)+d|0,p+=(d^(s|~u))+g[6]-1560198380|0,p=(p<<15|p>>>17)+s|0,u+=(s^(p|~d))+g[13]+1309151649|0,u=(u<<21|u>>>11)+p|0,d+=(p^(u|~s))+g[4]-145523070|0,d=(d<<6|d>>>26)+u|0,s+=(u^(d|~p))+g[11]-1120210379|0,s=(s<<10|s>>>22)+d|0,p+=(d^(s|~u))+g[2]+718787259|0,p=(p<<15|p>>>17)+s|0,u+=(s^(p|~d))+g[9]-343485551|0,u=(u<<21|u>>>11)+p|0,w[0]=d+w[0]|0,w[1]=u+w[1]|0,w[2]=p+w[2]|0,w[3]=s+w[3]|0}function l(w){var g=[],d;for(d=0;d<64;d+=4)g[d>>2]=w.charCodeAt(d)+(w.charCodeAt(d+1)<<8)+(w.charCodeAt(d+2)<<16)+(w.charCodeAt(d+3)<<24);return g}function m(w){var g=[],d;for(d=0;d<64;d+=4)g[d>>2]=w[d]+(w[d+1]<<8)+(w[d+2]<<16)+(w[d+3]<<24);return g}function f(w){var g=w.length,d=[1732584193,-271733879,-1732584194,271733878],u,p,s,j,B,K;for(u=64;u<=g;u+=64)o(d,l(w.substring(u-64,u)));for(w=w.substring(u-64),p=w.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],u=0;u<p;u+=1)s[u>>2]|=w.charCodeAt(u)<<(u%4<<3);if(s[u>>2]|=128<<(u%4<<3),u>55)for(o(d,s),u=0;u<16;u+=1)s[u]=0;return j=g*8,j=j.toString(16).match(/(.*?)(.{0,8})$/),B=parseInt(j[2],16),K=parseInt(j[1],16)||0,s[14]=B,s[15]=K,o(d,s),d}function y(w){var g=w.length,d=[1732584193,-271733879,-1732584194,271733878],u,p,s,j,B,K;for(u=64;u<=g;u+=64)o(d,m(w.subarray(u-64,u)));for(w=u-64<g?w.subarray(u-64):new Uint8Array(0),p=w.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],u=0;u<p;u+=1)s[u>>2]|=w[u]<<(u%4<<3);if(s[u>>2]|=128<<(u%4<<3),u>55)for(o(d,s),u=0;u<16;u+=1)s[u]=0;return j=g*8,j=j.toString(16).match(/(.*?)(.{0,8})$/),B=parseInt(j[2],16),K=parseInt(j[1],16)||0,s[14]=B,s[15]=K,o(d,s),d}function A(w){var g="",d;for(d=0;d<4;d+=1)g+=r[w>>d*8+4&15]+r[w>>d*8&15];return g}function S(w){var g;for(g=0;g<w.length;g+=1)w[g]=A(w[g]);return w.join("")}S(f("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&(function(){function w(g,d){return g=g|0||0,g<0?Math.max(g+d,0):Math.min(g,d)}ArrayBuffer.prototype.slice=function(g,d){var u=this.byteLength,p=w(g,u),s=u,j,B,K,J;return d!==t&&(s=w(d,u)),p>s?new ArrayBuffer(0):(j=s-p,B=new ArrayBuffer(j),K=new Uint8Array(B),J=new Uint8Array(this,p,j),K.set(J),B)}})();function N(w){return/[\u0080-\uFFFF]/.test(w)&&(w=unescape(encodeURIComponent(w))),w}function L(w,g){var d=w.length,u=new ArrayBuffer(d),p=new Uint8Array(u),s;for(s=0;s<d;s+=1)p[s]=w.charCodeAt(s);return g?p:u}function M(w){return String.fromCharCode.apply(null,new Uint8Array(w))}function T(w,g,d){var u=new Uint8Array(w.byteLength+g.byteLength);return u.set(new Uint8Array(w)),u.set(new Uint8Array(g),w.byteLength),d?u:u.buffer}function k(w){var g=[],d=w.length,u;for(u=0;u<d-1;u+=2)g.push(parseInt(w.substr(u,2),16));return String.fromCharCode.apply(String,g)}function D(){this.reset()}return D.prototype.append=function(w){return this.appendBinary(N(w)),this},D.prototype.appendBinary=function(w){this._buff+=w,this._length+=w.length;var g=this._buff.length,d;for(d=64;d<=g;d+=64)o(this._hash,l(this._buff.substring(d-64,d)));return this._buff=this._buff.substring(d-64),this},D.prototype.end=function(w){var g=this._buff,d=g.length,u,p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],s;for(u=0;u<d;u+=1)p[u>>2]|=g.charCodeAt(u)<<(u%4<<3);return this._finish(p,d),s=S(this._hash),w&&(s=k(s)),this.reset(),s},D.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},D.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},D.prototype.setState=function(w){return this._buff=w.buff,this._length=w.length,this._hash=w.hash,this},D.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},D.prototype._finish=function(w,g){var d=g,u,p,s;if(w[d>>2]|=128<<(d%4<<3),d>55)for(o(this._hash,w),d=0;d<16;d+=1)w[d]=0;u=this._length*8,u=u.toString(16).match(/(.*?)(.{0,8})$/),p=parseInt(u[2],16),s=parseInt(u[1],16)||0,w[14]=p,w[15]=s,o(this._hash,w)},D.hash=function(w,g){return D.hashBinary(N(w),g)},D.hashBinary=function(w,g){var d=f(w),u=S(d);return g?k(u):u},D.ArrayBuffer=function(){this.reset()},D.ArrayBuffer.prototype.append=function(w){var g=T(this._buff.buffer,w,!0),d=g.length,u;for(this._length+=w.byteLength,u=64;u<=d;u+=64)o(this._hash,m(g.subarray(u-64,u)));return this._buff=u-64<d?new Uint8Array(g.buffer.slice(u-64)):new Uint8Array(0),this},D.ArrayBuffer.prototype.end=function(w){var g=this._buff,d=g.length,u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],p,s;for(p=0;p<d;p+=1)u[p>>2]|=g[p]<<(p%4<<3);return this._finish(u,d),s=S(this._hash),w&&(s=k(s)),this.reset(),s},D.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},D.ArrayBuffer.prototype.getState=function(){var w=D.prototype.getState.call(this);return w.buff=M(w.buff),w},D.ArrayBuffer.prototype.setState=function(w){return w.buff=L(w.buff,!0),D.prototype.setState.call(this,w)},D.ArrayBuffer.prototype.destroy=D.prototype.destroy,D.ArrayBuffer.prototype._finish=D.prototype._finish,D.ArrayBuffer.hash=function(w,g){var d=y(new Uint8Array(w)),u=S(d);return g?k(u):u},D}))})(Rf);var km=Rf.exports,Mm=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,nc=class i{static create(e,t){new i(e).create(t)}constructor(e){this.file=e,this.chunkSize=2097152,this.chunkCount=Math.ceil(this.file.size/this.chunkSize),this.chunkIndex=0}create(e){this.callback=e,this.md5Buffer=new km.ArrayBuffer,this.fileReader=new FileReader,this.fileReader.addEventListener("load",(t=>this.fileReaderDidLoad(t))),this.fileReader.addEventListener("error",(t=>this.fileReaderDidError(t))),this.readNextChunk()}fileReaderDidLoad(e){if(this.md5Buffer.append(e.target.result),!this.readNextChunk()){let t=this.md5Buffer.end(!0),r=btoa(t);this.callback(null,r)}}fileReaderDidError(e){this.callback(`Error reading ${this.file.name}`)}readNextChunk(){if(this.chunkIndex<this.chunkCount||this.chunkIndex==0&&this.chunkCount==0){let e=this.chunkIndex*this.chunkSize,t=Math.min(e+this.chunkSize,this.file.size),r=Mm.call(this.file,e,t);return this.fileReader.readAsArrayBuffer(r),this.chunkIndex++,!0}else return!1}};function Om(i){let e=Hf(document.head,`meta[name="${i}"]`);if(e)return e.getAttribute("content")}function Lm(i,e){typeof i=="string"&&(e=i,i=document);let t=i.querySelectorAll(e);return jf(t)}function Hf(i,e){return typeof i=="string"&&(e=i,i=document),i.querySelector(e)}function Ff(i,e,t={}){let{disabled:r}=i,{bubbles:o,cancelable:l,detail:m}=t,f=document.createEvent("Event");f.initEvent(e,o||!0,l||!0),f.detail=m||{};try{i.disabled=!1,i.dispatchEvent(f)}finally{i.disabled=r}return f}function jf(i){return Array.isArray(i)?i:Array.from?Array.from(i):[].slice.call(i)}var rc=class{constructor(e,t,r,o={}){this.file=e,this.attributes={filename:e.name,content_type:e.type||"application/octet-stream",byte_size:e.size,checksum:t},this.xhr=new XMLHttpRequest,this.xhr.open("POST",r,!0),this.xhr.responseType="json",this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.setRequestHeader("Accept","application/json"),this.xhr.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach((m=>{this.xhr.setRequestHeader(m,o[m])}));let l=Om("csrf-token");l!=null&&this.xhr.setRequestHeader("X-CSRF-Token",l),this.xhr.addEventListener("load",(m=>this.requestDidLoad(m))),this.xhr.addEventListener("error",(m=>this.requestDidError(m)))}get status(){return this.xhr.status}get response(){let{responseType:e,response:t}=this.xhr;return e=="json"?t:JSON.parse(t)}create(e){this.callback=e,this.xhr.send(JSON.stringify({blob:this.attributes}))}requestDidLoad(e){if(this.status>=200&&this.status<300){let{response:t}=this,{direct_upload:r}=t;delete t.direct_upload,this.attributes=t,this.directUploadData=r,this.callback(null,this.toJSON())}else this.requestDidError(e)}requestDidError(e){this.callback(`Error creating Blob for "${this.file.name}". Status: ${this.status}`)}toJSON(){let e={};for(let t in this.attributes)e[t]=this.attributes[t];return e}},sc=class{constructor(e){this.blob=e,this.file=e.file;let{url:t,headers:r}=e.directUploadData;this.xhr=new XMLHttpRequest,this.xhr.open("PUT",t,!0),this.xhr.responseType="text";for(let o in r)this.xhr.setRequestHeader(o,r[o]);this.xhr.addEventListener("load",(o=>this.requestDidLoad(o))),this.xhr.addEventListener("error",(o=>this.requestDidError(o)))}create(e){this.callback=e,this.xhr.send(this.file.slice())}requestDidLoad(e){let{status:t,response:r}=this.xhr;t>=200&&t<300?this.callback(null,r):this.requestDidError(e)}requestDidError(e){this.callback(`Error storing "${this.file.name}". Status: ${this.xhr.status}`)}},Pm=0,Qo=class{constructor(e,t,r,o={}){this.id=++Pm,this.file=e,this.url=t,this.delegate=r,this.customHeaders=o}create(e){nc.create(this.file,((t,r)=>{if(t){e(t);return}let o=new rc(this.file,r,this.url,this.customHeaders);Nf(this.delegate,"directUploadWillCreateBlobWithXHR",o.xhr),o.create((l=>{if(l)e(l);else{let m=new sc(o);Nf(this.delegate,"directUploadWillStoreFileWithXHR",m.xhr),m.create((f=>{f?e(f):e(null,o.toJSON())}))}}))}))}};function Nf(i,e,...t){if(i&&typeof i[e]=="function")return i[e](...t)}var oc=class{constructor(e,t){this.input=e,this.file=t,this.directUpload=new Qo(this.file,this.url,this),this.dispatch("initialize")}start(e){let t=document.createElement("input");t.type="hidden",t.name=this.input.name,this.input.insertAdjacentElement("beforebegin",t),this.dispatch("start"),this.directUpload.create(((r,o)=>{r?(t.parentNode.removeChild(t),this.dispatchError(r)):t.value=o.signed_id,this.dispatch("end"),e(r)}))}uploadRequestDidProgress(e){let t=e.loaded/e.total*100;t&&this.dispatch("progress",{progress:t})}get url(){return this.input.getAttribute("data-direct-upload-url")}dispatch(e,t={}){return t.file=this.file,t.id=this.directUpload.id,Ff(this.input,`direct-upload:${e}`,{detail:t})}dispatchError(e){this.dispatch("error",{error:e}).defaultPrevented||alert(e)}directUploadWillCreateBlobWithXHR(e){this.dispatch("before-blob-request",{xhr:e})}directUploadWillStoreFileWithXHR(e){this.dispatch("before-storage-request",{xhr:e}),e.upload.addEventListener("progress",(t=>this.uploadRequestDidProgress(t)))}},Nm="input[type=file][data-direct-upload-url]:not([disabled])",ac=class{constructor(e){this.form=e,this.inputs=Lm(e,Nm).filter((t=>t.files.length))}start(e){let t=this.createDirectUploadControllers(),r=()=>{let o=t.shift();o?o.start((l=>{l?(e(l),this.dispatch("end")):r()})):(e(),this.dispatch("end"))};this.dispatch("start"),r()}createDirectUploadControllers(){let e=[];return this.inputs.forEach((t=>{jf(t.files).forEach((r=>{let o=new oc(t,r);e.push(o)}))})),e}dispatch(e,t={}){return Ff(this.form,`direct-uploads:${e}`,{detail:t})}},ic="data-direct-uploads-processing",lc=new WeakMap,If=!1;function Im(){If||(If=!0,document.addEventListener("click",Rm,!0),document.addEventListener("submit",Hm,!0),document.addEventListener("ajax:before",Fm))}function Rm(i){let e=i.target.closest("button, input");e&&e.type==="submit"&&e.form&&lc.set(e.form,e)}function Hm(i){Wf(i)}function Fm(i){i.target.tagName=="FORM"&&Wf(i)}function Wf(i){let e=i.target;if(e.hasAttribute(ic)){i.preventDefault();return}let t=new ac(e),{inputs:r}=t;r.length&&(i.preventDefault(),e.setAttribute(ic,""),r.forEach(Wm),t.start((o=>{e.removeAttribute(ic),o?r.forEach(qm):jm(e)})))}function jm(i){let e=lc.get(i)||Hf(i,"input[type=submit], button[type=submit]");if(e){let{disabled:t}=e;e.disabled=!1,e.focus(),e.click(),e.disabled=t}else e=document.createElement("input"),e.type="submit",e.style.display="none",i.appendChild(e),e.click(),i.removeChild(e);lc.delete(i)}function Wm(i){i.disabled=!0}function qm(i){i.disabled=!1}function Bm(){window.ActiveStorage&&Im()}setTimeout(Bm,1);var cc=class{constructor(e,t){this.attachment=e,this.element=t,this.directUpload=new Qo(e.file,this.directUploadUrl,this)}start(){this.directUpload.create(this.directUploadDidComplete.bind(this))}directUploadWillStoreFileWithXHR(e){e.upload.addEventListener("progress",(t=>{let r=t.loaded/t.total*100;this.attachment.setUploadProgress(r)}))}directUploadDidComplete(e,t){if(e)throw new Error(`Direct upload failed: ${e}`);this.attachment.setAttributes({sgid:t.attachable_sgid,url:this.createBlobUrl(t.signed_id,t.filename)})}createBlobUrl(e,t){return this.blobUrlTemplate.replace(":signed_id",e).replace(":filename",encodeURIComponent(t))}get directUploadUrl(){return this.element.dataset.directUploadUrl}get blobUrlTemplate(){return this.element.dataset.blobUrlTemplate}};addEventListener("trix-attachment-add",(i=>{let{attachment:e,target:t}=i;e.file&&new cc(e,t).start()}));var Bf=fi(di(),1);window.$=window.jQuery=Bf.default;var uc=fi(di(),1);(function(i){window.NestedFormEvents=function(){this.addFields=i.proxy(this.addFields,this),this.removeFields=i.proxy(this.removeFields,this)},NestedFormEvents.prototype={addFields:function(e){var t=e.currentTarget,r=i(t).data("association"),o=i("#"+i(t).data("blueprint-id")),l=o.data("blueprint"),m=(i(t).closest(".fields").closestChild("input, textarea, select").eq(0).attr("name")||"").replace(/\[[a-z_]+\]$/,""),f=l.match(new RegExp("\\[([a-z_]+)\\]\\[new_"+r+"\\]"));if(f&&(m=m.replace(new RegExp("\\["+f[1]+"\\]\\[(new_)?\\d+\\]$"),"")),m)for(var y=m.match(/[a-z_]+_attributes(?=\]\[(new_)?\d+\])/g)||[],A=m.match(/[0-9]+/g)||[],S=0;S<y.length;S++)A[S]&&(l=l.replace(new RegExp("(_"+y[S]+")_.+?_","g"),"$1_"+A[S]+"_"),l=l.replace(new RegExp("(\\["+y[S]+"\\])\\[.+?\\]","g"),"$1["+A[S]+"]"));var N=new RegExp("new_"+r,"g"),L=this.newId();l=l.replace(N,L).trim();var M=this.insertFields(l,r,t);return M.trigger({type:"nested:fieldAdded",field:M}).trigger({type:"nested:fieldAdded:"+r,field:M}),!1},newId:function(){return new Date().getTime()},insertFields:function(e,t,r){var o=i(r).data("target");return o?i(e).appendTo(i(o)):i(e).insertBefore(r)},removeFields:function(e){var t=i(e.currentTarget),r=t.data("association"),o=t.prev("input[type=hidden]");o.val("1");var l=t.closest(".fields");return l.hide(),l.trigger({type:"nested:fieldRemoved",field:l}).trigger({type:"nested:fieldRemoved:"+r,field:l}),!1}},window.nestedFormEvents=new NestedFormEvents,i(document).delegate("form a.add_nested_fields","click",nestedFormEvents.addFields).delegate("form a.remove_nested_fields","click",nestedFormEvents.removeFields)})(uc.default);(function(i){i.fn.closestChild=function(e){if(e&&e!=""){var t=[];for(t.push(this);t.length>0;)for(var r=t.shift(),o=r.children(),l=0;l<o.length;++l){var m=i(o[l]);if(m.is(e))return m;t.push(m)}}return i()}})(uc.default);var la={};Za(la,{afterMain:()=>Jf,afterRead:()=>zf,afterWrite:()=>Qf,applyStyles:()=>Rr,arrow:()=>ea,auto:()=>Bs,basePlacements:()=>zi,beforeMain:()=>Yf,beforeRead:()=>Vf,beforeWrite:()=>Gf,bottom:()=>it,clippingParents:()=>fc,computeStyles:()=>Fr,createPopper:()=>Qs,createPopperBase:()=>od,createPopperLite:()=>ad,detectOverflow:()=>Lt,end:()=>vn,eventListeners:()=>jr,flip:()=>ra,hide:()=>sa,left:()=>Ge,main:()=>Kf,modifierPhases:()=>hc,offset:()=>oa,placements:()=>Us,popper:()=>Gn,popperGenerator:()=>nr,popperOffsets:()=>Br,preventOverflow:()=>aa,read:()=>Uf,reference:()=>dc,right:()=>$e,start:()=>Di,top:()=>Ue,variationPlacements:()=>$o,viewport:()=>Vs,write:()=>Xf});var Ue="top",it="bottom",$e="right",Ge="left",Bs="auto",zi=[Ue,it,$e,Ge],Di="start",vn="end",fc="clippingParents",Vs="viewport",Gn="popper",dc="reference",$o=zi.reduce(function(i,e){return i.concat([e+"-"+Di,e+"-"+vn])},[]),Us=[].concat(zi,[Bs]).reduce(function(i,e){return i.concat([e,e+"-"+Di,e+"-"+vn])},[]),Vf="beforeRead",Uf="read",zf="afterRead",Yf="beforeMain",Kf="main",Jf="afterMain",Gf="beforeWrite",Xf="write",Qf="afterWrite",hc=[Vf,Uf,zf,Yf,Kf,Jf,Gf,Xf,Qf];function pt(i){return i?(i.nodeName||"").toLowerCase():null}function qe(i){if(i==null)return window;if(i.toString()!=="[object Window]"){var e=i.ownerDocument;return e&&e.defaultView||window}return i}function Zt(i){var e=qe(i).Element;return i instanceof e||i instanceof Element}function lt(i){var e=qe(i).HTMLElement;return i instanceof e||i instanceof HTMLElement}function Ir(i){if(typeof ShadowRoot>"u")return!1;var e=qe(i).ShadowRoot;return i instanceof e||i instanceof ShadowRoot}function Vm(i){var e=i.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},o=e.attributes[t]||{},l=e.elements[t];!lt(l)||!pt(l)||(Object.assign(l.style,r),Object.keys(o).forEach(function(m){var f=o[m];f===!1?l.removeAttribute(m):l.setAttribute(m,f===!0?"":f)}))})}function Um(i){var e=i.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var o=e.elements[r],l=e.attributes[r]||{},m=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),f=m.reduce(function(y,A){return y[A]="",y},{});!lt(o)||!pt(o)||(Object.assign(o.style,f),Object.keys(l).forEach(function(y){o.removeAttribute(y)}))})}}var Rr={name:"applyStyles",enabled:!0,phase:"write",fn:Vm,effect:Um,requires:["computeStyles"]};function mt(i){return i.split("-")[0]}var hi=Math.max,Xn=Math.min,Yi=Math.round;function Hr(){var i=navigator.userAgentData;return i!=null&&i.brands&&Array.isArray(i.brands)?i.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function zs(){return!/^((?!chrome|android).)*safari/i.test(Hr())}function $t(i,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=i.getBoundingClientRect(),o=1,l=1;e&<(i)&&(o=i.offsetWidth>0&&Yi(r.width)/i.offsetWidth||1,l=i.offsetHeight>0&&Yi(r.height)/i.offsetHeight||1);var m=Zt(i)?qe(i):window,f=m.visualViewport,y=!zs()&&t,A=(r.left+(y&&f?f.offsetLeft:0))/o,S=(r.top+(y&&f?f.offsetTop:0))/l,N=r.width/o,L=r.height/l;return{width:N,height:L,top:S,right:A+N,bottom:S+L,left:A,x:A,y:S}}function Qn(i){var e=$t(i),t=i.offsetWidth,r=i.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:i.offsetLeft,y:i.offsetTop,width:t,height:r}}function Ys(i,e){var t=e.getRootNode&&e.getRootNode();if(i.contains(e))return!0;if(t&&Ir(t)){var r=e;do{if(r&&i.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ot(i){return qe(i).getComputedStyle(i)}function pc(i){return["table","td","th"].indexOf(pt(i))>=0}function wt(i){return((Zt(i)?i.ownerDocument:i.document)||window.document).documentElement}function Ki(i){return pt(i)==="html"?i:i.assignedSlot||i.parentNode||(Ir(i)?i.host:null)||wt(i)}function Zf(i){return!lt(i)||Ot(i).position==="fixed"?null:i.offsetParent}function zm(i){var e=/firefox/i.test(Hr()),t=/Trident/i.test(Hr());if(t&<(i)){var r=Ot(i);if(r.position==="fixed")return null}var o=Ki(i);for(Ir(o)&&(o=o.host);lt(o)&&["html","body"].indexOf(pt(o))<0;){var l=Ot(o);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||e&&l.willChange==="filter"||e&&l.filter&&l.filter!=="none")return o;o=o.parentNode}return null}function pi(i){for(var e=qe(i),t=Zf(i);t&&pc(t)&&Ot(t).position==="static";)t=Zf(t);return t&&(pt(t)==="html"||pt(t)==="body"&&Ot(t).position==="static")?e:t||zm(i)||e}function Zn(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}function $n(i,e,t){return hi(i,Xn(e,t))}function $f(i,e,t){var r=$n(i,e,t);return r>t?t:r}function Ks(){return{top:0,right:0,bottom:0,left:0}}function Js(i){return Object.assign({},Ks(),i)}function Gs(i,e){return e.reduce(function(t,r){return t[r]=i,t},{})}var Ym=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Js(typeof e!="number"?e:Gs(e,zi))};function Km(i){var e,t=i.state,r=i.name,o=i.options,l=t.elements.arrow,m=t.modifiersData.popperOffsets,f=mt(t.placement),y=Zn(f),A=[Ge,$e].indexOf(f)>=0,S=A?"height":"width";if(!(!l||!m)){var N=Ym(o.padding,t),L=Qn(l),M=y==="y"?Ue:Ge,T=y==="y"?it:$e,k=t.rects.reference[S]+t.rects.reference[y]-m[y]-t.rects.popper[S],D=m[y]-t.rects.reference[y],w=pi(l),g=w?y==="y"?w.clientHeight||0:w.clientWidth||0:0,d=k/2-D/2,u=N[M],p=g-L[S]-N[T],s=g/2-L[S]/2+d,j=$n(u,s,p),B=y;t.modifiersData[r]=(e={},e[B]=j,e.centerOffset=j-s,e)}}function Jm(i){var e=i.state,t=i.options,r=t.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||Ys(e.elements.popper,o)&&(e.elements.arrow=o))}var ea={name:"arrow",enabled:!0,phase:"main",fn:Km,effect:Jm,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ei(i){return i.split("-")[1]}var Gm={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Xm(i,e){var t=i.x,r=i.y,o=e.devicePixelRatio||1;return{x:Yi(t*o)/o||0,y:Yi(r*o)/o||0}}function ed(i){var e,t=i.popper,r=i.popperRect,o=i.placement,l=i.variation,m=i.offsets,f=i.position,y=i.gpuAcceleration,A=i.adaptive,S=i.roundOffsets,N=i.isFixed,L=m.x,M=L===void 0?0:L,T=m.y,k=T===void 0?0:T,D=typeof S=="function"?S({x:M,y:k}):{x:M,y:k};M=D.x,k=D.y;var w=m.hasOwnProperty("x"),g=m.hasOwnProperty("y"),d=Ge,u=Ue,p=window;if(A){var s=pi(t),j="clientHeight",B="clientWidth";if(s===qe(t)&&(s=wt(t),Ot(s).position!=="static"&&f==="absolute"&&(j="scrollHeight",B="scrollWidth")),s=s,o===Ue||(o===Ge||o===$e)&&l===vn){u=it;var K=N&&s===p&&p.visualViewport?p.visualViewport.height:s[j];k-=K-r.height,k*=y?1:-1}if(o===Ge||(o===Ue||o===it)&&l===vn){d=$e;var J=N&&s===p&&p.visualViewport?p.visualViewport.width:s[B];M-=J-r.width,M*=y?1:-1}}var ae=Object.assign({position:f},A&&Gm),te=S===!0?Xm({x:M,y:k},qe(t)):{x:M,y:k};if(M=te.x,k=te.y,y){var we;return Object.assign({},ae,(we={},we[u]=g?"0":"",we[d]=w?"0":"",we.transform=(p.devicePixelRatio||1)<=1?"translate("+M+"px, "+k+"px)":"translate3d("+M+"px, "+k+"px, 0)",we))}return Object.assign({},ae,(e={},e[u]=g?k+"px":"",e[d]=w?M+"px":"",e.transform="",e))}function Qm(i){var e=i.state,t=i.options,r=t.gpuAcceleration,o=r===void 0?!0:r,l=t.adaptive,m=l===void 0?!0:l,f=t.roundOffsets,y=f===void 0?!0:f,A={placement:mt(e.placement),variation:ei(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,ed(Object.assign({},A,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:m,roundOffsets:y})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,ed(Object.assign({},A,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:y})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Fr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Qm,data:{}};var ta={passive:!0};function Zm(i){var e=i.state,t=i.instance,r=i.options,o=r.scroll,l=o===void 0?!0:o,m=r.resize,f=m===void 0?!0:m,y=qe(e.elements.popper),A=[].concat(e.scrollParents.reference,e.scrollParents.popper);return l&&A.forEach(function(S){S.addEventListener("scroll",t.update,ta)}),f&&y.addEventListener("resize",t.update,ta),function(){l&&A.forEach(function(S){S.removeEventListener("scroll",t.update,ta)}),f&&y.removeEventListener("resize",t.update,ta)}}var jr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Zm,data:{}};var $m={left:"right",right:"left",bottom:"top",top:"bottom"};function Wr(i){return i.replace(/left|right|bottom|top/g,function(e){return $m[e]})}var eg={start:"end",end:"start"};function ia(i){return i.replace(/start|end/g,function(e){return eg[e]})}function er(i){var e=qe(i),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function tr(i){return $t(wt(i)).left+er(i).scrollLeft}function mc(i,e){var t=qe(i),r=wt(i),o=t.visualViewport,l=r.clientWidth,m=r.clientHeight,f=0,y=0;if(o){l=o.width,m=o.height;var A=zs();(A||!A&&e==="fixed")&&(f=o.offsetLeft,y=o.offsetTop)}return{width:l,height:m,x:f+tr(i),y}}function gc(i){var e,t=wt(i),r=er(i),o=(e=i.ownerDocument)==null?void 0:e.body,l=hi(t.scrollWidth,t.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),m=hi(t.scrollHeight,t.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),f=-r.scrollLeft+tr(i),y=-r.scrollTop;return Ot(o||t).direction==="rtl"&&(f+=hi(t.clientWidth,o?o.clientWidth:0)-l),{width:l,height:m,x:f,y}}function ir(i){var e=Ot(i),t=e.overflow,r=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+o+r)}function na(i){return["html","body","#document"].indexOf(pt(i))>=0?i.ownerDocument.body:lt(i)&&ir(i)?i:na(Ki(i))}function bn(i,e){var t;e===void 0&&(e=[]);var r=na(i),o=r===((t=i.ownerDocument)==null?void 0:t.body),l=qe(r),m=o?[l].concat(l.visualViewport||[],ir(r)?r:[]):r,f=e.concat(m);return o?f:f.concat(bn(Ki(m)))}function qr(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function tg(i,e){var t=$t(i,!1,e==="fixed");return t.top=t.top+i.clientTop,t.left=t.left+i.clientLeft,t.bottom=t.top+i.clientHeight,t.right=t.left+i.clientWidth,t.width=i.clientWidth,t.height=i.clientHeight,t.x=t.left,t.y=t.top,t}function td(i,e,t){return e===Vs?qr(mc(i,t)):Zt(e)?tg(e,t):qr(gc(wt(i)))}function ig(i){var e=bn(Ki(i)),t=["absolute","fixed"].indexOf(Ot(i).position)>=0,r=t&<(i)?pi(i):i;return Zt(r)?e.filter(function(o){return Zt(o)&&Ys(o,r)&&pt(o)!=="body"}):[]}function vc(i,e,t,r){var o=e==="clippingParents"?ig(i):[].concat(e),l=[].concat(o,[t]),m=l[0],f=l.reduce(function(y,A){var S=td(i,A,r);return y.top=hi(S.top,y.top),y.right=Xn(S.right,y.right),y.bottom=Xn(S.bottom,y.bottom),y.left=hi(S.left,y.left),y},td(i,m,r));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function Xs(i){var e=i.reference,t=i.element,r=i.placement,o=r?mt(r):null,l=r?ei(r):null,m=e.x+e.width/2-t.width/2,f=e.y+e.height/2-t.height/2,y;switch(o){case Ue:y={x:m,y:e.y-t.height};break;case it:y={x:m,y:e.y+e.height};break;case $e:y={x:e.x+e.width,y:f};break;case Ge:y={x:e.x-t.width,y:f};break;default:y={x:e.x,y:e.y}}var A=o?Zn(o):null;if(A!=null){var S=A==="y"?"height":"width";switch(l){case Di:y[A]=y[A]-(e[S]/2-t[S]/2);break;case vn:y[A]=y[A]+(e[S]/2-t[S]/2);break;default:}}return y}function Lt(i,e){e===void 0&&(e={});var t=e,r=t.placement,o=r===void 0?i.placement:r,l=t.strategy,m=l===void 0?i.strategy:l,f=t.boundary,y=f===void 0?fc:f,A=t.rootBoundary,S=A===void 0?Vs:A,N=t.elementContext,L=N===void 0?Gn:N,M=t.altBoundary,T=M===void 0?!1:M,k=t.padding,D=k===void 0?0:k,w=Js(typeof D!="number"?D:Gs(D,zi)),g=L===Gn?dc:Gn,d=i.rects.popper,u=i.elements[T?g:L],p=vc(Zt(u)?u:u.contextElement||wt(i.elements.popper),y,S,m),s=$t(i.elements.reference),j=Xs({reference:s,element:d,strategy:"absolute",placement:o}),B=qr(Object.assign({},d,j)),K=L===Gn?B:s,J={top:p.top-K.top+w.top,bottom:K.bottom-p.bottom+w.bottom,left:p.left-K.left+w.left,right:K.right-p.right+w.right},ae=i.modifiersData.offset;if(L===Gn&&ae){var te=ae[o];Object.keys(J).forEach(function(we){var Ce=[$e,it].indexOf(we)>=0?1:-1,ct=[Ue,it].indexOf(we)>=0?"y":"x";J[we]+=te[ct]*Ce})}return J}function bc(i,e){e===void 0&&(e={});var t=e,r=t.placement,o=t.boundary,l=t.rootBoundary,m=t.padding,f=t.flipVariations,y=t.allowedAutoPlacements,A=y===void 0?Us:y,S=ei(r),N=S?f?$o:$o.filter(function(T){return ei(T)===S}):zi,L=N.filter(function(T){return A.indexOf(T)>=0});L.length===0&&(L=N);var M=L.reduce(function(T,k){return T[k]=Lt(i,{placement:k,boundary:o,rootBoundary:l,padding:m})[mt(k)],T},{});return Object.keys(M).sort(function(T,k){return M[T]-M[k]})}function ng(i){if(mt(i)===Bs)return[];var e=Wr(i);return[ia(i),e,ia(e)]}function rg(i){var e=i.state,t=i.options,r=i.name;if(!e.modifiersData[r]._skip){for(var o=t.mainAxis,l=o===void 0?!0:o,m=t.altAxis,f=m===void 0?!0:m,y=t.fallbackPlacements,A=t.padding,S=t.boundary,N=t.rootBoundary,L=t.altBoundary,M=t.flipVariations,T=M===void 0?!0:M,k=t.allowedAutoPlacements,D=e.options.placement,w=mt(D),g=w===D,d=y||(g||!T?[Wr(D)]:ng(D)),u=[D].concat(d).reduce(function(ft,Be){return ft.concat(mt(Be)===Bs?bc(e,{placement:Be,boundary:S,rootBoundary:N,padding:A,flipVariations:T,allowedAutoPlacements:k}):Be)},[]),p=e.rects.reference,s=e.rects.popper,j=new Map,B=!0,K=u[0],J=0;J<u.length;J++){var ae=u[J],te=mt(ae),we=ei(ae)===Di,Ce=[Ue,it].indexOf(te)>=0,ct=Ce?"width":"height",Le=Lt(e,{placement:ae,boundary:S,rootBoundary:N,altBoundary:L,padding:A}),ze=Ce?we?$e:Ge:we?it:Ue;p[ct]>s[ct]&&(ze=Wr(ze));var rt=Wr(ze),Ne=[];if(l&&Ne.push(Le[te]<=0),f&&Ne.push(Le[ze]<=0,Le[rt]<=0),Ne.every(function(ft){return ft})){K=ae,B=!1;break}j.set(ae,Ne)}if(B)for(var gt=T?3:1,ut=function(Be){var et=u.find(function(Pt){var Qe=j.get(Pt);if(Qe)return Qe.slice(0,Be).every(function(Ye){return Ye})});if(et)return K=et,"break"},Xe=gt;Xe>0;Xe--){var _t=ut(Xe);if(_t==="break")break}e.placement!==K&&(e.modifiersData[r]._skip=!0,e.placement=K,e.reset=!0)}}var ra={name:"flip",enabled:!0,phase:"main",fn:rg,requiresIfExists:["offset"],data:{_skip:!1}};function id(i,e,t){return t===void 0&&(t={x:0,y:0}),{top:i.top-e.height-t.y,right:i.right-e.width+t.x,bottom:i.bottom-e.height+t.y,left:i.left-e.width-t.x}}function nd(i){return[Ue,$e,it,Ge].some(function(e){return i[e]>=0})}function sg(i){var e=i.state,t=i.name,r=e.rects.reference,o=e.rects.popper,l=e.modifiersData.preventOverflow,m=Lt(e,{elementContext:"reference"}),f=Lt(e,{altBoundary:!0}),y=id(m,r),A=id(f,o,l),S=nd(y),N=nd(A);e.modifiersData[t]={referenceClippingOffsets:y,popperEscapeOffsets:A,isReferenceHidden:S,hasPopperEscaped:N},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":S,"data-popper-escaped":N})}var sa={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sg};function og(i,e,t){var r=mt(i),o=[Ge,Ue].indexOf(r)>=0?-1:1,l=typeof t=="function"?t(Object.assign({},e,{placement:i})):t,m=l[0],f=l[1];return m=m||0,f=(f||0)*o,[Ge,$e].indexOf(r)>=0?{x:f,y:m}:{x:m,y:f}}function ag(i){var e=i.state,t=i.options,r=i.name,o=t.offset,l=o===void 0?[0,0]:o,m=Us.reduce(function(S,N){return S[N]=og(N,e.rects,l),S},{}),f=m[e.placement],y=f.x,A=f.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=y,e.modifiersData.popperOffsets.y+=A),e.modifiersData[r]=m}var oa={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ag};function lg(i){var e=i.state,t=i.name;e.modifiersData[t]=Xs({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Br={name:"popperOffsets",enabled:!0,phase:"read",fn:lg,data:{}};function yc(i){return i==="x"?"y":"x"}function cg(i){var e=i.state,t=i.options,r=i.name,o=t.mainAxis,l=o===void 0?!0:o,m=t.altAxis,f=m===void 0?!1:m,y=t.boundary,A=t.rootBoundary,S=t.altBoundary,N=t.padding,L=t.tether,M=L===void 0?!0:L,T=t.tetherOffset,k=T===void 0?0:T,D=Lt(e,{boundary:y,rootBoundary:A,padding:N,altBoundary:S}),w=mt(e.placement),g=ei(e.placement),d=!g,u=Zn(w),p=yc(u),s=e.modifiersData.popperOffsets,j=e.rects.reference,B=e.rects.popper,K=typeof k=="function"?k(Object.assign({},e.rects,{placement:e.placement})):k,J=typeof K=="number"?{mainAxis:K,altAxis:K}:Object.assign({mainAxis:0,altAxis:0},K),ae=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,te={x:0,y:0};if(s){if(l){var we,Ce=u==="y"?Ue:Ge,ct=u==="y"?it:$e,Le=u==="y"?"height":"width",ze=s[u],rt=ze+D[Ce],Ne=ze-D[ct],gt=M?-B[Le]/2:0,ut=g===Di?j[Le]:B[Le],Xe=g===Di?-B[Le]:-j[Le],_t=e.elements.arrow,ft=M&&_t?Qn(_t):{width:0,height:0},Be=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Ks(),et=Be[Ce],Pt=Be[ct],Qe=$n(0,j[Le],ft[Le]),Ye=d?j[Le]/2-gt-Qe-et-J.mainAxis:ut-Qe-et-J.mainAxis,Zi=d?-j[Le]/2+gt+Qe+Pt+J.mainAxis:Xe+Qe+Pt+J.mainAxis,Et=e.elements.arrow&&pi(e.elements.arrow),Nt=Et?u==="y"?Et.clientTop||0:Et.clientLeft||0:0,gi=(we=ae?.[u])!=null?we:0,$i=ze+Ye-gi-Nt,ri=ze+Zi-gi,Yt=$n(M?Xn(rt,$i):rt,ze,M?hi(Ne,ri):Ne);s[u]=Yt,te[u]=Yt-ze}if(f){var dt,Mi=u==="x"?Ue:Ge,si=u==="x"?it:$e,It=s[p],tt=p==="y"?"height":"width",Rt=It+D[Mi],xt=It-D[si],oe=[Ue,Ge].indexOf(w)!==-1,We=(dt=ae?.[p])!=null?dt:0,Oi=oe?Rt:It-j[tt]-B[tt]-We+J.altAxis,vi=oe?It+j[tt]+B[tt]-We-J.altAxis:xt,Li=M&&oe?$f(Oi,It,vi):$n(M?Oi:Rt,It,M?vi:xt);s[p]=Li,te[p]=Li-It}e.modifiersData[r]=te}}var aa={name:"preventOverflow",enabled:!0,phase:"main",fn:cg,requiresIfExists:["offset"]};function wc(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}}function _c(i){return i===qe(i)||!lt(i)?er(i):wc(i)}function ug(i){var e=i.getBoundingClientRect(),t=Yi(e.width)/i.offsetWidth||1,r=Yi(e.height)/i.offsetHeight||1;return t!==1||r!==1}function Ec(i,e,t){t===void 0&&(t=!1);var r=lt(e),o=lt(e)&&ug(e),l=wt(e),m=$t(i,o,t),f={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(r||!r&&!t)&&((pt(e)!=="body"||ir(l))&&(f=_c(e)),lt(e)?(y=$t(e,!0),y.x+=e.clientLeft,y.y+=e.clientTop):l&&(y.x=tr(l))),{x:m.left+f.scrollLeft-y.x,y:m.top+f.scrollTop-y.y,width:m.width,height:m.height}}function fg(i){var e=new Map,t=new Set,r=[];i.forEach(function(l){e.set(l.name,l)});function o(l){t.add(l.name);var m=[].concat(l.requires||[],l.requiresIfExists||[]);m.forEach(function(f){if(!t.has(f)){var y=e.get(f);y&&o(y)}}),r.push(l)}return i.forEach(function(l){t.has(l.name)||o(l)}),r}function Sc(i){var e=fg(i);return hc.reduce(function(t,r){return t.concat(e.filter(function(o){return o.phase===r}))},[])}function Ac(i){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(i())})})),e}}function Tc(i){var e=i.reduce(function(t,r){var o=t[r.name];return t[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var rd={placement:"bottom",modifiers:[],strategy:"absolute"};function sd(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function nr(i){i===void 0&&(i={});var e=i,t=e.defaultModifiers,r=t===void 0?[]:t,o=e.defaultOptions,l=o===void 0?rd:o;return function(f,y,A){A===void 0&&(A=l);var S={placement:"bottom",orderedModifiers:[],options:Object.assign({},rd,l),modifiersData:{},elements:{reference:f,popper:y},attributes:{},styles:{}},N=[],L=!1,M={state:S,setOptions:function(w){var g=typeof w=="function"?w(S.options):w;k(),S.options=Object.assign({},l,S.options,g),S.scrollParents={reference:Zt(f)?bn(f):f.contextElement?bn(f.contextElement):[],popper:bn(y)};var d=Sc(Tc([].concat(r,S.options.modifiers)));return S.orderedModifiers=d.filter(function(u){return u.enabled}),T(),M.update()},forceUpdate:function(){if(!L){var w=S.elements,g=w.reference,d=w.popper;if(sd(g,d)){S.rects={reference:Ec(g,pi(d),S.options.strategy==="fixed"),popper:Qn(d)},S.reset=!1,S.placement=S.options.placement,S.orderedModifiers.forEach(function(J){return S.modifiersData[J.name]=Object.assign({},J.data)});for(var u=0;u<S.orderedModifiers.length;u++){if(S.reset===!0){S.reset=!1,u=-1;continue}var p=S.orderedModifiers[u],s=p.fn,j=p.options,B=j===void 0?{}:j,K=p.name;typeof s=="function"&&(S=s({state:S,options:B,name:K,instance:M})||S)}}}},update:Ac(function(){return new Promise(function(D){M.forceUpdate(),D(S)})}),destroy:function(){k(),L=!0}};if(!sd(f,y))return M;M.setOptions(A).then(function(D){!L&&A.onFirstUpdate&&A.onFirstUpdate(D)});function T(){S.orderedModifiers.forEach(function(D){var w=D.name,g=D.options,d=g===void 0?{}:g,u=D.effect;if(typeof u=="function"){var p=u({state:S,name:w,instance:M,options:d}),s=function(){};N.push(p||s)}})}function k(){N.forEach(function(D){return D()}),N=[]}return M}}var od=nr();var dg=[jr,Br,Fr,Rr],ad=nr({defaultModifiers:dg});var hg=[jr,Br,Fr,Rr,oa,ra,aa,ea,sa],Qs=nr({defaultModifiers:hg});var yn=new Map,Cc={set(i,e,t){yn.has(i)||yn.set(i,new Map);let r=yn.get(i);if(!r.has(e)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(e,t)},get(i,e){return yn.has(i)&&yn.get(i).get(e)||null},remove(i,e){if(!yn.has(i))return;let t=yn.get(i);t.delete(e),t.size===0&&yn.delete(i)}},pg=1e6,mg=1e3,Bc="transitionend",Rd=i=>(i&&window.CSS&&window.CSS.escape&&(i=i.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),i),gg=i=>i==null?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase(),vg=i=>{do i+=Math.floor(Math.random()*pg);while(document.getElementById(i));return i},bg=i=>{if(!i)return 0;let{transitionDuration:e,transitionDelay:t}=window.getComputedStyle(i),r=Number.parseFloat(e),o=Number.parseFloat(t);return!r&&!o?0:(e=e.split(",")[0],t=t.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(t))*mg)},Hd=i=>{i.dispatchEvent(new Event(Bc))},Ji=i=>!i||typeof i!="object"?!1:(typeof i.jquery<"u"&&(i=i[0]),typeof i.nodeType<"u"),wn=i=>Ji(i)?i.jquery?i[0]:i:typeof i=="string"&&i.length>0?document.querySelector(Rd(i)):null,Gr=i=>{if(!Ji(i)||i.getClientRects().length===0)return!1;let e=getComputedStyle(i).getPropertyValue("visibility")==="visible",t=i.closest("details:not([open])");if(!t)return e;if(t!==i){let r=i.closest("summary");if(r&&r.parentNode!==t||r===null)return!1}return e},_n=i=>!i||i.nodeType!==Node.ELEMENT_NODE||i.classList.contains("disabled")?!0:typeof i.disabled<"u"?i.disabled:i.hasAttribute("disabled")&&i.getAttribute("disabled")!=="false",Fd=i=>{if(!document.documentElement.attachShadow)return null;if(typeof i.getRootNode=="function"){let e=i.getRootNode();return e instanceof ShadowRoot?e:null}return i instanceof ShadowRoot?i:i.parentNode?Fd(i.parentNode):null},va=()=>{},io=i=>{i.offsetHeight},jd=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,xc=[],yg=i=>{document.readyState==="loading"?(xc.length||document.addEventListener("DOMContentLoaded",()=>{for(let e of xc)e()}),xc.push(i)):i()},ti=()=>document.documentElement.dir==="rtl",ni=i=>{yg(()=>{let e=jd();if(e){let t=i.NAME,r=e.fn[t];e.fn[t]=i.jQueryInterface,e.fn[t].Constructor=i,e.fn[t].noConflict=()=>(e.fn[t]=r,i.jQueryInterface)}})},Ft=(i,e=[],t=i)=>typeof i=="function"?i.call(...e):t,Wd=(i,e,t=!0)=>{if(!t){Ft(i);return}let o=bg(e)+5,l=!1,m=({target:f})=>{f===e&&(l=!0,e.removeEventListener(Bc,m),Ft(i))};e.addEventListener(Bc,m),setTimeout(()=>{l||Hd(e)},o)},Kc=(i,e,t,r)=>{let o=i.length,l=i.indexOf(e);return l===-1?!t&&r?i[o-1]:i[0]:(l+=t?1:-1,r&&(l=(l+o)%o),i[Math.max(0,Math.min(l,o-1))])},wg=/[^.]*(?=\..*)\.|.*/,_g=/\..*/,Eg=/::\d+$/,Dc={},ld=1,qd={mouseenter:"mouseover",mouseleave:"mouseout"},Sg=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Bd(i,e){return e&&`${e}::${ld++}`||i.uidEvent||ld++}function Vd(i){let e=Bd(i);return i.uidEvent=e,Dc[e]=Dc[e]||{},Dc[e]}function Ag(i,e){return function t(r){return Jc(r,{delegateTarget:i}),t.oneOff&&G.off(i,r.type,e),e.apply(i,[r])}}function Tg(i,e,t){return function r(o){let l=i.querySelectorAll(e);for(let{target:m}=o;m&&m!==this;m=m.parentNode)for(let f of l)if(f===m)return Jc(o,{delegateTarget:m}),r.oneOff&&G.off(i,o.type,e,t),t.apply(m,[o])}}function Ud(i,e,t=null){return Object.values(i).find(r=>r.callable===e&&r.delegationSelector===t)}function zd(i,e,t){let r=typeof e=="string",o=r?t:e||t,l=Yd(i);return Sg.has(l)||(l=i),[r,o,l]}function cd(i,e,t,r,o){if(typeof e!="string"||!i)return;let[l,m,f]=zd(e,t,r);e in qd&&(m=(T=>function(k){if(!k.relatedTarget||k.relatedTarget!==k.delegateTarget&&!k.delegateTarget.contains(k.relatedTarget))return T.call(this,k)})(m));let y=Vd(i),A=y[f]||(y[f]={}),S=Ud(A,m,l?t:null);if(S){S.oneOff=S.oneOff&&o;return}let N=Bd(m,e.replace(wg,"")),L=l?Tg(i,t,m):Ag(i,m);L.delegationSelector=l?t:null,L.callable=m,L.oneOff=o,L.uidEvent=N,A[N]=L,i.addEventListener(f,L,l)}function Vc(i,e,t,r,o){let l=Ud(e[t],r,o);l&&(i.removeEventListener(t,l,!!o),delete e[t][l.uidEvent])}function Cg(i,e,t,r){let o=e[t]||{};for(let[l,m]of Object.entries(o))l.includes(r)&&Vc(i,e,t,m.callable,m.delegationSelector)}function Yd(i){return i=i.replace(_g,""),qd[i]||i}var G={on(i,e,t,r){cd(i,e,t,r,!1)},one(i,e,t,r){cd(i,e,t,r,!0)},off(i,e,t,r){if(typeof e!="string"||!i)return;let[o,l,m]=zd(e,t,r),f=m!==e,y=Vd(i),A=y[m]||{},S=e.startsWith(".");if(typeof l<"u"){if(!Object.keys(A).length)return;Vc(i,y,m,l,o?t:null);return}if(S)for(let N of Object.keys(y))Cg(i,y,N,e.slice(1));for(let[N,L]of Object.entries(A)){let M=N.replace(Eg,"");(!f||e.includes(M))&&Vc(i,y,m,L.callable,L.delegationSelector)}},trigger(i,e,t){if(typeof e!="string"||!i)return null;let r=jd(),o=Yd(e),l=e!==o,m=null,f=!0,y=!0,A=!1;l&&r&&(m=r.Event(e,t),r(i).trigger(m),f=!m.isPropagationStopped(),y=!m.isImmediatePropagationStopped(),A=m.isDefaultPrevented());let S=Jc(new Event(e,{bubbles:f,cancelable:!0}),t);return A&&S.preventDefault(),y&&i.dispatchEvent(S),S.defaultPrevented&&m&&m.preventDefault(),S}};function Jc(i,e={}){for(let[t,r]of Object.entries(e))try{i[t]=r}catch{Object.defineProperty(i,t,{configurable:!0,get(){return r}})}return i}function ud(i){if(i==="true")return!0;if(i==="false")return!1;if(i===Number(i).toString())return Number(i);if(i===""||i==="null")return null;if(typeof i!="string")return i;try{return JSON.parse(decodeURIComponent(i))}catch{return i}}function kc(i){return i.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}var Gi={setDataAttribute(i,e,t){i.setAttribute(`data-bs-${kc(e)}`,t)},removeDataAttribute(i,e){i.removeAttribute(`data-bs-${kc(e)}`)},getDataAttributes(i){if(!i)return{};let e={},t=Object.keys(i.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(let r of t){let o=r.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1),e[o]=ud(i.dataset[r])}return e},getDataAttribute(i,e){return ud(i.getAttribute(`data-bs-${kc(e)}`))}},or=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){let r=Ji(t)?Gi.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...Ji(t)?Gi.getDataAttributes(t):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(let[r,o]of Object.entries(t)){let l=e[r],m=Ji(l)?"element":gg(l);if(!new RegExp(o).test(m))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${m}" but expected type "${o}".`)}}},xg="5.3.8",zt=class extends or{constructor(e,t){super(),e=wn(e),e&&(this._element=e,this._config=this._getConfig(t),Cc.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Cc.remove(this._element,this.constructor.DATA_KEY),G.off(this._element,this.constructor.EVENT_KEY);for(let e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,r=!0){Wd(e,t,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Cc.get(wn(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?t:null)}static get VERSION(){return xg}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}},Mc=i=>{let e=i.getAttribute("data-bs-target");if(!e||e==="#"){let t=i.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),e=t&&t!=="#"?t.trim():null}return e?e.split(",").map(t=>Rd(t)).join(","):null},ue={find(i,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,i))},findOne(i,e=document.documentElement){return Element.prototype.querySelector.call(e,i)},children(i,e){return[].concat(...i.children).filter(t=>t.matches(e))},parents(i,e){let t=[],r=i.parentNode.closest(e);for(;r;)t.push(r),r=r.parentNode.closest(e);return t},prev(i,e){let t=i.previousElementSibling;for(;t;){if(t.matches(e))return[t];t=t.previousElementSibling}return[]},next(i,e){let t=i.nextElementSibling;for(;t;){if(t.matches(e))return[t];t=t.nextElementSibling}return[]},focusableChildren(i){let e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,i).filter(t=>!_n(t)&&Gr(t))},getSelectorFromElement(i){let e=Mc(i);return e&&ue.findOne(e)?e:null},getElementFromSelector(i){let e=Mc(i);return e?ue.findOne(e):null},getMultipleElementsFromSelector(i){let e=Mc(i);return e?ue.find(e):[]}},Ca=(i,e="hide")=>{let t=`click.dismiss${i.EVENT_KEY}`,r=i.NAME;G.on(document,t,`[data-bs-dismiss="${r}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),_n(this))return;let l=ue.getElementFromSelector(this)||this.closest(`.${r}`);i.getOrCreateInstance(l)[e]()})},Dg="alert",kg="bs.alert",Kd=`.${kg}`,Mg=`close${Kd}`,Og=`closed${Kd}`,Lg="fade",Pg="show",ba=class i extends zt{static get NAME(){return Dg}close(){if(G.trigger(this._element,Mg).defaultPrevented)return;this._element.classList.remove(Pg);let t=this._element.classList.contains(Lg);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),G.trigger(this._element,Og),this.dispose()}static jQueryInterface(e){return this.each(function(){let t=i.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}};Ca(ba,"close");ni(ba);var Ng="button",Ig="bs.button",Rg=`.${Ig}`,Hg=".data-api",Fg="active",fd='[data-bs-toggle="button"]',jg=`click${Rg}${Hg}`,ya=class i extends zt{static get NAME(){return Ng}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Fg))}static jQueryInterface(e){return this.each(function(){let t=i.getOrCreateInstance(this);e==="toggle"&&t[e]()})}};G.on(document,jg,fd,i=>{i.preventDefault();let e=i.target.closest(fd);ya.getOrCreateInstance(e).toggle()});ni(ya);var Wg="swipe",Xr=".bs.swipe",qg=`touchstart${Xr}`,Bg=`touchmove${Xr}`,Vg=`touchend${Xr}`,Ug=`pointerdown${Xr}`,zg=`pointerup${Xr}`,Yg="touch",Kg="pen",Jg="pointer-event",Gg=40,Xg={endCallback:null,leftCallback:null,rightCallback:null},Qg={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"},wa=class i extends or{constructor(e,t){super(),this._element=e,!(!e||!i.isSupported())&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Xg}static get DefaultType(){return Qg}static get NAME(){return Wg}dispose(){G.off(this._element,Xr)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Ft(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){let e=Math.abs(this._deltaX);if(e<=Gg)return;let t=e/this._deltaX;this._deltaX=0,t&&Ft(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(G.on(this._element,Ug,e=>this._start(e)),G.on(this._element,zg,e=>this._end(e)),this._element.classList.add(Jg)):(G.on(this._element,qg,e=>this._start(e)),G.on(this._element,Bg,e=>this._move(e)),G.on(this._element,Vg,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===Kg||e.pointerType===Yg)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}},Zg="carousel",$g="bs.carousel",Tn=`.${$g}`,Jd=".data-api",ev="ArrowLeft",tv="ArrowRight",iv=500,Zs="next",Vr="prev",zr="left",ma="right",nv=`slide${Tn}`,Oc=`slid${Tn}`,rv=`keydown${Tn}`,sv=`mouseenter${Tn}`,ov=`mouseleave${Tn}`,av=`dragstart${Tn}`,lv=`load${Tn}${Jd}`,cv=`click${Tn}${Jd}`,Gd="carousel",ca="active",uv="slide",fv="carousel-item-end",dv="carousel-item-start",hv="carousel-item-next",pv="carousel-item-prev",Xd=".active",Qd=".carousel-item",mv=Xd+Qd,gv=".carousel-item img",vv=".carousel-indicators",bv="[data-bs-slide], [data-bs-slide-to]",yv='[data-bs-ride="carousel"]',wv={[ev]:ma,[tv]:zr},_v={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Ev={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"},eo=class i extends zt{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=ue.findOne(vv,this._element),this._addEventListeners(),this._config.ride===Gd&&this.cycle()}static get Default(){return _v}static get DefaultType(){return Ev}static get NAME(){return Zg}next(){this._slide(Zs)}nextWhenVisible(){!document.hidden&&Gr(this._element)&&this.next()}prev(){this._slide(Vr)}pause(){this._isSliding&&Hd(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){G.one(this._element,Oc,()=>this.cycle());return}this.cycle()}}to(e){let t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding){G.one(this._element,Oc,()=>this.to(e));return}let r=this._getItemIndex(this._getActive());if(r===e)return;let o=e>r?Zs:Vr;this._slide(o,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&G.on(this._element,rv,e=>this._keydown(e)),this._config.pause==="hover"&&(G.on(this._element,sv,()=>this.pause()),G.on(this._element,ov,()=>this._maybeEnableCycle())),this._config.touch&&wa.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let r of ue.find(gv,this._element))G.on(r,av,o=>o.preventDefault());let t={leftCallback:()=>this._slide(this._directionToOrder(zr)),rightCallback:()=>this._slide(this._directionToOrder(ma)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),iv+this._config.interval))}};this._swipeHelper=new wa(this._element,t)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;let t=wv[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;let t=ue.findOne(Xd,this._indicatorsElement);t.classList.remove(ca),t.removeAttribute("aria-current");let r=ue.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(ca),r.setAttribute("aria-current","true"))}_updateInterval(){let e=this._activeElement||this._getActive();if(!e)return;let t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;let r=this._getActive(),o=e===Zs,l=t||Kc(this._getItems(),r,o,this._config.wrap);if(l===r)return;let m=this._getItemIndex(l),f=M=>G.trigger(this._element,M,{relatedTarget:l,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:m});if(f(nv).defaultPrevented||!r||!l)return;let A=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(m),this._activeElement=l;let S=o?dv:fv,N=o?hv:pv;l.classList.add(N),io(l),r.classList.add(S),l.classList.add(S);let L=()=>{l.classList.remove(S,N),l.classList.add(ca),r.classList.remove(ca,N,S),this._isSliding=!1,f(Oc)};this._queueCallback(L,r,this._isAnimated()),A&&this.cycle()}_isAnimated(){return this._element.classList.contains(uv)}_getActive(){return ue.findOne(mv,this._element)}_getItems(){return ue.find(Qd,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return ti()?e===zr?Vr:Zs:e===zr?Zs:Vr}_orderToDirection(e){return ti()?e===Vr?zr:ma:e===Vr?ma:zr}static jQueryInterface(e){return this.each(function(){let t=i.getOrCreateInstance(this,e);if(typeof e=="number"){t.to(e);return}if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}};G.on(document,cv,bv,function(i){let e=ue.getElementFromSelector(this);if(!e||!e.classList.contains(Gd))return;i.preventDefault();let t=eo.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){t.to(r),t._maybeEnableCycle();return}if(Gi.getDataAttribute(this,"slide")==="next"){t.next(),t._maybeEnableCycle();return}t.prev(),t._maybeEnableCycle()});G.on(window,lv,()=>{let i=ue.find(yv);for(let e of i)eo.getOrCreateInstance(e)});ni(eo);var Sv="collapse",Av="bs.collapse",no=`.${Av}`,Tv=".data-api",Cv=`show${no}`,xv=`shown${no}`,Dv=`hide${no}`,kv=`hidden${no}`,Mv=`click${no}${Tv}`,Lc="show",Kr="collapse",ua="collapsing",Ov="collapsed",Lv=`:scope .${Kr} .${Kr}`,Pv="collapse-horizontal",Nv="width",Iv="height",Rv=".collapse.show, .collapse.collapsing",Uc='[data-bs-toggle="collapse"]',Hv={parent:null,toggle:!0},Fv={parent:"(null|element)",toggle:"boolean"},En=class i extends zt{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];let r=ue.find(Uc);for(let o of r){let l=ue.getSelectorFromElement(o),m=ue.find(l).filter(f=>f===this._element);l!==null&&m.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Hv}static get DefaultType(){return Fv}static get NAME(){return Sv}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(Rv).filter(f=>f!==this._element).map(f=>i.getOrCreateInstance(f,{toggle:!1}))),e.length&&e[0]._isTransitioning||G.trigger(this._element,Cv).defaultPrevented)return;for(let f of e)f.hide();let r=this._getDimension();this._element.classList.remove(Kr),this._element.classList.add(ua),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let o=()=>{this._isTransitioning=!1,this._element.classList.remove(ua),this._element.classList.add(Kr,Lc),this._element.style[r]="",G.trigger(this._element,xv)},m=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[r]=`${this._element[m]}px`}hide(){if(this._isTransitioning||!this._isShown()||G.trigger(this._element,Dv).defaultPrevented)return;let t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,io(this._element),this._element.classList.add(ua),this._element.classList.remove(Kr,Lc);for(let o of this._triggerArray){let l=ue.getElementFromSelector(o);l&&!this._isShown(l)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;let r=()=>{this._isTransitioning=!1,this._element.classList.remove(ua),this._element.classList.add(Kr),G.trigger(this._element,kv)};this._element.style[t]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Lc)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=wn(e.parent),e}_getDimension(){return this._element.classList.contains(Pv)?Nv:Iv}_initializeChildren(){if(!this._config.parent)return;let e=this._getFirstLevelChildren(Uc);for(let t of e){let r=ue.getElementFromSelector(t);r&&this._addAriaAndCollapsedClass([t],this._isShown(r))}}_getFirstLevelChildren(e){let t=ue.find(Lv,this._config.parent);return ue.find(e,this._config.parent).filter(r=>!t.includes(r))}_addAriaAndCollapsedClass(e,t){if(e.length)for(let r of e)r.classList.toggle(Ov,!t),r.setAttribute("aria-expanded",t)}static jQueryInterface(e){let t={};return typeof e=="string"&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){let r=i.getOrCreateInstance(this,t);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}};G.on(document,Mv,Uc,function(i){(i.target.tagName==="A"||i.delegateTarget&&i.delegateTarget.tagName==="A")&&i.preventDefault();for(let e of ue.getMultipleElementsFromSelector(this))En.getOrCreateInstance(e,{toggle:!1}).toggle()});ni(En);var dd="dropdown",jv="bs.dropdown",ar=`.${jv}`,Gc=".data-api",Wv="Escape",hd="Tab",qv="ArrowUp",pd="ArrowDown",Bv=2,Vv=`hide${ar}`,Uv=`hidden${ar}`,zv=`show${ar}`,Yv=`shown${ar}`,Zd=`click${ar}${Gc}`,$d=`keydown${ar}${Gc}`,Kv=`keyup${ar}${Gc}`,Yr="show",Jv="dropup",Gv="dropend",Xv="dropstart",Qv="dropup-center",Zv="dropdown-center",rr='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',$v=`${rr}.${Yr}`,ga=".dropdown-menu",eb=".navbar",tb=".navbar-nav",ib=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",nb=ti()?"top-end":"top-start",rb=ti()?"top-start":"top-end",sb=ti()?"bottom-end":"bottom-start",ob=ti()?"bottom-start":"bottom-end",ab=ti()?"left-start":"right-start",lb=ti()?"right-start":"left-start",cb="top",ub="bottom",fb={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},db={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"},Sn=class i extends zt{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=ue.next(this._element,ga)[0]||ue.prev(this._element,ga)[0]||ue.findOne(ga,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return fb}static get DefaultType(){return db}static get NAME(){return dd}toggle(){return this._isShown()?this.hide():this.show()}show(){if(_n(this._element)||this._isShown())return;let e={relatedTarget:this._element};if(!G.trigger(this._element,zv,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(tb))for(let r of[].concat(...document.body.children))G.on(r,"mouseover",va);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Yr),this._element.classList.add(Yr),G.trigger(this._element,Yv,e)}}hide(){if(_n(this._element)||!this._isShown())return;let e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!G.trigger(this._element,Vv,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(let r of[].concat(...document.body.children))G.off(r,"mouseover",va);this._popper&&this._popper.destroy(),this._menu.classList.remove(Yr),this._element.classList.remove(Yr),this._element.setAttribute("aria-expanded","false"),Gi.removeDataAttribute(this._menu,"popper"),G.trigger(this._element,Uv,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!Ji(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${dd.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof la>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;this._config.reference==="parent"?e=this._parent:Ji(this._config.reference)?e=wn(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);let t=this._getPopperConfig();this._popper=Qs(e,this._menu,t)}_isShown(){return this._menu.classList.contains(Yr)}_getPlacement(){let e=this._parent;if(e.classList.contains(Gv))return ab;if(e.classList.contains(Xv))return lb;if(e.classList.contains(Qv))return cb;if(e.classList.contains(Zv))return ub;let t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(Jv)?t?rb:nb:t?ob:sb}_detectNavbar(){return this._element.closest(eb)!==null}_getOffset(){let{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_getPopperConfig(){let e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Gi.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Ft(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){let r=ue.find(ib,this._menu).filter(o=>Gr(o));r.length&&Kc(r,t,e===pd,!r.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){let t=i.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===Bv||e.type==="keyup"&&e.key!==hd)return;let t=ue.find($v);for(let r of t){let o=i.getInstance(r);if(!o||o._config.autoClose===!1)continue;let l=e.composedPath(),m=l.includes(o._menu);if(l.includes(o._element)||o._config.autoClose==="inside"&&!m||o._config.autoClose==="outside"&&m||o._menu.contains(e.target)&&(e.type==="keyup"&&e.key===hd||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;let f={relatedTarget:o._element};e.type==="click"&&(f.clickEvent=e),o._completeHide(f)}}static dataApiKeydownHandler(e){let t=/input|textarea/i.test(e.target.tagName),r=e.key===Wv,o=[qv,pd].includes(e.key);if(!o&&!r||t&&!r)return;e.preventDefault();let l=this.matches(rr)?this:ue.prev(this,rr)[0]||ue.next(this,rr)[0]||ue.findOne(rr,e.delegateTarget.parentNode),m=i.getOrCreateInstance(l);if(o){e.stopPropagation(),m.show(),m._selectMenuItem(e);return}m._isShown()&&(e.stopPropagation(),m.hide(),l.focus())}};G.on(document,$d,rr,Sn.dataApiKeydownHandler);G.on(document,$d,ga,Sn.dataApiKeydownHandler);G.on(document,Zd,Sn.clearMenus);G.on(document,Kv,Sn.clearMenus);G.on(document,Zd,rr,function(i){i.preventDefault(),Sn.getOrCreateInstance(this).toggle()});ni(Sn);var eh="backdrop",hb="fade",md="show",gd=`mousedown.bs.${eh}`,pb={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},mb={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"},_a=class extends or{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return pb}static get DefaultType(){return mb}static get NAME(){return eh}show(e){if(!this._config.isVisible){Ft(e);return}this._append();let t=this._getElement();this._config.isAnimated&&io(t),t.classList.add(md),this._emulateAnimation(()=>{Ft(e)})}hide(e){if(!this._config.isVisible){Ft(e);return}this._getElement().classList.remove(md),this._emulateAnimation(()=>{this.dispose(),Ft(e)})}dispose(){this._isAppended&&(G.off(this._element,gd),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){let e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(hb),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=wn(e.rootElement),e}_append(){if(this._isAppended)return;let e=this._getElement();this._config.rootElement.append(e),G.on(e,gd,()=>{Ft(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){Wd(e,this._getElement(),this._config.isAnimated)}},gb="focustrap",vb="bs.focustrap",Ea=`.${vb}`,bb=`focusin${Ea}`,yb=`keydown.tab${Ea}`,wb="Tab",_b="forward",vd="backward",Eb={autofocus:!0,trapElement:null},Sb={autofocus:"boolean",trapElement:"element"},Sa=class extends or{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Eb}static get DefaultType(){return Sb}static get NAME(){return gb}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),G.off(document,Ea),G.on(document,bb,e=>this._handleFocusin(e)),G.on(document,yb,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,G.off(document,Ea))}_handleFocusin(e){let{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;let r=ue.focusableChildren(t);r.length===0?t.focus():this._lastTabNavDirection===vd?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===wb&&(this._lastTabNavDirection=e.shiftKey?vd:_b)}},bd=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",yd=".sticky-top",fa="padding-right",wd="margin-right",to=class{constructor(){this._element=document.body}getWidth(){let e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){let e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,fa,t=>t+e),this._setElementAttributes(bd,fa,t=>t+e),this._setElementAttributes(yd,wd,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,fa),this._resetElementAttributes(bd,fa),this._resetElementAttributes(yd,wd)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,r){let o=this.getWidth(),l=m=>{if(m!==this._element&&window.innerWidth>m.clientWidth+o)return;this._saveInitialAttribute(m,t);let f=window.getComputedStyle(m).getPropertyValue(t);m.style.setProperty(t,`${r(Number.parseFloat(f))}px`)};this._applyManipulationCallback(e,l)}_saveInitialAttribute(e,t){let r=e.style.getPropertyValue(t);r&&Gi.setDataAttribute(e,t,r)}_resetElementAttributes(e,t){let r=o=>{let l=Gi.getDataAttribute(o,t);if(l===null){o.style.removeProperty(t);return}Gi.removeDataAttribute(o,t),o.style.setProperty(t,l)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,t){if(Ji(e)){t(e);return}for(let r of ue.find(e,this._element))t(r)}},Ab="modal",Tb="bs.modal",ii=`.${Tb}`,Cb=".data-api",xb="Escape",Db=`hide${ii}`,kb=`hidePrevented${ii}`,th=`hidden${ii}`,ih=`show${ii}`,Mb=`shown${ii}`,Ob=`resize${ii}`,Lb=`click.dismiss${ii}`,Pb=`mousedown.dismiss${ii}`,Nb=`keydown.dismiss${ii}`,Ib=`click${ii}${Cb}`,_d="modal-open",Rb="fade",Ed="show",Pc="modal-static",Hb=".modal.show",Fb=".modal-dialog",jb=".modal-body",Wb='[data-bs-toggle="modal"]',qb={backdrop:!0,focus:!0,keyboard:!0},Bb={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"},ki=class i extends zt{constructor(e,t){super(e,t),this._dialog=ue.findOne(Fb,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new to,this._addEventListeners()}static get Default(){return qb}static get DefaultType(){return Bb}static get NAME(){return Ab}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||G.trigger(this._element,ih,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(_d),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||G.trigger(this._element,Db).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ed),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){G.off(window,ii),G.off(this._dialog,ii),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new _a({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Sa({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;let t=ue.findOne(jb,this._dialog);t&&(t.scrollTop=0),io(this._element),this._element.classList.add(Ed);let r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,G.trigger(this._element,Mb,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){G.on(this._element,Nb,e=>{if(e.key===xb){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),G.on(window,Ob,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),G.on(this._element,Pb,e=>{G.one(this._element,Lb,t=>{if(!(this._element!==e.target||this._element!==t.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(_d),this._resetAdjustments(),this._scrollBar.reset(),G.trigger(this._element,th)})}_isAnimated(){return this._element.classList.contains(Rb)}_triggerBackdropTransition(){if(G.trigger(this._element,kb).defaultPrevented)return;let t=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(Pc)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Pc),this._queueCallback(()=>{this._element.classList.remove(Pc),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),r=t>0;if(r&&!e){let o=ti()?"paddingLeft":"paddingRight";this._element.style[o]=`${t}px`}if(!r&&e){let o=ti()?"paddingRight":"paddingLeft";this._element.style[o]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){let r=i.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](t)}})}};G.on(document,Ib,Wb,function(i){let e=ue.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&i.preventDefault(),G.one(e,ih,o=>{o.defaultPrevented||G.one(e,th,()=>{Gr(this)&&this.focus()})});let t=ue.findOne(Hb);t&&ki.getInstance(t).hide(),ki.getOrCreateInstance(e).toggle(this)});Ca(ki);ni(ki);var Vb="offcanvas",Ub="bs.offcanvas",Xi=`.${Ub}`,nh=".data-api",zb=`load${Xi}${nh}`,Yb="Escape",Sd="show",Ad="showing",Td="hiding",Kb="offcanvas-backdrop",rh=".offcanvas.show",Jb=`show${Xi}`,Gb=`shown${Xi}`,Xb=`hide${Xi}`,Cd=`hidePrevented${Xi}`,sh=`hidden${Xi}`,Qb=`resize${Xi}`,Zb=`click${Xi}${nh}`,$b=`keydown.dismiss${Xi}`,ey='[data-bs-toggle="offcanvas"]',ty={backdrop:!0,keyboard:!0,scroll:!1},iy={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"},An=class i extends zt{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return ty}static get DefaultType(){return iy}static get NAME(){return Vb}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||G.trigger(this._element,Jb,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new to().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ad);let r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Sd),this._element.classList.remove(Ad),G.trigger(this._element,Gb,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||G.trigger(this._element,Xb).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Td),this._backdrop.hide();let t=()=>{this._element.classList.remove(Sd,Td),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new to().reset(),G.trigger(this._element,sh)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let e=()=>{if(this._config.backdrop==="static"){G.trigger(this._element,Cd);return}this.hide()},t=!!this._config.backdrop;return new _a({className:Kb,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?e:null})}_initializeFocusTrap(){return new Sa({trapElement:this._element})}_addEventListeners(){G.on(this._element,$b,e=>{if(e.key===Yb){if(this._config.keyboard){this.hide();return}G.trigger(this._element,Cd)}})}static jQueryInterface(e){return this.each(function(){let t=i.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}};G.on(document,Zb,ey,function(i){let e=ue.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),_n(this))return;G.one(e,sh,()=>{Gr(this)&&this.focus()});let t=ue.findOne(rh);t&&t!==e&&An.getInstance(t).hide(),An.getOrCreateInstance(e).toggle(this)});G.on(window,zb,()=>{for(let i of ue.find(rh))An.getOrCreateInstance(i).show()});G.on(window,Qb,()=>{for(let i of ue.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(i).position!=="fixed"&&An.getOrCreateInstance(i).hide()});Ca(An);ni(An);var ny=/^aria-[\w-]*$/i,oh={"*":["class","dir","id","lang","role",ny],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},ry=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),sy=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,oy=(i,e)=>{let t=i.nodeName.toLowerCase();return e.includes(t)?ry.has(t)?!!sy.test(i.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(t))};function ay(i,e,t){if(!i.length)return i;if(t&&typeof t=="function")return t(i);let o=new window.DOMParser().parseFromString(i,"text/html"),l=[].concat(...o.body.querySelectorAll("*"));for(let m of l){let f=m.nodeName.toLowerCase();if(!Object.keys(e).includes(f)){m.remove();continue}let y=[].concat(...m.attributes),A=[].concat(e["*"]||[],e[f]||[]);for(let S of y)oy(S,A)||m.removeAttribute(S.nodeName)}return o.body.innerHTML}var ly="TemplateFactory",cy={allowList:oh,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},uy={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},fy={entry:"(string|element|function|null)",selector:"(string|element)"},zc=class extends or{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return cy}static get DefaultType(){return uy}static get NAME(){return ly}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){let e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(let[o,l]of Object.entries(this._config.content))this._setContent(e,l,o);let t=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&t.classList.add(...r.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(let[t,r]of Object.entries(e))super._typeCheckConfig({selector:t,entry:r},fy)}_setContent(e,t,r){let o=ue.findOne(r,e);if(o){if(t=this._resolvePossibleFunction(t),!t){o.remove();return}if(Ji(t)){this._putElementInTemplate(wn(t),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(t);return}o.textContent=t}}_maybeSanitize(e){return this._config.sanitize?ay(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Ft(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html){t.innerHTML="",t.append(e);return}t.textContent=e.textContent}},dy="tooltip",hy=new Set(["sanitize","allowList","sanitizeFn"]),Nc="fade",py="modal",da="show",my=".tooltip-inner",xd=`.${py}`,Dd="hide.bs.modal",$s="hover",Ic="focus",Rc="click",gy="manual",vy="hide",by="hidden",yy="show",wy="shown",_y="inserted",Ey="click",Sy="focusin",Ay="focusout",Ty="mouseenter",Cy="mouseleave",xy={AUTO:"auto",TOP:"top",RIGHT:ti()?"left":"right",BOTTOM:"bottom",LEFT:ti()?"right":"left"},Dy={allowList:oh,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},ky={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"},Jr=class i extends zt{constructor(e,t){if(typeof la>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Dy}static get DefaultType(){return ky}static get NAME(){return dy}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),G.off(this._element.closest(xd),Dd,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;let e=G.trigger(this._element,this.constructor.eventName(yy)),r=(Fd(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this._disposePopper();let o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));let{container:l}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(l.append(o),G.trigger(this._element,this.constructor.eventName(_y))),this._popper=this._createPopper(o),o.classList.add(da),"ontouchstart"in document.documentElement)for(let f of[].concat(...document.body.children))G.on(f,"mouseover",va);let m=()=>{G.trigger(this._element,this.constructor.eventName(wy)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(m,this.tip,this._isAnimated())}hide(){if(!this._isShown()||G.trigger(this._element,this.constructor.eventName(vy)).defaultPrevented)return;if(this._getTipElement().classList.remove(da),"ontouchstart"in document.documentElement)for(let o of[].concat(...document.body.children))G.off(o,"mouseover",va);this._activeTrigger[Rc]=!1,this._activeTrigger[Ic]=!1,this._activeTrigger[$s]=!1,this._isHovered=null;let r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),G.trigger(this._element,this.constructor.eventName(by)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){let t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Nc,da),t.classList.add(`bs-${this.constructor.NAME}-auto`);let r=vg(this.constructor.NAME).toString();return t.setAttribute("id",r),this._isAnimated()&&t.classList.add(Nc),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new zc({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[my]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Nc)}_isShown(){return this.tip&&this.tip.classList.contains(da)}_createPopper(e){let t=Ft(this._config.placement,[this,e,this._element]),r=xy[t.toUpperCase()];return Qs(this._element,e,this._getPopperConfig(r))}_getOffset(){let{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_resolvePossibleFunction(e){return Ft(e,[this._element,this._element])}_getPopperConfig(e){let t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...t,...Ft(this._config.popperConfig,[void 0,t])}}_setListeners(){let e=this._config.trigger.split(" ");for(let t of e)if(t==="click")G.on(this._element,this.constructor.eventName(Ey),this._config.selector,r=>{let o=this._initializeOnDelegatedTarget(r);o._activeTrigger[Rc]=!(o._isShown()&&o._activeTrigger[Rc]),o.toggle()});else if(t!==gy){let r=t===$s?this.constructor.eventName(Ty):this.constructor.eventName(Sy),o=t===$s?this.constructor.eventName(Cy):this.constructor.eventName(Ay);G.on(this._element,r,this._config.selector,l=>{let m=this._initializeOnDelegatedTarget(l);m._activeTrigger[l.type==="focusin"?Ic:$s]=!0,m._enter()}),G.on(this._element,o,this._config.selector,l=>{let m=this._initializeOnDelegatedTarget(l);m._activeTrigger[l.type==="focusout"?Ic:$s]=m._element.contains(l.relatedTarget),m._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},G.on(this._element.closest(xd),Dd,this._hideModalHandler)}_fixTitle(){let e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){let t=Gi.getDataAttributes(this._element);for(let r of Object.keys(t))hy.has(r)&&delete t[r];return e={...t,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:wn(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){let e={};for(let[t,r]of Object.entries(this._config))this.constructor.Default[t]!==r&&(e[t]=r);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){let t=i.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}};ni(Jr);var My="popover",Oy=".popover-header",Ly=".popover-body",Py={...Jr.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},Ny={...Jr.DefaultType,content:"(null|string|element|function)"},Yc=class i extends Jr{static get Default(){return Py}static get DefaultType(){return Ny}static get NAME(){return My}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Oy]:this._getTitle(),[Ly]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){let t=i.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e]()}})}};ni(Yc);var Iy="scrollspy",Ry="bs.scrollspy",Xc=`.${Ry}`,Hy=".data-api",Fy=`activate${Xc}`,kd=`click${Xc}`,jy=`load${Xc}${Hy}`,Wy="dropdown-item",Ur="active",qy='[data-bs-spy="scroll"]',Hc="[href]",By=".nav, .list-group",Md=".nav-link",Vy=".nav-item",Uy=".list-group-item",zy=`${Md}, ${Vy} > ${Md}, ${Uy}`,Yy=".dropdown",Ky=".dropdown-toggle",Jy={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Gy={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"},Aa=class i extends zt{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Jy}static get DefaultType(){return Gy}static get NAME(){return Iy}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=wn(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(t=>Number.parseFloat(t))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(G.off(this._config.target,kd),G.on(this._config.target,kd,Hc,e=>{let t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();let r=this._rootElement||window,o=t.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:o,behavior:"smooth"});return}r.scrollTop=o}}))}_getNewObserver(){let e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),e)}_observerCallback(e){let t=m=>this._targetLinks.get(`#${m.target.id}`),r=m=>{this._previousScrollData.visibleEntryTop=m.target.offsetTop,this._process(t(m))},o=(this._rootElement||document.documentElement).scrollTop,l=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(let m of e){if(!m.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(m));continue}let f=m.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(l&&f){if(r(m),!o)return;continue}!l&&!f&&r(m)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let e=ue.find(Hc,this._config.target);for(let t of e){if(!t.hash||_n(t))continue;let r=ue.findOne(decodeURI(t.hash),this._element);Gr(r)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,r))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Ur),this._activateParents(e),G.trigger(this._element,Fy,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(Wy)){ue.findOne(Ky,e.closest(Yy)).classList.add(Ur);return}for(let t of ue.parents(e,By))for(let r of ue.prev(t,zy))r.classList.add(Ur)}_clearActiveClass(e){e.classList.remove(Ur);let t=ue.find(`${Hc}.${Ur}`,e);for(let r of t)r.classList.remove(Ur)}static jQueryInterface(e){return this.each(function(){let t=i.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}};G.on(window,jy,()=>{for(let i of ue.find(qy))Aa.getOrCreateInstance(i)});ni(Aa);var Xy="tab",Qy="bs.tab",lr=`.${Qy}`,Zy=`hide${lr}`,$y=`hidden${lr}`,ew=`show${lr}`,tw=`shown${lr}`,iw=`click${lr}`,nw=`keydown${lr}`,rw=`load${lr}`,sw="ArrowLeft",Od="ArrowRight",ow="ArrowUp",Ld="ArrowDown",Fc="Home",Pd="End",sr="active",Nd="fade",jc="show",aw="dropdown",ah=".dropdown-toggle",lw=".dropdown-menu",Wc=`:not(${ah})`,cw='.list-group, .nav, [role="tablist"]',uw=".nav-item, .list-group-item",fw=`.nav-link${Wc}, .list-group-item${Wc}, [role="tab"]${Wc}`,lh='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',qc=`${fw}, ${lh}`,dw=`.${sr}[data-bs-toggle="tab"], .${sr}[data-bs-toggle="pill"], .${sr}[data-bs-toggle="list"]`,mi=class i extends zt{constructor(e){super(e),this._parent=this._element.closest(cw),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),G.on(this._element,nw,t=>this._keydown(t)))}static get NAME(){return Xy}show(){let e=this._element;if(this._elemIsActive(e))return;let t=this._getActiveElem(),r=t?G.trigger(t,Zy,{relatedTarget:e}):null;G.trigger(e,ew,{relatedTarget:t}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(sr),this._activate(ue.getElementFromSelector(e));let r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(jc);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),G.trigger(e,tw,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(Nd))}_deactivate(e,t){if(!e)return;e.classList.remove(sr),e.blur(),this._deactivate(ue.getElementFromSelector(e));let r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(jc);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),G.trigger(e,$y,{relatedTarget:t})};this._queueCallback(r,e,e.classList.contains(Nd))}_keydown(e){if(![sw,Od,ow,Ld,Fc,Pd].includes(e.key))return;e.stopPropagation(),e.preventDefault();let t=this._getChildren().filter(o=>!_n(o)),r;if([Fc,Pd].includes(e.key))r=t[e.key===Fc?0:t.length-1];else{let o=[Od,Ld].includes(e.key);r=Kc(t,e.target,o,!0)}r&&(r.focus({preventScroll:!0}),i.getOrCreateInstance(r).show())}_getChildren(){return ue.find(qc,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(let r of t)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);let t=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",t),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){let t=ue.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){let r=this._getOuterElement(e);if(!r.classList.contains(aw))return;let o=(l,m)=>{let f=ue.findOne(l,r);f&&f.classList.toggle(m,t)};o(ah,sr),o(lw,jc),r.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,r){e.hasAttribute(t)||e.setAttribute(t,r)}_elemIsActive(e){return e.classList.contains(sr)}_getInnerElement(e){return e.matches(qc)?e:ue.findOne(qc,e)}_getOuterElement(e){return e.closest(uw)||e}static jQueryInterface(e){return this.each(function(){let t=i.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}};G.on(document,iw,lh,function(i){["A","AREA"].includes(this.tagName)&&i.preventDefault(),!_n(this)&&mi.getOrCreateInstance(this).show()});G.on(window,rw,()=>{for(let i of ue.find(dw))mi.getOrCreateInstance(i)});ni(mi);var hw="toast",pw="bs.toast",Cn=`.${pw}`,mw=`mouseover${Cn}`,gw=`mouseout${Cn}`,vw=`focusin${Cn}`,bw=`focusout${Cn}`,yw=`hide${Cn}`,ww=`hidden${Cn}`,_w=`show${Cn}`,Ew=`shown${Cn}`,Sw="fade",Id="hide",ha="show",pa="showing",Aw={animation:"boolean",autohide:"boolean",delay:"number"},Tw={animation:!0,autohide:!0,delay:5e3},Ta=class i extends zt{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Tw}static get DefaultType(){return Aw}static get NAME(){return hw}show(){if(G.trigger(this._element,_w).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Sw);let t=()=>{this._element.classList.remove(pa),G.trigger(this._element,Ew),this._maybeScheduleHide()};this._element.classList.remove(Id),io(this._element),this._element.classList.add(ha,pa),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown()||G.trigger(this._element,yw).defaultPrevented)return;let t=()=>{this._element.classList.add(Id),this._element.classList.remove(pa,ha),G.trigger(this._element,ww)};this._element.classList.add(pa),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ha),super.dispose()}isShown(){return this._element.classList.contains(ha)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=t;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=t;break}}if(t){this._clearTimeout();return}let r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){G.on(this._element,mw,e=>this._onInteraction(e,!0)),G.on(this._element,gw,e=>this._onInteraction(e,!1)),G.on(this._element,vw,e=>this._onInteraction(e,!0)),G.on(this._element,bw,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){let t=i.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof t[e]>"u")throw new TypeError(`No method named "${e}"`);t[e](this)}})}};Ca(Ta);ni(Ta);(function(i){"use strict";typeof define=="function"&&define.amd?define(["jquery"],i):i(jQuery)})(function(i){"use strict";return i.ui=i.ui||{},i.ui.version="1.13.3"});(function(i){"use strict";typeof define=="function"&&define.amd?define(["jquery","./version"],i):i(jQuery)})(function(i){"use strict";return i.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}});(function(i){"use strict";typeof define=="function"&&define.amd?define(["jquery","./version"],i):i(jQuery)})(function(i){"use strict";return(function(){var e,t=Math.max,r=Math.abs,o=/left|center|right/,l=/top|center|bottom/,m=/[\+\-]\d+(\.[\d]+)?%?/,f=/^\w+/,y=/%$/,A=i.fn.position;function S(T,k,D){return[parseFloat(T[0])*(y.test(T[0])?k/100:1),parseFloat(T[1])*(y.test(T[1])?D/100:1)]}function N(T,k){return parseInt(i.css(T,k),10)||0}function L(T){return T!=null&&T===T.window}function M(T){var k=T[0];return k.nodeType===9?{width:T.width(),height:T.height(),offset:{top:0,left:0}}:L(k)?{width:T.width(),height:T.height(),offset:{top:T.scrollTop(),left:T.scrollLeft()}}:k.preventDefault?{width:0,height:0,offset:{top:k.pageY,left:k.pageX}}:{width:T.outerWidth(),height:T.outerHeight(),offset:T.offset()}}i.position={scrollbarWidth:function(){if(e!==void 0)return e;var T,k,D=i("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),w=D.children()[0];return i("body").append(D),T=w.offsetWidth,D.css("overflow","scroll"),k=w.offsetWidth,T===k&&(k=D[0].clientWidth),D.remove(),e=T-k},getScrollInfo:function(T){var k=T.isWindow||T.isDocument?"":T.element.css("overflow-x"),D=T.isWindow||T.isDocument?"":T.element.css("overflow-y"),w=k==="scroll"||k==="auto"&&T.width<T.element[0].scrollWidth,g=D==="scroll"||D==="auto"&&T.height<T.element[0].scrollHeight;return{width:g?i.position.scrollbarWidth():0,height:w?i.position.scrollbarWidth():0}},getWithinInfo:function(T){var k=i(T||window),D=L(k[0]),w=!!k[0]&&k[0].nodeType===9,g=!D&&!w;return{element:k,isWindow:D,isDocument:w,offset:g?i(T).offset():{left:0,top:0},scrollLeft:k.scrollLeft(),scrollTop:k.scrollTop(),width:k.outerWidth(),height:k.outerHeight()}}},i.fn.position=function(T){if(!T||!T.of)return A.apply(this,arguments);T=i.extend({},T);var k,D,w,g,d,u,p=typeof T.of=="string"?i(document).find(T.of):i(T.of),s=i.position.getWithinInfo(T.within),j=i.position.getScrollInfo(s),B=(T.collision||"flip").split(" "),K={};return u=M(p),p[0].preventDefault&&(T.at="left top"),D=u.width,w=u.height,g=u.offset,d=i.extend({},g),i.each(["my","at"],function(){var J=(T[this]||"").split(" "),ae,te;J.length===1&&(J=o.test(J[0])?J.concat(["center"]):l.test(J[0])?["center"].concat(J):["center","center"]),J[0]=o.test(J[0])?J[0]:"center",J[1]=l.test(J[1])?J[1]:"center",ae=m.exec(J[0]),te=m.exec(J[1]),K[this]=[ae?ae[0]:0,te?te[0]:0],T[this]=[f.exec(J[0])[0],f.exec(J[1])[0]]}),B.length===1&&(B[1]=B[0]),T.at[0]==="right"?d.left+=D:T.at[0]==="center"&&(d.left+=D/2),T.at[1]==="bottom"?d.top+=w:T.at[1]==="center"&&(d.top+=w/2),k=S(K.at,D,w),d.left+=k[0],d.top+=k[1],this.each(function(){var J,ae,te=i(this),we=te.outerWidth(),Ce=te.outerHeight(),ct=N(this,"marginLeft"),Le=N(this,"marginTop"),ze=we+ct+N(this,"marginRight")+j.width,rt=Ce+Le+N(this,"marginBottom")+j.height,Ne=i.extend({},d),gt=S(K.my,te.outerWidth(),te.outerHeight());T.my[0]==="right"?Ne.left-=we:T.my[0]==="center"&&(Ne.left-=we/2),T.my[1]==="bottom"?Ne.top-=Ce:T.my[1]==="center"&&(Ne.top-=Ce/2),Ne.left+=gt[0],Ne.top+=gt[1],J={marginLeft:ct,marginTop:Le},i.each(["left","top"],function(ut,Xe){i.ui.position[B[ut]]&&i.ui.position[B[ut]][Xe](Ne,{targetWidth:D,targetHeight:w,elemWidth:we,elemHeight:Ce,collisionPosition:J,collisionWidth:ze,collisionHeight:rt,offset:[k[0]+gt[0],k[1]+gt[1]],my:T.my,at:T.at,within:s,elem:te})}),T.using&&(ae=function(ut){var Xe=g.left-Ne.left,_t=Xe+D-we,ft=g.top-Ne.top,Be=ft+w-Ce,et={target:{element:p,left:g.left,top:g.top,width:D,height:w},element:{element:te,left:Ne.left,top:Ne.top,width:we,height:Ce},horizontal:_t<0?"left":Xe>0?"right":"center",vertical:Be<0?"top":ft>0?"bottom":"middle"};D<we&&r(Xe+_t)<D&&(et.horizontal="center"),w<Ce&&r(ft+Be)<w&&(et.vertical="middle"),t(r(Xe),r(_t))>t(r(ft),r(Be))?et.important="horizontal":et.important="vertical",T.using.call(this,ut,et)}),te.offset(i.extend(Ne,{using:ae}))})},i.ui.position={fit:{left:function(T,k){var D=k.within,w=D.isWindow?D.scrollLeft:D.offset.left,g=D.width,d=T.left-k.collisionPosition.marginLeft,u=w-d,p=d+k.collisionWidth-g-w,s;k.collisionWidth>g?u>0&&p<=0?(s=T.left+u+k.collisionWidth-g-w,T.left+=u-s):p>0&&u<=0?T.left=w:u>p?T.left=w+g-k.collisionWidth:T.left=w:u>0?T.left+=u:p>0?T.left-=p:T.left=t(T.left-d,T.left)},top:function(T,k){var D=k.within,w=D.isWindow?D.scrollTop:D.offset.top,g=k.within.height,d=T.top-k.collisionPosition.marginTop,u=w-d,p=d+k.collisionHeight-g-w,s;k.collisionHeight>g?u>0&&p<=0?(s=T.top+u+k.collisionHeight-g-w,T.top+=u-s):p>0&&u<=0?T.top=w:u>p?T.top=w+g-k.collisionHeight:T.top=w:u>0?T.top+=u:p>0?T.top-=p:T.top=t(T.top-d,T.top)}},flip:{left:function(T,k){var D=k.within,w=D.offset.left+D.scrollLeft,g=D.width,d=D.isWindow?D.scrollLeft:D.offset.left,u=T.left-k.collisionPosition.marginLeft,p=u-d,s=u+k.collisionWidth-g-d,j=k.my[0]==="left"?-k.elemWidth:k.my[0]==="right"?k.elemWidth:0,B=k.at[0]==="left"?k.targetWidth:k.at[0]==="right"?-k.targetWidth:0,K=-2*k.offset[0],J,ae;p<0?(J=T.left+j+B+K+k.collisionWidth-g-w,(J<0||J<r(p))&&(T.left+=j+B+K)):s>0&&(ae=T.left-k.collisionPosition.marginLeft+j+B+K-d,(ae>0||r(ae)<s)&&(T.left+=j+B+K))},top:function(T,k){var D=k.within,w=D.offset.top+D.scrollTop,g=D.height,d=D.isWindow?D.scrollTop:D.offset.top,u=T.top-k.collisionPosition.marginTop,p=u-d,s=u+k.collisionHeight-g-d,j=k.my[1]==="top",B=j?-k.elemHeight:k.my[1]==="bottom"?k.elemHeight:0,K=k.at[1]==="top"?k.targetHeight:k.at[1]==="bottom"?-k.targetHeight:0,J=-2*k.offset[1],ae,te;p<0?(te=T.top+B+K+J+k.collisionHeight-g-w,(te<0||te<r(p))&&(T.top+=B+K+J)):s>0&&(ae=T.top-k.collisionPosition.marginTop+B+K+J-d,(ae>0||r(ae)<s)&&(T.top+=B+K+J))}},flipfit:{left:function(){i.ui.position.flip.left.apply(this,arguments),i.ui.position.fit.left.apply(this,arguments)},top:function(){i.ui.position.flip.top.apply(this,arguments),i.ui.position.fit.top.apply(this,arguments)}}}})(),i.ui.position});(function(i){"use strict";typeof define=="function"&&define.amd?define(["jquery","./version"],i):i(jQuery)})(function(i){"use strict";return i.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch{t=e.body}return t||(t=e.body),t.nodeName||(t=e.body),t}});(function(i){"use strict";typeof define=="function"&&define.amd?define(["jquery","./version"],i):i(jQuery)})(function(i){"use strict";return i.extend(i.expr.pseudos,{data:i.expr.createPseudo?i.expr.createPseudo(function(e){return function(t){return!!i.data(t,e)}}):function(e,t,r){return!!i.data(e,r[3])}})});(function(i){"use strict";typeof define=="function"&&define.amd?define(["jquery","./version"],i):i(jQuery)})(function(i){"use strict";return i.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())});(function(i){"use strict";typeof define=="function"&&define.amd?define(["jquery","./version"],i):i(jQuery)})(function(i){"use strict";return i.fn.scrollParent=function(e){var t=this.css("position"),r=t==="absolute",o=e?/(auto|scroll|hidden)/:/(auto|scroll)/,l=this.parents().filter(function(){var m=i(this);return r&&m.css("position")==="static"?!1:o.test(m.css("overflow")+m.css("overflow-y")+m.css("overflow-x"))}).eq(0);return t==="fixed"||!l.length?i(this[0].ownerDocument||document):l}});(function(i){"use strict";typeof define=="function"&&define.amd?define(["jquery","./version"],i):i(jQuery)})(function(i){"use strict";return i.fn.extend({uniqueId:(function(){var e=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}})(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&i(this).removeAttr("id")})}})});(function(i){"use strict";typeof define=="function"&&define.amd?define(["jquery","./version"],i):i(jQuery)})(function(i){"use strict";var e=0,t=Array.prototype.hasOwnProperty,r=Array.prototype.slice;return i.cleanData=(function(o){return function(l){var m,f,y;for(y=0;(f=l[y])!=null;y++)m=i._data(f,"events"),m&&m.remove&&i(f).triggerHandler("remove");o(l)}})(i.cleanData),i.widget=function(o,l,m){var f,y,A,S={},N=o.split(".")[0];o=o.split(".")[1];var L=N+"-"+o;return m||(m=l,l=i.Widget),Array.isArray(m)&&(m=i.extend.apply(null,[{}].concat(m))),i.expr.pseudos[L.toLowerCase()]=function(M){return!!i.data(M,L)},i[N]=i[N]||{},f=i[N][o],y=i[N][o]=function(M,T){if(!this||!this._createWidget)return new y(M,T);arguments.length&&this._createWidget(M,T)},i.extend(y,f,{version:m.version,_proto:i.extend({},m),_childConstructors:[]}),A=new l,A.options=i.widget.extend({},A.options),i.each(m,function(M,T){if(typeof T!="function"){S[M]=T;return}S[M]=(function(){function k(){return l.prototype[M].apply(this,arguments)}function D(w){return l.prototype[M].apply(this,w)}return function(){var w=this._super,g=this._superApply,d;return this._super=k,this._superApply=D,d=T.apply(this,arguments),this._super=w,this._superApply=g,d}})()}),y.prototype=i.widget.extend(A,{widgetEventPrefix:f&&A.widgetEventPrefix||o},S,{constructor:y,namespace:N,widgetName:o,widgetFullName:L}),f?(i.each(f._childConstructors,function(M,T){var k=T.prototype;i.widget(k.namespace+"."+k.widgetName,y,T._proto)}),delete f._childConstructors):l._childConstructors.push(y),i.widget.bridge(o,y),y},i.widget.extend=function(o){for(var l=r.call(arguments,1),m=0,f=l.length,y,A;m<f;m++)for(y in l[m])A=l[m][y],t.call(l[m],y)&&A!==void 0&&(i.isPlainObject(A)?o[y]=i.isPlainObject(o[y])?i.widget.extend({},o[y],A):i.widget.extend({},A):o[y]=A);return o},i.widget.bridge=function(o,l){var m=l.prototype.widgetFullName||o;i.fn[o]=function(f){var y=typeof f=="string",A=r.call(arguments,1),S=this;return y?!this.length&&f==="instance"?S=void 0:this.each(function(){var N,L=i.data(this,m);if(f==="instance")return S=L,!1;if(!L)return i.error("cannot call methods on "+o+" prior to initialization; attempted to call method '"+f+"'");if(typeof L[f]!="function"||f.charAt(0)==="_")return i.error("no such method '"+f+"' for "+o+" widget instance");if(N=L[f].apply(L,A),N!==L&&N!==void 0)return S=N&&N.jquery?S.pushStack(N.get()):N,!1}):(A.length&&(f=i.widget.extend.apply(null,[f].concat(A))),this.each(function(){var N=i.data(this,m);N?(N.option(f||{}),N._init&&N._init()):i.data(this,m,new l(f,this))})),S}},i.Widget=function(){},i.Widget._childConstructors=[],i.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(o,l){l=i(l||this.defaultElement||this)[0],this.element=i(l),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=i(),this.hoverable=i(),this.focusable=i(),this.classesElementLookup={},l!==this&&(i.data(l,this.widgetFullName,this),this._on(!0,this.element,{remove:function(m){m.target===l&&this.destroy()}}),this.document=i(l.style?l.ownerDocument:l.document||l),this.window=i(this.document[0].defaultView||this.document[0].parentWindow)),this.options=i.widget.extend({},this.options,this._getCreateOptions(),o),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:i.noop,_create:i.noop,_init:i.noop,destroy:function(){var o=this;this._destroy(),i.each(this.classesElementLookup,function(l,m){o._removeClass(m,l)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:i.noop,widget:function(){return this.element},option:function(o,l){var m=o,f,y,A;if(arguments.length===0)return i.widget.extend({},this.options);if(typeof o=="string")if(m={},f=o.split("."),o=f.shift(),f.length){for(y=m[o]=i.widget.extend({},this.options[o]),A=0;A<f.length-1;A++)y[f[A]]=y[f[A]]||{},y=y[f[A]];if(o=f.pop(),arguments.length===1)return y[o]===void 0?null:y[o];y[o]=l}else{if(arguments.length===1)return this.options[o]===void 0?null:this.options[o];m[o]=l}return this._setOptions(m),this},_setOptions:function(o){var l;for(l in o)this._setOption(l,o[l]);return this},_setOption:function(o,l){return o==="classes"&&this._setOptionClasses(l),this.options[o]=l,o==="disabled"&&this._setOptionDisabled(l),this},_setOptionClasses:function(o){var l,m,f;for(l in o)f=this.classesElementLookup[l],!(o[l]===this.options.classes[l]||!f||!f.length)&&(m=i(f.get()),this._removeClass(f,l),m.addClass(this._classes({element:m,keys:l,classes:o,add:!0})))},_setOptionDisabled:function(o){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!o),o&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(o){var l=[],m=this;o=i.extend({element:this.element,classes:this.options.classes||{}},o);function f(){var A=[];o.element.each(function(S,N){var L=i.map(m.classesElementLookup,function(M){return M}).some(function(M){return M.is(N)});L||A.push(N)}),m._on(i(A),{remove:"_untrackClassesElement"})}function y(A,S){var N,L;for(L=0;L<A.length;L++)N=m.classesElementLookup[A[L]]||i(),o.add?(f(),N=i(i.uniqueSort(N.get().concat(o.element.get())))):N=i(N.not(o.element).get()),m.classesElementLookup[A[L]]=N,l.push(A[L]),S&&o.classes[A[L]]&&l.push(o.classes[A[L]])}return o.keys&&y(o.keys.match(/\S+/g)||[],!0),o.extra&&y(o.extra.match(/\S+/g)||[]),l.join(" ")},_untrackClassesElement:function(o){var l=this;i.each(l.classesElementLookup,function(m,f){i.inArray(o.target,f)!==-1&&(l.classesElementLookup[m]=i(f.not(o.target).get()))}),this._off(i(o.target))},_removeClass:function(o,l,m){return this._toggleClass(o,l,m,!1)},_addClass:function(o,l,m){return this._toggleClass(o,l,m,!0)},_toggleClass:function(o,l,m,f){f=typeof f=="boolean"?f:m;var y=typeof o=="string"||o===null,A={extra:y?l:m,keys:y?o:l,element:y?this.element:o,add:f};return A.element.toggleClass(this._classes(A),f),this},_on:function(o,l,m){var f,y=this;typeof o!="boolean"&&(m=l,l=o,o=!1),m?(l=f=i(l),this.bindings=this.bindings.add(l)):(m=l,l=this.element,f=this.widget()),i.each(m,function(A,S){function N(){if(!(!o&&(y.options.disabled===!0||i(this).hasClass("ui-state-disabled"))))return(typeof S=="string"?y[S]:S).apply(y,arguments)}typeof S!="string"&&(N.guid=S.guid=S.guid||N.guid||i.guid++);var L=A.match(/^([\w:-]*)\s*(.*)$/),M=L[1]+y.eventNamespace,T=L[2];T?f.on(M,T,N):l.on(M,N)})},_off:function(o,l){l=(l||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,o.off(l),this.bindings=i(this.bindings.not(o).get()),this.focusable=i(this.focusable.not(o).get()),this.hoverable=i(this.hoverable.not(o).get())},_delay:function(o,l){function m(){return(typeof o=="string"?f[o]:o).apply(f,arguments)}var f=this;return setTimeout(m,l||0)},_hoverable:function(o){this.hoverable=this.hoverable.add(o),this._on(o,{mouseenter:function(l){this._addClass(i(l.currentTarget),null,"ui-state-hover")},mouseleave:function(l){this._removeClass(i(l.currentTarget),null,"ui-state-hover")}})},_focusable:function(o){this.focusable=this.focusable.add(o),this._on(o,{focusin:function(l){this._addClass(i(l.currentTarget),null,"ui-state-focus")},focusout:function(l){this._removeClass(i(l.currentTarget),null,"ui-state-focus")}})},_trigger:function(o,l,m){var f,y,A=this.options[o];if(m=m||{},l=i.Event(l),l.type=(o===this.widgetEventPrefix?o:this.widgetEventPrefix+o).toLowerCase(),l.target=this.element[0],y=l.originalEvent,y)for(f in y)f in l||(l[f]=y[f]);return this.element.trigger(l,m),!(typeof A=="function"&&A.apply(this.element[0],[l].concat(m))===!1||l.isDefaultPrevented())}},i.each({show:"fadeIn",hide:"fadeOut"},function(o,l){i.Widget.prototype["_"+o]=function(m,f,y){typeof f=="string"&&(f={effect:f});var A,S=f?f===!0||typeof f=="number"?l:f.effect||l:o;f=f||{},typeof f=="number"?f={duration:f}:f===!0&&(f={}),A=!i.isEmptyObject(f),f.complete=y,f.delay&&m.delay(f.delay),A&&i.effects&&i.effects.effect[S]?m[o](f):S!==o&&m[S]?m[S](f.duration,f.easing,y):m.queue(function(N){i(this)[o](),y&&y.call(m[0]),N()})}}),i.widget});(function(i){"use strict";typeof define=="function"&&define.amd?define(["jquery","../keycode","../position","../safe-active-element","../unique-id","../version","../widget"],i):i(jQuery)})(function(i){"use strict";return i.widget("ui.menu",{version:"1.13.3",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault(),this._activateItem(e)},"click .ui-menu-item":function(e){var t=i(e.target),r=i(i.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&t.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),t.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&r.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&this.active.parents(".ui-menu").length===1&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var r=this.active||this._menuItems().first();t||this.focus(e,r)},blur:function(e){this._delay(function(){var t=!i.contains(this.element[0],i.ui.safeActiveElement(this.document[0]));t&&this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e,!0),this.mouseHandled=!1}})},_activateItem:function(e){if(!this.previousFilter&&!(e.clientX===this.lastMousePosition.x&&e.clientY===this.lastMousePosition.y)){this.lastMousePosition={x:e.clientX,y:e.clientY};var t=i(e.target).closest(".ui-menu-item"),r=i(e.currentTarget);t[0]===r[0]&&(r.is(".ui-state-active")||(this._removeClass(r.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,r)))}},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),t=e.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var r=i(this);r.data("ui-menu-submenu-caret")&&r.remove()})},_keydown:function(e){var t,r,o,l,m=!0;switch(e.keyCode){case i.ui.keyCode.PAGE_UP:this.previousPage(e);break;case i.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case i.ui.keyCode.HOME:this._move("first","first",e);break;case i.ui.keyCode.END:this._move("last","last",e);break;case i.ui.keyCode.UP:this.previous(e);break;case i.ui.keyCode.DOWN:this.next(e);break;case i.ui.keyCode.LEFT:this.collapse(e);break;case i.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case i.ui.keyCode.ENTER:case i.ui.keyCode.SPACE:this._activate(e);break;case i.ui.keyCode.ESCAPE:this.collapse(e);break;default:m=!1,r=this.previousFilter||"",l=!1,o=e.keyCode>=96&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),o===r?l=!0:o=r+o,t=this._filterMenuItems(o),t=l&&t.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):t,t.length||(o=String.fromCharCode(e.keyCode),t=this._filterMenuItems(o)),t.length?(this.focus(e,t),this.previousFilter=o,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}m&&e.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var e,t,r,o,l,m=this,f=this.options.icons.submenu,y=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),r=y.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var A=i(this),S=A.prev(),N=i("<span>").data("ui-menu-submenu-caret",!0);m._addClass(N,"ui-menu-icon","ui-icon "+f),S.attr("aria-haspopup","true").prepend(N),A.attr("aria-labelledby",S.attr("id"))}),this._addClass(r,"ui-menu","ui-widget ui-widget-content ui-front"),e=y.add(this.element),t=e.find(this.options.items),t.not(".ui-menu-item").each(function(){var A=i(this);m._isDivider(A)&&m._addClass(A,"ui-menu-divider","ui-widget-content")}),o=t.not(".ui-menu-item, .ui-menu-divider"),l=o.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(o,"ui-menu-item")._addClass(l,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!i.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){if(e==="icons"){var r=this.element.find(".ui-menu-icon");this._removeClass(r,null,this.options.icons.submenu)._addClass(r,null,t.submenu)}this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var r,o,l;this.blur(e,e&&e.type==="focus"),this._scrollIntoView(t),this.active=t.first(),o=this.active.children(".ui-menu-item-wrapper"),this._addClass(o,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",o.attr("id")),l=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(l,null,"ui-state-active"),e&&e.type==="keydown"?this._close():this.timer=this._delay(function(){this._close()},this.delay),r=t.children(".ui-menu"),r.length&&e&&/^mouse/.test(e.type)&&this._startOpening(r),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(e){var t,r,o,l,m,f;this._hasScroll()&&(t=parseFloat(i.css(this.activeMenu[0],"borderTopWidth"))||0,r=parseFloat(i.css(this.activeMenu[0],"paddingTop"))||0,o=e.offset().top-this.activeMenu.offset().top-t-r,l=this.activeMenu.scrollTop(),m=this.activeMenu.height(),f=e.outerHeight(),o<0?this.activeMenu.scrollTop(l+o):o+f>m&&this.activeMenu.scrollTop(l+o-m+f))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),e.attr("aria-hidden")==="true"&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(e){var t=i.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(t)},collapseAll:function(e,t){clearTimeout(this.timer),this.timer=this._delay(function(){var r=t?this.element:i(e&&e.target).closest(this.element.find(".ui-menu"));r.length||(r=this.element),this._close(r),this.blur(e),this._removeClass(r.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=r},t?0:this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!i(e.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this._menuItems(this.active.children(".ui-menu")).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(e){return(e||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(e,t,r){var o;this.active&&(e==="first"||e==="last"?o=this.active[e==="first"?"prevAll":"nextAll"](".ui-menu-item").last():o=this.active[e+"All"](".ui-menu-item").first()),(!o||!o.length||!this.active)&&(o=this._menuItems(this.activeMenu)[t]()),this.focus(r,o)},nextPage:function(e){var t,r,o;if(!this.active){this.next(e);return}this.isLastItem()||(this._hasScroll()?(r=this.active.offset().top,o=this.element.innerHeight(),i.fn.jquery.indexOf("3.2.")===0&&(o+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return t=i(this),t.offset().top-r-o<0}),this.focus(e,t)):this.focus(e,this._menuItems(this.activeMenu)[this.active?"last":"first"]()))},previousPage:function(e){var t,r,o;if(!this.active){this.next(e);return}this.isFirstItem()||(this._hasScroll()?(r=this.active.offset().top,o=this.element.innerHeight(),i.fn.jquery.indexOf("3.2.")===0&&(o+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return t=i(this),t.offset().top-r+o>0}),this.focus(e,t)):this.focus(e,this._menuItems(this.activeMenu).first()))},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||i(e.target).closest(".ui-menu-item");var t={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,t)},_filterMenuItems:function(e){var t=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),r=new RegExp("^"+t,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return r.test(String.prototype.trim.call(i(this).children(".ui-menu-item-wrapper").text()))})}})});(function(i){"use strict";typeof define=="function"&&define.amd?define(["jquery","../ie","../version","../widget"],i):i(jQuery)})(function(i){"use strict";var e=!1;return i(document).on("mouseup",function(){e=!1}),i.widget("ui.mouse",{version:"1.13.3",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(r){return t._mouseDown(r)}).on("click."+this.widgetName,function(r){if(i.data(r.target,t.widgetName+".preventClickEvent")===!0)return i.removeData(r.target,t.widgetName+".preventClickEvent"),r.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!e){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var r=this,o=t.which===1,l=typeof this.options.cancel=="string"&&t.target.nodeName?i(t.target).closest(this.options.cancel).length:!1;return!o||l||!this._mouseCapture(t)?!0:(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){r.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(t)!==!1,!this._mouseStarted)?(t.preventDefault(),!0):(i.data(t.target,this.widgetName+".preventClickEvent")===!0&&i.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(m){return r._mouseMove(m)},this._mouseUpDelegate=function(m){return r._mouseUp(m)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),e=!0,!0))}},_mouseMove:function(t){if(this._mouseMoved){if(i.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which){if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&i.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,e=!1,t.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})});var ch=fi(di(),1);(function(i){"use strict";i.widget("ra.abstractSelect",{options:{createQuery:function(e){if(i.isEmptyObject(this.scopeBy))return{query:e};{let r={};for(var t in this.scopeBy){let o=this.scopeBy[t],l=i(`[name$="[${t}]"]`).val();r[o]||(r[o]=[]),r[o].push(l?{o:"is",v:l}:{o:"_blank"})}return{query:e,f:r}}},scopeBy:{}}})})(ch.default);var bh=fi(di(),1);var Pe={locale:null,translations:null,init(i,e){this.locale=i,this.translations=e,typeof this.translations=="string"&&(this.translations=JSON.parse(this.translations))},t(i){var e;return e=i.charAt(0).toUpperCase()+i.replace(/_/g," ").slice(1),this.translations[i]||e}};var xa=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],xn={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(i){return typeof console<"u"&&console.warn(i)},getWeek:function(i){var e=new Date(i.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var t=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-t.getTime())/864e5-3+(t.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1};var Da={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(i){var e=i%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},ka=Da;var At=function(i,e){return e===void 0&&(e=2),("000"+i).slice(e*-1)},jt=function(i){return i===!0?1:0};function Zc(i,e){var t;return function(){var r=this,o=arguments;clearTimeout(t),t=setTimeout(function(){return i.apply(r,o)},e)}}var Ma=function(i){return i instanceof Array?i:[i]};function Tt(i,e,t){if(t===!0)return i.classList.add(e);i.classList.remove(e)}function Oe(i,e,t){var r=window.document.createElement(i);return e=e||"",t=t||"",r.className=e,t!==void 0&&(r.textContent=t),r}function ro(i){for(;i.firstChild;)i.removeChild(i.firstChild)}function $c(i,e){if(e(i))return i;if(i.parentNode)return $c(i.parentNode,e)}function so(i,e){var t=Oe("div","numInputWrapper"),r=Oe("input","numInput "+i),o=Oe("span","arrowUp"),l=Oe("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?r.type="number":(r.type="text",r.pattern="\\d*"),e!==void 0)for(var m in e)r.setAttribute(m,e[m]);return t.appendChild(r),t.appendChild(o),t.appendChild(l),t}function Wt(i){try{if(typeof i.composedPath=="function"){var e=i.composedPath();return e[0]}return i.target}catch{return i.target}}var eu=function(){},oo=function(i,e,t){return t.months[e?"shorthand":"longhand"][i]},uh={D:eu,F:function(i,e,t){i.setMonth(t.months.longhand.indexOf(e))},G:function(i,e){i.setHours((i.getHours()>=12?12:0)+parseFloat(e))},H:function(i,e){i.setHours(parseFloat(e))},J:function(i,e){i.setDate(parseFloat(e))},K:function(i,e,t){i.setHours(i.getHours()%12+12*jt(new RegExp(t.amPM[1],"i").test(e)))},M:function(i,e,t){i.setMonth(t.months.shorthand.indexOf(e))},S:function(i,e){i.setSeconds(parseFloat(e))},U:function(i,e){return new Date(parseFloat(e)*1e3)},W:function(i,e,t){var r=parseInt(e),o=new Date(i.getFullYear(),0,2+(r-1)*7,0,0,0,0);return o.setDate(o.getDate()-o.getDay()+t.firstDayOfWeek),o},Y:function(i,e){i.setFullYear(parseFloat(e))},Z:function(i,e){return new Date(e)},d:function(i,e){i.setDate(parseFloat(e))},h:function(i,e){i.setHours((i.getHours()>=12?12:0)+parseFloat(e))},i:function(i,e){i.setMinutes(parseFloat(e))},j:function(i,e){i.setDate(parseFloat(e))},l:eu,m:function(i,e){i.setMonth(parseFloat(e)-1)},n:function(i,e){i.setMonth(parseFloat(e)-1)},s:function(i,e){i.setSeconds(parseFloat(e))},u:function(i,e){return new Date(parseFloat(e))},w:eu,y:function(i,e){i.setFullYear(2e3+parseFloat(e))}},Qi={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},Qr={Z:function(i){return i.toISOString()},D:function(i,e,t){return e.weekdays.shorthand[Qr.w(i,e,t)]},F:function(i,e,t){return oo(Qr.n(i,e,t)-1,!1,e)},G:function(i,e,t){return At(Qr.h(i,e,t))},H:function(i){return At(i.getHours())},J:function(i,e){return e.ordinal!==void 0?i.getDate()+e.ordinal(i.getDate()):i.getDate()},K:function(i,e){return e.amPM[jt(i.getHours()>11)]},M:function(i,e){return oo(i.getMonth(),!0,e)},S:function(i){return At(i.getSeconds())},U:function(i){return i.getTime()/1e3},W:function(i,e,t){return t.getWeek(i)},Y:function(i){return At(i.getFullYear(),4)},d:function(i){return At(i.getDate())},h:function(i){return i.getHours()%12?i.getHours()%12:12},i:function(i){return At(i.getMinutes())},j:function(i){return i.getDate()},l:function(i,e){return e.weekdays.longhand[i.getDay()]},m:function(i){return At(i.getMonth()+1)},n:function(i){return i.getMonth()+1},s:function(i){return i.getSeconds()},u:function(i){return i.getTime()},w:function(i){return i.getDay()},y:function(i){return String(i.getFullYear()).substring(2)}};var tu=function(i){var e=i.config,t=e===void 0?xn:e,r=i.l10n,o=r===void 0?Da:r,l=i.isMobile,m=l===void 0?!1:l;return function(f,y,A){var S=A||o;return t.formatDate!==void 0&&!m?t.formatDate(f,y,S):y.split("").map(function(N,L,M){return Qr[N]&&M[L-1]!=="\\"?Qr[N](f,S,t):N!=="\\"?N:""}).join("")}},Oa=function(i){var e=i.config,t=e===void 0?xn:e,r=i.l10n,o=r===void 0?Da:r;return function(l,m,f,y){if(!(l!==0&&!l)){var A=y||o,S,N=l;if(l instanceof Date)S=new Date(l.getTime());else if(typeof l!="string"&&l.toFixed!==void 0)S=new Date(l);else if(typeof l=="string"){var L=m||(t||xn).dateFormat,M=String(l).trim();if(M==="today")S=new Date,f=!0;else if(t&&t.parseDate)S=t.parseDate(l,L);else if(/Z$/.test(M)||/GMT$/.test(M))S=new Date(l);else{for(var T=void 0,k=[],D=0,w=0,g="";D<L.length;D++){var d=L[D],u=d==="\\",p=L[D-1]==="\\"||u;if(Qi[d]&&!p){g+=Qi[d];var s=new RegExp(g).exec(l);s&&(T=!0)&&k[d!=="Y"?"push":"unshift"]({fn:uh[d],val:s[++w]})}else u||(g+=".")}S=!t||!t.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),k.forEach(function(j){var B=j.fn,K=j.val;return S=B(S,K,A)||S}),S=T?S:void 0}}if(!(S instanceof Date&&!isNaN(S.getTime()))){t.errorHandler(new Error("Invalid date provided: "+N));return}return f===!0&&S.setHours(0,0,0,0),S}}};function qt(i,e,t){return t===void 0&&(t=!0),t!==!1?new Date(i.getTime()).setHours(0,0,0,0)-new Date(e.getTime()).setHours(0,0,0,0):i.getTime()-e.getTime()}var fh=function(i,e,t){return i>Math.min(e,t)&&i<Math.max(e,t)},La=function(i,e,t){return i*3600+e*60+t},dh=function(i){var e=Math.floor(i/3600),t=(i-e*3600)/60;return[e,t,i-e*3600-t*60]},hh={DAY:864e5};function Pa(i){var e=i.defaultHour,t=i.defaultMinute,r=i.defaultSeconds;if(i.minDate!==void 0){var o=i.minDate.getHours(),l=i.minDate.getMinutes(),m=i.minDate.getSeconds();e<o&&(e=o),e===o&&t<l&&(t=l),e===o&&t===l&&r<m&&(r=i.minDate.getSeconds())}if(i.maxDate!==void 0){var f=i.maxDate.getHours(),y=i.maxDate.getMinutes();e=Math.min(e,f),e===f&&(t=Math.min(y,t)),e===f&&t===y&&(r=i.maxDate.getSeconds())}return{hours:e,minutes:t,seconds:r}}typeof Object.assign!="function"&&(Object.assign=function(i){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(!i)throw TypeError("Cannot convert undefined or null to object");for(var r=function(f){f&&Object.keys(f).forEach(function(y){return i[y]=f[y]})},o=0,l=e;o<l.length;o++){var m=l[o];r(m)}return i});var Ct=function(){return Ct=Object.assign||function(i){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}return i},Ct.apply(this,arguments)},ph=function(){for(var i=0,e=0,t=arguments.length;e<t;e++)i+=arguments[e].length;for(var r=Array(i),o=0,e=0;e<t;e++)for(var l=arguments[e],m=0,f=l.length;m<f;m++,o++)r[o]=l[m];return r},Cw=300;function xw(i,e){var t={config:Ct(Ct({},xn),nt.defaultConfig),l10n:ka};t.parseDate=Oa({config:t.config,l10n:t.l10n}),t._handlers=[],t.pluginElements=[],t.loadedPlugins=[],t._bind=k,t._setHoursFromDate=L,t._positionCalendar=si,t.changeMonth=ut,t.changeYear=Pt,t.clear=Xe,t.close=_t,t.onMouseOver=Nt,t._createElement=Oe,t.createDay=s,t.destroy=ft,t.isEnabled=Qe,t.jumpToDate=g,t.updateValue=ht,t.open=$i,t.redraw=Rt,t.set=Oi,t.setDate=Li,t.toggle=oi;function r(){t.utils={getDaysInMonth:function(E,C){return E===void 0&&(E=t.currentMonth),C===void 0&&(C=t.currentYear),E===1&&(C%4===0&&C%100!==0||C%400===0)?29:t.l10n.daysInMonth[E]}}}function o(){t.element=t.input=i,t.isOpen=!1,Yt(),Mi(),bi(),Dn(),r(),t.isMobile||p(),w(),(t.selectedDates.length||t.config.noCalendar)&&(t.config.enableTime&&L(t.config.noCalendar?t.latestSelectedDateObj:void 0),ht(!1)),f();var E=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!t.isMobile&&E&&si(),He("onReady")}function l(){var E;return((E=t.calendarContainer)===null||E===void 0?void 0:E.getRootNode()).activeElement||document.activeElement}function m(E){return E.bind(t)}function f(){var E=t.config;E.weekNumbers===!1&&E.showMonths===1||E.noCalendar!==!0&&window.requestAnimationFrame(function(){if(t.calendarContainer!==void 0&&(t.calendarContainer.style.visibility="hidden",t.calendarContainer.style.display="block"),t.daysContainer!==void 0){var C=(t.days.offsetWidth+1)*E.showMonths;t.daysContainer.style.width=C+"px",t.calendarContainer.style.width=C+(t.weekWrapper!==void 0?t.weekWrapper.offsetWidth:0)+"px",t.calendarContainer.style.removeProperty("visibility"),t.calendarContainer.style.removeProperty("display")}})}function y(E){if(t.selectedDates.length===0){var C=t.config.minDate===void 0||qt(new Date,t.config.minDate)>=0?new Date:new Date(t.config.minDate.getTime()),H=Pa(t.config);C.setHours(H.hours,H.minutes,H.seconds,C.getMilliseconds()),t.selectedDates=[C],t.latestSelectedDateObj=C}E!==void 0&&E.type!=="blur"&&cr(E);var V=t._input.value;N(),ht(),t._input.value!==V&&t._debouncedChange()}function A(E,C){return E%12+12*jt(C===t.l10n.amPM[1])}function S(E){switch(E%24){case 0:case 12:return 12;default:return E%12}}function N(){if(!(t.hourElement===void 0||t.minuteElement===void 0)){var E=(parseInt(t.hourElement.value.slice(-2),10)||0)%24,C=(parseInt(t.minuteElement.value,10)||0)%60,H=t.secondElement!==void 0?(parseInt(t.secondElement.value,10)||0)%60:0;t.amPM!==void 0&&(E=A(E,t.amPM.textContent));var V=t.config.minTime!==void 0||t.config.minDate&&t.minDateHasTime&&t.latestSelectedDateObj&&qt(t.latestSelectedDateObj,t.config.minDate,!0)===0,Q=t.config.maxTime!==void 0||t.config.maxDate&&t.maxDateHasTime&&t.latestSelectedDateObj&&qt(t.latestSelectedDateObj,t.config.maxDate,!0)===0;if(t.config.maxTime!==void 0&&t.config.minTime!==void 0&&t.config.minTime>t.config.maxTime){var ee=La(t.config.minTime.getHours(),t.config.minTime.getMinutes(),t.config.minTime.getSeconds()),he=La(t.config.maxTime.getHours(),t.config.maxTime.getMinutes(),t.config.maxTime.getSeconds()),re=La(E,C,H);if(re>he&&re<ee){var be=dh(ee);E=be[0],C=be[1],H=be[2]}}else{if(Q){var se=t.config.maxTime!==void 0?t.config.maxTime:t.config.maxDate;E=Math.min(E,se.getHours()),E===se.getHours()&&(C=Math.min(C,se.getMinutes())),C===se.getMinutes()&&(H=Math.min(H,se.getSeconds()))}if(V){var fe=t.config.minTime!==void 0?t.config.minTime:t.config.minDate;E=Math.max(E,fe.getHours()),E===fe.getHours()&&C<fe.getMinutes()&&(C=fe.getMinutes()),C===fe.getMinutes()&&(H=Math.max(H,fe.getSeconds()))}}M(E,C,H)}}function L(E){var C=E||t.latestSelectedDateObj;C&&C instanceof Date&&M(C.getHours(),C.getMinutes(),C.getSeconds())}function M(E,C,H){t.latestSelectedDateObj!==void 0&&t.latestSelectedDateObj.setHours(E%24,C,H||0,0),!(!t.hourElement||!t.minuteElement||t.isMobile)&&(t.hourElement.value=At(t.config.time_24hr?E:(12+E)%12+12*jt(E%12===0)),t.minuteElement.value=At(C),t.amPM!==void 0&&(t.amPM.textContent=t.l10n.amPM[jt(E>=12)]),t.secondElement!==void 0&&(t.secondElement.value=At(H)))}function T(E){var C=Wt(E),H=parseInt(C.value)+(E.delta||0);(H/1e3>1||E.key==="Enter"&&!/[^\d]/.test(H.toString()))&&Pt(H)}function k(E,C,H,V){if(C instanceof Array)return C.forEach(function(Q){return k(E,Q,H,V)});if(E instanceof Array)return E.forEach(function(Q){return k(Q,C,H,V)});E.addEventListener(C,H,V),t._handlers.push({remove:function(){return E.removeEventListener(C,H,V)}})}function D(){He("onChange")}function w(){if(t.config.wrap&&["open","close","toggle","clear"].forEach(function(H){Array.prototype.forEach.call(t.element.querySelectorAll("[data-"+H+"]"),function(V){return k(V,"click",t[H])})}),t.isMobile){Kt();return}var E=Zc(gi,50);if(t._debouncedChange=Zc(D,Cw),t.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&k(t.daysContainer,"mouseover",function(H){t.config.mode==="range"&&Nt(Wt(H))}),k(t._input,"keydown",Et),t.calendarContainer!==void 0&&k(t.calendarContainer,"keydown",Et),!t.config.inline&&!t.config.static&&k(window,"resize",E),window.ontouchstart!==void 0?k(window.document,"touchstart",et):k(window.document,"mousedown",et),k(window.document,"focus",et,{capture:!0}),t.config.clickOpens===!0&&(k(t._input,"focus",t.open),k(t._input,"click",t.open)),t.daysContainer!==void 0&&(k(t.monthNav,"click",Mn),k(t.monthNav,["keyup","increment"],T),k(t.daysContainer,"click",oe)),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0){var C=function(H){return Wt(H).select()};k(t.timeContainer,["increment"],y),k(t.timeContainer,"blur",y,{capture:!0}),k(t.timeContainer,"click",d),k([t.hourElement,t.minuteElement],["focus","click"],C),t.secondElement!==void 0&&k(t.secondElement,"focus",function(){return t.secondElement&&t.secondElement.select()}),t.amPM!==void 0&&k(t.amPM,"click",function(H){y(H)})}t.config.allowInput&&k(t._input,"blur",Zi)}function g(E,C){var H=E!==void 0?t.parseDate(E):t.latestSelectedDateObj||(t.config.minDate&&t.config.minDate>t.now?t.config.minDate:t.config.maxDate&&t.config.maxDate<t.now?t.config.maxDate:t.now),V=t.currentYear,Q=t.currentMonth;try{H!==void 0&&(t.currentYear=H.getFullYear(),t.currentMonth=H.getMonth())}catch(ee){ee.message="Invalid date supplied: "+H,t.config.errorHandler(ee)}C&&t.currentYear!==V&&(He("onYearChange"),we()),C&&(t.currentYear!==V||t.currentMonth!==Q)&&He("onMonthChange"),t.redraw()}function d(E){var C=Wt(E);~C.className.indexOf("arrow")&&u(E,C.classList.contains("arrowUp")?1:-1)}function u(E,C,H){var V=E&&Wt(E),Q=H||V&&V.parentNode&&V.parentNode.firstChild,ee=ai("increment");ee.delta=C,Q&&Q.dispatchEvent(ee)}function p(){var E=window.document.createDocumentFragment();if(t.calendarContainer=Oe("div","flatpickr-calendar"),t.calendarContainer.tabIndex=-1,!t.config.noCalendar){if(E.appendChild(Le()),t.innerContainer=Oe("div","flatpickr-innerContainer"),t.config.weekNumbers){var C=gt(),H=C.weekWrapper,V=C.weekNumbers;t.innerContainer.appendChild(H),t.weekNumbers=V,t.weekWrapper=H}t.rContainer=Oe("div","flatpickr-rContainer"),t.rContainer.appendChild(rt()),t.daysContainer||(t.daysContainer=Oe("div","flatpickr-days"),t.daysContainer.tabIndex=-1),te(),t.rContainer.appendChild(t.daysContainer),t.innerContainer.appendChild(t.rContainer),E.appendChild(t.innerContainer)}t.config.enableTime&&E.appendChild(ze()),Tt(t.calendarContainer,"rangeMode",t.config.mode==="range"),Tt(t.calendarContainer,"animate",t.config.animate===!0),Tt(t.calendarContainer,"multiMonth",t.config.showMonths>1),t.calendarContainer.appendChild(E);var Q=t.config.appendTo!==void 0&&t.config.appendTo.nodeType!==void 0;if((t.config.inline||t.config.static)&&(t.calendarContainer.classList.add(t.config.inline?"inline":"static"),t.config.inline&&(!Q&&t.element.parentNode?t.element.parentNode.insertBefore(t.calendarContainer,t._input.nextSibling):t.config.appendTo!==void 0&&t.config.appendTo.appendChild(t.calendarContainer)),t.config.static)){var ee=Oe("div","flatpickr-wrapper");t.element.parentNode&&t.element.parentNode.insertBefore(ee,t.element),ee.appendChild(t.element),t.altInput&&ee.appendChild(t.altInput),ee.appendChild(t.calendarContainer)}!t.config.static&&!t.config.inline&&(t.config.appendTo!==void 0?t.config.appendTo:window.document.body).appendChild(t.calendarContainer)}function s(E,C,H,V){var Q=Qe(C,!0),ee=Oe("span",E,C.getDate().toString());return ee.dateObj=C,ee.$i=V,ee.setAttribute("aria-label",t.formatDate(C,t.config.ariaDateFormat)),E.indexOf("hidden")===-1&&qt(C,t.now)===0&&(t.todayDateElem=ee,ee.classList.add("today"),ee.setAttribute("aria-current","date")),Q?(ee.tabIndex=-1,Pi(C)&&(ee.classList.add("selected"),t.selectedDateElem=ee,t.config.mode==="range"&&(Tt(ee,"startRange",t.selectedDates[0]&&qt(C,t.selectedDates[0],!0)===0),Tt(ee,"endRange",t.selectedDates[1]&&qt(C,t.selectedDates[1],!0)===0),E==="nextMonthDay"&&ee.classList.add("inRange")))):ee.classList.add("flatpickr-disabled"),t.config.mode==="range"&&kn(C)&&!Pi(C)&&ee.classList.add("inRange"),t.weekNumbers&&t.config.showMonths===1&&E!=="prevMonthDay"&&V%7===6&&t.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+t.config.getWeek(C)+"</span>"),He("onDayCreate",ee),ee}function j(E){E.focus(),t.config.mode==="range"&&Nt(E)}function B(E){for(var C=E>0?0:t.config.showMonths-1,H=E>0?t.config.showMonths:-1,V=C;V!=H;V+=E)for(var Q=t.daysContainer.children[V],ee=E>0?0:Q.children.length-1,he=E>0?Q.children.length:-1,re=ee;re!=he;re+=E){var be=Q.children[re];if(be.className.indexOf("hidden")===-1&&Qe(be.dateObj))return be}}function K(E,C){for(var H=E.className.indexOf("Month")===-1?E.dateObj.getMonth():t.currentMonth,V=C>0?t.config.showMonths:-1,Q=C>0?1:-1,ee=H-t.currentMonth;ee!=V;ee+=Q)for(var he=t.daysContainer.children[ee],re=H-t.currentMonth===ee?E.$i+C:C<0?he.children.length-1:0,be=he.children.length,se=re;se>=0&&se<be&&se!=(C>0?be:-1);se+=Q){var fe=he.children[se];if(fe.className.indexOf("hidden")===-1&&Qe(fe.dateObj)&&Math.abs(E.$i-se)>=Math.abs(C))return j(fe)}t.changeMonth(Q),J(B(Q),0)}function J(E,C){var H=l(),V=Ye(H||document.body),Q=E!==void 0?E:V?H:t.selectedDateElem!==void 0&&Ye(t.selectedDateElem)?t.selectedDateElem:t.todayDateElem!==void 0&&Ye(t.todayDateElem)?t.todayDateElem:B(C>0?1:-1);Q===void 0?t._input.focus():V?K(Q,C):j(Q)}function ae(E,C){for(var H=(new Date(E,C,1).getDay()-t.l10n.firstDayOfWeek+7)%7,V=t.utils.getDaysInMonth((C-1+12)%12,E),Q=t.utils.getDaysInMonth(C,E),ee=window.document.createDocumentFragment(),he=t.config.showMonths>1,re=he?"prevMonthDay hidden":"prevMonthDay",be=he?"nextMonthDay hidden":"nextMonthDay",se=V+1-H,fe=0;se<=V;se++,fe++)ee.appendChild(s("flatpickr-day "+re,new Date(E,C-1,se),se,fe));for(se=1;se<=Q;se++,fe++)ee.appendChild(s("flatpickr-day",new Date(E,C,se),se,fe));for(var Me=Q+1;Me<=42-H&&(t.config.showMonths===1||fe%7!==0);Me++,fe++)ee.appendChild(s("flatpickr-day "+be,new Date(E,C+1,Me%Q),Me,fe));var kt=Oe("div","dayContainer");return kt.appendChild(ee),kt}function te(){if(t.daysContainer!==void 0){ro(t.daysContainer),t.weekNumbers&&ro(t.weekNumbers);for(var E=document.createDocumentFragment(),C=0;C<t.config.showMonths;C++){var H=new Date(t.currentYear,t.currentMonth,1);H.setMonth(t.currentMonth+C),E.appendChild(ae(H.getFullYear(),H.getMonth()))}t.daysContainer.appendChild(E),t.days=t.daysContainer.firstChild,t.config.mode==="range"&&t.selectedDates.length===1&&Nt()}}function we(){if(!(t.config.showMonths>1||t.config.monthSelectorType!=="dropdown")){var E=function(V){return t.config.minDate!==void 0&&t.currentYear===t.config.minDate.getFullYear()&&V<t.config.minDate.getMonth()?!1:!(t.config.maxDate!==void 0&&t.currentYear===t.config.maxDate.getFullYear()&&V>t.config.maxDate.getMonth())};t.monthsDropdownContainer.tabIndex=-1,t.monthsDropdownContainer.innerHTML="";for(var C=0;C<12;C++)if(E(C)){var H=Oe("option","flatpickr-monthDropdown-month");H.value=new Date(t.currentYear,C).getMonth().toString(),H.textContent=oo(C,t.config.shorthandCurrentMonth,t.l10n),H.tabIndex=-1,t.currentMonth===C&&(H.selected=!0),t.monthsDropdownContainer.appendChild(H)}}}function Ce(){var E=Oe("div","flatpickr-month"),C=window.document.createDocumentFragment(),H;t.config.showMonths>1||t.config.monthSelectorType==="static"?H=Oe("span","cur-month"):(t.monthsDropdownContainer=Oe("select","flatpickr-monthDropdown-months"),t.monthsDropdownContainer.setAttribute("aria-label",t.l10n.monthAriaLabel),k(t.monthsDropdownContainer,"change",function(he){var re=Wt(he),be=parseInt(re.value,10);t.changeMonth(be-t.currentMonth),He("onMonthChange")}),we(),H=t.monthsDropdownContainer);var V=so("cur-year",{tabindex:"-1"}),Q=V.getElementsByTagName("input")[0];Q.setAttribute("aria-label",t.l10n.yearAriaLabel),t.config.minDate&&Q.setAttribute("min",t.config.minDate.getFullYear().toString()),t.config.maxDate&&(Q.setAttribute("max",t.config.maxDate.getFullYear().toString()),Q.disabled=!!t.config.minDate&&t.config.minDate.getFullYear()===t.config.maxDate.getFullYear());var ee=Oe("div","flatpickr-current-month");return ee.appendChild(H),ee.appendChild(V),C.appendChild(ee),E.appendChild(C),{container:E,yearElement:Q,monthElement:H}}function ct(){ro(t.monthNav),t.monthNav.appendChild(t.prevMonthNav),t.config.showMonths&&(t.yearElements=[],t.monthElements=[]);for(var E=t.config.showMonths;E--;){var C=Ce();t.yearElements.push(C.yearElement),t.monthElements.push(C.monthElement),t.monthNav.appendChild(C.container)}t.monthNav.appendChild(t.nextMonthNav)}function Le(){return t.monthNav=Oe("div","flatpickr-months"),t.yearElements=[],t.monthElements=[],t.prevMonthNav=Oe("span","flatpickr-prev-month"),t.prevMonthNav.innerHTML=t.config.prevArrow,t.nextMonthNav=Oe("span","flatpickr-next-month"),t.nextMonthNav.innerHTML=t.config.nextArrow,ct(),Object.defineProperty(t,"_hidePrevMonthArrow",{get:function(){return t.__hidePrevMonthArrow},set:function(E){t.__hidePrevMonthArrow!==E&&(Tt(t.prevMonthNav,"flatpickr-disabled",E),t.__hidePrevMonthArrow=E)}}),Object.defineProperty(t,"_hideNextMonthArrow",{get:function(){return t.__hideNextMonthArrow},set:function(E){t.__hideNextMonthArrow!==E&&(Tt(t.nextMonthNav,"flatpickr-disabled",E),t.__hideNextMonthArrow=E)}}),t.currentYearElement=t.yearElements[0],Ni(),t.monthNav}function ze(){t.calendarContainer.classList.add("hasTime"),t.config.noCalendar&&t.calendarContainer.classList.add("noCalendar");var E=Pa(t.config);t.timeContainer=Oe("div","flatpickr-time"),t.timeContainer.tabIndex=-1;var C=Oe("span","flatpickr-time-separator",":"),H=so("flatpickr-hour",{"aria-label":t.l10n.hourAriaLabel});t.hourElement=H.getElementsByTagName("input")[0];var V=so("flatpickr-minute",{"aria-label":t.l10n.minuteAriaLabel});if(t.minuteElement=V.getElementsByTagName("input")[0],t.hourElement.tabIndex=t.minuteElement.tabIndex=-1,t.hourElement.value=At(t.latestSelectedDateObj?t.latestSelectedDateObj.getHours():t.config.time_24hr?E.hours:S(E.hours)),t.minuteElement.value=At(t.latestSelectedDateObj?t.latestSelectedDateObj.getMinutes():E.minutes),t.hourElement.setAttribute("step",t.config.hourIncrement.toString()),t.minuteElement.setAttribute("step",t.config.minuteIncrement.toString()),t.hourElement.setAttribute("min",t.config.time_24hr?"0":"1"),t.hourElement.setAttribute("max",t.config.time_24hr?"23":"12"),t.hourElement.setAttribute("maxlength","2"),t.minuteElement.setAttribute("min","0"),t.minuteElement.setAttribute("max","59"),t.minuteElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(H),t.timeContainer.appendChild(C),t.timeContainer.appendChild(V),t.config.time_24hr&&t.timeContainer.classList.add("time24hr"),t.config.enableSeconds){t.timeContainer.classList.add("hasSeconds");var Q=so("flatpickr-second");t.secondElement=Q.getElementsByTagName("input")[0],t.secondElement.value=At(t.latestSelectedDateObj?t.latestSelectedDateObj.getSeconds():E.seconds),t.secondElement.setAttribute("step",t.minuteElement.getAttribute("step")),t.secondElement.setAttribute("min","0"),t.secondElement.setAttribute("max","59"),t.secondElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(Oe("span","flatpickr-time-separator",":")),t.timeContainer.appendChild(Q)}return t.config.time_24hr||(t.amPM=Oe("span","flatpickr-am-pm",t.l10n.amPM[jt((t.latestSelectedDateObj?t.hourElement.value:t.config.defaultHour)>11)]),t.amPM.title=t.l10n.toggleTitle,t.amPM.tabIndex=-1,t.timeContainer.appendChild(t.amPM)),t.timeContainer}function rt(){t.weekdayContainer?ro(t.weekdayContainer):t.weekdayContainer=Oe("div","flatpickr-weekdays");for(var E=t.config.showMonths;E--;){var C=Oe("div","flatpickr-weekdaycontainer");t.weekdayContainer.appendChild(C)}return Ne(),t.weekdayContainer}function Ne(){if(t.weekdayContainer){var E=t.l10n.firstDayOfWeek,C=ph(t.l10n.weekdays.shorthand);E>0&&E<C.length&&(C=ph(C.splice(E,C.length),C.splice(0,E)));for(var H=t.config.showMonths;H--;)t.weekdayContainer.children[H].innerHTML=`
|
|
31
|
+
<span class='flatpickr-weekday'>
|
|
32
|
+
`+C.join("</span><span class='flatpickr-weekday'>")+`
|
|
33
|
+
</span>
|
|
34
|
+
`}}function gt(){t.calendarContainer.classList.add("hasWeeks");var E=Oe("div","flatpickr-weekwrapper");E.appendChild(Oe("span","flatpickr-weekday",t.l10n.weekAbbreviation));var C=Oe("div","flatpickr-weeks");return E.appendChild(C),{weekWrapper:E,weekNumbers:C}}function ut(E,C){C===void 0&&(C=!0);var H=C?E:E-t.currentMonth;H<0&&t._hidePrevMonthArrow===!0||H>0&&t._hideNextMonthArrow===!0||(t.currentMonth+=H,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,He("onYearChange"),we()),te(),He("onMonthChange"),Ni())}function Xe(E,C){if(E===void 0&&(E=!0),C===void 0&&(C=!0),t.input.value="",t.altInput!==void 0&&(t.altInput.value=""),t.mobileInput!==void 0&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,C===!0&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),t.config.enableTime===!0){var H=Pa(t.config),V=H.hours,Q=H.minutes,ee=H.seconds;M(V,Q,ee)}t.redraw(),E&&He("onChange")}function _t(){t.isOpen=!1,t.isMobile||(t.calendarContainer!==void 0&&t.calendarContainer.classList.remove("open"),t._input!==void 0&&t._input.classList.remove("active")),He("onClose")}function ft(){t.config!==void 0&&He("onDestroy");for(var E=t._handlers.length;E--;)t._handlers[E].remove();if(t._handlers=[],t.mobileInput)t.mobileInput.parentNode&&t.mobileInput.parentNode.removeChild(t.mobileInput),t.mobileInput=void 0;else if(t.calendarContainer&&t.calendarContainer.parentNode)if(t.config.static&&t.calendarContainer.parentNode){var C=t.calendarContainer.parentNode;if(C.lastChild&&C.removeChild(C.lastChild),C.parentNode){for(;C.firstChild;)C.parentNode.insertBefore(C.firstChild,C);C.parentNode.removeChild(C)}}else t.calendarContainer.parentNode.removeChild(t.calendarContainer);t.altInput&&(t.input.type="text",t.altInput.parentNode&&t.altInput.parentNode.removeChild(t.altInput),delete t.altInput),t.input&&(t.input.type=t.input._type,t.input.classList.remove("flatpickr-input"),t.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(H){try{delete t[H]}catch{}})}function Be(E){return t.calendarContainer.contains(E)}function et(E){if(t.isOpen&&!t.config.inline){var C=Wt(E),H=Be(C),V=C===t.input||C===t.altInput||t.element.contains(C)||E.path&&E.path.indexOf&&(~E.path.indexOf(t.input)||~E.path.indexOf(t.altInput)),Q=!V&&!H&&!Be(E.relatedTarget),ee=!t.config.ignoredFocusElements.some(function(he){return he.contains(C)});Q&&ee&&(t.config.allowInput&&t.setDate(t._input.value,!1,t.config.altInput?t.config.altFormat:t.config.dateFormat),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0&&t.input.value!==""&&t.input.value!==void 0&&y(),t.close(),t.config&&t.config.mode==="range"&&t.selectedDates.length===1&&t.clear(!1))}}function Pt(E){if(!(!E||t.config.minDate&&E<t.config.minDate.getFullYear()||t.config.maxDate&&E>t.config.maxDate.getFullYear())){var C=E,H=t.currentYear!==C;t.currentYear=C||t.currentYear,t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth=Math.min(t.config.maxDate.getMonth(),t.currentMonth):t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&(t.currentMonth=Math.max(t.config.minDate.getMonth(),t.currentMonth)),H&&(t.redraw(),He("onYearChange"),we())}}function Qe(E,C){var H;C===void 0&&(C=!0);var V=t.parseDate(E,void 0,C);if(t.config.minDate&&V&&qt(V,t.config.minDate,C!==void 0?C:!t.minDateHasTime)<0||t.config.maxDate&&V&&qt(V,t.config.maxDate,C!==void 0?C:!t.maxDateHasTime)>0)return!1;if(!t.config.enable&&t.config.disable.length===0)return!0;if(V===void 0)return!1;for(var Q=!!t.config.enable,ee=(H=t.config.enable)!==null&&H!==void 0?H:t.config.disable,he=0,re=void 0;he<ee.length;he++){if(re=ee[he],typeof re=="function"&&re(V))return Q;if(re instanceof Date&&V!==void 0&&re.getTime()===V.getTime())return Q;if(typeof re=="string"){var be=t.parseDate(re,void 0,!0);return be&&be.getTime()===V.getTime()?Q:!Q}else if(typeof re=="object"&&V!==void 0&&re.from&&re.to&&V.getTime()>=re.from.getTime()&&V.getTime()<=re.to.getTime())return Q}return!Q}function Ye(E){return t.daysContainer!==void 0?E.className.indexOf("hidden")===-1&&E.className.indexOf("flatpickr-disabled")===-1&&t.daysContainer.contains(E):!1}function Zi(E){var C=E.target===t._input,H=t._input.value.trimEnd()!==Bt();C&&H&&!(E.relatedTarget&&Be(E.relatedTarget))&&t.setDate(t._input.value,!0,E.target===t.altInput?t.config.altFormat:t.config.dateFormat)}function Et(E){var C=Wt(E),H=t.config.wrap?i.contains(C):C===t._input,V=t.config.allowInput,Q=t.isOpen&&(!V||!H),ee=t.config.inline&&H&&!V;if(E.keyCode===13&&H){if(V)return t.setDate(t._input.value,!0,C===t.altInput?t.config.altFormat:t.config.dateFormat),t.close(),C.blur();t.open()}else if(Be(C)||Q||ee){var he=!!t.timeContainer&&t.timeContainer.contains(C);switch(E.keyCode){case 13:he?(E.preventDefault(),y(),xt()):oe(E);break;case 27:E.preventDefault(),xt();break;case 8:case 46:H&&!t.config.allowInput&&(E.preventDefault(),t.clear());break;case 37:case 39:if(!he&&!H){E.preventDefault();var re=l();if(t.daysContainer!==void 0&&(V===!1||re&&Ye(re))){var be=E.keyCode===39?1:-1;E.ctrlKey?(E.stopPropagation(),ut(be),J(B(1),0)):J(void 0,be)}}else t.hourElement&&t.hourElement.focus();break;case 38:case 40:E.preventDefault();var se=E.keyCode===40?1:-1;t.daysContainer&&C.$i!==void 0||C===t.input||C===t.altInput?E.ctrlKey?(E.stopPropagation(),Pt(t.currentYear-se),J(B(1),0)):he||J(void 0,se*7):C===t.currentYearElement?Pt(t.currentYear-se):t.config.enableTime&&(!he&&t.hourElement&&t.hourElement.focus(),y(E),t._debouncedChange());break;case 9:if(he){var fe=[t.hourElement,t.minuteElement,t.secondElement,t.amPM].concat(t.pluginElements).filter(function(st){return st}),Me=fe.indexOf(C);if(Me!==-1){var kt=fe[Me+(E.shiftKey?-1:1)];E.preventDefault(),(kt||t._input).focus()}}else!t.config.noCalendar&&t.daysContainer&&t.daysContainer.contains(C)&&E.shiftKey&&(E.preventDefault(),t._input.focus());break;default:break}}if(t.amPM!==void 0&&C===t.amPM)switch(E.key){case t.l10n.amPM[0].charAt(0):case t.l10n.amPM[0].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[0],N(),ht();break;case t.l10n.amPM[1].charAt(0):case t.l10n.amPM[1].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[1],N(),ht();break}(H||Be(C))&&He("onKeyDown",E)}function Nt(E,C){if(C===void 0&&(C="flatpickr-day"),!(t.selectedDates.length!==1||E&&(!E.classList.contains(C)||E.classList.contains("flatpickr-disabled")))){for(var H=E?E.dateObj.getTime():t.days.firstElementChild.dateObj.getTime(),V=t.parseDate(t.selectedDates[0],void 0,!0).getTime(),Q=Math.min(H,t.selectedDates[0].getTime()),ee=Math.max(H,t.selectedDates[0].getTime()),he=!1,re=0,be=0,se=Q;se<ee;se+=hh.DAY)Qe(new Date(se),!0)||(he=he||se>Q&&se<ee,se<V&&(!re||se>re)?re=se:se>V&&(!be||se<be)&&(be=se));var fe=Array.from(t.rContainer.querySelectorAll("*:nth-child(-n+"+t.config.showMonths+") > ."+C));fe.forEach(function(Me){var kt=Me.dateObj,st=kt.getTime(),yi=re>0&&st<re||be>0&&st>be;if(yi){Me.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(li){Me.classList.remove(li)});return}else if(he&&!yi)return;["startRange","inRange","endRange","notAllowed"].forEach(function(li){Me.classList.remove(li)}),E!==void 0&&(E.classList.add(H<=t.selectedDates[0].getTime()?"startRange":"endRange"),V<H&&st===V?Me.classList.add("startRange"):V>H&&st===V&&Me.classList.add("endRange"),st>=re&&(be===0||st<=be)&&fh(st,V,H)&&Me.classList.add("inRange"))})}}function gi(){t.isOpen&&!t.config.static&&!t.config.inline&&si()}function $i(E,C){if(C===void 0&&(C=t._positionElement),t.isMobile===!0){if(E){E.preventDefault();var H=Wt(E);H&&H.blur()}t.mobileInput!==void 0&&(t.mobileInput.focus(),t.mobileInput.click()),He("onOpen");return}else if(t._input.disabled||t.config.inline)return;var V=t.isOpen;t.isOpen=!0,V||(t.calendarContainer.classList.add("open"),t._input.classList.add("active"),He("onOpen"),si(C)),t.config.enableTime===!0&&t.config.noCalendar===!0&&t.config.allowInput===!1&&(E===void 0||!t.timeContainer.contains(E.relatedTarget))&&setTimeout(function(){return t.hourElement.select()},50)}function ri(E){return function(C){var H=t.config["_"+E+"Date"]=t.parseDate(C,t.config.dateFormat),V=t.config["_"+(E==="min"?"max":"min")+"Date"];H!==void 0&&(t[E==="min"?"minDateHasTime":"maxDateHasTime"]=H.getHours()>0||H.getMinutes()>0||H.getSeconds()>0),t.selectedDates&&(t.selectedDates=t.selectedDates.filter(function(Q){return Qe(Q)}),!t.selectedDates.length&&E==="min"&&L(H),ht()),t.daysContainer&&(Rt(),H!==void 0?t.currentYearElement[E]=H.getFullYear().toString():t.currentYearElement.removeAttribute(E),t.currentYearElement.disabled=!!V&&H!==void 0&&V.getFullYear()===H.getFullYear())}}function Yt(){var E=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],C=Ct(Ct({},JSON.parse(JSON.stringify(i.dataset||{}))),e),H={};t.config.parseDate=C.parseDate,t.config.formatDate=C.formatDate,Object.defineProperty(t.config,"enable",{get:function(){return t.config._enable},set:function(fe){t.config._enable=en(fe)}}),Object.defineProperty(t.config,"disable",{get:function(){return t.config._disable},set:function(fe){t.config._disable=en(fe)}});var V=C.mode==="time";if(!C.dateFormat&&(C.enableTime||V)){var Q=nt.defaultConfig.dateFormat||xn.dateFormat;H.dateFormat=C.noCalendar||V?"H:i"+(C.enableSeconds?":S":""):Q+" H:i"+(C.enableSeconds?":S":"")}if(C.altInput&&(C.enableTime||V)&&!C.altFormat){var ee=nt.defaultConfig.altFormat||xn.altFormat;H.altFormat=C.noCalendar||V?"h:i"+(C.enableSeconds?":S K":" K"):ee+(" h:i"+(C.enableSeconds?":S":"")+" K")}Object.defineProperty(t.config,"minDate",{get:function(){return t.config._minDate},set:ri("min")}),Object.defineProperty(t.config,"maxDate",{get:function(){return t.config._maxDate},set:ri("max")});var he=function(fe){return function(Me){t.config[fe==="min"?"_minTime":"_maxTime"]=t.parseDate(Me,"H:i:S")}};Object.defineProperty(t.config,"minTime",{get:function(){return t.config._minTime},set:he("min")}),Object.defineProperty(t.config,"maxTime",{get:function(){return t.config._maxTime},set:he("max")}),C.mode==="time"&&(t.config.noCalendar=!0,t.config.enableTime=!0),Object.assign(t.config,H,C);for(var re=0;re<E.length;re++)t.config[E[re]]=t.config[E[re]]===!0||t.config[E[re]]==="true";xa.filter(function(fe){return t.config[fe]!==void 0}).forEach(function(fe){t.config[fe]=Ma(t.config[fe]||[]).map(m)}),t.isMobile=!t.config.disableMobile&&!t.config.inline&&t.config.mode==="single"&&!t.config.disable.length&&!t.config.enable&&!t.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var re=0;re<t.config.plugins.length;re++){var be=t.config.plugins[re](t)||{};for(var se in be)xa.indexOf(se)>-1?t.config[se]=Ma(be[se]).map(m).concat(t.config[se]):typeof C[se]>"u"&&(t.config[se]=be[se])}C.altInputClass||(t.config.altInputClass=dt().className+" "+t.config.altInputClass),He("onParseConfig")}function dt(){return t.config.wrap?i.querySelector("[data-input]"):i}function Mi(){typeof t.config.locale!="object"&&typeof nt.l10ns[t.config.locale]>"u"&&t.config.errorHandler(new Error("flatpickr: invalid locale "+t.config.locale)),t.l10n=Ct(Ct({},nt.l10ns.default),typeof t.config.locale=="object"?t.config.locale:t.config.locale!=="default"?nt.l10ns[t.config.locale]:void 0),Qi.D="("+t.l10n.weekdays.shorthand.join("|")+")",Qi.l="("+t.l10n.weekdays.longhand.join("|")+")",Qi.M="("+t.l10n.months.shorthand.join("|")+")",Qi.F="("+t.l10n.months.longhand.join("|")+")",Qi.K="("+t.l10n.amPM[0]+"|"+t.l10n.amPM[1]+"|"+t.l10n.amPM[0].toLowerCase()+"|"+t.l10n.amPM[1].toLowerCase()+")";var E=Ct(Ct({},e),JSON.parse(JSON.stringify(i.dataset||{})));E.time_24hr===void 0&&nt.defaultConfig.time_24hr===void 0&&(t.config.time_24hr=t.l10n.time_24hr),t.formatDate=tu(t),t.parseDate=Oa({config:t.config,l10n:t.l10n})}function si(E){if(typeof t.config.position=="function")return void t.config.position(t,E);if(t.calendarContainer!==void 0){He("onPreCalendarPosition");var C=E||t._positionElement,H=Array.prototype.reduce.call(t.calendarContainer.children,(function(ur,wi){return ur+wi.offsetHeight}),0),V=t.calendarContainer.offsetWidth,Q=t.config.position.split(" "),ee=Q[0],he=Q.length>1?Q[1]:null,re=C.getBoundingClientRect(),be=window.innerHeight-re.bottom,se=ee==="above"||ee!=="below"&&be<H&&re.top>H,fe=window.pageYOffset+re.top+(se?-H-2:C.offsetHeight+2);if(Tt(t.calendarContainer,"arrowTop",!se),Tt(t.calendarContainer,"arrowBottom",se),!t.config.inline){var Me=window.pageXOffset+re.left,kt=!1,st=!1;he==="center"?(Me-=(V-re.width)/2,kt=!0):he==="right"&&(Me-=V-re.width,st=!0),Tt(t.calendarContainer,"arrowLeft",!kt&&!st),Tt(t.calendarContainer,"arrowCenter",kt),Tt(t.calendarContainer,"arrowRight",st);var yi=window.document.body.offsetWidth-(window.pageXOffset+re.right),li=Me+V>window.document.body.offsetWidth,On=yi+V>window.document.body.offsetWidth;if(Tt(t.calendarContainer,"rightMost",li),!t.config.static)if(t.calendarContainer.style.top=fe+"px",!li)t.calendarContainer.style.left=Me+"px",t.calendarContainer.style.right="auto";else if(!On)t.calendarContainer.style.left="auto",t.calendarContainer.style.right=yi+"px";else{var tn=It();if(tn===void 0)return;var ci=window.document.body.offsetWidth,Ln=Math.max(0,ci/2-V/2),nn=".flatpickr-calendar.centerMost:before",rn=".flatpickr-calendar.centerMost:after",Ii=tn.cssRules.length,Pn="{left:"+re.left+"px;right:auto;}";Tt(t.calendarContainer,"rightMost",!1),Tt(t.calendarContainer,"centerMost",!0),tn.insertRule(nn+","+rn+Pn,Ii),t.calendarContainer.style.left=Ln+"px",t.calendarContainer.style.right="auto"}}}}function It(){for(var E=null,C=0;C<document.styleSheets.length;C++){var H=document.styleSheets[C];if(H.cssRules){try{H.cssRules}catch{continue}E=H;break}}return E??tt()}function tt(){var E=document.createElement("style");return document.head.appendChild(E),E.sheet}function Rt(){t.config.noCalendar||t.isMobile||(we(),Ni(),te())}function xt(){t._input.focus(),window.navigator.userAgent.indexOf("MSIE")!==-1||navigator.msMaxTouchPoints!==void 0?setTimeout(t.close,0):t.close()}function oe(E){E.preventDefault(),E.stopPropagation();var C=function(fe){return fe.classList&&fe.classList.contains("flatpickr-day")&&!fe.classList.contains("flatpickr-disabled")&&!fe.classList.contains("notAllowed")},H=$c(Wt(E),C);if(H!==void 0){var V=H,Q=t.latestSelectedDateObj=new Date(V.dateObj.getTime()),ee=(Q.getMonth()<t.currentMonth||Q.getMonth()>t.currentMonth+t.config.showMonths-1)&&t.config.mode!=="range";if(t.selectedDateElem=V,t.config.mode==="single")t.selectedDates=[Q];else if(t.config.mode==="multiple"){var he=Pi(Q);he?t.selectedDates.splice(parseInt(he),1):t.selectedDates.push(Q)}else t.config.mode==="range"&&(t.selectedDates.length===2&&t.clear(!1,!1),t.latestSelectedDateObj=Q,t.selectedDates.push(Q),qt(Q,t.selectedDates[0],!0)!==0&&t.selectedDates.sort(function(fe,Me){return fe.getTime()-Me.getTime()}));if(N(),ee){var re=t.currentYear!==Q.getFullYear();t.currentYear=Q.getFullYear(),t.currentMonth=Q.getMonth(),re&&(He("onYearChange"),we()),He("onMonthChange")}if(Ni(),te(),ht(),!ee&&t.config.mode!=="range"&&t.config.showMonths===1?j(V):t.selectedDateElem!==void 0&&t.hourElement===void 0&&t.selectedDateElem&&t.selectedDateElem.focus(),t.hourElement!==void 0&&t.hourElement!==void 0&&t.hourElement.focus(),t.config.closeOnSelect){var be=t.config.mode==="single"&&!t.config.enableTime,se=t.config.mode==="range"&&t.selectedDates.length===2&&!t.config.enableTime;(be||se)&&xt()}D()}}var We={locale:[Mi,Ne],showMonths:[ct,f,rt],minDate:[g],maxDate:[g],positionElement:[Dt],clickOpens:[function(){t.config.clickOpens===!0?(k(t._input,"focus",t.open),k(t._input,"click",t.open)):(t._input.removeEventListener("focus",t.open),t._input.removeEventListener("click",t.open))}]};function Oi(E,C){if(E!==null&&typeof E=="object"){Object.assign(t.config,E);for(var H in E)We[H]!==void 0&&We[H].forEach(function(V){return V()})}else t.config[E]=C,We[E]!==void 0?We[E].forEach(function(V){return V()}):xa.indexOf(E)>-1&&(t.config[E]=Ma(C));t.redraw(),ht(!0)}function vi(E,C){var H=[];if(E instanceof Array)H=E.map(function(V){return t.parseDate(V,C)});else if(E instanceof Date||typeof E=="number")H=[t.parseDate(E,C)];else if(typeof E=="string")switch(t.config.mode){case"single":case"time":H=[t.parseDate(E,C)];break;case"multiple":H=E.split(t.config.conjunction).map(function(V){return t.parseDate(V,C)});break;case"range":H=E.split(t.l10n.rangeSeparator).map(function(V){return t.parseDate(V,C)});break;default:break}else t.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(E)));t.selectedDates=t.config.allowInvalidPreload?H:H.filter(function(V){return V instanceof Date&&Qe(V,!1)}),t.config.mode==="range"&&t.selectedDates.sort(function(V,Q){return V.getTime()-Q.getTime()})}function Li(E,C,H){if(C===void 0&&(C=!1),H===void 0&&(H=t.config.dateFormat),E!==0&&!E||E instanceof Array&&E.length===0)return t.clear(C);vi(E,H),t.latestSelectedDateObj=t.selectedDates[t.selectedDates.length-1],t.redraw(),g(void 0,C),L(),t.selectedDates.length===0&&t.clear(!1),ht(C),C&&He("onChange")}function en(E){return E.slice().map(function(C){return typeof C=="string"||typeof C=="number"||C instanceof Date?t.parseDate(C,void 0,!0):C&&typeof C=="object"&&C.from&&C.to?{from:t.parseDate(C.from,void 0),to:t.parseDate(C.to,void 0)}:C}).filter(function(C){return C})}function Dn(){t.selectedDates=[],t.now=t.parseDate(t.config.now)||new Date;var E=t.config.defaultDate||((t.input.nodeName==="INPUT"||t.input.nodeName==="TEXTAREA")&&t.input.placeholder&&t.input.value===t.input.placeholder?null:t.input.value);E&&vi(E,t.config.dateFormat),t._initialDate=t.selectedDates.length>0?t.selectedDates[0]:t.config.minDate&&t.config.minDate.getTime()>t.now.getTime()?t.config.minDate:t.config.maxDate&&t.config.maxDate.getTime()<t.now.getTime()?t.config.maxDate:t.now,t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth(),t.selectedDates.length>0&&(t.latestSelectedDateObj=t.selectedDates[0]),t.config.minTime!==void 0&&(t.config.minTime=t.parseDate(t.config.minTime,"H:i")),t.config.maxTime!==void 0&&(t.config.maxTime=t.parseDate(t.config.maxTime,"H:i")),t.minDateHasTime=!!t.config.minDate&&(t.config.minDate.getHours()>0||t.config.minDate.getMinutes()>0||t.config.minDate.getSeconds()>0),t.maxDateHasTime=!!t.config.maxDate&&(t.config.maxDate.getHours()>0||t.config.maxDate.getMinutes()>0||t.config.maxDate.getSeconds()>0)}function bi(){if(t.input=dt(),!t.input){t.config.errorHandler(new Error("Invalid input element specified"));return}t.input._type=t.input.type,t.input.type="text",t.input.classList.add("flatpickr-input"),t._input=t.input,t.config.altInput&&(t.altInput=Oe(t.input.nodeName,t.config.altInputClass),t._input=t.altInput,t.altInput.placeholder=t.input.placeholder,t.altInput.disabled=t.input.disabled,t.altInput.required=t.input.required,t.altInput.tabIndex=t.input.tabIndex,t.altInput.type="text",t.input.setAttribute("type","hidden"),!t.config.static&&t.input.parentNode&&t.input.parentNode.insertBefore(t.altInput,t.input.nextSibling)),t.config.allowInput||t._input.setAttribute("readonly","readonly"),Dt()}function Dt(){t._positionElement=t.config.positionElement||t._input}function Kt(){var E=t.config.enableTime?t.config.noCalendar?"time":"datetime-local":"date";t.mobileInput=Oe("input",t.input.className+" flatpickr-mobile"),t.mobileInput.tabIndex=1,t.mobileInput.type=E,t.mobileInput.disabled=t.input.disabled,t.mobileInput.required=t.input.required,t.mobileInput.placeholder=t.input.placeholder,t.mobileFormatStr=E==="datetime-local"?"Y-m-d\\TH:i:S":E==="date"?"Y-m-d":"H:i:S",t.selectedDates.length>0&&(t.mobileInput.defaultValue=t.mobileInput.value=t.formatDate(t.selectedDates[0],t.mobileFormatStr)),t.config.minDate&&(t.mobileInput.min=t.formatDate(t.config.minDate,"Y-m-d")),t.config.maxDate&&(t.mobileInput.max=t.formatDate(t.config.maxDate,"Y-m-d")),t.input.getAttribute("step")&&(t.mobileInput.step=String(t.input.getAttribute("step"))),t.input.type="hidden",t.altInput!==void 0&&(t.altInput.type="hidden");try{t.input.parentNode&&t.input.parentNode.insertBefore(t.mobileInput,t.input.nextSibling)}catch{}k(t.mobileInput,"change",function(C){t.setDate(Wt(C).value,!1,t.mobileFormatStr),He("onChange"),He("onClose")})}function oi(E){if(t.isOpen===!0)return t.close();t.open(E)}function He(E,C){if(t.config!==void 0){var H=t.config[E];if(H!==void 0&&H.length>0)for(var V=0;H[V]&&V<H.length;V++)H[V](t.selectedDates,t.input.value,t,C);E==="onChange"&&(t.input.dispatchEvent(ai("change")),t.input.dispatchEvent(ai("input")))}}function ai(E){var C=document.createEvent("Event");return C.initEvent(E,!0,!0),C}function Pi(E){for(var C=0;C<t.selectedDates.length;C++){var H=t.selectedDates[C];if(H instanceof Date&&qt(H,E)===0)return""+C}return!1}function kn(E){return t.config.mode!=="range"||t.selectedDates.length<2?!1:qt(E,t.selectedDates[0])>=0&&qt(E,t.selectedDates[1])<=0}function Ni(){t.config.noCalendar||t.isMobile||!t.monthNav||(t.yearElements.forEach(function(E,C){var H=new Date(t.currentYear,t.currentMonth,1);H.setMonth(t.currentMonth+C),t.config.showMonths>1||t.config.monthSelectorType==="static"?t.monthElements[C].textContent=oo(H.getMonth(),t.config.shorthandCurrentMonth,t.l10n)+" ":t.monthsDropdownContainer.value=H.getMonth().toString(),E.value=H.getFullYear().toString()}),t._hidePrevMonthArrow=t.config.minDate!==void 0&&(t.currentYear===t.config.minDate.getFullYear()?t.currentMonth<=t.config.minDate.getMonth():t.currentYear<t.config.minDate.getFullYear()),t._hideNextMonthArrow=t.config.maxDate!==void 0&&(t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth+1>t.config.maxDate.getMonth():t.currentYear>t.config.maxDate.getFullYear()))}function Bt(E){var C=E||(t.config.altInput?t.config.altFormat:t.config.dateFormat);return t.selectedDates.map(function(H){return t.formatDate(H,C)}).filter(function(H,V,Q){return t.config.mode!=="range"||t.config.enableTime||Q.indexOf(H)===V}).join(t.config.mode!=="range"?t.config.conjunction:t.l10n.rangeSeparator)}function ht(E){E===void 0&&(E=!0),t.mobileInput!==void 0&&t.mobileFormatStr&&(t.mobileInput.value=t.latestSelectedDateObj!==void 0?t.formatDate(t.latestSelectedDateObj,t.mobileFormatStr):""),t.input.value=Bt(t.config.dateFormat),t.altInput!==void 0&&(t.altInput.value=Bt(t.config.altFormat)),E!==!1&&He("onValueUpdate")}function Mn(E){var C=Wt(E),H=t.prevMonthNav.contains(C),V=t.nextMonthNav.contains(C);H||V?ut(H?-1:1):t.yearElements.indexOf(C)>=0?C.select():C.classList.contains("arrowUp")?t.changeYear(t.currentYear+1):C.classList.contains("arrowDown")&&t.changeYear(t.currentYear-1)}function cr(E){E.preventDefault();var C=E.type==="keydown",H=Wt(E),V=H;t.amPM!==void 0&&H===t.amPM&&(t.amPM.textContent=t.l10n.amPM[jt(t.amPM.textContent===t.l10n.amPM[0])]);var Q=parseFloat(V.getAttribute("min")),ee=parseFloat(V.getAttribute("max")),he=parseFloat(V.getAttribute("step")),re=parseInt(V.value,10),be=E.delta||(C?E.which===38?1:-1:0),se=re+he*be;if(typeof V.value<"u"&&V.value.length===2){var fe=V===t.hourElement,Me=V===t.minuteElement;se<Q?(se=ee+se+jt(!fe)+(jt(fe)&&jt(!t.amPM)),Me&&u(void 0,-1,t.hourElement)):se>ee&&(se=V===t.hourElement?se-ee-jt(!t.amPM):Q,Me&&u(void 0,1,t.hourElement)),t.amPM&&fe&&(he===1?se+re===23:Math.abs(se-re)>he)&&(t.amPM.textContent=t.l10n.amPM[jt(t.amPM.textContent===t.l10n.amPM[0])]),V.value=At(se)}}return o(),t}function Zr(i,e){for(var t=Array.prototype.slice.call(i).filter(function(m){return m instanceof HTMLElement}),r=[],o=0;o<t.length;o++){var l=t[o];try{if(l.getAttribute("data-fp-omit")!==null)continue;l._flatpickr!==void 0&&(l._flatpickr.destroy(),l._flatpickr=void 0),l._flatpickr=xw(l,e||{}),r.push(l._flatpickr)}catch(m){console.error(m)}}return r.length===1?r[0]:r}typeof HTMLElement<"u"&&typeof HTMLCollection<"u"&&typeof NodeList<"u"&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(i){return Zr(this,i)},HTMLElement.prototype.flatpickr=function(i){return Zr([this],i)});var nt=function(i,e){return typeof i=="string"?Zr(window.document.querySelectorAll(i),e):i instanceof Node?Zr([i],e):Zr(i,e)};nt.defaultConfig={};nt.l10ns={en:Ct({},ka),default:Ct({},ka)};nt.localize=function(i){nt.l10ns.default=Ct(Ct({},nt.l10ns.default),i)};nt.setDefaults=function(i){nt.defaultConfig=Ct(Ct({},nt.defaultConfig),i)};nt.parseDate=Oa({});nt.formatDate=tu({});nt.compareDates=qt;typeof jQuery<"u"&&typeof jQuery.fn<"u"&&(jQuery.fn.flatpickr=function(i){return Zr(this,i)});Date.prototype.fp_incr=function(i){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+(typeof i=="string"?parseInt(i,10):i))};typeof window<"u"&&(window.flatpickr=nt);var mh=nt;var KA=fi(vh(),1),Ia=mh;(function(i){var e;i.filters=e={append:function(t){var r=t.label,o=t.name,l=t.type,m=t.value||"",f=t.operator,y=t.operators,A=t.index,S="f["+o+"]["+A+"][v]",N="f["+o+"]["+A+"][o]",L=null,M=null;switch(y.length>0&&(L=i('<select class="form-control form-select form-select-sm"></select>').prop("name",N),y.forEach(w=>{var g=this.build_operator(w,t);g&&(g.prop("value")===f&&g.prop("selected",!0),L.append(g))}),L.find("[data-additional-fieldset]").length>0&&L.addClass("switch-additional-fieldsets")),l){case"boolean":L&&L.prop("name",S).find("option").each(function(){i(this).attr("value")===m&&i(this).attr("selected",!0)});break;case"date":case"datetime":case"timestamp":case"time":M=i.map([void 0,"-\u221E","\u221E"],function(w,g){var d=g==0?!f||f=="default":f=="between";return i('<span class="additional-fieldset"></span>').addClass(g==0?"default":"between").css("display",d?"inline-block":"none").html(i('<input class="input-sm form-control form-control-sm" type="text" />').addClass(l=="date"?"date":"datetime").prop("name",S+"[]").prop("value",m[g]||"").prop("size",l=="date"||l=="time"?20:25).prop("placeholder",w))});break;case"enum":if(L){var T=m instanceof Array;L=L.prop("name",T?S+"[]":S).prop("multiple",T).add(i('<a href="#" class="switch-select"></a>').append(i("<i></i>").addClass("fas fa-"+(T?"minus":"plus")))),L.find("option").each(function(){let w=i(this).attr("value");(T?m.includes(w):w===m)&&i(this).attr("selected",!0)}),T&&L.find("option[value^=_],option[disabled]").hide().prop("selected",!1)}break;case"citext":case"string":case"text":case"belongs_to_association":case"has_one_association":M=i('<input class="additional-fieldset form-control form-control-sm" type="text" />').css("display",f=="_present"||f=="_blank"?"none":"inline-block").prop("name",S).prop("value",m);break;case"integer":case"decimal":case"float":M=i('<input class="additional-fieldset default form-control form-control-sm" type="text" />').css("display",!f||f=="default"?"inline-block":"none").prop("type",l).prop("name",S+"[]").prop("value",m[0]||"").add(i('<input placeholder="-\u221E" class="additional-fieldset between form-control form-control-sm" />').css("display",f=="between"?"inline-block":"none").prop("type",l).prop("name",S+"[]").prop("value",m[1]||"")).add(i('<input placeholder="\u221E" class="additional-fieldset between form-control form-control-sm" />').css("display",f=="between"?"inline-block":"none").prop("type",l).prop("name",S+"[]").prop("value",m[2]||""));break;default:L=i('<input type="text" class="form-control form-control-sm" />').prop("name",S).prop("value",m);break}var k=o+"-"+A+"-filter-container";i("#"+k).remove();var D=i("<div>").attr("id",k).addClass("filter d-inline-block my-1").append(i('<button type="button" class="btn btn-info btn-sm delete"></button>').append('<i class="fas fa-trash"></i>').append(document.createTextNode(r))).append(" ").append(L).append(" ").append(M);i("#filters_box").append(D),D.find(".date, .datetime").each(function(){Ia(this,i.extend({dateFormat:"Y-m-dTH:i:S",altInput:!0,locale:Pe.locale},t.datetimepicker_options))}),i("hr.filters_box:hidden").show("slow")},build_operator:function(t,r){if(t instanceof Object){var o=i("<option></option>");o.text(t.label),delete t.label;for(let m in t)o.attr(m,t[m]);return o}switch(t){case"_discard":return i('<option value="_discard">...</option>');case"_separator":return i('<option disabled="disabled">---------</option>');case"_present":return i('<option value="_present"></option>').text(Pe.t("is_present"));case"_blank":return i('<option value="_blank"></option>').text(Pe.t("is_blank"));case"_not_null":return i('<option value="_not_null"></option>').text(Pe.t("is_present"));case"_null":return i('<option value="_null"></option>').text(Pe.t("is_blank"));case"true":return i('<option value="true"></option>').text(Pe.t("true"));case"false":return i('<option value="false"></option>').text(Pe.t("false"));case"today":return i('<option value="today"></option>').text(Pe.t("today"));case"yesterday":return i('<option value="yesterday"></option>').text(Pe.t("yesterday"));case"this_week":return i('<option value="this_week"></option>').text(Pe.t("this_week"));case"last_week":return i('<option value="last_week"></option>').text(Pe.t("last_week"));case"like":return i('<option data-additional-fieldset="additional-fieldset" value="like"></option>').text(Pe.t("contains"));case"not_like":return i('<option data-additional-fieldset="additional-fieldset" value="not_like"></option>').text(Pe.t("does_not_contain"));case"is":return i('<option data-additional-fieldset="additional-fieldset" value="is"></option>').text(Pe.t("is_exactly"));case"starts_with":return i('<option data-additional-fieldset="additional-fieldset" value="starts_with"></option>').text(Pe.t("starts_with"));case"ends_with":return i('<option data-additional-fieldset="additional-fieldset" value="ends_with"></option>').text(Pe.t("ends_with"));case"default":var l;switch(r.type){case"date":case"datetime":case"timestamp":l=Pe.t("date");break;case"time":l=Pe.t("time");break;case"integer":case"decimal":case"float":l=Pe.t("number");break}return i('<option data-additional-fieldset="default" value="default"></option>').text(l);case"between":return i('<option data-additional-fieldset="between" value="between"></option>').text(Pe.t("between_and_"));default:return null}}},i(document).on("click","#filters a",function(t){t.preventDefault(),i.filters.append(i.extend({index:Date.now().toString().slice(6,11)},i(this).data("options")))}),i(document).on("click","#filters_box .delete",function(t){t.preventDefault();var r=i(this).parents("form");i(this).parents(".filter").remove(),!i("#filters_box").children().length&&i("hr.filters_box:visible").hide("slow")}),i(document).on("click","#filters_box .switch-select",function(t){t.preventDefault();var r=i(this).siblings("select");r.attr("multiple",!r.attr("multiple")),r.attr("name",r.attr("multiple")?r.attr("name")+"[]":r.attr("name").replace(/\[\]$/,"")),r.find("option[value^=_],option[disabled]").toggle(),i(this).find("i").toggleClass("fa-plus fa-minus")}),i(document).on("change","#filters_box .switch-additional-fieldsets",function(t){var r=i(this).find("option:selected"),o=i(r).data("additional-fieldset");o?(i(this).siblings(".additional-fieldset:not(."+o+")").hide("slow"),i(this).siblings("."+o).show("slow")):i(this).siblings(".additional-fieldset").hide("slow")})})(bh.default);var yh=fi(di(),1);(function(i){i.widget("ra.filteringMultiselect",i.ra.abstractSelect,{_cache:{},options:{sortable:!1,removable:!0,regional:{add:"Add",chooseAll:"Choose all",clearAll:"Clear all",down:"Down",remove:"Remove",search:"Search",up:"Up"},searchDelay:400,remote_source:null,xhr:!1},wrapper:null,filter:null,collection:null,addAll:null,add:null,remove:null,up:null,down:null,selection:null,removeAll:null,_create:function(){this._cache={},this._build(),this._buildCache(),this._bindEvents()},_build:function(){var e;if(this.wrapper=this.element.siblings('.ra-multiselect[data-input-for="'+this.element.attr("id")+'"]'),this.wrapper.length>0){this.filter=this.wrapper.find("input.ra-multiselect-search"),this.collection=this.wrapper.find("select.ra-multiselect-collection"),this.addAll=this.wrapper.find("a.ra-multiselect-item-add-all"),this.add=this.wrapper.find("a.ra-multiselect-item-add"),this.remove=this.wrapper.find("a.ra-multiselect-item-remove"),this.up=this.wrapper.find("a.ra-multiselect-item-up"),this.down=this.wrapper.find("a.ra-multiselect-item-down"),this.selection=this.wrapper.find("select.ra-multiselect-selection"),this.removeAll=this.wrapper.find("a.ra-multiselect-item-remove-all");return}this.wrapper=i('<div class="ra-multiselect">').attr("data-input-for",this.element.attr("id")),this.wrapper.insertAfter(this.element);var t=i('<div class="ra-multiselect-header">');this.filter=i('<input type="search" placeholder="'+this.options.regional.search+'" class="form-control ra-multiselect-search"/>'),t.append(this.filter),this.wrapper.append(t);var r={left:i('<div class="ra-multiselect-column ra-multiselect-left">'),center:i('<div class="ra-multiselect-column ra-multiselect-center">'),right:i('<div class="ra-multiselect-column ra-multiselect-right">')};for(e in r)r.hasOwnProperty(e)&&this.wrapper.append(r[e]);this.collection=i('<select multiple="multiple"></select>'),this.collection.addClass("form-control ra-multiselect-collection"),this.addAll=i('<a href="#" class="ra-multiselect-item-add-all"><span class="fas fa-chevron-circle-right"></span>'+this.options.regional.chooseAll+"</a>"),r.left.html(this.collection).append(this.addAll),this.collection.wrap('<div class="wrapper"/>'),this.add=i('<a href="#" class="fas fa-chevron-circle-right ra-multiselect-item-add"></a>').attr("title",this.options.regional.add),r.center.append(this.add),this.options.removable&&(this.remove=i('<a href="#" class="fas fa-chevron-circle-left ra-multiselect-item-remove"></a>').attr("title",this.options.regional.remove),r.center.append(this.remove)),this.options.sortable&&(this.up=i('<a href="#" class="fas fa-chevron-circle-up ra-multiselect-item-up"></a>').attr("title",this.options.regional.up),this.down=i('<a href="#" class="fas fa-chevron-circle-down ra-multiselect-item-down"></a>').attr("title",this.options.regional.down),r.center.append(this.up).append(this.down)),this.selection=i('<select class="form-control ra-multiselect-selection" multiple="multiple"></select>'),r.right.append(this.selection),this.options.removable&&(this.removeAll=i('<a href="#" class="ra-multiselect-item-remove-all"><span class="fas fa-chevron-circle-left"></span>'+this.options.regional.clearAll+"</a>"),r.right.append(this.removeAll)),this.selection.wrap('<div class="wrapper"/>'),this.element.css({display:"none"}),this.tooManyObjectsPlaceholder=i('<option disabled="disabled" />').text(Pe.t("too_many_objects")),this.noObjectsPlaceholder=i('<option disabled="disabled" />').text(Pe.t("no_objects")),this.options.xhr&&this.collection.append(this.tooManyObjectsPlaceholder)},_bindEvents:function(){var e=this;this.addAll.click(function(r){e._select(i("option:not(:disabled)",e.collection)),r.preventDefault(),e.selection.trigger("change")}),this.add.click(function(r){e._select(i(":selected",e.collection)),r.preventDefault(),e.selection.trigger("change")}),this.options.removable&&(this.removeAll.click(function(r){e._deSelect(i("option",e.selection)),r.preventDefault(),e.selection.trigger("change")}),this.remove.click(function(r){e._deSelect(i(":selected",e.selection)),r.preventDefault(),e.selection.trigger("change")}));var t=null;this.options.sortable&&(this.up.click(function(r){e._move("up",i(":selected",e.selection)),r.preventDefault()}),this.down.click(function(r){e._move("down",i(":selected",e.selection)),r.preventDefault()})),this.filter.bind("keyup click",function(r){t&&clearTimeout(t),t=setTimeout(function(){e._queryFilter(e.filter.val())},e.options.searchDelay)})},_queryFilter:function(e){var t=this;t._query(e,function(r){var o=[],l;for(l=0;l<r.length;l++)t.selected(r[l].id)||o.push(l);if(o.length>0)for(t.collection.html(""),l=0;l<o.length;l++){var m=i("<option></option>").prop("value",r[o[l]].id).prop("title",r[o[l]].label).text(r[o[l]].label);t.collection.append(m)}else t.collection.html(t.noObjectsPlaceholder)})},_buildCache:function(e){var t=this;this.element.find("option").each(function(r,o){t._cache["o_"+o.value]={id:o.value,value:i(o).text()},o.selected?i(o).clone().appendTo(t.selection).prop("selected",!1).prop("title",i(o).text()):i(o).clone().appendTo(t.collection).prop("selected",!1).prop("title",i(o).text())})},_deSelect:function(e){var t=this;e.each(function(r,o){t.element.find('option[value="'+o.value+'"]').prop("selected",!1)}),i(e).appendTo(this.collection).prop("selected",!1)},_query:function(e,t){var r,o=[];if(e==="")if(this.options.xhr)this.collection.html(this.tooManyObjectsPlaceholder);else{for(r in this._cache)if(this._cache.hasOwnProperty(r)){var l=this._cache[r];o.push({id:l.id,label:l.value})}t.apply(this,[o])}else if(this.options.xhr)i.ajax({beforeSend:function(m){m.setRequestHeader("Accept","application/json")},url:this.options.remote_source,data:this.options.createQuery(e),success:t});else{e=new RegExp(e+".*","i");for(r in this._cache)if(this._cache.hasOwnProperty(r)&&e.test(this._cache[r].value)){var l=this._cache[r];o.push({id:l.id,label:l.value})}t.apply(this,[o])}},_select:function(e){var t=this;e.each(function(r,o){var l=t.element.find('option[value="'+o.value+'"]');l.length?l.prop("selected",!0):t.element.append(i("<option></option>").prop("value",o.value).prop("selected",!0))}),i(e).appendTo(this.selection).prop("selected",!1)},_move:function(e,t){var r=this;e=="up"?t.each(function(o,l){var m=i(l).prev();if(m.length>0){var f=r.element.find('option[value="'+l.value+'"]'),y=r.element.find('option[value="'+m[0].value+'"]');y.before(f),m.before(i(l))}}):(i.fn.reverse=[].reverse,t.reverse().each(function(o,l){var m=i(l).next();if(m.length>0){var f=r.element.find('option[value="'+l.value+'"]'),y=r.element.find('option[value="'+m[0].value+'"]');y.after(f),m.after(i(l))}}))},selected:function(e){if(this.selection[0].querySelectorAll('option[value="'+e+'"]')[0])return!0},destroy:function(){this.wrapper.remove(),this.element.css({display:"inline"}),i.Widget.prototype.destroy.apply(this,arguments)}})})(yh.default);var wh=fi(di(),1);(function(i){"use strict";typeof define=="function"&&define.amd?define(["jquery","./menu","../keycode","../position","../safe-active-element","../version","../widget"],i):i(jQuery)})(function(i){"use strict";return i.widget("ui.autocomplete",{version:"1.13.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var e,t,r,o=this.element[0].nodeName.toLowerCase(),l=o==="textarea",m=o==="input";this.isMultiLine=l||!m&&this._isContentEditable(this.element),this.valueMethod=this.element[l||m?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(f){if(this.element.prop("readOnly")){e=!0,r=!0,t=!0;return}e=!1,r=!1,t=!1;var y=i.ui.keyCode;switch(f.keyCode){case y.PAGE_UP:e=!0,this._move("previousPage",f);break;case y.PAGE_DOWN:e=!0,this._move("nextPage",f);break;case y.UP:e=!0,this._keyEvent("previous",f);break;case y.DOWN:e=!0,this._keyEvent("next",f);break;case y.ENTER:this.menu.active&&(e=!0,f.preventDefault(),this.menu.select(f));break;case y.TAB:this.menu.active&&this.menu.select(f);break;case y.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(f),f.preventDefault());break;default:t=!0,this._searchTimeout(f);break}},keypress:function(f){if(e){e=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&f.preventDefault();return}if(!t){var y=i.ui.keyCode;switch(f.keyCode){case y.PAGE_UP:this._move("previousPage",f);break;case y.PAGE_DOWN:this._move("nextPage",f);break;case y.UP:this._keyEvent("previous",f);break;case y.DOWN:this._keyEvent("next",f);break}}},input:function(f){if(r){r=!1,f.preventDefault();return}this._searchTimeout(f)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(f){clearTimeout(this.searching),this.close(f),this._change(f)}}),this._initSource(),this.menu=i("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(f){f.preventDefault()},menufocus:function(f,y){var A,S;if(this.isNewMenu&&(this.isNewMenu=!1,f.originalEvent&&/^mouse/.test(f.originalEvent.type))){this.menu.blur(),this.document.one("mousemove",function(){i(f.target).trigger(f.originalEvent)});return}S=y.item.data("ui-autocomplete-item"),this._trigger("focus",f,{item:S})!==!1&&f.originalEvent&&/^key/.test(f.originalEvent.type)&&this._value(S.value),A=y.item.attr("aria-label")||S.value,A&&String.prototype.trim.call(A).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(i("<div>").text(A))},100))},menuselect:function(f,y){var A=y.item.data("ui-autocomplete-item"),S=this.previous;this.element[0]!==i.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=S,this._delay(function(){this.previous=S,this.selectedItem=A})),this._trigger("select",f,{item:A})!==!1&&this._value(A.value),this.term=this._value(),this.close(f),this.selectedItem=A}}),this.liveRegion=i("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),e==="source"&&this._initSource(),e==="appendTo"&&this.menu.element.appendTo(this._appendTo()),e==="disabled"&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var t=this.menu.element[0];return e.target===this.element[0]||e.target===t||i.contains(t,e.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?i(e):this.document.find(e).eq(0)),(!e||!e[0])&&(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,t,r=this;Array.isArray(this.options.source)?(e=this.options.source,this.source=function(o,l){l(i.ui.autocomplete.filter(e,o.term))}):typeof this.options.source=="string"?(t=this.options.source,this.source=function(o,l){r.xhr&&r.xhr.abort(),r.xhr=i.ajax({url:t,data:o,dataType:"json",success:function(m){l(m)},error:function(){l([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),r=this.menu.element.is(":visible"),o=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;(!t||t&&!r&&!o)&&(this.selectedItem=null,this.search(null,e))},this.options.delay)},search:function(e,t){if(e=e??this._value(),this.term=this._value(),e.length<this.options.minLength)return this.close(t);if(this._trigger("search",t)!==!1)return this._search(e)},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var e=++this.requestIndex;return function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:i.map(e,function(t){return typeof t=="string"?{label:t,value:t}:i.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e),this.isNewMenu=!0,this.menu.refresh(),t.show(),this._resizeMenu(),t.position(i.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,t){var r=this;i.each(t,function(o,l){r._renderItemData(e,l)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){return i("<li>").append(i("<div>").text(t.label)).appendTo(e)},_move:function(e,t){if(!this.menu.element.is(":visible")){this.search(null,t);return}if(this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)){this.isMultiLine||this._value(this.term),this.menu.blur();return}this.menu[e](t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){if(!e.length)return!1;var t=e.prop("contentEditable");return t==="inherit"?this._isContentEditable(e.parent()):t==="true"}}),i.extend(i.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var r=new RegExp(i.ui.autocomplete.escapeRegex(t),"i");return i.grep(e,function(o){return r.test(o.label||o.value||o)})}}),i.widget("ui.autocomplete",i.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),!(this.options.disabled||this.cancelSearch)&&(e&&e.length?t=this.options.messages.results(e.length):t=this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(i("<div>").text(t))},100))}}),i.ui.autocomplete});(function(i){"use strict";i.widget("ra.filteringSelect",i.ra.abstractSelect,{options:{minLength:0,searchDelay:200,remote_source:null,source:null,xhr:!1},button:null,input:null,select:null,filtering_select:null,_create:function(){return this.filtering_select=this.element.siblings('[data-input-for="'+this.element.attr("id")+'"]'),this.filtering_select.length>0?(this.input=this.filtering_select.children("input"),this.button=this.filtering_select.children(".btn")):(this.element.hide(),this.filtering_select=this._inputGroup(this.element.attr("id")),this.input=this._inputField(),this.button=this._buttonField()),this.clearOption=i('<span style="color: #888"></span>').append('<i class="fas fa-times"></i> '+i("<span></span>").text(Pe.t("clear")).html()),this.noObjectsPlaceholder=i('<option disabled="disabled" />').text(Pe.t("no_objects")),this._setOptionsSource(),this._initAutocomplete(),this._initKeyEvent(),this._overloadRenderItem(),this._autocompleteDropdownEvent(this.button),this.filtering_select.append(this.input).append(this.button).insertAfter(this.element)},_getResultSet:function(e,t,r){var o=new RegExp(i.ui.autocomplete.escapeRegex(e.term),"i"),l=function(y){return i("<span>").text(y).html()},m=function(y,A){return A.length?i.map(y.split(A),function(S){return l(S)}).join(i("<strong>").text(A)[0].outerHTML):l(y)},f=i.map(t,function(y){var A=y.id||y.value,S=y.label||y.id;if(A&&(r||o.test(y.label)))return{html:m(S,e.term),value:S,id:A}});return e.term.length===0&&!this.input.attr("required")?[{html:this.clearOption,value:null,id:null}].concat(f):f.length===0?[{html:this.noObjectsPlaceholder,value:null,id:null}]:f},_getSourceFunction:function(e){var t=this,r=0;return Array.isArray(e)?function(o,l){l(t._getResultSet(o,e,!1))}:typeof e=="string"?function(o,l){this.xhr&&this.xhr.abort(),this.xhr=i.ajax({url:e,data:t.options.createQuery(o.term),dataType:"json",autocompleteRequest:++r,success:function(m,f){this.autocompleteRequest===r&&l(t._getResultSet(o,m,!0))},error:function(){this.autocompleteRequest===r&&l([])}})}:e},_setOptionsSource:function(){this.options.xhr?this.options.source=this.options.remote_source:this.options.source=this.element.children("option").map(function(){return{label:i(this).text(),value:this.value}}).toArray()},_buttonField:function(){return i('<label class="btn btn-info dropdown-toggle" title="Show All Items" role="button"></label>')},_autocompleteDropdownEvent:function(e){var t=this;return e.click(function(){if(t.input.autocomplete("widget").is(":visible")){t.input.autocomplete("close");return}t.input.autocomplete("search",""),t.input.focus()})},_inputField:function(){var e,t=this.element.children(":selected"),r=t.val()?t.text():"";return e=i('<input type="text">').val(r).addClass("form-control ra-filtering-select-input").attr("style",this.element.attr("style")).show(),this.element.attr("placeholder")&&e.attr("placeholder",this.element.attr("placeholder")),this.element.attr("required")&&(e.attr("required",this.element.attr("required")),this.element.attr("required",!1)),e},_inputGroup:function(e){return i("<div>").addClass("input-group filtering-select").attr("data-input-for",e)},_initAutocomplete:function(){var e=this;return this.input.autocomplete({delay:this.options.searchDelay,minLength:this.options.minLength,source:this._getSourceFunction(this.options.source),classes:{"ui-autocomplete":"ui-front dropdown-menu"},select:function(t,r){var o=e.element.find(`option[value="${CSS.escape(r.item.id)}"]`);e.element.find("option[selected]").attr("selected",!1),o.length>0?o.attr("selected","selected"):(o=i("<option>").attr("value",r.item.id).attr("selected",!0).text(r.item.value),e.element.append(o)),e.element.trigger("change",r.item.id),e._trigger("selected",t,{item:o}),i(e.element.parents(".controls")[0]).find(".update").removeClass("disabled")},change:function(t,r){if(!r.item){var o=new RegExp("^"+i.ui.autocomplete.escapeRegex(i(this).val())+"$","i"),l=!1;if(e.element.children("option").each(function(){if(i(this).text().match(o))return l=!0,!1}),!(l||i(this).val()!==""))return i(this).val(null),e.element.html(i('<option value="" selected="selected"></option>')),e.input.data("ui-autocomplete").term="",i(e.element.parents(".controls")[0]).find(".update").addClass("disabled"),!1}}})},_initKeyEvent:function(){var e=this;return this.input.keyup(function(){if(!i(this).val().length)return e.element.html(i('<option value="" selected="selected"></option>')).trigger("change")})},_overloadRenderItem:function(){this.input.data("ui-autocomplete")._renderItem=function(e,t){return i("<li></li>").data("ui-autocomplete-item",t).append(i('<a class="dropdown-item"></a>').html(t.html||t.id)).appendTo(e)}},destroy:function(){this.input.remove(),this.button.remove(),this.element.html(i('<option value="" selected="selected"></option>')),this.element.show(),this.filtering_select.remove(),i.Widget.prototype.destroy.call(this)}})})(wh.default);var _h=fi(di(),1);(function(i){i(document).ready(function(){return window.nestedFormEvents.insertFields=function(e,t,r){var o;return o=i(r).closest(".controls").siblings(".tab-content"),o.append(e),o.children().last()}}),i(document).on("nested:fieldAdded","form",function(e){var t,r,o,l,m,f,y;r=e.field.addClass("tab-pane").attr("id","unique-id-"+new Date().getTime()),l=i("<li></li>").append(i("<a></a>").addClass("nav-link").attr("data-bs-toggle","tab").attr("href","#"+r.attr("id")).text(r.children(".object-infos").data("object-label"))).addClass("nav-item"),f=r.closest(".control-group"),t=f.children(".controls"),m=t.data("nestedone")!==void 0,o=t.children(".nav"),e=f.children(".tab-content"),y=t.find(".toggler"),o.append(l);let A=new CustomEvent("rails_admin.dom_ready",{detail:r});document.dispatchEvent(A),l.children("a").each(function(S,N){mi.getOrCreateInstance(N).show()}),m||new En(o[0],{toggle:!1}).show(),new En(e[0],{toggle:!1}).show(),y.addClass("active").removeClass("disabled").children("i").addClass("fa-chevron-down").removeClass("fa-chevron-right"),m&&t.find(".add_nested_fields").removeClass("add_nested_fields").text(r.children(".object-infos").data("object-label"))}),i(document).on("nested:fieldRemoved","form",function(e){var t,r,o,l,m,f,y,A;l=e.field,m=l.closest(".control-group").children(".controls").children(".nav"),o=m.children("li").has('a[href="#'+l.attr("id")+'"]'),y=l.closest(".control-group"),r=y.children(".controls"),f=r.data("nestedone")!==void 0,A=r.find(".toggler"),(o.next().length?o.next():o.prev()).children("a:first").each(function(S,N){mi.getOrCreateInstance(N).show()}),o.remove(),m.children().length===0&&(new En(r.siblings(".tab-content")[0],{toggle:!1}).hide(),A.removeClass("active").addClass("disabled").children("i").removeClass("fa-chevron-down").addClass("fa-chevron-right")),f&&(t=A.next(),t.addClass("add_nested_fields").html(t.data("add-label"))),l.find("[required]").each(function(){i(this).prop("required",!1)})})})(_h.default);var iu=fi(di(),1);(function(i){i.widget("ra.remoteForm",{_create:function(){var e=this,t=e.element,r=t.find("select").first().data("options")&&t.find("select").first().data("options")["edit-url"];typeof r<"u"&&r.length&&t.on("dblclick",".ra-multiselect option:not(:disabled)",function(o){e._bindModalOpening(o,r.replace("__ID__",this.value))}),t.find(".create").unbind().bind("click",function(o){e._bindModalOpening(o,i(this).data("link"))}),t.find(".update").unbind().bind("click",function(o){var l=t.find("select").val();l?e._bindModalOpening(o,i(this).data("link").replace("__ID__",l)):o.preventDefault()})},_bindModalOpening:function(e,t){e.preventDefault();var r=this;if(i("#modal").length)return!1;var o=this._getModal();setTimeout(function(){i.ajax({url:t,beforeSend:function(l){l.setRequestHeader("Accept","text/javascript")},success:function(l,m,f){o.find(".modal-body").html(l),r._bindFormEvents()},error:function(l,m,f){o.find(".modal-body").html(l.responseText)},dataType:"text"})},200)},_bindFormEvents:function(){var e=this,t=this._getModal(),r=t.find("form"),o=t.find(":submit[name=_save]").html(),l=t.find(":submit[name=_continue]").html();t.find(".form-actions").remove(),r.attr("data-turbo","false"),r.off("submit.raRemoteForm").on("submit.raRemoteForm",function(f){f.preventDefault(),e._submitForm(r)}),t.find(".modal-header-title").text(r.data("title")),t.find(".cancel-action").unbind().click(function(){return t.each(function(f,y){ki.getInstance(y).hide()}),!1}).html(l),t.find(".save-action").unbind().click(function(){return r.trigger("submit.raRemoteForm"),!1}).html(o);let m=new CustomEvent("rails_admin.dom_ready",{detail:r});document.dispatchEvent(m)},_submitForm:function(e){var t=this,r=document.querySelector('meta[name="csrf-token"]');e[0].dispatchEvent(new CustomEvent("rails_admin.before_remote_submit")),iu.default.ajax({url:e.attr("action"),method:(e.attr("method")||"post").toUpperCase(),data:new FormData(e[0]),processData:!1,contentType:!1,headers:{"X-CSRF-Token":r?r.content:"",Accept:"application/json, text/javascript"},complete:function(o){t._handleFormResponse(o)}})},_handleFormResponse:function(e){var t=this,r=this._getModal();if(e.status==200){var o=JSON.parse(e.responseText),l='<option value="'+o.id+'" selected>'+o.label+"</option>",m=t.element.find("select").filter(":hidden");if(t.element.find(".filtering-select").length){var f=t.element.find(".filtering-select").children(".ra-filtering-select-input");f.val(o.label),m.find("option[value="+o.id+"]").length||(m.html(l).val(o.id),t.element.find(".update").removeClass("disabled"))}else{var y=t.element.find(".ra-multiselect");y.find("option[value="+o.id+"]").length?(m.find("option[value="+o.id+"]").text(o.label),y.find("option[value= "+o.id+"]").text(o.label)):(m.append(l),y.find("select.ra-multiselect-selection").append(l))}t._trigger("success"),r.each(function(A,S){ki.getInstance(S).hide()})}else r.find(".modal-body").html(e.responseText),t._bindFormEvents()},_getModal:function(){var e=this;return e.dialog||(e.dialog=i('<div id="modal" class="modal fade"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <h3 class="modal-header-title">...</h3> <button type="button" class="btn-close" data-bs-dismiss="modal"></button> </div> <div class="modal-body"> ... </div> <div class="modal-footer"> <a href="#" class="btn cancel-action">...</a> <a href="#" class="btn btn-primary save-action">...</a> </div> </div> </div> </div>').on("hidden.bs.modal",function(){e.dialog.remove(),e.dialog=null}),new ki(e.dialog[0],{keyboard:!0,backdrop:!0,focus:!1,show:!0}).show()),this.dialog}})})(iu.default);document.addEventListener("rails_admin.dom_ready",()=>{let i=document.getElementById("sidescroll");i&&i.querySelectorAll("tr").forEach((e,t)=>{let r;e.querySelectorAll("th.sticky, td.sticky").forEach((o,l)=>{l===0&&(r=o.offsetLeft),o.style.left=`${o.offsetLeft-r}px`})})});var Eh=fi(di(),1);(function(i){"use strict";typeof define=="function"&&define.amd?define(["jquery","./jquery-var-for-color","./vendor/jquery-color/jquery.color","./version"],i):i(jQuery)})(function(i){"use strict";var e="ui-effects-",t="ui-effects-style",r="ui-effects-animated";return i.effects={effect:{}},(function(){var o=["add","remove","toggle"],l={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};i.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(A,S){i.fx.step[S]=function(N){(N.end!=="none"&&!N.setAttr||N.pos===1&&!N.setAttr)&&(jQuery.style(N.elem,S,N.end),N.setAttr=!0)}});function m(A){return A.replace(/-([\da-z])/gi,function(S,N){return N.toUpperCase()})}function f(A){var S,N,L=A.ownerDocument.defaultView?A.ownerDocument.defaultView.getComputedStyle(A,null):A.currentStyle,M={};if(L&&L.length&&L[0]&&L[L[0]])for(N=L.length;N--;)S=L[N],typeof L[S]=="string"&&(M[m(S)]=L[S]);else for(S in L)typeof L[S]=="string"&&(M[S]=L[S]);return M}function y(A,S){var N={},L,M;for(L in S)M=S[L],A[L]!==M&&(l[L]||(i.fx.step[L]||!isNaN(parseFloat(M)))&&(N[L]=M));return N}i.fn.addBack||(i.fn.addBack=function(A){return this.add(A==null?this.prevObject:this.prevObject.filter(A))}),i.effects.animateClass=function(A,S,N,L){var M=i.speed(S,N,L);return this.queue(function(){var T=i(this),k=T.attr("class")||"",D,w=M.children?T.find("*").addBack():T;w=w.map(function(){var g=i(this);return{el:g,start:f(this)}}),D=function(){i.each(o,function(g,d){A[d]&&T[d+"Class"](A[d])})},D(),w=w.map(function(){return this.end=f(this.el[0]),this.diff=y(this.start,this.end),this}),T.attr("class",k),w=w.map(function(){var g=this,d=i.Deferred(),u=i.extend({},M,{queue:!1,complete:function(){d.resolve(g)}});return this.el.animate(this.diff,u),d.promise()}),i.when.apply(i,w.get()).done(function(){D(),i.each(arguments,function(){var g=this.el;i.each(this.diff,function(d){g.css(d,"")})}),M.complete.call(T[0])})})},i.fn.extend({addClass:(function(A){return function(S,N,L,M){return N?i.effects.animateClass.call(this,{add:S},N,L,M):A.apply(this,arguments)}})(i.fn.addClass),removeClass:(function(A){return function(S,N,L,M){return arguments.length>1?i.effects.animateClass.call(this,{remove:S},N,L,M):A.apply(this,arguments)}})(i.fn.removeClass),toggleClass:(function(A){return function(S,N,L,M,T){return typeof N=="boolean"||N===void 0?L?i.effects.animateClass.call(this,N?{add:S}:{remove:S},L,M,T):A.apply(this,arguments):i.effects.animateClass.call(this,{toggle:S},N,L,M)}})(i.fn.toggleClass),switchClass:function(A,S,N,L,M){return i.effects.animateClass.call(this,{add:S,remove:A},N,L,M)}})})(),(function(){i.expr&&i.expr.pseudos&&i.expr.pseudos.animated&&(i.expr.pseudos.animated=(function(f){return function(y){return!!i(y).data(r)||f(y)}})(i.expr.pseudos.animated)),i.uiBackCompat!==!1&&i.extend(i.effects,{save:function(f,y){for(var A=0,S=y.length;A<S;A++)y[A]!==null&&f.data(e+y[A],f[0].style[y[A]])},restore:function(f,y){for(var A,S=0,N=y.length;S<N;S++)y[S]!==null&&(A=f.data(e+y[S]),f.css(y[S],A))},setMode:function(f,y){return y==="toggle"&&(y=f.is(":hidden")?"show":"hide"),y},createWrapper:function(f){if(f.parent().is(".ui-effects-wrapper"))return f.parent();var y={width:f.outerWidth(!0),height:f.outerHeight(!0),float:f.css("float")},A=i("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),S={width:f.width(),height:f.height()},N=document.activeElement;try{N.id}catch{N=document.body}return f.wrap(A),(f[0]===N||i.contains(f[0],N))&&i(N).trigger("focus"),A=f.parent(),f.css("position")==="static"?(A.css({position:"relative"}),f.css({position:"relative"})):(i.extend(y,{position:f.css("position"),zIndex:f.css("z-index")}),i.each(["top","left","bottom","right"],function(L,M){y[M]=f.css(M),isNaN(parseInt(y[M],10))&&(y[M]="auto")}),f.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),f.css(S),A.css(y).show()},removeWrapper:function(f){var y=document.activeElement;return f.parent().is(".ui-effects-wrapper")&&(f.parent().replaceWith(f),(f[0]===y||i.contains(f[0],y))&&i(y).trigger("focus")),f}}),i.extend(i.effects,{version:"1.13.3",define:function(f,y,A){return A||(A=y,y="effect"),i.effects.effect[f]=A,i.effects.effect[f].mode=y,A},scaledDimensions:function(f,y,A){if(y===0)return{height:0,width:0,outerHeight:0,outerWidth:0};var S=A!=="horizontal"?(y||100)/100:1,N=A!=="vertical"?(y||100)/100:1;return{height:f.height()*N,width:f.width()*S,outerHeight:f.outerHeight()*N,outerWidth:f.outerWidth()*S}},clipToBox:function(f){return{width:f.clip.right-f.clip.left,height:f.clip.bottom-f.clip.top,left:f.clip.left,top:f.clip.top}},unshift:function(f,y,A){var S=f.queue();y>1&&S.splice.apply(S,[1,0].concat(S.splice(y,A))),f.dequeue()},saveStyle:function(f){f.data(t,f[0].style.cssText)},restoreStyle:function(f){f[0].style.cssText=f.data(t)||"",f.removeData(t)},mode:function(f,y){var A=f.is(":hidden");return y==="toggle"&&(y=A?"show":"hide"),(A?y==="hide":y==="show")&&(y="none"),y},getBaseline:function(f,y){var A,S;switch(f[0]){case"top":A=0;break;case"middle":A=.5;break;case"bottom":A=1;break;default:A=f[0]/y.height}switch(f[1]){case"left":S=0;break;case"center":S=.5;break;case"right":S=1;break;default:S=f[1]/y.width}return{x:S,y:A}},createPlaceholder:function(f){var y,A=f.css("position"),S=f.position();return f.css({marginTop:f.css("marginTop"),marginBottom:f.css("marginBottom"),marginLeft:f.css("marginLeft"),marginRight:f.css("marginRight")}).outerWidth(f.outerWidth()).outerHeight(f.outerHeight()),/^(static|relative)/.test(A)&&(A="absolute",y=i("<"+f[0].nodeName+">").insertAfter(f).css({display:/^(inline|ruby)/.test(f.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:f.css("marginTop"),marginBottom:f.css("marginBottom"),marginLeft:f.css("marginLeft"),marginRight:f.css("marginRight"),float:f.css("float")}).outerWidth(f.outerWidth()).outerHeight(f.outerHeight()).addClass("ui-effects-placeholder"),f.data(e+"placeholder",y)),f.css({position:A,left:S.left,top:S.top}),y},removePlaceholder:function(f){var y=e+"placeholder",A=f.data(y);A&&(A.remove(),f.removeData(y))},cleanUp:function(f){i.effects.restoreStyle(f),i.effects.removePlaceholder(f)},setTransition:function(f,y,A,S){return S=S||{},i.each(y,function(N,L){var M=f.cssUnit(L);M[0]>0&&(S[L]=M[0]*A+M[1])}),S}});function o(f,y,A,S){return i.isPlainObject(f)&&(y=f,f=f.effect),f={effect:f},y==null&&(y={}),typeof y=="function"&&(S=y,A=null,y={}),(typeof y=="number"||i.fx.speeds[y])&&(S=A,A=y,y={}),typeof A=="function"&&(S=A,A=null),y&&i.extend(f,y),A=A||y.duration,f.duration=i.fx.off?0:typeof A=="number"?A:A in i.fx.speeds?i.fx.speeds[A]:i.fx.speeds._default,f.complete=S||y.complete,f}function l(f){return!!(!f||typeof f=="number"||i.fx.speeds[f]||typeof f=="string"&&!i.effects.effect[f]||typeof f=="function"||typeof f=="object"&&!f.effect)}i.fn.extend({effect:function(){var f=o.apply(this,arguments),y=i.effects.effect[f.effect],A=y.mode,S=f.queue,N=S||"fx",L=f.complete,M=f.mode,T=[],k=function(w){var g=i(this),d=i.effects.mode(g,M)||A;g.data(r,!0),T.push(d),A&&(d==="show"||d===A&&d==="hide")&&g.show(),(!A||d!=="none")&&i.effects.saveStyle(g),typeof w=="function"&&w()};if(i.fx.off||!y)return M?this[M](f.duration,L):this.each(function(){L&&L.call(this)});function D(w){var g=i(this);function d(){g.removeData(r),i.effects.cleanUp(g),f.mode==="hide"&&g.hide(),u()}function u(){typeof L=="function"&&L.call(g[0]),typeof w=="function"&&w()}f.mode=T.shift(),i.uiBackCompat!==!1&&!A?(g.is(":hidden")?M==="hide":M==="show")?(g[M](),u()):y.call(g[0],f,u):f.mode==="none"?(g[M](),u()):y.call(g[0],f,d)}return S===!1?this.each(k).each(D):this.queue(N,k).queue(N,D)},show:(function(f){return function(y){if(l(y))return f.apply(this,arguments);var A=o.apply(this,arguments);return A.mode="show",this.effect.call(this,A)}})(i.fn.show),hide:(function(f){return function(y){if(l(y))return f.apply(this,arguments);var A=o.apply(this,arguments);return A.mode="hide",this.effect.call(this,A)}})(i.fn.hide),toggle:(function(f){return function(y){if(l(y)||typeof y=="boolean")return f.apply(this,arguments);var A=o.apply(this,arguments);return A.mode="toggle",this.effect.call(this,A)}})(i.fn.toggle),cssUnit:function(f){var y=this.css(f),A=[];return i.each(["em","px","%","pt"],function(S,N){y.indexOf(N)>0&&(A=[parseFloat(y),N])}),A},cssClip:function(f){return f?this.css("clip","rect("+f.top+"px "+f.right+"px "+f.bottom+"px "+f.left+"px)"):m(this.css("clip"),this)},transfer:function(f,y){var A=i(this),S=i(f.to),N=S.css("position")==="fixed",L=i("body"),M=N?L.scrollTop():0,T=N?L.scrollLeft():0,k=S.offset(),D={top:k.top-M,left:k.left-T,height:S.innerHeight(),width:S.innerWidth()},w=A.offset(),g=i("<div class='ui-effects-transfer'></div>");g.appendTo("body").addClass(f.className).css({top:w.top-M,left:w.left-T,height:A.innerHeight(),width:A.innerWidth(),position:N?"fixed":"absolute"}).animate(D,f.duration,f.easing,function(){g.remove(),typeof y=="function"&&y()})}});function m(f,y){var A=y.outerWidth(),S=y.outerHeight(),N=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,L=N.exec(f)||["",0,A,S,0];return{top:parseFloat(L[1])||0,right:L[2]==="auto"?A:parseFloat(L[2]),bottom:L[3]==="auto"?S:parseFloat(L[3]),left:parseFloat(L[4])||0}}i.fx.step.clip=function(f){f.clipInit||(f.start=i(f.elem).cssClip(),typeof f.end=="string"&&(f.end=m(f.end,f.elem)),f.clipInit=!0),i(f.elem).cssClip({top:f.pos*(f.end.top-f.start.top)+f.start.top,right:f.pos*(f.end.right-f.start.right)+f.start.right,bottom:f.pos*(f.end.bottom-f.start.bottom)+f.start.bottom,left:f.pos*(f.end.left-f.start.left)+f.start.left})}})(),(function(){var o={};i.each(["Quad","Cubic","Quart","Quint","Expo"],function(l,m){o[m]=function(f){return Math.pow(f,l+2)}}),i.extend(o,{Sine:function(l){return 1-Math.cos(l*Math.PI/2)},Circ:function(l){return 1-Math.sqrt(1-l*l)},Elastic:function(l){return l===0||l===1?l:-Math.pow(2,8*(l-1))*Math.sin(((l-1)*80-7.5)*Math.PI/15)},Back:function(l){return l*l*(3*l-2)},Bounce:function(l){for(var m,f=4;l<((m=Math.pow(2,--f))-1)/11;);return 1/Math.pow(4,3-f)-7.5625*Math.pow((m*3-2)/22-l,2)}}),i.each(o,function(l,m){i.easing["easeIn"+l]=m,i.easing["easeOut"+l]=function(f){return 1-m(1-f)},i.easing["easeInOut"+l]=function(f){return f<.5?m(f*2)/2:1-m(f*-2+2)/2}})})(),i.effects});(function(i){i(document).on("click","#list input.toggle",function(){i("#list [name='bulk_ids[]']").prop("checked",i(this).is(":checked"))}),i(document).on("turbo:click",function(){i("#loading").show()}).on("turbo:before-render",function(t){document.querySelectorAll('.sidebar .btn-toggle[aria-expanded="false"]').forEach(r=>{let o=t.detail.newBody.querySelector(`.sidebar [data-bs-target="${r.dataset.bsTarget}"]`),l=t.detail.newBody.querySelector(r.dataset.bsTarget);o&&o.parentNode.replaceChild(r.cloneNode(!0),o),l&&l.classList.remove("show")}),i("#loading").hide()}),i(document).on("click","[data-bs-target]",function(){i(this).hasClass("disabled")||(i(this).has("i.fa-chevron-down").length?(i(this).removeClass("active").children("i").toggleClass("fa-chevron-down fa-chevron-right"),i(i(this).data("target")).filter(":visible").hide("slow")):i(this).has("i.fa-chevron-right").length&&(i(this).addClass("active").children("i").toggleClass("fa-chevron-down fa-chevron-right"),i(i(this).data("target")).filter(":hidden").show("slow")))}),i(document).on("click","form legend",function(){i(this).has("i.fa-chevron-down").length?(i(this).siblings(".control-group:visible").hide("slow"),i(this).children("i").toggleClass("fa-chevron-down fa-chevron-right")):i(this).has("i.fa-chevron-right").length&&(i(this).siblings(".control-group:hidden").show("slow"),i(this).children("i").toggleClass("fa-chevron-down fa-chevron-right"))}),i(document).on("click","form .tab-content .tab-pane a.remove_nested_one_fields",function(){i(this).children('input[type="hidden"]').val(i(this).hasClass("active")).siblings("i").toggleClass("fa-check fa-trash")});function e(){Pe.init(i("html").attr("lang"),i("#admin-js").data("i18nOptions"));let t=new CustomEvent("rails_admin.dom_ready");document.dispatchEvent(t)}i(document).ready(e),document.addEventListener("turbo:render",e),document.addEventListener("rails_admin.dom_ready",function(t){i(".nav.nav-pills li.active").removeClass("active"),i('.nav.nav-pills li[data-model="'+i(".page-header").data("model")+'"]').addClass("active"),i(".animate-width-to").each(function(){var r,o;r=i(this).data("animate-length"),o=i(this).data("animate-width-to"),i(this).animate({width:o},r,"easeOutQuad")}),i("form.main legend").has("i.fa-chevron-right").each(function(){i(this).siblings(".control-group").hide()}),i('button[name][type="submit"]').on("click",function(){var r=i(this).closest("form");r.append(i("<input />").attr("type","hidden").attr("name",i(this).attr("name")).attr("value",i(this).attr("value"))),i(this).is("[formnovalidate]")&&r.attr("novalidate",!0)}),i.each(i("#filters_box").data("options"),function(){i.filters.append(this)}),i("a[data-method]").on("click",function(r){window.Turbo.session.drive=!1}),i(document).trigger("rails_admin.dom_ready",t.detail?[t.detail]:null)}),i(document).on("click",".bulk-link",function(t){t.preventDefault(),i("#bulk_action").val(i(this).data("action")),i("#bulk_form").submit()}),i(document).on("click","#remove_filter",function(t){t.preventDefault(),i("#filters_box").html(""),i("hr.filters_box").hide(),i(this).siblings("input[type='search']").val(""),i(this).parents("form").submit()}),i(document).on("click","th.header",function(t){t.preventDefault(),window.Turbo.visit(i(this).data("href"))}),i(document).on("click","#fields_to_export label input#check_all",function(){var t;t=i("#fields_to_export label input"),i("#fields_to_export label input#check_all").is(":checked")?i(t).prop("checked",!0):i(t).prop("checked",!1)}),i(document).on("click","#fields_to_export .reverse-selection",function(){i(this).closest(".control-group").find(".controls").find("input").click()})})(Eh.default);var Sh=fi(di(),1);(function(i){"use strict";typeof define=="function"&&define.amd?define(["jquery","./mouse","../data","../ie","../scroll-parent","../version","../widget"],i):i(jQuery)})(function(i){"use strict";return i.widget("ui.sortable",i.ui.mouse,{version:"1.13.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t,r){return e>=t&&e<t+r},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(e,t){this._super(e,t),e==="handle"&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),i.each(this.items,function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,t){var r=null,o=!1,l=this;return this.reverting||this.options.disabled||this.options.type==="static"||(this._refreshItems(e),i(e.target).parents().each(function(){if(i.data(this,l.widgetName+"-item")===l)return r=i(this),!1}),i.data(e.target,l.widgetName+"-item")===l&&(r=i(e.target)),!r)||this.options.handle&&!t&&(i(this.options.handle,r).find("*").addBack().each(function(){this===e.target&&(o=!0)}),!o)?!1:(this.currentItem=r,this._removeCurrentsFromItems(),!0)},_mouseStart:function(e,t,r){var o,l,m=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=i(m.appendTo!=="parent"?m.appendTo:this.currentItem.parent()),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},i.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),m.cursorAt&&this._adjustOffsetFromHelper(m.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),i.extend(this.offset,{parent:this._getParentOffset()}),m.containment&&this._setContainment(),m.cursor&&m.cursor!=="auto"&&(l=this.document.find("body"),this.storedCursor=l.css("cursor"),l.css("cursor",m.cursor),this.storedStylesheet=i("<style>*{ cursor: "+m.cursor+" !important; }</style>").appendTo(l)),m.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",m.zIndex)),m.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",m.opacity)),this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!r)for(o=this.containers.length-1;o>=0;o--)this.containers[o]._trigger("activate",e,this._uiHash(this));return i.ui.ddmanager&&(i.ui.ddmanager.current=this),i.ui.ddmanager&&!m.dropBehaviour&&i.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(e),!0},_scroll:function(e){var t=this.options,r=!1;return this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<t.scrollSensitivity?this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop+t.scrollSpeed:e.pageY-this.overflowOffset.top<t.scrollSensitivity&&(this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop-t.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<t.scrollSensitivity?this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft+t.scrollSpeed:e.pageX-this.overflowOffset.left<t.scrollSensitivity&&(this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft-t.scrollSpeed)):(e.pageY-this.document.scrollTop()<t.scrollSensitivity?r=this.document.scrollTop(this.document.scrollTop()-t.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<t.scrollSensitivity&&(r=this.document.scrollTop(this.document.scrollTop()+t.scrollSpeed)),e.pageX-this.document.scrollLeft()<t.scrollSensitivity?r=this.document.scrollLeft(this.document.scrollLeft()-t.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<t.scrollSensitivity&&(r=this.document.scrollLeft(this.document.scrollLeft()+t.scrollSpeed))),r},_mouseDrag:function(e){var t,r,o,l,m=this.options;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),(!this.options.axis||this.options.axis!=="y")&&(this.helper[0].style.left=this.position.left+"px"),(!this.options.axis||this.options.axis!=="x")&&(this.helper[0].style.top=this.position.top+"px"),m.scroll&&this._scroll(e)!==!1&&(this._refreshItemPositions(!0),i.ui.ddmanager&&!m.dropBehaviour&&i.ui.ddmanager.prepareOffsets(this,e)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},t=this.items.length-1;t>=0;t--)if(r=this.items[t],o=r.item[0],l=this._intersectsWithPointer(r),!!l&&r.instance===this.currentContainer&&o!==this.currentItem[0]&&this.placeholder[l===1?"next":"prev"]()[0]!==o&&!i.contains(this.placeholder[0],o)&&(this.options.type!=="semi-dynamic"||!i.contains(this.element[0],o))){if(this.direction=l===1?"down":"up",this.options.tolerance==="pointer"||this._intersectsWithSides(r))this._rearrange(e,r);else break;this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),i.ui.ddmanager&&i.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,t){if(e){if(i.ui.ddmanager&&!this.options.dropBehaviour&&i.ui.ddmanager.drop(this,e),this.options.revert){var r=this,o=this.placeholder.offset(),l=this.options.axis,m={};(!l||l==="x")&&(m.left=o.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),(!l||l==="y")&&(m.top=o.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,i(this.helper).animate(m,parseInt(this.options.revert,10)||500,function(){r._clear(e)})}else this._clear(e,t);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new i.Event("mouseup",{target:null})),this.options.helper==="original"?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.options.helper!=="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),i.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?i(this.domPosition.prev).after(this.currentItem):i(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var t=this._getItemsAsjQuery(e&&e.connected),r=[];return e=e||{},i(t).each(function(){var o=(i(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);o&&r.push((e.key||o[1]+"[]")+"="+(e.key&&e.expression?o[1]:o[2]))}),!r.length&&e.key&&r.push(e.key+"="),r.join("&")},toArray:function(e){var t=this._getItemsAsjQuery(e&&e.connected),r=[];return e=e||{},t.each(function(){r.push(i(e.item||this).attr(e.attribute||"id")||"")}),r},_intersectsWith:function(e){var t=this.positionAbs.left,r=t+this.helperProportions.width,o=this.positionAbs.top,l=o+this.helperProportions.height,m=e.left,f=m+e.width,y=e.top,A=y+e.height,S=this.offset.click.top,N=this.offset.click.left,L=this.options.axis==="x"||o+S>y&&o+S<A,M=this.options.axis==="y"||t+N>m&&t+N<f,T=L&&M;return this.options.tolerance==="pointer"||this.options.forcePointerForContainers||this.options.tolerance!=="pointer"&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?T:m<t+this.helperProportions.width/2&&r-this.helperProportions.width/2<f&&y<o+this.helperProportions.height/2&&l-this.helperProportions.height/2<A},_intersectsWithPointer:function(e){var t,r,o=this.options.axis==="x"||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),l=this.options.axis==="y"||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width),m=o&&l;return m?(t=this.dragDirection.vertical,r=this.dragDirection.horizontal,this.floating?r==="right"||t==="down"?2:1:t&&(t==="down"?2:1)):!1},_intersectsWithSides:function(e){var t=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),r=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),o=this.dragDirection.vertical,l=this.dragDirection.horizontal;return this.floating&&l?l==="right"&&r||l==="left"&&!r:o&&(o==="down"&&t||o==="up"&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return e!==0&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return e!==0&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(e){var t,r,o,l,m=[],f=[],y=this._connectWith();if(y&&e)for(t=y.length-1;t>=0;t--)for(o=i(y[t],this.document[0]),r=o.length-1;r>=0;r--)l=i.data(o[r],this.widgetFullName),l&&l!==this&&!l.options.disabled&&f.push([typeof l.options.items=="function"?l.options.items.call(l.element):i(l.options.items,l.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),l]);f.push([typeof this.options.items=="function"?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):i(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);function A(){m.push(this)}for(t=f.length-1;t>=0;t--)f[t][0].each(A);return i(m)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=i.grep(this.items,function(t){for(var r=0;r<e.length;r++)if(e[r]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var t,r,o,l,m,f,y,A,S=this.items,N=[[typeof this.options.items=="function"?this.options.items.call(this.element[0],e,{item:this.currentItem}):i(this.options.items,this.element),this]],L=this._connectWith();if(L&&this.ready)for(t=L.length-1;t>=0;t--)for(o=i(L[t],this.document[0]),r=o.length-1;r>=0;r--)l=i.data(o[r],this.widgetFullName),l&&l!==this&&!l.options.disabled&&(N.push([typeof l.options.items=="function"?l.options.items.call(l.element[0],e,{item:this.currentItem}):i(l.options.items,l.element),l]),this.containers.push(l));for(t=N.length-1;t>=0;t--)for(m=N[t][1],f=N[t][0],r=0,A=f.length;r<A;r++)y=i(f[r]),y.data(this.widgetName+"-item",m),S.push({item:y,instance:m,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(e){var t,r,o,l;for(t=this.items.length-1;t>=0;t--)r=this.items[t],!(this.currentContainer&&r.instance!==this.currentContainer&&r.item[0]!==this.currentItem[0])&&(o=this.options.toleranceElement?i(this.options.toleranceElement,r.item):r.item,e||(r.width=o.outerWidth(),r.height=o.outerHeight()),l=o.offset(),r.left=l.left,r.top=l.top)},refreshPositions:function(e){this.floating=this.items.length?this.options.axis==="x"||this._isFloating(this.items[0].item):!1,this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(e);var t,r;if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(t=this.containers.length-1;t>=0;t--)r=this.containers[t].element.offset(),this.containers[t].containerCache.left=r.left,this.containers[t].containerCache.top=r.top,this.containers[t].containerCache.width=this.containers[t].element.outerWidth(),this.containers[t].containerCache.height=this.containers[t].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var t,r,o=e.options;(!o.placeholder||o.placeholder.constructor===String)&&(t=o.placeholder,r=e.currentItem[0].nodeName.toLowerCase(),o.placeholder={element:function(){var l=i("<"+r+">",e.document[0]);return e._addClass(l,"ui-sortable-placeholder",t||e.currentItem[0].className)._removeClass(l,"ui-sortable-helper"),r==="tbody"?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),i("<tr>",e.document[0]).appendTo(l)):r==="tr"?e._createTrPlaceholder(e.currentItem,l):r==="img"&&l.attr("src",e.currentItem.attr("src")),t||l.css("visibility","hidden"),l},update:function(l,m){t&&!o.forcePlaceholderSize||((!m.height()||o.forcePlaceholderSize&&(r==="tbody"||r==="tr"))&&m.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),m.width()||m.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=i(o.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),o.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,t){var r=this;e.children().each(function(){i("<td> </td>",r.document[0]).attr("colspan",i(this).attr("colspan")||1).appendTo(t)})},_contactContainers:function(e){var t,r,o,l,m,f,y,A,S,N,L=null,M=null;for(t=this.containers.length-1;t>=0;t--)if(!i.contains(this.currentItem[0],this.containers[t].element[0]))if(this._intersectsWith(this.containers[t].containerCache)){if(L&&i.contains(this.containers[t].element[0],L.element[0]))continue;L=this.containers[t],M=t}else this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",e,this._uiHash(this)),this.containers[t].containerCache.over=0);if(L)if(this.containers.length===1)this.containers[M].containerCache.over||(this.containers[M]._trigger("over",e,this._uiHash(this)),this.containers[M].containerCache.over=1);else{for(o=1e4,l=null,S=L.floating||this._isFloating(this.currentItem),m=S?"left":"top",f=S?"width":"height",N=S?"pageX":"pageY",r=this.items.length-1;r>=0;r--)i.contains(this.containers[M].element[0],this.items[r].item[0])&&this.items[r].item[0]!==this.currentItem[0]&&(y=this.items[r].item.offset()[m],A=!1,e[N]-y>this.items[r][f]/2&&(A=!0),Math.abs(e[N]-y)<o&&(o=Math.abs(e[N]-y),l=this.items[r],this.direction=A?"up":"down"));if(!l&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[M]){this.currentContainer.containerCache.over||(this.containers[M]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1);return}l?this._rearrange(e,l,null,!0):this._rearrange(e,null,this.containers[M].element,!0),this._trigger("change",e,this._uiHash()),this.containers[M]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[M],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&this.scrollParent[0].tagName!=="HTML"&&(this.overflowOffset=this.scrollParent.offset()),this.containers[M]._trigger("over",e,this._uiHash(this)),this.containers[M].containerCache.over=1}},_createHelper:function(e){var t=this.options,r=typeof t.helper=="function"?i(t.helper.apply(this.element[0],[e,this.currentItem])):t.helper==="clone"?this.currentItem.clone():this.currentItem;return r.parents("body").length||this.appendTo[0].appendChild(r[0]),r[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!r[0].style.width||t.forceHelperSize)&&r.width(this.currentItem.width()),(!r[0].style.height||t.forceHelperSize)&&r.height(this.currentItem.height()),r},_adjustOffsetFromHelper:function(e){typeof e=="string"&&(e=e.split(" ")),Array.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return this.cssPosition==="absolute"&&this.scrollParent[0]!==this.document[0]&&i.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()==="html"&&i.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==="relative"){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,t,r,o=this.options;o.containment==="parent"&&(o.containment=this.helper[0].parentNode),(o.containment==="document"||o.containment==="window")&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,o.containment==="document"?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,(o.containment==="document"?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(o.containment)||(e=i(o.containment)[0],t=i(o.containment).offset(),r=i(e).css("overflow")!=="hidden",this.containment=[t.left+(parseInt(i(e).css("borderLeftWidth"),10)||0)+(parseInt(i(e).css("paddingLeft"),10)||0)-this.margins.left,t.top+(parseInt(i(e).css("borderTopWidth"),10)||0)+(parseInt(i(e).css("paddingTop"),10)||0)-this.margins.top,t.left+(r?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(i(e).css("borderLeftWidth"),10)||0)-(parseInt(i(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,t.top+(r?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(i(e).css("borderTopWidth"),10)||0)-(parseInt(i(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,t){t||(t=this.position);var r=e==="absolute"?1:-1,o=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==this.document[0]&&i.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,l=/(html|body)/i.test(o[0].tagName);return{top:t.top+this.offset.relative.top*r+this.offset.parent.top*r-(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():l?0:o.scrollTop())*r,left:t.left+this.offset.relative.left*r+this.offset.parent.left*r-(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():l?0:o.scrollLeft())*r}},_generatePosition:function(e){var t,r,o=this.options,l=e.pageX,m=e.pageY,f=this.cssPosition==="absolute"&&!(this.scrollParent[0]!==this.document[0]&&i.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,y=/(html|body)/i.test(f[0].tagName);return this.cssPosition==="relative"&&!(this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0])&&(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(l=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(m=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(l=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(m=this.containment[3]+this.offset.click.top)),o.grid&&(t=this.originalPageY+Math.round((m-this.originalPageY)/o.grid[1])*o.grid[1],m=this.containment?t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-o.grid[1]:t+o.grid[1]:t,r=this.originalPageX+Math.round((l-this.originalPageX)/o.grid[0])*o.grid[0],l=this.containment?r-this.offset.click.left>=this.containment[0]&&r-this.offset.click.left<=this.containment[2]?r:r-this.offset.click.left>=this.containment[0]?r-o.grid[0]:r+o.grid[0]:r)),{top:m-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():y?0:f.scrollTop()),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():y?0:f.scrollLeft())}},_rearrange:function(e,t,r,o){r?r[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],this.direction==="down"?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var l=this.counter;this._delay(function(){l===this.counter&&this.refreshPositions(!o)})},_clear:function(e,t){this.reverting=!1;var r,o=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(r in this._storedCSS)(this._storedCSS[r]==="auto"||this._storedCSS[r]==="static")&&(this._storedCSS[r]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!t&&o.push(function(m){this._trigger("receive",m,this._uiHash(this.fromOutside))}),(this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!t&&o.push(function(m){this._trigger("update",m,this._uiHash())}),this!==this.currentContainer&&(t||(o.push(function(m){this._trigger("remove",m,this._uiHash())}),o.push((function(m){return function(f){m._trigger("receive",f,this._uiHash(this))}}).call(this,this.currentContainer)),o.push((function(m){return function(f){m._trigger("update",f,this._uiHash(this))}}).call(this,this.currentContainer))));function l(m,f,y){return function(A){y._trigger(m,A,f._uiHash(f))}}for(r=this.containers.length-1;r>=0;r--)t||o.push(l("deactivate",this,this.containers[r])),this.containers[r].containerCache.over&&(o.push(l("out",this,this.containers[r])),this.containers[r].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex",this._storedZIndex==="auto"?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(r=0;r<o.length;r++)o[r].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){i.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(e){var t=e||this;return{helper:t.helper,placeholder:t.placeholder||i([]),position:t.position,originalPosition:t.originalPosition,offset:t.positionAbs,item:t.currentItem,sender:e?e.element:null}}})});(function(i){function e(t,r){var o=t.closest("form");o&&o.addEventListener("rails_admin.before_remote_submit",r)}document.addEventListener("rails_admin.dom_ready",function(t){var r,o,l,m,f,y,A,S,N,L=t.detail||i("form");if(L.length)return L.find("[data-datetimepicker]").each(function(){Ia(this,i.extend({dateFormat:"Y-m-dTH:i:S",altInput:!0,locale:Pe.locale},i(this).data("options")))}),L.find("[data-enumeration]").each(function(){i(this).is("[multiple]")?i(this).filteringMultiselect(i(this).data("options")):i(this).filteringSelect(i(this).data("options"))}),L.find("[data-fileupload]").each(function(){var M;M=i(this).closest(".controls"),M.find(".btn-remove-image").on("click",function(){return i(this).siblings("[type=checkbox]").click(),M.find(".toggle").toggle("slow"),i(this).toggleClass("btn-danger btn-info"),!1})}),L.find("[data-fileupload]").change(function(){var M,T,k,D;k=this,T=i("#"+k.id).parent().children(".preview"),T.length||(T=i("#"+k.id).parent().prepend(i("<img />").addClass("preview").addClass("img-thumbnail")).find("img.preview"),T.parent().find("img:not(.preview)").hide()),M=i("#"+k.id).val().split(".").pop().toLowerCase(),k.files&&k.files[0]&&i.inArray(M,["gif","png","jpg","jpeg","bmp"])!==-1?(D=new FileReader,D.onload=function(w){T.attr("src",w.target.result)},D.readAsDataURL(k.files[0]),T.show()):T.hide()}),L.find("[data-multiple-fileupload]").each(function(){i(this).closest(".controls").find(".btn-remove-image").on("click",function(){return i(this).siblings("[type=checkbox]").click(),i(this).parent(".toggle").toggle("slow"),i(this).toggleClass("btn-danger btn-info"),!1}).end().sortable({items:".sortables"})}),L.find("[data-multiple-fileupload]").change(function(){var M,T,k,D,w,g,d,u;for(w=this,i("#"+w.id).parent().children(".preview").remove(),d=w.files,u=[],k=0,g=d.length;k<g;k++)T=d[k],M=T.name.split(".").pop().toLowerCase(),i.inArray(M,["gif","png","jpg","jpeg","bmp"])!==-1&&(D=i("<img />").addClass("preview").addClass("img-thumbnail"),u.push((function(p){var s;return s=new FileReader,s.onload=function(j){p.attr("src",j.target.result)},s.readAsDataURL(T),i("#"+w.id).parent().append(i("<div></div>").addClass("preview").append(p))})(D)));return u}),L.find("[data-filteringmultiselect]").each(function(){i(this).filteringMultiselect(i(this).data("options")),i(this).parents("#modal").length?i(this).parent().siblings(".modal-actions").remove():i(this).parents(".control-group").first().remoteForm()}),L.find("[data-filteringselect]").each(function(){i(this).filteringSelect(i(this).data("options")),i(this).parents("#modal").length?i(this).parent().siblings(".modal-actions").remove():i(this).parents(".control-group").first().remoteForm()}),L.find("[data-nestedmany]").each(function(){var M,T,k,D;M=i(this).parents(".control-group").first(),T=M.find("> .controls > .nav"),k=M.find("> .tab-content"),D=M.find("> .controls > .btn-group > .toggler"),k.children(".fields:not(.tab-pane)").addClass("tab-pane").each(function(){i(this).attr("id","unique-id-"+new Date().getTime()+Math.floor(Math.random()*1e5)),T.append(i("<li></li>").append(i("<a></a>").addClass("nav-link").attr("data-bs-toggle","tab").attr("href","#"+this.id).text(i(this).children(".object-infos").data("object-label"))).addClass("nav-item"))}),T.find("> li.active").length===0&&T.find("> li > a[data-bs-toggle='tab']:first").each(function(w,g){mi.getOrCreateInstance(g).show()}),T.children().length===0?D.addClass("disabled").removeClass("active").children("i").addClass("fa-chevron-right"):D.hasClass("active")?(i(D.data("bs-target")).addClass("show"),D.children("i").addClass("fa-chevron-down")):D.children("i").addClass("fa-chevron-right")}),L.find("[data-nestedone]").each(function(){var M,T,k,D,w;M=i(this).parents(".control-group").first(),k=M.find("> .controls > .nav"),D=M.find("> .tab-content"),w=M.find("> .controls > .btn-group > .toggler"),D.children(".fields:not(.tab-pane)").addClass("tab-pane active").each(function(){M.find("> .controls .add_nested_fields").removeClass("add_nested_fields").text(i(this).children(".object-infos").data("object-label")),k.append(i("<li></li>").append(i("<a></a>").attr("data-bs-toggle","tab").attr("href","#"+i(this).id).text(i(this).children(".object-infos").data("object-label"))))}),T=k.find("> li > a[data-bs-toggle='tab']:first"),T.each(function(g,d){mi.getOrCreateInstance(d).show()}),M.find("> .controls > [data-target]:first").html('<i class="fas"></i> '+T.html()),k.hide(),k.children().length===0?w.addClass("disabled").removeClass("active").children("i").addClass("fa-chevron-right"):w.hasClass("active")?(i(w.data("bs-target")).addClass("show"),w.children("i").addClass("fa-chevron-down")):w.children("i").addClass("fa-chevron-right")}),L.find("[data-polymorphic]").each(function(){var M,T,k,D;k=i(this),M=k.parents(".control-group").first(),T=M.find("select").last(),D=k.data("urls"),k.on("change",function(w){var g,d;d=k.val().toLowerCase().replace(/::/g,"-"),g=i("#"+d+"-js-options").data("options"),T.data("options",g),T.filteringSelect("destroy"),T.filteringSelect(g)})}),S=function(){return L.find("[data-richtext=simplemde]").not(".simplemded").each(function(M,T){var k,D,w;D=i(this).data("options"),k=D.instance_config,w=new window.SimpleMDE(i.extend(!0,{element:document.getElementById(this.id),autosave:{uniqueId:this.id}},k)),e(this,function(){w.codemirror.save()}),i(this).addClass("simplemded"),new ResizeObserver(function(){w.codemirror.refresh()}).observe(w.codemirror.getWrapperElement())})},r=L.find("[data-richtext=simplemde]").not(".simplemded"),r.length&&(window.SimpleMDE?S():(N=r.first().data("options"),i("head").append('<link href="'+N.css_location+'" rel="stylesheet" media="all" type="text/css">'),i.getScript(N.js_location,function(M,T,k){return S()}))),f=function(){return L.find("[data-richtext=ckeditor]").not(".ckeditored").each(function(M,T){var k;try{(k=window.CKEDITOR.instances[this.id])&&k.destroy(!0)}catch{}var D=window.CKEDITOR.replace(this,i(this).data("options").options);e(this,function(){D.updateElement()}),i(this).addClass("ckeditored")})},r=L.find("[data-richtext=ckeditor]").not(".ckeditored"),r.length&&(window.CKEDITOR?f():(N=r.first().data("options"),window.CKEDITOR_BASEPATH=N.base_location,i.getScript(N.jspath,(function(M){return function(T,k,D){return f()}})(this)))),y=(function(M){return function(T){return T.each(function(k,D){var w;N=i(this).data("options"),w=this,i.getScript(N.locations.mode,function(g,d,u){N=i(D).data("options"),i("head").append('<link href="'+N.locations.theme+'" rel="stylesheet" media="all" type="text/css">');var p=CodeMirror.fromTextArea(w,N.options);return e(w,function(){p.save()}),i(w).addClass("codemirrored")})})}})(this),o=L.find("[data-richtext=codemirror]").not(".codemirrored"),o.length&&(this.array=o,window.CodeMirror?y(this.array):(N=i(o[0]).data("options"),i("head").append('<link href="'+N.csspath+'" rel="stylesheet" media="all" type="text/css">'),i.getScript(N.jspath,(function(M){return function(T,k,D){return y(M.array)}})(this)))),m=(function(M){return function(T,k){return T.each(function(){i(this).addClass("bootstrap-wysihtml5ed"),i(this).closest(".controls").addClass("well");var D=i(this).wysihtml5(k);e(this,function(){D.val(D.data("wysihtml5").editor.getValue())})})}})(this),o=L.find("[data-richtext=bootstrap-wysihtml5]").not(".bootstrap-wysihtml5ed"),o.length&&(this.array=o,N=i(o[0]).data("options"),l=JSON.parse(N.config_options),window.wysihtml5?m(this.array,l):(i("head").append('<link href="'+N.csspath+'" rel="stylesheet" media="all" type="text/css">'),i.getScript(N.jspath,(function(M){return function(T,k,D){return m(M.array,l)}})(this)))),A=(function(M){return function(T){return T.each(function(){var k;N=i(this).data("options"),l=JSON.parse(N.config_options),l?l.inlineMode||(l.inlineMode=!1):l={inlineMode:!1},k=l.imageUploadURL?l.imageUploadParams={authenticity_token:i("meta[name=csrf-token]").attr("content")}:void 0,i(this).addClass("froala-wysiwyged");var D=i(this).froalaEditor(l);e(this,function(){D.val(D.froalaEditor("html.get"))}),k&&i(this).on("froalaEditor.image.error",function(w,g,d){alert("error uploading image: "+d.message)}).on("froalaEditor.image.removed",function(w,g,d){g.options.imageDeleteParams={src:d.attr("src"),authenticity_token:i("meta[name=csrf-token]").attr("content")},g.deleteImage(d)}).on("editable.imageDeleteSuccess",function(w,g,d){}).on("editable.imageDeleteError",function(w,g,d){alert("error deleting image: "+d.message)})})}})(this),o=L.find("[data-richtext=froala-wysiwyg]").not(".froala-wysiwyged"),o.length&&(N=i(o[0]).data("options"),typeof i.fn.editable!="function"?(i("head").append('<link href="'+N.csspath+'" rel="stylesheet" media="all" type="text/css">'),i.getScript(N.jspath,(function(M){return function(T,k,D){return A(o)}})(this))):A(o)),L.find("trix-editor").each(function(){if(!window.Trix)return N=i(this).data("options"),N.warn_dynamic_load&&console.warn("ActionText assets should be loaded statically. Follow instructions in https://github.com/railsadminteam/rails_admin/wiki/ActionText"),i("head").append('<link href="'+N.csspath+'" rel="stylesheet" media="all" type="text/css">'),i.getScript(N.jspath)})})})(Sh.default);tc();})();
|