@xframework-ca-test/cli 1.0.30 → 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/customer-portal/android-chrome-192x192.png +0 -0
- package/dist/customer-portal/android-chrome-512x512.png +0 -0
- package/dist/customer-portal/apple-touch-icon.png +0 -0
- package/dist/customer-portal/assets/ActionLink-feb719a3.js +1 -0
- package/dist/customer-portal/assets/AdaptableCard-5bdf55ff.js +1 -0
- package/dist/customer-portal/assets/Alert-e6518529.js +1 -0
- package/dist/customer-portal/assets/Auth0Callback-a32aa0ee.js +1 -0
- package/dist/customer-portal/assets/BlankLayout-7d425a4f.js +1 -0
- package/dist/customer-portal/assets/Button-312a6bfe.js +1 -0
- package/dist/customer-portal/assets/Card-8badb238.js +1 -0
- package/dist/customer-portal/assets/Checkout-735fa664.js +1 -0
- package/dist/customer-portal/assets/ClassicLayout-43547087.js +1 -0
- package/dist/customer-portal/assets/Container-0271dbaa.js +1 -0
- package/dist/customer-portal/assets/CourseDetails-aa3fc18f.js +1 -0
- package/dist/customer-portal/assets/CourseService-150b9c3b.js +1 -0
- package/dist/customer-portal/assets/DeckedLayout-50b0b841.js +1 -0
- package/dist/customer-portal/assets/DocumentList-f286e322.js +367 -0
- package/dist/customer-portal/assets/FaqItems-f0ea3578.js +1 -0
- package/dist/customer-portal/assets/FormContainer-e0ad1074.js +1 -0
- package/dist/customer-portal/assets/HorizontalMenuContent-c2ce9ba4.js +1 -0
- package/dist/customer-portal/assets/Input-f9dc9df7.js +1 -0
- package/dist/customer-portal/assets/LogInAsUser-5301a711.js +1 -0
- package/dist/customer-portal/assets/LogInAsUserSuccess-c53d408d.js +1 -0
- package/dist/customer-portal/assets/Logo-aa883174.js +1 -0
- package/dist/customer-portal/assets/ModernLayout-fd6ab4e1.js +1 -0
- package/dist/customer-portal/assets/Password-6017abd1.js +1 -0
- package/dist/customer-portal/assets/PasswordInput-f6e74528.js +1 -0
- package/dist/customer-portal/assets/Preview-bcdcb9ef.js +1 -0
- package/dist/customer-portal/assets/Product-ed043f08.js +1 -0
- package/dist/customer-portal/assets/ProductsLayout-c61b7a8e.js +1 -0
- package/dist/customer-portal/assets/Profile-d747fa18.js +1 -0
- package/dist/customer-portal/assets/Roboto-300-18827349.woff +0 -0
- package/dist/customer-portal/assets/Roboto-300-1d8f5280.woff2 +0 -0
- package/dist/customer-portal/assets/Roboto-300-a6d343d4.ttf +0 -0
- package/dist/customer-portal/assets/Roboto-400-47107401.woff2 +0 -0
- package/dist/customer-portal/assets/Roboto-400-79e85140.ttf +0 -0
- package/dist/customer-portal/assets/Roboto-400-9ae9d654.woff +0 -0
- package/dist/customer-portal/assets/Roboto-500-4112fbc9.woff +0 -0
- package/dist/customer-portal/assets/Roboto-500-96025fe9.woff2 +0 -0
- package/dist/customer-portal/assets/Roboto-500-f205cc51.ttf +0 -0
- package/dist/customer-portal/assets/Roboto-700-7d0b991e.ttf +0 -0
- package/dist/customer-portal/assets/Roboto-700-8e44376b.woff2 +0 -0
- package/dist/customer-portal/assets/Roboto-700-b1767a0c.woff +0 -0
- package/dist/customer-portal/assets/SegmentItemOption-1228dbe0.js +1 -0
- package/dist/customer-portal/assets/Select-19bd23ac.js +27 -0
- package/dist/customer-portal/assets/SidePanelContent-0d8d0ddd.js +1 -0
- package/dist/customer-portal/assets/SimpleLayout-a34ce3d6.js +2 -0
- package/dist/customer-portal/assets/StackedSideLayout-d20fda92.js +1 -0
- package/dist/customer-portal/assets/SubscriptionService-ff0a4fe5.js +1 -0
- package/dist/customer-portal/assets/SvgIcon-8e59e50e.css +6 -0
- package/dist/customer-portal/assets/SvgIcon-e50d8824.js +1008 -0
- package/dist/customer-portal/assets/Switcher-4b56d286.js +1 -0
- package/dist/customer-portal/assets/Tag-0a3ddbe2.js +1 -0
- package/dist/customer-portal/assets/TicketService-0b9fd2cc.js +1 -0
- package/dist/customer-portal/assets/Upload-f16cbbc9.js +127 -0
- package/dist/customer-portal/assets/UserService-379fdae4.js +1 -0
- package/dist/customer-portal/assets/Views-7025458f.js +1 -0
- package/dist/customer-portal/assets/ar-bb9d99db.js +1 -0
- package/dist/customer-portal/assets/cloneDeep-958c9090.js +1 -0
- package/dist/customer-portal/assets/dash.all.min-5cea336e.js +21 -0
- package/dist/customer-portal/assets/dxicons-695e35c5.woff +0 -0
- package/dist/customer-portal/assets/dxicons-a7f2b877.woff2 +0 -0
- package/dist/customer-portal/assets/dxicons-ce18ad67.ttf +0 -0
- package/dist/customer-portal/assets/dxiconsmaterial-042942d9.woff2 +0 -0
- package/dist/customer-portal/assets/dxiconsmaterial-2ca243c8.woff +0 -0
- package/dist/customer-portal/assets/dxiconsmaterial-d53bccef.ttf +0 -0
- package/dist/customer-portal/assets/en-e8193568.js +1 -0
- package/dist/customer-portal/assets/es-74fe811a.js +1 -0
- package/dist/customer-portal/assets/get-e6d75ebc.js +1 -0
- package/dist/customer-portal/assets/hls-78bd63bc.js +40 -0
- package/dist/customer-portal/assets/index-108e74a4.js +1 -0
- package/dist/customer-portal/assets/index-21f8ea30.js +3146 -0
- package/dist/customer-portal/assets/index-39f1f77e.js +1 -0
- package/dist/customer-portal/assets/index-50d9ba0e.js +1 -0
- package/dist/customer-portal/assets/index-51020fda.js +1 -0
- package/dist/customer-portal/assets/index-59b78927.js +1 -0
- package/dist/customer-portal/assets/index-5ee26094.js +1 -0
- package/dist/customer-portal/assets/index-6300b1cb.js +1 -0
- package/dist/customer-portal/assets/index-64f43f5c.js +1 -0
- package/dist/customer-portal/assets/index-737fd7d3.js +173 -0
- package/dist/customer-portal/assets/index-7b067308.js +1 -0
- package/dist/customer-portal/assets/index-7fb11654.css +1 -0
- package/dist/customer-portal/assets/index-8017aaa8.js +1 -0
- package/dist/customer-portal/assets/index-91a81028.js +1 -0
- package/dist/customer-portal/assets/index-99f3e22d.js +1 -0
- package/dist/customer-portal/assets/index-a05b664a.js +9 -0
- package/dist/customer-portal/assets/index-b2e5d3b2.js +1 -0
- package/dist/customer-portal/assets/index-bba6cb11.js +1 -0
- package/dist/customer-portal/assets/index-cdf4c2fe.js +1 -0
- package/dist/customer-portal/assets/index-ce7c8371.js +9 -0
- package/dist/customer-portal/assets/index-d7b1d047.js +1 -0
- package/dist/customer-portal/assets/index-f3b18a56.js +1 -0
- package/dist/customer-portal/assets/index.esm-2becf208.js +4 -0
- package/dist/customer-portal/assets/index.esm-7fca4988.js +1 -0
- package/dist/customer-portal/assets/index.esm-d90c2f28.js +1 -0
- package/dist/customer-portal/assets/isEmpty-d6a6848e.js +1 -0
- package/dist/customer-portal/assets/mixin-cf90cd8a.js +43 -0
- package/dist/customer-portal/assets/moment-a9aaa855.js +10 -0
- package/dist/customer-portal/assets/myCourse-1e27ebf2.js +1 -0
- package/dist/customer-portal/assets/react-22b3ad73.js +32 -0
- package/dist/customer-portal/assets/react-27635538.js +27 -0
- package/dist/customer-portal/assets/react-35db633d.js +31 -0
- package/dist/customer-portal/assets/react-55737d69.js +44 -0
- package/dist/customer-portal/assets/react-5e997bd3.js +37 -0
- package/dist/customer-portal/assets/react-72b07884.js +16 -0
- package/dist/customer-portal/assets/react-a5b37028.js +29 -0
- package/dist/customer-portal/assets/react-cbdc2827.js +11 -0
- package/dist/customer-portal/assets/strongPassword-dc805a65.js +1 -0
- package/dist/customer-portal/assets/supportTicketLists-64ba33fc.js +1 -0
- package/dist/customer-portal/assets/ticketDetails-25fa14db.js +1 -0
- package/dist/customer-portal/assets/useControllableState-ed446800.js +1 -0
- package/dist/customer-portal/assets/useThemeClass-61b1bbbf.js +1 -0
- package/dist/customer-portal/assets/useTimeOutMessage-04464c25.js +1 -0
- package/dist/customer-portal/assets/warning-eb037686.js +1 -0
- package/dist/customer-portal/assets/zh-cn-9d3866aa.js +1 -0
- package/dist/customer-portal/browserconfig.xml +9 -0
- package/dist/customer-portal/config.js +12 -0
- package/dist/customer-portal/data/features.json +11423 -0
- package/dist/customer-portal/data/order-list.csv +15 -0
- package/dist/customer-portal/data/product-list.csv +13 -0
- package/dist/customer-portal/data/unemployment-by-county-2017.csv +3220 -0
- package/dist/customer-portal/favicon-16x16.png +0 -0
- package/dist/customer-portal/favicon-32x32.png +0 -0
- package/dist/customer-portal/favicon.ico +0 -0
- package/dist/customer-portal/img/avatars/thumb-1.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-10.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-11.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-12.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-13.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-14.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-15.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-16.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-2.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-3.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-4.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-5.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-6.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-7.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-8.jpg +0 -0
- package/dist/customer-portal/img/avatars/thumb-9.jpg +0 -0
- package/dist/customer-portal/img/countries/ar.png +0 -0
- package/dist/customer-portal/img/countries/cn.png +0 -0
- package/dist/customer-portal/img/countries/fr.png +0 -0
- package/dist/customer-portal/img/countries/jp.png +0 -0
- package/dist/customer-portal/img/countries/sp.png +0 -0
- package/dist/customer-portal/img/countries/us.png +0 -0
- package/dist/customer-portal/img/email/email-logo.png +0 -0
- package/dist/customer-portal/img/icons/caCharts.svg +5396 -0
- package/dist/customer-portal/img/icons/caCounts.svg +10950 -0
- package/dist/customer-portal/img/icons/caGrids.svg +11059 -0
- package/dist/customer-portal/img/icons/caMaps.svg +10944 -0
- package/dist/customer-portal/img/icons/caPipelines.svg +11008 -0
- package/dist/customer-portal/img/icons/caStatus.svg +16718 -0
- package/dist/customer-portal/img/icons/caTargets.svg +10977 -0
- package/dist/customer-portal/img/icons/caTasks.svg +10995 -0
- package/dist/customer-portal/img/logo/Group.png +0 -0
- package/dist/customer-portal/img/logo/aica.svg +16 -0
- package/dist/customer-portal/img/logo/logo-dark-full.png +0 -0
- package/dist/customer-portal/img/logo/logo-dark-streamline.png +0 -0
- package/dist/customer-portal/img/logo/logo-grey.png +0 -0
- package/dist/customer-portal/img/logo/logo-light-full.png +0 -0
- package/dist/customer-portal/img/logo/logo-light-streamline.png +0 -0
- package/dist/customer-portal/img/logo/logo.svg +1 -0
- package/dist/customer-portal/img/map/pin-dark.png +0 -0
- package/dist/customer-portal/img/map/pin-orange.png +0 -0
- package/dist/customer-portal/img/map/pin-red.png +0 -0
- package/dist/customer-portal/img/others/auth-cover-bg.jpg +0 -0
- package/dist/customer-portal/img/others/auth-side-bg.jpg +0 -0
- package/dist/customer-portal/img/others/docs/blank-dark.jpg +0 -0
- package/dist/customer-portal/img/others/docs/blank.jpg +0 -0
- package/dist/customer-portal/img/others/docs/classic-dark.jpg +0 -0
- package/dist/customer-portal/img/others/docs/classic.jpg +0 -0
- package/dist/customer-portal/img/others/docs/decked-dark.jpg +0 -0
- package/dist/customer-portal/img/others/docs/decked.jpg +0 -0
- package/dist/customer-portal/img/others/docs/modern-dark.jpg +0 -0
- package/dist/customer-portal/img/others/docs/modern.jpg +0 -0
- package/dist/customer-portal/img/others/docs/simple-dark.jpg +0 -0
- package/dist/customer-portal/img/others/docs/simple.jpg +0 -0
- package/dist/customer-portal/img/others/docs/stackedSide-dark.jpg +0 -0
- package/dist/customer-portal/img/others/docs/stackedSide.jpg +0 -0
- package/dist/customer-portal/img/others/img-1.jpg +0 -0
- package/dist/customer-portal/img/others/img-10.png +0 -0
- package/dist/customer-portal/img/others/img-11.jpg +0 -0
- package/dist/customer-portal/img/others/img-13.jpg +0 -0
- package/dist/customer-portal/img/others/img-14.jpg +0 -0
- package/dist/customer-portal/img/others/img-15.jpg +0 -0
- package/dist/customer-portal/img/others/img-16.jpg +0 -0
- package/dist/customer-portal/img/others/img-17.png +0 -0
- package/dist/customer-portal/img/others/img-2-dark.png +0 -0
- package/dist/customer-portal/img/others/img-2.png +0 -0
- package/dist/customer-portal/img/others/img-8.png +0 -0
- package/dist/customer-portal/img/others/img-9.png +0 -0
- package/dist/customer-portal/img/others/no-mail-selected-dark.png +0 -0
- package/dist/customer-portal/img/others/no-mail-selected.png +0 -0
- package/dist/customer-portal/img/others/no-notification.png +0 -0
- package/dist/customer-portal/img/others/pending-approval-dark.png +0 -0
- package/dist/customer-portal/img/others/pending-approval.png +0 -0
- package/dist/customer-portal/img/others/upload-dark.png +0 -0
- package/dist/customer-portal/img/others/upload.png +0 -0
- package/dist/customer-portal/img/others/welcome-dark.png +0 -0
- package/dist/customer-portal/img/others/welcome.png +0 -0
- package/dist/customer-portal/img/products/product-1-2.jpg +0 -0
- package/dist/customer-portal/img/products/product-1-3.jpg +0 -0
- package/dist/customer-portal/img/products/product-1-4.jpg +0 -0
- package/dist/customer-portal/img/products/product-1.jpg +0 -0
- package/dist/customer-portal/img/products/product-10.jpg +0 -0
- package/dist/customer-portal/img/products/product-11.jpg +0 -0
- package/dist/customer-portal/img/products/product-12.jpg +0 -0
- package/dist/customer-portal/img/products/product-2-2.jpg +0 -0
- package/dist/customer-portal/img/products/product-2.jpg +0 -0
- package/dist/customer-portal/img/products/product-3.jpg +0 -0
- package/dist/customer-portal/img/products/product-4.jpg +0 -0
- package/dist/customer-portal/img/products/product-5.jpg +0 -0
- package/dist/customer-portal/img/products/product-6.jpg +0 -0
- package/dist/customer-portal/img/products/product-7.jpg +0 -0
- package/dist/customer-portal/img/products/product-8.jpg +0 -0
- package/dist/customer-portal/img/products/product-9.jpg +0 -0
- package/dist/customer-portal/img/theme/bg_center_image.jpg +0 -0
- package/dist/customer-portal/img/theme/login_center.jpg +0 -0
- package/dist/customer-portal/img/theme/login_side.jpg +0 -0
- package/dist/customer-portal/img/theme/login_side_wide.jpg +0 -0
- package/dist/customer-portal/img/thumbs/adobe-xd.png +0 -0
- package/dist/customer-portal/img/thumbs/avalanche.png +0 -0
- package/dist/customer-portal/img/thumbs/bitcoin-cash.png +0 -0
- package/dist/customer-portal/img/thumbs/bitcoin-sv.png +0 -0
- package/dist/customer-portal/img/thumbs/bitcoin.png +0 -0
- package/dist/customer-portal/img/thumbs/cardano.png +0 -0
- package/dist/customer-portal/img/thumbs/chainlink.png +0 -0
- package/dist/customer-portal/img/thumbs/doge.png +0 -0
- package/dist/customer-portal/img/thumbs/drivers-license-back-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/drivers-license-back.png +0 -0
- package/dist/customer-portal/img/thumbs/drivers-license-front-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/drivers-license-front.png +0 -0
- package/dist/customer-portal/img/thumbs/dropbox.png +0 -0
- package/dist/customer-portal/img/thumbs/eos.png +0 -0
- package/dist/customer-portal/img/thumbs/ethereum.png +0 -0
- package/dist/customer-portal/img/thumbs/figma.png +0 -0
- package/dist/customer-portal/img/thumbs/github.png +0 -0
- package/dist/customer-portal/img/thumbs/gitlab.png +0 -0
- package/dist/customer-portal/img/thumbs/google-drive.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-0-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-0.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-1-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-1.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-2-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-2.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-3-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-3.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-4-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-4.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-5-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-5.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-6-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-6.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-7-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/help-center-category-7.png +0 -0
- package/dist/customer-portal/img/thumbs/hubspot.png +0 -0
- package/dist/customer-portal/img/thumbs/id-card-back-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/id-card-back.png +0 -0
- package/dist/customer-portal/img/thumbs/id-card-front-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/id-card-front.png +0 -0
- package/dist/customer-portal/img/thumbs/jira.png +0 -0
- package/dist/customer-portal/img/thumbs/layouts/blank-dark.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/blank.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/classic-dark.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/classic.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/decked-dark.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/decked.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/modern-dark.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/modern.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/simple-dark.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/simple.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/stackedSide-dark.jpg +0 -0
- package/dist/customer-portal/img/thumbs/layouts/stackedSide.jpg +0 -0
- package/dist/customer-portal/img/thumbs/litecoin.png +0 -0
- package/dist/customer-portal/img/thumbs/miota.png +0 -0
- package/dist/customer-portal/img/thumbs/monero.png +0 -0
- package/dist/customer-portal/img/thumbs/notion.png +0 -0
- package/dist/customer-portal/img/thumbs/passport-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/passport-data-dark.png +0 -0
- package/dist/customer-portal/img/thumbs/passport-data.png +0 -0
- package/dist/customer-portal/img/thumbs/passport.png +0 -0
- package/dist/customer-portal/img/thumbs/polkadot.png +0 -0
- package/dist/customer-portal/img/thumbs/polygon.png +0 -0
- package/dist/customer-portal/img/thumbs/ripple.png +0 -0
- package/dist/customer-portal/img/thumbs/saleforce-crm.png +0 -0
- package/dist/customer-portal/img/thumbs/shiba-inu.png +0 -0
- package/dist/customer-portal/img/thumbs/sketch.png +0 -0
- package/dist/customer-portal/img/thumbs/slack.png +0 -0
- package/dist/customer-portal/img/thumbs/solana.png +0 -0
- package/dist/customer-portal/img/thumbs/stellar-lumens.png +0 -0
- package/dist/customer-portal/img/thumbs/tether-us.png +0 -0
- package/dist/customer-portal/img/thumbs/tron.png +0 -0
- package/dist/customer-portal/img/thumbs/zapier.png +0 -0
- package/dist/customer-portal/img/thumbs/zendesk.png +0 -0
- package/dist/customer-portal/img/video/bg-login.mp4 +0 -0
- package/dist/customer-portal/index.html +31 -0
- package/dist/customer-portal/logo192.png +0 -0
- package/dist/customer-portal/logo512.png +0 -0
- package/dist/customer-portal/manifest.json +20 -0
- package/dist/customer-portal/mstile-150x150.png +0 -0
- package/dist/customer-portal/robots.txt +3 -0
- package/dist/customer-portal/safari-pinned-tab.svg +70 -0
- package/dist/customer-portal/web.config +27 -0
- package/dist/ui/config.js +20 -16
- package/dist/ui/menudata/menus.json +606 -0
- package/index.bundle.js +72 -37
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ap as y,g as H}from"./index-737fd7d3.js";var X=typeof y=="object"&&y&&y.Object===Object&&y,L=X,Q=L,Y=typeof self=="object"&&self&&self.Object===Object&&self,Z=Q||Y||Function("return this")(),s=Z,rr=s,tr=rr.Symbol,U=tr,er=Array.isArray,ar=er,P=U,V=Object.prototype,or=V.hasOwnProperty,nr=V.toString,u=P?P.toStringTag:void 0;function sr(r){var t=or.call(r,u),a=r[u];try{r[u]=void 0;var n=!0}catch{}var o=nr.call(r);return n&&(t?r[u]=a:delete r[u]),o}var ir=sr,cr=Object.prototype,gr=cr.toString;function br(r){return gr.call(r)}var ur=br,h=U,fr=ir,vr=ur,pr="[object Null]",yr="[object Undefined]",k=h?h.toStringTag:void 0;function jr(r){return r==null?r===void 0?yr:pr:k&&k in Object(r)?fr(r):vr(r)}var T=jr;function $r(r){return r!=null&&typeof r=="object"}var m=$r,Tr=Object.prototype;function lr(r){var t=r&&r.constructor,a=typeof t=="function"&&t.prototype||Tr;return r===a}var D=lr;function dr(r,t){return function(a){return r(t(a))}}var _r=dr,Ar=_r,Or=Ar(Object.keys,Object),Sr=Or,mr=D,wr=Sr,Pr=Object.prototype,hr=Pr.hasOwnProperty;function kr(r){if(!mr(r))return wr(r);var t=[];for(var a in Object(r))hr.call(r,a)&&a!="constructor"&&t.push(a);return t}var xr=kr;function Mr(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var R=Mr,Er=T,Ir=R,Fr="[object AsyncFunction]",Nr="[object Function]",Cr="[object GeneratorFunction]",Gr="[object Proxy]";function Br(r){if(!Ir(r))return!1;var t=Er(r);return t==Nr||t==Cr||t==Fr||t==Gr}var K=Br,Lr=s,Ur=Lr["__core-js_shared__"],Vr=Ur,l=Vr,x=function(){var r=/[^.]+$/.exec(l&&l.keys&&l.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function Dr(r){return!!x&&x in r}var Rr=Dr,Kr=Function.prototype,Wr=Kr.toString;function qr(r){if(r!=null){try{return Wr.call(r)}catch{}try{return r+""}catch{}}return""}var W=qr,Jr=K,zr=Rr,Hr=R,Xr=W,Qr=/[\\^$.*+?()[\]{}|]/g,Yr=/^\[object .+?Constructor\]$/,Zr=Function.prototype,rt=Object.prototype,tt=Zr.toString,et=rt.hasOwnProperty,at=RegExp("^"+tt.call(et).replace(Qr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ot(r){if(!Hr(r)||zr(r))return!1;var t=Jr(r)?at:Yr;return t.test(Xr(r))}var nt=ot;function st(r,t){return r==null?void 0:r[t]}var it=st,ct=nt,gt=it;function bt(r,t){var a=gt(r,t);return ct(a)?a:void 0}var f=bt,ut=f,ft=s,vt=ut(ft,"DataView"),pt=vt,yt=f,jt=s,$t=yt(jt,"Map"),Tt=$t,lt=f,dt=s,_t=lt(dt,"Promise"),At=_t,Ot=f,St=s,mt=Ot(St,"Set"),wt=mt,Pt=f,ht=s,kt=Pt(ht,"WeakMap"),xt=kt,d=pt,_=Tt,A=At,O=wt,S=xt,q=T,c=W,M="[object Map]",Mt="[object Object]",E="[object Promise]",I="[object Set]",F="[object WeakMap]",N="[object DataView]",Et=c(d),It=c(_),Ft=c(A),Nt=c(O),Ct=c(S),i=q;(d&&i(new d(new ArrayBuffer(1)))!=N||_&&i(new _)!=M||A&&i(A.resolve())!=E||O&&i(new O)!=I||S&&i(new S)!=F)&&(i=function(r){var t=q(r),a=t==Mt?r.constructor:void 0,n=a?c(a):"";if(n)switch(n){case Et:return N;case It:return M;case Ft:return E;case Nt:return I;case Ct:return F}return t});var Gt=i,Bt=T,Lt=m,Ut="[object Arguments]";function Vt(r){return Lt(r)&&Bt(r)==Ut}var Dt=Vt,C=Dt,Rt=m,J=Object.prototype,Kt=J.hasOwnProperty,Wt=J.propertyIsEnumerable,qt=C(function(){return arguments}())?C:function(r){return Rt(r)&&Kt.call(r,"callee")&&!Wt.call(r,"callee")},Jt=qt,zt=9007199254740991;function Ht(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=zt}var z=Ht,Xt=K,Qt=z;function Yt(r){return r!=null&&Qt(r.length)&&!Xt(r)}var Zt=Yt,j={exports:{}};function re(){return!1}var te=re;j.exports;(function(r,t){var a=s,n=te,o=t&&!t.nodeType&&t,g=o&&!0&&r&&!r.nodeType&&r,b=g&&g.exports===o,v=b?a.Buffer:void 0,p=v?v.isBuffer:void 0,w=p||n;r.exports=w})(j,j.exports);var ee=j.exports,ae=T,oe=z,ne=m,se="[object Arguments]",ie="[object Array]",ce="[object Boolean]",ge="[object Date]",be="[object Error]",ue="[object Function]",fe="[object Map]",ve="[object Number]",pe="[object Object]",ye="[object RegExp]",je="[object Set]",$e="[object String]",Te="[object WeakMap]",le="[object ArrayBuffer]",de="[object DataView]",_e="[object Float32Array]",Ae="[object Float64Array]",Oe="[object Int8Array]",Se="[object Int16Array]",me="[object Int32Array]",we="[object Uint8Array]",Pe="[object Uint8ClampedArray]",he="[object Uint16Array]",ke="[object Uint32Array]",e={};e[_e]=e[Ae]=e[Oe]=e[Se]=e[me]=e[we]=e[Pe]=e[he]=e[ke]=!0;e[se]=e[ie]=e[le]=e[ce]=e[de]=e[ge]=e[be]=e[ue]=e[fe]=e[ve]=e[pe]=e[ye]=e[je]=e[$e]=e[Te]=!1;function xe(r){return ne(r)&&oe(r.length)&&!!e[ae(r)]}var Me=xe;function Ee(r){return function(t){return r(t)}}var Ie=Ee,$={exports:{}};$.exports;(function(r,t){var a=L,n=t&&!t.nodeType&&t,o=n&&!0&&r&&!r.nodeType&&r,g=o&&o.exports===n,b=g&&a.process,v=function(){try{var p=o&&o.require&&o.require("util").types;return p||b&&b.binding&&b.binding("util")}catch{}}();r.exports=v})($,$.exports);var Fe=$.exports,Ne=Me,Ce=Ie,G=Fe,B=G&&G.isTypedArray,Ge=B?Ce(B):Ne,Be=Ge,Le=xr,Ue=Gt,Ve=Jt,De=ar,Re=Zt,Ke=ee,We=D,qe=Be,Je="[object Map]",ze="[object Set]",He=Object.prototype,Xe=He.hasOwnProperty;function Qe(r){if(r==null)return!0;if(Re(r)&&(De(r)||typeof r=="string"||typeof r.splice=="function"||Ke(r)||qe(r)||Ve(r)))return!r.length;var t=Ue(r);if(t==Je||t==ze)return!r.size;if(We(r))return!Le(r).length;for(var a in r)if(Xe.call(r,a))return!1;return!0}var Ye=Qe;const ra=H(Ye);export{s as _,ra as a,U as b,Gt as c,ee as d,Be as e,ar as f,m as g,Jt as h,R as i,z as j,T as k,f as l,Tt as m,xr as n,Zt as o,D as p,_r as q,Fe as r,Ie as s};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
var qt=Object.defineProperty;var Ot=(i,e,t)=>e in i?qt(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var u=(i,e,t)=>(Ot(i,typeof e!="symbol"?e+"":e,t),t),ot=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)};var o=(i,e,t)=>(ot(i,e,"read from private field"),t?t.call(i):e.get(i)),c=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},a=(i,e,t,n)=>(ot(i,e,"write to private field"),n?n.call(i,t):e.set(i,t),t);var b=(i,e,t)=>(ot(i,e,"access private method"),t);const jt=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","waitingforkey","resize","enterpictureinpicture","leavepictureinpicture","webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"],bt=["autopictureinpicture","disablepictureinpicture","disableremoteplayback","autoplay","controls","controlslist","crossorigin","loop","muted","playsinline","poster","preload","src"];function Pt(i){return`
|
|
2
|
+
<style>
|
|
3
|
+
:host {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
line-height: 0;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
justify-content: end;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
audio {
|
|
11
|
+
width: 100%;
|
|
12
|
+
}
|
|
13
|
+
</style>
|
|
14
|
+
<slot name="media">
|
|
15
|
+
<audio${St(i)}></audio>
|
|
16
|
+
</slot>
|
|
17
|
+
<slot></slot>
|
|
18
|
+
`}function $t(i){return`
|
|
19
|
+
<style>
|
|
20
|
+
:host {
|
|
21
|
+
display: inline-block;
|
|
22
|
+
line-height: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
video {
|
|
26
|
+
max-width: 100%;
|
|
27
|
+
max-height: 100%;
|
|
28
|
+
min-width: 100%;
|
|
29
|
+
min-height: 100%;
|
|
30
|
+
object-fit: var(--media-object-fit, contain);
|
|
31
|
+
object-position: var(--media-object-position, 50% 50%);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
video::-webkit-media-text-track-container {
|
|
35
|
+
transform: var(--media-webkit-text-track-transform);
|
|
36
|
+
transition: var(--media-webkit-text-track-transition);
|
|
37
|
+
}
|
|
38
|
+
</style>
|
|
39
|
+
<slot name="media">
|
|
40
|
+
<video${St(i)}></video>
|
|
41
|
+
</slot>
|
|
42
|
+
<slot></slot>
|
|
43
|
+
`}function wt(i,{tag:e,is:t}){var g,p,v,m,Y,Tt,W,G,E,J,T,V,K,st,Z,Et,Q,dt,_,Lt,tt,Rt;const n=(p=(g=globalThis.document)==null?void 0:g.createElement)==null?void 0:p.call(g,e,{is:t}),d=n?Mt(n):[];return v=class extends i{constructor(){super(...arguments);c(this,T);c(this,K);c(this,Z);c(this,Q);c(this,_);c(this,tt);c(this,W,!1);c(this,G,null);c(this,E,new Map);c(this,J,void 0);u(this,"get");u(this,"set");u(this,"call")}static get observedAttributes(){var h,k;return b(h=v,Y,Tt).call(h),[...((k=n==null?void 0:n.constructor)==null?void 0:k.observedAttributes)??[],...bt]}get nativeEl(){var s;return b(this,T,V).call(this),o(this,G)??this.querySelector(":scope > [slot=media]")??this.querySelector(e)??((s=this.shadowRoot)==null?void 0:s.querySelector(e))??null}set nativeEl(s){a(this,G,s)}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(s){this.toggleAttribute("muted",s)}get src(){return this.getAttribute("src")}set src(s){this.setAttribute("src",`${s}`)}get preload(){var s;return this.getAttribute("preload")??((s=this.nativeEl)==null?void 0:s.preload)}set preload(s){this.setAttribute("preload",`${s}`)}init(){if(!this.shadowRoot){this.attachShadow({mode:"open"});const s=Vt(this.attributes);t&&(s.is=t),e&&(s.part=e),this.shadowRoot.innerHTML=this.constructor.getTemplateHTML(s)}this.nativeEl.muted=this.hasAttribute("muted");for(const s of d)b(this,_,Lt).call(this,s);a(this,J,new MutationObserver(b(this,Z,Et).bind(this))),this.shadowRoot.addEventListener("slotchange",()=>b(this,K,st).call(this)),b(this,K,st).call(this);for(const s of this.constructor.Events)this.shadowRoot.addEventListener(s,this,!0)}handleEvent(s){s.target===this.nativeEl&&this.dispatchEvent(new CustomEvent(s.type,{detail:s.detail}))}attributeChangedCallback(s,h,k){b(this,T,V).call(this),b(this,tt,Rt).call(this,s,h,k)}connectedCallback(){b(this,T,V).call(this)}},m=new WeakMap,Y=new WeakSet,Tt=function(){if(o(this,m))return;a(this,m,!0);const s=new Set(this.observedAttributes);s.delete("muted");for(const h of d)if(!(h in this.prototype))if(typeof n[h]=="function")this.prototype[h]=function(...k){return b(this,T,V).call(this),(()=>{var y;if(this.call)return this.call(h,...k);const f=(y=this.nativeEl)==null?void 0:y[h];return f==null?void 0:f.apply(this.nativeEl,k)})()};else{const k={get(){var f,y;b(this,T,V).call(this);const l=h.toLowerCase();if(s.has(l)){const H=this.getAttribute(l);return H===null?!1:H===""?!0:H}return((f=this.get)==null?void 0:f.call(this,h))??((y=this.nativeEl)==null?void 0:y[h])}};h!==h.toUpperCase()&&(k.set=function(l){b(this,T,V).call(this);const f=h.toLowerCase();if(s.has(f)){l===!0||l===!1||l==null?this.toggleAttribute(f,!!l):this.setAttribute(f,l);return}if(this.set){this.set(h,l);return}this.nativeEl&&(this.nativeEl[h]=l)}),Object.defineProperty(this.prototype,h,k)}},W=new WeakMap,G=new WeakMap,E=new WeakMap,J=new WeakMap,T=new WeakSet,V=function(){o(this,W)||(a(this,W,!0),this.init())},K=new WeakSet,st=function(){var l;const s=new Map(o(this,E)),h=(l=this.shadowRoot)==null?void 0:l.querySelector("slot:not([name])");(h==null?void 0:h.assignedElements({flatten:!0}).filter(f=>["track","source"].includes(f.localName))).forEach(f=>{var H,kt;s.delete(f);let y=o(this,E).get(f);y||(y=f.cloneNode(),o(this,E).set(f,y),(H=o(this,J))==null||H.observe(f,{attributes:!0})),(kt=this.nativeEl)==null||kt.append(y),b(this,Q,dt).call(this,y)}),s.forEach((f,y)=>{f.remove(),o(this,E).delete(y)})},Z=new WeakSet,Et=function(s){for(const h of s)if(h.type==="attributes"){const{target:k,attributeName:l}=h,f=o(this,E).get(k);f&&l&&(f.setAttribute(l,k.getAttribute(l)??""),b(this,Q,dt).call(this,f))}},Q=new WeakSet,dt=function(s){s&&s.localName==="track"&&s.default&&(s.kind==="chapters"||s.kind==="metadata")&&s.track.mode==="disabled"&&(s.track.mode="hidden")},_=new WeakSet,Lt=function(s){if(Object.prototype.hasOwnProperty.call(this,s)){const h=this[s];delete this[s],this[s]=h}},tt=new WeakSet,Rt=function(s,h,k){var l,f,y;["id","class"].includes(s)||!v.observedAttributes.includes(s)&&this.constructor.observedAttributes.includes(s)||(k===null?(l=this.nativeEl)==null||l.removeAttribute(s):((f=this.nativeEl)==null?void 0:f.getAttribute(s))!==k&&((y=this.nativeEl)==null||y.setAttribute(s,k)))},c(v,Y),u(v,"getTemplateHTML",e.endsWith("audio")?Pt:$t),u(v,"shadowRootOptions",{mode:"open"}),u(v,"Events",jt),c(v,m,!1),v}function Mt(i){const e=[];for(let t=Object.getPrototypeOf(i);t&&t!==HTMLElement.prototype;t=Object.getPrototypeOf(t)){const n=Object.getOwnPropertyNames(t);e.push(...n)}return e}function St(i){let e="";for(const t in i){if(!bt.includes(t))continue;const n=i[t];n===""?e+=` ${t}`:e+=` ${t}="${n}"`}return e}function Vt(i){const e={};for(const t of i)e[t.name]=t.value;return e}const Yt=wt(globalThis.HTMLElement??class{},{tag:"video"});wt(globalThis.HTMLElement??class{},{tag:"audio"});class nt extends Event{constructor(t,n){super(t);u(this,"track");this.track=n.track}}const at=new WeakMap;function r(i){return at.get(i)??It(i,{})}function It(i,e){let t=at.get(i);return t||at.set(i,t={}),Object.assign(t,e)}function ct(i,e){const t=i.videoTracks;r(e).media=i,r(e).renditionSet||(r(e).renditionSet=new Set);const n=r(t).trackSet;n.add(e);const d=n.size-1;d in ht.prototype||Object.defineProperty(ht.prototype,d,{get(){return[...r(this).trackSet][d]}}),queueMicrotask(()=>{t.dispatchEvent(new nt("addtrack",{track:e}))})}function ut(i){var n;const e=(n=r(i).media)==null?void 0:n.videoTracks;if(!e)return;r(e).trackSet.delete(i),queueMicrotask(()=>{e.dispatchEvent(new nt("removetrack",{track:i}))})}function Ht(i){const e=r(i).media.videoTracks??[];let t=!1;for(const n of e)n!==i&&(n.selected=!1,t=!0);if(t){if(r(e).changeRequested)return;r(e).changeRequested=!0,queueMicrotask(()=>{delete r(e).changeRequested,e.dispatchEvent(new Event("change"))})}}var L,R,w,I,X;class ht extends EventTarget{constructor(){super();c(this,I);c(this,L,void 0);c(this,R,void 0);c(this,w,void 0);r(this).trackSet=new Set}[Symbol.iterator](){return o(this,I,X).values()}get length(){return o(this,I,X).size}getTrackById(t){return[...o(this,I,X)].find(n=>n.id===t)??null}get selectedIndex(){return[...o(this,I,X)].findIndex(t=>t.selected)}get onaddtrack(){return o(this,L)}set onaddtrack(t){o(this,L)&&(this.removeEventListener("addtrack",o(this,L)),a(this,L,void 0)),typeof t=="function"&&(a(this,L,t),this.addEventListener("addtrack",t))}get onremovetrack(){return o(this,R)}set onremovetrack(t){o(this,R)&&(this.removeEventListener("removetrack",o(this,R)),a(this,R,void 0)),typeof t=="function"&&(a(this,R,t),this.addEventListener("removetrack",t))}get onchange(){return o(this,w)}set onchange(t){o(this,w)&&(this.removeEventListener("change",o(this,w)),a(this,w,void 0)),typeof t=="function"&&(a(this,w,t),this.addEventListener("change",t))}}L=new WeakMap,R=new WeakMap,w=new WeakMap,I=new WeakSet,X=function(){return r(this).trackSet};class rt extends Event{constructor(t,n){super(t);u(this,"rendition");this.rendition=n.rendition}}function zt(i,e){const t=r(i).media.videoRenditions;r(e).media=r(i).media,r(e).track=i;const n=r(i).renditionSet;n.add(e);const d=n.size-1;d in ft.prototype||Object.defineProperty(ft.prototype,d,{get(){return z(this)[d]}}),queueMicrotask(()=>{i.selected&&t.dispatchEvent(new rt("addrendition",{rendition:e}))})}function Bt(i){const e=r(i).media.videoRenditions,t=r(i).track;r(t).renditionSet.delete(i),queueMicrotask(()=>{r(i).track.selected&&e.dispatchEvent(new rt("removerendition",{rendition:i}))})}function Ct(i){const e=r(i).media.videoRenditions;!e||r(e).changeRequested||(r(e).changeRequested=!0,queueMicrotask(()=>{delete r(e).changeRequested,r(i).track.selected&&e.dispatchEvent(new Event("change"))}))}function z(i){return[...r(i).media.videoTracks].filter(t=>t.selected).flatMap(t=>[...r(t).renditionSet])}var S,A,x;class ft extends EventTarget{constructor(){super(...arguments);c(this,S,void 0);c(this,A,void 0);c(this,x,void 0)}[Symbol.iterator](){return z(this).values()}get length(){return z(this).length}getRenditionById(t){return z(this).find(n=>`${n.id}`==`${t}`)??null}get selectedIndex(){return z(this).findIndex(t=>t.selected)}set selectedIndex(t){for(const[n,d]of z(this).entries())d.selected=n===t}get onaddrendition(){return o(this,S)}set onaddrendition(t){o(this,S)&&(this.removeEventListener("addrendition",o(this,S)),a(this,S,void 0)),typeof t=="function"&&(a(this,S,t),this.addEventListener("addrendition",t))}get onremoverendition(){return o(this,A)}set onremoverendition(t){o(this,A)&&(this.removeEventListener("removerendition",o(this,A)),a(this,A,void 0)),typeof t=="function"&&(a(this,A,t),this.addEventListener("removerendition",t))}get onchange(){return o(this,x)}set onchange(t){o(this,x)&&(this.removeEventListener("change",o(this,x)),a(this,x,void 0)),typeof t=="function"&&(a(this,x,t),this.addEventListener("change",t))}}S=new WeakMap,A=new WeakMap,x=new WeakMap;var C;class Ft{constructor(){u(this,"src");u(this,"id");u(this,"width");u(this,"height");u(this,"bitrate");u(this,"frameRate");u(this,"codec");c(this,C,!1)}get selected(){return o(this,C)}set selected(e){o(this,C)!==e&&(a(this,C,e),Ct(this))}}C=new WeakMap;var F;class At{constructor(){u(this,"id");u(this,"kind");u(this,"label","");u(this,"language","");u(this,"sourceBuffer");c(this,F,!1)}addRendition(e,t,n,d,g,p){const v=new Ft;return v.src=e,v.width=t,v.height=n,v.frameRate=p,v.bitrate=g,v.codec=d,zt(this,v),v}removeRendition(e){Bt(e)}get selected(){return o(this,F)}set selected(e){o(this,F)!==e&&(a(this,F,e),e===!0&&Ht(this))}}F=new WeakMap;function Dt(i,e){const t=r(i).media.audioRenditions;r(e).media=r(i).media,r(e).track=i;const n=r(i).renditionSet;n.add(e);const d=n.size-1;d in vt.prototype||Object.defineProperty(vt.prototype,d,{get(){return B(this)[d]}}),queueMicrotask(()=>{i.enabled&&t.dispatchEvent(new rt("addrendition",{rendition:e}))})}function Nt(i){const e=r(i).media.audioRenditions,t=r(i).track;r(t).renditionSet.delete(i),queueMicrotask(()=>{r(i).track.enabled&&e.dispatchEvent(new rt("removerendition",{rendition:i}))})}function Ut(i){const e=r(i).media.audioRenditions;!e||r(e).changeRequested||(r(e).changeRequested=!0,queueMicrotask(()=>{delete r(e).changeRequested,r(i).track.enabled&&e.dispatchEvent(new Event("change"))}))}function B(i){return[...r(i).media.audioTracks].filter(t=>t.enabled).flatMap(t=>[...r(t).renditionSet])}var q,O,j;class vt extends EventTarget{constructor(){super(...arguments);c(this,q,void 0);c(this,O,void 0);c(this,j,void 0)}[Symbol.iterator](){return B(this).values()}get length(){return B(this).length}getRenditionById(t){return B(this).find(n=>`${n.id}`==`${t}`)??null}get selectedIndex(){return B(this).findIndex(t=>t.selected)}set selectedIndex(t){for(const[n,d]of B(this).entries())d.selected=n===t}get onaddrendition(){return o(this,q)}set onaddrendition(t){o(this,q)&&(this.removeEventListener("addrendition",o(this,q)),a(this,q,void 0)),typeof t=="function"&&(a(this,q,t),this.addEventListener("addrendition",t))}get onremoverendition(){return o(this,O)}set onremoverendition(t){o(this,O)&&(this.removeEventListener("removerendition",o(this,O)),a(this,O,void 0)),typeof t=="function"&&(a(this,O,t),this.addEventListener("removerendition",t))}get onchange(){return o(this,j)}set onchange(t){o(this,j)&&(this.removeEventListener("change",o(this,j)),a(this,j,void 0)),typeof t=="function"&&(a(this,j,t),this.addEventListener("change",t))}}q=new WeakMap,O=new WeakMap,j=new WeakMap;var D;class Wt{constructor(){u(this,"src");u(this,"id");u(this,"bitrate");u(this,"codec");c(this,D,!1)}get selected(){return o(this,D)}set selected(e){o(this,D)!==e&&(a(this,D,e),Ut(this))}}D=new WeakMap;function lt(i,e){const t=i.audioTracks;r(e).media=i,r(e).renditionSet||(r(e).renditionSet=new Set);const n=r(t).trackSet;n.add(e);const d=n.size-1;d in gt.prototype||Object.defineProperty(gt.prototype,d,{get(){return[...r(this).trackSet][d]}}),queueMicrotask(()=>{t.dispatchEvent(new nt("addtrack",{track:e}))})}function pt(i){var n;const e=(n=r(i).media)==null?void 0:n.audioTracks;if(!e)return;r(e).trackSet.delete(i),queueMicrotask(()=>{e.dispatchEvent(new nt("removetrack",{track:i}))})}function Gt(i){const e=r(i).media.audioTracks;!e||r(e).changeRequested||(r(e).changeRequested=!0,queueMicrotask(()=>{delete r(e).changeRequested,e.dispatchEvent(new Event("change"))}))}var P,$,M,N,et;class gt extends EventTarget{constructor(){super();c(this,N);c(this,P,void 0);c(this,$,void 0);c(this,M,void 0);r(this).trackSet=new Set}[Symbol.iterator](){return o(this,N,et).values()}get length(){return o(this,N,et).size}getTrackById(t){return[...o(this,N,et)].find(n=>n.id===t)??null}get onaddtrack(){return o(this,P)}set onaddtrack(t){o(this,P)&&(this.removeEventListener("addtrack",o(this,P)),a(this,P,void 0)),typeof t=="function"&&(a(this,P,t),this.addEventListener("addtrack",t))}get onremovetrack(){return o(this,$)}set onremovetrack(t){o(this,$)&&(this.removeEventListener("removetrack",o(this,$)),a(this,$,void 0)),typeof t=="function"&&(a(this,$,t),this.addEventListener("removetrack",t))}get onchange(){return o(this,M)}set onchange(t){o(this,M)&&(this.removeEventListener("change",o(this,M)),a(this,M,void 0)),typeof t=="function"&&(a(this,M,t),this.addEventListener("change",t))}}P=new WeakMap,$=new WeakMap,M=new WeakMap,N=new WeakSet,et=function(){return r(this).trackSet};var U;class xt{constructor(){u(this,"id");u(this,"kind");u(this,"label","");u(this,"language","");u(this,"sourceBuffer");c(this,U,!1)}addRendition(e,t,n){const d=new Wt;return d.src=e,d.codec=t,d.bitrate=n,Dt(this,d),d}removeRendition(e){Nt(e)}get enabled(){return o(this,U)}set enabled(e){o(this,U)!==e&&(a(this,U,e),Gt(this))}}U=new WeakMap;const mt=it(globalThis.HTMLMediaElement,"video"),yt=it(globalThis.HTMLMediaElement,"audio");function Zt(i){if(!(i!=null&&i.prototype))return i;const e=it(i,"video");(!e||`${e}`.includes("[native code]"))&&Object.defineProperty(i.prototype,"videoTracks",{get(){return Jt(this)}});const t=it(i,"audio");(!t||`${t}`.includes("[native code]"))&&Object.defineProperty(i.prototype,"audioTracks",{get(){return Kt(this)}}),"addVideoTrack"in i.prototype||(i.prototype.addVideoTrack=function(g,p="",v=""){const m=new At;return m.kind=g,m.label=p,m.language=v,ct(this,m),m}),"removeVideoTrack"in i.prototype||(i.prototype.removeVideoTrack=ut),"addAudioTrack"in i.prototype||(i.prototype.addAudioTrack=function(g,p="",v=""){const m=new xt;return m.kind=g,m.label=p,m.language=v,lt(this,m),m}),"removeAudioTrack"in i.prototype||(i.prototype.removeAudioTrack=pt),"videoRenditions"in i.prototype||Object.defineProperty(i.prototype,"videoRenditions",{get(){return n(this)}});const n=g=>{let p=r(g).videoRenditions;return p||(p=new ft,r(p).media=g,r(g).videoRenditions=p),p};"audioRenditions"in i.prototype||Object.defineProperty(i.prototype,"audioRenditions",{get(){return d(this)}});const d=g=>{let p=r(g).audioRenditions;return p||(p=new vt,r(p).media=g,r(g).audioRenditions=p),p};return i}function it(i,e){var t;if(i!=null&&i.prototype)return(t=Object.getOwnPropertyDescriptor(i.prototype,`${e}Tracks`))==null?void 0:t.get}function Jt(i){let e=r(i).videoTracks;if(!e&&(e=new ht,r(i).videoTracks=e,mt)){const t=mt.call(i.nativeEl??i);for(const n of t)ct(i,n);t.addEventListener("change",()=>{e.dispatchEvent(new Event("change"))}),t.addEventListener("addtrack",n=>{if([...e].some(d=>d instanceof At)){for(const d of t)ut(d);return}ct(i,n.track)}),t.addEventListener("removetrack",n=>{ut(n.track)})}return e}function Kt(i){let e=r(i).audioTracks;if(!e&&(e=new gt,r(i).audioTracks=e,yt)){const t=yt.call(i.nativeEl??i);for(const n of t)lt(i,n);t.addEventListener("change",()=>{e.dispatchEvent(new Event("change"))}),t.addEventListener("addtrack",n=>{if([...e].some(d=>d instanceof xt)){for(const d of t)pt(d);return}lt(i,n.track)}),t.addEventListener("removetrack",n=>{pt(n.track)})}return e}export{Yt as C,Zt as M};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//! moment.js
|
|
2
|
+
//! version : 2.30.1
|
|
3
|
+
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
4
|
+
//! license : MIT
|
|
5
|
+
//! momentjs.com
|
|
6
|
+
var Nt;function l(){return Nt.apply(null,arguments)}function Ss(e){Nt=e}function R(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function se(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function w(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function st(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(w(e,t))return!1;return!0}function T(e){return e===void 0}function $(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function ge(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Wt(e,t){var s=[],r,a=e.length;for(r=0;r<a;++r)s.push(t(e[r],r));return s}function Q(e,t){for(var s in t)w(t,s)&&(e[s]=t[s]);return w(t,"toString")&&(e.toString=t.toString),w(t,"valueOf")&&(e.valueOf=t.valueOf),e}function I(e,t,s,r){return es(e,t,s,r,!0).utc()}function Ds(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function c(e){return e._pf==null&&(e._pf=Ds()),e._pf}var Be;Array.prototype.some?Be=Array.prototype.some:Be=function(e){var t=Object(this),s=t.length>>>0,r;for(r=0;r<s;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function rt(e){var t=null,s=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=c(e),s=Be.call(t.parsedDateParts,function(a){return a!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&s),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function Fe(e){var t=I(NaN);return e!=null?Q(c(t),e):c(t).userInvalidated=!0,t}var Yt=l.momentProperties=[],ze=!1;function at(e,t){var s,r,a,n=Yt.length;if(T(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),T(t._i)||(e._i=t._i),T(t._f)||(e._f=t._f),T(t._l)||(e._l=t._l),T(t._strict)||(e._strict=t._strict),T(t._tzm)||(e._tzm=t._tzm),T(t._isUTC)||(e._isUTC=t._isUTC),T(t._offset)||(e._offset=t._offset),T(t._pf)||(e._pf=c(t)),T(t._locale)||(e._locale=t._locale),n>0)for(s=0;s<n;s++)r=Yt[s],a=t[r],T(a)||(e[r]=a);return e}function Se(e){at(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ze===!1&&(ze=!0,l.updateOffset(this),ze=!1)}function F(e){return e instanceof Se||e!=null&&e._isAMomentObject!=null}function Pt(e){l.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function N(e,t){var s=!0;return Q(function(){if(l.deprecationHandler!=null&&l.deprecationHandler(null,e),s){var r=[],a,n,i,u=arguments.length;for(n=0;n<u;n++){if(a="",typeof arguments[n]=="object"){a+=`
|
|
7
|
+
[`+n+"] ";for(i in arguments[0])w(arguments[0],i)&&(a+=i+": "+arguments[0][i]+", ");a=a.slice(0,-2)}else a=arguments[n];r.push(a)}Pt(e+`
|
|
8
|
+
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
9
|
+
`+new Error().stack),s=!1}return t.apply(this,arguments)},t)}var pt={};function Rt(e,t){l.deprecationHandler!=null&&l.deprecationHandler(e,t),pt[e]||(Pt(t),pt[e]=!0)}l.suppressDeprecationWarnings=!1;l.deprecationHandler=null;function H(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function vs(e){var t,s;for(s in e)w(e,s)&&(t=e[s],H(t)?this[s]=t:this["_"+s]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Je(e,t){var s=Q({},e),r;for(r in t)w(t,r)&&(se(e[r])&&se(t[r])?(s[r]={},Q(s[r],e[r]),Q(s[r],t[r])):t[r]!=null?s[r]=t[r]:delete s[r]);for(r in e)w(e,r)&&!w(t,r)&&se(e[r])&&(s[r]=Q({},s[r]));return s}function nt(e){e!=null&&this.set(e)}var Qe;Object.keys?Qe=Object.keys:Qe=function(e){var t,s=[];for(t in e)w(e,t)&&s.push(t);return s};var Ys={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ps(e,t,s){var r=this._calendar[e]||this._calendar.sameElse;return H(r)?r.call(t,s):r}function U(e,t,s){var r=""+Math.abs(e),a=t-r.length,n=e>=0;return(n?s?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var it=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ye=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ze={},oe={};function h(e,t,s,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),e&&(oe[e]=a),t&&(oe[t[0]]=function(){return U(a.apply(this,arguments),t[1],t[2])}),s&&(oe[s]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function Os(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Ts(e){var t=e.match(it),s,r;for(s=0,r=t.length;s<r;s++)oe[t[s]]?t[s]=oe[t[s]]:t[s]=Os(t[s]);return function(a){var n="",i;for(i=0;i<r;i++)n+=H(t[i])?t[i].call(a,e):t[i];return n}}function Oe(e,t){return e.isValid()?(t=Ft(t,e.localeData()),Ze[t]=Ze[t]||Ts(t),Ze[t](e)):e.localeData().invalidDate()}function Ft(e,t){var s=5;function r(a){return t.longDateFormat(a)||a}for(Ye.lastIndex=0;s>=0&&Ye.test(e);)e=e.replace(Ye,r),Ye.lastIndex=0,s-=1;return e}var bs={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function xs(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match(it).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Ns="Invalid date";function Ws(){return this._invalidDate}var Ps="%d",Rs=/\d{1,2}/;function Fs(e){return this._ordinal.replace("%d",e)}var Cs={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Ls(e,t,s,r){var a=this._relativeTime[s];return H(a)?a(e,t,s,r):a.replace(/%d/i,e)}function Us(e,t){var s=this._relativeTime[e>0?"future":"past"];return H(s)?s(t):s.replace(/%s/i,t)}var Ot={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function W(e){return typeof e=="string"?Ot[e]||Ot[e.toLowerCase()]:void 0}function ot(e){var t={},s,r;for(r in e)w(e,r)&&(s=W(r),s&&(t[s]=e[r]));return t}var Is={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Hs(e){var t=[],s;for(s in e)w(e,s)&&t.push({unit:s,priority:Is[s]});return t.sort(function(r,a){return r.priority-a.priority}),t}var Ct=/\d/,b=/\d\d/,Lt=/\d{3}/,lt=/\d{4}/,Ce=/[+-]?\d{6}/,S=/\d\d?/,Ut=/\d\d\d\d?/,It=/\d\d\d\d\d\d?/,Le=/\d{1,3}/,ut=/\d{1,4}/,Ue=/[+-]?\d{1,6}/,de=/\d+/,Ie=/[+-]?\d+/,Es=/Z|[+-]\d\d:?\d\d/gi,He=/Z|[+-]\d\d(?::?\d\d)?/gi,As=/[+-]?\d+(\.\d{1,3})?/,De=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,he=/^[1-9]\d?/,dt=/^([1-9]\d|\d)/,xe;xe={};function d(e,t,s){xe[e]=H(t)?t:function(r,a){return r&&s?s:t}}function Vs(e,t){return w(xe,e)?xe[e](t._strict,t._locale):new RegExp(Gs(e))}function Gs(e){return z(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,s,r,a,n){return s||r||a||n}))}function z(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function x(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function m(e){var t=+e,s=0;return t!==0&&isFinite(t)&&(s=x(t)),s}var Xe={};function M(e,t){var s,r=t,a;for(typeof e=="string"&&(e=[e]),$(t)&&(r=function(n,i){i[t]=m(n)}),a=e.length,s=0;s<a;s++)Xe[e[s]]=r}function ve(e,t){M(e,function(s,r,a,n){a._w=a._w||{},t(s,a._w,a,n)})}function js(e,t,s){t!=null&&w(Xe,e)&&Xe[e](t,s._a,s,e)}function Ee(e){return e%4===0&&e%100!==0||e%400===0}var p=0,G=1,L=2,Y=3,P=4,j=5,te=6,zs=7,Zs=8;h("Y",0,0,function(){var e=this.year();return e<=9999?U(e,4):"+"+e});h(0,["YY",2],0,function(){return this.year()%100});h(0,["YYYY",4],0,"year");h(0,["YYYYY",5],0,"year");h(0,["YYYYYY",6,!0],0,"year");d("Y",Ie);d("YY",S,b);d("YYYY",ut,lt);d("YYYYY",Ue,Ce);d("YYYYYY",Ue,Ce);M(["YYYYY","YYYYYY"],p);M("YYYY",function(e,t){t[p]=e.length===2?l.parseTwoDigitYear(e):m(e)});M("YY",function(e,t){t[p]=l.parseTwoDigitYear(e)});M("Y",function(e,t){t[p]=parseInt(e,10)});function _e(e){return Ee(e)?366:365}l.parseTwoDigitYear=function(e){return m(e)+(m(e)>68?1900:2e3)};var Ht=fe("FullYear",!0);function $s(){return Ee(this.year())}function fe(e,t){return function(s){return s!=null?(Et(this,e,s),l.updateOffset(this,t),this):ye(this,e)}}function ye(e,t){if(!e.isValid())return NaN;var s=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?s.getUTCMilliseconds():s.getMilliseconds();case"Seconds":return r?s.getUTCSeconds():s.getSeconds();case"Minutes":return r?s.getUTCMinutes():s.getMinutes();case"Hours":return r?s.getUTCHours():s.getHours();case"Date":return r?s.getUTCDate():s.getDate();case"Day":return r?s.getUTCDay():s.getDay();case"Month":return r?s.getUTCMonth():s.getMonth();case"FullYear":return r?s.getUTCFullYear():s.getFullYear();default:return NaN}}function Et(e,t,s){var r,a,n,i,u;if(!(!e.isValid()||isNaN(s))){switch(r=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?r.setUTCMilliseconds(s):r.setMilliseconds(s));case"Seconds":return void(a?r.setUTCSeconds(s):r.setSeconds(s));case"Minutes":return void(a?r.setUTCMinutes(s):r.setMinutes(s));case"Hours":return void(a?r.setUTCHours(s):r.setHours(s));case"Date":return void(a?r.setUTCDate(s):r.setDate(s));case"FullYear":break;default:return}n=s,i=e.month(),u=e.date(),u=u===29&&i===1&&!Ee(n)?28:u,a?r.setUTCFullYear(n,i,u):r.setFullYear(n,i,u)}}function qs(e){return e=W(e),H(this[e])?this[e]():this}function Bs(e,t){if(typeof e=="object"){e=ot(e);var s=Hs(e),r,a=s.length;for(r=0;r<a;r++)this[s[r].unit](e[s[r].unit])}else if(e=W(e),H(this[e]))return this[e](t);return this}function Js(e,t){return(e%t+t)%t}var v;Array.prototype.indexOf?v=Array.prototype.indexOf:v=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function ht(e,t){if(isNaN(e)||isNaN(t))return NaN;var s=Js(t,12);return e+=(t-s)/12,s===1?Ee(e)?29:28:31-s%7%2}h("M",["MM",2],"Mo",function(){return this.month()+1});h("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});h("MMMM",0,0,function(e){return this.localeData().months(this,e)});d("M",S,he);d("MM",S,b);d("MMM",function(e,t){return t.monthsShortRegex(e)});d("MMMM",function(e,t){return t.monthsRegex(e)});M(["M","MM"],function(e,t){t[G]=m(e)-1});M(["MMM","MMMM"],function(e,t,s,r){var a=s._locale.monthsParse(e,r,s._strict);a!=null?t[G]=a:c(s).invalidMonth=e});var Qs="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),At="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Vt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Xs=De,Ks=De;function er(e,t){return e?R(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Vt).test(t)?"format":"standalone"][e.month()]:R(this._months)?this._months:this._months.standalone}function tr(e,t){return e?R(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Vt.test(t)?"format":"standalone"][e.month()]:R(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function sr(e,t,s){var r,a,n,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)n=I([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(n,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(n,"").toLocaleLowerCase();return s?t==="MMM"?(a=v.call(this._shortMonthsParse,i),a!==-1?a:null):(a=v.call(this._longMonthsParse,i),a!==-1?a:null):t==="MMM"?(a=v.call(this._shortMonthsParse,i),a!==-1?a:(a=v.call(this._longMonthsParse,i),a!==-1?a:null)):(a=v.call(this._longMonthsParse,i),a!==-1?a:(a=v.call(this._shortMonthsParse,i),a!==-1?a:null))}function rr(e,t,s){var r,a,n;if(this._monthsParseExact)return sr.call(this,e,t,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=I([2e3,r]),s&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!s&&!this._monthsParse[r]&&(n="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(n.replace(".",""),"i")),s&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(s&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!s&&this._monthsParse[r].test(e))return r}}function Gt(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=m(t);else if(t=e.localeData().monthsParse(t),!$(t))return e}var s=t,r=e.date();return r=r<29?r:Math.min(r,ht(e.year(),s)),e._isUTC?e._d.setUTCMonth(s,r):e._d.setMonth(s,r),e}function jt(e){return e!=null?(Gt(this,e),l.updateOffset(this,!0),this):ye(this,"Month")}function ar(){return ht(this.year(),this.month())}function nr(e){return this._monthsParseExact?(w(this,"_monthsRegex")||zt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(w(this,"_monthsShortRegex")||(this._monthsShortRegex=Xs),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ir(e){return this._monthsParseExact?(w(this,"_monthsRegex")||zt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(w(this,"_monthsRegex")||(this._monthsRegex=Ks),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function zt(){function e(f,_){return _.length-f.length}var t=[],s=[],r=[],a,n,i,u;for(a=0;a<12;a++)n=I([2e3,a]),i=z(this.monthsShort(n,"")),u=z(this.months(n,"")),t.push(i),s.push(u),r.push(u),r.push(i);t.sort(e),s.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function or(e,t,s,r,a,n,i){var u;return e<100&&e>=0?(u=new Date(e+400,t,s,r,a,n,i),isFinite(u.getFullYear())&&u.setFullYear(e)):u=new Date(e,t,s,r,a,n,i),u}function we(e){var t,s;return e<100&&e>=0?(s=Array.prototype.slice.call(arguments),s[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ne(e,t,s){var r=7+t-s,a=(7+we(e,0,r).getUTCDay()-t)%7;return-a+r-1}function Zt(e,t,s,r,a){var n=(7+s-r)%7,i=Ne(e,r,a),u=1+7*(t-1)+n+i,f,_;return u<=0?(f=e-1,_=_e(f)+u):u>_e(e)?(f=e+1,_=u-_e(e)):(f=e,_=u),{year:f,dayOfYear:_}}function ke(e,t,s){var r=Ne(e.year(),t,s),a=Math.floor((e.dayOfYear()-r-1)/7)+1,n,i;return a<1?(i=e.year()-1,n=a+Z(i,t,s)):a>Z(e.year(),t,s)?(n=a-Z(e.year(),t,s),i=e.year()+1):(i=e.year(),n=a),{week:n,year:i}}function Z(e,t,s){var r=Ne(e,t,s),a=Ne(e+1,t,s);return(_e(e)-r+a)/7}h("w",["ww",2],"wo","week");h("W",["WW",2],"Wo","isoWeek");d("w",S,he);d("ww",S,b);d("W",S,he);d("WW",S,b);ve(["w","ww","W","WW"],function(e,t,s,r){t[r.substr(0,1)]=m(e)});function lr(e){return ke(e,this._week.dow,this._week.doy).week}var ur={dow:0,doy:6};function dr(){return this._week.dow}function hr(){return this._week.doy}function fr(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function cr(e){var t=ke(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}h("d",0,"do","day");h("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});h("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});h("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});h("e",0,0,"weekday");h("E",0,0,"isoWeekday");d("d",S);d("e",S);d("E",S);d("dd",function(e,t){return t.weekdaysMinRegex(e)});d("ddd",function(e,t){return t.weekdaysShortRegex(e)});d("dddd",function(e,t){return t.weekdaysRegex(e)});ve(["dd","ddd","dddd"],function(e,t,s,r){var a=s._locale.weekdaysParse(e,r,s._strict);a!=null?t.d=a:c(s).invalidWeekday=e});ve(["d","e","E"],function(e,t,s,r){t[r]=m(e)});function mr(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function _r(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ft(e,t){return e.slice(t,7).concat(e.slice(0,t))}var yr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),$t="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),wr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),kr=De,Mr=De,gr=De;function Sr(e,t){var s=R(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ft(s,this._week.dow):e?s[e.day()]:s}function Dr(e){return e===!0?ft(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function vr(e){return e===!0?ft(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Yr(e,t,s){var r,a,n,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)n=I([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(n,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(n,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(n,"").toLocaleLowerCase();return s?t==="dddd"?(a=v.call(this._weekdaysParse,i),a!==-1?a:null):t==="ddd"?(a=v.call(this._shortWeekdaysParse,i),a!==-1?a:null):(a=v.call(this._minWeekdaysParse,i),a!==-1?a:null):t==="dddd"?(a=v.call(this._weekdaysParse,i),a!==-1||(a=v.call(this._shortWeekdaysParse,i),a!==-1)?a:(a=v.call(this._minWeekdaysParse,i),a!==-1?a:null)):t==="ddd"?(a=v.call(this._shortWeekdaysParse,i),a!==-1||(a=v.call(this._weekdaysParse,i),a!==-1)?a:(a=v.call(this._minWeekdaysParse,i),a!==-1?a:null)):(a=v.call(this._minWeekdaysParse,i),a!==-1||(a=v.call(this._weekdaysParse,i),a!==-1)?a:(a=v.call(this._shortWeekdaysParse,i),a!==-1?a:null))}function pr(e,t,s){var r,a,n;if(this._weekdaysParseExact)return Yr.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=I([2e3,1]).day(r),s&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(n="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(n.replace(".",""),"i")),s&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(s&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(s&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!s&&this._weekdaysParse[r].test(e))return r}}function Or(e){if(!this.isValid())return e!=null?this:NaN;var t=ye(this,"Day");return e!=null?(e=mr(e,this.localeData()),this.add(e-t,"d")):t}function Tr(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function br(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=_r(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function xr(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||ct.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(w(this,"_weekdaysRegex")||(this._weekdaysRegex=kr),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Nr(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||ct.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(w(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Mr),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Wr(e){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||ct.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(w(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=gr),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function ct(){function e(O,E){return E.length-O.length}var t=[],s=[],r=[],a=[],n,i,u,f,_;for(n=0;n<7;n++)i=I([2e3,1]).day(n),u=z(this.weekdaysMin(i,"")),f=z(this.weekdaysShort(i,"")),_=z(this.weekdays(i,"")),t.push(u),s.push(f),r.push(_),a.push(u),a.push(f),a.push(_);t.sort(e),s.sort(e),r.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function mt(){return this.hours()%12||12}function Pr(){return this.hours()||24}h("H",["HH",2],0,"hour");h("h",["hh",2],0,mt);h("k",["kk",2],0,Pr);h("hmm",0,0,function(){return""+mt.apply(this)+U(this.minutes(),2)});h("hmmss",0,0,function(){return""+mt.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)});h("Hmm",0,0,function(){return""+this.hours()+U(this.minutes(),2)});h("Hmmss",0,0,function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)});function qt(e,t){h(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}qt("a",!0);qt("A",!1);function Bt(e,t){return t._meridiemParse}d("a",Bt);d("A",Bt);d("H",S,dt);d("h",S,he);d("k",S,he);d("HH",S,b);d("hh",S,b);d("kk",S,b);d("hmm",Ut);d("hmmss",It);d("Hmm",Ut);d("Hmmss",It);M(["H","HH"],Y);M(["k","kk"],function(e,t,s){var r=m(e);t[Y]=r===24?0:r});M(["a","A"],function(e,t,s){s._isPm=s._locale.isPM(e),s._meridiem=e});M(["h","hh"],function(e,t,s){t[Y]=m(e),c(s).bigHour=!0});M("hmm",function(e,t,s){var r=e.length-2;t[Y]=m(e.substr(0,r)),t[P]=m(e.substr(r)),c(s).bigHour=!0});M("hmmss",function(e,t,s){var r=e.length-4,a=e.length-2;t[Y]=m(e.substr(0,r)),t[P]=m(e.substr(r,2)),t[j]=m(e.substr(a)),c(s).bigHour=!0});M("Hmm",function(e,t,s){var r=e.length-2;t[Y]=m(e.substr(0,r)),t[P]=m(e.substr(r))});M("Hmmss",function(e,t,s){var r=e.length-4,a=e.length-2;t[Y]=m(e.substr(0,r)),t[P]=m(e.substr(r,2)),t[j]=m(e.substr(a))});function Rr(e){return(e+"").toLowerCase().charAt(0)==="p"}var Fr=/[ap]\.?m?\.?/i,Cr=fe("Hours",!0);function Lr(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var Jt={calendar:Ys,longDateFormat:bs,invalidDate:Ns,ordinal:Ps,dayOfMonthOrdinalParse:Rs,relativeTime:Cs,months:Qs,monthsShort:At,week:ur,weekdays:yr,weekdaysMin:wr,weekdaysShort:$t,meridiemParse:Fr},D={},ce={},Me;function Ur(e,t){var s,r=Math.min(e.length,t.length);for(s=0;s<r;s+=1)if(e[s]!==t[s])return s;return r}function Tt(e){return e&&e.toLowerCase().replace("_","-")}function Ir(e){for(var t=0,s,r,a,n;t<e.length;){for(n=Tt(e[t]).split("-"),s=n.length,r=Tt(e[t+1]),r=r?r.split("-"):null;s>0;){if(a=Ae(n.slice(0,s).join("-")),a)return a;if(r&&r.length>=s&&Ur(n,r)>=s-1)break;s--}t++}return Me}function Hr(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Ae(e){var t=null,s;if(D[e]===void 0&&typeof module<"u"&&module&&module.exports&&Hr(e))try{t=Me._abbr,s=require,s("./locale/"+e),K(t)}catch{D[e]=null}return D[e]}function K(e,t){var s;return e&&(T(t)?s=q(e):s=_t(e,t),s?Me=s:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Me._abbr}function _t(e,t){if(t!==null){var s,r=Jt;if(t.abbr=e,D[e]!=null)Rt("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=D[e]._config;else if(t.parentLocale!=null)if(D[t.parentLocale]!=null)r=D[t.parentLocale]._config;else if(s=Ae(t.parentLocale),s!=null)r=s._config;else return ce[t.parentLocale]||(ce[t.parentLocale]=[]),ce[t.parentLocale].push({name:e,config:t}),null;return D[e]=new nt(Je(r,t)),ce[e]&&ce[e].forEach(function(a){_t(a.name,a.config)}),K(e),D[e]}else return delete D[e],null}function Er(e,t){if(t!=null){var s,r,a=Jt;D[e]!=null&&D[e].parentLocale!=null?D[e].set(Je(D[e]._config,t)):(r=Ae(e),r!=null&&(a=r._config),t=Je(a,t),r==null&&(t.abbr=e),s=new nt(t),s.parentLocale=D[e],D[e]=s),K(e)}else D[e]!=null&&(D[e].parentLocale!=null?(D[e]=D[e].parentLocale,e===K()&&K(e)):D[e]!=null&&delete D[e]);return D[e]}function q(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Me;if(!R(e)){if(t=Ae(e),t)return t;e=[e]}return Ir(e)}function Ar(){return Qe(D)}function yt(e){var t,s=e._a;return s&&c(e).overflow===-2&&(t=s[G]<0||s[G]>11?G:s[L]<1||s[L]>ht(s[p],s[G])?L:s[Y]<0||s[Y]>24||s[Y]===24&&(s[P]!==0||s[j]!==0||s[te]!==0)?Y:s[P]<0||s[P]>59?P:s[j]<0||s[j]>59?j:s[te]<0||s[te]>999?te:-1,c(e)._overflowDayOfYear&&(t<p||t>L)&&(t=L),c(e)._overflowWeeks&&t===-1&&(t=zs),c(e)._overflowWeekday&&t===-1&&(t=Zs),c(e).overflow=t),e}var Vr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Gr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,jr=/Z|[+-]\d\d(?::?\d\d)?/,pe=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],$e=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],zr=/^\/?Date\((-?\d+)/i,Zr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,$r={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Qt(e){var t,s,r=e._i,a=Vr.exec(r)||Gr.exec(r),n,i,u,f,_=pe.length,O=$e.length;if(a){for(c(e).iso=!0,t=0,s=_;t<s;t++)if(pe[t][1].exec(a[1])){i=pe[t][0],n=pe[t][2]!==!1;break}if(i==null){e._isValid=!1;return}if(a[3]){for(t=0,s=O;t<s;t++)if($e[t][1].exec(a[3])){u=(a[2]||" ")+$e[t][0];break}if(u==null){e._isValid=!1;return}}if(!n&&u!=null){e._isValid=!1;return}if(a[4])if(jr.exec(a[4]))f="Z";else{e._isValid=!1;return}e._f=i+(u||"")+(f||""),kt(e)}else e._isValid=!1}function qr(e,t,s,r,a,n){var i=[Br(e),At.indexOf(t),parseInt(s,10),parseInt(r,10),parseInt(a,10)];return n&&i.push(parseInt(n,10)),i}function Br(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Jr(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Qr(e,t,s){if(e){var r=$t.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(r!==a)return c(s).weekdayMismatch=!0,s._isValid=!1,!1}return!0}function Xr(e,t,s){if(e)return $r[e];if(t)return 0;var r=parseInt(s,10),a=r%100,n=(r-a)/100;return n*60+a}function Xt(e){var t=Zr.exec(Jr(e._i)),s;if(t){if(s=qr(t[4],t[3],t[2],t[5],t[6],t[7]),!Qr(t[1],s,e))return;e._a=s,e._tzm=Xr(t[8],t[9],t[10]),e._d=we.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),c(e).rfc2822=!0}else e._isValid=!1}function Kr(e){var t=zr.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Qt(e),e._isValid===!1)delete e._isValid;else return;if(Xt(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:l.createFromInputFallback(e)}l.createFromInputFallback=N("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function ne(e,t,s){return e??t??s}function ea(e){var t=new Date(l.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function wt(e){var t,s,r=[],a,n,i;if(!e._d){for(a=ea(e),e._w&&e._a[L]==null&&e._a[G]==null&&ta(e),e._dayOfYear!=null&&(i=ne(e._a[p],a[p]),(e._dayOfYear>_e(i)||e._dayOfYear===0)&&(c(e)._overflowDayOfYear=!0),s=we(i,0,e._dayOfYear),e._a[G]=s.getUTCMonth(),e._a[L]=s.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=a[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Y]===24&&e._a[P]===0&&e._a[j]===0&&e._a[te]===0&&(e._nextDay=!0,e._a[Y]=0),e._d=(e._useUTC?we:or).apply(null,r),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Y]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==n&&(c(e).weekdayMismatch=!0)}}function ta(e){var t,s,r,a,n,i,u,f,_;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(n=1,i=4,s=ne(t.GG,e._a[p],ke(g(),1,4).year),r=ne(t.W,1),a=ne(t.E,1),(a<1||a>7)&&(f=!0)):(n=e._locale._week.dow,i=e._locale._week.doy,_=ke(g(),n,i),s=ne(t.gg,e._a[p],_.year),r=ne(t.w,_.week),t.d!=null?(a=t.d,(a<0||a>6)&&(f=!0)):t.e!=null?(a=t.e+n,(t.e<0||t.e>6)&&(f=!0)):a=n),r<1||r>Z(s,n,i)?c(e)._overflowWeeks=!0:f!=null?c(e)._overflowWeekday=!0:(u=Zt(s,r,a,n,i),e._a[p]=u.year,e._dayOfYear=u.dayOfYear)}l.ISO_8601=function(){};l.RFC_2822=function(){};function kt(e){if(e._f===l.ISO_8601){Qt(e);return}if(e._f===l.RFC_2822){Xt(e);return}e._a=[],c(e).empty=!0;var t=""+e._i,s,r,a,n,i,u=t.length,f=0,_,O;for(a=Ft(e._f,e._locale).match(it)||[],O=a.length,s=0;s<O;s++)n=a[s],r=(t.match(Vs(n,e))||[])[0],r&&(i=t.substr(0,t.indexOf(r)),i.length>0&&c(e).unusedInput.push(i),t=t.slice(t.indexOf(r)+r.length),f+=r.length),oe[n]?(r?c(e).empty=!1:c(e).unusedTokens.push(n),js(n,r,e)):e._strict&&!r&&c(e).unusedTokens.push(n);c(e).charsLeftOver=u-f,t.length>0&&c(e).unusedInput.push(t),e._a[Y]<=12&&c(e).bigHour===!0&&e._a[Y]>0&&(c(e).bigHour=void 0),c(e).parsedDateParts=e._a.slice(0),c(e).meridiem=e._meridiem,e._a[Y]=sa(e._locale,e._a[Y],e._meridiem),_=c(e).era,_!==null&&(e._a[p]=e._locale.erasConvertYear(_,e._a[p])),wt(e),yt(e)}function sa(e,t,s){var r;return s==null?t:e.meridiemHour!=null?e.meridiemHour(t,s):(e.isPM!=null&&(r=e.isPM(s),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function ra(e){var t,s,r,a,n,i,u=!1,f=e._f.length;if(f===0){c(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<f;a++)n=0,i=!1,t=at({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],kt(t),rt(t)&&(i=!0),n+=c(t).charsLeftOver,n+=c(t).unusedTokens.length*10,c(t).score=n,u?n<r&&(r=n,s=t):(r==null||n<r||i)&&(r=n,s=t,i&&(u=!0));Q(e,s||t)}function aa(e){if(!e._d){var t=ot(e._i),s=t.day===void 0?t.date:t.day;e._a=Wt([t.year,t.month,s,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),wt(e)}}function na(e){var t=new Se(yt(Kt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Kt(e){var t=e._i,s=e._f;return e._locale=e._locale||q(e._l),t===null||s===void 0&&t===""?Fe({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),F(t)?new Se(yt(t)):(ge(t)?e._d=t:R(s)?ra(e):s?kt(e):ia(e),rt(e)||(e._d=null),e))}function ia(e){var t=e._i;T(t)?e._d=new Date(l.now()):ge(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Kr(e):R(t)?(e._a=Wt(t.slice(0),function(s){return parseInt(s,10)}),wt(e)):se(t)?aa(e):$(t)?e._d=new Date(t):l.createFromInputFallback(e)}function es(e,t,s,r,a){var n={};return(t===!0||t===!1)&&(r=t,t=void 0),(s===!0||s===!1)&&(r=s,s=void 0),(se(e)&&st(e)||R(e)&&e.length===0)&&(e=void 0),n._isAMomentObject=!0,n._useUTC=n._isUTC=a,n._l=s,n._i=e,n._f=t,n._strict=r,na(n)}function g(e,t,s,r){return es(e,t,s,r,!1)}var oa=N("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=g.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Fe()}),la=N("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=g.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Fe()});function ts(e,t){var s,r;if(t.length===1&&R(t[0])&&(t=t[0]),!t.length)return g();for(s=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](s))&&(s=t[r]);return s}function ua(){var e=[].slice.call(arguments,0);return ts("isBefore",e)}function da(){var e=[].slice.call(arguments,0);return ts("isAfter",e)}var ha=function(){return Date.now?Date.now():+new Date},me=["year","quarter","month","week","day","hour","minute","second","millisecond"];function fa(e){var t,s=!1,r,a=me.length;for(t in e)if(w(e,t)&&!(v.call(me,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<a;++r)if(e[me[r]]){if(s)return!1;parseFloat(e[me[r]])!==m(e[me[r]])&&(s=!0)}return!0}function ca(){return this._isValid}function ma(){return C(NaN)}function Ve(e){var t=ot(e),s=t.year||0,r=t.quarter||0,a=t.month||0,n=t.week||t.isoWeek||0,i=t.day||0,u=t.hour||0,f=t.minute||0,_=t.second||0,O=t.millisecond||0;this._isValid=fa(t),this._milliseconds=+O+_*1e3+f*6e4+u*1e3*60*60,this._days=+i+n*7,this._months=+a+r*3+s*12,this._data={},this._locale=q(),this._bubble()}function Te(e){return e instanceof Ve}function Ke(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function _a(e,t,s){var r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),n=0,i;for(i=0;i<r;i++)(s&&e[i]!==t[i]||!s&&m(e[i])!==m(t[i]))&&n++;return n+a}function ss(e,t){h(e,0,0,function(){var s=this.utcOffset(),r="+";return s<0&&(s=-s,r="-"),r+U(~~(s/60),2)+t+U(~~s%60,2)})}ss("Z",":");ss("ZZ","");d("Z",He);d("ZZ",He);M(["Z","ZZ"],function(e,t,s){s._useUTC=!0,s._tzm=Mt(He,e)});var ya=/([\+\-]|\d\d)/gi;function Mt(e,t){var s=(t||"").match(e),r,a,n;return s===null?null:(r=s[s.length-1]||[],a=(r+"").match(ya)||["-",0,0],n=+(a[1]*60)+m(a[2]),n===0?0:a[0]==="+"?n:-n)}function gt(e,t){var s,r;return t._isUTC?(s=t.clone(),r=(F(e)||ge(e)?e.valueOf():g(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+r),l.updateOffset(s,!1),s):g(e).local()}function et(e){return-Math.round(e._d.getTimezoneOffset())}l.updateOffset=function(){};function wa(e,t,s){var r=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=Mt(He,e),e===null)return this}else Math.abs(e)<16&&!s&&(e=e*60);return!this._isUTC&&t&&(a=et(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),r!==e&&(!t||this._changeInProgress?ns(this,C(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,l.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:et(this)}function ka(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Ma(e){return this.utcOffset(0,e)}function ga(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(et(this),"m")),this}function Sa(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=Mt(Es,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Da(e){return this.isValid()?(e=e?g(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function va(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ya(){if(!T(this._isDSTShifted))return this._isDSTShifted;var e={},t;return at(e,this),e=Kt(e),e._a?(t=e._isUTC?I(e._a):g(e._a),this._isDSTShifted=this.isValid()&&_a(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function pa(){return this.isValid()?!this._isUTC:!1}function Oa(){return this.isValid()?this._isUTC:!1}function rs(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Ta=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ba=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function C(e,t){var s=e,r=null,a,n,i;return Te(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:$(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(r=Ta.exec(e))?(a=r[1]==="-"?-1:1,s={y:0,d:m(r[L])*a,h:m(r[Y])*a,m:m(r[P])*a,s:m(r[j])*a,ms:m(Ke(r[te]*1e3))*a}):(r=ba.exec(e))?(a=r[1]==="-"?-1:1,s={y:ee(r[2],a),M:ee(r[3],a),w:ee(r[4],a),d:ee(r[5],a),h:ee(r[6],a),m:ee(r[7],a),s:ee(r[8],a)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(i=xa(g(s.from),g(s.to)),s={},s.ms=i.milliseconds,s.M=i.months),n=new Ve(s),Te(e)&&w(e,"_locale")&&(n._locale=e._locale),Te(e)&&w(e,"_isValid")&&(n._isValid=e._isValid),n}C.fn=Ve.prototype;C.invalid=ma;function ee(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function bt(e,t){var s={};return s.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function xa(e,t){var s;return e.isValid()&&t.isValid()?(t=gt(t,e),e.isBefore(t)?s=bt(e,t):(s=bt(t,e),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function as(e,t){return function(s,r){var a,n;return r!==null&&!isNaN(+r)&&(Rt(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=s,s=r,r=n),a=C(s,r),ns(this,a,e),this}}function ns(e,t,s,r){var a=t._milliseconds,n=Ke(t._days),i=Ke(t._months);e.isValid()&&(r=r??!0,i&&Gt(e,ye(e,"Month")+i*s),n&&Et(e,"Date",ye(e,"Date")+n*s),a&&e._d.setTime(e._d.valueOf()+a*s),r&&l.updateOffset(e,n||i))}var Na=as(1,"add"),Wa=as(-1,"subtract");function is(e){return typeof e=="string"||e instanceof String}function Pa(e){return F(e)||ge(e)||is(e)||$(e)||Fa(e)||Ra(e)||e===null||e===void 0}function Ra(e){var t=se(e)&&!st(e),s=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,n,i=r.length;for(a=0;a<i;a+=1)n=r[a],s=s||w(e,n);return t&&s}function Fa(e){var t=R(e),s=!1;return t&&(s=e.filter(function(r){return!$(r)&&is(e)}).length===0),t&&s}function Ca(e){var t=se(e)&&!st(e),s=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,n;for(a=0;a<r.length;a+=1)n=r[a],s=s||w(e,n);return t&&s}function La(e,t){var s=e.diff(t,"days",!0);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function Ua(e,t){arguments.length===1&&(arguments[0]?Pa(arguments[0])?(e=arguments[0],t=void 0):Ca(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var s=e||g(),r=gt(s,this).startOf("day"),a=l.calendarFormat(this,r)||"sameElse",n=t&&(H(t[a])?t[a].call(this,s):t[a]);return this.format(n||this.localeData().calendar(a,this,g(s)))}function Ia(){return new Se(this)}function Ha(e,t){var s=F(e)?e:g(e);return this.isValid()&&s.isValid()?(t=W(t)||"millisecond",t==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(t).valueOf()):!1}function Ea(e,t){var s=F(e)?e:g(e);return this.isValid()&&s.isValid()?(t=W(t)||"millisecond",t==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(t).valueOf()<s.valueOf()):!1}function Aa(e,t,s,r){var a=F(e)?e:g(e),n=F(t)?t:g(t);return this.isValid()&&a.isValid()&&n.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(a,s):!this.isBefore(a,s))&&(r[1]===")"?this.isBefore(n,s):!this.isAfter(n,s))):!1}function Va(e,t){var s=F(e)?e:g(e),r;return this.isValid()&&s.isValid()?(t=W(t)||"millisecond",t==="millisecond"?this.valueOf()===s.valueOf():(r=s.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function Ga(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function ja(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function za(e,t,s){var r,a,n;if(!this.isValid())return NaN;if(r=gt(e,this),!r.isValid())return NaN;switch(a=(r.utcOffset()-this.utcOffset())*6e4,t=W(t),t){case"year":n=be(this,r)/12;break;case"month":n=be(this,r);break;case"quarter":n=be(this,r)/3;break;case"second":n=(this-r)/1e3;break;case"minute":n=(this-r)/6e4;break;case"hour":n=(this-r)/36e5;break;case"day":n=(this-r-a)/864e5;break;case"week":n=(this-r-a)/6048e5;break;default:n=this-r}return s?n:x(n)}function be(e,t){if(e.date()<t.date())return-be(t,e);var s=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(s,"months"),a,n;return t-r<0?(a=e.clone().add(s-1,"months"),n=(t-r)/(r-a)):(a=e.clone().add(s+1,"months"),n=(t-r)/(a-r)),-(s+n)||0}l.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";l.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Za(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function $a(e){if(!this.isValid())return null;var t=e!==!0,s=t?this.clone().utc():this;return s.year()<0||s.year()>9999?Oe(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):H(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Oe(s,"Z")):Oe(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function qa(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",s,r,a,n;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),s="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",n=t+'[")]',this.format(s+r+a+n)}function Ba(e){e||(e=this.isUtc()?l.defaultFormatUtc:l.defaultFormat);var t=Oe(this,e);return this.localeData().postformat(t)}function Ja(e,t){return this.isValid()&&(F(e)&&e.isValid()||g(e).isValid())?C({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Qa(e){return this.from(g(),e)}function Xa(e,t){return this.isValid()&&(F(e)&&e.isValid()||g(e).isValid())?C({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ka(e){return this.to(g(),e)}function os(e){var t;return e===void 0?this._locale._abbr:(t=q(e),t!=null&&(this._locale=t),this)}var ls=N("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function us(){return this._locale}var We=1e3,le=60*We,Pe=60*le,ds=(365*400+97)*24*Pe;function ue(e,t){return(e%t+t)%t}function hs(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-ds:new Date(e,t,s).valueOf()}function fs(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-ds:Date.UTC(e,t,s)}function en(e){var t,s;if(e=W(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?fs:hs,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ue(t+(this._isUTC?0:this.utcOffset()*le),Pe);break;case"minute":t=this._d.valueOf(),t-=ue(t,le);break;case"second":t=this._d.valueOf(),t-=ue(t,We);break}return this._d.setTime(t),l.updateOffset(this,!0),this}function tn(e){var t,s;if(e=W(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?fs:hs,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Pe-ue(t+(this._isUTC?0:this.utcOffset()*le),Pe)-1;break;case"minute":t=this._d.valueOf(),t+=le-ue(t,le)-1;break;case"second":t=this._d.valueOf(),t+=We-ue(t,We)-1;break}return this._d.setTime(t),l.updateOffset(this,!0),this}function sn(){return this._d.valueOf()-(this._offset||0)*6e4}function rn(){return Math.floor(this.valueOf()/1e3)}function an(){return new Date(this.valueOf())}function nn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function on(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ln(){return this.isValid()?this.toISOString():null}function un(){return rt(this)}function dn(){return Q({},c(this))}function hn(){return c(this).overflow}function fn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}h("N",0,0,"eraAbbr");h("NN",0,0,"eraAbbr");h("NNN",0,0,"eraAbbr");h("NNNN",0,0,"eraName");h("NNNNN",0,0,"eraNarrow");h("y",["y",1],"yo","eraYear");h("y",["yy",2],0,"eraYear");h("y",["yyy",3],0,"eraYear");h("y",["yyyy",4],0,"eraYear");d("N",St);d("NN",St);d("NNN",St);d("NNNN",vn);d("NNNNN",Yn);M(["N","NN","NNN","NNNN","NNNNN"],function(e,t,s,r){var a=s._locale.erasParse(e,r,s._strict);a?c(s).era=a:c(s).invalidEra=e});d("y",de);d("yy",de);d("yyy",de);d("yyyy",de);d("yo",pn);M(["y","yy","yyy","yyyy"],p);M(["yo"],function(e,t,s,r){var a;s._locale._eraYearOrdinalRegex&&(a=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[p]=s._locale.eraYearOrdinalParse(e,a):t[p]=parseInt(e,10)});function cn(e,t){var s,r,a,n=this._eras||q("en")._eras;for(s=0,r=n.length;s<r;++s){switch(typeof n[s].since){case"string":a=l(n[s].since).startOf("day"),n[s].since=a.valueOf();break}switch(typeof n[s].until){case"undefined":n[s].until=1/0;break;case"string":a=l(n[s].until).startOf("day").valueOf(),n[s].until=a.valueOf();break}}return n}function mn(e,t,s){var r,a,n=this.eras(),i,u,f;for(e=e.toUpperCase(),r=0,a=n.length;r<a;++r)if(i=n[r].name.toUpperCase(),u=n[r].abbr.toUpperCase(),f=n[r].narrow.toUpperCase(),s)switch(t){case"N":case"NN":case"NNN":if(u===e)return n[r];break;case"NNNN":if(i===e)return n[r];break;case"NNNNN":if(f===e)return n[r];break}else if([i,u,f].indexOf(e)>=0)return n[r]}function _n(e,t){var s=e.since<=e.until?1:-1;return t===void 0?l(e.since).year():l(e.since).year()+(t-e.offset)*s}function yn(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].name;return""}function wn(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].narrow;return""}function kn(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(s=this.clone().startOf("day").valueOf(),r[e].since<=s&&s<=r[e].until||r[e].until<=s&&s<=r[e].since)return r[e].abbr;return""}function Mn(){var e,t,s,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(s=a[e].since<=a[e].until?1:-1,r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-l(a[e].since).year())*s+a[e].offset;return this.year()}function gn(e){return w(this,"_erasNameRegex")||Dt.call(this),e?this._erasNameRegex:this._erasRegex}function Sn(e){return w(this,"_erasAbbrRegex")||Dt.call(this),e?this._erasAbbrRegex:this._erasRegex}function Dn(e){return w(this,"_erasNarrowRegex")||Dt.call(this),e?this._erasNarrowRegex:this._erasRegex}function St(e,t){return t.erasAbbrRegex(e)}function vn(e,t){return t.erasNameRegex(e)}function Yn(e,t){return t.erasNarrowRegex(e)}function pn(e,t){return t._eraYearOrdinalRegex||de}function Dt(){var e=[],t=[],s=[],r=[],a,n,i,u,f,_=this.eras();for(a=0,n=_.length;a<n;++a)i=z(_[a].name),u=z(_[a].abbr),f=z(_[a].narrow),t.push(i),e.push(u),s.push(f),r.push(i),r.push(u),r.push(f);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}h(0,["gg",2],0,function(){return this.weekYear()%100});h(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ge(e,t){h(0,[e,e.length],0,t)}Ge("gggg","weekYear");Ge("ggggg","weekYear");Ge("GGGG","isoWeekYear");Ge("GGGGG","isoWeekYear");d("G",Ie);d("g",Ie);d("GG",S,b);d("gg",S,b);d("GGGG",ut,lt);d("gggg",ut,lt);d("GGGGG",Ue,Ce);d("ggggg",Ue,Ce);ve(["gggg","ggggg","GGGG","GGGGG"],function(e,t,s,r){t[r.substr(0,2)]=m(e)});ve(["gg","GG"],function(e,t,s,r){t[r]=l.parseTwoDigitYear(e)});function On(e){return cs.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Tn(e){return cs.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function bn(){return Z(this.year(),1,4)}function xn(){return Z(this.isoWeekYear(),1,4)}function Nn(){var e=this.localeData()._week;return Z(this.year(),e.dow,e.doy)}function Wn(){var e=this.localeData()._week;return Z(this.weekYear(),e.dow,e.doy)}function cs(e,t,s,r,a){var n;return e==null?ke(this,r,a).year:(n=Z(e,r,a),t>n&&(t=n),Pn.call(this,e,t,s,r,a))}function Pn(e,t,s,r,a){var n=Zt(e,t,s,r,a),i=we(n.year,0,n.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}h("Q",0,"Qo","quarter");d("Q",Ct);M("Q",function(e,t){t[G]=(m(e)-1)*3});function Rn(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}h("D",["DD",2],"Do","date");d("D",S,he);d("DD",S,b);d("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});M(["D","DD"],L);M("Do",function(e,t){t[L]=m(e.match(S)[0])});var ms=fe("Date",!0);h("DDD",["DDDD",3],"DDDo","dayOfYear");d("DDD",Le);d("DDDD",Lt);M(["DDD","DDDD"],function(e,t,s){s._dayOfYear=m(e)});function Fn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}h("m",["mm",2],0,"minute");d("m",S,dt);d("mm",S,b);M(["m","mm"],P);var Cn=fe("Minutes",!1);h("s",["ss",2],0,"second");d("s",S,dt);d("ss",S,b);M(["s","ss"],j);var Ln=fe("Seconds",!1);h("S",0,0,function(){return~~(this.millisecond()/100)});h(0,["SS",2],0,function(){return~~(this.millisecond()/10)});h(0,["SSS",3],0,"millisecond");h(0,["SSSS",4],0,function(){return this.millisecond()*10});h(0,["SSSSS",5],0,function(){return this.millisecond()*100});h(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});h(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});h(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});h(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});d("S",Le,Ct);d("SS",Le,b);d("SSS",Le,Lt);var X,_s;for(X="SSSS";X.length<=9;X+="S")d(X,de);function Un(e,t){t[te]=m(("0."+e)*1e3)}for(X="S";X.length<=9;X+="S")M(X,Un);_s=fe("Milliseconds",!1);h("z",0,0,"zoneAbbr");h("zz",0,0,"zoneName");function In(){return this._isUTC?"UTC":""}function Hn(){return this._isUTC?"Coordinated Universal Time":""}var o=Se.prototype;o.add=Na;o.calendar=Ua;o.clone=Ia;o.diff=za;o.endOf=tn;o.format=Ba;o.from=Ja;o.fromNow=Qa;o.to=Xa;o.toNow=Ka;o.get=qs;o.invalidAt=hn;o.isAfter=Ha;o.isBefore=Ea;o.isBetween=Aa;o.isSame=Va;o.isSameOrAfter=Ga;o.isSameOrBefore=ja;o.isValid=un;o.lang=ls;o.locale=os;o.localeData=us;o.max=la;o.min=oa;o.parsingFlags=dn;o.set=Bs;o.startOf=en;o.subtract=Wa;o.toArray=nn;o.toObject=on;o.toDate=an;o.toISOString=$a;o.inspect=qa;typeof Symbol<"u"&&Symbol.for!=null&&(o[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});o.toJSON=ln;o.toString=Za;o.unix=rn;o.valueOf=sn;o.creationData=fn;o.eraName=yn;o.eraNarrow=wn;o.eraAbbr=kn;o.eraYear=Mn;o.year=Ht;o.isLeapYear=$s;o.weekYear=On;o.isoWeekYear=Tn;o.quarter=o.quarters=Rn;o.month=jt;o.daysInMonth=ar;o.week=o.weeks=fr;o.isoWeek=o.isoWeeks=cr;o.weeksInYear=Nn;o.weeksInWeekYear=Wn;o.isoWeeksInYear=bn;o.isoWeeksInISOWeekYear=xn;o.date=ms;o.day=o.days=Or;o.weekday=Tr;o.isoWeekday=br;o.dayOfYear=Fn;o.hour=o.hours=Cr;o.minute=o.minutes=Cn;o.second=o.seconds=Ln;o.millisecond=o.milliseconds=_s;o.utcOffset=wa;o.utc=Ma;o.local=ga;o.parseZone=Sa;o.hasAlignedHourOffset=Da;o.isDST=va;o.isLocal=pa;o.isUtcOffset=Oa;o.isUtc=rs;o.isUTC=rs;o.zoneAbbr=In;o.zoneName=Hn;o.dates=N("dates accessor is deprecated. Use date instead.",ms);o.months=N("months accessor is deprecated. Use month instead",jt);o.years=N("years accessor is deprecated. Use year instead",Ht);o.zone=N("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ka);o.isDSTShifted=N("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ya);function En(e){return g(e*1e3)}function An(){return g.apply(null,arguments).parseZone()}function ys(e){return e}var k=nt.prototype;k.calendar=ps;k.longDateFormat=xs;k.invalidDate=Ws;k.ordinal=Fs;k.preparse=ys;k.postformat=ys;k.relativeTime=Ls;k.pastFuture=Us;k.set=vs;k.eras=cn;k.erasParse=mn;k.erasConvertYear=_n;k.erasAbbrRegex=Sn;k.erasNameRegex=gn;k.erasNarrowRegex=Dn;k.months=er;k.monthsShort=tr;k.monthsParse=rr;k.monthsRegex=ir;k.monthsShortRegex=nr;k.week=lr;k.firstDayOfYear=hr;k.firstDayOfWeek=dr;k.weekdays=Sr;k.weekdaysMin=vr;k.weekdaysShort=Dr;k.weekdaysParse=pr;k.weekdaysRegex=xr;k.weekdaysShortRegex=Nr;k.weekdaysMinRegex=Wr;k.isPM=Rr;k.meridiem=Lr;function Re(e,t,s,r){var a=q(),n=I().set(r,t);return a[s](n,e)}function ws(e,t,s){if($(e)&&(t=e,e=void 0),e=e||"",t!=null)return Re(e,t,s,"month");var r,a=[];for(r=0;r<12;r++)a[r]=Re(e,r,s,"month");return a}function vt(e,t,s,r){typeof e=="boolean"?($(t)&&(s=t,t=void 0),t=t||""):(t=e,s=t,e=!1,$(t)&&(s=t,t=void 0),t=t||"");var a=q(),n=e?a._week.dow:0,i,u=[];if(s!=null)return Re(t,(s+n)%7,r,"day");for(i=0;i<7;i++)u[i]=Re(t,(i+n)%7,r,"day");return u}function Vn(e,t){return ws(e,t,"months")}function Gn(e,t){return ws(e,t,"monthsShort")}function jn(e,t,s){return vt(e,t,s,"weekdays")}function zn(e,t,s){return vt(e,t,s,"weekdaysShort")}function Zn(e,t,s){return vt(e,t,s,"weekdaysMin")}K("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,s=m(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+s}});l.lang=N("moment.lang is deprecated. Use moment.locale instead.",K);l.langData=N("moment.langData is deprecated. Use moment.localeData instead.",q);var A=Math.abs;function $n(){var e=this._data;return this._milliseconds=A(this._milliseconds),this._days=A(this._days),this._months=A(this._months),e.milliseconds=A(e.milliseconds),e.seconds=A(e.seconds),e.minutes=A(e.minutes),e.hours=A(e.hours),e.months=A(e.months),e.years=A(e.years),this}function ks(e,t,s,r){var a=C(t,s);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function qn(e,t){return ks(this,e,t,1)}function Bn(e,t){return ks(this,e,t,-1)}function xt(e){return e<0?Math.floor(e):Math.ceil(e)}function Jn(){var e=this._milliseconds,t=this._days,s=this._months,r=this._data,a,n,i,u,f;return e>=0&&t>=0&&s>=0||e<=0&&t<=0&&s<=0||(e+=xt(tt(s)+t)*864e5,t=0,s=0),r.milliseconds=e%1e3,a=x(e/1e3),r.seconds=a%60,n=x(a/60),r.minutes=n%60,i=x(n/60),r.hours=i%24,t+=x(i/24),f=x(Ms(t)),s+=f,t-=xt(tt(f)),u=x(s/12),s%=12,r.days=t,r.months=s,r.years=u,this}function Ms(e){return e*4800/146097}function tt(e){return e*146097/4800}function Qn(e){if(!this.isValid())return NaN;var t,s,r=this._milliseconds;if(e=W(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,s=this._months+Ms(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(tt(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function B(e){return function(){return this.as(e)}}var gs=B("ms"),Xn=B("s"),Kn=B("m"),ei=B("h"),ti=B("d"),si=B("w"),ri=B("M"),ai=B("Q"),ni=B("y"),ii=gs;function oi(){return C(this)}function li(e){return e=W(e),this.isValid()?this[e+"s"]():NaN}function re(e){return function(){return this.isValid()?this._data[e]:NaN}}var ui=re("milliseconds"),di=re("seconds"),hi=re("minutes"),fi=re("hours"),ci=re("days"),mi=re("months"),_i=re("years");function yi(){return x(this.days()/7)}var V=Math.round,ie={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function wi(e,t,s,r,a){return a.relativeTime(t||1,!!s,e,r)}function ki(e,t,s,r){var a=C(e).abs(),n=V(a.as("s")),i=V(a.as("m")),u=V(a.as("h")),f=V(a.as("d")),_=V(a.as("M")),O=V(a.as("w")),E=V(a.as("y")),J=n<=s.ss&&["s",n]||n<s.s&&["ss",n]||i<=1&&["m"]||i<s.m&&["mm",i]||u<=1&&["h"]||u<s.h&&["hh",u]||f<=1&&["d"]||f<s.d&&["dd",f];return s.w!=null&&(J=J||O<=1&&["w"]||O<s.w&&["ww",O]),J=J||_<=1&&["M"]||_<s.M&&["MM",_]||E<=1&&["y"]||["yy",E],J[2]=t,J[3]=+e>0,J[4]=r,wi.apply(null,J)}function Mi(e){return e===void 0?V:typeof e=="function"?(V=e,!0):!1}function gi(e,t){return ie[e]===void 0?!1:t===void 0?ie[e]:(ie[e]=t,e==="s"&&(ie.ss=t-1),!0)}function Si(e,t){if(!this.isValid())return this.localeData().invalidDate();var s=!1,r=ie,a,n;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(s=e),typeof t=="object"&&(r=Object.assign({},ie,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),a=this.localeData(),n=ki(this,!s,r,a),s&&(n=a.pastFuture(+this,n)),a.postformat(n)}var qe=Math.abs;function ae(e){return(e>0)-(e<0)||+e}function je(){if(!this.isValid())return this.localeData().invalidDate();var e=qe(this._milliseconds)/1e3,t=qe(this._days),s=qe(this._months),r,a,n,i,u=this.asSeconds(),f,_,O,E;return u?(r=x(e/60),a=x(r/60),e%=60,r%=60,n=x(s/12),s%=12,i=e?e.toFixed(3).replace(/\.?0+$/,""):"",f=u<0?"-":"",_=ae(this._months)!==ae(u)?"-":"",O=ae(this._days)!==ae(u)?"-":"",E=ae(this._milliseconds)!==ae(u)?"-":"",f+"P"+(n?_+n+"Y":"")+(s?_+s+"M":"")+(t?O+t+"D":"")+(a||r||e?"T":"")+(a?E+a+"H":"")+(r?E+r+"M":"")+(e?E+i+"S":"")):"P0D"}var y=Ve.prototype;y.isValid=ca;y.abs=$n;y.add=qn;y.subtract=Bn;y.as=Qn;y.asMilliseconds=gs;y.asSeconds=Xn;y.asMinutes=Kn;y.asHours=ei;y.asDays=ti;y.asWeeks=si;y.asMonths=ri;y.asQuarters=ai;y.asYears=ni;y.valueOf=ii;y._bubble=Jn;y.clone=oi;y.get=li;y.milliseconds=ui;y.seconds=di;y.minutes=hi;y.hours=fi;y.days=ci;y.weeks=yi;y.months=mi;y.years=_i;y.humanize=Si;y.toISOString=je;y.toString=je;y.toJSON=je;y.locale=os;y.localeData=us;y.toIsoString=N("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",je);y.lang=ls;h("X",0,0,"unix");h("x",0,0,"valueOf");d("x",Ie);d("X",As);M("X",function(e,t,s){s._d=new Date(parseFloat(e)*1e3)});M("x",function(e,t,s){s._d=new Date(m(e))});//! moment.js
|
|
10
|
+
l.version="2.30.1";Ss(g);l.fn=o;l.min=ua;l.max=da;l.now=ha;l.utc=I;l.unix=En;l.months=Vn;l.isDate=ge;l.locale=K;l.invalid=Fe;l.duration=C;l.isMoment=F;l.weekdays=jn;l.parseZone=An;l.localeData=q;l.isDuration=Te;l.monthsShort=Gn;l.weekdaysMin=Zn;l.defineLocale=_t;l.updateLocale=Er;l.locales=Ar;l.weekdaysShort=zn;l.normalizeUnits=W;l.relativeTimeRounding=Mi;l.relativeTimeThreshold=gi;l.calendarFormat=La;l.prototype=o;l.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};export{l as h};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,O as k,be as $,ai as A,j as e,K as M,bk as u,v as O}from"./index-737fd7d3.js";import{A as S}from"./AdaptableCard-5bdf55ff.js";import"./isEmpty-d6a6848e.js";import"./SvgIcon-e50d8824.js";import{A as I}from"./index-59b78927.js";import"./Button-312a6bfe.js";import"./Tag-0a3ddbe2.js";import"./Container-0271dbaa.js";import"./Input-f9dc9df7.js";import"./SegmentItemOption-1228dbe0.js";import{F as b,a as N}from"./index.esm-d90c2f28.js";import"./Alert-e6518529.js";import"./index-d7b1d047.js";import"./index-91a81028.js";import"./Card-8badb238.js";import"./index-cdf4c2fe.js";import"./FormContainer-e0ad1074.js";import"./get-e6d75ebc.js";import"./Select-19bd23ac.js";import"./Switcher-4b56d286.js";import"./index-51020fda.js";import"./Upload-f16cbbc9.js";import{a as E}from"./CourseService-150b9c3b.js";import{h as U}from"./moment-a9aaa855.js";import"./warning-eb037686.js";import"./index-a05b664a.js";import"./index.esm-7fca4988.js";import"./useThemeClass-61b1bbbf.js";import"./useControllableState-ed446800.js";import"./cloneDeep-958c9090.js";function F(i){const n=Math.floor(i/3600),o=Math.floor(i%3600/60);let x="";return n>0&&(x+=`${n}h `),o>0&&(x+=`${o}m`),x.trim()}function me(){var f,j;const[i,n]=r.useState([]),[o,x]=r.useState(),g=k(),[s,p]=r.useState({});let[d,y]=r.useState(!1);const a=$(t=>{var l;return(l=t==null?void 0:t.auth)==null?void 0:l.user});console.log(a==null?void 0:a.courseId);const v=async()=>{try{let t=await E(a==null?void 0:a.courseId);t!=null&&t.success&&p(t==null?void 0:t.data)}catch{p({})}};r.useEffect(()=>{v()},[a==null?void 0:a.courseId]),r.useEffect(()=>{var t,l;y(i.length===(((l=(t=s==null?void 0:s.sections)==null?void 0:t.$values)==null?void 0:l.length)||0))},[i,s]);const w=t=>{n(l=>l.includes(t)?l.filter(m=>m!==t):[...l,t])},C=()=>{var t;(t=s==null?void 0:s.sections)!=null&&t.$values&&n(d?[]:s.sections.$values.map(l=>l.id))};console.log("jj",a==null?void 0:a.courseId);const h=s!=null&&s.banner?`${A.apiBaseUrl}/${(f=s==null?void 0:s.banner)==null?void 0:f.replace(/\\/g,"/")}`:"";return a!=null&&a.courseId?e.jsxs("div",{className:"w-full mx-auto overflow-hidden border border-gray-200",children:[e.jsx("div",{id:"banner",className:"flex relative my-auto h-[400px]",style:{background:h?`url(${h}) center center / cover no-repeat`:"white"},children:e.jsxs("div",{className:"p-10 my-auto text-white w-full",children:[e.jsx("h1",{className:"text-3xl text-white font-semibold",children:s==null?void 0:s.title}),e.jsxs("p",{className:"text-lg font-bold mt-2 opacity-90",children:["by ",s==null?void 0:s.author]}),e.jsx("p",{className:"py-5 text-lg max-w-4xl mt-1 opacity-95",children:s==null?void 0:s.description})]})}),e.jsxs("div",{className:"flex px-6 py-3 text-sm",children:[e.jsx("div",{className:"w-5/6",children:e.jsxs(S,{className:"m-4 bg-transparent ",bodyClass:"bg-transparent",children:[e.jsx("div",{className:"flex items-center justify-end px-6 py-3 text-sm",children:e.jsxs("button",{onClick:C,className:"flex items-center gap-2 hover:underline",children:[d?"Collapse All":"Expand All",d?e.jsx(b,{}):e.jsx(N,{})]})}),e.jsx("div",{children:(j=s==null?void 0:s.sections)==null?void 0:j.$values.map(t=>{var m;const l=i.includes(t.id);return e.jsxs("div",{className:"mb-1 border border-gray-200 rounded-lg overflow-hidden",children:[e.jsxs("button",{onClick:()=>w(t.id),className:"w-full flex items-center justify-between px-6 py-4 bg-white hover:bg-gray-50",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(u,{className:"text-custom-600 w-5 h-5 shrink-0",size:22}),e.jsx("span",{className:"text-gray-900 font-semibold text-[16px]",children:t.title})]}),e.jsxs("div",{className:"flex items-center gap-3 text-sm text-gray-600",children:[e.jsx("span",{children:t.calculatedDuration}),l?e.jsx(b,{}):e.jsx(N,{})]})]}),l&&e.jsx("div",{id:"subModule",className:"divide-y border-t border-gray-200",children:(m=t==null?void 0:t.materials)==null?void 0:m.$values.map(c=>(c.id,e.jsxs("button",{onClick:()=>g(`/app/course/${t.id}/${c.id}`),className:"w-full flex items-center justify-between px-10 py-3 text-left transition",children:[e.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[e.jsx(u,{className:"text-custom-600",size:22}),e.jsx("span",{className:"title truncate text-[14px] leading-5 font-semibold",children:c.title})]}),e.jsx("span",{className:"text-sm shrink-0",children:c.duration})]},c.id)))})]},t.id)})})]})}),e.jsx("div",{className:"w-1/6 bg-custom-600 rounded-lg p-4 flex flex-col text-white ",children:e.jsxs("div",{className:"course-info sticky top-0",children:[e.jsx("small",{className:"pb-4",children:"Course Author"}),e.jsxs("div",{className:"flex my-2 border-b border-gray-200/50 pb-4",children:[e.jsxs("div",{className:"text-xs",children:[e.jsx(I,{shape:"circle",className:"mr-4",icon:e.jsx(O,{})})," "]}),e.jsx("div",{className:"text-xs my-auto font-bold",children:s==null?void 0:s.author})]}),e.jsx("div",{className:"text-xs pt-4 border-b border-gray-200/50 pb-4 mb-4",children:s==null?void 0:s.shortDescription}),e.jsx("h4",{className:"text-sm text-white uppercase mb-2",children:"Course Info"}),e.jsxs("div",{className:"flex items-center justify-between my-2",children:[e.jsx("span",{className:"text-xs",children:"Level"}),e.jsx("span",{className:"text-xs",children:"Beginner"})]}),e.jsxs("div",{className:"flex items-center justify-between my-2",children:[e.jsx("span",{className:"text-xs",children:"Course Duration"}),e.jsx("span",{className:"text-xs",children:F(s==null?void 0:s.durationSeconds)})]}),e.jsxs("div",{className:"flex items-center justify-between my-2",children:[e.jsx("span",{className:"text-xs",children:"Language"}),e.jsx("span",{className:"text-xs",children:s==null?void 0:s.language})]}),e.jsxs("div",{className:"flex items-center justify-between my-2",children:[e.jsx("span",{className:"text-xs",children:"Last Updated"}),e.jsx("span",{className:"text-xs",children:U(s==null?void 0:s.updatedAt).format("MMM DD, YYYY")})]})]})})]})]}):e.jsxs("div",{className:"flex flex-col items-center justify-center text-center px-4 bg-white h-full",children:[e.jsx("div",{className:"bg-gray-100 rounded-full p-6 mb-6",children:e.jsx(M,{className:"w-12 h-12 text-gray-400"})}),e.jsx("h2",{className:"text-2xl font-semibold text-gray-800 mb-2",children:"No Courses Found"}),e.jsx("p",{className:"text-gray-500 max-w-md mb-6",children:"It looks like you haven’t enrolled in any courses yet."})]})}export{me as default};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var X=Object.defineProperty;var Z=(e,i,t)=>i in e?X(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t;var k=(e,i,t)=>(Z(e,typeof i!="symbol"?i+"":i,t),t),B=(e,i,t)=>{if(!i.has(e))throw TypeError("Cannot "+t)};var a=(e,i,t)=>(B(e,i,"read from private field"),t?t.call(e):i.get(e)),d=(e,i,t)=>{if(i.has(e))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(e):i.set(e,t)},n=(e,i,t,s)=>(B(e,i,"write to private field"),s?s.call(e,t):i.set(e,t),t);var U=(e,i,t)=>(B(e,i,"access private method"),t);import{R as tt}from"./index-737fd7d3.js";const et="https://open.spotify.com",it=/open\.spotify\.com\/(\w+)\/(\w+)/i,st="https://open.spotify.com/embed-podcast/iframe-api/v1",nt="SpotifyIframeApi",ot="onSpotifyIframeApiReady";function q(e,i={}){const t={src:J(e,i),scrolling:"no",frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return`
|
|
2
|
+
<style>
|
|
3
|
+
:host {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
min-width: 160px;
|
|
6
|
+
min-height: 80px;
|
|
7
|
+
position: relative;
|
|
8
|
+
}
|
|
9
|
+
iframe {
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 100%;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
}
|
|
17
|
+
:host(:not([controls])) {
|
|
18
|
+
display: none !important;
|
|
19
|
+
}
|
|
20
|
+
</style>
|
|
21
|
+
<iframe${rt(t)}></iframe>
|
|
22
|
+
`}function J(e,i){var t,s,u;if(!e.src)return;const c=e.src.match(it),g=c&&c[1],w=c&&c[2],A={t:(t=i.config)==null?void 0:t.startAt,theme:((s=i.config)==null?void 0:s.theme)==="dark"?"0":null},l=(u=i.config)!=null&&u.preferVideo?"/video":"";return`${et}/embed/${g}/${w}${l}?${at(A)}`}var L,S,C,f,p,m,v,_,P,H,N,K;class R extends(globalThis.HTMLElement??class{}){constructor(){super();d(this,N);k(this,"loadComplete",new F);d(this,L,void 0);d(this,S,void 0);d(this,C,void 0);d(this,f,!1);d(this,p,!1);d(this,m,!0);d(this,v,0);d(this,_,NaN);d(this,P,!1);d(this,H,null);U(this,N,K).call(this,"config")}async load(){var t,s,u;if(a(this,L))return;a(this,S)&&(this.loadComplete=new F),n(this,S,!0),await n(this,L,Promise.resolve()),n(this,L,null),n(this,f,!1),n(this,p,!1),n(this,v,0),n(this,_,NaN),n(this,P,!1),this.dispatchEvent(new Event("emptied"));let c=this.api;if(this.api=null,!this.src)return;this.dispatchEvent(new Event("loadstart"));const g={t:(t=this.config)==null?void 0:t.startAt,theme:((s=this.config)==null?void 0:s.theme)==="dark"?"0":null,preferVideo:(u=this.config)==null?void 0:u.preferVideo};if(a(this,C))this.api=c,this.api.iframeElement.src=J(G(this.attributes),this);else{n(this,C,!0),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=q(G(this.attributes),this));let w=this.shadowRoot.querySelector("iframe");const A=await ut(st,nt,ot);this.api=await new Promise(l=>A.createController(w,g,l)),this.api.iframeElement=w,this.api.addListener("ready",()=>{this.dispatchEvent(new Event("loadedmetadata")),this.dispatchEvent(new Event("durationchange")),this.dispatchEvent(new Event("volumechange"))}),this.api.addListener("playback_update",l=>{if(a(this,p)&&a(this,m)&&(l.data.isBuffering||!l.data.isPaused)){n(this,p,!1),this.currentTime=1;return}if(l.data.duration/1e3!==a(this,_)&&(n(this,p,!1),n(this,_,l.data.duration/1e3),this.dispatchEvent(new Event("durationchange"))),l.data.position/1e3!==a(this,v)&&(n(this,P,!1),n(this,p,!1),n(this,v,l.data.position/1e3),this.dispatchEvent(new Event("timeupdate"))),!a(this,f)&&!a(this,m)&&l.data.isPaused){n(this,m,!0),this.dispatchEvent(new Event("pause"));return}if(a(this,m)&&(l.data.isBuffering||!l.data.isPaused)){n(this,m,!1),this.dispatchEvent(new Event("play")),n(this,f,l.data.isBuffering),a(this,f)?this.dispatchEvent(new Event("waiting")):this.dispatchEvent(new Event("playing"));return}if(a(this,f)&&!l.data.isPaused){n(this,f,!1),this.dispatchEvent(new Event("playing"));return}if(!this.paused&&!this.seeking&&!a(this,p)&&Math.ceil(this.currentTime)>=this.duration){if(n(this,p,!0),this.loop){this.currentTime=1;return}this.continuous||(this.pause(),this.dispatchEvent(new Event("ended")));return}})}this.loadComplete.resolve(),await this.loadComplete}async attributeChangedCallback(t,s,u){if(s!==u)switch(t){case"src":{this.load();return}}}async play(){var t;return n(this,m,!1),n(this,f,!0),this.dispatchEvent(new Event("play")),await this.loadComplete,(t=this.api)==null?void 0:t.resume()}async pause(){var t;return await this.loadComplete,(t=this.api)==null?void 0:t.pause()}get config(){return a(this,H)}set config(t){n(this,H,t)}get paused(){return a(this,m)??!0}get muted(){return!1}set muted(t){}get volume(){return 1}set volume(t){}get ended(){return Math.ceil(this.currentTime)>=this.duration}get seeking(){return a(this,P)}get loop(){return this.hasAttribute("loop")}set loop(t){this.loop!=t&&this.toggleAttribute("loop",!!t)}get currentTime(){return a(this,v)}set currentTime(t){if(this.currentTime==t)return;n(this,P,!0);let s=a(this,v);n(this,v,t),this.dispatchEvent(new Event("timeupdate")),n(this,v,s),this.loadComplete.then(()=>{var u;(u=this.api)==null||u.seek(t)})}get duration(){return a(this,_)}get src(){return this.getAttribute("src")}set src(t){this.setAttribute("src",`${t}`)}}L=new WeakMap,S=new WeakMap,C=new WeakMap,f=new WeakMap,p=new WeakMap,m=new WeakMap,v=new WeakMap,_=new WeakMap,P=new WeakMap,H=new WeakMap,N=new WeakSet,K=function(t){if(Object.prototype.hasOwnProperty.call(this,t)){const s=this[t];delete this[t],this[t]=s}},k(R,"getTemplateHTML",q),k(R,"shadowRootOptions",{mode:"open"}),k(R,"observedAttributes",["controls","loop","src"]);function rt(e){let i="";for(const t in e){const s=e[t];s===""?i+=` ${t}`:i+=` ${t}="${s}"`}return i}function at(e){return String(new URLSearchParams(lt(e)))}function lt(e){let i={};for(let t in e){let s=e[t];s===!0||s===""?i[t]=1:s===!1?i[t]=0:s!=null&&(i[t]=s)}return i}function G(e){let i={};for(let t of e)i[t.name]=t.value;return i}const j={};async function ut(e,i,t){return j[e]?j[e]:i&&self[i]?Promise.resolve(self[i]):j[e]=new Promise(function(s,u){const c=document.createElement("script");c.src=e;const g=w=>s(w);t&&(self[t]=g),c.onload=()=>!t&&g(),c.onerror=u,document.head.append(c)})}class F extends Promise{constructor(i=()=>{}){let t,s;super((u,c)=>{i(u,c),t=u,s=c}),this.resolve=t,this.reject=s}}globalThis.customElements&&!globalThis.customElements.get("spotify-audio")&&globalThis.customElements.define("spotify-audio",R);var ct=R,ht=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),dt={className:"class",htmlFor:"for"};function Q(e){return e.toLowerCase()}function V(e){if(typeof e=="boolean")return e?"":void 0;if(typeof e!="function"&&!(typeof e=="object"&&e!==null))return e}function ft({react:e,tagName:i,elementClass:t,events:s,displayName:u,defaultProps:c,toAttributeName:g=Q,toAttributeValue:w=V}){const A=Number.parseInt(e.version)>=19,l=e.forwardRef((W,M)=>{var x,z;const y=e.useRef(null),O=e.useRef(new Map),$={},D={},b={},I={};for(const[o,r]of Object.entries(W)){if(ht.has(o)){b[o]=r;continue}const h=g(dt[o]??o);if(t.prototype&&o in t.prototype&&!(o in(((x=globalThis.HTMLElement)==null?void 0:x.prototype)??{}))&&!((z=t.observedAttributes)!=null&&z.some(T=>T===h))){I[o]=r;continue}if(o.startsWith("on")){$[o]=r;continue}const E=w(r);if(h&&E!=null&&(D[h]=String(E),A||(b[h]=E)),h&&A){const T=V(r);E!==T?b[h]=E:b[h]=r}}if(typeof window<"u"){for(const o in $){const r=$[o],h=o.endsWith("Capture"),E=((s==null?void 0:s[o])??o.slice(2).toLowerCase()).slice(0,h?-7:void 0);e.useLayoutEffect(()=>{const T=y==null?void 0:y.current;if(!(!T||typeof r!="function"))return T.addEventListener(E,r,h),()=>{T.removeEventListener(E,r,h)}},[y==null?void 0:y.current,r])}e.useLayoutEffect(()=>{if(y.current===null)return;const o=new Map;for(const r in I)Y(y.current,r,I[r]),O.current.delete(r),o.set(r,I[r]);for(const[r,h]of O.current)Y(y.current,r,void 0);O.current=o})}if(typeof window>"u"&&(t!=null&&t.getTemplateHTML)&&(t!=null&&t.shadowRootOptions)){const{mode:o,delegatesFocus:r}=t.shadowRootOptions,h=e.createElement("template",{shadowrootmode:o,shadowrootdelegatesfocus:r,dangerouslySetInnerHTML:{__html:t.getTemplateHTML(D,W)}});b.children=[h,b.children]}return e.createElement(i,{...c,...b,ref:e.useCallback(o=>{y.current=o,typeof M=="function"?M(o):M!==null&&(M.current=o)},[M])})});return l.displayName=u??t.name,l}function Y(e,i,t){var s;e[i]=t,t==null&&i in(((s=globalThis.HTMLElement)==null?void 0:s.prototype)??{})&&e.removeAttribute(i)}var vt=ft({react:tt,tagName:"spotify-audio",elementClass:ct,toAttributeName(e){return e==="muted"?"":e==="defaultMuted"?"muted":Q(e)}});/*! Bundled license information:
|
|
23
|
+
|
|
24
|
+
ce-la-react/dist/ce-la-react.js:
|
|
25
|
+
(**
|
|
26
|
+
* @license
|
|
27
|
+
* Copyright 2018 Google LLC
|
|
28
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
+
*
|
|
30
|
+
* Modified version of `@lit/react` for vanilla custom elements with support for SSR.
|
|
31
|
+
*)
|
|
32
|
+
*/export{vt as default};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
var Z=Object.defineProperty;var ee=(t,i,e)=>i in t?Z(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e;var L=(t,i,e)=>(ee(t,typeof i!="symbol"?i+"":i,e),e),$=(t,i,e)=>{if(!i.has(t))throw TypeError("Cannot "+e)};var h=(t,i,e)=>($(t,i,"read from private field"),e?e.call(t):i.get(t)),m=(t,i,e)=>{if(i.has(t))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(t):i.set(t,e)},l=(t,i,e,n)=>($(t,i,"write to private field"),n?n.call(t,e):i.set(t,e),e);var U=(t,i,e)=>($(t,i,"access private method"),e);import{R as te}from"./index-737fd7d3.js";const ie="https://www.youtube.com/embed",ne="https://www.youtube-nocookie.com/embed",se="https://www.youtube.com/iframe_api",oe="YT",re="onYouTubeIframeAPIReady",V=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})/,ae=/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/.*?[?&]list=)([\w_-]+)/;function W(t,i={}){const e={src:K(t,i),frameborder:0,width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"};return i.config&&(e["data-config"]=JSON.stringify(i.config)),`
|
|
2
|
+
<style>
|
|
3
|
+
:host {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
line-height: 0;
|
|
6
|
+
position: relative;
|
|
7
|
+
min-width: 300px;
|
|
8
|
+
min-height: 150px;
|
|
9
|
+
}
|
|
10
|
+
iframe {
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: 0;
|
|
13
|
+
left: 0;
|
|
14
|
+
}
|
|
15
|
+
</style>
|
|
16
|
+
<iframe${le(e)}></iframe>
|
|
17
|
+
`}function K(t,i){if(!t.src)return;const e=t.src.includes("-nocookie")?ne:ie,n={controls:t.controls===""?null:0,autoplay:t.autoplay,loop:t.loop,mute:t.muted,playsinline:t.playsinline,preload:t.preload??"metadata",enablejsapi:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1,...i.config};if(V.test(t.src)){const v=t.src.match(V),y=v&&v[1];return`${e}/${y}?${q(n)}`}const s=t.src.match(ae),d={listType:"playlist",list:s&&s[1],...n};return`${e}?${q(d)}`}var P,k,E,w,g,I,S,B,Q;class M extends(globalThis.HTMLElement??class{}){constructor(){super();m(this,B);L(this,"loadComplete",new x);m(this,P,void 0);m(this,k,void 0);m(this,E,0);m(this,w,!1);m(this,g,void 0);L(this,"isLoaded",!1);m(this,I,null);m(this,S,null);U(this,B,Q).call(this,"config")}get config(){return h(this,S)}set config(e){l(this,S,e)}async load(){if(h(this,P))return;this.shadowRoot||this.attachShadow({mode:"open"});const e=!h(this,k);h(this,k)&&(this.loadComplete=new x,this.isLoaded=!1),l(this,k,!0),await l(this,P,Promise.resolve()),l(this,P,null),l(this,E,0),this.dispatchEvent(new Event("emptied"));let n=this.api;if(this.api=null,!this.src){n==null||n.destroy();return}this.dispatchEvent(new Event("loadstart"));let s=this.shadowRoot.querySelector("iframe"),u=ce(this.attributes);e&&s&&l(this,S,JSON.parse(s.getAttribute("data-config")||"{}")),(!(s!=null&&s.src)||s.src!==K(u,this))&&(this.shadowRoot.innerHTML=W(u,this),s=this.shadowRoot.querySelector("iframe"));const d=await de(se,oe,re);this.api=new d.Player(s,{events:{onReady:()=>{l(this,E,1),this.dispatchEvent(new Event("loadedmetadata")),this.dispatchEvent(new Event("durationchange")),this.dispatchEvent(new Event("volumechange")),this.dispatchEvent(new Event("loadcomplete")),this.isLoaded=!0,this.loadComplete.resolve()},onError:a=>{console.error(a),l(this,I,{code:a.data,message:`YouTube iframe player error #${a.data}; visit https://developers.google.com/youtube/iframe_api_reference#onError for the full error message.`}),this.dispatchEvent(new Event("error"))}}});let v=!1;this.api.addEventListener("onStateChange",a=>{var _;const f=a.data;if((f===d.PlayerState.PLAYING||f===d.PlayerState.BUFFERING)&&(v||(v=!0,this.dispatchEvent(new Event("play")))),f===d.PlayerState.PLAYING)this.seeking&&(l(this,w,!1),(_=h(this,g))==null||_.resolve(),this.dispatchEvent(new Event("seeked"))),l(this,E,3),this.dispatchEvent(new Event("playing"));else if(f===d.PlayerState.PAUSED){const p=Math.abs(this.currentTime-y);!this.seeking&&p>.1&&(l(this,w,!0),this.dispatchEvent(new Event("seeking"))),v=!1,this.dispatchEvent(new Event("pause"))}f===d.PlayerState.ENDED&&(v=!1,this.dispatchEvent(new Event("pause")),this.dispatchEvent(new Event("ended")),this.loop&&this.play())}),this.api.addEventListener("onPlaybackRateChange",()=>{this.dispatchEvent(new Event("ratechange"))}),this.api.addEventListener("onVolumeChange",()=>{this.dispatchEvent(new Event("volumechange"))}),this.api.addEventListener("onVideoProgress",()=>{this.dispatchEvent(new Event("timeupdate"))}),await this.loadComplete;let y=0;setInterval(()=>{var a;const _=Math.abs(this.currentTime-y),f=this.buffered.end(this.buffered.length-1);this.seeking&&f>.1?(l(this,w,!1),(a=h(this,g))==null||a.resolve(),this.dispatchEvent(new Event("seeked"))):!this.seeking&&_>.1&&(l(this,w,!0),this.dispatchEvent(new Event("seeking"))),y=this.currentTime},50);let R;const C=setInterval(()=>{const a=this.buffered.end(this.buffered.length-1);a>=this.duration&&(clearInterval(C),l(this,E,4)),R!=a&&(R=a,this.dispatchEvent(new Event("progress")))},100)}async attributeChangedCallback(e,n,s){if(n!==s)switch(e){case"src":case"autoplay":case"controls":case"loop":case"playsinline":this.load()}}async play(){var e;return l(this,g,null),await this.loadComplete,(e=this.api)==null||e.playVideo(),pe(this)}async pause(){var e;return await this.loadComplete,(e=this.api)==null?void 0:e.pauseVideo()}get seeking(){return h(this,w)}get readyState(){return h(this,E)}get src(){return this.getAttribute("src")}set src(e){this.src!=e&&this.setAttribute("src",e)}get error(){return h(this,I)}get paused(){var e,n;return this.isLoaded?[-1,0,2,5].includes((n=(e=this.api)==null?void 0:e.getPlayerState)==null?void 0:n.call(e)):!this.autoplay}get duration(){var e,n;return((n=(e=this.api)==null?void 0:e.getDuration)==null?void 0:n.call(e))??NaN}get autoplay(){return this.hasAttribute("autoplay")}set autoplay(e){this.autoplay!=e&&this.toggleAttribute("autoplay",!!e)}get buffered(){var e,n;if(!this.isLoaded)return F();const s=((e=this.api)==null?void 0:e.getVideoLoadedFraction())*((n=this.api)==null?void 0:n.getDuration());return s>0?F(0,s):F()}get controls(){return this.hasAttribute("controls")}set controls(e){this.controls!=e&&this.toggleAttribute("controls",!!e)}get currentTime(){var e,n;return((n=(e=this.api)==null?void 0:e.getCurrentTime)==null?void 0:n.call(e))??0}set currentTime(e){this.currentTime!=e&&(l(this,g,new x),this.loadComplete.then(()=>{var n,s;(n=this.api)==null||n.seekTo(e,!0),this.paused&&((s=h(this,g))==null||s.then(()=>{var u;h(this,g)&&((u=this.api)==null||u.pauseVideo())}))}))}set defaultMuted(e){this.defaultMuted!=e&&this.toggleAttribute("muted",!!e)}get defaultMuted(){return this.hasAttribute("muted")}get loop(){return this.hasAttribute("loop")}set loop(e){this.loop!=e&&this.toggleAttribute("loop",!!e)}set muted(e){this.muted!=e&&this.loadComplete.then(()=>{var n,s;e?(n=this.api)==null||n.mute():(s=this.api)==null||s.unMute()})}get muted(){var e,n;return this.isLoaded?(n=(e=this.api)==null?void 0:e.isMuted)==null?void 0:n.call(e):this.defaultMuted}get playbackRate(){var e,n;return((n=(e=this.api)==null?void 0:e.getPlaybackRate)==null?void 0:n.call(e))??1}set playbackRate(e){this.playbackRate!=e&&this.loadComplete.then(()=>{var n;(n=this.api)==null||n.setPlaybackRate(e)})}get playsInline(){return this.hasAttribute("playsinline")}set playsInline(e){this.playsInline!=e&&this.toggleAttribute("playsinline",!!e)}get poster(){return this.getAttribute("poster")}set poster(e){this.poster!=e&&this.setAttribute("poster",`${e}`)}set volume(e){this.volume!=e&&this.loadComplete.then(()=>{var n;(n=this.api)==null||n.setVolume(e*100)})}get volume(){var e;return this.isLoaded?((e=this.api)==null?void 0:e.getVolume())/100:1}}P=new WeakMap,k=new WeakMap,E=new WeakMap,w=new WeakMap,g=new WeakMap,I=new WeakMap,S=new WeakMap,B=new WeakSet,Q=function(e){if(Object.prototype.hasOwnProperty.call(this,e)){const n=this[e];delete this[e],this[e]=n}},L(M,"getTemplateHTML",W),L(M,"shadowRootOptions",{mode:"open"}),L(M,"observedAttributes",["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src"]);function le(t){let i="";for(const e in t){const n=t[e];n===""?i+=` ${D(e)}`:i+=` ${D(e)}="${D(`${n}`)}"`}return i}function D(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`")}function q(t){return String(new URLSearchParams(ue(t)))}function ue(t){let i={};for(let e in t){let n=t[e];n===!0||n===""?i[e]=1:n===!1?i[e]=0:n!=null&&(i[e]=n)}return i}function ce(t){let i={};for(let e of t)i[e.name]=e.value;return i}const j={};async function de(t,i,e){return j[t]?j[t]:i&&self[i]?(await he(0),self[i]):j[t]=new Promise(function(n,s){const u=document.createElement("script");u.src=t;const d=()=>n(self[i]);e&&(self[e]=d),u.onload=()=>!e&&d(),u.onerror=s,document.head.append(u)})}const he=t=>new Promise(i=>setTimeout(i,t));function fe(t){return(...i)=>new Promise(e=>{t(...i,(...n)=>{n.length>1?e(n):e(n[0])})})}function pe(t){return fe((i,e)=>{let n;t.addEventListener(i,n=()=>{t.removeEventListener(i,n),e()})})("playing")}class x extends Promise{constructor(i=()=>{}){let e,n;super((s,u)=>{i(s,u),e=s,n=u}),this.resolve=e,this.reject=n}}function F(t,i){return Array.isArray(t)?Y(t):t==null||i==null||t===0&&i===0?Y([[0,0]]):Y([[t,i]])}function Y(t){return Object.defineProperties(t,{start:{value:i=>t[i][0]},end:{value:i=>t[i][1]}}),t}globalThis.customElements&&!globalThis.customElements.get("youtube-video")&&globalThis.customElements.define("youtube-video",M);var ve=M,me=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),ge={className:"class",htmlFor:"for"};function X(t){return t.toLowerCase()}function z(t){if(typeof t=="boolean")return t?"":void 0;if(typeof t!="function"&&!(typeof t=="object"&&t!==null))return t}function ye({react:t,tagName:i,elementClass:e,events:n,displayName:s,defaultProps:u,toAttributeName:d=X,toAttributeValue:v=z}){const y=Number.parseInt(t.version)>=19,R=t.forwardRef((C,a)=>{var _,f;const p=t.useRef(null),H=t.useRef(new Map),N={},G={},T={},O={};for(const[o,r]of Object.entries(C)){if(me.has(o)){T[o]=r;continue}const c=d(ge[o]??o);if(e.prototype&&o in e.prototype&&!(o in(((_=globalThis.HTMLElement)==null?void 0:_.prototype)??{}))&&!((f=e.observedAttributes)!=null&&f.some(A=>A===c))){O[o]=r;continue}if(o.startsWith("on")){N[o]=r;continue}const b=v(r);if(c&&b!=null&&(G[c]=String(b),y||(T[c]=b)),c&&y){const A=z(r);b!==A?T[c]=b:T[c]=r}}if(typeof window<"u"){for(const o in N){const r=N[o],c=o.endsWith("Capture"),b=((n==null?void 0:n[o])??o.slice(2).toLowerCase()).slice(0,c?-7:void 0);t.useLayoutEffect(()=>{const A=p==null?void 0:p.current;if(!(!A||typeof r!="function"))return A.addEventListener(b,r,c),()=>{A.removeEventListener(b,r,c)}},[p==null?void 0:p.current,r])}t.useLayoutEffect(()=>{if(p.current===null)return;const o=new Map;for(const r in O)J(p.current,r,O[r]),H.current.delete(r),o.set(r,O[r]);for(const[r,c]of H.current)J(p.current,r,void 0);H.current=o})}if(typeof window>"u"&&(e!=null&&e.getTemplateHTML)&&(e!=null&&e.shadowRootOptions)){const{mode:o,delegatesFocus:r}=e.shadowRootOptions,c=t.createElement("template",{shadowrootmode:o,shadowrootdelegatesfocus:r,dangerouslySetInnerHTML:{__html:e.getTemplateHTML(G,C)}});T.children=[c,T.children]}return t.createElement(i,{...u,...T,ref:t.useCallback(o=>{p.current=o,typeof a=="function"?a(o):a!==null&&(a.current=o)},[a])})});return R.displayName=s??e.name,R}function J(t,i,e){var n;t[i]=e,e==null&&i in(((n=globalThis.HTMLElement)==null?void 0:n.prototype)??{})&&t.removeAttribute(i)}var we=ye({react:te,tagName:"youtube-video",elementClass:ve,toAttributeName(t){return t==="muted"?"":t==="defaultMuted"?"muted":X(t)}});/*! Bundled license information:
|
|
18
|
+
|
|
19
|
+
ce-la-react/dist/ce-la-react.js:
|
|
20
|
+
(**
|
|
21
|
+
* @license
|
|
22
|
+
* Copyright 2018 Google LLC
|
|
23
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
24
|
+
*
|
|
25
|
+
* Modified version of `@lit/react` for vanilla custom elements with support for SSR.
|
|
26
|
+
*)
|
|
27
|
+
*/export{we as default};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var rt=Object.defineProperty;var at=(e,i,t)=>i in e?rt(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t;var C=(e,i,t)=>(at(e,typeof i!="symbol"?i+"":i,t),t),q=(e,i,t)=>{if(!i.has(e))throw TypeError("Cannot "+t)};var s=(e,i,t)=>(q(e,i,"read from private field"),t?t.call(e):i.get(e)),c=(e,i,t)=>{if(i.has(e))throw TypeError("Cannot add the same private member more than once");i instanceof WeakSet?i.add(e):i.set(e,t)},l=(e,i,t,n)=>(q(e,i,"write to private field"),n?n.call(e,t):i.set(e,t),t);var T=(e,i,t)=>(q(e,i,"access private method"),t);import{R as lt}from"./index-737fd7d3.js";const K="https://player.twitch.tv",ut=/(?:www\.|go\.)?twitch\.tv\/(?:videos?\/|\?video=)(\d+)($|\?)/,ct=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,V={IDLE:"Idle",READY:"Ready",BUFFERING:"Buffering",PLAYING:"Playing",ENDED:"Ended"},I={DISABLE_CAPTIONS:0,ENABLE_CAPTIONS:1,PAUSE:2,PLAY:3,SEEK:4,SET_CHANNEL:5,SET_CHANNEL_ID:6,SET_COLLECTION:7,SET_QUALITY:8,SET_VIDEO:9,SET_MUTED:10,SET_VOLUME:11};function Z(e,i={}){const t={src:nt(e,i),frameborder:"0",width:"100%",height:"100%",allow:"accelerometer; fullscreen; autoplay; encrypted-media; picture-in-picture;",sandbox:"allow-modals allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox",scrolling:"no"};return i.config&&(t["data-config"]=JSON.stringify(i.config)),`
|
|
2
|
+
<style>
|
|
3
|
+
:host {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
min-width: 300px;
|
|
6
|
+
min-height: 150px;
|
|
7
|
+
position: relative;
|
|
8
|
+
}
|
|
9
|
+
iframe {
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 100%;
|
|
15
|
+
}
|
|
16
|
+
:host(:not([controls])) {
|
|
17
|
+
pointer-events: none;
|
|
18
|
+
}
|
|
19
|
+
</style>
|
|
20
|
+
<iframe${dt(t)}></iframe>
|
|
21
|
+
`}function nt(e,i){var t;if(!e.src)return;const n=e.src.match(ut),u=e.src.match(ct),d={parent:(t=globalThis.location)==null?void 0:t.hostname,controls:e.controls===""?null:!1,autoplay:e.autoplay===""?null:!1,muted:e.muted,preload:e.preload,...i.config};if(n){const m=n[1];return`${K}/?video=v${m}&${X(d)}`}else if(u){const m=u[1];return`${K}/?channel=${m}&${X(d)}`}return""}var N,M,g,o,R,H,D,P,A,S,k,$,E,L,j,st;class O extends(globalThis.HTMLElement??class{}){constructor(){super();c(this,E);c(this,j);C(this,"loadComplete",new tt);c(this,N,void 0);c(this,M,void 0);c(this,g,void 0);c(this,o,{});c(this,R,0);c(this,H,!1);c(this,D,1);c(this,P,!this.autoplay);c(this,A,!1);c(this,S,0);c(this,k,null);c(this,$,async t=>{var n,u,d,m;if(!s(this,g).contentWindow)return;const{data:f,source:B}=t;if(B===s(this,g).contentWindow){if(f.namespace==="twitch-embed")await new Promise(_=>setTimeout(_,10)),f.eventName==="ready"?(this.dispatchEvent(new Event("loadcomplete")),this.loadComplete.resolve(),l(this,S,1),this.dispatchEvent(new Event("loadedmetadata"))):f.eventName==="seek"?(l(this,A,!0),this.dispatchEvent(new Event("seeking"))):f.eventName==="playing"?(s(this,A)&&(l(this,A,!1),this.dispatchEvent(new Event("seeked"))),l(this,S,3),this.dispatchEvent(new Event("playing"))):this.dispatchEvent(new Event(f.eventName));else if(f.namespace==="twitch-embed-player-proxy"&&f.eventName==="UPDATE_STATE"){const _=s(this,o).duration,y=s(this,o).currentTime,U=s(this,o).volume,W=s(this,o).muted,p=(u=(n=s(this,o).stats)==null?void 0:n.videoStats)==null?void 0:u.bufferSize;l(this,o,{...s(this,o),...f.params}),_!==s(this,o).duration&&this.dispatchEvent(new Event("durationchange")),y!==s(this,o).currentTime&&this.dispatchEvent(new Event("timeupdate")),(U!==s(this,o).volume||W!==s(this,o).muted)&&this.dispatchEvent(new Event("volumechange")),p!==((m=(d=s(this,o).stats)==null?void 0:d.videoStats)==null?void 0:m.bufferSize)&&this.dispatchEvent(new Event("progress"))}}});T(this,j,st).call(this,"config")}get config(){return s(this,k)}set config(t){l(this,k,t)}async load(){if(s(this,N))return;this.shadowRoot||this.attachShadow({mode:"open"});const t=!s(this,M);if(s(this,M)&&(this.loadComplete=new tt),l(this,M,!0),await l(this,N,Promise.resolve()),l(this,N,null),l(this,S,0),this.dispatchEvent(new Event("emptied")),!this.src){this.shadowRoot.innerHTML="",globalThis.removeEventListener("message",s(this,$));return}this.dispatchEvent(new Event("loadstart"));let n=this.shadowRoot.querySelector("iframe");const u=ht(this.attributes);t&&n&&l(this,k,JSON.parse(n.getAttribute("data-config")||"{}")),(!(n!=null&&n.src)||n.src!==nt(u,this))&&(this.shadowRoot.innerHTML=Z(u,this),n=this.shadowRoot.querySelector("iframe")),l(this,g,n),globalThis.addEventListener("message",s(this,$))}attributeChangedCallback(t,n,u){if(n!==u)switch(t){case"src":case"controls":{this.load();break}}}getVideoPlaybackQuality(){return s(this,o).stats.videoStats}get src(){return this.getAttribute("src")}set src(t){this.setAttribute("src",t)}get readyState(){return s(this,S)}get seeking(){return s(this,A)}get buffered(){var t,n;return pt(0,((n=(t=s(this,o).stats)==null?void 0:t.videoStats)==null?void 0:n.bufferSize)??0)}get paused(){return s(this,o).playback?s(this,o).playback===V.IDLE:s(this,P)}get ended(){return s(this,o).playback?s(this,o).playback===V.ENDED:!1}get duration(){return s(this,o).duration??NaN}get autoplay(){return this.hasAttribute("autoplay")}set autoplay(t){this.autoplay!=t&&this.toggleAttribute("autoplay",!!t)}get controls(){return this.hasAttribute("controls")}set controls(t){this.controls!=t&&this.toggleAttribute("controls",!!t)}get currentTime(){return s(this,o).currentTime?s(this,o).currentTime:s(this,R)}set currentTime(t){l(this,R,t),this.loadComplete.then(()=>{T(this,E,L).call(this,I.SEEK,t)})}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(t){this.toggleAttribute("muted",!!t)}get loop(){return this.hasAttribute("loop")}set loop(t){this.toggleAttribute("loop",!!t)}get muted(){return s(this,H)}set muted(t){l(this,H,t),this.loadComplete.then(()=>{T(this,E,L).call(this,I.SET_MUTED,t)})}get volume(){return s(this,D)}set volume(t){l(this,D,t),this.loadComplete.then(()=>{T(this,E,L).call(this,I.SET_VOLUME,t)})}get playsInline(){return this.hasAttribute("playsinline")}set playsInline(t){this.toggleAttribute("playsinline",!!t)}play(){l(this,P,!1),T(this,E,L).call(this,I.PLAY)}pause(){l(this,P,!0),T(this,E,L).call(this,I.PAUSE)}}N=new WeakMap,M=new WeakMap,g=new WeakMap,o=new WeakMap,R=new WeakMap,H=new WeakMap,D=new WeakMap,P=new WeakMap,A=new WeakMap,S=new WeakMap,k=new WeakMap,$=new WeakMap,E=new WeakSet,L=function(t,n){if(!s(this,g).contentWindow)return;const u={eventName:t,params:n,namespace:"twitch-embed-player-proxy"};s(this,g).contentWindow.postMessage(u,K)},j=new WeakSet,st=function(t){if(Object.prototype.hasOwnProperty.call(this,t)){const n=this[t];delete this[t],this[t]=n}},C(O,"getTemplateHTML",Z),C(O,"shadowRootOptions",{mode:"open"}),C(O,"observedAttributes",["autoplay","controls","loop","muted","playsinline","preload","src"]);function ht(e){let i={};for(let t of e)i[t.name]=t.value;return i}function dt(e){let i="";for(const t in e){const n=e[t];n===""?i+=` ${G(t)}`:i+=` ${G(t)}="${G(`${n}`)}"`}return i}function G(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`")}function X(e){return String(new URLSearchParams(ft(e)))}function ft(e){let i={};for(let t in e){let n=e[t];n===!0||n===""?i[t]=!0:n===!1?i[t]=!1:n!=null&&(i[t]=n)}return i}class tt extends Promise{constructor(i=()=>{}){let t,n;super((u,d)=>{i(u,d),t=u,n=d}),this.resolve=t,this.reject=n}}function pt(e,i){return Array.isArray(e)?J(e):e==null||i==null||e===0&&i===0?J([[0,0]]):J([[e,i]])}function J(e){return Object.defineProperties(e,{start:{value:i=>e[i][0]},end:{value:i=>e[i][1]}}),e}globalThis.customElements&&!globalThis.customElements.get("twitch-video")&&globalThis.customElements.define("twitch-video",O);var mt=O,vt=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),gt={className:"class",htmlFor:"for"};function ot(e){return e.toLowerCase()}function et(e){if(typeof e=="boolean")return e?"":void 0;if(typeof e!="function"&&!(typeof e=="object"&&e!==null))return e}function Et({react:e,tagName:i,elementClass:t,events:n,displayName:u,defaultProps:d,toAttributeName:m=ot,toAttributeValue:f=et}){const B=Number.parseInt(e.version)>=19,F=e.forwardRef((_,y)=>{var U,W;const p=e.useRef(null),z=e.useRef(new Map),Y={},Q={},w={},x={};for(const[r,a]of Object.entries(_)){if(vt.has(r)){w[r]=a;continue}const h=m(gt[r]??r);if(t.prototype&&r in t.prototype&&!(r in(((U=globalThis.HTMLElement)==null?void 0:U.prototype)??{}))&&!((W=t.observedAttributes)!=null&&W.some(b=>b===h))){x[r]=a;continue}if(r.startsWith("on")){Y[r]=a;continue}const v=f(a);if(h&&v!=null&&(Q[h]=String(v),B||(w[h]=v)),h&&B){const b=et(a);v!==b?w[h]=v:w[h]=a}}if(typeof window<"u"){for(const r in Y){const a=Y[r],h=r.endsWith("Capture"),v=((n==null?void 0:n[r])??r.slice(2).toLowerCase()).slice(0,h?-7:void 0);e.useLayoutEffect(()=>{const b=p==null?void 0:p.current;if(!(!b||typeof a!="function"))return b.addEventListener(v,a,h),()=>{b.removeEventListener(v,a,h)}},[p==null?void 0:p.current,a])}e.useLayoutEffect(()=>{if(p.current===null)return;const r=new Map;for(const a in x)it(p.current,a,x[a]),z.current.delete(a),r.set(a,x[a]);for(const[a,h]of z.current)it(p.current,a,void 0);z.current=r})}if(typeof window>"u"&&(t!=null&&t.getTemplateHTML)&&(t!=null&&t.shadowRootOptions)){const{mode:r,delegatesFocus:a}=t.shadowRootOptions,h=e.createElement("template",{shadowrootmode:r,shadowrootdelegatesfocus:a,dangerouslySetInnerHTML:{__html:t.getTemplateHTML(Q,_)}});w.children=[h,w.children]}return e.createElement(i,{...d,...w,ref:e.useCallback(r=>{p.current=r,typeof y=="function"?y(r):y!==null&&(y.current=r)},[y])})});return F.displayName=u??t.name,F}function it(e,i,t){var n;e[i]=t,t==null&&i in(((n=globalThis.HTMLElement)==null?void 0:n.prototype)??{})&&e.removeAttribute(i)}var bt=Et({react:lt,tagName:"twitch-video",elementClass:mt,toAttributeName(e){return e==="muted"?"":e==="defaultMuted"?"muted":ot(e)}});/*! Bundled license information:
|
|
22
|
+
|
|
23
|
+
ce-la-react/dist/ce-la-react.js:
|
|
24
|
+
(**
|
|
25
|
+
* @license
|
|
26
|
+
* Copyright 2018 Google LLC
|
|
27
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
28
|
+
*
|
|
29
|
+
* Modified version of `@lit/react` for vanilla custom elements with support for SSR.
|
|
30
|
+
*)
|
|
31
|
+
*/export{bt as default};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var lt=Object.defineProperty;var dt=(e,t,i)=>t in e?lt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var x=(e,t,i)=>(dt(e,typeof t!="symbol"?t+"":t,i),i),$=(e,t,i)=>{if(!t.has(e))throw TypeError("Cannot "+i)};var P=(e,t,i)=>($(e,t,"read from private field"),i?i.call(e):t.get(e)),p=(e,t,i)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,i)},M=(e,t,i,r)=>($(e,t,"write to private field"),r?r.call(e,i):t.set(e,i),i);var g=(e,t,i)=>($(e,t,"access private method"),i);import{o as ut,R as ct}from"./index-737fd7d3.js";const ht=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","waitingforkey","resize","enterpictureinpicture","leavepictureinpicture","webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"];var Z;const D=(Z=globalThis.document)==null?void 0:Z.createElement("template");D&&(D.innerHTML=`
|
|
2
|
+
<style>
|
|
3
|
+
:host {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
line-height: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
video,
|
|
9
|
+
audio {
|
|
10
|
+
max-width: 100%;
|
|
11
|
+
max-height: 100%;
|
|
12
|
+
min-width: 100%;
|
|
13
|
+
min-height: 100%;
|
|
14
|
+
}
|
|
15
|
+
</style>
|
|
16
|
+
<slot></slot>
|
|
17
|
+
`);const tt=(e,{tag:t,is:i})=>{var v,h,E,R,et,k,C,S,_,f,L,b,j,y,it,n,st,u,ot,w,nt,N,rt;const r=(v=globalThis.document)==null?void 0:v.createElement(t,{is:i}),c=r?J(r):[];return h=class extends e{constructor(){super();p(this,b);p(this,y);p(this,n);p(this,u);p(this,w);p(this,N);p(this,k,void 0);p(this,C,void 0);p(this,S,!1);p(this,_,!1);p(this,f,void 0);p(this,L,void 0);this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.append(this.constructor.template.content.cloneNode(!0))),this.load!==h.prototype.load&&(this.loadComplete=new K)}static get observedAttributes(){var o,m;return g(o=h,R,et).call(o),[...((m=r==null?void 0:r.constructor)==null?void 0:m.observedAttributes)??[],"autopictureinpicture","disablepictureinpicture","disableremoteplayback","autoplay","controls","controlslist","crossorigin","loop","muted","playsinline","poster","preload","src"]}get loadComplete(){return P(this,C)}set loadComplete(s){M(this,_,!1),M(this,C,s),s==null||s.then(()=>{M(this,_,!0)})}get isLoaded(){return P(this,_)}get nativeEl(){return P(this,f)??this.shadowRoot.querySelector(t)??this.querySelector(t)}set nativeEl(s){M(this,f,s)}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(s){this.toggleAttribute("muted",!!s)}get src(){return this.getAttribute("src")}set src(s){this.setAttribute("src",`${s}`)}get preload(){var s;return this.getAttribute("preload")??((s=this.nativeEl)==null?void 0:s.preload)}set preload(s){this.setAttribute("preload",`${s}`)}attributeChangedCallback(s,o,m){g(this,b,j).call(this),s==="src"&&this.load!==h.prototype.load&&g(this,w,nt).call(this),g(this,N,rt).call(this,s,o,m)}connectedCallback(){g(this,b,j).call(this)}},E=new WeakMap,R=new WeakSet,et=function(){if(P(this,E))return;M(this,E,!0);const s=new Set(this.observedAttributes);s.delete("muted");for(let o of c){if(o in this.prototype)continue;if(typeof r[o]=="function")this.prototype[o]=function(...A){g(this,b,j).call(this);const a=()=>this.call?this.call(o,...A):this.nativeEl[o].apply(this.nativeEl,A);return this.loadComplete&&!this.isLoaded?this.loadComplete.then(a):a()};else{let A={get(){var l,T;g(this,b,j).call(this);let a=o.toLowerCase();if(s.has(a)){const H=this.getAttribute(a);return H===null?!1:H===""?!0:H}return((l=this.get)==null?void 0:l.call(this,o))??((T=this.nativeEl)==null?void 0:T[o])??P(this,L)[o]}};o!==o.toUpperCase()&&(A.set=async function(a){g(this,b,j).call(this);let l=o.toLowerCase();if(s.has(l)){a===!0||a===!1||a==null?this.toggleAttribute(l,!!a):this.setAttribute(l,a);return}if(this.loadComplete&&!this.isLoaded&&await this.loadComplete,this.set){this.set(o,a);return}this.nativeEl[o]=a}),Object.defineProperty(this.prototype,o,A)}}},k=new WeakMap,C=new WeakMap,S=new WeakMap,_=new WeakMap,f=new WeakMap,L=new WeakMap,b=new WeakSet,j=async function(){var m,A;if(P(this,k))return;M(this,k,!0),g(this,n,st).call(this),g(this,u,ot).call(this);for(let a of c)g(this,y,it).call(this,a);const s=new Map,o=this.shadowRoot.querySelector("slot:not([name])");o==null||o.addEventListener("slotchange",()=>{const a=new Map(s);o.assignedElements().filter(l=>["track","source"].includes(l.localName)).forEach(async l=>{var H,G;a.delete(l);let T=s.get(l);T||(T=l.cloneNode(),s.set(l,T)),this.loadComplete&&!this.isLoaded&&await this.loadComplete,(G=(H=this.nativeEl).append)==null||G.call(H,T)}),a.forEach(l=>l.remove())});for(let a of this.constructor.Events)(A=(m=this.shadowRoot).addEventListener)==null||A.call(m,a,l=>{l.target===this.nativeEl&&this.dispatchEvent(new CustomEvent(l.type,{detail:l.detail}))},!0)},y=new WeakSet,it=function(s){if(Object.prototype.hasOwnProperty.call(this,s)){const o=this[s];delete this[s],this[s]=o}},n=new WeakSet,st=function(){const s=document.createElement(t,{is:i});s.muted=this.hasAttribute("muted");for(let{name:o,value:m}of this.attributes)s.setAttribute(o,m);M(this,L,{});for(let o of J(s))P(this,L)[o]=s[o];s.removeAttribute("src"),s.load()},u=new WeakSet,ot=async function(){if(this.loadComplete&&!this.isLoaded&&await this.loadComplete,!this.nativeEl){const s=document.createElement(t,{is:i});s.part=t,this.shadowRoot.append(s)}this.nativeEl.muted=this.hasAttribute("muted")},w=new WeakSet,nt=async function(){var s;P(this,S)&&(this.loadComplete=new K),M(this,S,!0),await Promise.resolve(),await this.load(),(s=this.loadComplete)==null||s.resolve(),await this.loadComplete},N=new WeakSet,rt=async function(s,o,m){var A,a,l,T;this.loadComplete&&!this.isLoaded&&await this.loadComplete,!["id","class",...this.constructor.skipAttributes].includes(s)&&(m===null?(a=(A=this.nativeEl).removeAttribute)==null||a.call(A,s):(T=(l=this.nativeEl).setAttribute)==null||T.call(l,s,m))},p(h,R),x(h,"Events",ht),x(h,"template",D),x(h,"skipAttributes",[]),p(h,E,void 0),h};function J(e){let t=[];for(let i=Object.getPrototypeOf(e);i&&i!==HTMLElement.prototype;i=Object.getPrototypeOf(i))t.push(...Object.getOwnPropertyNames(i));return t}class K extends Promise{constructor(t=()=>{}){let i,r;super((c,v)=>{t(c,v),i=c,r=v}),this.resolve=i,this.reject=r}}const pt=globalThis.document?tt(HTMLElement,{tag:"video"}):class{};globalThis.document&&tt(HTMLElement,{tag:"audio"});var Q,V;const W=(Q=globalThis.document)==null?void 0:Q.createElement("template");W&&(W.innerHTML=`
|
|
18
|
+
<div class="wistia_embed"></div>
|
|
19
|
+
`);const F=(V=globalThis.document)==null?void 0:V.createElement("template");F&&(F.innerHTML=`
|
|
20
|
+
<style>
|
|
21
|
+
:host {
|
|
22
|
+
display: inline-block;
|
|
23
|
+
min-width: 300px;
|
|
24
|
+
min-height: 150px;
|
|
25
|
+
position: relative;
|
|
26
|
+
}
|
|
27
|
+
::slotted(.wistia_embed) {
|
|
28
|
+
position: absolute;
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 100%;
|
|
31
|
+
}
|
|
32
|
+
</style>
|
|
33
|
+
<slot></slot>
|
|
34
|
+
`);class I extends pt{get nativeEl(){var t;return((t=this.api)==null?void 0:t.elem())??this.querySelector("video")}async load(){var t;if((t=this.querySelector(".wistia_embed"))==null||t.remove(),!this.src)return;await new Promise(E=>setTimeout(E,50));const i=/(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/i,r=this.src.match(i)[1],c={autoPlay:this.autoplay,preload:this.preload??"metadata",playsinline:this.playsInline,endVideoBehavior:this.loop&&"loop",chromeless:!this.controls,playButton:this.controls,muted:this.defaultMuted};this.append(W.content.cloneNode(!0));const v=this.querySelector(".wistia_embed");v.id||(v.id=vt(r)),v.classList.add(`wistia_async_${r}`),await ft("https://fast.wistia.com/assets/external/E-v1.js","Wistia"),this.api=await new Promise(E=>{globalThis._wq.push({id:v.id,onReady:E,options:c})})}async attributeChangedCallback(t,i,r){if(t==="controls"){switch(await this.loadComplete,t){case"controls":this.api.bigPlayButtonEnabled(this.controls),this.controls?this.api.releaseChromeless():this.api.requestChromeless();break}return}super.attributeChangedCallback(t,i,r)}get duration(){var t;return(t=this.api)==null?void 0:t.duration()}play(){return this.api.play(),new Promise(t=>this.addEventListener("playing",t))}}x(I,"template",F),x(I,"skipAttributes",["src"]);const B={};async function ft(e,t){return t?B[e]?B[e]:self[t]?self[t]:B[e]=new Promise((i,r)=>{const c=document.createElement("script");c.defer=!0,c.src=e,c.onload=()=>i(self[t]),c.onerror=r,document.head.append(c)}):ut(()=>import(e),[])}let mt=0;function vt(e){const t=++mt;return`${e}${t}`}globalThis.customElements&&!globalThis.customElements.get("wistia-video")&&globalThis.customElements.define("wistia-video",I);var bt=I,yt=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),wt={className:"class",htmlFor:"for"};function at(e){return e.toLowerCase()}function X(e){if(typeof e=="boolean")return e?"":void 0;if(typeof e!="function"&&!(typeof e=="object"&&e!==null))return e}function gt({react:e,tagName:t,elementClass:i,events:r,displayName:c,defaultProps:v,toAttributeName:h=at,toAttributeValue:E=X}){const R=Number.parseInt(e.version)>=19,U=e.forwardRef((k,C)=>{var S,_;const f=e.useRef(null),L=e.useRef(new Map),b={},z={},y={},q={};for(const[n,d]of Object.entries(k)){if(yt.has(n)){y[n]=d;continue}const u=h(wt[n]??n);if(i.prototype&&n in i.prototype&&!(n in(((S=globalThis.HTMLElement)==null?void 0:S.prototype)??{}))&&!((_=i.observedAttributes)!=null&&_.some(w=>w===u))){q[n]=d;continue}if(n.startsWith("on")){b[n]=d;continue}const O=E(d);if(u&&O!=null&&(z[u]=String(O),R||(y[u]=O)),u&&R){const w=X(d);O!==w?y[u]=O:y[u]=d}}if(typeof window<"u"){for(const n in b){const d=b[n],u=n.endsWith("Capture"),O=((r==null?void 0:r[n])??n.slice(2).toLowerCase()).slice(0,u?-7:void 0);e.useLayoutEffect(()=>{const w=f==null?void 0:f.current;if(!(!w||typeof d!="function"))return w.addEventListener(O,d,u),()=>{w.removeEventListener(O,d,u)}},[f==null?void 0:f.current,d])}e.useLayoutEffect(()=>{if(f.current===null)return;const n=new Map;for(const d in q)Y(f.current,d,q[d]),L.current.delete(d),n.set(d,q[d]);for(const[d,u]of L.current)Y(f.current,d,void 0);L.current=n})}if(typeof window>"u"&&(i!=null&&i.getTemplateHTML)&&(i!=null&&i.shadowRootOptions)){const{mode:n,delegatesFocus:d}=i.shadowRootOptions,u=e.createElement("template",{shadowrootmode:n,shadowrootdelegatesfocus:d,dangerouslySetInnerHTML:{__html:i.getTemplateHTML(z,k)}});y.children=[u,y.children]}return e.createElement(t,{...v,...y,ref:e.useCallback(n=>{f.current=n,typeof C=="function"?C(n):C!==null&&(C.current=n)},[C])})});return U.displayName=c??i.name,U}function Y(e,t,i){var r;e[t]=i,i==null&&t in(((r=globalThis.HTMLElement)==null?void 0:r.prototype)??{})&&e.removeAttribute(t)}var Lt=gt({react:ct,tagName:"wistia-video",elementClass:bt,toAttributeName(e){return e==="muted"?"":e==="defaultMuted"?"muted":at(e)}});/*! Bundled license information:
|
|
35
|
+
|
|
36
|
+
ce-la-react/dist/ce-la-react.js:
|
|
37
|
+
(**
|
|
38
|
+
* @license
|
|
39
|
+
* Copyright 2018 Google LLC
|
|
40
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
41
|
+
*
|
|
42
|
+
* Modified version of `@lit/react` for vanilla custom elements with support for SSR.
|
|
43
|
+
*)
|
|
44
|
+
*/export{Lt as default};
|