@outmarket-ai/react-sdk 0.1.0-alpha.8 → 0.2.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +61 -1
- package/dist/index.d.ts +8 -2
- package/dist/index.js +1 -1
- package/dist/pdf.worker.min.mjs +2 -21
- package/dist/styles.css +1 -11
- package/package.json +11 -5
- package/dist/AddNoteDialog-CtI_gK37.js +0 -1
- package/dist/AlertDialog-CDCLewdq.js +0 -1
- package/dist/ApproveWorkflowsList-gQPUKmsu.js +0 -5
- package/dist/BORLetterEditor-CtC1RNsd.js +0 -119
- package/dist/BillDetailModal-CSpiLdgX.js +0 -1
- package/dist/CoiIssueHolderModal-AqiyBjQB.js +0 -1
- package/dist/DeletePromptDialog-BW7-t3_K.js +0 -1
- package/dist/EmailFormatSelectionDialog-Bhd6XCR9.js +0 -1
- package/dist/ExcelExportPreviewDialog-9yQjpEkL.js +0 -1
- package/dist/ExplainPanel-BCrxH-TO.js +0 -1
- package/dist/ExportDialog-CmXbHvzi.js +0 -30
- package/dist/ExportToAmsDialog-D_sLtoUw.js +0 -1
- package/dist/ExportToDriveDialog-9RqwCXvf.js +0 -1
- package/dist/FeedbackTool-C-rdNsQg.js +0 -30
- package/dist/LayerDetailModal-FaHB2Fwo.js +0 -1
- package/dist/LogoEditor-CWAjO24l.js +0 -1
- package/dist/MarkdownExportPreviewDialog-B0hq98OI.js +0 -5
- package/dist/NotificationDrawer-DgXso6g6.js +0 -7
- package/dist/PhoneNumbersDisplay-DDVahO0Y.js +0 -1
- package/dist/PlanSelector-DuJ2COOd.js +0 -26
- package/dist/PlanSettingsModal-CKt_38mR.js +0 -1
- package/dist/PlanWizardModal-BRqRx_zd.js +0 -1
- package/dist/RenameAssetDialog-8tVgvt3e.js +0 -1
- package/dist/SaveBlockDialog-C-XzIiXh.js +0 -1
- package/dist/SaveOutlineDialog-D4Qf8r76.js +0 -1
- package/dist/SavePromptDialog-DnSn86Xo.js +0 -1
- package/dist/ShareResourceDialog-CyJhB5mN.js +0 -1
- package/dist/TermsNoticeModal-BP7Xzyhm.js +0 -1
- package/dist/TowerAlertModal-xd7eZMIG.js +0 -1
- package/dist/TowerSummaryModal-BUFMF3A_.js +0 -1
- package/dist/VaultSettingsDialog-F6t83h6l.js +0 -1
- package/dist/ViewNoteDialog-DwfqHxX1.js +0 -1
- package/dist/WhatsNewProvider-CK0qY7YM.js +0 -36
- package/dist/WidgetRawDataView-Cw5pYPdW.js +0 -1
- package/dist/abap-BigKSa9N.js +0 -1
- package/dist/abnf-BEKfesOh.js +0 -1
- package/dist/actionscript-BnYqs9d1.js +0 -1
- package/dist/activityLog-BM7Ys0nb.js +0 -1
- package/dist/ada-2chomyqz.js +0 -1
- package/dist/agda-DTLXyPqy.js +0 -1
- package/dist/al-DRkhEx34.js +0 -1
- package/dist/antlr4-DDcUto5E.js +0 -1
- package/dist/apacheconf-CfJR2qHt.js +0 -1
- package/dist/apex-CGjyJzwB.js +0 -1
- package/dist/apl-D69Jjkp7.js +0 -1
- package/dist/applescript-CoKpps5B.js +0 -1
- package/dist/aql-BqUPvvHz.js +0 -1
- package/dist/arduino-C4cnBiGd.js +0 -1
- package/dist/arff-Ccd9Pakj.js +0 -1
- package/dist/asciidoc-BYegHcbW.js +0 -1
- package/dist/asm6502-BDaaQVIG.js +0 -1
- package/dist/asmatmel-C6P_xAbC.js +0 -1
- package/dist/aspnet-DOhXlT7M.js +0 -1
- package/dist/autohotkey-DvjRUflM.js +0 -1
- package/dist/autoit-Dcj5pjfb.js +0 -1
- package/dist/avisynth-BDCVHRAQ.js +0 -1
- package/dist/avro-idl-CEV-UGbG.js +0 -1
- package/dist/bash-ByvLEQlI.js +0 -1
- package/dist/bash-Jzmc6JlP.js +0 -1
- package/dist/basic-CC56mfFq.js +0 -1
- package/dist/basic-ls-wiqfo.js +0 -1
- package/dist/batch-ss5XsQIU.js +0 -1
- package/dist/bbcode-DAkvoCH-.js +0 -1
- package/dist/bell-DqiMrNBx.js +0 -7
- package/dist/bicep-BG_rbI36.js +0 -1
- package/dist/birb-BgYNM4Pn.js +0 -1
- package/dist/bison-0I-Wg9Pc.js +0 -1
- package/dist/blockEditorContent-CaeAHPm0.js +0 -166
- package/dist/bnf-B_0dznK9.js +0 -1
- package/dist/brainfuck-BisSTe70.js +0 -1
- package/dist/brightscript-FDH5YSTo.js +0 -1
- package/dist/bro-2B9t-bP5.js +0 -1
- package/dist/bsl-aIN2VVV1.js +0 -1
- package/dist/c-DA5TVlGb.js +0 -1
- package/dist/c-DxU1mQAV.js +0 -1
- package/dist/calendar-Bh3E9TOa.js +0 -7
- package/dist/cfscript-XDo0eDox.js +0 -1
- package/dist/chaiscript-CTWxrZcm.js +0 -1
- package/dist/cil-D89i6eBC.js +0 -1
- package/dist/clike--ZeWcJ3A.js +0 -1
- package/dist/clike-CStN-Ul5.js +0 -1
- package/dist/clojure-CMCWg_re.js +0 -1
- package/dist/cmake-Bg2gYZ__.js +0 -1
- package/dist/cobol-DwYLmC0z.js +0 -1
- package/dist/coffeescript-jKNXvfQ6.js +0 -1
- package/dist/concurnas-BxkckrkA.js +0 -1
- package/dist/confetti.module-gccwWOTG.js +0 -2
- package/dist/contactsList-vjrRYBPD.js +0 -18
- package/dist/copyPreviewToClipboard-BmYPe99R.js +0 -170
- package/dist/coq-Dadg3jQc.js +0 -1
- package/dist/core-D642znGO.js +0 -9
- package/dist/cpp-BAHXzibF.js +0 -1
- package/dist/cpp-DBmYs6pK.js +0 -1
- package/dist/crystal-BJBx4zfk.js +0 -1
- package/dist/csharp-BSNDnTjx.js +0 -1
- package/dist/csharp-CzFXtKq-.js +0 -1
- package/dist/cshtml-RC67RCZp.js +0 -1
- package/dist/csp-DdcBaGqa.js +0 -1
- package/dist/css-Bl9dOP35.js +0 -1
- package/dist/css-Dr8mrUZQ.js +0 -1
- package/dist/css-extras-BQ4aFk5g.js +0 -1
- package/dist/csv-1jUnSjhX.js +0 -1
- package/dist/cypher-DPkjYFtT.js +0 -1
- package/dist/d-DWIEaiKV.js +0 -1
- package/dist/dart-CrSwIAAl.js +0 -1
- package/dist/dataweave-8-FEDOkr.js +0 -1
- package/dist/dax-ClTqwT3r.js +0 -1
- package/dist/dhall-1x4hqvo9.js +0 -1
- package/dist/diff-B4I3FKw8.js +0 -3
- package/dist/django-CoLVd_OV.js +0 -1
- package/dist/dns-zone-file-B2KtUizB.js +0 -1
- package/dist/docker-DuiH_UdX.js +0 -1
- package/dist/dot-C2lF4s5C.js +0 -1
- package/dist/ebnf-0WeNGLY2.js +0 -1
- package/dist/editCarrierDialog-D8l5Zkqs.js +0 -1
- package/dist/editorconfig-m5rFhjF3.js +0 -1
- package/dist/eiffel-3Dh2kC0E.js +0 -1
- package/dist/ejs-BnCRSbOY.js +0 -1
- package/dist/elixir-CmgpudFb.js +0 -1
- package/dist/elm-B95NdPu4.js +0 -1
- package/dist/erb-_vDPqKB-.js +0 -1
- package/dist/erlang-C9B1Kx_G.js +0 -1
- package/dist/etlua-B7hEAAwg.js +0 -1
- package/dist/excel-formula-By4pLUZC.js +0 -1
- package/dist/exportFileGeneration-6fmb_tx0.js +0 -1
- package/dist/exportImageReadiness-4DNgsDvg.js +0 -1
- package/dist/exportImageReadinessNotifier-Cs2rfFjc.js +0 -1
- package/dist/exportPageHtml-BqFWTnEr.js +0 -5
- package/dist/exportPreviewToDocx-CxKmJOqe.js +0 -11
- package/dist/exportPreviewToPdf-Cv8DTpKD.js +0 -1
- package/dist/factor-Cv9tR1SR.js +0 -1
- package/dist/false-DOZHi-aq.js +0 -1
- package/dist/firestore-security-rules-NYVjMKAl.js +0 -1
- package/dist/flask-conical-DpitmQtV.js +0 -7
- package/dist/flow-C-49d_tB.js +0 -1
- package/dist/fortran-CdiJrZyz.js +0 -1
- package/dist/fsharp-C14gmM5p.js +0 -1
- package/dist/ftl-MX-RQzr7.js +0 -1
- package/dist/gap-CB7uoA88.js +0 -1
- package/dist/gcode-BC_-ipdZ.js +0 -1
- package/dist/gdscript-DyBYFPqm.js +0 -1
- package/dist/gedcom-BYnrtsDd.js +0 -1
- package/dist/gherkin-MvPsMZmW.js +0 -1
- package/dist/git-DSS8FvZZ.js +0 -1
- package/dist/glsl-GPyVYkxf.js +0 -1
- package/dist/gml-Dm54KvUs.js +0 -1
- package/dist/gn-t9O2QGL1.js +0 -1
- package/dist/go-CYGjl6kj.js +0 -1
- package/dist/go-module-DRbnf0cn.js +0 -1
- package/dist/graphql-BzZg4Qwb.js +0 -1
- package/dist/groovy-C4KhwcqI.js +0 -1
- package/dist/haml-CdBkE7y6.js +0 -1
- package/dist/handlebars-Z4lCsQhM.js +0 -1
- package/dist/haskell-LuiK7YZl.js +0 -1
- package/dist/haskell-fKcSYgFk.js +0 -1
- package/dist/haxe-Zw6q4JKZ.js +0 -1
- package/dist/hcl-BLOrpNqb.js +0 -1
- package/dist/highlighter-c4HdBTFz.js +0 -7
- package/dist/hlsl-C4fU7plE.js +0 -1
- package/dist/hoon-gGIQ6Dkx.js +0 -1
- package/dist/hpkp-DtmiqChs.js +0 -1
- package/dist/hsts-B1Tmkew4.js +0 -1
- package/dist/http-Bs3t9rtJ.js +0 -1
- package/dist/ichigojam-pQVgmhYa.js +0 -1
- package/dist/icon-3FOMR7dH.js +0 -1
- package/dist/icu-message-format-BUr0P3yI.js +0 -1
- package/dist/idris-lDH_n5Xg.js +0 -1
- package/dist/iecst-CqKy9noR.js +0 -1
- package/dist/ignore-CTAyeFmo.js +0 -1
- package/dist/image-plus-CfFQ94Dn.js +0 -7
- package/dist/index-7Bvh8xSP.js +0 -3
- package/dist/index-ANHSUwCh.js +0 -1
- package/dist/index-BXTkj5Ak.js +0 -1
- package/dist/index-BYll8ylX.js +0 -2
- package/dist/index-Baw4I3pJ.js +0 -1
- package/dist/index-BlyRtISc.js +0 -1
- package/dist/index-D0rFU7Uv.js +0 -1
- package/dist/index-uRfHkpFY.js +0 -13
- package/dist/index.client-Butbf4aW.js +0 -501
- package/dist/inform7-BoUMB1D5.js +0 -1
- package/dist/ini-CCzIyMfH.js +0 -1
- package/dist/io-B2_1aGUA.js +0 -1
- package/dist/j-xA_DUOS8.js +0 -1
- package/dist/java-CZIvhO6U.js +0 -1
- package/dist/java-D9Q8lVB9.js +0 -1
- package/dist/javadoc-CEHCIazZ.js +0 -1
- package/dist/javadoclike-DwY6wGSo.js +0 -1
- package/dist/javadoclike-odLU89VS.js +0 -1
- package/dist/javascript-CEunhhi4.js +0 -1
- package/dist/javascript-DiwhnYcG.js +0 -1
- package/dist/javastacktrace-pznAVNA0.js +0 -1
- package/dist/jexl-DyO8zf5J.js +0 -1
- package/dist/jolie-DmjbNYj5.js +0 -1
- package/dist/jq-BQdchS5O.js +0 -1
- package/dist/js-extras-DUZJMQmp.js +0 -1
- package/dist/js-templates-ElrBZ4Jj.js +0 -1
- package/dist/jsdoc-DDY_r3XT.js +0 -1
- package/dist/json-D4kK7Ph_.js +0 -1
- package/dist/json-Dzxqqkw_.js +0 -1
- package/dist/json5-BQCDImut.js +0 -1
- package/dist/jsonp-1nF5d-m0.js +0 -1
- package/dist/jsstacktrace-Czz9f9TU.js +0 -1
- package/dist/jsx-DWljo3VN.js +0 -1
- package/dist/jsx-DjXnni8N.js +0 -1
- package/dist/julia-CgJyRSoZ.js +0 -1
- package/dist/keepalived-CKgtcYPy.js +0 -1
- package/dist/keyman-B5dUl8kS.js +0 -1
- package/dist/kotlin-4Ach-elT.js +0 -1
- package/dist/kumir-C39UWCtm.js +0 -1
- package/dist/kusto-BXtE2zdp.js +0 -1
- package/dist/latex-BQGmGHxE.js +0 -1
- package/dist/latte-BOFejG7p.js +0 -1
- package/dist/less-BX5L49KW.js +0 -1
- package/dist/lilypond-DPahznE-.js +0 -1
- package/dist/link-2-off-CMbHcTf_.js +0 -7
- package/dist/liquid-Cw9vTIA8.js +0 -1
- package/dist/lisp-CzmgnmUB.js +0 -1
- package/dist/livescript-DboYDqCd.js +0 -1
- package/dist/llvm-CasUVKDw.js +0 -1
- package/dist/lock-keyhole-skFCqrBJ.js +0 -7
- package/dist/log-DV1uFCzE.js +0 -1
- package/dist/lolcode-DFzEO90r.js +0 -1
- package/dist/lua-BeIBSVZf.js +0 -1
- package/dist/lua-ChXESMGf.js +0 -1
- package/dist/lucide-react-Dan38t30.js +0 -7
- package/dist/luckyexcel.umd-CsZuNgrx.js +0 -12
- package/dist/magma-D1C3mHFR.js +0 -1
- package/dist/makefile-yrEONDTY.js +0 -1
- package/dist/markdown-C6L9M0GJ.js +0 -1
- package/dist/markup-BNcl78br.js +0 -1
- package/dist/markup-C46YaeBf.js +0 -1
- package/dist/markup-templating-CAdeHZjM.js +0 -1
- package/dist/markup-templating-RD0xxf_6.js +0 -1
- package/dist/matlab-BikbQ3P2.js +0 -1
- package/dist/maxscript-CfOquEzh.js +0 -1
- package/dist/mel-DwFsKvA4.js +0 -1
- package/dist/mermaid-CuO9em6F.js +0 -1
- package/dist/mizar-YuVnMTcD.js +0 -1
- package/dist/mongodb-CJC50hN4.js +0 -1
- package/dist/monkey-C0tN6iOw.js +0 -1
- package/dist/moonscript-B5NmiNug.js +0 -1
- package/dist/n1ql-C_BTxR_c.js +0 -1
- package/dist/n4js-CWusHex8.js +0 -1
- package/dist/nand2tetris-hdl-C7unHrcs.js +0 -1
- package/dist/naniscript-nVkx-cYy.js +0 -1
- package/dist/nasm-BDM7idC1.js +0 -1
- package/dist/neon-CnVTuon3.js +0 -1
- package/dist/nevod-CYuH-ySb.js +0 -1
- package/dist/nginx-lQiVIXkB.js +0 -1
- package/dist/nim-CRlcXtJ9.js +0 -1
- package/dist/nix-ChwdhUur.js +0 -1
- package/dist/nsis-BfTALRZP.js +0 -1
- package/dist/objectivec-BSrWJQWY.js +0 -1
- package/dist/ocaml-X1xISUjg.js +0 -1
- package/dist/opencl-C_OU6qPJ.js +0 -1
- package/dist/openqasm-CMiI3r9f.js +0 -1
- package/dist/oz-CUf7bFcn.js +0 -1
- package/dist/paintbrush-B_X7HjOd.js +0 -7
- package/dist/parigp-BVxcUg_C.js +0 -1
- package/dist/parser-C95naRnb.js +0 -1
- package/dist/pascal-CBBBasGg.js +0 -1
- package/dist/pascaligo-CWXvUYF0.js +0 -1
- package/dist/pcaxis-DnIDNGMw.js +0 -1
- package/dist/pen-tool-BdZiFVJ6.js +0 -7
- package/dist/peoplecode-Cae0EjdQ.js +0 -1
- package/dist/perl-TkSaDmje.js +0 -1
- package/dist/php-CGiqlrR_.js +0 -1
- package/dist/php-D0A5Cwxv.js +0 -1
- package/dist/php-extras-BAy5MOU1.js +0 -1
- package/dist/phpdoc-Dxo-DmkJ.js +0 -1
- package/dist/plsql-CX-1gCkd.js +0 -1
- package/dist/plyr-gOKkmcqP.js +0 -2
- package/dist/powerquery-DcMps1jW.js +0 -1
- package/dist/powershell-Cx-jb2qD.js +0 -1
- package/dist/processing-BjBT8hyL.js +0 -1
- package/dist/prolog-BTZeSK5I.js +0 -1
- package/dist/promql-BHleUnWL.js +0 -1
- package/dist/properties-CBor_cSr.js +0 -1
- package/dist/protobuf-DJWscUIM.js +0 -1
- package/dist/psl-BxdcX3BL.js +0 -1
- package/dist/pug-DclmtQmP.js +0 -1
- package/dist/puppet-jaG0CSXm.js +0 -1
- package/dist/pure-C69IVJc3.js +0 -1
- package/dist/purebasic-DIC-A5ep.js +0 -1
- package/dist/purescript-BUNAfPC-.js +0 -1
- package/dist/python-rIkUqkQ0.js +0 -1
- package/dist/q-Cstncgn0.js +0 -1
- package/dist/qml-CL3VBB9P.js +0 -1
- package/dist/qore-B-amTDNq.js +0 -1
- package/dist/qsharp-B5BHMvCC.js +0 -1
- package/dist/quill-B-naCi4q.js +0 -49
- package/dist/r-APudhEur.js +0 -1
- package/dist/racket-CVuEe0Tl.js +0 -1
- package/dist/react-sdk.css +0 -7
- package/dist/reason-rBd1jIdG.js +0 -1
- package/dist/regex-B-MxZiYP.js +0 -1
- package/dist/rego-zUUwRzpM.js +0 -1
- package/dist/renpy-BuTRu9-N.js +0 -1
- package/dist/rest-CuAMHAW1.js +0 -1
- package/dist/rip-qjJiVkq_.js +0 -1
- package/dist/roboconf-CyLJe0f8.js +0 -1
- package/dist/robotframework-ejhk4yJi.js +0 -1
- package/dist/ruby-3lCor9Ik.js +0 -1
- package/dist/ruby-Cwm614mA.js +0 -1
- package/dist/runtime-CibjLEeg.js +0 -6691
- package/dist/rust-DuMYvT1v.js +0 -1
- package/dist/sas-Dq5ROmS5.js +0 -1
- package/dist/sass-CT7CA30X.js +0 -1
- package/dist/scala-C8kOt561.js +0 -1
- package/dist/scheme-CNuKRS_6.js +0 -1
- package/dist/scheme-DkN0sF0_.js +0 -1
- package/dist/scss-Br-uSdM8.js +0 -1
- package/dist/shell-session-BPKy2Ckf.js +0 -1
- package/dist/smali-CXHHrEeQ.js +0 -1
- package/dist/smalltalk-DNqgAHMK.js +0 -1
- package/dist/smarty-DjHYZDHb.js +0 -1
- package/dist/sml-DRHzgHNn.js +0 -1
- package/dist/solidity-ADULtXu_.js +0 -1
- package/dist/solution-file-DE2F1vOl.js +0 -1
- package/dist/soy-B0jOfz80.js +0 -1
- package/dist/sparql-ClksZgj3.js +0 -1
- package/dist/splunk-spl-D7alx5ZN.js +0 -1
- package/dist/sqf-B5a31L0s.js +0 -1
- package/dist/sql-aYT6xcy6.js +0 -1
- package/dist/sql-iuoHJ8bA.js +0 -1
- package/dist/squirrel-CyCLIa4Y.js +0 -1
- package/dist/stan-wgky0trQ.js +0 -1
- package/dist/stylus-DIcwztzA.js +0 -1
- package/dist/swift-CKBzYtqx.js +0 -1
- package/dist/systemd-pIM4bqVc.js +0 -2
- package/dist/t4-cs-IfbZM4JS.js +0 -1
- package/dist/t4-templating-BzJ2F4We.js +0 -1
- package/dist/t4-templating-DGcfhvVA.js +0 -1
- package/dist/t4-vb-Cye0aSSV.js +0 -1
- package/dist/table-DN2koBCx.js +0 -7
- package/dist/tableToMarkdown-CNmfuY27.js +0 -3
- package/dist/tap-BhTyrvey.js +0 -1
- package/dist/tcl-DmjKcL1J.js +0 -1
- package/dist/templateSelectorDialog-BX2-EJvZ.js +0 -2
- package/dist/textile-_ilJnCXS.js +0 -1
- package/dist/toml-BbjsRWrK.js +0 -1
- package/dist/tremor-CN2Ht8wM.js +0 -1
- package/dist/tsx-CZycUjyE.js +0 -1
- package/dist/tt2-CxJcLeDR.js +0 -1
- package/dist/turtle-BfhtjCXi.js +0 -1
- package/dist/turtle-BflTzccL.js +0 -1
- package/dist/twig-7UfrcV8Q.js +0 -1
- package/dist/typescript-CWeb9VVb.js +0 -1
- package/dist/typescript-y5LBWDhp.js +0 -1
- package/dist/typoscript-ET-mHbFM.js +0 -1
- package/dist/unrealscript-B1Y3_VNT.js +0 -1
- package/dist/uorazor-BVmb_lng.js +0 -1
- package/dist/uri-jbUzxzsV.js +0 -1
- package/dist/usePromptLibraryMutations-DQBI3ONR.js +0 -1
- package/dist/useSupabaseBlobUrl-CxUoSWWI.js +0 -1
- package/dist/useTermsNotice-BSpg3LAO.js +0 -1
- package/dist/user-plus-Dj7lKnj0.js +0 -7
- package/dist/user-round-plus-D5xAPK10.js +0 -7
- package/dist/v-C8TFFdxb.js +0 -1
- package/dist/vala-C9GyKzEF.js +0 -1
- package/dist/vbnet-B9cwVitP.js +0 -1
- package/dist/vbnet-LHlE90my.js +0 -1
- package/dist/velocity-DFvFsaxo.js +0 -1
- package/dist/verilog-k1spd5cM.js +0 -1
- package/dist/vhdl-O3rPSkCA.js +0 -1
- package/dist/vim-CmotMnrj.js +0 -1
- package/dist/visual-basic-0XAKyAK4.js +0 -1
- package/dist/warpscript-nADAJd0E.js +0 -1
- package/dist/wasm-K9_P5vbl.js +0 -1
- package/dist/web-idl-npQgudyp.js +0 -1
- package/dist/wiki-DThAp1y0.js +0 -1
- package/dist/wolfram-DtbTHzjH.js +0 -1
- package/dist/wren-CYQqTQWB.js +0 -1
- package/dist/xeora-dwv5x1j8.js +0 -1
- package/dist/xlsx-uaO0TYvF.js +0 -142
- package/dist/xml-doc-Du_R6ixA.js +0 -1
- package/dist/xojo-MYL7sEQ5.js +0 -1
- package/dist/xquery-BcdvyyBB.js +0 -1
- package/dist/yaml-CR6k8AEh.js +0 -1
- package/dist/yaml-GRhlHhYd.js +0 -1
- package/dist/yang-CRntRkKI.js +0 -1
- package/dist/zig-DgOGGGG3.js +0 -1
package/dist/plyr-gOKkmcqP.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var ft=Object.defineProperty,yt=(e,i,t)=>i in e?ft(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t,m=(e,i,t)=>yt(e,typeof i!="symbol"?i+"":i,t);import{dy as bt}from"./runtime-CibjLEeg.js";function vt(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}function Oe(e,i){for(var t=0;t<i.length;t++){var s=i[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function wt(e,i,t){return i&&Oe(e.prototype,i),t&&Oe(e,t),e}function kt(e,i,t){return i in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}function _e(e,i){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);i&&(s=s.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,s)}return t}function je(e){for(var i=1;i<arguments.length;i++){var t=arguments[i]!=null?arguments[i]:{};i%2?_e(Object(t),!0).forEach((function(s){kt(e,s,t[s])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_e(Object(t)).forEach((function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(t,s))}))}return e}var De={addCSS:!0,thumbWidth:15,watch:!0};function Tt(e,i){return(function(){return Array.from(document.querySelectorAll(i)).includes(this)}).call(e,i)}function Ct(e,i){if(e&&i){var t=new Event(i,{bubbles:!0});e.dispatchEvent(t)}}var Q=function(e){return e!=null?e.constructor:null},fe=function(e,i){return!!(e&&i&&e instanceof i)},He=function(e){return e==null},Re=function(e){return Q(e)===Object},At=function(e){return Q(e)===Number&&!Number.isNaN(e)},qe=function(e){return Q(e)===String},St=function(e){return Q(e)===Boolean},Et=function(e){return Q(e)===Function},Fe=function(e){return Array.isArray(e)},Ve=function(e){return fe(e,NodeList)},Pt=function(e){return fe(e,Element)},Mt=function(e){return fe(e,Event)},Nt=function(e){return He(e)||(qe(e)||Fe(e)||Ve(e))&&!e.length||Re(e)&&!Object.keys(e).length},D={nullOrUndefined:He,object:Re,number:At,string:qe,boolean:St,function:Et,array:Fe,nodeList:Ve,element:Pt,event:Mt,empty:Nt};function xt(e){var i="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return i?Math.max(0,(i[1]?i[1].length:0)-(i[2]?+i[2]:0)):0}function Lt(e,i){if(1>i){var t=xt(i);return parseFloat(e.toFixed(t))}return Math.round(e/i)*i}var It=(function(){function e(i,t){vt(this,e),D.element(i)?this.element=i:D.string(i)&&(this.element=document.querySelector(i)),D.element(this.element)&&D.empty(this.element.rangeTouch)&&(this.config=je({},De,{},t),this.init())}return wt(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(i){var t=this,s=i?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach((function(a){t.element[s](a,(function(n){return t.set(n)}),!1)}))}},{key:"get",value:function(i){if(!e.enabled||!D.event(i))return null;var t,s=i.target,a=i.changedTouches[0],n=parseFloat(s.getAttribute("min"))||0,r=parseFloat(s.getAttribute("max"))||100,o=parseFloat(s.getAttribute("step"))||1,c=s.getBoundingClientRect(),u=100/c.width*(this.config.thumbWidth/2)/100;return 0>(t=100/c.width*(a.clientX-c.left))?t=0:100<t&&(t=100),50>t?t-=(100-2*t)*u:50<t&&(t+=2*(t-50)*u),n+Lt(t/100*(r-n),o)}},{key:"set",value:function(i){e.enabled&&D.event(i)&&!i.target.disabled&&(i.preventDefault(),i.target.value=this.get(i),Ct(i.target,i.type==="touchend"?"change":"input"))}}],[{key:"setup",value:function(i){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},s=null;if(D.empty(i)||D.string(i)?s=Array.from(document.querySelectorAll(D.string(i)?i:'input[type="range"]')):D.element(i)?s=[i]:D.nodeList(i)?s=Array.from(i):D.array(i)&&(s=i.filter(D.element)),D.empty(s))return null;var a=je({},De,{},t);if(D.string(i)&&a.watch){var n=new MutationObserver((function(r){Array.from(r).forEach((function(o){Array.from(o.addedNodes).forEach((function(c){D.element(c)&&Tt(c,i)&&new e(c,a)}))}))}));n.observe(document.body,{childList:!0,subtree:!0})}return s.map((function(r){return new e(r,t)}))}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e})();const J=e=>e!==null&&typeof e<"u"?e.constructor:null,U=(e,i)=>!!(e&&i&&e instanceof i),ye=e=>e===null||typeof e>"u",Ue=e=>J(e)===Object,$t=e=>J(e)===Number&&!Number.isNaN(e),re=e=>J(e)===String,Ot=e=>J(e)===Boolean,We=e=>typeof e=="function",Be=e=>Array.isArray(e),_t=e=>U(e,WeakMap),ze=e=>U(e,NodeList),jt=e=>J(e)===Text,Dt=e=>U(e,Event),Ht=e=>U(e,KeyboardEvent),Rt=e=>U(e,window.TextTrackCue)||U(e,window.VTTCue),qt=e=>U(e,TextTrack)||!ye(e)&&re(e.kind),Ft=e=>U(e,Promise)&&We(e.then);function Vt(e){return e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.style=="object"&&typeof e.ownerDocument=="object"}function Ke(e){return ye(e)||(re(e)||Be(e)||ze(e))&&!e.length||Ue(e)&&!Object.keys(e).length}function Ut(e){if(U(e,window.URL))return!0;if(!re(e))return!1;let i=e;(!e.startsWith("http://")||!e.startsWith("https://"))&&(i=`http://${e}`);try{return!Ke(new URL(i).hostname)}catch{return!1}}const l={nullOrUndefined:ye,object:Ue,number:$t,string:re,boolean:Ot,function:We,array:Be,weakMap:_t,nodeList:ze,element:Vt,textNode:jt,event:Dt,keyboardEvent:Ht,cue:Rt,track:qt,promise:Ft,url:Ut,empty:Ke},be=(()=>{const e=document.createElement("span"),i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},t=Object.keys(i).find(s=>e.style[s]!==void 0);return l.string(t)?i[t]:!1})();function Ye(e,i){setTimeout(()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch{}},i)}function Wt(e){return JSON.parse(JSON.stringify(e))}function Xe(e,i){return i.split(".").reduce((t,s)=>t&&t[s],e)}function x(e={},...i){if(!i.length)return e;const t=i.shift();return l.object(t)?(Object.keys(t).forEach(s=>{l.object(t[s])?(Object.keys(e).includes(s)||Object.assign(e,{[s]:{}}),x(e[s],t[s])):Object.assign(e,{[s]:t[s]})}),x(e,...i)):e}function Qe(e,i){const t=e.length?e:[e];Array.from(t).reverse().forEach((s,a)=>{const n=a>0?i.cloneNode(!0):i,r=s.parentNode,o=s.nextSibling;n.appendChild(s),o?r.insertBefore(n,o):r.appendChild(n)})}function ve(e,i){!l.element(e)||l.empty(i)||Object.entries(i).filter(([,t])=>!l.nullOrUndefined(t)).forEach(([t,s])=>e.setAttribute(t,s))}function b(e,i,t){const s=document.createElement(e);return l.object(i)&&ve(s,i),l.string(t)&&(s.textContent=t),s}function Bt(e,i){!l.element(e)||!l.element(i)||i.parentNode.insertBefore(e,i.nextSibling)}function Je(e,i,t,s){l.element(i)&&i.appendChild(b(e,t,s))}function W(e){if(l.nodeList(e)||l.array(e)){Array.from(e).forEach(W);return}!l.element(e)||!l.element(e.parentNode)||e.parentNode.removeChild(e)}function oe(e){if(!l.element(e))return;let{length:i}=e.childNodes;for(;i>0;)e.removeChild(e.lastChild),i-=1}function ce(e,i){return!l.element(i)||!l.element(i.parentNode)||!l.element(e)?null:(i.parentNode.replaceChild(e,i),e)}function F(e,i){if(!l.string(e)||l.empty(e))return{};const t={},s=x({},i);return e.split(",").forEach(a=>{const n=a.trim(),r=n.replace(".",""),o=n.replace(/[[\]]/g,"").split("="),[c]=o,u=o.length>1?o[1].replace(/["']/g,""):"";switch(n.charAt(0)){case".":l.string(s.class)?t.class=`${s.class} ${r}`:t.class=r;break;case"#":t.id=n.replace("#","");break;case"[":t[c]=u;break}}),x(s,t)}function K(e,i){if(!l.element(e))return;let t=i;l.boolean(t)||(t=!e.hidden),e.hidden=t}function S(e,i,t){if(l.nodeList(e))return Array.from(e).map(s=>S(s,i,t));if(l.element(e)){let s="toggle";return typeof t<"u"&&(s=t?"add":"remove"),e.classList[s](i),e.classList.contains(i)}return!1}function ue(e,i){return l.element(e)&&e.classList.contains(i)}function Y(e,i){const{prototype:t}=Element;function s(){return Array.from(document.querySelectorAll(i)).includes(this)}return(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||s).call(e,i)}function zt(e,i){const{prototype:t}=Element;function s(){let a=this;do{if(Y.matches(a,i))return a;a=a.parentElement||a.parentNode}while(a!==null&&a.nodeType===1);return null}return(t.closest||s).call(e,i)}function G(e){return this.elements.container.querySelectorAll(e)}function $(e){return this.elements.container.querySelector(e)}function we(e=null,i=!1){l.element(e)&&e.focus({preventScroll:!0,focusVisible:i})}const Ge={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},L={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,i){const t=L[e]||i!=="html5",s=t&&L.rangeInput;return{api:t,ui:s}},pip:document.pictureInPictureEnabled&&!b("video").disablePictureInPicture,airplay:l.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(e){if(l.empty(e))return!1;const[i]=e.split("/");let t=e;if(!this.isHTML5||i!==this.type)return!1;Object.keys(Ge).includes(t)&&(t+=`; codecs="${Ge[e]}"`);try{return!!(t&&this.media.canPlayType(t).replace(/no/,""))}catch{return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const e=document.createElement("input");return e.type="range",e.type==="range"})(),touch:"ontouchstart"in document.documentElement,transitions:be!==!1,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},Kt=(()=>{let e=!1;try{const i=Object.defineProperty({},"passive",{get(){return e=!0,null}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{}return e})();function Z(e,i,t,s=!1,a=!0,n=!1){if(!e||!("addEventListener"in e)||l.empty(i)||!l.function(t))return;const r=i.split(" ");let o=n;Kt&&(o={passive:a,capture:n}),r.forEach(c=>{this&&this.eventListeners&&s&&this.eventListeners.push({element:e,type:c,callback:t,options:o}),e[s?"addEventListener":"removeEventListener"](c,t,o)})}function C(e,i="",t,s=!0,a=!1){Z.call(this,e,i,t,!0,s,a)}function he(e,i="",t,s=!0,a=!1){Z.call(this,e,i,t,!1,s,a)}function ke(e,i="",t,s=!0,a=!1){const n=(...r)=>{he(e,i,n,s,a),t.apply(this,r)};Z.call(this,e,i,n,!0,s,a)}function v(e,i="",t=!1,s={}){if(!l.element(e)||l.empty(i))return;const a=new CustomEvent(i,{bubbles:t,detail:{...s,plyr:this}});e.dispatchEvent(a)}function Yt(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{const{element:i,type:t,callback:s,options:a}=e;i.removeEventListener(t,s,a)}),this.eventListeners=[])}function Xt(){return new Promise(e=>this.ready?setTimeout(e,0):C.call(this,this.elements.container,"ready",e)).then(()=>{})}function V(e){l.promise(e)&&e.then(null,()=>{})}function Te(e){return l.array(e)?e.filter((i,t)=>e.indexOf(i)===t):e}function Ze(e,i){return!l.array(e)||!e.length?null:e.reduce((t,s)=>Math.abs(s-i)<Math.abs(t-i)?s:t)}function et(e){return!window||!window.CSS?!1:window.CSS.supports(e)}const tt=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce((e,[i,t])=>({...e,[i/t]:[i,t]}),{});function it(e){return!l.array(e)&&(!l.string(e)||!e.includes(":"))?!1:(l.array(e)?e:e.split(":")).map(Number).every(l.number)}function de(e){if(!l.array(e)||!e.every(l.number))return null;const[i,t]=e,s=(n,r)=>r===0?n:s(r,n%r),a=s(i,t);return[i/a,t/a]}function Ce(e){const i=s=>it(s)?s.split(":").map(Number):null;let t=i(e);if(t===null&&(t=i(this.config.ratio)),t===null&&!l.empty(this.embed)&&l.array(this.embed.ratio)&&({ratio:t}=this.embed),t===null&&this.isHTML5){const{videoWidth:s,videoHeight:a}=this.media;t=[s,a]}return de(t)}function X(e){if(!this.isVideo)return{};const{wrapper:i}=this.elements,t=Ce.call(this,e);if(!l.array(t))return{};const[s,a]=de(t),n=et(`aspect-ratio: ${s}/${a}`),r=100/s*a;if(n?i.style.aspectRatio=`${s}/${a}`:i.style.paddingBottom=`${r}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const o=100/this.media.offsetWidth*Number.parseInt(window.getComputedStyle(this.media).paddingBottom,10),c=(o-r)/(o/50);this.fullscreen.active?i.style.paddingBottom=null:this.media.style.transform=`translateY(-${c}%)`}else this.isHTML5&&i.classList.add(this.config.classNames.videoFixedRatio);return{padding:r,ratio:t}}function st(e,i,t=.05){const s=e/i,a=Ze(Object.keys(tt),s);return Math.abs(a-s)<=t?tt[a]:[e,i]}function Qt(){const e=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),i=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0);return[e,i]}const B={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(e=>{const i=e.getAttribute("type");return l.empty(i)?!0:L.mime.call(this,i)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:B.getSources.call(this).map(e=>Number(e.getAttribute("size"))).filter(Boolean)},setup(){if(!this.isHTML5)return;const e=this;e.options.speed=e.config.speed.options,l.empty(this.config.ratio)||X.call(e),Object.defineProperty(e.media,"quality",{get(){const i=B.getSources.call(e).find(t=>t.getAttribute("src")===e.source);return i&&Number(i.getAttribute("size"))},set(i){if(e.quality!==i){if(e.config.quality.forced&&l.function(e.config.quality.onChange))e.config.quality.onChange(i);else{const t=B.getSources.call(e).find(c=>Number(c.getAttribute("size"))===i);if(!t)return;const{currentTime:s,paused:a,preload:n,readyState:r,playbackRate:o}=e.media;e.media.src=t.getAttribute("src"),(n!=="none"||r)&&(e.once("loadedmetadata",()=>{e.speed=o,e.currentTime=s,a||V(e.play())}),e.media.load())}v.call(e,e.media,"qualitychange",!1,{quality:i})}}})},cancelRequests(){this.isHTML5&&(W(B.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}},Jt=!!window.document.documentMode,Gt=/Edge/.test(navigator.userAgent),Zt="WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),ei=navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,ti=/iPad|iPhone|iPod/i.test(navigator.userAgent)&&navigator.maxTouchPoints>1,_={isIE:Jt,isEdge:Gt,isWebKit:Zt,isIPadOS:ei,isIos:ti};function ii(e){return`${e}-${Math.floor(Math.random()*1e4)}`}function Ae(e,...i){return l.empty(e)?e:e.toString().replace(/\{(\d+)\}/g,(t,s)=>i[s].toString())}function si(e,i){return e===0||i===0||Number.isNaN(e)||Number.isNaN(i)?0:(e/i*100).toFixed(2)}function ee(e="",i="",t=""){return e.replace(new RegExp(i.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),t.toString())}function nt(e=""){return e.toString().replace(/\w\S*/g,i=>i.charAt(0).toUpperCase()+i.slice(1).toLowerCase())}function ni(e=""){let i=e.toString();return i=ee(i,"-"," "),i=ee(i,"_"," "),i=nt(i),ee(i," ","")}function ai(e=""){let i=e.toString();return i=ni(i),i.charAt(0).toLowerCase()+i.slice(1)}function li(e){const i=document.createDocumentFragment(),t=document.createElement("div");return i.appendChild(t),t.innerHTML=e,i.firstChild.textContent}function ri(e){const i=document.createElement("div");return i.appendChild(e),i.innerHTML}const at={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},O={get(e="",i={}){if(l.empty(e)||l.empty(i))return"";let t=Xe(i.i18n,e);if(l.empty(t))return Object.keys(at).includes(e)?at[e]:"";const s={"{seektime}":i.seekTime,"{title}":i.title};return Object.entries(s).forEach(([a,n])=>{t=ee(t,a,n)}),t}};class ne{constructor(i){m(this,"get",t=>{if(!ne.supported||!this.enabled)return null;const s=window.localStorage.getItem(this.key);if(l.empty(s))return null;const a=JSON.parse(s);return l.string(t)&&t.length?a[t]:a}),m(this,"set",t=>{if(!ne.supported||!this.enabled||!l.object(t))return;let s=this.get();l.empty(s)&&(s={}),x(s,t);try{window.localStorage.setItem(this.key,JSON.stringify(s))}catch{}}),this.enabled=i.config.storage.enabled,this.key=i.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const i="___test";return window.localStorage.setItem(i,i),window.localStorage.removeItem(i),!0}catch{return!1}}}function te(e,i="text",t=!1){return new Promise((s,a)=>{try{const n=new XMLHttpRequest;if(!("withCredentials"in n))return;t&&(n.withCredentials=!0),n.addEventListener("load",()=>{if(i==="text")try{s(JSON.parse(n.responseText))}catch{s(n.responseText)}else s(n.response)}),n.addEventListener("error",()=>{throw new Error(n.status)}),n.open("GET",e,!0),n.responseType=i,n.send()}catch(n){a(n)}})}function lt(e,i){if(!l.string(e))return;const t="cache",s=l.string(i);let a=!1;const n=()=>document.getElementById(i)!==null,r=(o,c)=>{o.innerHTML=c,!(s&&n())&&document.body.insertAdjacentElement("afterbegin",o)};if(!s||!n()){const o=ne.supported,c=document.createElement("div");if(c.setAttribute("hidden",""),s&&c.setAttribute("id",i),o){const u=window.localStorage.getItem(`${t}-${i}`);if(a=u!==null,a){const p=JSON.parse(u);r(c,p.content)}}te(e).then(u=>{if(!l.empty(u)){if(o)try{window.localStorage.setItem(`${t}-${i}`,JSON.stringify({content:u}))}catch{}r(c,u)}}).catch(()=>{})}}const rt=e=>Math.trunc(e/60/60%60,10),oi=e=>Math.trunc(e/60%60,10),ci=e=>Math.trunc(e%60,10);function me(e=0,i=!1,t=!1){if(!l.number(e))return me(void 0,i,t);const s=o=>`0${o}`.slice(-2);let a=rt(e);const n=oi(e),r=ci(e);return i||a>0?a=`${a}:`:a="",`${t&&e>0?"-":""}${a}${s(n)}:${s(r)}`}const d={getIconUrl(){const e=new URL(this.config.iconUrl,window.location),i=window.location.host?window.location.host:window.top.location.host,t=e.host!==i||_.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:t}},findElements(){try{return this.elements.controls=$.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:G.call(this,this.config.selectors.buttons.play),pause:$.call(this,this.config.selectors.buttons.pause),restart:$.call(this,this.config.selectors.buttons.restart),rewind:$.call(this,this.config.selectors.buttons.rewind),fastForward:$.call(this,this.config.selectors.buttons.fastForward),mute:$.call(this,this.config.selectors.buttons.mute),pip:$.call(this,this.config.selectors.buttons.pip),airplay:$.call(this,this.config.selectors.buttons.airplay),settings:$.call(this,this.config.selectors.buttons.settings),captions:$.call(this,this.config.selectors.buttons.captions),fullscreen:$.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=$.call(this,this.config.selectors.progress),this.elements.inputs={seek:$.call(this,this.config.selectors.inputs.seek),volume:$.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:$.call(this,this.config.selectors.display.buffer),currentTime:$.call(this,this.config.selectors.display.currentTime),duration:$.call(this,this.config.selectors.display.duration)},l.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon(e,i){const t="http://www.w3.org/2000/svg",s=d.getIconUrl.call(this),a=`${s.cors?"":s.url}#${this.config.iconPrefix}`,n=document.createElementNS(t,"svg");ve(n,x(i,{"aria-hidden":"true",focusable:"false"}));const r=document.createElementNS(t,"use"),o=`${a}-${e}`;return"href"in r&&r.setAttributeNS("http://www.w3.org/1999/xlink","href",o),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o),n.appendChild(r),n},createLabel(e,i={}){const t=O.get(e,this.config),s={...i,class:[i.class,this.config.classNames.hidden].filter(Boolean).join(" ")};return b("span",s,t)},createBadge(e){if(l.empty(e))return null;const i=b("span",{class:this.config.classNames.menu.value});return i.appendChild(b("span",{class:this.config.classNames.menu.badge},e)),i},createButton(e,i){const t=x({},i);let s=ai(e);const a={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(r=>{Object.keys(t).includes(r)&&(a[r]=t[r],delete t[r])}),a.element==="button"&&!Object.keys(t).includes("type")&&(t.type="button"),Object.keys(t).includes("class")?t.class.split(" ").includes(this.config.classNames.control)||x(t,{class:`${t.class} ${this.config.classNames.control}`}):t.class=this.config.classNames.control,e){case"play":a.toggle=!0,a.label="play",a.labelPressed="pause",a.icon="play",a.iconPressed="pause";break;case"mute":a.toggle=!0,a.label="mute",a.labelPressed="unmute",a.icon="volume",a.iconPressed="muted";break;case"captions":a.toggle=!0,a.label="enableCaptions",a.labelPressed="disableCaptions",a.icon="captions-off",a.iconPressed="captions-on";break;case"fullscreen":a.toggle=!0,a.label="enterFullscreen",a.labelPressed="exitFullscreen",a.icon="enter-fullscreen",a.iconPressed="exit-fullscreen";break;case"play-large":t.class+=` ${this.config.classNames.control}--overlaid`,s="play",a.label="play",a.icon="play";break;default:l.empty(a.label)&&(a.label=s),l.empty(a.icon)&&(a.icon=e)}const n=b(a.element);return a.toggle?(n.appendChild(d.createIcon.call(this,a.iconPressed,{class:"icon--pressed"})),n.appendChild(d.createIcon.call(this,a.icon,{class:"icon--not-pressed"})),n.appendChild(d.createLabel.call(this,a.labelPressed,{class:"label--pressed"})),n.appendChild(d.createLabel.call(this,a.label,{class:"label--not-pressed"}))):(n.appendChild(d.createIcon.call(this,a.icon)),n.appendChild(d.createLabel.call(this,a.label))),x(t,F(this.config.selectors.buttons[s],t)),ve(n,t),s==="play"?(l.array(this.elements.buttons[s])||(this.elements.buttons[s]=[]),this.elements.buttons[s].push(n)):this.elements.buttons[s]=n,n},createRange(e,i){const t=b("input",x(F(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":O.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},i));return this.elements.inputs[e]=t,d.updateRangeFill.call(this,t),It.setup(t),t},createProgress(e,i){const t=b("progress",x(F(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},i));if(e!=="volume"){t.appendChild(b("span",null,"0"));const s={played:"played",buffer:"buffered"}[e],a=s?O.get(s,this.config):"";t.textContent=`% ${a.toLowerCase()}`}return this.elements.display[e]=t,t},createTime(e,i){const t=F(this.config.selectors.display[e],i),s=b("div",x(t,{class:`${t.class?t.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":O.get(e,this.config),role:"timer"}),"00:00");return this.elements.display[e]=s,s},bindMenuItemShortcuts(e,i){C.call(this,e,"keydown keyup",t=>{if(![" ","ArrowUp","ArrowDown","ArrowRight"].includes(t.key)||(t.preventDefault(),t.stopPropagation(),t.type==="keydown"))return;const s=Y(e,'[role="menuitemradio"]');if(!s&&[" ","ArrowRight"].includes(t.key))d.showMenuPanel.call(this,i,!0);else{let a;t.key!==" "&&(t.key==="ArrowDown"||s&&t.key==="ArrowRight"?(a=e.nextElementSibling,l.element(a)||(a=e.parentNode.firstElementChild)):(a=e.previousElementSibling,l.element(a)||(a=e.parentNode.lastElementChild)),we.call(this,a,!0))}},!1),C.call(this,e,"keyup",t=>{t.key==="Return"&&d.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:e,list:i,type:t,title:s,badge:a=null,checked:n=!1}){const r=F(this.config.selectors.inputs[t]),o=b("button",x(r,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${r.class?r.class:""}`.trim(),"aria-checked":n,value:e})),c=b("span");c.innerHTML=s,l.element(a)&&c.appendChild(a),o.appendChild(c),Object.defineProperty(o,"checked",{enumerable:!0,get(){return o.getAttribute("aria-checked")==="true"},set(u){u&&Array.from(o.parentNode.children).filter(p=>Y(p,'[role="menuitemradio"]')).forEach(p=>p.setAttribute("aria-checked","false")),o.setAttribute("aria-checked",u?"true":"false")}}),this.listeners.bind(o,"click keyup",u=>{if(!(l.keyboardEvent(u)&&u.key!==" ")){switch(u.preventDefault(),u.stopPropagation(),o.checked=!0,t){case"language":this.currentTrack=Number(e);break;case"quality":this.quality=e;break;case"speed":this.speed=Number.parseFloat(e);break}d.showMenuPanel.call(this,"home",l.keyboardEvent(u))}},t,!1),d.bindMenuItemShortcuts.call(this,o,t),i.appendChild(o)},formatTime(e=0,i=!1){if(!l.number(e))return e;const t=rt(this.duration)>0;return me(e,t,i)},updateTimeDisplay(e=null,i=0,t=!1){!l.element(e)||!l.number(i)||(e.textContent=d.formatTime(i,t))},updateVolume(){this.supported.ui&&(l.element(this.elements.inputs.volume)&&d.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),l.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||this.volume===0))},setRange(e,i=0){l.element(e)&&(e.value=i,d.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!l.event(e))return;let i=0;const t=(s,a)=>{const n=l.number(a)?a:0,r=l.element(s)?s:this.elements.display.buffer;if(l.element(r)){r.value=n;const o=r.getElementsByTagName("span")[0];l.element(o)&&(o.childNodes[0].nodeValue=n)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":i=si(this.currentTime,this.duration),e.type==="timeupdate"&&d.setRange.call(this,this.elements.inputs.seek,i);break;case"playing":case"progress":t(this.elements.display.buffer,this.buffered*100);break}},updateRangeFill(e){const i=l.event(e)?e.target:e;if(!(!l.element(i)||i.getAttribute("type")!=="range")){if(Y(i,this.config.selectors.inputs.seek)){i.setAttribute("aria-valuenow",this.currentTime);const t=d.formatTime(this.currentTime),s=d.formatTime(this.duration),a=O.get("seekLabel",this.config);i.setAttribute("aria-valuetext",a.replace("{currentTime}",t).replace("{duration}",s))}else if(Y(i,this.config.selectors.inputs.volume)){const t=i.value*100;i.setAttribute("aria-valuenow",t),i.setAttribute("aria-valuetext",`${t.toFixed(1)}%`)}else i.setAttribute("aria-valuenow",i.value);!_.isWebKit&&!_.isIPadOS||i.style.setProperty("--value",`${i.value/i.max*100}%`)}},updateSeekTooltip(e){var i,t;if(!this.config.tooltips.seek||!l.element(this.elements.inputs.seek)||!l.element(this.elements.display.seekTooltip)||this.duration===0)return;const s=this.elements.display.seekTooltip,a=`${this.config.classNames.tooltip}--visible`,n=p=>S(s,a,p);if(this.touch){n(!1);return}let r=0;const o=this.elements.progress.getBoundingClientRect();if(l.event(e)){const p=e.pageX-e.clientX;r=100/o.width*(e.pageX-o.left-p)}else if(ue(s,a))r=Number.parseFloat(s.style.left,10);else return;r<0?r=0:r>100&&(r=100);const c=this.duration/100*r;s.textContent=d.formatTime(c);const u=(t=(i=this.config.markers)==null?void 0:i.points)==null?void 0:t.find(({time:p})=>p===Math.round(c));u&&s.insertAdjacentHTML("afterbegin",`${u.label}<br>`),s.style.left=`${r}%`,l.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&n(e.type==="mouseenter")},timeUpdate(e){const i=!l.element(this.elements.display.duration)&&this.config.invertTime;d.updateTimeDisplay.call(this,this.elements.display.currentTime,i?this.duration-this.currentTime:this.currentTime,i),!(e&&e.type==="timeupdate"&&this.media.seeking)&&d.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32){K(this.elements.display.currentTime,!0),K(this.elements.progress,!0);return}l.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const e=l.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&d.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&d.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&d.setMarkers.call(this),d.updateSeekTooltip.call(this)},toggleMenuButton(e,i){K(this.elements.settings.buttons[e],!i)},updateSetting(e,i,t){const s=this.elements.settings.panels[e];let a=null,n=i;if(e==="captions")a=this.currentTrack;else{if(a=l.empty(t)?this[e]:t,l.empty(a)&&(a=this.config[e].default),!l.empty(this.options[e])&&!this.options[e].includes(a)){this.debug.warn(`Unsupported value of '${a}' for ${e}`);return}if(!this.config[e].options.includes(a)){this.debug.warn(`Disabled value of '${a}' for ${e}`);return}}if(l.element(n)||(n=s&&s.querySelector('[role="menu"]')),!l.element(n))return;const r=this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`);r.innerHTML=d.getLabel.call(this,e,a);const o=n&&n.querySelector(`[value="${a}"]`);l.element(o)&&(o.checked=!0)},getLabel(e,i){switch(e){case"speed":return i===1?O.get("normal",this.config):`${i}×`;case"quality":if(l.number(i)){const t=O.get(`qualityLabel.${i}`,this.config);return t.length?t:`${i}p`}return nt(i);case"captions":return A.getLabel.call(this);default:return null}},setQualityMenu(e){if(!l.element(this.elements.settings.panels.quality))return;const i="quality",t=this.elements.settings.panels.quality.querySelector('[role="menu"]');l.array(e)&&(this.options.quality=Te(e).filter(n=>this.config.quality.options.includes(n)));const s=!l.empty(this.options.quality)&&this.options.quality.length>1;if(d.toggleMenuButton.call(this,i,s),oe(t),d.checkMenu.call(this),!s)return;const a=n=>{const r=O.get(`qualityBadge.${n}`,this.config);return r.length?d.createBadge.call(this,r):null};this.options.quality.sort((n,r)=>{const o=this.config.quality.options;return o.indexOf(n)>o.indexOf(r)?1:-1}).forEach(n=>{d.createMenuItem.call(this,{value:n,list:t,type:i,title:d.getLabel.call(this,"quality",n),badge:a(n)})}),d.updateSetting.call(this,i,t)},setCaptionsMenu(){if(!l.element(this.elements.settings.panels.captions))return;const e="captions",i=this.elements.settings.panels.captions.querySelector('[role="menu"]'),t=A.getTracks.call(this),s=!!t.length;if(d.toggleMenuButton.call(this,e,s),oe(i),d.checkMenu.call(this),!s)return;const a=t.map((n,r)=>({value:r,checked:this.captions.toggled&&this.currentTrack===r,title:A.getLabel.call(this,n),badge:n.language&&d.createBadge.call(this,n.language.toUpperCase()),list:i,type:"language"}));a.unshift({value:-1,checked:!this.captions.toggled,title:O.get("disabled",this.config),list:i,type:"language"}),a.forEach(d.createMenuItem.bind(this)),d.updateSetting.call(this,e,i)},setSpeedMenu(){if(!l.element(this.elements.settings.panels.speed))return;const e="speed",i=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(s=>s>=this.minimumSpeed&&s<=this.maximumSpeed);const t=!l.empty(this.options.speed)&&this.options.speed.length>1;d.toggleMenuButton.call(this,e,t),oe(i),d.checkMenu.call(this),t&&(this.options.speed.forEach(s=>{d.createMenuItem.call(this,{value:s,list:i,type:e,title:d.getLabel.call(this,"speed",s)})}),d.updateSetting.call(this,e,i))},checkMenu(){const{buttons:e}=this.elements.settings,i=!l.empty(e)&&Object.values(e).some(t=>!t.hidden);K(this.elements.settings.menu,!i)},focusFirstMenuItem(e,i=!1){if(this.elements.settings.popup.hidden)return;let t=e;l.element(t)||(t=Object.values(this.elements.settings.panels).find(a=>!a.hidden));const s=t.querySelector('[role^="menuitem"]');we.call(this,s,i)},toggleMenu(e){const{popup:i}=this.elements.settings,t=this.elements.buttons.settings;if(!l.element(i)||!l.element(t))return;const{hidden:s}=i;let a=s;if(l.boolean(e))a=e;else if(l.keyboardEvent(e)&&e.key==="Escape")a=!1;else if(l.event(e)){const n=l.function(e.composedPath)?e.composedPath()[0]:e.target,r=i.contains(n);if(r||!r&&e.target!==t&&a)return}t.setAttribute("aria-expanded",a),K(i,!a),S(this.elements.container,this.config.classNames.menu.open,a),a&&l.keyboardEvent(e)?d.focusFirstMenuItem.call(this,null,!0):!a&&!s&&we.call(this,t,l.keyboardEvent(e))},getMenuSize(e){const i=e.cloneNode(!0);i.style.position="absolute",i.style.opacity=0,i.removeAttribute("hidden"),e.parentNode.appendChild(i);const t=i.scrollWidth,s=i.scrollHeight;return W(i),{width:t,height:s}},showMenuPanel(e="",i=!1){const t=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!l.element(t))return;const s=t.parentNode,a=Array.from(s.children).find(n=>!n.hidden);if(L.transitions&&!L.reducedMotion){s.style.width=`${a.scrollWidth}px`,s.style.height=`${a.scrollHeight}px`;const n=d.getMenuSize.call(this,t),r=o=>{o.target!==s||!["width","height"].includes(o.propertyName)||(s.style.width="",s.style.height="",he.call(this,s,be,r))};C.call(this,s,be,r),s.style.width=`${n.width}px`,s.style.height=`${n.height}px`}K(a,!0),K(t,!1),d.focusFirstMenuItem.call(this,t,i)},setDownloadUrl(){const e=this.elements.buttons.download;l.element(e)&&e.setAttribute("href",this.download)},create(e){const{bindMenuItemShortcuts:i,createButton:t,createProgress:s,createRange:a,createTime:n,setQualityMenu:r,setSpeedMenu:o,showMenuPanel:c}=d;this.elements.controls=null,l.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(t.call(this,"play-large"));const u=b("div",F(this.config.selectors.controls.wrapper));this.elements.controls=u;const p={class:"plyr__controls__item"};return Te(l.array(this.config.controls)?this.config.controls:[]).forEach(y=>{if(y==="restart"&&u.appendChild(t.call(this,"restart",p)),y==="rewind"&&u.appendChild(t.call(this,"rewind",p)),y==="play"&&u.appendChild(t.call(this,"play",p)),y==="fast-forward"&&u.appendChild(t.call(this,"fast-forward",p)),y==="progress"){const h=b("div",{class:`${p.class} plyr__progress__container`}),f=b("div",F(this.config.selectors.progress));if(f.appendChild(a.call(this,"seek",{id:`plyr-seek-${e.id}`})),f.appendChild(s.call(this,"buffer")),this.config.tooltips.seek){const T=b("span",{class:this.config.classNames.tooltip},"00:00");f.appendChild(T),this.elements.display.seekTooltip=T}this.elements.progress=f,h.appendChild(this.elements.progress),u.appendChild(h)}if(y==="current-time"&&u.appendChild(n.call(this,"currentTime",p)),y==="duration"&&u.appendChild(n.call(this,"duration",p)),y==="mute"||y==="volume"){let{volume:h}=this.elements;if((!l.element(h)||!u.contains(h))&&(h=b("div",x({},p,{class:`${p.class} plyr__volume`.trim()})),this.elements.volume=h,u.appendChild(h)),y==="mute"&&h.appendChild(t.call(this,"mute")),y==="volume"&&!_.isIos&&!_.isIPadOS){const f={max:1,step:.05,value:this.config.volume};h.appendChild(a.call(this,"volume",x(f,{id:`plyr-volume-${e.id}`})))}}if(y==="captions"&&u.appendChild(t.call(this,"captions",p)),y==="settings"&&!l.empty(this.config.settings)){const h=b("div",x({},p,{class:`${p.class} plyr__menu`.trim(),hidden:""}));h.appendChild(t.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));const f=b("div",{class:"plyr__menu__container",id:`plyr-settings-${e.id}`,hidden:""}),T=b("div"),w=b("div",{id:`plyr-settings-${e.id}-home`}),I=b("div",{role:"menu"});w.appendChild(I),T.appendChild(w),this.elements.settings.panels.home=w,this.config.settings.forEach(P=>{const g=b("button",x(F(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));i.call(this,g,P),C.call(this,g,"click",()=>{c.call(this,P,!1)});const k=b("span",null,O.get(P,this.config)),M=b("span",{class:this.config.classNames.menu.value});M.innerHTML=e[P],k.appendChild(M),g.appendChild(k),I.appendChild(g);const j=b("div",{id:`plyr-settings-${e.id}-${P}`,hidden:""}),H=b("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});H.appendChild(b("span",{"aria-hidden":!0},O.get(P,this.config))),H.appendChild(b("span",{class:this.config.classNames.hidden},O.get("menuBack",this.config))),C.call(this,j,"keydown",R=>{R.key==="ArrowLeft"&&(R.preventDefault(),R.stopPropagation(),c.call(this,"home",!0))},!1),C.call(this,H,"click",()=>{c.call(this,"home",!1)}),j.appendChild(H),j.appendChild(b("div",{role:"menu"})),T.appendChild(j),this.elements.settings.buttons[P]=g,this.elements.settings.panels[P]=j}),f.appendChild(T),h.appendChild(f),u.appendChild(h),this.elements.settings.popup=f,this.elements.settings.menu=h}if(y==="pip"&&L.pip&&u.appendChild(t.call(this,"pip",p)),y==="airplay"&&L.airplay&&u.appendChild(t.call(this,"airplay",p)),y==="download"){const h=x({},p,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(h.download="");const{download:f}=this.config.urls;!l.url(f)&&this.isEmbed&&x(h,{icon:`logo-${this.provider}`,label:this.provider}),u.appendChild(t.call(this,"download",h))}y==="fullscreen"&&u.appendChild(t.call(this,"fullscreen",p))}),this.isHTML5&&r.call(this,B.getQualityOptions.call(this)),o.call(this),u},inject(){if(this.config.loadSprite){const r=d.getIconUrl.call(this);r.cors&<(r.url,"sprite-plyr")}this.id=Math.floor(Math.random()*1e4);let e=null;this.elements.controls=null;const i={id:this.id,seektime:this.config.seekTime,title:this.config.title};let t=!0;l.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,i)),this.config.controls||(this.config.controls=[]),l.element(this.config.controls)||l.string(this.config.controls)?e=this.config.controls:(e=d.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:A.getLabel.call(this)}),t=!1);const s=r=>{let o=r;return Object.entries(i).forEach(([c,u])=>{o=ee(o,`{${c}}`,u)}),o};t&&l.string(this.config.controls)&&(e=s(e));let a;l.string(this.config.selectors.controls.container)&&(a=document.querySelector(this.config.selectors.controls.container)),l.element(a)||(a=this.elements.container);const n=l.element(e)?"insertAdjacentElement":"insertAdjacentHTML";if(a[n]("afterbegin",e),l.element(this.elements.controls)||d.findElements.call(this),!l.empty(this.elements.buttons)){const r=o=>{const c=this.config.classNames.controlPressed;o.setAttribute("aria-pressed","false"),Object.defineProperty(o,"pressed",{configurable:!0,enumerable:!0,get(){return ue(o,c)},set(u=!1){S(o,c,u),o.setAttribute("aria-pressed",u?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach(o=>{l.array(o)||l.nodeList(o)?Array.from(o).filter(Boolean).forEach(r):r(o)})}if(_.isEdge&&Ye(a),this.config.tooltips.controls){const{classNames:r,selectors:o}=this.config,c=`${o.controls.wrapper} ${o.labels} .${r.hidden}`,u=G.call(this,c);Array.from(u).forEach(p=>{S(p,this.config.classNames.hidden,!1),S(p,this.config.classNames.tooltip,!0)})}},setMediaMetadata(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch{}},setMarkers(){var e,i;if(!this.duration||this.elements.markers)return;const t=(i=(e=this.config.markers)==null?void 0:e.points)==null?void 0:i.filter(({time:c})=>c>0&&c<this.duration);if(!(t!=null&&t.length))return;const s=document.createDocumentFragment(),a=document.createDocumentFragment();let n=null;const r=`${this.config.classNames.tooltip}--visible`,o=c=>S(n,r,c);t.forEach(c=>{const u=b("span",{class:this.config.classNames.marker},""),p=`${c.time/this.duration*100}%`;n&&(u.addEventListener("mouseenter",()=>{c.label||(n.style.left=p,n.innerHTML=c.label,o(!0))}),u.addEventListener("mouseleave",()=>{o(!1)})),u.addEventListener("click",()=>{this.currentTime=c.time}),u.style.left=p,a.appendChild(u)}),s.appendChild(a),this.config.tooltips.seek||(n=b("span",{class:this.config.classNames.tooltip},""),s.appendChild(n)),this.elements.markers={points:a,tip:n},this.elements.progress.appendChild(s)}};function ot(e,i=!0){let t=e;if(i){const s=document.createElement("a");s.href=t,t=s.href}try{return new URL(t)}catch{return null}}function ct(e){const i=new URLSearchParams;return l.object(e)&&Object.entries(e).forEach(([t,s])=>{i.set(t,s)}),i}const A={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!L.textTracks){l.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&d.setCaptionsMenu.call(this);return}if(l.element(this.elements.captions)||(this.elements.captions=b("div",F(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),Bt(this.elements.captions,this.elements.wrapper)),_.isIE&&window.URL){const a=this.media.querySelectorAll("track");Array.from(a).forEach(n=>{const r=n.getAttribute("src"),o=ot(r);o!==null&&o.hostname!==window.location.href.hostname&&["http:","https:"].includes(o.protocol)&&te(r,"blob").then(c=>{n.setAttribute("src",window.URL.createObjectURL(c))}).catch(()=>{W(n)})})}const e=navigator.languages||[navigator.language||navigator.userLanguage||"en"],i=Te(e.map(a=>a.split("-")[0]));let t=(this.storage.get("language")||this.captions.language||this.config.captions.language||"auto").toLowerCase();t==="auto"&&([t]=i);let s=this.storage.get("captions")||this.captions.active;if(l.boolean(s)||({active:s}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:s,language:t,languages:i}),this.isHTML5){const a=this.config.captions.update?"addtrack removetrack":"removetrack";C.call(this,this.media.textTracks,a,A.update.bind(this))}setTimeout(A.update.bind(this),0)},update(){const e=A.getTracks.call(this,!0),{active:i,language:t,meta:s,currentTrackNode:a}=this.captions,n=!!e.find(r=>r.language===t);this.isHTML5&&this.isVideo&&e.filter(r=>!s.get(r)).forEach(r=>{this.debug.log("Track added",r),s.set(r,{default:r.mode==="showing"}),r.mode==="showing"&&(r.mode="hidden"),C.call(this,r,"cuechange",()=>A.updateCues.call(this))}),(n&&this.language!==t||!e.includes(a))&&(A.setLanguage.call(this,t),A.toggle.call(this,i&&n)),this.elements&&S(this.elements.container,this.config.classNames.captions.enabled,!l.empty(e)),l.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&d.setCaptionsMenu.call(this)},toggle(e,i=!0){if(!this.supported.ui)return;const{toggled:t}=this.captions,s=this.config.classNames.captions.active,a=l.nullOrUndefined(e)?!t:e;if(a!==t){if(i||(this.captions.active=a,this.storage.set({captions:a})),!this.language&&a&&!i){const n=A.getTracks.call(this),r=A.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);this.captions.language=r.language,A.set.call(this,n.indexOf(r));return}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=a),S(this.elements.container,s,a),this.captions.toggled=a,d.updateSetting.call(this,"captions"),v.call(this,this.media,a?"captionsenabled":"captionsdisabled")}setTimeout(()=>{a&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(e,i=!0){const t=A.getTracks.call(this);if(e===-1){A.toggle.call(this,!1,i);return}if(!l.number(e)){this.debug.warn("Invalid caption argument",e);return}if(!(e in t)){this.debug.warn("Track not found",e);return}if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const s=t[e],{language:a}=s||{};this.captions.currentTrackNode=s,d.updateSetting.call(this,"captions"),i||(this.captions.language=a,this.storage.set({language:a})),this.isVimeo&&this.embed.enableTextTrack(a),v.call(this,this.media,"languagechange")}A.toggle.call(this,!0,i),this.isHTML5&&this.isVideo&&A.updateCues.call(this)},setLanguage(e,i=!0){if(!l.string(e)){this.debug.warn("Invalid language argument",e);return}const t=e.toLowerCase();this.captions.language=t;const s=A.getTracks.call(this),a=A.findTrack.call(this,[t]);A.set.call(this,s.indexOf(a),i)},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter(i=>!this.isHTML5||e||this.captions.meta.has(i)).filter(i=>["captions","subtitles"].includes(i.kind))},findTrack(e,i=!1){const t=A.getTracks.call(this),s=r=>Number((this.captions.meta.get(r)||{}).default),a=Array.from(t).sort((r,o)=>s(o)-s(r));let n;return e.every(r=>(n=a.find(o=>o.language===r),!n)),n||(i?a[0]:void 0)},getCurrentTrack(){return A.getTracks.call(this)[this.currentTrack]},getLabel(e){let i=e;return!l.track(i)&&L.textTracks&&this.captions.toggled&&(i=A.getCurrentTrack.call(this)),l.track(i)?l.empty(i.label)?l.empty(i.language)?O.get("enabled",this.config):e.language.toUpperCase():i.label:O.get("disabled",this.config)},updateCues(e){if(!this.supported.ui)return;if(!l.element(this.elements.captions)){this.debug.warn("No captions element to render to");return}if(!l.nullOrUndefined(e)&&!Array.isArray(e)){this.debug.warn("updateCues: Invalid input",e);return}let i=e;if(!i){const s=A.getCurrentTrack.call(this);i=Array.from((s||{}).activeCues||[]).map(a=>a.getCueAsHTML()).map(ri)}const t=i.map(s=>s.trim()).join(`
|
|
2
|
-
`);if(t!==this.elements.captions.innerHTML){oe(this.elements.captions);const s=b("span",F(this.config.selectors.caption));s.innerHTML=t,this.elements.captions.appendChild(s),v.call(this,this.media,"cuechange")}}},ut={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.8.3/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",marker:"plyr__progress__marker",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:"",withCredentials:!1},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1},mediaMetadata:{title:"",artist:"",album:"",artwork:[]},markers:{enabled:!1,points:[]}},Se={active:"picture-in-picture",inactive:"inline"},z={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Ee={audio:"audio",video:"video"};function ui(e){return/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?z.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?z.vimeo:null}function Pe(){}class hi{constructor(i=!1){this.enabled=window.console&&i,this.enabled&&this.log("Debugging enabled")}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):Pe}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):Pe}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):Pe}}class q{constructor(i){m(this,"onChange",()=>{if(!this.supported)return;const t=this.player.elements.buttons.fullscreen;l.element(t)&&(t.pressed=this.active);const s=this.target===this.player.media?this.target:this.player.elements.container;v.call(this.player,s,this.active?"enterfullscreen":"exitfullscreen",!0)}),m(this,"toggleFallback",(t=!1)=>{if(t?this.scrollPosition={x:window.scrollX??0,y:window.scrollY??0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=t?"hidden":"",S(this.target,this.player.config.classNames.fullscreen.fallback,t),_.isIos){let s=document.head.querySelector('meta[name="viewport"]');const a="viewport-fit=cover";s||(s=document.createElement("meta"),s.setAttribute("name","viewport"));const n=l.string(s.content)&&s.content.includes(a);t?(this.cleanupViewport=!n,n||(s.content+=`,${a}`)):this.cleanupViewport&&(s.content=s.content.split(",").filter(r=>r.trim()!==a).join(","))}this.onChange()}),m(this,"trapFocus",t=>{if(_.isIos||_.isIPadOS||!this.active||t.key!=="Tab")return;const s=document.activeElement,a=G.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[n]=a,r=a[a.length-1];s===r&&!t.shiftKey?(n.focus(),t.preventDefault()):s===n&&t.shiftKey&&(r.focus(),t.preventDefault())}),m(this,"update",()=>{if(this.supported){let t;this.forceFallback?t="Fallback (forced)":q.nativeSupported?t="Native":t="Fallback",this.player.debug.log(`${t} fullscreen enabled`)}else this.player.debug.log("Fullscreen not supported and fallback disabled");S(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.supported)}),m(this,"enter",()=>{this.supported&&(_.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!q.nativeSupported||this.forceFallback?this.toggleFallback(!0):this.prefix?l.empty(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))}),m(this,"exit",()=>{if(this.supported){if(_.isIos&&this.player.config.fullscreen.iosNative)this.player.isVimeo?this.player.embed.exitFullscreen():this.target.webkitEnterFullscreen(),V(this.player.play());else if(!q.nativeSupported||this.forceFallback)this.toggleFallback(!1);else if(!this.prefix)(document.cancelFullScreen||document.exitFullscreen).call(document);else if(!l.empty(this.prefix)){const t=this.prefix==="moz"?"Cancel":"Exit";document[`${this.prefix}${t}${this.property}`]()}}}),m(this,"toggle",()=>{this.active?this.exit():this.enter()}),this.player=i,this.prefix=q.prefix,this.property=q.property,this.scrollPosition={x:0,y:0},this.forceFallback=i.config.fullscreen.fallback==="force",this.player.elements.fullscreen=i.config.fullscreen.container&&zt(this.player.elements.container,i.config.fullscreen.container),C.call(this.player,document,this.prefix==="ms"?"MSFullscreenChange":`${this.prefix}fullscreenchange`,()=>{this.onChange()}),C.call(this.player,this.player.elements.container,"dblclick",t=>{l.element(this.player.elements.controls)&&this.player.elements.controls.contains(t.target)||this.player.listeners.proxy(t,this.toggle,"fullscreen")}),C.call(this,this.player.elements.container,"keydown",t=>this.trapFocus(t)),this.update()}static get nativeSupported(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get useNative(){return q.nativeSupported&&!this.forceFallback}static get prefix(){if(l.function(document.exitFullscreen))return"";let i="";return["webkit","moz","ms"].some(t=>l.function(document[`${t}ExitFullscreen`])||l.function(document[`${t}CancelFullScreen`])?(i=t,!0):!1),i}static get property(){return this.prefix==="moz"?"FullScreen":"Fullscreen"}get supported(){return[this.player.config.fullscreen.enabled,this.player.isVideo,q.nativeSupported||this.player.config.fullscreen.fallback,!this.player.isYouTube||q.nativeSupported||!_.isIos||this.player.config.playsinline&&!this.player.config.fullscreen.iosNative].every(Boolean)}get active(){if(!this.supported)return!1;if(!q.nativeSupported||this.forceFallback)return ue(this.target,this.player.config.classNames.fullscreen.fallback);const i=this.prefix?this.target.getRootNode()[`${this.prefix}${this.property}Element`]:this.target.getRootNode().fullscreenElement;return i&&i.shadowRoot?i===this.target.getRootNode().host:i===this.target}get target(){return _.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen??this.player.elements.container}}function pe(e,i=1){return new Promise((t,s)=>{const a=new Image,n=()=>{delete a.onload,delete a.onerror,(a.naturalWidth>=i?t:s)(a)};Object.assign(a,{onload:n,onerror:n,src:e})})}const E={addStyleHook(){S(this.elements.container,this.config.selectors.container.replace(".",""),!0),S(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls(e=!1){e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build(){if(this.listeners.media(),!this.supported.ui){this.debug.warn(`Basic support only for ${this.provider} ${this.type}`),E.toggleNativeControls.call(this,!0);return}l.element(this.elements.controls)||(d.inject.call(this),this.listeners.controls()),E.toggleNativeControls.call(this),this.isHTML5&&A.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,d.updateVolume.call(this),d.timeUpdate.call(this),d.durationUpdate.call(this),E.checkPlaying.call(this),S(this.elements.container,this.config.classNames.pip.supported,L.pip&&this.isHTML5&&this.isVideo),S(this.elements.container,this.config.classNames.airplay.supported,L.airplay&&this.isHTML5),S(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(()=>{v.call(this,this.media,"ready")},0),E.setTitle.call(this),this.poster&&E.setPoster.call(this,this.poster,!1).catch(()=>{}),this.config.duration&&d.durationUpdate.call(this),this.config.mediaMetadata&&d.setMediaMetadata.call(this)},setTitle(){let e=O.get("play",this.config);if(l.string(this.config.title)&&!l.empty(this.config.title)&&(e+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach(i=>{i.setAttribute("aria-label",e)}),this.isEmbed){const i=$.call(this,"iframe");if(!l.element(i))return;const t=l.empty(this.config.title)?"video":this.config.title,s=O.get("frameTitle",this.config);i.setAttribute("title",s.replace("{title}",t))}},togglePoster(e){S(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster(e,i=!0){return i&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),Xt.call(this).then(()=>pe(e)).catch(t=>{throw e===this.poster&&E.togglePoster.call(this,!1),t}).then(()=>{if(e!==this.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${e}')`,backgroundSize:""}),E.togglePoster.call(this,!0),e)))},checkPlaying(e){S(this.elements.container,this.config.classNames.playing,this.playing),S(this.elements.container,this.config.classNames.paused,this.paused),S(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(i=>{Object.assign(i,{pressed:this.playing}),i.setAttribute("aria-label",O.get(this.playing?"pause":"play",this.config))}),!(l.event(e)&&e.type==="timeupdate")&&E.toggleControls.call(this)},checkLoading(e){this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(()=>{S(this.elements.container,this.config.classNames.loading,this.loading),E.toggleControls.call(this)},this.loading?250:0)},toggleControls(e){const{controls:i}=this.elements;if(i&&this.config.hideControls){const t=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(!!(e||this.loading||this.paused||i.pressed||i.hover||t))}},migrateStyles(){Object.values({...this.media.style}).filter(e=>!l.empty(e)&&l.string(e)&&e.startsWith("--plyr")).forEach(e=>{this.elements.container.style.setProperty(e,this.media.style.getPropertyValue(e)),this.media.style.removeProperty(e)}),l.empty(this.media.style)&&this.media.removeAttribute("style")}};class di{constructor(i){m(this,"firstTouch",()=>{const{player:t}=this,{elements:s}=t;t.touch=!0,S(s.container,t.config.classNames.isTouch,!0)}),m(this,"global",(t=!0)=>{const{player:s}=this;s.config.keyboard.global&&Z.call(s,window,"keydown keyup",this.handleKey,t,!1),Z.call(s,document.body,"click",this.toggleMenu,t),ke.call(s,document.body,"touchstart",this.firstTouch)}),m(this,"container",()=>{const{player:t}=this,{config:s,elements:a,timers:n}=t;!s.keyboard.global&&s.keyboard.focused&&C.call(t,a.container,"keydown keyup",this.handleKey,!1),C.call(t,a.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",c=>{const{controls:u}=a;u&&c.type==="enterfullscreen"&&(u.pressed=!1,u.hover=!1);const p=["touchstart","touchmove","mousemove"].includes(c.type);let y=0;p&&(E.toggleControls.call(t,!0),y=t.touch?3e3:2e3),clearTimeout(n.controls),n.controls=setTimeout(()=>E.toggleControls.call(t,!1),y)});const r=()=>{if(!t.isVimeo||t.config.vimeo.premium)return;const c=a.wrapper,{active:u}=t.fullscreen,[p,y]=Ce.call(t),h=et(`aspect-ratio: ${p} / ${y}`);if(!u){h?(c.style.width=null,c.style.height=null):(c.style.maxWidth=null,c.style.margin=null);return}const[f,T]=Qt(),w=f/T>p/y;h?(c.style.width=w?"auto":"100%",c.style.height=w?"100%":"auto"):(c.style.maxWidth=w?`${T/y*p}px`:null,c.style.margin=w?"0 auto":null)},o=()=>{clearTimeout(n.resized),n.resized=setTimeout(r,50)};C.call(t,a.container,"enterfullscreen exitfullscreen",c=>{const{target:u}=t.fullscreen;u!==a.container||!t.isEmbed&&l.empty(t.config.ratio)||(r(),(c.type==="enterfullscreen"?C:he).call(t,window,"resize",o))})}),m(this,"media",()=>{const{player:t}=this,{elements:s}=t;if(C.call(t,t.media,"timeupdate seeking seeked",n=>d.timeUpdate.call(t,n)),C.call(t,t.media,"durationchange loadeddata loadedmetadata",n=>d.durationUpdate.call(t,n)),C.call(t,t.media,"ended",()=>{t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())}),C.call(t,t.media,"progress playing seeking seeked",n=>d.updateProgress.call(t,n)),C.call(t,t.media,"volumechange",n=>d.updateVolume.call(t,n)),C.call(t,t.media,"playing play pause ended emptied timeupdate",n=>E.checkPlaying.call(t,n)),C.call(t,t.media,"waiting canplay seeked playing",n=>E.checkLoading.call(t,n)),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){const n=$.call(t,`.${t.config.classNames.video}`);if(!l.element(n))return;C.call(t,s.container,"click",r=>{![s.container,n].includes(r.target)&&!n.contains(r.target)||t.touch&&t.config.hideControls||(t.ended?(this.proxy(r,t.restart,"restart"),this.proxy(r,()=>{V(t.play())},"play")):this.proxy(r,()=>{V(t.togglePlay())},"play"))})}t.supported.ui&&t.config.disableContextMenu&&C.call(t,s.wrapper,"contextmenu",n=>{n.preventDefault()},!1),C.call(t,t.media,"volumechange",()=>{t.storage.set({volume:t.volume,muted:t.muted})}),C.call(t,t.media,"ratechange",()=>{d.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})}),C.call(t,t.media,"qualitychange",n=>{d.updateSetting.call(t,"quality",null,n.detail.quality)}),C.call(t,t.media,"ready qualitychange",()=>{d.setDownloadUrl.call(t)});const a=t.config.events.concat(["keyup","keydown"]).join(" ");C.call(t,t.media,a,n=>{let{detail:r={}}=n;n.type==="error"&&(r=t.media.error),v.call(t,s.container,n.type,!0,r)})}),m(this,"proxy",(t,s,a)=>{const{player:n}=this,r=n.config.listeners[a],o=l.function(r);let c=!0;o&&(c=r.call(n,t)),c!==!1&&l.function(s)&&s.call(n,t)}),m(this,"bind",(t,s,a,n,r=!0)=>{const{player:o}=this,c=o.config.listeners[n],u=l.function(c);C.call(o,t,s,p=>this.proxy(p,a,n),r&&!u)}),m(this,"controls",()=>{const{player:t}=this,{elements:s}=t,a=_.isIE?"change":"input";if(s.buttons.play&&Array.from(s.buttons.play).forEach(n=>{this.bind(n,"click",()=>{V(t.togglePlay())},"play")}),this.bind(s.buttons.restart,"click",t.restart,"restart"),this.bind(s.buttons.rewind,"click",()=>{t.lastSeekTime=Date.now(),t.rewind()},"rewind"),this.bind(s.buttons.fastForward,"click",()=>{t.lastSeekTime=Date.now(),t.forward()},"fastForward"),this.bind(s.buttons.mute,"click",()=>{t.muted=!t.muted},"mute"),this.bind(s.buttons.captions,"click",()=>t.toggleCaptions()),this.bind(s.buttons.download,"click",()=>{v.call(t,t.media,"download")},"download"),this.bind(s.buttons.fullscreen,"click",()=>{t.fullscreen.toggle()},"fullscreen"),this.bind(s.buttons.pip,"click",()=>{t.pip="toggle"},"pip"),this.bind(s.buttons.airplay,"click",t.airplay,"airplay"),this.bind(s.buttons.settings,"click",n=>{n.stopPropagation(),n.preventDefault(),d.toggleMenu.call(t,n)},null,!1),this.bind(s.buttons.settings,"keyup",n=>{if([" ","Enter"].includes(n.key)){if(n.key==="Enter"){d.focusFirstMenuItem.call(t,null,!0);return}n.preventDefault(),n.stopPropagation(),d.toggleMenu.call(t,n)}},null,!1),this.bind(s.settings.menu,"keydown",n=>{n.key==="Escape"&&d.toggleMenu.call(t,n)}),this.bind(s.inputs.seek,"mousedown mousemove",n=>{const r=s.progress.getBoundingClientRect(),o=n.pageX-n.clientX,c=100/r.width*(n.pageX-r.left-o);n.currentTarget.setAttribute("seek-value",c)}),this.bind(s.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",n=>{const r=n.currentTarget,o="play-on-seeked";if(l.keyboardEvent(n)&&!["ArrowLeft","ArrowRight"].includes(n.key))return;t.lastSeekTime=Date.now();const c=r.hasAttribute(o),u=["mouseup","touchend","keyup"].includes(n.type);c&&u?(r.removeAttribute(o),V(t.play())):!u&&t.playing&&(r.setAttribute(o,""),t.pause())}),_.isIos){const n=G.call(t,'input[type="range"]');Array.from(n).forEach(r=>this.bind(r,a,o=>Ye(o.target)))}this.bind(s.inputs.seek,a,n=>{const r=n.currentTarget;let o=r.getAttribute("seek-value");l.empty(o)&&(o=r.value),r.removeAttribute("seek-value"),t.currentTime=o/r.max*t.duration},"seek"),this.bind(s.progress,"mouseenter mouseleave mousemove",n=>d.updateSeekTooltip.call(t,n)),this.bind(s.progress,"mousemove touchmove",n=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.startMove(n)}),this.bind(s.progress,"mouseleave touchend click",()=>{const{previewThumbnails:n}=t;n&&n.loaded&&n.endMove(!1,!0)}),this.bind(s.progress,"mousedown touchstart",n=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.startScrubbing(n)}),this.bind(s.progress,"mouseup touchend",n=>{const{previewThumbnails:r}=t;r&&r.loaded&&r.endScrubbing(n)}),_.isWebKit&&Array.from(G.call(t,'input[type="range"]')).forEach(n=>{this.bind(n,"input",r=>d.updateRangeFill.call(t,r.target))}),t.config.toggleInvert&&!l.element(s.display.duration)&&this.bind(s.display.currentTime,"click",()=>{t.currentTime!==0&&(t.config.invertTime=!t.config.invertTime,d.timeUpdate.call(t))}),this.bind(s.inputs.volume,a,n=>{t.volume=n.target.value},"volume"),this.bind(s.controls,"mouseenter mouseleave",n=>{s.controls.hover=!t.touch&&n.type==="mouseenter"}),s.fullscreen&&Array.from(s.fullscreen.children).filter(n=>!n.contains(s.container)).forEach(n=>{this.bind(n,"mouseenter mouseleave",r=>{s.controls&&(s.controls.hover=!t.touch&&r.type==="mouseenter")})}),this.bind(s.controls,"mousedown mouseup touchstart touchend touchcancel",n=>{s.controls.pressed=["mousedown","touchstart"].includes(n.type)}),this.bind(s.controls,"focusin",()=>{const{config:n,timers:r}=t;S(s.controls,n.classNames.noTransition,!0),E.toggleControls.call(t,!0),setTimeout(()=>{S(s.controls,n.classNames.noTransition,!1)},0);const o=this.touch?3e3:4e3;clearTimeout(r.controls),r.controls=setTimeout(()=>E.toggleControls.call(t,!1),o)}),this.bind(s.inputs.volume,"wheel",n=>{const r=n.webkitDirectionInvertedFromDevice,[o,c]=[n.deltaX,-n.deltaY].map(y=>r?-y:y),u=Math.sign(Math.abs(o)>Math.abs(c)?o:c);t.increaseVolume(u/50);const{volume:p}=t.media;(u===1&&p<1||u===-1&&p>0)&&n.preventDefault()},"volume",!1)}),this.player=i,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(i){const{player:t}=this,{elements:s}=t,{key:a,type:n,altKey:r,ctrlKey:o,metaKey:c,shiftKey:u}=i,p=n==="keydown",y=p&&a===this.lastKey;if(r||o||c||u||!a)return;const h=f=>{t.currentTime=t.duration/10*f};if(p){const f=document.activeElement;if(l.element(f)){const{editable:T}=t.config.selectors,{seek:w}=s.inputs;if(f!==w&&Y(f,T)||i.key===" "&&Y(f,'button, [role^="menuitem"]'))return}switch([" ","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(a)&&(i.preventDefault(),i.stopPropagation()),a){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":y||h(Number.parseInt(a,10));break;case" ":case"k":y||V(t.togglePlay());break;case"ArrowUp":t.increaseVolume(.1);break;case"ArrowDown":t.decreaseVolume(.1);break;case"m":y||(t.muted=!t.muted);break;case"ArrowRight":t.forward();break;case"ArrowLeft":t.rewind();break;case"f":t.fullscreen.toggle();break;case"c":y||t.toggleCaptions();break;case"l":t.loop=!t.loop;break}a==="Escape"&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=a}else this.lastKey=null}toggleMenu(i){d.toggleMenu.call(this.player,i)}}var Me={exports:{}},mi=Me.exports,ht;function pi(){return ht||(ht=1,(function(e,i){(function(t,s){e.exports=s()})(mi,function(){var t=function(){},s={},a={},n={};function r(h,f){h=h.push?h:[h];var T=[],w=h.length,I=w,P,g,k,M;for(P=function(j,H){H.length&&T.push(j),I--,I||f(T)};w--;){if(g=h[w],k=a[g],k){P(g,k);continue}M=n[g]=n[g]||[],M.push(P)}}function o(h,f){if(h){var T=n[h];if(a[h]=f,!!T)for(;T.length;)T[0](h,f),T.splice(0,1)}}function c(h,f){h.call&&(h={success:h}),f.length?(h.error||t)(f):(h.success||t)(h)}function u(h,f,T,w){var I=document,P=T.async,g=(T.numRetries||0)+1,k=T.before||t,M=h.replace(/[\?|#].*$/,""),j=h.replace(/^(css|img|module|nomodule)!/,""),H,R,N;if(w=w||0,/(^css!|\.css$)/.test(M))N=I.createElement("link"),N.rel="stylesheet",N.href=j,H="hideFocus"in N,H&&N.relList&&(H=0,N.rel="preload",N.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(M))N=I.createElement("img"),N.src=j;else if(N=I.createElement("script"),N.src=j,N.async=P===void 0?!0:P,R="noModule"in N,/^module!/.test(M)){if(!R)return f(h,"l");N.type="module"}else if(/^nomodule!/.test(M)&&R)return f(h,"l");N.onload=N.onerror=N.onbeforeload=function($e){var le=$e.type[0];if(H)try{N.sheet.cssText.length||(le="e")}catch(gt){gt.code!=18&&(le="e")}if(le=="e"){if(w+=1,w<g)return u(h,f,T,w)}else if(N.rel=="preload"&&N.as=="style")return N.rel="stylesheet";f(h,le,$e.defaultPrevented)},k(h,N)!==!1&&I.head.appendChild(N)}function p(h,f,T){h=h.push?h:[h];var w=h.length,I=w,P=[],g,k;for(g=function(M,j,H){if(j=="e"&&P.push(M),j=="b")if(H)P.push(M);else return;w--,w||f(P)},k=0;k<I;k++)u(h[k],g,T)}function y(h,f,T){var w,I;if(f&&f.trim&&(w=f),I=(w?T:f)||{},w){if(w in s)throw"LoadJS";s[w]=!0}function P(g,k){p(h,function(M){c(I,M),g&&c({success:g,error:k},M),o(w,M)},I)}if(I.returnPromise)return new Promise(P);P()}return y.ready=function(h,f){return r(h,function(T){c(f,T)}),y},y.done=function(h){o(h,[])},y.reset=function(){s={},a={},n={}},y.isDefined=function(h){return h in s},y})})(Me)),Me.exports}var gi=pi();const fi=bt(gi);function Ne(e){return new Promise((i,t)=>{fi(e,{success:i,error:t})})}function yi(e){if(l.empty(e))return null;if(l.number(Number(e)))return e;const i=/^.*(vimeo.com\/|video\/)(\d+).*/,t=e.match(i);return t?t[2]:e}function bi(e){const i=/^.*(vimeo.com\/|video\/)(\d+)(\?.*h=|\/)+([\d,a-f]+)/,t=e.match(i);return t&&t.length===5?t[4]:null}function ie(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,v.call(this,this.media,e?"play":"pause"))}const xe={setup(){const e=this;S(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,X.call(e),l.object(window.Vimeo)?xe.ready.call(e):Ne(e.config.urls.vimeo.sdk).then(()=>{xe.ready.call(e)}).catch(i=>{e.debug.warn("Vimeo SDK (player.js) failed to load",i)})},ready(){const e=this,i=e.config.vimeo,{premium:t,referrerPolicy:s,...a}=i;let n=e.media.getAttribute("src"),r="";l.empty(n)?(n=e.media.getAttribute(e.config.attributes.embed.id),r=e.media.getAttribute(e.config.attributes.embed.hash)):r=bi(n);const o=r?{h:r}:{};t&&Object.assign(a,{controls:!1,sidedock:!1});const c=ct({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:e.config.playsinline,...o,...a}),u=yi(n),p=b("iframe"),y=Ae(e.config.urls.vimeo.iframe,u,c);if(p.setAttribute("src",y),p.setAttribute("allowfullscreen",""),p.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),l.empty(s)||p.setAttribute("referrerPolicy",s),t||!i.customControls)p.setAttribute("data-poster",e.poster),e.media=ce(p,e.media);else{const g=b("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});g.appendChild(p),e.media=ce(g,e.media)}i.customControls||te(Ae(e.config.urls.vimeo.api,y)).then(g=>{l.empty(g)||!g.thumbnail_url||E.setPoster.call(e,g.thumbnail_url).catch(()=>{})}),e.embed=new window.Vimeo.Player(p,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=()=>(ie.call(e,!0),e.embed.play()),e.media.pause=()=>(ie.call(e,!1),e.embed.pause()),e.media.stop=()=>{e.pause(),e.currentTime=0};let{currentTime:h}=e.media;Object.defineProperty(e.media,"currentTime",{get(){return h},set(g){const{embed:k,media:M,paused:j,volume:H}=e,R=j&&!k.hasPlayed;M.seeking=!0,v.call(e,M,"seeking"),Promise.resolve(R&&k.setVolume(0)).then(()=>k.setCurrentTime(g)).then(()=>R&&k.pause()).then(()=>R&&k.setVolume(H)).catch(()=>{})}});let f=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get(){return f},set(g){e.embed.setPlaybackRate(g).then(()=>{f=g,v.call(e,e.media,"ratechange")}).catch(()=>{e.options.speed=[1]})}});let{volume:T}=e.config;Object.defineProperty(e.media,"volume",{get(){return T},set(g){e.embed.setVolume(g).then(()=>{T=g,v.call(e,e.media,"volumechange")})}});let{muted:w}=e.config;Object.defineProperty(e.media,"muted",{get(){return w},set(g){const k=l.boolean(g)?g:!1;e.embed.setMuted(k?!0:e.config.muted).then(()=>{w=k,v.call(e,e.media,"volumechange")})}});let{loop:I}=e.config;Object.defineProperty(e.media,"loop",{get(){return I},set(g){const k=l.boolean(g)?g:e.config.loop.active;e.embed.setLoop(k).then(()=>{I=k})}});let P;e.embed.getVideoUrl().then(g=>{P=g,d.setDownloadUrl.call(e)}).catch(g=>{this.debug.warn(g)}),Object.defineProperty(e.media,"currentSrc",{get(){return P}}),Object.defineProperty(e.media,"ended",{get(){return e.currentTime===e.duration}}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then(g=>{const[k,M]=g;e.embed.ratio=st(k,M),X.call(this)}),e.embed.setAutopause(e.config.autopause).then(g=>{e.config.autopause=g}),e.embed.getVideoTitle().then(g=>{e.config.title=g,E.setTitle.call(this)}),e.embed.getCurrentTime().then(g=>{h=g,v.call(e,e.media,"timeupdate")}),e.embed.getDuration().then(g=>{e.media.duration=g,v.call(e,e.media,"durationchange")}),e.embed.getTextTracks().then(g=>{e.media.textTracks=g,A.setup.call(e)}),e.embed.on("cuechange",({cues:g=[]})=>{const k=g.map(M=>li(M.text));A.updateCues.call(e,k)}),e.embed.on("loaded",()=>{e.embed.getPaused().then(g=>{ie.call(e,!g),g||v.call(e,e.media,"playing")}),l.element(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute("tabindex",-1)}),e.embed.on("bufferstart",()=>{v.call(e,e.media,"waiting")}),e.embed.on("bufferend",()=>{v.call(e,e.media,"playing")}),e.embed.on("play",()=>{ie.call(e,!0),v.call(e,e.media,"playing")}),e.embed.on("pause",()=>{ie.call(e,!1)}),e.embed.on("timeupdate",g=>{e.media.seeking=!1,h=g.seconds,v.call(e,e.media,"timeupdate")}),e.embed.on("progress",g=>{e.media.buffered=g.percent,v.call(e,e.media,"progress"),Number.parseInt(g.percent,10)===1&&v.call(e,e.media,"canplaythrough"),e.embed.getDuration().then(k=>{k!==e.media.duration&&(e.media.duration=k,v.call(e,e.media,"durationchange"))})}),e.embed.on("seeked",()=>{e.media.seeking=!1,v.call(e,e.media,"seeked")}),e.embed.on("ended",()=>{e.media.paused=!0,v.call(e,e.media,"ended")}),e.embed.on("error",g=>{e.media.error=g,v.call(e,e.media,"error")}),i.customControls&&setTimeout(()=>E.build.call(e),0)}};function vi(e){if(l.empty(e))return null;const i=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/,t=e.match(i);return t&&t[2]?t[2]:e}function se(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,v.call(this,this.media,e?"play":"pause"))}function wi(e){if(e.noCookie)return"https://www.youtube-nocookie.com";if(window.location.protocol==="http:")return"http://www.youtube.com"}const ge={setup(){if(S(this.elements.wrapper,this.config.classNames.embed,!0),l.object(window.YT)&&l.function(window.YT.Player))ge.ready.call(this);else{const e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{l.function(e)&&e(),ge.ready.call(this)},Ne(this.config.urls.youtube.sdk).catch(i=>{this.debug.warn("YouTube API failed to load",i)})}},getTitle(e){const i=Ae(this.config.urls.youtube.api,e);te(i).then(t=>{if(l.object(t)){const{title:s,height:a,width:n}=t;this.config.title=s,E.setTitle.call(this),this.embed.ratio=st(n,a)}X.call(this)}).catch(()=>{X.call(this)})},ready(){const e=this,i=e.config.youtube,t=e.media&&e.media.getAttribute("id");if(!l.empty(t)&&t.startsWith("youtube-"))return;let s=e.media.getAttribute("src");l.empty(s)&&(s=e.media.getAttribute(this.config.attributes.embed.id));const a=vi(s),n=ii(e.provider),r=b("div",{id:n,"data-poster":i.customControls?e.poster:void 0});if(e.media=ce(r,e.media),i.customControls){const o=c=>`https://i.ytimg.com/vi/${a}/${c}default.jpg`;pe(o("maxres"),121).catch(()=>pe(o("sd"),121)).catch(()=>pe(o("hq"))).then(c=>E.setPoster.call(e,c.src)).then(c=>{c.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")}).catch(()=>{})}e.embed=new window.YT.Player(e.media,{videoId:a,host:wi(i),playerVars:x({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&i.customControls?0:1,disablekb:1,playsinline:e.config.playsinline&&!e.config.fullscreen.iosNative?1:0,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},i),events:{onError(o){if(!e.media.error){const c=o.data,u={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[c]||"An unknown error occurred";e.media.error={code:c,message:u},v.call(e,e.media,"error")}},onPlaybackRateChange(o){const c=o.target;e.media.playbackRate=c.getPlaybackRate(),v.call(e,e.media,"ratechange")},onReady(o){if(l.function(e.media.play))return;const c=o.target;ge.getTitle.call(e,a),e.media.play=()=>{se.call(e,!0),c.playVideo()},e.media.pause=()=>{se.call(e,!1),c.pauseVideo()},e.media.stop=()=>{c.stopVideo()},e.media.duration=c.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get(){return Number(c.getCurrentTime())},set(h){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,v.call(e,e.media,"seeking"),c.seekTo(h)}}),Object.defineProperty(e.media,"playbackRate",{get(){return c.getPlaybackRate()},set(h){c.setPlaybackRate(h)}});let{volume:u}=e.config;Object.defineProperty(e.media,"volume",{get(){return u},set(h){u=h,c.setVolume(u*100),v.call(e,e.media,"volumechange")}});let{muted:p}=e.config;Object.defineProperty(e.media,"muted",{get(){return p},set(h){const f=l.boolean(h)?h:p;p=f,c[f?"mute":"unMute"](),c.setVolume(u*100),v.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get(){return c.getVideoUrl()}}),Object.defineProperty(e.media,"ended",{get(){return e.currentTime===e.duration}});const y=c.getAvailablePlaybackRates();e.options.speed=y.filter(h=>e.config.speed.options.includes(h)),e.supported.ui&&i.customControls&&e.media.setAttribute("tabindex",-1),v.call(e,e.media,"timeupdate"),v.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval(()=>{e.media.buffered=c.getVideoLoadedFraction(),(e.media.lastBuffered===null||e.media.lastBuffered<e.media.buffered)&&v.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,e.media.buffered===1&&(clearInterval(e.timers.buffering),v.call(e,e.media,"canplaythrough"))},200),i.customControls&&setTimeout(()=>E.build.call(e),50)},onStateChange(o){const c=o.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(o.data)&&(e.media.seeking=!1,v.call(e,e.media,"seeked")),o.data){case-1:v.call(e,e.media,"timeupdate"),e.media.buffered=c.getVideoLoadedFraction(),v.call(e,e.media,"progress");break;case 0:se.call(e,!1),e.media.loop?(c.stopVideo(),c.playVideo()):v.call(e,e.media,"ended");break;case 1:i.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(se.call(e,!0),v.call(e,e.media,"playing"),e.timers.playing=setInterval(()=>{v.call(e,e.media,"timeupdate")},50),e.media.duration!==c.getDuration()&&(e.media.duration=c.getDuration(),v.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),se.call(e,!1);break;case 3:v.call(e,e.media,"waiting");break}v.call(e,e.elements.container,"statechange",!1,{code:o.data})}}})}},dt={setup(){if(!this.media){this.debug.warn("No media element found!");return}S(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),S(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&S(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=b("div",{class:this.config.classNames.video}),Qe(this.media,this.elements.wrapper),this.elements.poster=b("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?B.setup.call(this):this.isYouTube?ge.setup.call(this):this.isVimeo&&xe.setup.call(this)}};function ki(e){e.manager&&e.manager.destroy(),e.elements.displayContainer&&e.elements.displayContainer.destroy(),e.elements.container.remove()}class Ti{constructor(i){m(this,"load",()=>{this.enabled&&(!l.object(window.google)||!l.object(window.google.ima)?Ne(this.player.config.urls.googleIMA.sdk).then(()=>{this.ready()}).catch(()=>{this.trigger("error",new Error("Google IMA SDK failed to load"))}):this.ready())}),m(this,"ready",()=>{this.enabled||ki(this),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(()=>{this.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}),m(this,"setupIMA",()=>{this.elements.container=b("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,t=>this.onAdsManagerLoaded(t),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,t=>this.onAdError(t),!1),this.requestAds()}),m(this,"requestAds",()=>{const{container:t}=this.player.elements;try{const s=new google.ima.AdsRequest;s.adTagUrl=this.tagUrl,s.linearAdSlotWidth=t.offsetWidth,s.linearAdSlotHeight=t.offsetHeight,s.nonLinearAdSlotWidth=t.offsetWidth,s.nonLinearAdSlotHeight=t.offsetHeight,s.forceNonLinearFullSlot=!1,s.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(s)}catch(s){this.onAdError(s)}}),m(this,"pollCountdown",(t=!1)=>{if(!t){clearInterval(this.countdownTimer),this.elements.container.removeAttribute("data-badge-text");return}const s=()=>{const a=me(Math.max(this.manager.getRemainingTime(),0)),n=`${O.get("advertisement",this.player.config)} - ${a}`;this.elements.container.setAttribute("data-badge-text",n)};this.countdownTimer=setInterval(s,100)}),m(this,"onAdsManagerLoaded",t=>{if(!this.enabled)return;const s=new google.ima.AdsRenderingSettings;s.restoreCustomPlaybackStateOnAdBreakComplete=!0,s.enablePreloading=!0,this.manager=t.getAdsManager(this.player,s),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,a=>this.onAdError(a)),Object.keys(google.ima.AdEvent.Type).forEach(a=>{this.manager.addEventListener(google.ima.AdEvent.Type[a],n=>this.onAdEvent(n))}),this.trigger("loaded")}),m(this,"addCuePoints",()=>{l.empty(this.cuePoints)||this.cuePoints.forEach(t=>{if(t!==0&&t!==-1&&t<this.player.duration){const s=this.player.elements.progress;if(l.element(s)){const a=100/this.player.duration*t,n=b("span",{class:this.player.config.classNames.cues});n.style.left=`${a.toString()}%`,s.appendChild(n)}}})}),m(this,"onAdEvent",t=>{const{container:s}=this.player.elements,a=t.getAd(),n=t.getAdData();switch((r=>{v.call(this.player,this.player.media,`ads${r.replace(/_/g,"").toLowerCase()}`)})(t.type),t.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),a.isLinear()||(a.width=s.offsetWidth,a.height=s.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:n.adError&&this.player.debug.warn(`Non-fatal ad error: ${n.adError.getMessage()}`);break}}),m(this,"onAdError",t=>{this.cancel(),this.player.debug.warn("Ads error",t)}),m(this,"listeners",()=>{const{container:t}=this.player.elements;let s;this.player.on("canplay",()=>{this.addCuePoints()}),this.player.on("ended",()=>{this.loader.contentComplete()}),this.player.on("timeupdate",()=>{s=this.player.currentTime}),this.player.on("seeked",()=>{const a=this.player.currentTime;l.empty(this.cuePoints)||this.cuePoints.forEach((n,r)=>{s<n&&n<a&&(this.manager.discardAdBreak(),this.cuePoints.splice(r,1))})}),window.addEventListener("resize",()=>{this.manager&&this.manager.resize(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL)})}),m(this,"play",()=>{const{container:t}=this.player.elements;this.managerPromise||this.resumeContent(),this.managerPromise.then(()=>{this.manager.setVolume(this.player.volume),this.elements.displayContainer.initialize();try{this.initialized||(this.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(s){this.onAdError(s)}}).catch(()=>{})}),m(this,"resumeContent",()=>{this.elements.container.style.zIndex="",this.playing=!1,V(this.player.media.play())}),m(this,"pauseContent",()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}),m(this,"cancel",()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}),m(this,"loadAds",()=>{this.managerPromise.then(()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise(t=>{this.on("loaded",t),this.player.debug.log(this.manager)}),this.initialized=!1,this.requestAds()}).catch(()=>{})}),m(this,"trigger",(t,...s)=>{const a=this.events[t];l.array(a)&&a.forEach(n=>{l.function(n)&&n.apply(this,s)})}),m(this,"on",(t,s)=>(l.array(this.events[t])||(this.events[t]=[]),this.events[t].push(s),this)),m(this,"startSafetyTimer",(t,s)=>{this.player.debug.log(`Safety timer invoked from: ${s}`),this.safetyTimer=setTimeout(()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()")},t)}),m(this,"clearSafetyTimer",t=>{l.nullOrUndefined(this.safetyTimer)||(this.player.debug.log(`Safety timer cleared from: ${t}`),clearTimeout(this.safetyTimer),this.safetyTimer=null)}),this.player=i,this.config=i.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((t,s)=>{this.on("loaded",t),this.on("error",s)}),this.load()}get enabled(){const{config:i}=this;return this.player.isHTML5&&this.player.isVideo&&i.enabled&&(!l.empty(i.publisherId)||l.url(i.tagUrl))}get tagUrl(){const{config:i}=this;if(l.url(i.tagUrl))return i.tagUrl;const t={AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:i.publisherId};return`https://go.aniview.com/api/adserver6/vast/?${ct(t)}`}}function mt(e=0,i=0,t=255){return Math.min(Math.max(e,i),t)}function Ci(e){const i=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach(t=>{const s={};t.split(/\r\n|\n|\r/).forEach(a=>{if(l.number(s.startTime)){if(!l.empty(a.trim())&&l.empty(s.text)){const n=a.trim().split("#xywh=");[s.text]=n,n[1]&&([s.x,s.y,s.w,s.h]=n[1].split(","))}}else{const n=a.match(/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})( ?--> ?)(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/);n&&(s.startTime=Number(n[1]||0)*60*60+Number(n[2])*60+Number(n[3])+ +`0.${n[4]}`,s.endTime=Number(n[6]||0)*60*60+Number(n[7])*60+Number(n[8])+ +`0.${n[9]}`)}}),s.text&&i.push(s)}),i}function pt(e,i){const t=i.width/i.height,s={};return e>t?(s.width=i.width,s.height=1/e*i.width):(s.height=i.height,s.width=e*i.height),s}class Le{constructor(i){m(this,"load",()=>{this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(()=>{this.enabled&&(this.render(),this.determineContainerAutoSizing(),this.listeners(),this.loaded=!0)})}),m(this,"getThumbnails",()=>new Promise(t=>{const{src:s}=this.player.config.previewThumbnails;if(l.empty(s))throw new Error("Missing previewThumbnails.src config attribute");const a=()=>{this.thumbnails.sort((n,r)=>n.height-r.height),this.player.debug.log("Preview thumbnails",this.thumbnails),t()};if(l.function(s))s(n=>{this.thumbnails=n,a()});else{const n=(l.string(s)?[s]:s).map(r=>this.getThumbnail(r));Promise.all(n).then(a)}})),m(this,"getThumbnail",t=>new Promise(s=>{te(t,void 0,this.player.config.previewThumbnails.withCredentials).then(a=>{const n={frames:Ci(a),height:null,urlPrefix:""};!n.frames[0].text.startsWith("/")&&!n.frames[0].text.startsWith("http://")&&!n.frames[0].text.startsWith("https://")&&(n.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));const r=new Image;r.onload=()=>{n.height=r.naturalHeight,n.width=r.naturalWidth,this.thumbnails.push(n),s()},r.src=n.urlPrefix+n.frames[0].text})})),m(this,"startMove",t=>{var s,a;if(this.loaded&&!(!l.event(t)||!["touchmove","mousemove"].includes(t.type))&&this.player.media.duration){if(t.type==="touchmove")this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{const n=this.player.elements.progress.getBoundingClientRect(),r=100/n.width*(t.pageX-n.left);this.seekTime=this.player.media.duration*(r/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=t.pageX,this.elements.thumb.time.textContent=me(this.seekTime);const o=(a=(s=this.player.config.markers)==null?void 0:s.points)==null?void 0:a.find(({time:c})=>c===Math.round(this.seekTime));o&&this.elements.thumb.time.insertAdjacentHTML("afterbegin",`${o.label}<br>`)}this.showImageAtCurrentTime()}}),m(this,"endMove",()=>{this.toggleThumbContainer(!1,!0)}),m(this,"startScrubbing",t=>{(l.nullOrUndefined(t.button)||t.button===!1||t.button===0)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}),m(this,"endScrubbing",()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):ke.call(this.player,this.player.media,"timeupdate",()=>{this.mouseDown||this.toggleScrubbingContainer(!1)})}),m(this,"listeners",()=>{this.player.on("play",()=>{this.toggleThumbContainer(!1,!0)}),this.player.on("seeked",()=>{this.toggleThumbContainer(!1)}),this.player.on("timeupdate",()=>{this.lastTime=this.player.media.currentTime})}),m(this,"render",()=>{this.elements.thumb.container=b("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=b("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const t=b("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=b("span",{},"00:00"),t.appendChild(this.elements.thumb.time),this.elements.thumb.imageContainer.appendChild(t),l.element(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=b("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}),m(this,"destroy",()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}),m(this,"showImageAtCurrentTime",()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();const t=this.thumbnails[0].frames.findIndex(n=>this.seekTime>=n.startTime&&this.seekTime<=n.endTime),s=t>=0;let a=0;this.mouseDown||this.toggleThumbContainer(s),s&&(this.thumbnails.forEach((n,r)=>{this.loadedImages.includes(n.frames[t].text)&&(a=r)}),t!==this.showingThumb&&(this.showingThumb=t,this.loadImage(a)))}),m(this,"loadImage",(t=0)=>{const s=this.showingThumb,a=this.thumbnails[t],{urlPrefix:n}=a,r=a.frames[s],o=a.frames[s].text,c=n+o;if(!this.currentImageElement||this.currentImageElement.dataset.filename!==o){this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const u=new Image;u.src=c,u.dataset.index=s,u.dataset.filename=o,this.showingThumbFilename=o,this.player.debug.log(`Loading image: ${c}`),u.onload=()=>this.showImage(u,r,t,s,o,!0),this.loadingImage=u,this.removeOldImages(u)}else this.showImage(this.currentImageElement,r,t,s,o,!1),this.currentImageElement.dataset.index=s,this.removeOldImages(this.currentImageElement)}),m(this,"showImage",(t,s,a,n,r,o=!0)=>{this.player.debug.log(`Showing thumb: ${r}. num: ${n}. qual: ${a}. newimg: ${o}`),this.setImageSizeAndOffset(t,s),o&&(this.currentImageContainer.appendChild(t),this.currentImageElement=t,this.loadedImages.includes(r)||this.loadedImages.push(r)),this.preloadNearby(n,!0).then(this.preloadNearby(n,!1)).then(this.getHigherQuality(a,t,s,r))}),m(this,"removeOldImages",t=>{Array.from(this.currentImageContainer.children).forEach(s=>{if(s.tagName.toLowerCase()!=="img")return;const a=this.usingSprites?500:1e3;if(s.dataset.index!==t.dataset.index&&!s.dataset.deleting){s.dataset.deleting=!0;const{currentImageContainer:n}=this;setTimeout(()=>{n.removeChild(s),this.player.debug.log(`Removing thumb: ${s.dataset.filename}`)},a)}})}),m(this,"preloadNearby",(t,s=!0)=>new Promise(a=>{setTimeout(()=>{const n=this.thumbnails[0].frames[t].text;if(this.showingThumbFilename===n){let r;s?r=this.thumbnails[0].frames.slice(t):r=this.thumbnails[0].frames.slice(0,t).reverse();let o=!1;r.forEach(c=>{const u=c.text;if(u!==n&&!this.loadedImages.includes(u)){o=!0,this.player.debug.log(`Preloading thumb filename: ${u}`);const{urlPrefix:p}=this.thumbnails[0],y=p+u,h=new Image;h.src=y,h.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${u}`),this.loadedImages.includes(u)||this.loadedImages.push(u),a()}}}),o||a()}},300)})),m(this,"getHigherQuality",(t,s,a,n)=>{if(t<this.thumbnails.length-1){let r=s.naturalHeight;this.usingSprites&&(r=a.h),r<this.thumbContainerHeight&&setTimeout(()=>{this.showingThumbFilename===n&&(this.player.debug.log(`Showing higher quality thumb for: ${n}`),this.loadImage(t+1))},300)}}),m(this,"toggleThumbContainer",(t=!1,s=!1)=>{const a=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(a,t),!t&&s&&(this.showingThumb=null,this.showingThumbFilename=null)}),m(this,"toggleScrubbingContainer",(t=!1)=>{const s=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(s,t),t||(this.showingThumb=null,this.showingThumbFilename=null)}),m(this,"determineContainerAutoSizing",()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}),m(this,"setThumbContainerSizeAndPos",()=>{const{imageContainer:t}=this.elements.thumb;if(this.sizeSpecifiedInCSS){if(t.clientHeight>20&&t.clientWidth<20){const s=Math.floor(t.clientHeight*this.thumbAspectRatio);t.style.width=`${s}px`}else if(t.clientHeight<20&&t.clientWidth>20){const s=Math.floor(t.clientWidth/this.thumbAspectRatio);t.style.height=`${s}px`}}else{const s=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);t.style.height=`${this.thumbContainerHeight}px`,t.style.width=`${s}px`}this.setThumbContainerPos()}),m(this,"setThumbContainerPos",()=>{const t=this.player.elements.progress.getBoundingClientRect(),s=this.player.elements.container.getBoundingClientRect(),{container:a}=this.elements.thumb,n=s.left-t.left+10,r=s.right-t.left-a.clientWidth-10,o=this.mousePosX-t.left-a.clientWidth/2,c=mt(o,n,r);a.style.left=`${c}px`,a.style.setProperty("--preview-arrow-offset",`${o-c}px`)}),m(this,"setScrubbingContainerSize",()=>{const{width:t,height:s}=pt(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=`${t}px`,this.elements.scrubbing.container.style.height=`${s}px`}),m(this,"setImageSizeAndOffset",(t,s)=>{if(!this.usingSprites)return;const a=this.thumbContainerHeight/s.h;t.style.height=`${t.naturalHeight*a}px`,t.style.width=`${t.naturalWidth*a}px`,t.style.left=`-${s.x*a}px`,t.style.top=`-${s.y*a}px`}),this.player=i,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}get thumbAspectRatio(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}get thumbContainerHeight(){if(this.mouseDown){const{height:i}=pt(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return i}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement}set currentImageElement(i){this.mouseDown?this.currentScrubbingImageElement=i:this.currentThumbnailImageElement=i}}const Ie={insertElements(e,i){l.string(i)?Je(e,this.media,{src:i}):l.array(i)&&i.forEach(t=>{Je(e,this.media,t)})},change(e){if(!Xe(e,"sources.length")){this.debug.warn("Invalid source format");return}B.cancelRequests.call(this),this.destroy(()=>{this.options.quality=[],W(this.media),this.media=null,l.element(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:i,type:t}=e,[{provider:s=z.html5,src:a}]=i,n=s==="html5"?t:"div",r=s==="html5"?{}:{src:a};Object.assign(this,{provider:s,type:t,supported:L.check(t,s,this.config.playsinline),media:b(n,r)}),this.elements.container.appendChild(this.media),l.boolean(e.autoplay)&&(this.config.autoplay=e.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),l.empty(e.poster)||(this.poster=e.poster),this.config.loop.active&&this.media.setAttribute("loop",""),this.config.muted&&this.media.setAttribute("muted",""),this.config.playsinline&&this.media.setAttribute("playsinline","")),E.addStyleHook.call(this),this.isHTML5&&Ie.insertElements.call(this,"source",i),this.config.title=e.title,dt.setup.call(this),this.isHTML5&&Object.keys(e).includes("tracks")&&Ie.insertElements.call(this,"track",e.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&E.build.call(this),this.isHTML5&&this.media.load(),l.empty(e.previewThumbnails)||(Object.assign(this.config.previewThumbnails,e.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Le(this))),this.fullscreen.update()},!0)}};class ae{constructor(i,t){if(m(this,"play",()=>l.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>V(this.media.play())),this.media.play()):null),m(this,"pause",()=>!this.playing||!l.function(this.media.pause)?null:this.media.pause()),m(this,"togglePlay",o=>(l.boolean(o)?o:!this.playing)?this.play():this.pause()),m(this,"stop",()=>{this.isHTML5?(this.pause(),this.restart()):l.function(this.media.stop)&&this.media.stop()}),m(this,"restart",()=>{this.currentTime=0}),m(this,"rewind",o=>{this.currentTime-=l.number(o)?o:this.config.seekTime}),m(this,"forward",o=>{this.currentTime+=l.number(o)?o:this.config.seekTime}),m(this,"increaseVolume",o=>{const c=this.media.muted?0:this.volume;this.volume=c+(l.number(o)?o:0)}),m(this,"decreaseVolume",o=>{this.increaseVolume(-o)}),m(this,"airplay",()=>{L.airplay&&this.media.webkitShowPlaybackTargetPicker()}),m(this,"toggleControls",o=>{if(this.supported.ui&&!this.isAudio){const c=ue(this.elements.container,this.config.classNames.hideControls),u=typeof o>"u"?void 0:!o,p=S(this.elements.container,this.config.classNames.hideControls,u);if(p&&l.array(this.config.controls)&&this.config.controls.includes("settings")&&!l.empty(this.config.settings)&&d.toggleMenu.call(this,!1),p!==c){const y=p?"controlshidden":"controlsshown";v.call(this,this.media,y)}return!p}return!1}),m(this,"on",(o,c)=>{C.call(this,this.elements.container,o,c)}),m(this,"once",(o,c)=>{ke.call(this,this.elements.container,o,c)}),m(this,"off",(o,c)=>{he(this.elements.container,o,c)}),m(this,"destroy",(o,c=!1)=>{if(!this.ready)return;const u=()=>{document.body.style.overflow="",this.embed=null,c?(Object.keys(this.elements).length&&(W(this.elements.buttons.play),W(this.elements.captions),W(this.elements.controls),W(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),l.function(o)&&o()):(Yt.call(this),B.cancelRequests.call(this),ce(this.elements.original,this.elements.container),v.call(this,this.elements.original,"destroyed",!0),l.function(o)&&o.call(this.elements.original),this.ready=!1,setTimeout(()=>{this.elements=null,this.media=null},200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(E.toggleNativeControls.call(this,!0),u()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),this.embed!==null&&l.function(this.embed.destroy)&&this.embed.destroy(),u()):this.isVimeo&&(this.embed!==null&&this.embed.unload().then(u),setTimeout(u,200))}),m(this,"supports",o=>L.mime.call(this,o)),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=L.touch,this.media=i,l.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||l.nodeList(this.media)||l.array(this.media))&&(this.media=this.media[0]),this.config=x({},ut,ae.defaults,t||{},(()=>{try{return JSON.parse(this.media.getAttribute("data-plyr-config"))}catch{return{}}})()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new hi(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",L),l.nullOrUndefined(this.media)||!l.element(this.media)){this.debug.error("Setup failed: no suitable element passed");return}if(this.media.plyr){this.debug.warn("Target already setup");return}if(!this.config.enabled){this.debug.error("Setup failed: disabled by config");return}if(!L.check().api){this.debug.error("Setup failed: no support");return}const s=this.media.cloneNode(!0);s.autoplay=!1,this.elements.original=s;const a=this.media.tagName.toLowerCase();let n=null,r=null;switch(a){case"div":if(n=this.media.querySelector("iframe"),l.element(n)){if(r=ot(n.getAttribute("src")),this.provider=ui(r.toString()),this.elements.container=this.media,this.media=n,this.elements.container.className="",r.search.length){const o=["1","true"];o.includes(r.searchParams.get("autoplay"))&&(this.config.autoplay=!0),o.includes(r.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=o.includes(r.searchParams.get("playsinline")),this.config.youtube.hl=r.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(l.empty(this.provider)||!Object.values(z).includes(this.provider)){this.debug.error("Setup failed: Invalid provider");return}this.type=Ee.video;break;case"video":case"audio":this.type=a,this.provider=z.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:this.debug.error("Setup failed: unsupported type");return}if(this.supported=L.check(this.type,this.provider),!this.supported.api){this.debug.error("Setup failed: no support");return}this.eventListeners=[],this.listeners=new di(this),this.storage=new ne(this),this.media.plyr=this,l.element(this.elements.container)||(this.elements.container=b("div"),Qe(this.media,this.elements.container)),E.migrateStyles.call(this),E.addStyleHook.call(this),dt.setup.call(this),this.config.debug&&C.call(this,this.elements.container,this.config.events.join(" "),o=>{this.debug.log(`event: ${o.type}`)}),this.fullscreen=new q(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&E.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new Ti(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",()=>V(this.play())),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Le(this))}get isHTML5(){return this.provider===z.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===z.youtube}get isVimeo(){return this.provider===z.vimeo}get isVideo(){return this.type===Ee.video}get isAudio(){return this.type===Ee.audio}get playing(){return!!(this.ready&&!this.paused&&!this.ended)}get paused(){return!!this.media.paused}get stopped(){return!!(this.paused&&this.currentTime===0)}get ended(){return!!this.media.ended}set currentTime(i){if(!this.duration)return;const t=l.number(i)&&i>0;this.media.currentTime=t?Math.min(i,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`)}get currentTime(){return Number(this.media.currentTime)}get buffered(){const{buffered:i}=this.media;return l.number(i)?i:i&&i.length&&this.duration>0?i.end(0)/this.duration:0}get seeking(){return!!this.media.seeking}get duration(){const i=Number.parseFloat(this.config.duration),t=(this.media||{}).duration,s=!l.number(t)||t===1/0?0:t;return i||s}set volume(i){let t=i;const s=1,a=0;l.string(t)&&(t=Number(t)),l.number(t)||(t=this.storage.get("volume")),l.number(t)||({volume:t}=this.config),t>s&&(t=s),t<a&&(t=a),this.config.volume=t,this.media.volume=t,!l.empty(i)&&this.muted&&t>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(i){let t=i;l.boolean(t)||(t=this.storage.get("muted")),l.boolean(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t}get muted(){return!!this.media.muted}get hasAudio(){return!this.isHTML5||this.isAudio?!0:!!this.media.mozHasAudio||!!this.media.webkitAudioDecodedByteCount||!!(this.media.audioTracks&&this.media.audioTracks.length)}set speed(i){let t=null;l.number(i)&&(t=i),l.number(t)||(t=this.storage.get("speed")),l.number(t)||(t=this.config.speed.selected);const{minimumSpeed:s,maximumSpeed:a}=this;t=mt(t,s,a),this.config.speed.selected=t,setTimeout(()=>{this.media&&(this.media.playbackRate=t)},0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(i){const t=this.config.quality,s=this.options.quality;if(!s.length)return;let a=[!l.empty(i)&&Number(i),this.storage.get("quality"),t.selected,t.default].find(l.number),n=!0;if(!s.includes(a)){const r=Ze(s,a);this.debug.warn(`Unsupported quality option: ${a}, using ${r} instead`),a=r,n=!1}t.selected=a,this.media.quality=a,n&&this.storage.set({quality:a})}get quality(){return this.media.quality}set loop(i){const t=l.boolean(i)?i:this.config.loop.active;this.config.loop.active=t,this.media.loop=t}get loop(){return!!this.media.loop}set source(i){Ie.change.call(this,i)}get source(){return this.media.currentSrc}get download(){const{download:i}=this.config.urls;return l.url(i)?i:this.source}set download(i){l.url(i)&&(this.config.urls.download=i,d.setDownloadUrl.call(this))}set poster(i){if(!this.isVideo){this.debug.warn("Poster can only be set for video");return}E.setPoster.call(this,i,!1).catch(()=>{})}get poster(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}get ratio(){if(!this.isVideo)return null;const i=de(Ce.call(this));return l.array(i)?i.join(":"):i}set ratio(i){if(!this.isVideo){this.debug.warn("Aspect ratio can only be set for video");return}if(!l.string(i)||!it(i)){this.debug.error(`Invalid aspect ratio specified (${i})`);return}this.config.ratio=de(i),X.call(this)}set autoplay(i){this.config.autoplay=l.boolean(i)?i:this.config.autoplay}get autoplay(){return!!this.config.autoplay}toggleCaptions(i){A.toggle.call(this,i,!1)}set currentTrack(i){A.set.call(this,i,!1),A.setup.call(this)}get currentTrack(){const{toggled:i,currentTrack:t}=this.captions;return i?t:-1}set language(i){A.setLanguage.call(this,i,!1)}get language(){return(A.getCurrentTrack.call(this)||{}).language}set pip(i){if(!L.pip)return;const t=l.boolean(i)?i:!this.pip;l.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?Se.active:Se.inactive),l.function(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}get pip(){return L.pip?l.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===Se.active:null}setPreviewThumbnails(i){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,i),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Le(this))}static supported(i,t){return L.check(i,t)}static loadSprite(i,t){return lt(i,t)}static setup(i,t={}){let s=null;return l.string(i)?s=Array.from(document.querySelectorAll(i)):l.nodeList(i)?s=Array.from(i):l.array(i)&&(s=i.filter(l.element)),l.empty(s)?null:s.map(a=>new ae(a,t))}}ae.defaults=Wt(ut);export{ae as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as s}from"./runtime-CibjLEeg.js";function l(n,e){for(var a=0;a<e.length;a++){const t=e[a];if(typeof t!="string"&&!Array.isArray(t)){for(const r in t)if(r!=="default"&&!(r in n)){const i=Object.getOwnPropertyDescriptor(t,r);i&&Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:()=>t[r]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var o,b;function u(){if(b)return o;b=1,o=n,n.displayName="powerquery",n.aliases=[];function n(e){e.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},e.languages.pq=e.languages.powerquery,e.languages.mscript=e.languages.powerquery}return o}var d=u();const c=s(d),g=l({__proto__:null,default:c},[d]);export{g as p};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as l}from"./runtime-CibjLEeg.js";function c(r,i){for(var t=0;t<i.length;t++){const e=i[t];if(typeof e!="string"&&!Array.isArray(e)){for(const n in e)if(n!=="default"&&!(n in r)){const o=Object.getOwnPropertyDescriptor(e,n);o&&Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var a,s;function d(){if(s)return a;s=1,a=r,r.displayName="powershell",r.aliases=[];function r(i){(function(t){var e=t.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};e.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:e},boolean:e.boolean,variable:e.variable}})(i)}return a}var p=d();const m=l(p),u=c({__proto__:null,default:m},[p]);export{u as p};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as c}from"./runtime-CibjLEeg.js";function u(e,t){for(var o=0;o<t.length;o++){const r=t[o];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in e)){const a=Object.getOwnPropertyDescriptor(r,n);a&&Object.defineProperty(e,n,a.get?a:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var i,s;function f(){if(s)return i;s=1,i=e,e.displayName="processing",e.aliases=[];function e(t){t.languages.processing=t.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),t.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}return i}var l=f();const p=c(l),b=u({__proto__:null,default:p},[l]);export{b as p};
|
package/dist/prolog-BTZeSK5I.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as s}from"./runtime-CibjLEeg.js";function p(e,n){for(var o=0;o<n.length;o++){const r=n[o];if(typeof r!="string"&&!Array.isArray(r)){for(const t in r)if(t!=="default"&&!(t in e)){const a=Object.getOwnPropertyDescriptor(r,t);a&&Object.defineProperty(e,t,a.get?a:{enumerable:!0,get:()=>r[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var i,f;function l(){if(f)return i;f=1,i=e,e.displayName="prolog",e.aliases=[];function e(n){n.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}return i}var u=l();const c=s(u),g=p({__proto__:null,default:c},[u]);export{g as p};
|
package/dist/promql-BHleUnWL.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as b}from"./runtime-CibjLEeg.js";function p(e,o){for(var a=0;a<o.length;a++){const n=o[a];if(typeof n!="string"&&!Array.isArray(n)){for(const t in n)if(t!=="default"&&!(t in e)){const r=Object.getOwnPropertyDescriptor(n,t);r&&Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var i,s;function d(){if(s)return i;s=1,i=e,e.displayName="promql",e.aliases=[];function e(o){(function(a){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],t=["on","ignoring","group_right","group_left","by","without"],r=["offset"],l=n.concat(t,r);a.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+t.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+l.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(o)}return i}var u=d();const c=b(u),f=p({__proto__:null,default:c},[u]);export{f as p};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as u}from"./runtime-CibjLEeg.js";function f(t,n){for(var o=0;o<n.length;o++){const r=n[o];if(typeof r!="string"&&!Array.isArray(r)){for(const e in r)if(e!=="default"&&!(e in t)){const a=Object.getOwnPropertyDescriptor(r,e);a&&Object.defineProperty(t,e,a.get?a:{enumerable:!0,get:()=>r[e]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var i,s;function c(){if(s)return i;s=1,i=t,t.displayName="properties",t.aliases=[];function t(n){n.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}return i}var p=c();const l=u(p),m=f({__proto__:null,default:l},[p]);export{m as p};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as l}from"./runtime-CibjLEeg.js";function p(t,s){for(var n=0;n<s.length;n++){const e=s[n];if(typeof e!="string"&&!Array.isArray(e)){for(const a in e)if(a!=="default"&&!(a in t)){const o=Object.getOwnPropertyDescriptor(e,a);o&&Object.defineProperty(t,a,o.get?o:{enumerable:!0,get:()=>e[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var r,i;function b(){if(i)return r;i=1,r=t,t.displayName="protobuf",t.aliases=[];function t(s){(function(n){var e=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;n.languages.protobuf=n.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),n.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:e}},builtin:e,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(s)}return r}var u=b();const c=l(u),f=p({__proto__:null,default:c},[u]);export{f as p};
|
package/dist/psl-BxdcX3BL.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as c}from"./runtime-CibjLEeg.js";function l(e,n){for(var s=0;s<n.length;s++){const t=n[s];if(typeof t!="string"&&!Array.isArray(t)){for(const _ in t)if(_!=="default"&&!(_ in e)){const r=Object.getOwnPropertyDescriptor(t,_);r&&Object.defineProperty(e,_,r.get?r:{enumerable:!0,get:()=>t[_]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var a,o;function p(){if(o)return a;o=1,a=e,e.displayName="psl",e.aliases=[];function e(n){n.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}return a}var i=p();const g=c(i),m=l({__proto__:null,default:g},[i]);export{m as p};
|
package/dist/pug-DclmtQmP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as c}from"./runtime-CibjLEeg.js";function d(a,s){for(var e=0;e<s.length;e++){const r=s[e];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in a)){const i=Object.getOwnPropertyDescriptor(r,n);i&&Object.defineProperty(a,n,i.get?i:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var o,p;function f(){if(p)return o;p=1,o=a,a.displayName="pug",a.aliases=[];function a(s){(function(e){e.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:e.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:e.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:e.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:e.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:e.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:e.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:e.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:e.languages.javascript}],punctuation:/[.\-!=|]+/};for(var r=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,n=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},l=0,g=n.length;l<g;l++){var t=n[l];t=typeof t=="string"?{filter:t,language:t}:t,e.languages[t.language]&&(i["filter-"+t.filter]={pattern:RegExp(r.replace("<filter_name>",function(){return t.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[t.language,"language-"+t.language],inside:e.languages[t.language]}}})}e.languages.insertBefore("pug","filter",i)})(s)}return o}var u=f();const b=c(u),m=d({__proto__:null,default:b},[u]);export{m as p};
|
package/dist/puppet-jaG0CSXm.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as d}from"./runtime-CibjLEeg.js";function p(n,r){for(var e=0;e<r.length;e++){const t=r[e];if(typeof t!="string"&&!Array.isArray(t)){for(const i in t)if(i!=="default"&&!(i in n)){const a=Object.getOwnPropertyDescriptor(t,i);a&&Object.defineProperty(n,i,a.get?a:{enumerable:!0,get:()=>t[i]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var o,s;function u(){if(s)return o;s=1,o=n,n.displayName="puppet",n.aliases=[];function n(r){(function(e){e.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var t=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:e.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];e.languages.puppet.heredoc[0].inside.interpolation=t,e.languages.puppet.string.inside["double-quoted"].inside.interpolation=t})(r)}return o}var l=u();const b=d(l),c=p({__proto__:null,default:b},[l]);export{c as p};
|
package/dist/pure-C69IVJc3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as d}from"./runtime-CibjLEeg.js";function u(r,o){for(var e=0;e<o.length;e++){const a=o[e];if(typeof a!="string"&&!Array.isArray(a)){for(const n in a)if(n!=="default"&&!(n in r)){const t=Object.getOwnPropertyDescriptor(a,n);t&&Object.defineProperty(r,n,t.get?t:{enumerable:!0,get:()=>a[n]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var l,s;function f(){if(s)return l;s=1,l=r,r.displayName="pure",r.aliases=[];function r(o){(function(e){e.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var a=["c",{lang:"c++",alias:"cpp"},"fortran"],n=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;a.forEach(function(t){var i=t;if(typeof t!="string"&&(i=t.alias,t=t.lang),e.languages[i]){var p={};p["inline-lang-"+i]={pattern:RegExp(n.replace("<lang>",t.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:e.util.clone(e.languages.pure["inline-lang"].inside)},p["inline-lang-"+i].inside.rest=e.util.clone(e.languages[i]),e.languages.insertBefore("pure","inline-lang",p)}}),e.languages.c&&(e.languages.pure["inline-lang"].inside.rest=e.util.clone(e.languages.c))})(o)}return l}var c=f();const g=d(c),m=u({__proto__:null,default:g},[c]);export{m as p};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as s}from"./runtime-CibjLEeg.js";function c(r,e){for(var n=0;n<e.length;n++){const a=e[n];if(typeof a!="string"&&!Array.isArray(a)){for(const t in a)if(t!=="default"&&!(t in r)){const d=Object.getOwnPropertyDescriptor(a,t);d&&Object.defineProperty(r,t,d.get?d:{enumerable:!0,get:()=>a[t]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var l,i;function u(){if(i)return l;i=1,l=r,r.displayName="purebasic",r.aliases=[];function r(e){e.languages.purebasic=e.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),e.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete e.languages.purebasic["class-name"],delete e.languages.purebasic.boolean,e.languages.pbfasm=e.languages.purebasic}return l}var o=u();const b=s(o),p=c({__proto__:null,default:b},[o]);export{p};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as b}from"./runtime-CibjLEeg.js";import{r as c}from"./haskell-fKcSYgFk.js";function o(e,f){for(var u=0;u<f.length;u++){const a=f[u];if(typeof a!="string"&&!Array.isArray(a)){for(const t in a)if(t!=="default"&&!(t in e)){const r=Object.getOwnPropertyDescriptor(a,t);r&&Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>a[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var d,n;function s(){if(n)return d;n=1;var e=c();d=f,f.displayName="purescript",f.aliases=["purs"];function f(u){u.register(e),u.languages.purescript=u.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[u.languages.haskell.operator[0],u.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),u.languages.purs=u.languages.purescript}return d}var i=s();const p=b(i),l=o({__proto__:null,default:p},[i]);export{l as p};
|
package/dist/python-rIkUqkQ0.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as p}from"./runtime-CibjLEeg.js";function d(t,e){for(var a=0;a<e.length;a++){const n=e[a];if(typeof n!="string"&&!Array.isArray(n)){for(const r in n)if(r!=="default"&&!(r in t)){const i=Object.getOwnPropertyDescriptor(n,r);i&&Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>n[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var o,s;function c(){if(s)return o;s=1,o=t,t.displayName="python",t.aliases=["py"];function t(e){e.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},e.languages.python["string-interpolation"].inside.interpolation.inside.rest=e.languages.python,e.languages.py=e.languages.python}return o}var l=c();const u=p(l),b=d({__proto__:null,default:u},[l]);export{b as p};
|
package/dist/q-Cstncgn0.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as l}from"./runtime-CibjLEeg.js";function c(e,n){for(var s=0;s<n.length;s++){const r=n[s];if(typeof r!="string"&&!Array.isArray(r)){for(const t in r)if(t!=="default"&&!(t in e)){const a=Object.getOwnPropertyDescriptor(r,t);a&&Object.defineProperty(e,t,a.get?a:{enumerable:!0,get:()=>r[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var d,i;function m(){if(i)return d;i=1,d=e,e.displayName="q",e.aliases=[];function e(n){n.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}return d}var o=m();const u=l(o),p=c({__proto__:null,default:u},[o]);export{p as q};
|
package/dist/qml-CL3VBB9P.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as u}from"./runtime-CibjLEeg.js";function g(r,o){for(var t=0;t<o.length;t++){const n=o[t];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in r)){const e=Object.getOwnPropertyDescriptor(n,a);e&&Object.defineProperty(r,a,e.get?e:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var s,p;function l(){if(p)return s;p=1,s=r,r.displayName="qml",r.aliases=[];function r(o){(function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,a=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,e=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return n}).replace(/<comment>/g,function(){return a}),i=0;i<2;i++)e=e.replace(/<expr>/g,function(){return e});e=e.replace(/<expr>/g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return e}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return e}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(o)}return s}var c=l();const d=u(c),f=g({__proto__:null,default:d},[c]);export{f as q};
|
package/dist/qore-B-amTDNq.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as d}from"./runtime-CibjLEeg.js";function c(e,t){for(var o=0;o<t.length;o++){const r=t[o];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in e)){const a=Object.getOwnPropertyDescriptor(r,n);a&&Object.defineProperty(e,n,a.get?a:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var i,s;function f(){if(s)return i;s=1,i=e,e.displayName="qore",e.aliases=[];function e(t){t.languages.qore=t.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}return i}var l=f();const b=d(l),u=c({__proto__:null,default:b},[l]);export{u as q};
|
package/dist/qsharp-B5BHMvCC.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dy as v}from"./runtime-CibjLEeg.js";function j(a,i){for(var r=0;r<i.length;r++){const t=i[r];if(typeof t!="string"&&!Array.isArray(t)){for(const e in t)if(e!=="default"&&!(e in a)){const o=Object.getOwnPropertyDescriptor(t,e);o&&Object.defineProperty(a,e,o.get?o:{enumerable:!0,get:()=>t[e]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var l,y;function k(){if(y)return l;y=1,l=a,a.displayName="qsharp",a.aliases=["qs"];function a(i){(function(r){function t(n,s){return n.replace(/<<(\d+)>>/g,function(u,w){return"(?:"+s[+w]+")"})}function e(n,s,u){return RegExp(t(n,s),"")}function o(n,s){for(var u=0;u<s;u++)n=n.replace(/<<self>>/g,function(){return"(?:"+n+")"});return n.replace(/<<self>>/g,"[^\\s\\S]")}var p={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function m(n){return"\\b(?:"+n.trim().replace(/ /g,"|")+")\\b"}var c=RegExp(m(p.type+" "+p.other)),q=/\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[q]),b={keyword:c,punctuation:/[<>()?,.:[\]]/},f=/"(?:\\.|[^\\"])*"/.source;r.languages.qsharp=r.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:e(/(^|[^$\\])<<0>>/.source,[f]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:e(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[g]),lookbehind:!0,inside:b},{pattern:e(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[g]),lookbehind:!0,inside:b}],keyword:c,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),r.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var d=o(t(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[f]),2);r.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:e(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[d]),greedy:!0,inside:{interpolation:{pattern:e(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[d]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:r.languages.qsharp}}},string:/[\s\S]+/}}})})(i),i.languages.qs=i.languages.qsharp}return l}var h=k();const x=v(h),P=j({__proto__:null,default:x},[h]);export{P as q};
|