@verdocs/web-sdk 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Auth-adc80bd4.js +68 -0
- package/dist/cjs/{Token-b86e5335.js → Token-1ec62bd3.js} +2 -135
- package/dist/{verdocs-web-sdk/buffer-es6-5cef4368.js → cjs/buffer-es6-bc8199b1.js} +47 -14
- package/dist/cjs/index-589f3be8.js +1356 -0
- package/dist/cjs/loader.cjs.js +3 -19
- package/dist/cjs/{index-9c6e5f50.js → popper-71bf3058.js} +0 -186
- package/dist/cjs/verdocs-auth.cjs.entry.js +7 -199
- package/dist/cjs/verdocs-button_2.cjs.entry.js +105 -0
- package/dist/cjs/{verdocs-view.cjs.entry.js → verdocs-dropdown_12.cjs.entry.js} +3313 -50
- package/dist/cjs/verdocs-initial-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-loader.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-organization-card.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-quick-functions.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-search-activity_2.cjs.entry.js +228 -0
- package/dist/cjs/verdocs-search-tabs.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +3 -1511
- package/dist/cjs/verdocs-signature-dialog.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-status-indicator.cjs.entry.js +4 -90
- package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-upload-dialog.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-web-sdk.cjs.js +5 -117
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/controls/verdocs-button/verdocs-button.css +1 -1
- package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.css +1 -1
- package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.css +2 -2
- package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.css +4 -4
- package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.css +2 -2
- package/dist/collection/components/elements/verdocs-field-attachment/verdocs-field-attachment.css +2 -4
- package/dist/collection/components/elements/verdocs-field-checkbox-group/verdocs-field-checkbox.css +1 -3
- package/dist/collection/components/elements/verdocs-field-date/verdocs-field-date.css +1 -3
- package/dist/collection/components/elements/verdocs-field-dropdown/verdocs-field-dropdown.css +1 -3
- package/dist/collection/components/elements/verdocs-field-initial/verdocs-field-initial.css +1 -3
- package/dist/collection/components/elements/verdocs-field-payment/verdocs-field-payment.css +1 -3
- package/dist/collection/components/elements/verdocs-field-radio-button-group/verdocs-field-radio-button.css +1 -3
- package/dist/collection/components/elements/verdocs-field-signature/verdocs-field-signature.css +1 -3
- package/dist/collection/components/elements/verdocs-field-textarea/verdocs-field-textarea.css +1 -3
- package/dist/collection/components/elements/verdocs-field-textbox/verdocs-field-textbox.css +1 -3
- package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.css +1 -3
- package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.css +1 -3
- package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.css +1 -3
- package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.css +1 -0
- package/dist/components/Auth.js +0 -93
- package/dist/components/Token.js +1 -134
- package/dist/components/buffer-es6.js +39 -14
- package/dist/components/index.js +0 -4
- package/dist/components/{index3.js → popper.js} +0 -186
- package/dist/components/verdocs-auth.js +2 -193
- package/dist/components/verdocs-button2.js +2 -2
- package/dist/components/verdocs-dropdown2.js +2 -2
- package/dist/components/verdocs-field-attachment2.js +2 -2
- package/dist/components/verdocs-field-checkbox2.js +2 -2
- package/dist/components/verdocs-field-date2.js +2 -214
- package/dist/components/verdocs-field-dropdown2.js +2 -2
- package/dist/components/verdocs-field-initial2.js +2 -2
- package/dist/components/verdocs-field-payment2.js +2 -2
- package/dist/components/verdocs-field-radio-button2.js +2 -2
- package/dist/components/verdocs-field-signature2.js +2 -2
- package/dist/components/verdocs-field-textarea2.js +2 -2
- package/dist/components/verdocs-field-textbox2.js +2 -2
- package/dist/components/verdocs-initial-dialog2.js +1 -1
- package/dist/components/verdocs-kba-dialog.js +2 -2
- package/dist/components/verdocs-loader2.js +1 -1
- package/dist/components/verdocs-ok-dialog2.js +2 -2
- package/dist/components/verdocs-organization-card.js +1 -1
- package/dist/components/verdocs-quick-functions.js +2 -2
- package/dist/components/verdocs-search-activity2.js +16 -104
- package/dist/components/verdocs-search-box2.js +2 -2
- package/dist/components/verdocs-search-tabs.js +2 -2
- package/dist/components/verdocs-search.js +1 -1
- package/dist/components/verdocs-sign.js +1 -1508
- package/dist/components/verdocs-signature-dialog2.js +2 -2
- package/dist/components/verdocs-status-indicator.js +3 -88
- package/dist/components/verdocs-template-card.js +1 -1
- package/dist/components/verdocs-template-tags.js +1 -1
- package/dist/components/verdocs-text-input2.js +1 -1
- package/dist/components/verdocs-toggle.js +1 -1
- package/dist/components/verdocs-upload-dialog2.js +2 -2
- package/dist/components/verdocs-view2.js +6 -33
- package/dist/docs.json +2 -2
- package/dist/esm/Auth-ff6040be.js +64 -0
- package/dist/{verdocs-web-sdk/Token-29eea56d.js → esm/Token-a587e3ad.js} +1 -134
- package/dist/{cjs/buffer-es6-b2c1c885.js → esm/buffer-es6-136673c8.js} +38 -15
- package/dist/esm/index-859bc689.js +1327 -0
- package/dist/esm/loader.js +3 -19
- package/dist/esm/{index-432c65a6.js → popper-93ecb064.js} +0 -186
- package/dist/esm/verdocs-auth.entry.js +4 -196
- package/dist/esm/verdocs-button_2.entry.js +100 -0
- package/dist/esm/{verdocs-view.entry.js → verdocs-dropdown_12.entry.js} +3286 -34
- package/dist/esm/verdocs-initial-dialog.entry.js +1 -1
- package/dist/esm/verdocs-kba-dialog.entry.js +2 -2
- package/dist/esm/verdocs-loader.entry.js +1 -1
- package/dist/esm/verdocs-ok-dialog.entry.js +2 -2
- package/dist/esm/verdocs-organization-card.entry.js +1 -1
- package/dist/esm/verdocs-quick-functions.entry.js +2 -2
- package/dist/esm/verdocs-search-activity_2.entry.js +223 -0
- package/dist/esm/verdocs-search-tabs.entry.js +2 -2
- package/dist/esm/verdocs-search.entry.js +1 -1
- package/dist/esm/verdocs-sign.entry.js +3 -1511
- package/dist/esm/verdocs-signature-dialog.entry.js +2 -2
- package/dist/esm/verdocs-status-indicator.entry.js +3 -89
- package/dist/esm/verdocs-template-card.entry.js +1 -1
- package/dist/esm/verdocs-template-tags.entry.js +1 -1
- package/dist/esm/verdocs-toggle.entry.js +1 -1
- package/dist/esm/verdocs-upload-dialog.entry.js +2 -2
- package/dist/esm/verdocs-web-sdk.js +5 -117
- package/dist/esm-es5/Auth-ff6040be.js +1 -0
- package/dist/esm-es5/Token-a587e3ad.js +1 -0
- package/dist/esm-es5/buffer-es6-136673c8.js +7 -0
- package/dist/esm-es5/index-859bc689.js +2 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/popper-93ecb064.js +1 -0
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-button_2.entry.js +1 -0
- package/dist/esm-es5/verdocs-dropdown_12.entry.js +23 -0
- package/dist/esm-es5/verdocs-initial-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-kba-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-loader.entry.js +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-organization-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
- package/dist/esm-es5/verdocs-search-activity_2.entry.js +1 -0
- package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm-es5/verdocs-search.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-signature-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -11
- package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
- package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
- package/dist/esm-es5/verdocs-upload-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/verdocs-web-sdk/index.esm.js +0 -1
- package/dist/verdocs-web-sdk/p-0353c423.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-11bc03a5.js +1 -0
- package/dist/verdocs-web-sdk/p-144e0842.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-15b7ed4d.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-1f55d8ac.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-2bc58746.js +2 -0
- package/dist/verdocs-web-sdk/p-34bb9854.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-3d1eb63d.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-3f437456.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-432c3151.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-466cf9bf.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-4c66f794.js +1 -0
- package/dist/verdocs-web-sdk/{index.system.js → p-50ea2036.system.js} +0 -0
- package/dist/verdocs-web-sdk/p-5dfd73f9.system.js +7 -0
- package/dist/verdocs-web-sdk/p-6348272c.js +1 -0
- package/dist/verdocs-web-sdk/p-6393b2b4.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-66b19637.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-6802ef91.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-6ac9e6f8.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-6d65d54e.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-6fa6fb3c.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-829b235c.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-8795dbe8.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-88a300c5.system.js +1 -0
- package/dist/verdocs-web-sdk/p-8c6db319.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-8c6e29a5.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-92632d8e.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-96c0bf40.system.js +1 -0
- package/dist/verdocs-web-sdk/p-98d72550.system.entry.js +23 -0
- package/dist/verdocs-web-sdk/p-9b34c794.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-9fbb3fc2.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-a1fcf0c4.entry.js +23 -0
- package/dist/verdocs-web-sdk/p-b1cd24f7.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-bf2620cb.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-c2f97ef9.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-caed7818.system.js +2 -0
- package/dist/verdocs-web-sdk/p-cc127684.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-cd6d1fe5.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-d6206c17.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-da667373.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-e2e643c5.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-e3659c64.system.js +1 -0
- package/dist/verdocs-web-sdk/p-e609b2ee.system.js +1 -0
- package/dist/verdocs-web-sdk/p-e719f9ca.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-ed5baeb4.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-ef932a87.js +1 -0
- package/dist/verdocs-web-sdk/p-f0d0f959.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-f7e26fbd.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-f814d5cc.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-f9d431ef.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.css +1 -57
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -129
- package/dist/verdocs-web-sdk/verdocs-web-sdk.js +2 -1
- package/package.json +4 -4
- package/dist/cjs/Auth-0146ddd8.js +0 -161
- package/dist/cjs/app-globals-3a1e7e63.js +0 -5
- package/dist/cjs/css-shim-e9231523.js +0 -6
- package/dist/cjs/dom-7fb93981.js +0 -75
- package/dist/cjs/index-a24f3b6a.js +0 -3096
- package/dist/cjs/index-b5a86b04.js +0 -4
- package/dist/cjs/index-c4be37e1.js +0 -54
- package/dist/cjs/shadow-css-abc19485.js +0 -389
- package/dist/cjs/verdocs-button.cjs.entry.js +0 -49
- package/dist/cjs/verdocs-dropdown.cjs.entry.js +0 -80
- package/dist/cjs/verdocs-field-attachment.cjs.entry.js +0 -59
- package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +0 -39
- package/dist/cjs/verdocs-field-date.cjs.entry.js +0 -2968
- package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +0 -59
- package/dist/cjs/verdocs-field-initial.cjs.entry.js +0 -52
- package/dist/cjs/verdocs-field-payment.cjs.entry.js +0 -86
- package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +0 -48
- package/dist/cjs/verdocs-field-signature.cjs.entry.js +0 -52
- package/dist/cjs/verdocs-field-textarea.cjs.entry.js +0 -63
- package/dist/cjs/verdocs-field-textbox.cjs.entry.js +0 -63
- package/dist/cjs/verdocs-search-activity.cjs.entry.js +0 -263
- package/dist/cjs/verdocs-search-box.cjs.entry.js +0 -60
- package/dist/cjs/verdocs-text-input.cjs.entry.js +0 -62
- package/dist/components/index2.js +0 -1
- package/dist/components/index4.js +0 -47
- package/dist/custom-elements.json +0 -830
- package/dist/esm/Auth-4b21fced.js +0 -157
- package/dist/esm/Token-29eea56d.js +0 -2458
- package/dist/esm/app-globals-0f993ce5.js +0 -3
- package/dist/esm/buffer-es6-5cef4368.js +0 -1985
- package/dist/esm/css-shim-60f618b9.js +0 -4
- package/dist/esm/dom-4eeb3fee.js +0 -73
- package/dist/esm/index-97ec070b.js +0 -47
- package/dist/esm/index-ddbd60b5.js +0 -3059
- package/dist/esm/index-ef172650.js +0 -1
- package/dist/esm/shadow-css-02866686.js +0 -387
- package/dist/esm/verdocs-button.entry.js +0 -45
- package/dist/esm/verdocs-dropdown.entry.js +0 -76
- package/dist/esm/verdocs-field-attachment.entry.js +0 -55
- package/dist/esm/verdocs-field-checkbox.entry.js +0 -35
- package/dist/esm/verdocs-field-date.entry.js +0 -2964
- package/dist/esm/verdocs-field-dropdown.entry.js +0 -55
- package/dist/esm/verdocs-field-initial.entry.js +0 -48
- package/dist/esm/verdocs-field-payment.entry.js +0 -82
- package/dist/esm/verdocs-field-radio-button.entry.js +0 -44
- package/dist/esm/verdocs-field-signature.entry.js +0 -48
- package/dist/esm/verdocs-field-textarea.entry.js +0 -59
- package/dist/esm/verdocs-field-textbox.entry.js +0 -59
- package/dist/esm/verdocs-search-activity.entry.js +0 -259
- package/dist/esm/verdocs-search-box.entry.js +0 -56
- package/dist/esm/verdocs-text-input.entry.js +0 -58
- package/dist/esm-es5/Auth-4b21fced.js +0 -1
- package/dist/esm-es5/Token-29eea56d.js +0 -1
- package/dist/esm-es5/app-globals-0f993ce5.js +0 -1
- package/dist/esm-es5/buffer-es6-5cef4368.js +0 -7
- package/dist/esm-es5/css-shim-60f618b9.js +0 -1
- package/dist/esm-es5/dom-4eeb3fee.js +0 -21
- package/dist/esm-es5/index-432c65a6.js +0 -1
- package/dist/esm-es5/index-97ec070b.js +0 -1
- package/dist/esm-es5/index-ddbd60b5.js +0 -2
- package/dist/esm-es5/index-ef172650.js +0 -1
- package/dist/esm-es5/shadow-css-02866686.js +0 -12
- package/dist/esm-es5/verdocs-button.entry.js +0 -1
- package/dist/esm-es5/verdocs-dropdown.entry.js +0 -1
- package/dist/esm-es5/verdocs-field-attachment.entry.js +0 -1
- package/dist/esm-es5/verdocs-field-checkbox.entry.js +0 -1
- package/dist/esm-es5/verdocs-field-date.entry.js +0 -1
- package/dist/esm-es5/verdocs-field-dropdown.entry.js +0 -1
- package/dist/esm-es5/verdocs-field-initial.entry.js +0 -1
- package/dist/esm-es5/verdocs-field-payment.entry.js +0 -1
- package/dist/esm-es5/verdocs-field-radio-button.entry.js +0 -1
- package/dist/esm-es5/verdocs-field-signature.entry.js +0 -1
- package/dist/esm-es5/verdocs-field-textarea.entry.js +0 -1
- package/dist/esm-es5/verdocs-field-textbox.entry.js +0 -1
- package/dist/esm-es5/verdocs-search-activity.entry.js +0 -1
- package/dist/esm-es5/verdocs-search-box.entry.js +0 -1
- package/dist/esm-es5/verdocs-text-input.entry.js +0 -1
- package/dist/esm-es5/verdocs-view.entry.js +0 -23
- package/dist/verdocs-web-sdk/Auth-4b21fced.js +0 -157
- package/dist/verdocs-web-sdk/Auth-82e38539.system.js +0 -1
- package/dist/verdocs-web-sdk/Token-c1cf309e.system.js +0 -1
- package/dist/verdocs-web-sdk/app-globals-0f993ce5.js +0 -3
- package/dist/verdocs-web-sdk/app-globals-497eb362.system.js +0 -1
- package/dist/verdocs-web-sdk/buffer-es6-aa11181b.system.js +0 -7
- package/dist/verdocs-web-sdk/css-shim-60f618b9.js +0 -4
- package/dist/verdocs-web-sdk/css-shim-e41ceccc.system.js +0 -1
- package/dist/verdocs-web-sdk/dom-4eeb3fee.js +0 -73
- package/dist/verdocs-web-sdk/dom-89b5deb7.system.js +0 -21
- package/dist/verdocs-web-sdk/index-027b383e.system.js +0 -1
- package/dist/verdocs-web-sdk/index-06e036a1.system.js +0 -1
- package/dist/verdocs-web-sdk/index-432c65a6.js +0 -1974
- package/dist/verdocs-web-sdk/index-5d49316f.system.js +0 -1
- package/dist/verdocs-web-sdk/index-6465280a.system.js +0 -2
- package/dist/verdocs-web-sdk/index-97ec070b.js +0 -47
- package/dist/verdocs-web-sdk/index-ddbd60b5.js +0 -3059
- package/dist/verdocs-web-sdk/index-ef172650.js +0 -1
- package/dist/verdocs-web-sdk/shadow-css-02866686.js +0 -387
- package/dist/verdocs-web-sdk/shadow-css-6207e159.system.js +0 -13
- package/dist/verdocs-web-sdk/verdocs-auth.entry.js +0 -302
- package/dist/verdocs-web-sdk/verdocs-auth.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-button.entry.js +0 -45
- package/dist/verdocs-web-sdk/verdocs-button.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-dropdown.entry.js +0 -76
- package/dist/verdocs-web-sdk/verdocs-dropdown.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-field-attachment.entry.js +0 -55
- package/dist/verdocs-web-sdk/verdocs-field-attachment.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-field-checkbox.entry.js +0 -35
- package/dist/verdocs-web-sdk/verdocs-field-checkbox.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-field-date.entry.js +0 -2964
- package/dist/verdocs-web-sdk/verdocs-field-date.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-field-dropdown.entry.js +0 -55
- package/dist/verdocs-web-sdk/verdocs-field-dropdown.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-field-initial.entry.js +0 -48
- package/dist/verdocs-web-sdk/verdocs-field-initial.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-field-payment.entry.js +0 -82
- package/dist/verdocs-web-sdk/verdocs-field-payment.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-field-radio-button.entry.js +0 -44
- package/dist/verdocs-web-sdk/verdocs-field-radio-button.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-field-signature.entry.js +0 -48
- package/dist/verdocs-web-sdk/verdocs-field-signature.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-field-textarea.entry.js +0 -59
- package/dist/verdocs-web-sdk/verdocs-field-textarea.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-field-textbox.entry.js +0 -59
- package/dist/verdocs-web-sdk/verdocs-field-textbox.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-initial-dialog.entry.js +0 -239
- package/dist/verdocs-web-sdk/verdocs-initial-dialog.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-kba-dialog.entry.js +0 -77
- package/dist/verdocs-web-sdk/verdocs-kba-dialog.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-loader.entry.js +0 -15
- package/dist/verdocs-web-sdk/verdocs-loader.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-ok-dialog.entry.js +0 -44
- package/dist/verdocs-web-sdk/verdocs-ok-dialog.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-organization-card.entry.js +0 -18
- package/dist/verdocs-web-sdk/verdocs-organization-card.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-quick-functions.entry.js +0 -27
- package/dist/verdocs-web-sdk/verdocs-quick-functions.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-search-activity.entry.js +0 -259
- package/dist/verdocs-web-sdk/verdocs-search-activity.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-search-box.entry.js +0 -56
- package/dist/verdocs-web-sdk/verdocs-search-box.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-search-tabs.entry.js +0 -16
- package/dist/verdocs-web-sdk/verdocs-search-tabs.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-search.entry.js +0 -15
- package/dist/verdocs-web-sdk/verdocs-search.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-sign.entry.js +0 -1995
- package/dist/verdocs-web-sdk/verdocs-sign.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-signature-dialog.entry.js +0 -235
- package/dist/verdocs-web-sdk/verdocs-signature-dialog.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-status-indicator.entry.js +0 -7611
- package/dist/verdocs-web-sdk/verdocs-status-indicator.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-template-card.entry.js +0 -34
- package/dist/verdocs-web-sdk/verdocs-template-card.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-template-tags.entry.js +0 -16
- package/dist/verdocs-web-sdk/verdocs-template-tags.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-text-input.entry.js +0 -58
- package/dist/verdocs-web-sdk/verdocs-text-input.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-toggle.entry.js +0 -32
- package/dist/verdocs-web-sdk/verdocs-toggle.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-upload-dialog.entry.js +0 -119
- package/dist/verdocs-web-sdk/verdocs-upload-dialog.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/verdocs-view.entry.js +0 -16118
- package/dist/verdocs-web-sdk/verdocs-view.system.entry.js +0 -23
- package/dist/verdocs-web-sdk/verdocs-web-sdk.system.js +0 -1
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, e as createEvent, h } from './index-ddbd60b5.js';
|
|
2
|
-
|
|
3
|
-
const SearchIcon = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4
|
-
<path d="M23.4809 20.7176L17.9111 15.2536C19.0961 13.6368 19.727 11.6926 19.7128 9.70131C19.7201 7.53345 18.9846 5.42606 17.6244 3.71753C16.2642 2.009 14.3581 0.798456 12.2123 0.280282C10.0665 -0.237892 7.80552 -0.0336342 5.79227 0.86026C3.77902 1.75415 2.13038 3.28582 1.1111 5.20931C0.0918114 7.1328 -0.238985 9.33652 0.171813 11.4666C0.582612 13.5967 1.71117 15.5296 3.37628 16.9548C5.0414 18.3801 7.14646 19.2151 9.35344 19.3257C11.5604 19.4364 13.7413 18.8162 15.5458 17.5649L21.1372 23.05L21.1563 23.0663C21.4841 23.3487 21.9039 23.507 22.3401 23.5128C22.7823 23.5125 23.2063 23.3402 23.5191 23.0337V23.0337C23.6749 22.8812 23.7979 22.6995 23.8804 22.4993C23.963 22.2991 24.0036 22.0847 23.9997 21.8688C23.9959 21.6529 23.9477 21.44 23.858 21.2428C23.7683 21.0456 23.639 20.8682 23.4778 20.7212L23.4809 20.7176ZM14.5167 14.1975C13.4564 15.2349 12.0623 15.8797 10.5719 16.022C9.08145 16.1644 7.58681 15.7955 6.34249 14.9781C5.09816 14.1608 4.18109 12.9456 3.74751 11.5395C3.31393 10.1334 3.39064 8.6233 3.96455 7.26643C4.53846 5.90955 5.57409 4.7898 6.89507 4.09787C8.21606 3.40594 9.74071 3.18461 11.2093 3.4716C12.678 3.75858 13.9998 4.53612 14.9497 5.6718C15.8996 6.80748 16.4188 8.23105 16.4189 9.7001C16.4196 10.5357 16.2519 11.3632 15.9254 12.135C15.599 12.9069 15.1202 13.6078 14.5167 14.1975V14.1975Z" fill="white"/>
|
|
5
|
-
</svg>
|
|
6
|
-
`;
|
|
7
|
-
|
|
8
|
-
const CloseIcon = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9
|
-
<path d="M14.0739 11.7565L19.7127 6.23228C20.0875 5.85692 20.0875 5.25309 19.7127 4.87773L19.0213 4.20046C18.6382 3.82511 18.0219 3.82511 17.6387 4.20046L12 9.72472L6.36127 4.20046C5.97814 3.82511 5.36179 3.82511 4.97866 4.20046L4.28735 4.87773C3.90422 5.25309 3.90422 5.85692 4.28735 6.23228L9.92608 11.7565L4.28735 17.2808C3.90422 17.6561 3.90422 18.26 4.28735 18.6353L4.97866 19.3126C5.36179 19.688 5.97814 19.688 6.36127 19.3126L12 13.7883L17.6387 19.3126C18.0219 19.688 18.6382 19.688 19.0213 19.3126L19.7127 18.6353C20.0958 18.26 20.0958 17.6561 19.7127 17.2808L14.0739 11.7565Z" fill="white"/>
|
|
10
|
-
</svg>
|
|
11
|
-
`;
|
|
12
|
-
|
|
13
|
-
const verdocsSearchBoxCss = "verdocs-search-box{font-family:sans-serif;font-family:var(--verdocs-font)}verdocs-search-box form{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:45px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:5px 0 0;border-radius:5px;-ms-flex-align:center;align-items:center;background-color:#fff;padding:0 8px;border-width:1px;border-style:solid;border-color:var(--verdocs-container-border-color)}verdocs-search-box form input{-webkit-box-sizing:border-box;box-sizing:border-box;height:43px;width:100%;font-size:18px;border:none}verdocs-search-box form input:focus{outline:none}verdocs-search-box form button.search{cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;border:none;width:100px;height:28px;font-weight:700;font-size:10px;letter-spacing:1px;background-color:#50be80;text-transform:uppercase;color:#fff}verdocs-search-box form .type{background-color:#707ae5;height:30px;display:-ms-inline-flexbox;display:inline-flex;padding:1px 0 2px 10px;font-size:13px;line-height:16px;border-radius:4px;-ms-flex-pack:center;justify-content:center;text-transform:uppercase;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#fff;margin-right:10px}verdocs-search-box form .type button{border:none;color:#fff;margin:5px 0 0 8px;background:transparent}verdocs-search-box form svg{width:12px;height:12px;margin-right:6px}verdocs-search-box ::-webkit-input-placeholder{color:#aeb4bf}verdocs-search-box ::-moz-placeholder{color:#aeb4bf}verdocs-search-box :-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::placeholder{color:#aeb4bf}";
|
|
14
|
-
|
|
15
|
-
const VerdocsSearchBox = class {
|
|
16
|
-
constructor(hostRef) {
|
|
17
|
-
registerInstance(this, hostRef);
|
|
18
|
-
this.searchClicked = createEvent(this, "searchClicked", 7);
|
|
19
|
-
this.typeChanged = createEvent(this, "typeChanged", 7);
|
|
20
|
-
this.queryChanged = createEvent(this, "queryChanged", 7);
|
|
21
|
-
/**
|
|
22
|
-
* The placeholder to display in the input field.
|
|
23
|
-
*/
|
|
24
|
-
this.placeholder = 'search documents, templates, people...';
|
|
25
|
-
/**
|
|
26
|
-
* If set to a value other than 'all', a removeable filter indicator will be displayed.
|
|
27
|
-
*/
|
|
28
|
-
this.type = 'all';
|
|
29
|
-
/**
|
|
30
|
-
* The text search string entered by the user.
|
|
31
|
-
*/
|
|
32
|
-
this.query = '';
|
|
33
|
-
}
|
|
34
|
-
handleSearch(e) {
|
|
35
|
-
this.searchClicked.emit({ type: this.type, query: this.query });
|
|
36
|
-
e.preventDefault();
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
handleChange(e) {
|
|
40
|
-
this.queryChanged.emit(e.target.value);
|
|
41
|
-
}
|
|
42
|
-
handleClearFilter() {
|
|
43
|
-
this.typeChanged.emit('all');
|
|
44
|
-
}
|
|
45
|
-
handleKeyUp(e) {
|
|
46
|
-
if (e.key === 'Enter') {
|
|
47
|
-
this.searchClicked.emit({ type: this.type, query: this.query });
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
render() {
|
|
51
|
-
return (h("form", { onSubmit: e => this.handleSearch(e) }, this.type !== undefined && this.type !== 'all' && (h("span", { class: "type" }, this.type, "s ", h("button", { class: "remove", innerHTML: CloseIcon, onClick: () => this.handleClearFilter() }))), h("input", { type: "text", placeholder: this.placeholder, value: this.query, onInput: e => this.handleChange(e), onKeyUp: e => this.handleKeyUp(e) }), h("button", { onClick: e => this.handleSearch(e), class: "search" }, h("span", { innerHTML: SearchIcon }), "Search")));
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
VerdocsSearchBox.style = verdocsSearchBoxCss;
|
|
55
|
-
|
|
56
|
-
export { VerdocsSearchBox as verdocs_search_box };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, e as createEvent, h, f as Host } from './index-ddbd60b5.js';
|
|
2
|
-
|
|
3
|
-
const verdocsTextInputCss = "verdocs-text-input{font-family:\"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:20px 0;display:block}verdocs-text-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:28px;padding:4px 12px}verdocs-text-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-label{display:block;color:#33354c;font-weight:400;font-size:14px;margin:0 0 4px 0}";
|
|
4
|
-
|
|
5
|
-
const VerdocsTextInput = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.fieldInput = createEvent(this, "fieldInput", 7);
|
|
9
|
-
this.fieldFocus = createEvent(this, "fieldFocus", 7);
|
|
10
|
-
this.fieldBlur = createEvent(this, "fieldBlur", 7);
|
|
11
|
-
/**
|
|
12
|
-
* The value for the input field.
|
|
13
|
-
*/
|
|
14
|
-
this.value = '';
|
|
15
|
-
/**
|
|
16
|
-
* The label for the field.
|
|
17
|
-
*/
|
|
18
|
-
this.label = '';
|
|
19
|
-
/**
|
|
20
|
-
* The placeholder for the field.
|
|
21
|
-
*/
|
|
22
|
-
this.placeholder = '';
|
|
23
|
-
/**
|
|
24
|
-
* If desired, the autocomplete attribute to set.
|
|
25
|
-
*/
|
|
26
|
-
this.autocomplete = '';
|
|
27
|
-
/**
|
|
28
|
-
* The type of field to render. Only text-type fields are allowed here for the current styling. Additional types
|
|
29
|
-
* (e.g. a date picker) will be supported by other controls in the future.
|
|
30
|
-
*/
|
|
31
|
-
this.type = 'text';
|
|
32
|
-
/**
|
|
33
|
-
* Should the field be disabled?
|
|
34
|
-
*/
|
|
35
|
-
this.disabled = false;
|
|
36
|
-
this._value = '';
|
|
37
|
-
}
|
|
38
|
-
componentWillLoad() {
|
|
39
|
-
this._value = this.value;
|
|
40
|
-
}
|
|
41
|
-
componentDidLoad() { }
|
|
42
|
-
handleInput(event) {
|
|
43
|
-
this._value = event.target.value;
|
|
44
|
-
this.fieldInput.emit(this._value);
|
|
45
|
-
}
|
|
46
|
-
handleFocus(event) {
|
|
47
|
-
this.fieldFocus.emit(event);
|
|
48
|
-
}
|
|
49
|
-
handleBlur(event) {
|
|
50
|
-
this.fieldBlur.emit(event);
|
|
51
|
-
}
|
|
52
|
-
render() {
|
|
53
|
-
return (h(Host, { class: "input-field" }, h("label", null, this.label ? h("div", { class: "input-label" }, this.label + ':') : h("div", null), h("input", { type: this.type, placeholder: this.placeholder, autoComplete: this.autocomplete, disabled: this.disabled, value: this._value, class: "input-element", onInput: event => this.handleInput(event), onFocus: event => this.handleFocus(event), onBlur: event => this.handleBlur(event) }))));
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
VerdocsTextInput.style = verdocsTextInputCss;
|
|
57
|
-
|
|
58
|
-
export { VerdocsTextInput as verdocs_text_input };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as getEndpoint,d as decodeAccessTokenBody}from"./Token-29eea56d.js";var authenticateUser=function(e){return getEndpoint().api.post("/authentication/login",e).then((function(e){return e.data}))};var authenticateApp=function(e){return getEndpoint().api.post("/authentication/login_client",{},{headers:e}).then((function(e){return e.data}))};var validateToken=function(e){return getEndpoint().api.post("/token/isValid",e).then((function(e){return e.data}))};var refreshTokens=function(){return getEndpoint().api.get("/token").then((function(e){return e.data}))};var updatePassword=function(e){return getEndpoint().api.put("/user/update_password",e).then((function(e){return e.data}))};var updateEmail=function(e){return getEndpoint().api.put("/user/update_email",e).then((function(e){return e.data}))};var clearSession=function(e,t){getEndpoint().setAuthorization(null);if(t){localStorage.removeItem(e)}return null};var setSession=function(e,t,n){if(n===void 0){n=false}if(t===null){return clearSession(e,n)}var a=decodeAccessTokenBody(t||"");if(a===null||a.exp&&a.exp*1e3<(new Date).getTime()){return clearSession(e,n)}if(n){localStorage.setItem(e,t)}getEndpoint().setAuthorization(t);return a};var loadSession=function(e){var t=localStorage.getItem(e);if(!t){return null}var n=decodeAccessTokenBody(t);if(!n){return null}if(n.exp&&n.exp*1e3<(new Date).getTime()){localStorage.removeItem(e);return null}getEndpoint().setAuthorization(t);return n};var endSession=function(e,t){if(t===void 0){t=false}return clearSession(e,t)};export{authenticateUser as a,loadSession as l,setSession as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as process_1}from"./index-97ec070b.js";import{B as Buffer}from"./buffer-es6-5cef4368.js";"use strict";var bind=function e(t,r){return function e(){var n=new Array(arguments.length);for(var i=0;i<n.length;i++){n[i]=arguments[i]}return t.apply(r,n)}};"use strict";var toString=Object.prototype.toString;var kindOf=function(e){return function(t){var r=toString.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())}}(Object.create(null));function kindOfTest(e){e=e.toLowerCase();return function t(r){return kindOf(r)===e}}function isArray(e){return Array.isArray(e)}function isUndefined(e){return typeof e==="undefined"}function isBuffer(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}var isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(e){var t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&isArrayBuffer(e.buffer)}return t}function isString(e){return typeof e==="string"}function isNumber(e){return typeof e==="number"}function isObject(e){return e!==null&&typeof e==="object"}function isPlainObject(e){if(kindOf(e)!=="object"){return false}var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var isDate=kindOfTest("Date");var isFile=kindOfTest("File");var isBlob=kindOfTest("Blob");var isFileList=kindOfTest("FileList");function isFunction(e){return toString.call(e)==="[object Function]"}function isStream(e){return isObject(e)&&isFunction(e.pipe)}function isFormData(e){var t="[object FormData]";return e&&(typeof FormData==="function"&&e instanceof FormData||toString.call(e)===t||isFunction(e.toString)&&e.toString()===t)}var isURLSearchParams=kindOfTest("URLSearchParams");function trim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){if(typeof navigator!=="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")){return false}return typeof window!=="undefined"&&typeof document!=="undefined"}function forEach(e,t){if(e===null||typeof e==="undefined"){return}if(typeof e!=="object"){e=[e]}if(isArray(e)){for(var r=0,n=e.length;r<n;r++){t.call(null,e[r],r,e)}}else{for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i)){t.call(null,e[i],i,e)}}}}function merge(){var e={};function t(t,r){if(isPlainObject(e[r])&&isPlainObject(t)){e[r]=merge(e[r],t)}else if(isPlainObject(t)){e[r]=merge({},t)}else if(isArray(t)){e[r]=t.slice()}else{e[r]=t}}for(var r=0,n=arguments.length;r<n;r++){forEach(arguments[r],t)}return e}function extend(e,t,r){forEach(t,(function t(n,i){if(r&&typeof n==="function"){e[i]=bind(n,r)}else{e[i]=n}}));return e}function stripBOM(e){if(e.charCodeAt(0)===65279){e=e.slice(1)}return e}function inherits(e,t,r,n){e.prototype=Object.create(t.prototype,n);e.prototype.constructor=e;r&&Object.assign(e.prototype,r)}function toFlatObject(e,t,r){var n;var i;var o;var s={};t=t||{};do{n=Object.getOwnPropertyNames(e);i=n.length;while(i-- >0){o=n[i];if(!s[o]){t[o]=e[o];s[o]=true}}e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t}function endsWith(e,t,r){e=String(e);if(r===undefined||r>e.length){r=e.length}r-=t.length;var n=e.indexOf(t,r);return n!==-1&&n===r}function toArray(e){if(!e)return null;var t=e.length;if(isUndefined(t))return null;var r=new Array(t);while(t-- >0){r[t]=e[t]}return r}var isTypedArray=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array!=="undefined"&&Object.getPrototypeOf(Uint8Array));var utils={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isObject:isObject,isPlainObject:isPlainObject,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isFunction:isFunction,isStream:isStream,isURLSearchParams:isURLSearchParams,isStandardBrowserEnv:isStandardBrowserEnv,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:kindOf,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,isTypedArray:isTypedArray,isFileList:isFileList};"use strict";function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildURL=function e(t,r,n){if(!r){return t}var i;if(n){i=n(r)}else if(utils.isURLSearchParams(r)){i=r.toString()}else{var o=[];utils.forEach(r,(function e(t,r){if(t===null||typeof t==="undefined"){return}if(utils.isArray(t)){r=r+"[]"}else{t=[t]}utils.forEach(t,(function e(t){if(utils.isDate(t)){t=t.toISOString()}else if(utils.isObject(t)){t=JSON.stringify(t)}o.push(encode(r)+"="+encode(t))}))}));i=o.join("&")}if(i){var s=t.indexOf("#");if(s!==-1){t=t.slice(0,s)}t+=(t.indexOf("?")===-1?"?":"&")+i}return t};"use strict";function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function e(t,r,n){this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:false,runWhen:n?n.runWhen:null});return this.handlers.length-1};InterceptorManager.prototype.eject=function e(t){if(this.handlers[t]){this.handlers[t]=null}};InterceptorManager.prototype.forEach=function e(t){utils.forEach(this.handlers,(function e(r){if(r!==null){t(r)}}))};var InterceptorManager_1=InterceptorManager;"use strict";var normalizeHeaderName=function e(t,r){utils.forEach(t,(function e(n,i){if(i!==r&&i.toUpperCase()===r.toUpperCase()){t[r]=n;delete t[i]}}))};"use strict";function AxiosError(e,t,r,n,i){Error.call(this);this.message=e;this.name="AxiosError";t&&(this.code=t);r&&(this.config=r);n&&(this.request=n);i&&(this.response=i)}utils.inherits(AxiosError,Error,{toJSON:function e(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var prototype=AxiosError.prototype;var descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){descriptors[e]={value:e}}));Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype,"isAxiosError",{value:true});AxiosError.from=function(e,t,r,n,i,o){var s=Object.create(prototype);utils.toFlatObject(e,s,(function e(t){return t!==Error.prototype}));AxiosError.call(s,e.message,t,r,n,i);s.name=e.name;o&&Object.assign(s,o);return s};var AxiosError_1=AxiosError;"use strict";var transitional={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};"use strict";function toFormData(e,t){t=t||new FormData;var r=[];function n(e){if(e===null)return"";if(utils.isDate(e)){return e.toISOString()}if(utils.isArrayBuffer(e)||utils.isTypedArray(e)){return typeof Blob==="function"?new Blob([e]):Buffer.from(e)}return e}function i(e,o){if(utils.isPlainObject(e)||utils.isArray(e)){if(r.indexOf(e)!==-1){throw Error("Circular reference detected in "+o)}r.push(e);utils.forEach(e,(function e(r,s){if(utils.isUndefined(r))return;var a=o?o+"."+s:s;var u;if(r&&!o&&typeof r==="object"){if(utils.endsWith(s,"{}")){r=JSON.stringify(r)}else if(utils.endsWith(s,"[]")&&(u=utils.toArray(r))){u.forEach((function(e){!utils.isUndefined(e)&&t.append(a,n(e))}));return}}i(r,a)}));r.pop()}else{t.append(o,n(e))}}i(e);return t}var toFormData_1=toFormData;"use strict";var settle=function e(t,r,n){var i=n.config.validateStatus;if(!n.status||!i||i(n.status)){t(n)}else{r(new AxiosError_1("Request failed with status code "+n.status,[AxiosError_1.ERR_BAD_REQUEST,AxiosError_1.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}};"use strict";var cookies=utils.isStandardBrowserEnv()?function e(){return{write:function e(t,r,n,i,o,s){var a=[];a.push(t+"="+encodeURIComponent(r));if(utils.isNumber(n)){a.push("expires="+new Date(n).toGMTString())}if(utils.isString(i)){a.push("path="+i)}if(utils.isString(o)){a.push("domain="+o)}if(s===true){a.push("secure")}document.cookie=a.join("; ")},read:function e(t){var r=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function e(t){this.write(t,"",Date.now()-864e5)}}}():function e(){return{write:function e(){},read:function e(){return null},remove:function e(){}}}();"use strict";var isAbsoluteURL=function e(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)};"use strict";var combineURLs=function e(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t};"use strict";var buildFullPath=function e(t,r){if(t&&!isAbsoluteURL(r)){return combineURLs(t,r)}return r};"use strict";var ignoreDuplicateOf=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];var parseHeaders=function e(t){var r={};var n;var i;var o;if(!t){return r}utils.forEach(t.split("\n"),(function e(t){o=t.indexOf(":");n=utils.trim(t.substr(0,o)).toLowerCase();i=utils.trim(t.substr(o+1));if(n){if(r[n]&&ignoreDuplicateOf.indexOf(n)>=0){return}if(n==="set-cookie"){r[n]=(r[n]?r[n]:[]).concat([i])}else{r[n]=r[n]?r[n]+", "+i:i}}}));return r};"use strict";var isURLSameOrigin=utils.isStandardBrowserEnv()?function e(){var t=/(msie|trident)/i.test(navigator.userAgent);var r=document.createElement("a");var n;function i(e){var n=e;if(t){r.setAttribute("href",n);n=r.href}r.setAttribute("href",n);return{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}n=i(window.location.href);return function e(t){var r=utils.isString(t)?i(t):t;return r.protocol===n.protocol&&r.host===n.host}}():function e(){return function e(){return true}}();"use strict";function CanceledError(e){AxiosError_1.call(this,e==null?"canceled":e,AxiosError_1.ERR_CANCELED);this.name="CanceledError"}utils.inherits(CanceledError,AxiosError_1,{__CANCEL__:true});var CanceledError_1=CanceledError;"use strict";var parseProtocol=function e(t){var r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return r&&r[1]||""};"use strict";var xhr=function e(t){return new Promise((function e(r,n){var i=t.data;var o=t.headers;var s=t.responseType;var a;function u(){if(t.cancelToken){t.cancelToken.unsubscribe(a)}if(t.signal){t.signal.removeEventListener("abort",a)}}if(utils.isFormData(i)&&utils.isStandardBrowserEnv()){delete o["Content-Type"]}var f=new XMLHttpRequest;if(t.auth){var c=t.auth.username||"";var l=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.Authorization="Basic "+btoa(c+":"+l)}var d=buildFullPath(t.baseURL,t.url);f.open(t.method.toUpperCase(),buildURL(d,t.params,t.paramsSerializer),true);f.timeout=t.timeout;function p(){if(!f){return}var e="getAllResponseHeaders"in f?parseHeaders(f.getAllResponseHeaders()):null;var i=!s||s==="text"||s==="json"?f.responseText:f.response;var o={data:i,status:f.status,statusText:f.statusText,headers:e,config:t,request:f};settle((function e(t){r(t);u()}),(function e(t){n(t);u()}),o);f=null}if("onloadend"in f){f.onloadend=p}else{f.onreadystatechange=function e(){if(!f||f.readyState!==4){return}if(f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)){return}setTimeout(p)}}f.onabort=function e(){if(!f){return}n(new AxiosError_1("Request aborted",AxiosError_1.ECONNABORTED,t,f));f=null};f.onerror=function e(){n(new AxiosError_1("Network Error",AxiosError_1.ERR_NETWORK,t,f,f));f=null};f.ontimeout=function e(){var r=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";var i=t.transitional||transitional;if(t.timeoutErrorMessage){r=t.timeoutErrorMessage}n(new AxiosError_1(r,i.clarifyTimeoutError?AxiosError_1.ETIMEDOUT:AxiosError_1.ECONNABORTED,t,f));f=null};if(utils.isStandardBrowserEnv()){var h=(t.withCredentials||isURLSameOrigin(d))&&t.xsrfCookieName?cookies.read(t.xsrfCookieName):undefined;if(h){o[t.xsrfHeaderName]=h}}if("setRequestHeader"in f){utils.forEach(o,(function e(t,r){if(typeof i==="undefined"&&r.toLowerCase()==="content-type"){delete o[r]}else{f.setRequestHeader(r,t)}}))}if(!utils.isUndefined(t.withCredentials)){f.withCredentials=!!t.withCredentials}if(s&&s!=="json"){f.responseType=t.responseType}if(typeof t.onDownloadProgress==="function"){f.addEventListener("progress",t.onDownloadProgress)}if(typeof t.onUploadProgress==="function"&&f.upload){f.upload.addEventListener("progress",t.onUploadProgress)}if(t.cancelToken||t.signal){a=function(e){if(!f){return}n(!e||e&&e.type?new CanceledError_1:e);f.abort();f=null};t.cancelToken&&t.cancelToken.subscribe(a);if(t.signal){t.signal.aborted?a():t.signal.addEventListener("abort",a)}}if(!i){i=null}var v=parseProtocol(d);if(v&&["http","https","file"].indexOf(v)===-1){n(new AxiosError_1("Unsupported protocol "+v+":",AxiosError_1.ERR_BAD_REQUEST,t));return}f.send(i)}))};var _null=null;"use strict";var DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){if(!utils.isUndefined(e)&&utils.isUndefined(e["Content-Type"])){e["Content-Type"]=t}}function getDefaultAdapter(){var e;if(typeof XMLHttpRequest!=="undefined"){e=xhr}else if(typeof process_1!=="undefined"&&Object.prototype.toString.call(process_1)==="[object process]"){e=xhr}return e}function stringifySafely(e,t,r){if(utils.isString(e)){try{(t||JSON.parse)(e);return utils.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(r||JSON.stringify)(e)}var defaults={transitional:transitional,adapter:getDefaultAdapter(),transformRequest:[function e(t,r){normalizeHeaderName(r,"Accept");normalizeHeaderName(r,"Content-Type");if(utils.isFormData(t)||utils.isArrayBuffer(t)||utils.isBuffer(t)||utils.isStream(t)||utils.isFile(t)||utils.isBlob(t)){return t}if(utils.isArrayBufferView(t)){return t.buffer}if(utils.isURLSearchParams(t)){setContentTypeIfUnset(r,"application/x-www-form-urlencoded;charset=utf-8");return t.toString()}var n=utils.isObject(t);var i=r&&r["Content-Type"];var o;if((o=utils.isFileList(t))||n&&i==="multipart/form-data"){var s=this.env&&this.env.FormData;return toFormData_1(o?{"files[]":t}:t,s&&new s)}else if(n||i==="application/json"){setContentTypeIfUnset(r,"application/json");return stringifySafely(t)}return t}],transformResponse:[function e(t){var r=this.transitional||defaults.transitional;var n=r&&r.silentJSONParsing;var i=r&&r.forcedJSONParsing;var o=!n&&this.responseType==="json";if(o||i&&utils.isString(t)&&t.length){try{return JSON.parse(t)}catch(e){if(o){if(e.name==="SyntaxError"){throw AxiosError_1.from(e,AxiosError_1.ERR_BAD_RESPONSE,this,null,this.response)}throw e}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_null},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils.forEach(["delete","get","head"],(function e(t){defaults.headers[t]={}}));utils.forEach(["post","put","patch"],(function e(t){defaults.headers[t]=utils.merge(DEFAULT_CONTENT_TYPE)}));var defaults_1=defaults;"use strict";var transformData=function e(t,r,n){var i=this||defaults_1;utils.forEach(n,(function e(n){t=n.call(i,t,r)}));return t};"use strict";var isCancel=function e(t){return!!(t&&t.__CANCEL__)};"use strict";function throwIfCancellationRequested(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new CanceledError_1}}var dispatchRequest=function e(t){throwIfCancellationRequested(t);t.headers=t.headers||{};t.data=transformData.call(t,t.data,t.headers,t.transformRequest);t.headers=utils.merge(t.headers.common||{},t.headers[t.method]||{},t.headers);utils.forEach(["delete","get","head","post","put","patch","common"],(function e(r){delete t.headers[r]}));var r=t.adapter||defaults_1.adapter;return r(t).then((function e(r){throwIfCancellationRequested(t);r.data=transformData.call(t,r.data,r.headers,t.transformResponse);return r}),(function e(r){if(!isCancel(r)){throwIfCancellationRequested(t);if(r&&r.response){r.response.data=transformData.call(t,r.response.data,r.response.headers,t.transformResponse)}}return Promise.reject(r)}))};"use strict";var mergeConfig=function e(t,r){r=r||{};var n={};function i(e,t){if(utils.isPlainObject(e)&&utils.isPlainObject(t)){return utils.merge(e,t)}else if(utils.isPlainObject(t)){return utils.merge({},t)}else if(utils.isArray(t)){return t.slice()}return t}function o(e){if(!utils.isUndefined(r[e])){return i(t[e],r[e])}else if(!utils.isUndefined(t[e])){return i(undefined,t[e])}}function s(e){if(!utils.isUndefined(r[e])){return i(undefined,r[e])}}function a(e){if(!utils.isUndefined(r[e])){return i(undefined,r[e])}else if(!utils.isUndefined(t[e])){return i(undefined,t[e])}}function u(e){if(e in r){return i(t[e],r[e])}else if(e in t){return i(undefined,t[e])}}var f={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u};utils.forEach(Object.keys(t).concat(Object.keys(r)),(function e(t){var r=f[t]||o;var i=r(t);utils.isUndefined(i)&&r!==u||(n[t]=i)}));return n};var data={version:"0.27.2"};"use strict";var VERSION=data.version;var validators$1={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){validators$1[e]=function r(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var deprecatedWarnings={};validators$1.transitional=function e(t,r,n){function i(e,t){return"[Axios v"+VERSION+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(e,n,o){if(t===false){throw new AxiosError_1(i(n," has been removed"+(r?" in "+r:"")),AxiosError_1.ERR_DEPRECATED)}if(r&&!deprecatedWarnings[n]){deprecatedWarnings[n]=true;console.warn(i(n," has been deprecated since v"+r+" and will be removed in the near future"))}return t?t(e,n,o):true}};function assertOptions(e,t,r){if(typeof e!=="object"){throw new AxiosError_1("options must be an object",AxiosError_1.ERR_BAD_OPTION_VALUE)}var n=Object.keys(e);var i=n.length;while(i-- >0){var o=n[i];var s=t[o];if(s){var a=e[o];var u=a===undefined||s(a,o,e);if(u!==true){throw new AxiosError_1("option "+o+" must be "+u,AxiosError_1.ERR_BAD_OPTION_VALUE)}continue}if(r!==true){throw new AxiosError_1("Unknown option "+o,AxiosError_1.ERR_BAD_OPTION)}}}var validator={assertOptions:assertOptions,validators:validators$1};"use strict";var validators=validator.validators;function Axios(e){this.defaults=e;this.interceptors={request:new InterceptorManager_1,response:new InterceptorManager_1}}Axios.prototype.request=function e(t,r){if(typeof t==="string"){r=r||{};r.url=t}else{r=t||{}}r=mergeConfig(this.defaults,r);if(r.method){r.method=r.method.toLowerCase()}else if(this.defaults.method){r.method=this.defaults.method.toLowerCase()}else{r.method="get"}var n=r.transitional;if(n!==undefined){validator.assertOptions(n,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},false)}var i=[];var o=true;this.interceptors.request.forEach((function e(t){if(typeof t.runWhen==="function"&&t.runWhen(r)===false){return}o=o&&t.synchronous;i.unshift(t.fulfilled,t.rejected)}));var s=[];this.interceptors.response.forEach((function e(t){s.push(t.fulfilled,t.rejected)}));var a;if(!o){var u=[dispatchRequest,undefined];Array.prototype.unshift.apply(u,i);u=u.concat(s);a=Promise.resolve(r);while(u.length){a=a.then(u.shift(),u.shift())}return a}var f=r;while(i.length){var c=i.shift();var l=i.shift();try{f=c(f)}catch(e){l(e);break}}try{a=dispatchRequest(f)}catch(e){return Promise.reject(e)}while(s.length){a=a.then(s.shift(),s.shift())}return a};Axios.prototype.getUri=function e(t){t=mergeConfig(this.defaults,t);var r=buildFullPath(t.baseURL,t.url);return buildURL(r,t.params,t.paramsSerializer)};utils.forEach(["delete","get","head","options"],(function e(t){Axios.prototype[t]=function(e,r){return this.request(mergeConfig(r||{},{method:t,url:e,data:(r||{}).data}))}}));utils.forEach(["post","put","patch"],(function e(t){function r(e){return function r(n,i,o){return this.request(mergeConfig(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Axios.prototype[t]=r();Axios.prototype[t+"Form"]=r(true)}));var Axios_1=Axios;"use strict";function CancelToken(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var t;this.promise=new Promise((function e(r){t=r}));var r=this;this.promise.then((function(e){if(!r._listeners)return;var t;var n=r._listeners.length;for(t=0;t<n;t++){r._listeners[t](e)}r._listeners=null}));this.promise.then=function(e){var t;var n=new Promise((function(e){r.subscribe(e);t=e})).then(e);n.cancel=function e(){r.unsubscribe(t)};return n};e((function e(n){if(r.reason){return}r.reason=new CanceledError_1(n);t(r.reason)}))}CancelToken.prototype.throwIfRequested=function e(){if(this.reason){throw this.reason}};CancelToken.prototype.subscribe=function e(t){if(this.reason){t(this.reason);return}if(this._listeners){this._listeners.push(t)}else{this._listeners=[t]}};CancelToken.prototype.unsubscribe=function e(t){if(!this._listeners){return}var r=this._listeners.indexOf(t);if(r!==-1){this._listeners.splice(r,1)}};CancelToken.source=function e(){var t;var r=new CancelToken((function e(r){t=r}));return{token:r,cancel:t}};var CancelToken_1=CancelToken;"use strict";var spread=function e(t){return function e(r){return t.apply(null,r)}};"use strict";var isAxiosError=function e(t){return utils.isObject(t)&&t.isAxiosError===true};"use strict";function createInstance(e){var t=new Axios_1(e);var r=bind(Axios_1.prototype.request,t);utils.extend(r,Axios_1.prototype,t);utils.extend(r,t);r.create=function t(r){return createInstance(mergeConfig(e,r))};return r}var axios$1=createInstance(defaults_1);axios$1.Axios=Axios_1;axios$1.CanceledError=CanceledError_1;axios$1.CancelToken=CancelToken_1;axios$1.isCancel=isCancel;axios$1.VERSION=data.version;axios$1.toFormData=toFormData_1;axios$1.AxiosError=AxiosError_1;axios$1.Cancel=axios$1.CanceledError;axios$1.all=function e(t){return Promise.all(t)};axios$1.spread=spread;axios$1.isAxiosError=isAxiosError;var axios_1=axios$1;var _default=axios$1;axios_1.default=_default;var axios=axios_1;var requestLogger=function(e){console.debug("[JS-SDK] ".concat(e.method.toUpperCase()," ").concat(e.baseURL).concat(e.url),e.data?JSON.stringify(e.data):"");return e};var VerdocsEndpoint=function(){function e(){this.requestLoggerId=null;this.api=axios.create({baseURL:"https://api.verdocs.com",timeout:3e3})}e.prototype.setTimeout=function(e){this.api.defaults.timeout=e;return this};e.prototype.setClientID=function(e){this.api.defaults.headers.common["X-Client-ID"]=e;return this};e.prototype.setAuthorization=function(e){if(e){this.api.defaults.headers.common.Authorization="Bearer ".concat(e)}else{delete this.api.defaults.headers.common.Authorization}return this};e.prototype.setSigningAuthorization=function(e){if(e){this.api.defaults.headers.common.signer="Bearer ".concat(e)}else{delete this.api.defaults.headers.common.signer}return this};e.prototype.setBaseURL=function(e){this.api.defaults.baseURL=e;return this};e.prototype.logRequests=function(e){if(e&&this.requestLoggerId===null){this.requestLoggerId=this.api.interceptors.request.use(requestLogger)}else if(!e&&this.requestLoggerId!==null){this.api.interceptors.request.eject(this.requestLoggerId)}return this};return e}();"use strict";var naiveFallback=function(){if(typeof self==="object"&&self)return self;if(typeof window==="object"&&window)return window;throw new Error("Unable to resolve global `this`")};var globalThis_1=function(){if(this)return this;if(typeof globalThis==="object"&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:true})}catch(e){return naiveFallback()}try{if(!__global__)return naiveFallback();return __global__}finally{delete Object.prototype.__global__}}();var ENDPOINT_KEY=Symbol.for("verdocs-api-endpoint");if(!globalThis_1[ENDPOINT_KEY]){globalThis_1[ENDPOINT_KEY]=new VerdocsEndpoint}var globalEndpoint=globalThis_1[ENDPOINT_KEY];var activeEndpoint=globalEndpoint;var getEndpoint=function(){return activeEndpoint};var setActiveEndpoint=function(e){activeEndpoint=e||globalEndpoint};var b64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var b64re=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/;var AtoB=function(e){e=String(e).replace(/[\t\n\f\r ]+/g,"");if(!b64re.test(e))throw new TypeError("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");e+="==".slice(2-(e.length&3));var t;var r="";var n;var i;var o=0;for(;o<e.length;){t=b64.indexOf(e.charAt(o++))<<18|b64.indexOf(e.charAt(o++))<<12|(n=b64.indexOf(e.charAt(o++)))<<6|(i=b64.indexOf(e.charAt(o++)));r+=n===64?String.fromCharCode(t>>16&255):i===64?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,t&255)}return r};var decodeTokenBody=function(e){return JSON.parse(AtoB((e||"").split(".")[1]||""))};var decodeAccessTokenBody=function(e){var t;try{t=decodeTokenBody(e);if(t===null){return null}}catch(e){return null}Object.keys(t).forEach((function(e){if(typeof e==="string"&&e.startsWith("https://verdocs.com/")){t[e.replace("https://verdocs.com/","")]=t[e];delete t[e]}}));return t};export{VerdocsEndpoint as V,decodeAccessTokenBody as d,getEndpoint as g,setActiveEndpoint as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var globalScripts=function(){};export{globalScripts as g};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
var global$1=typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{};var lookup=[];var revLookup=[];var Arr=typeof Uint8Array!=="undefined"?Uint8Array:Array;var inited=false;function init(){inited=true;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var r=0,t=e.length;r<t;++r){lookup[r]=e[r];revLookup[e.charCodeAt(r)]=r}revLookup["-".charCodeAt(0)]=62;revLookup["_".charCodeAt(0)]=63}function toByteArray(e){if(!inited){init()}var r,t,n,f,i,o;var u=e.length;if(u%4>0){throw new Error("Invalid string. Length must be a multiple of 4")}i=e[u-2]==="="?2:e[u-1]==="="?1:0;o=new Arr(u*3/4-i);n=i>0?u-4:u;var a=0;for(r=0,t=0;r<n;r+=4,t+=3){f=revLookup[e.charCodeAt(r)]<<18|revLookup[e.charCodeAt(r+1)]<<12|revLookup[e.charCodeAt(r+2)]<<6|revLookup[e.charCodeAt(r+3)];o[a++]=f>>16&255;o[a++]=f>>8&255;o[a++]=f&255}if(i===2){f=revLookup[e.charCodeAt(r)]<<2|revLookup[e.charCodeAt(r+1)]>>4;o[a++]=f&255}else if(i===1){f=revLookup[e.charCodeAt(r)]<<10|revLookup[e.charCodeAt(r+1)]<<4|revLookup[e.charCodeAt(r+2)]>>2;o[a++]=f>>8&255;o[a++]=f&255}return o}function tripletToBase64(e){return lookup[e>>18&63]+lookup[e>>12&63]+lookup[e>>6&63]+lookup[e&63]}function encodeChunk(e,r,t){var n;var f=[];for(var i=r;i<t;i+=3){n=(e[i]<<16)+(e[i+1]<<8)+e[i+2];f.push(tripletToBase64(n))}return f.join("")}function fromByteArray(e){if(!inited){init()}var r;var t=e.length;var n=t%3;var f="";var i=[];var o=16383;for(var u=0,a=t-n;u<a;u+=o){i.push(encodeChunk(e,u,u+o>a?a:u+o))}if(n===1){r=e[t-1];f+=lookup[r>>2];f+=lookup[r<<4&63];f+="=="}else if(n===2){r=(e[t-2]<<8)+e[t-1];f+=lookup[r>>10];f+=lookup[r>>4&63];f+=lookup[r<<2&63];f+="="}i.push(f);return i.join("")}function read(e,r,t,n,f){var i,o;var u=f*8-n-1;var a=(1<<u)-1;var s=a>>1;var h=-7;var c=t?f-1:0;var l=t?-1:1;var p=e[r+c];c+=l;i=p&(1<<-h)-1;p>>=-h;h+=u;for(;h>0;i=i*256+e[r+c],c+=l,h-=8){}o=i&(1<<-h)-1;i>>=-h;h+=n;for(;h>0;o=o*256+e[r+c],c+=l,h-=8){}if(i===0){i=1-s}else if(i===a){return o?NaN:(p?-1:1)*Infinity}else{o=o+Math.pow(2,n);i=i-s}return(p?-1:1)*o*Math.pow(2,i-n)}function write(e,r,t,n,f,i){var o,u,a;var s=i*8-f-1;var h=(1<<s)-1;var c=h>>1;var l=f===23?Math.pow(2,-24)-Math.pow(2,-77):0;var p=n?0:i-1;var g=n?1:-1;var B=r<0||r===0&&1/r<0?1:0;r=Math.abs(r);if(isNaN(r)||r===Infinity){u=isNaN(r)?1:0;o=h}else{o=Math.floor(Math.log(r)/Math.LN2);if(r*(a=Math.pow(2,-o))<1){o--;a*=2}if(o+c>=1){r+=l/a}else{r+=l*Math.pow(2,1-c)}if(r*a>=2){o++;a/=2}if(o+c>=h){u=0;o=h}else if(o+c>=1){u=(r*a-1)*Math.pow(2,f);o=o+c}else{u=r*Math.pow(2,c-1)*Math.pow(2,f);o=0}}for(;f>=8;e[t+p]=u&255,p+=g,u/=256,f-=8){}o=o<<f|u;s+=f;for(;s>0;e[t+p]=o&255,p+=g,o/=256,s-=8){}e[t+p-g]|=B*128}var toString={}.toString;var isArray=Array.isArray||function(e){return toString.call(e)=="[object Array]"};
|
|
2
|
-
/*!
|
|
3
|
-
* The buffer module from node.js, for the browser.
|
|
4
|
-
*
|
|
5
|
-
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
6
|
-
* @license MIT
|
|
7
|
-
*/var INSPECT_MAX_BYTES=50;Buffer.TYPED_ARRAY_SUPPORT=global$1.TYPED_ARRAY_SUPPORT!==undefined?global$1.TYPED_ARRAY_SUPPORT:true;var _kMaxLength=kMaxLength();function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(e,r){if(kMaxLength()<r){throw new RangeError("Invalid typed array length")}if(Buffer.TYPED_ARRAY_SUPPORT){e=new Uint8Array(r);e.__proto__=Buffer.prototype}else{if(e===null){e=new Buffer(r)}e.length=r}return e}function Buffer(e,r,t){if(!Buffer.TYPED_ARRAY_SUPPORT&&!(this instanceof Buffer)){return new Buffer(e,r,t)}if(typeof e==="number"){if(typeof r==="string"){throw new Error("If encoding is specified then the first argument must be a string")}return allocUnsafe(this,e)}return from(this,e,r,t)}Buffer.poolSize=8192;Buffer._augment=function(e){e.__proto__=Buffer.prototype;return e};function from(e,r,t,n){if(typeof r==="number"){throw new TypeError('"value" argument must not be a number')}if(typeof ArrayBuffer!=="undefined"&&r instanceof ArrayBuffer){return fromArrayBuffer(e,r,t,n)}if(typeof r==="string"){return fromString(e,r,t)}return fromObject(e,r)}Buffer.from=function(e,r,t){return from(null,e,r,t)};if(Buffer.TYPED_ARRAY_SUPPORT){Buffer.prototype.__proto__=Uint8Array.prototype;Buffer.__proto__=Uint8Array}function assertSize(e){if(typeof e!=="number"){throw new TypeError('"size" argument must be a number')}else if(e<0){throw new RangeError('"size" argument must not be negative')}}function alloc(e,r,t,n){assertSize(r);if(r<=0){return createBuffer(e,r)}if(t!==undefined){return typeof n==="string"?createBuffer(e,r).fill(t,n):createBuffer(e,r).fill(t)}return createBuffer(e,r)}Buffer.alloc=function(e,r,t){return alloc(null,e,r,t)};function allocUnsafe(e,r){assertSize(r);e=createBuffer(e,r<0?0:checked(r)|0);if(!Buffer.TYPED_ARRAY_SUPPORT){for(var t=0;t<r;++t){e[t]=0}}return e}Buffer.allocUnsafe=function(e){return allocUnsafe(null,e)};Buffer.allocUnsafeSlow=function(e){return allocUnsafe(null,e)};function fromString(e,r,t){if(typeof t!=="string"||t===""){t="utf8"}if(!Buffer.isEncoding(t)){throw new TypeError('"encoding" must be a valid string encoding')}var n=byteLength(r,t)|0;e=createBuffer(e,n);var f=e.write(r,t);if(f!==n){e=e.slice(0,f)}return e}function fromArrayLike(e,r){var t=r.length<0?0:checked(r.length)|0;e=createBuffer(e,t);for(var n=0;n<t;n+=1){e[n]=r[n]&255}return e}function fromArrayBuffer(e,r,t,n){r.byteLength;if(t<0||r.byteLength<t){throw new RangeError("'offset' is out of bounds")}if(r.byteLength<t+(n||0)){throw new RangeError("'length' is out of bounds")}if(t===undefined&&n===undefined){r=new Uint8Array(r)}else if(n===undefined){r=new Uint8Array(r,t)}else{r=new Uint8Array(r,t,n)}if(Buffer.TYPED_ARRAY_SUPPORT){e=r;e.__proto__=Buffer.prototype}else{e=fromArrayLike(e,r)}return e}function fromObject(e,r){if(internalIsBuffer(r)){var t=checked(r.length)|0;e=createBuffer(e,t);if(e.length===0){return e}r.copy(e,0,0,t);return e}if(r){if(typeof ArrayBuffer!=="undefined"&&r.buffer instanceof ArrayBuffer||"length"in r){if(typeof r.length!=="number"||isnan(r.length)){return createBuffer(e,0)}return fromArrayLike(e,r)}if(r.type==="Buffer"&&isArray(r.data)){return fromArrayLike(e,r.data)}}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function checked(e){if(e>=kMaxLength()){throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+kMaxLength().toString(16)+" bytes")}return e|0}function SlowBuffer(e){if(+e!=e){e=0}return Buffer.alloc(+e)}Buffer.isBuffer=isBuffer;function internalIsBuffer(e){return!!(e!=null&&e._isBuffer)}Buffer.compare=function e(r,t){if(!internalIsBuffer(r)||!internalIsBuffer(t)){throw new TypeError("Arguments must be Buffers")}if(r===t)return 0;var n=r.length;var f=t.length;for(var i=0,o=Math.min(n,f);i<o;++i){if(r[i]!==t[i]){n=r[i];f=t[i];break}}if(n<f)return-1;if(f<n)return 1;return 0};Buffer.isEncoding=function e(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return true;default:return false}};Buffer.concat=function e(r,t){if(!isArray(r)){throw new TypeError('"list" argument must be an Array of Buffers')}if(r.length===0){return Buffer.alloc(0)}var n;if(t===undefined){t=0;for(n=0;n<r.length;++n){t+=r[n].length}}var f=Buffer.allocUnsafe(t);var i=0;for(n=0;n<r.length;++n){var o=r[n];if(!internalIsBuffer(o)){throw new TypeError('"list" argument must be an Array of Buffers')}o.copy(f,i);i+=o.length}return f};function byteLength(e,r){if(internalIsBuffer(e)){return e.length}if(typeof ArrayBuffer!=="undefined"&&typeof ArrayBuffer.isView==="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)){return e.byteLength}if(typeof e!=="string"){e=""+e}var t=e.length;if(t===0)return 0;var n=false;for(;;){switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":case undefined:return utf8ToBytes(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return base64ToBytes(e).length;default:if(n)return utf8ToBytes(e).length;r=(""+r).toLowerCase();n=true}}}Buffer.byteLength=byteLength;function slowToString(e,r,t){var n=false;if(r===undefined||r<0){r=0}if(r>this.length){return""}if(t===undefined||t>this.length){t=this.length}if(t<=0){return""}t>>>=0;r>>>=0;if(t<=r){return""}if(!e)e="utf8";while(true){switch(e){case"hex":return hexSlice(this,r,t);case"utf8":case"utf-8":return utf8Slice(this,r,t);case"ascii":return asciiSlice(this,r,t);case"latin1":case"binary":return latin1Slice(this,r,t);case"base64":return base64Slice(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase();n=true}}}Buffer.prototype._isBuffer=true;function swap(e,r,t){var n=e[r];e[r]=e[t];e[t]=n}Buffer.prototype.swap16=function e(){var r=this.length;if(r%2!==0){throw new RangeError("Buffer size must be a multiple of 16-bits")}for(var t=0;t<r;t+=2){swap(this,t,t+1)}return this};Buffer.prototype.swap32=function e(){var r=this.length;if(r%4!==0){throw new RangeError("Buffer size must be a multiple of 32-bits")}for(var t=0;t<r;t+=4){swap(this,t,t+3);swap(this,t+1,t+2)}return this};Buffer.prototype.swap64=function e(){var r=this.length;if(r%8!==0){throw new RangeError("Buffer size must be a multiple of 64-bits")}for(var t=0;t<r;t+=8){swap(this,t,t+7);swap(this,t+1,t+6);swap(this,t+2,t+5);swap(this,t+3,t+4)}return this};Buffer.prototype.toString=function e(){var r=this.length|0;if(r===0)return"";if(arguments.length===0)return utf8Slice(this,0,r);return slowToString.apply(this,arguments)};Buffer.prototype.equals=function e(r){if(!internalIsBuffer(r))throw new TypeError("Argument must be a Buffer");if(this===r)return true;return Buffer.compare(this,r)===0};Buffer.prototype.inspect=function e(){var r="";var t=INSPECT_MAX_BYTES;if(this.length>0){r=this.toString("hex",0,t).match(/.{2}/g).join(" ");if(this.length>t)r+=" ... "}return"<Buffer "+r+">"};Buffer.prototype.compare=function e(r,t,n,f,i){if(!internalIsBuffer(r)){throw new TypeError("Argument must be a Buffer")}if(t===undefined){t=0}if(n===undefined){n=r?r.length:0}if(f===undefined){f=0}if(i===undefined){i=this.length}if(t<0||n>r.length||f<0||i>this.length){throw new RangeError("out of range index")}if(f>=i&&t>=n){return 0}if(f>=i){return-1}if(t>=n){return 1}t>>>=0;n>>>=0;f>>>=0;i>>>=0;if(this===r)return 0;var o=i-f;var u=n-t;var a=Math.min(o,u);var s=this.slice(f,i);var h=r.slice(t,n);for(var c=0;c<a;++c){if(s[c]!==h[c]){o=s[c];u=h[c];break}}if(o<u)return-1;if(u<o)return 1;return 0};function bidirectionalIndexOf(e,r,t,n,f){if(e.length===0)return-1;if(typeof t==="string"){n=t;t=0}else if(t>2147483647){t=2147483647}else if(t<-2147483648){t=-2147483648}t=+t;if(isNaN(t)){t=f?0:e.length-1}if(t<0)t=e.length+t;if(t>=e.length){if(f)return-1;else t=e.length-1}else if(t<0){if(f)t=0;else return-1}if(typeof r==="string"){r=Buffer.from(r,n)}if(internalIsBuffer(r)){if(r.length===0){return-1}return arrayIndexOf(e,r,t,n,f)}else if(typeof r==="number"){r=r&255;if(Buffer.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf==="function"){if(f){return Uint8Array.prototype.indexOf.call(e,r,t)}else{return Uint8Array.prototype.lastIndexOf.call(e,r,t)}}return arrayIndexOf(e,[r],t,n,f)}throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(e,r,t,n,f){var i=1;var o=e.length;var u=r.length;if(n!==undefined){n=String(n).toLowerCase();if(n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le"){if(e.length<2||r.length<2){return-1}i=2;o/=2;u/=2;t/=2}}function a(e,r){if(i===1){return e[r]}else{return e.readUInt16BE(r*i)}}var s;if(f){var h=-1;for(s=t;s<o;s++){if(a(e,s)===a(r,h===-1?0:s-h)){if(h===-1)h=s;if(s-h+1===u)return h*i}else{if(h!==-1)s-=s-h;h=-1}}}else{if(t+u>o)t=o-u;for(s=t;s>=0;s--){var c=true;for(var l=0;l<u;l++){if(a(e,s+l)!==a(r,l)){c=false;break}}if(c)return s}}return-1}Buffer.prototype.includes=function e(r,t,n){return this.indexOf(r,t,n)!==-1};Buffer.prototype.indexOf=function e(r,t,n){return bidirectionalIndexOf(this,r,t,n,true)};Buffer.prototype.lastIndexOf=function e(r,t,n){return bidirectionalIndexOf(this,r,t,n,false)};function hexWrite(e,r,t,n){t=Number(t)||0;var f=e.length-t;if(!n){n=f}else{n=Number(n);if(n>f){n=f}}var i=r.length;if(i%2!==0)throw new TypeError("Invalid hex string");if(n>i/2){n=i/2}for(var o=0;o<n;++o){var u=parseInt(r.substr(o*2,2),16);if(isNaN(u))return o;e[t+o]=u}return o}function utf8Write(e,r,t,n){return blitBuffer(utf8ToBytes(r,e.length-t),e,t,n)}function asciiWrite(e,r,t,n){return blitBuffer(asciiToBytes(r),e,t,n)}function latin1Write(e,r,t,n){return asciiWrite(e,r,t,n)}function base64Write(e,r,t,n){return blitBuffer(base64ToBytes(r),e,t,n)}function ucs2Write(e,r,t,n){return blitBuffer(utf16leToBytes(r,e.length-t),e,t,n)}Buffer.prototype.write=function e(r,t,n,f){if(t===undefined){f="utf8";n=this.length;t=0}else if(n===undefined&&typeof t==="string"){f=t;n=this.length;t=0}else if(isFinite(t)){t=t|0;if(isFinite(n)){n=n|0;if(f===undefined)f="utf8"}else{f=n;n=undefined}}else{throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported")}var i=this.length-t;if(n===undefined||n>i)n=i;if(r.length>0&&(n<0||t<0)||t>this.length){throw new RangeError("Attempt to write outside buffer bounds")}if(!f)f="utf8";var o=false;for(;;){switch(f){case"hex":return hexWrite(this,r,t,n);case"utf8":case"utf-8":return utf8Write(this,r,t,n);case"ascii":return asciiWrite(this,r,t,n);case"latin1":case"binary":return latin1Write(this,r,t,n);case"base64":return base64Write(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,r,t,n);default:if(o)throw new TypeError("Unknown encoding: "+f);f=(""+f).toLowerCase();o=true}}};Buffer.prototype.toJSON=function e(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function base64Slice(e,r,t){if(r===0&&t===e.length){return fromByteArray(e)}else{return fromByteArray(e.slice(r,t))}}function utf8Slice(e,r,t){t=Math.min(e.length,t);var n=[];var f=r;while(f<t){var i=e[f];var o=null;var u=i>239?4:i>223?3:i>191?2:1;if(f+u<=t){var a,s,h,c;switch(u){case 1:if(i<128){o=i}break;case 2:a=e[f+1];if((a&192)===128){c=(i&31)<<6|a&63;if(c>127){o=c}}break;case 3:a=e[f+1];s=e[f+2];if((a&192)===128&&(s&192)===128){c=(i&15)<<12|(a&63)<<6|s&63;if(c>2047&&(c<55296||c>57343)){o=c}}break;case 4:a=e[f+1];s=e[f+2];h=e[f+3];if((a&192)===128&&(s&192)===128&&(h&192)===128){c=(i&15)<<18|(a&63)<<12|(s&63)<<6|h&63;if(c>65535&&c<1114112){o=c}}}}if(o===null){o=65533;u=1}else if(o>65535){o-=65536;n.push(o>>>10&1023|55296);o=56320|o&1023}n.push(o);f+=u}return decodeCodePointsArray(n)}var MAX_ARGUMENTS_LENGTH=4096;function decodeCodePointsArray(e){var r=e.length;if(r<=MAX_ARGUMENTS_LENGTH){return String.fromCharCode.apply(String,e)}var t="";var n=0;while(n<r){t+=String.fromCharCode.apply(String,e.slice(n,n+=MAX_ARGUMENTS_LENGTH))}return t}function asciiSlice(e,r,t){var n="";t=Math.min(e.length,t);for(var f=r;f<t;++f){n+=String.fromCharCode(e[f]&127)}return n}function latin1Slice(e,r,t){var n="";t=Math.min(e.length,t);for(var f=r;f<t;++f){n+=String.fromCharCode(e[f])}return n}function hexSlice(e,r,t){var n=e.length;if(!r||r<0)r=0;if(!t||t<0||t>n)t=n;var f="";for(var i=r;i<t;++i){f+=toHex(e[i])}return f}function utf16leSlice(e,r,t){var n=e.slice(r,t);var f="";for(var i=0;i<n.length;i+=2){f+=String.fromCharCode(n[i]+n[i+1]*256)}return f}Buffer.prototype.slice=function e(r,t){var n=this.length;r=~~r;t=t===undefined?n:~~t;if(r<0){r+=n;if(r<0)r=0}else if(r>n){r=n}if(t<0){t+=n;if(t<0)t=0}else if(t>n){t=n}if(t<r)t=r;var f;if(Buffer.TYPED_ARRAY_SUPPORT){f=this.subarray(r,t);f.__proto__=Buffer.prototype}else{var i=t-r;f=new Buffer(i,undefined);for(var o=0;o<i;++o){f[o]=this[o+r]}}return f};function checkOffset(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}Buffer.prototype.readUIntLE=function e(r,t,n){r=r|0;t=t|0;if(!n)checkOffset(r,t,this.length);var f=this[r];var i=1;var o=0;while(++o<t&&(i*=256)){f+=this[r+o]*i}return f};Buffer.prototype.readUIntBE=function e(r,t,n){r=r|0;t=t|0;if(!n){checkOffset(r,t,this.length)}var f=this[r+--t];var i=1;while(t>0&&(i*=256)){f+=this[r+--t]*i}return f};Buffer.prototype.readUInt8=function e(r,t){if(!t)checkOffset(r,1,this.length);return this[r]};Buffer.prototype.readUInt16LE=function e(r,t){if(!t)checkOffset(r,2,this.length);return this[r]|this[r+1]<<8};Buffer.prototype.readUInt16BE=function e(r,t){if(!t)checkOffset(r,2,this.length);return this[r]<<8|this[r+1]};Buffer.prototype.readUInt32LE=function e(r,t){if(!t)checkOffset(r,4,this.length);return(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};Buffer.prototype.readUInt32BE=function e(r,t){if(!t)checkOffset(r,4,this.length);return this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};Buffer.prototype.readIntLE=function e(r,t,n){r=r|0;t=t|0;if(!n)checkOffset(r,t,this.length);var f=this[r];var i=1;var o=0;while(++o<t&&(i*=256)){f+=this[r+o]*i}i*=128;if(f>=i)f-=Math.pow(2,8*t);return f};Buffer.prototype.readIntBE=function e(r,t,n){r=r|0;t=t|0;if(!n)checkOffset(r,t,this.length);var f=t;var i=1;var o=this[r+--f];while(f>0&&(i*=256)){o+=this[r+--f]*i}i*=128;if(o>=i)o-=Math.pow(2,8*t);return o};Buffer.prototype.readInt8=function e(r,t){if(!t)checkOffset(r,1,this.length);if(!(this[r]&128))return this[r];return(255-this[r]+1)*-1};Buffer.prototype.readInt16LE=function e(r,t){if(!t)checkOffset(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};Buffer.prototype.readInt16BE=function e(r,t){if(!t)checkOffset(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};Buffer.prototype.readInt32LE=function e(r,t){if(!t)checkOffset(r,4,this.length);return this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};Buffer.prototype.readInt32BE=function e(r,t){if(!t)checkOffset(r,4,this.length);return this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};Buffer.prototype.readFloatLE=function e(r,t){if(!t)checkOffset(r,4,this.length);return read(this,r,true,23,4)};Buffer.prototype.readFloatBE=function e(r,t){if(!t)checkOffset(r,4,this.length);return read(this,r,false,23,4)};Buffer.prototype.readDoubleLE=function e(r,t){if(!t)checkOffset(r,8,this.length);return read(this,r,true,52,8)};Buffer.prototype.readDoubleBE=function e(r,t){if(!t)checkOffset(r,8,this.length);return read(this,r,false,52,8)};function checkInt(e,r,t,n,f,i){if(!internalIsBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>f||r<i)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}Buffer.prototype.writeUIntLE=function e(r,t,n,f){r=+r;t=t|0;n=n|0;if(!f){var i=Math.pow(2,8*n)-1;checkInt(this,r,t,n,i,0)}var o=1;var u=0;this[t]=r&255;while(++u<n&&(o*=256)){this[t+u]=r/o&255}return t+n};Buffer.prototype.writeUIntBE=function e(r,t,n,f){r=+r;t=t|0;n=n|0;if(!f){var i=Math.pow(2,8*n)-1;checkInt(this,r,t,n,i,0)}var o=n-1;var u=1;this[t+o]=r&255;while(--o>=0&&(u*=256)){this[t+o]=r/u&255}return t+n};Buffer.prototype.writeUInt8=function e(r,t,n){r=+r;t=t|0;if(!n)checkInt(this,r,t,1,255,0);if(!Buffer.TYPED_ARRAY_SUPPORT)r=Math.floor(r);this[t]=r&255;return t+1};function objectWriteUInt16(e,r,t,n){if(r<0)r=65535+r+1;for(var f=0,i=Math.min(e.length-t,2);f<i;++f){e[t+f]=(r&255<<8*(n?f:1-f))>>>(n?f:1-f)*8}}Buffer.prototype.writeUInt16LE=function e(r,t,n){r=+r;t=t|0;if(!n)checkInt(this,r,t,2,65535,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[t]=r&255;this[t+1]=r>>>8}else{objectWriteUInt16(this,r,t,true)}return t+2};Buffer.prototype.writeUInt16BE=function e(r,t,n){r=+r;t=t|0;if(!n)checkInt(this,r,t,2,65535,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[t]=r>>>8;this[t+1]=r&255}else{objectWriteUInt16(this,r,t,false)}return t+2};function objectWriteUInt32(e,r,t,n){if(r<0)r=4294967295+r+1;for(var f=0,i=Math.min(e.length-t,4);f<i;++f){e[t+f]=r>>>(n?f:3-f)*8&255}}Buffer.prototype.writeUInt32LE=function e(r,t,n){r=+r;t=t|0;if(!n)checkInt(this,r,t,4,4294967295,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[t+3]=r>>>24;this[t+2]=r>>>16;this[t+1]=r>>>8;this[t]=r&255}else{objectWriteUInt32(this,r,t,true)}return t+4};Buffer.prototype.writeUInt32BE=function e(r,t,n){r=+r;t=t|0;if(!n)checkInt(this,r,t,4,4294967295,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[t]=r>>>24;this[t+1]=r>>>16;this[t+2]=r>>>8;this[t+3]=r&255}else{objectWriteUInt32(this,r,t,false)}return t+4};Buffer.prototype.writeIntLE=function e(r,t,n,f){r=+r;t=t|0;if(!f){var i=Math.pow(2,8*n-1);checkInt(this,r,t,n,i-1,-i)}var o=0;var u=1;var a=0;this[t]=r&255;while(++o<n&&(u*=256)){if(r<0&&a===0&&this[t+o-1]!==0){a=1}this[t+o]=(r/u>>0)-a&255}return t+n};Buffer.prototype.writeIntBE=function e(r,t,n,f){r=+r;t=t|0;if(!f){var i=Math.pow(2,8*n-1);checkInt(this,r,t,n,i-1,-i)}var o=n-1;var u=1;var a=0;this[t+o]=r&255;while(--o>=0&&(u*=256)){if(r<0&&a===0&&this[t+o+1]!==0){a=1}this[t+o]=(r/u>>0)-a&255}return t+n};Buffer.prototype.writeInt8=function e(r,t,n){r=+r;t=t|0;if(!n)checkInt(this,r,t,1,127,-128);if(!Buffer.TYPED_ARRAY_SUPPORT)r=Math.floor(r);if(r<0)r=255+r+1;this[t]=r&255;return t+1};Buffer.prototype.writeInt16LE=function e(r,t,n){r=+r;t=t|0;if(!n)checkInt(this,r,t,2,32767,-32768);if(Buffer.TYPED_ARRAY_SUPPORT){this[t]=r&255;this[t+1]=r>>>8}else{objectWriteUInt16(this,r,t,true)}return t+2};Buffer.prototype.writeInt16BE=function e(r,t,n){r=+r;t=t|0;if(!n)checkInt(this,r,t,2,32767,-32768);if(Buffer.TYPED_ARRAY_SUPPORT){this[t]=r>>>8;this[t+1]=r&255}else{objectWriteUInt16(this,r,t,false)}return t+2};Buffer.prototype.writeInt32LE=function e(r,t,n){r=+r;t=t|0;if(!n)checkInt(this,r,t,4,2147483647,-2147483648);if(Buffer.TYPED_ARRAY_SUPPORT){this[t]=r&255;this[t+1]=r>>>8;this[t+2]=r>>>16;this[t+3]=r>>>24}else{objectWriteUInt32(this,r,t,true)}return t+4};Buffer.prototype.writeInt32BE=function e(r,t,n){r=+r;t=t|0;if(!n)checkInt(this,r,t,4,2147483647,-2147483648);if(r<0)r=4294967295+r+1;if(Buffer.TYPED_ARRAY_SUPPORT){this[t]=r>>>24;this[t+1]=r>>>16;this[t+2]=r>>>8;this[t+3]=r&255}else{objectWriteUInt32(this,r,t,false)}return t+4};function checkIEEE754(e,r,t,n,f,i){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function writeFloat(e,r,t,n,f){if(!f){checkIEEE754(e,r,t,4)}write(e,r,t,n,23,4);return t+4}Buffer.prototype.writeFloatLE=function e(r,t,n){return writeFloat(this,r,t,true,n)};Buffer.prototype.writeFloatBE=function e(r,t,n){return writeFloat(this,r,t,false,n)};function writeDouble(e,r,t,n,f){if(!f){checkIEEE754(e,r,t,8)}write(e,r,t,n,52,8);return t+8}Buffer.prototype.writeDoubleLE=function e(r,t,n){return writeDouble(this,r,t,true,n)};Buffer.prototype.writeDoubleBE=function e(r,t,n){return writeDouble(this,r,t,false,n)};Buffer.prototype.copy=function e(r,t,n,f){if(!n)n=0;if(!f&&f!==0)f=this.length;if(t>=r.length)t=r.length;if(!t)t=0;if(f>0&&f<n)f=n;if(f===n)return 0;if(r.length===0||this.length===0)return 0;if(t<0){throw new RangeError("targetStart out of bounds")}if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(f<0)throw new RangeError("sourceEnd out of bounds");if(f>this.length)f=this.length;if(r.length-t<f-n){f=r.length-t+n}var i=f-n;var o;if(this===r&&n<t&&t<f){for(o=i-1;o>=0;--o){r[o+t]=this[o+n]}}else if(i<1e3||!Buffer.TYPED_ARRAY_SUPPORT){for(o=0;o<i;++o){r[o+t]=this[o+n]}}else{Uint8Array.prototype.set.call(r,this.subarray(n,n+i),t)}return i};Buffer.prototype.fill=function e(r,t,n,f){if(typeof r==="string"){if(typeof t==="string"){f=t;t=0;n=this.length}else if(typeof n==="string"){f=n;n=this.length}if(r.length===1){var i=r.charCodeAt(0);if(i<256){r=i}}if(f!==undefined&&typeof f!=="string"){throw new TypeError("encoding must be a string")}if(typeof f==="string"&&!Buffer.isEncoding(f)){throw new TypeError("Unknown encoding: "+f)}}else if(typeof r==="number"){r=r&255}if(t<0||this.length<t||this.length<n){throw new RangeError("Out of range index")}if(n<=t){return this}t=t>>>0;n=n===undefined?this.length:n>>>0;if(!r)r=0;var o;if(typeof r==="number"){for(o=t;o<n;++o){this[o]=r}}else{var u=internalIsBuffer(r)?r:utf8ToBytes(new Buffer(r,f).toString());var a=u.length;for(o=0;o<n-t;++o){this[o+t]=u[o%a]}}return this};var INVALID_BASE64_RE=/[^+\/0-9A-Za-z-_]/g;function base64clean(e){e=stringtrim(e).replace(INVALID_BASE64_RE,"");if(e.length<2)return"";while(e.length%4!==0){e=e+"="}return e}function stringtrim(e){if(e.trim)return e.trim();return e.replace(/^\s+|\s+$/g,"")}function toHex(e){if(e<16)return"0"+e.toString(16);return e.toString(16)}function utf8ToBytes(e,r){r=r||Infinity;var t;var n=e.length;var f=null;var i=[];for(var o=0;o<n;++o){t=e.charCodeAt(o);if(t>55295&&t<57344){if(!f){if(t>56319){if((r-=3)>-1)i.push(239,191,189);continue}else if(o+1===n){if((r-=3)>-1)i.push(239,191,189);continue}f=t;continue}if(t<56320){if((r-=3)>-1)i.push(239,191,189);f=t;continue}t=(f-55296<<10|t-56320)+65536}else if(f){if((r-=3)>-1)i.push(239,191,189)}f=null;if(t<128){if((r-=1)<0)break;i.push(t)}else if(t<2048){if((r-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else{throw new Error("Invalid code point")}}return i}function asciiToBytes(e){var r=[];for(var t=0;t<e.length;++t){r.push(e.charCodeAt(t)&255)}return r}function utf16leToBytes(e,r){var t,n,f;var i=[];for(var o=0;o<e.length;++o){if((r-=2)<0)break;t=e.charCodeAt(o);n=t>>8;f=t%256;i.push(f);i.push(n)}return i}function base64ToBytes(e){return toByteArray(base64clean(e))}function blitBuffer(e,r,t,n){for(var f=0;f<n;++f){if(f+t>=r.length||f>=e.length)break;r[f+t]=e[f]}return f}function isnan(e){return e!==e}function isBuffer(e){return e!=null&&(!!e._isBuffer||isFastBuffer(e)||isSlowBuffer(e))}function isFastBuffer(e){return!!e.constructor&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isSlowBuffer(e){return typeof e.readFloatLE==="function"&&typeof e.slice==="function"&&isFastBuffer(e.slice(0,0))}export{Buffer as B};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __assign=undefined&&undefined.__assign||function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r)}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return"\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@";function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}var VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t)}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s)}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value}))}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0)})),!t)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return[];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t})})),t++})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o})}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.slice(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return{original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t))}))}function reScope(e,t){var r=e.template.map((function(r){return"string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\.".concat(t),".".concat(r))}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t)}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t)})).observe(document.head,{childList:!0})}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(e){console.error(e)}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n)}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document))}("undefined"!=typeof window&&window);
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
(function(){var t=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function e(e){var n=t.has(e);e=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(e);return!n&&e}function n(t){var e=t.isConnected;if(void 0!==e)return e;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function o(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function i(t,e,n){n=void 0===n?new Set:n;for(var r=t;r;){if(r.nodeType===Node.ELEMENT_NODE){var a=r;e(a);var c=a.localName;if("link"===c&&"import"===a.getAttribute("rel")){r=a.import;if(r instanceof Node&&!n.has(r))for(n.add(r),r=r.firstChild;r;r=r.nextSibling)i(r,e,n);r=o(t,a);continue}else if("template"===c){r=o(t,a);continue}if(a=a.__CE_shadowRoot)for(a=a.firstChild;a;a=a.nextSibling)i(a,e,n)}r=r.firstChild?r.firstChild:o(t,r)}}function r(t,e,n){t[e]=n}function a(){this.a=new Map;this.g=new Map;this.c=[];this.f=[];this.b=!1}function c(t,e,n){t.a.set(e,n);t.g.set(n.constructorFunction,n)}function l(t,e){t.b=!0;t.c.push(e)}function s(t,e){t.b=!0;t.f.push(e)}function u(t,e){t.b&&i(e,(function(e){return f(t,e)}))}function f(t,e){if(t.b&&!e.__CE_patched){e.__CE_patched=!0;for(var n=0;n<t.c.length;n++)t.c[n](e);for(n=0;n<t.f.length;n++)t.f[n](e)}}function p(t,e){var n=[];i(e,(function(t){return n.push(t)}));for(e=0;e<n.length;e++){var o=n[e];1===o.__CE_state?t.connectedCallback(o):m(t,o)}}function h(t,e){var n=[];i(e,(function(t){return n.push(t)}));for(e=0;e<n.length;e++){var o=n[e];1===o.__CE_state&&t.disconnectedCallback(o)}}function d(t,e,n){n=void 0===n?{}:n;var o=n.u||new Set,r=n.i||function(e){return m(t,e)},a=[];i(e,(function(e){if("link"===e.localName&&"import"===e.getAttribute("rel")){var n=e.import;n instanceof Node&&(n.__CE_isImportDocument=!0,n.__CE_hasRegistry=!0);n&&"complete"===n.readyState?n.__CE_documentLoadHandled=!0:e.addEventListener("load",(function(){var n=e.import;if(!n.__CE_documentLoadHandled){n.__CE_documentLoadHandled=!0;var i=new Set(o);i.delete(n);d(t,n,{u:i,i:r})}}))}else a.push(e)}),o);if(t.b)for(e=0;e<a.length;e++)f(t,a[e]);for(e=0;e<a.length;e++)r(a[e])}function m(t,e){if(void 0===e.__CE_state){var o=e.ownerDocument;if(o.defaultView||o.__CE_isImportDocument&&o.__CE_hasRegistry)if(o=t.a.get(e.localName)){o.constructionStack.push(e);var i=o.constructorFunction;try{try{if(new i!==e)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{o.constructionStack.pop()}}catch(t){throw e.__CE_state=2,t}e.__CE_state=1;e.__CE_definition=o;if(o.attributeChangedCallback)for(o=o.observedAttributes,i=0;i<o.length;i++){var r=o[i],a=e.getAttribute(r);null!==a&&t.attributeChangedCallback(e,r,null,a,null)}n(e)&&t.connectedCallback(e)}}}a.prototype.connectedCallback=function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t)};a.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t)};a.prototype.attributeChangedCallback=function(t,e,n,o,i){var r=t.__CE_definition;r.attributeChangedCallback&&-1<r.observedAttributes.indexOf(e)&&r.attributeChangedCallback.call(t,e,n,o,i)};function y(t){var e=document;this.c=t;this.a=e;this.b=void 0;d(this.c,this.a);"loading"===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function b(t){t.b&&t.b.disconnect()}y.prototype.f=function(t){var e=this.a.readyState;"interactive"!==e&&"complete"!==e||b(this);for(e=0;e<t.length;e++)for(var n=t[e].addedNodes,o=0;o<n.length;o++)d(this.c,n[o])};function v(){var t=this;this.b=this.a=void 0;this.c=new Promise((function(e){t.b=e;t.a&&e(t.a)}))}function g(t){if(t.a)throw Error("Already resolved.");t.a=void 0;t.b&&t.b(void 0)}function w(t){this.c=!1;this.a=t;this.j=new Map;this.f=function(t){return t()};this.b=!1;this.g=[];this.o=new y(t)}w.prototype.l=function(t,n){var o=this;if(!(n instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!e(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.a.a.get(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var i=function(t){var e=r[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},r=n.prototype;if(!(r instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var a=i("connectedCallback");var l=i("disconnectedCallback");var s=i("adoptedCallback");var u=i("attributeChangedCallback");var f=n.observedAttributes||[]}catch(t){return}finally{this.c=!1}n={localName:t,constructorFunction:n,connectedCallback:a,disconnectedCallback:l,adoptedCallback:s,attributeChangedCallback:u,observedAttributes:f,constructionStack:[]};c(this.a,t,n);this.g.push(n);this.b||(this.b=!0,this.f((function(){return E(o)})))};w.prototype.i=function(t){d(this.a,t)};function E(t){if(!1!==t.b){t.b=!1;for(var e=t.g,n=[],o=new Map,i=0;i<e.length;i++)o.set(e[i].localName,[]);d(t.a,document,{i:function(e){if(void 0===e.__CE_state){var i=e.localName,r=o.get(i);r?r.push(e):t.a.a.get(i)&&n.push(e)}}});for(i=0;i<n.length;i++)m(t.a,n[i]);for(;0<e.length;){var r=e.shift();i=r.localName;r=o.get(r.localName);for(var a=0;a<r.length;a++)m(t.a,r[a]);(i=t.j.get(i))&&g(i)}}}w.prototype.get=function(t){if(t=this.a.a.get(t))return t.constructorFunction};w.prototype.m=function(t){if(!e(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var n=this.j.get(t);if(n)return n.c;n=new v;this.j.set(t,n);this.a.a.get(t)&&!this.g.some((function(e){return e.localName===t}))&&g(n);return n.c};w.prototype.s=function(t){b(this.o);var e=this.f;this.f=function(n){return t((function(){return e(n)}))}};window.CustomElementRegistry=w;w.prototype.define=w.prototype.l;w.prototype.upgrade=w.prototype.i;w.prototype.get=w.prototype.get;w.prototype.whenDefined=w.prototype.m;w.prototype.polyfillWrapFlushCallback=w.prototype.s;var _=window.Document.prototype.createElement,C=window.Document.prototype.createElementNS,N=window.Document.prototype.importNode,S=window.Document.prototype.prepend,T=window.Document.prototype.append,D=window.DocumentFragment.prototype.prepend,k=window.DocumentFragment.prototype.append,A=window.Node.prototype.cloneNode,O=window.Node.prototype.appendChild,j=window.Node.prototype.insertBefore,L=window.Node.prototype.removeChild,M=window.Node.prototype.replaceChild,x=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),H=window.Element.prototype.attachShadow,R=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),P=window.Element.prototype.getAttribute,F=window.Element.prototype.setAttribute,I=window.Element.prototype.removeAttribute,z=window.Element.prototype.getAttributeNS,U=window.Element.prototype.setAttributeNS,W=window.Element.prototype.removeAttributeNS,q=window.Element.prototype.insertAdjacentElement,B=window.Element.prototype.insertAdjacentHTML,$=window.Element.prototype.prepend,V=window.Element.prototype.append,X=window.Element.prototype.before,G=window.Element.prototype.after,J=window.Element.prototype.replaceWith,K=window.Element.prototype.remove,Q=window.HTMLElement,Y=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Z=window.HTMLElement.prototype.insertAdjacentElement,tt=window.HTMLElement.prototype.insertAdjacentHTML;var et=new function(){};function nt(){var t=st;window.HTMLElement=function(){function e(){var e=this.constructor,n=t.g.get(e);if(!n)throw Error("The custom element being constructed was not registered with `customElements`.");var o=n.constructionStack;if(0===o.length)return o=_.call(document,n.localName),Object.setPrototypeOf(o,e.prototype),o.__CE_state=1,o.__CE_definition=n,f(t,o),o;n=o.length-1;var i=o[n];if(i===et)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");o[n]=et;Object.setPrototypeOf(i,e.prototype);f(t,i);return i}e.prototype=Q.prototype;Object.defineProperty(e.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:e});return e}()}function ot(t,e,o){function i(e){return function(o){for(var i=[],r=0;r<arguments.length;++r)i[r]=arguments[r];r=[];for(var a=[],c=0;c<i.length;c++){var l=i[c];l instanceof Element&&n(l)&&a.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)r.push(l);else r.push(l)}e.apply(this,i);for(i=0;i<a.length;i++)h(t,a[i]);if(n(this))for(i=0;i<r.length;i++)a=r[i],a instanceof Element&&p(t,a)}}void 0!==o.h&&(e.prepend=i(o.h));void 0!==o.append&&(e.append=i(o.append))}function it(){var t=st;r(Document.prototype,"createElement",(function(e){if(this.__CE_hasRegistry){var n=t.a.get(e);if(n)return new n.constructorFunction}e=_.call(this,e);f(t,e);return e}));r(Document.prototype,"importNode",(function(e,n){e=N.call(this,e,!!n);this.__CE_hasRegistry?d(t,e):u(t,e);return e}));r(Document.prototype,"createElementNS",(function(e,n){if(this.__CE_hasRegistry&&(null===e||"http://www.w3.org/1999/xhtml"===e)){var o=t.a.get(n);if(o)return new o.constructorFunction}e=C.call(this,e,n);f(t,e);return e}));ot(t,Document.prototype,{h:S,append:T})}function rt(){function t(t,o){Object.defineProperty(t,"textContent",{enumerable:o.enumerable,configurable:!0,get:o.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)o.set.call(this,t);else{var i=void 0;if(this.firstChild){var r=this.childNodes,a=r.length;if(0<a&&n(this)){i=Array(a);for(var c=0;c<a;c++)i[c]=r[c]}}o.set.call(this,t);if(i)for(t=0;t<i.length;t++)h(e,i[t])}}})}var e=st;r(Node.prototype,"insertBefore",(function(t,o){if(t instanceof DocumentFragment){var i=Array.prototype.slice.apply(t.childNodes);t=j.call(this,t,o);if(n(this))for(o=0;o<i.length;o++)p(e,i[o]);return t}i=n(t);o=j.call(this,t,o);i&&h(e,t);n(this)&&p(e,t);return o}));r(Node.prototype,"appendChild",(function(t){if(t instanceof DocumentFragment){var o=Array.prototype.slice.apply(t.childNodes);t=O.call(this,t);if(n(this))for(var i=0;i<o.length;i++)p(e,o[i]);return t}o=n(t);i=O.call(this,t);o&&h(e,t);n(this)&&p(e,t);return i}));r(Node.prototype,"cloneNode",(function(t){t=A.call(this,!!t);this.ownerDocument.__CE_hasRegistry?d(e,t):u(e,t);return t}));r(Node.prototype,"removeChild",(function(t){var o=n(t),i=L.call(this,t);o&&h(e,t);return i}));r(Node.prototype,"replaceChild",(function(t,o){if(t instanceof DocumentFragment){var i=Array.prototype.slice.apply(t.childNodes);t=M.call(this,t,o);if(n(this))for(h(e,o),o=0;o<i.length;o++)p(e,i[o]);return t}i=n(t);var r=M.call(this,t,o),a=n(this);a&&h(e,o);i&&h(e,t);a&&p(e,t);return r}));x&&x.get?t(Node.prototype,x):l(e,(function(e){t(e,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++){var n=this.childNodes[e];n.nodeType!==Node.COMMENT_NODE&&t.push(n.textContent)}return t.join("")},set:function(t){for(;this.firstChild;)L.call(this,this.firstChild);null!=t&&""!==t&&O.call(this,document.createTextNode(t))}})}))}function at(t){function e(e){return function(o){for(var i=[],r=0;r<arguments.length;++r)i[r]=arguments[r];r=[];for(var a=[],c=0;c<i.length;c++){var l=i[c];l instanceof Element&&n(l)&&a.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)r.push(l);else r.push(l)}e.apply(this,i);for(i=0;i<a.length;i++)h(t,a[i]);if(n(this))for(i=0;i<r.length;i++)a=r[i],a instanceof Element&&p(t,a)}}var o=Element.prototype;void 0!==X&&(o.before=e(X));void 0!==X&&(o.after=e(G));void 0!==J&&r(o,"replaceWith",(function(e){for(var o=[],i=0;i<arguments.length;++i)o[i]=arguments[i];i=[];for(var r=[],a=0;a<o.length;a++){var c=o[a];c instanceof Element&&n(c)&&r.push(c);if(c instanceof DocumentFragment)for(c=c.firstChild;c;c=c.nextSibling)i.push(c);else i.push(c)}a=n(this);J.apply(this,o);for(o=0;o<r.length;o++)h(t,r[o]);if(a)for(h(t,this),o=0;o<i.length;o++)r=i[o],r instanceof Element&&p(t,r)}));void 0!==K&&r(o,"remove",(function(){var e=n(this);K.call(this);e&&h(t,this)}))}function ct(){function t(t,e){Object.defineProperty(t,"innerHTML",{enumerable:e.enumerable,configurable:!0,get:e.get,set:function(t){var o=this,r=void 0;n(this)&&(r=[],i(this,(function(t){t!==o&&r.push(t)})));e.set.call(this,t);if(r)for(var c=0;c<r.length;c++){var l=r[c];1===l.__CE_state&&a.disconnectedCallback(l)}this.ownerDocument.__CE_hasRegistry?d(a,this):u(a,this);return t}})}function e(t,e){r(t,"insertAdjacentElement",(function(t,o){var i=n(o);t=e.call(this,t,o);i&&h(a,o);n(t)&&p(a,o);return t}))}function o(t,e){function n(t,e){for(var n=[];t!==e;t=t.nextSibling)n.push(t);for(e=0;e<n.length;e++)d(a,n[e])}r(t,"insertAdjacentHTML",(function(t,o){t=t.toLowerCase();if("beforebegin"===t){var i=this.previousSibling;e.call(this,t,o);n(i||this.parentNode.firstChild,this)}else if("afterbegin"===t)i=this.firstChild,e.call(this,t,o),n(this.firstChild,i);else if("beforeend"===t)i=this.lastChild,e.call(this,t,o),n(i||this.firstChild,null);else if("afterend"===t)i=this.nextSibling,e.call(this,t,o),n(this.nextSibling,i);else throw new SyntaxError("The value provided ("+String(t)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.")}))}var a=st;H&&r(Element.prototype,"attachShadow",(function(t){t=H.call(this,t);var e=a;if(e.b&&!t.__CE_patched){t.__CE_patched=!0;for(var n=0;n<e.c.length;n++)e.c[n](t)}return this.__CE_shadowRoot=t}));R&&R.get?t(Element.prototype,R):Y&&Y.get?t(HTMLElement.prototype,Y):s(a,(function(e){t(e,{enumerable:!0,configurable:!0,get:function(){return A.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName,n=e?this.content:this,o=C.call(document,this.namespaceURI,this.localName);for(o.innerHTML=t;0<n.childNodes.length;)L.call(n,n.childNodes[0]);for(t=e?o.content:o;0<t.childNodes.length;)O.call(n,t.childNodes[0])}})}));r(Element.prototype,"setAttribute",(function(t,e){if(1!==this.__CE_state)return F.call(this,t,e);var n=P.call(this,t);F.call(this,t,e);e=P.call(this,t);a.attributeChangedCallback(this,t,n,e,null)}));r(Element.prototype,"setAttributeNS",(function(t,e,n){if(1!==this.__CE_state)return U.call(this,t,e,n);var o=z.call(this,t,e);U.call(this,t,e,n);n=z.call(this,t,e);a.attributeChangedCallback(this,e,o,n,t)}));r(Element.prototype,"removeAttribute",(function(t){if(1!==this.__CE_state)return I.call(this,t);var e=P.call(this,t);I.call(this,t);null!==e&&a.attributeChangedCallback(this,t,e,null,null)}));r(Element.prototype,"removeAttributeNS",(function(t,e){if(1!==this.__CE_state)return W.call(this,t,e);var n=z.call(this,t,e);W.call(this,t,e);var o=z.call(this,t,e);n!==o&&a.attributeChangedCallback(this,e,n,o,t)}));Z?e(HTMLElement.prototype,Z):q?e(Element.prototype,q):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");tt?o(HTMLElement.prototype,tt):B?o(Element.prototype,B):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched.");ot(a,Element.prototype,{h:$,append:V});at(a)}var lt=window.customElements;if(!lt||lt.forcePolyfill||"function"!=typeof lt.define||"function"!=typeof lt.get){var st=new a;nt();it();ot(st,DocumentFragment.prototype,{h:D,append:k});rt();ct();document.__CE_hasRegistry=!0;var ut=new w(st);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:ut})}}).call(self);"string"!==typeof document.baseURI&&Object.defineProperty(Document.prototype,"baseURI",{enumerable:!0,configurable:!0,get:function(){var t=document.querySelector("base");return t&&t.href?t.href:document.URL}});"function"!==typeof window.CustomEvent&&(window.CustomEvent=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail);return n},window.CustomEvent.prototype=window.Event.prototype);(function(t,e,n){t.composedPath||(t.composedPath=function(){if(this.path)return this.path;var t=this.target;for(this.path=[];null!==t.parentNode;)this.path.push(t),t=t.parentNode;this.path.push(e,n);return this.path})})(Event.prototype,document,window);
|
|
2
|
-
/*!
|
|
3
|
-
Element.closest and Element.matches
|
|
4
|
-
https://github.com/jonathantneal/closest
|
|
5
|
-
Creative Commons Zero v1.0 Universal
|
|
6
|
-
*/(function(t){"function"!==typeof t.matches&&(t.matches=t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||function(t){t=(this.document||this.ownerDocument).querySelectorAll(t);for(var e=0;t[e]&&t[e]!==this;)++e;return!!t[e]});"function"!==typeof t.closest&&(t.closest=function(t){for(var e=this;e&&1===e.nodeType;){if(e.matches(t))return e;e=e.parentNode}return null})})(window.Element.prototype);
|
|
7
|
-
/*!
|
|
8
|
-
Element.getRootNode()
|
|
9
|
-
*/(function(t){function e(t){t=n(t);return t&&11===t.nodeType?e(t.host):t}function n(t){return t&&t.parentNode?n(t.parentNode):t}"function"!==typeof t.getRootNode&&(t.getRootNode=function(t){return t&&t.composed?e(this):n(this)})})(Element.prototype);
|
|
10
|
-
/*!
|
|
11
|
-
Element.isConnected()
|
|
12
|
-
*/(function(t){"isConnected"in t||Object.defineProperty(t,"isConnected",{configurable:!0,enumerable:!0,get:function(){var t=this.getRootNode({composed:!0});return t&&9===t.nodeType}})})(Element.prototype);
|
|
13
|
-
/*!
|
|
14
|
-
Element.remove()
|
|
15
|
-
*/(function(t){t.forEach((function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}))})([Element.prototype,CharacterData.prototype,DocumentType.prototype]);
|
|
16
|
-
/*!
|
|
17
|
-
Element.classList
|
|
18
|
-
*/!function(t){"classList"in t||Object.defineProperty(t,"classList",{get:function(){var t=this,e=(t.getAttribute("class")||"").replace(/^\s+|\s$/g,"").split(/\s+/g);function n(){e.length>0?t.setAttribute("class",e.join(" ")):t.removeAttribute("class")}return""===e[0]&&e.splice(0,1),e.toggle=function(t,o){void 0!==o?o?e.add(t):e.remove(t):-1!==e.indexOf(t)?e.splice(e.indexOf(t),1):e.push(t),n()},e.add=function(){for(var t=[].slice.call(arguments),o=0,i=t.length;o<i;o++)-1===e.indexOf(t[o])&&e.push(t[o]);n()},e.remove=function(){for(var t=[].slice.call(arguments),o=0,i=t.length;o<i;o++)-1!==e.indexOf(t[o])&&e.splice(e.indexOf(t[o]),1);n()},e.item=function(t){return e[t]},e.contains=function(t){return-1!==e.indexOf(t)},e.replace=function(t,o){-1!==e.indexOf(t)&&e.splice(e.indexOf(t),1,o),n()},e.value=t.getAttribute("class")||"",e}})}(Element.prototype);
|
|
19
|
-
/*!
|
|
20
|
-
DOMTokenList
|
|
21
|
-
*/(function(t){try{document.body.classList.add()}catch(o){var e=t.add,n=t.remove;t.add=function(){for(var t=0;t<arguments.length;t++)e.call(this,arguments[t])};t.remove=function(){for(var t=0;t<arguments.length;t++)n.call(this,arguments[t])}}})(DOMTokenList.prototype);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./index-97ec070b.js";var top="top";var bottom="bottom";var right="right";var left="left";var auto="auto";var basePlacements=[top,bottom,right,left];var start="start";var end="end";var clippingParents="clippingParents";var viewport="viewport";var popper="popper";var reference="reference";var variationPlacements=basePlacements.reduce((function(e,t){return e.concat([t+"-"+start,t+"-"+end])}),[]);var placements=[].concat(basePlacements,[auto]).reduce((function(e,t){return e.concat([t,t+"-"+start,t+"-"+end])}),[]);var beforeRead="beforeRead";var read="read";var afterRead="afterRead";var beforeMain="beforeMain";var main="main";var afterMain="afterMain";var beforeWrite="beforeWrite";var write="write";var afterWrite="afterWrite";var modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getWindow(e){if(e==null){return window}if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t?t.defaultView||window:window}return e}function isElement(e){var t=getWindow(e).Element;return e instanceof t||e instanceof Element}function isHTMLElement(e){var t=getWindow(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function isShadowRoot(e){if(typeof ShadowRoot==="undefined"){return false}var t=getWindow(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function applyStyles(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{};var n=t.attributes[e]||{};var o=t.elements[e];if(!isHTMLElement(o)||!getNodeName(o)){return}Object.assign(o.style,r);Object.keys(n).forEach((function(e){var t=n[e];if(t===false){o.removeAttribute(e)}else{o.setAttribute(e,t===true?"":t)}}))}))}function effect$2(e){var t=e.state;var r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper);t.styles=r;if(t.elements.arrow){Object.assign(t.elements.arrow.style,r.arrow)}return function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e];var o=t.attributes[e]||{};var a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]);var i=a.reduce((function(e,t){e[t]="";return e}),{});if(!isHTMLElement(n)||!getNodeName(n)){return}Object.assign(n.style,i);Object.keys(o).forEach((function(e){n.removeAttribute(e)}))}))}}var applyStyles$1={name:"applyStyles",enabled:true,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(e){return e.split("-")[0]}var max=Math.max;var min=Math.min;var round=Math.round;function getBoundingClientRect(e,t){if(t===void 0){t=false}var r=e.getBoundingClientRect();var n=1;var o=1;if(isHTMLElement(e)&&t){var a=e.offsetHeight;var i=e.offsetWidth;if(i>0){n=round(r.width)/i||1}if(a>0){o=round(r.height)/a||1}}return{width:r.width/n,height:r.height/o,top:r.top/o,right:r.right/n,bottom:r.bottom/o,left:r.left/n,x:r.left/n,y:r.top/o}}function getLayoutRect(e){var t=getBoundingClientRect(e);var r=e.offsetWidth;var n=e.offsetHeight;if(Math.abs(t.width-r)<=1){r=t.width}if(Math.abs(t.height-n)<=1){n=t.height}return{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function contains(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t)){return true}else if(r&&isShadowRoot(r)){var n=t;do{if(n&&e.isSameNode(n)){return true}n=n.parentNode||n.host}while(n)}return false}function getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function isTableElement(e){return["table","td","th"].indexOf(getNodeName(e))>=0}function getDocumentElement(e){return((isElement(e)?e.ownerDocument:e.document)||window.document).documentElement}function getParentNode(e){if(getNodeName(e)==="html"){return e}return e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function getTrueOffsetParent(e){if(!isHTMLElement(e)||getComputedStyle(e).position==="fixed"){return null}return e.offsetParent}function getContainingBlock(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1;var r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&isHTMLElement(e)){var n=getComputedStyle(e);if(n.position==="fixed"){return null}}var o=getParentNode(e);if(isShadowRoot(o)){o=o.host}while(isHTMLElement(o)&&["html","body"].indexOf(getNodeName(o))<0){var a=getComputedStyle(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none"){return o}else{o=o.parentNode}}return null}function getOffsetParent(e){var t=getWindow(e);var r=getTrueOffsetParent(e);while(r&&isTableElement(r)&&getComputedStyle(r).position==="static"){r=getTrueOffsetParent(r)}if(r&&(getNodeName(r)==="html"||getNodeName(r)==="body"&&getComputedStyle(r).position==="static")){return t}return r||getContainingBlock(e)||t}function getMainAxisFromPlacement(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function within(e,t,r){return max(e,min(t,r))}function withinMaxClamp(e,t,r){var n=within(e,t,r);return n>r?r:n}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(e){return Object.assign({},getFreshSideObject(),e)}function expandToHashMap(e,t){return t.reduce((function(t,r){t[r]=e;return t}),{})}var toPaddingObject=function e(t,r){t=typeof t==="function"?t(Object.assign({},r.rects,{placement:r.placement})):t;return mergePaddingObject(typeof t!=="number"?t:expandToHashMap(t,basePlacements))};function arrow(e){var t;var r=e.state,n=e.name,o=e.options;var a=r.elements.arrow;var i=r.modifiersData.popperOffsets;var s=getBasePlacement(r.placement);var f=getMainAxisFromPlacement(s);var l=[left,right].indexOf(s)>=0;var c=l?"height":"width";if(!a||!i){return}var p=toPaddingObject(o.padding,r);var u=getLayoutRect(a);var d=f==="y"?top:left;var v=f==="y"?bottom:right;var m=r.rects.reference[c]+r.rects.reference[f]-i[f]-r.rects.popper[c];var g=i[f]-r.rects.reference[f];var h=getOffsetParent(a);var y=h?f==="y"?h.clientHeight||0:h.clientWidth||0:0;var b=m/2-g/2;var w=p[d];var O=y-u[c]-p[v];var x=y/2-u[c]/2+b;var E=within(w,x,O);var P=f;r.modifiersData[n]=(t={},t[P]=E,t.centerOffset=E-x,t)}function effect$1(e){var t=e.state,r=e.options;var n=r.element,o=n===void 0?"[data-popper-arrow]":n;if(o==null){return}if(typeof o==="string"){o=t.elements.popper.querySelector(o);if(!o){return}}if("development"!=="production"){if(!isHTMLElement(o)){console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))}}if(!contains(t.elements.popper,o)){if("development"!=="production"){console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "))}return}t.elements.arrow=o}var arrow$1={name:"arrow",enabled:true,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(e){return e.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(e){var t=e.x,r=e.y;var n=window;var o=n.devicePixelRatio||1;return{x:round(t*o)/o||0,y:round(r*o)/o||0}}function mapToStyles(e){var t;var r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,f=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,p=e.isFixed;var u=i.x,d=u===void 0?0:u,v=i.y,m=v===void 0?0:v;var g=typeof c==="function"?c({x:d,y:m}):{x:d,y:m};d=g.x;m=g.y;var h=i.hasOwnProperty("x");var y=i.hasOwnProperty("y");var b=left;var w=top;var O=window;if(l){var x=getOffsetParent(r);var E="clientHeight";var P="clientWidth";if(x===getWindow(r)){x=getDocumentElement(r);if(getComputedStyle(x).position!=="static"&&s==="absolute"){E="scrollHeight";P="scrollWidth"}}x=x;if(o===top||(o===left||o===right)&&a===end){w=bottom;var S=p&&x===O&&O.visualViewport?O.visualViewport.height:x[E];m-=S-n.height;m*=f?1:-1}if(o===left||(o===top||o===bottom)&&a===end){b=right;var R=p&&x===O&&O.visualViewport?O.visualViewport.width:x[P];d-=R-n.width;d*=f?1:-1}}var M=Object.assign({position:s},l&&unsetSides);var D=c===true?roundOffsetsByDPR({x:d,y:m}):{x:d,y:m};d=D.x;m=D.y;if(f){var T;return Object.assign({},M,(T={},T[w]=y?"0":"",T[b]=h?"0":"",T.transform=(O.devicePixelRatio||1)<=1?"translate("+d+"px, "+m+"px)":"translate3d("+d+"px, "+m+"px, 0)",T))}return Object.assign({},M,(t={},t[w]=y?m+"px":"",t[b]=h?d+"px":"",t.transform="",t))}function computeStyles(e){var t=e.state,r=e.options;var n=r.gpuAcceleration,o=n===void 0?true:n,a=r.adaptive,i=a===void 0?true:a,s=r.roundOffsets,f=s===void 0?true:s;if("development"!=="production"){var l=getComputedStyle(t.elements.popper).transitionProperty||"";if(i&&["transform","top","right","bottom","left"].some((function(e){return l.indexOf(e)>=0}))){console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}}var c={placement:getBasePlacement(t.placement),variation:getVariation(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};if(t.modifiersData.popperOffsets!=null){t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:f})))}if(t.modifiersData.arrow!=null){t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:f})))}t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var computeStyles$1={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:true};function effect(e){var t=e.state,r=e.instance,n=e.options;var o=n.scroll,a=o===void 0?true:o,i=n.resize,s=i===void 0?true:i;var f=getWindow(t.elements.popper);var l=[].concat(t.scrollParents.reference,t.scrollParents.popper);if(a){l.forEach((function(e){e.addEventListener("scroll",r.update,passive)}))}if(s){f.addEventListener("resize",r.update,passive)}return function(){if(a){l.forEach((function(e){e.removeEventListener("scroll",r.update,passive)}))}if(s){f.removeEventListener("resize",r.update,passive)}}}var eventListeners={name:"eventListeners",enabled:true,phase:"write",fn:function e(){},effect:effect,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(function(e){return hash$1[e]}))}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,(function(e){return hash[e]}))}function getWindowScroll(e){var t=getWindow(e);var r=t.pageXOffset;var n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getWindowScroll(e).scrollLeft}function getViewportRect(e){var t=getWindow(e);var r=getDocumentElement(e);var n=t.visualViewport;var o=r.clientWidth;var a=r.clientHeight;var i=0;var s=0;if(n){o=n.width;a=n.height;if(!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)){i=n.offsetLeft;s=n.offsetTop}}return{width:o,height:a,x:i+getWindowScrollBarX(e),y:s}}function getDocumentRect(e){var t;var r=getDocumentElement(e);var n=getWindowScroll(e);var o=(t=e.ownerDocument)==null?void 0:t.body;var a=max(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0);var i=max(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);var s=-n.scrollLeft+getWindowScrollBarX(e);var f=-n.scrollTop;if(getComputedStyle(o||r).direction==="rtl"){s+=max(r.clientWidth,o?o.clientWidth:0)-a}return{width:a,height:i,x:s,y:f}}function isScrollParent(e){var t=getComputedStyle(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function getScrollParent(e){if(["html","body","#document"].indexOf(getNodeName(e))>=0){return e.ownerDocument.body}if(isHTMLElement(e)&&isScrollParent(e)){return e}return getScrollParent(getParentNode(e))}function listScrollParents(e,t){var r;if(t===void 0){t=[]}var n=getScrollParent(e);var o=n===((r=e.ownerDocument)==null?void 0:r.body);var a=getWindow(n);var i=o?[a].concat(a.visualViewport||[],isScrollParent(n)?n:[]):n;var s=t.concat(i);return o?s:s.concat(listScrollParents(getParentNode(i)))}function rectToClientRect(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getInnerBoundingClientRect(e){var t=getBoundingClientRect(e);t.top=t.top+e.clientTop;t.left=t.left+e.clientLeft;t.bottom=t.top+e.clientHeight;t.right=t.left+e.clientWidth;t.width=e.clientWidth;t.height=e.clientHeight;t.x=t.left;t.y=t.top;return t}function getClientRectFromMixedType(e,t){return t===viewport?rectToClientRect(getViewportRect(e)):isElement(t)?getInnerBoundingClientRect(t):rectToClientRect(getDocumentRect(getDocumentElement(e)))}function getClippingParents(e){var t=listScrollParents(getParentNode(e));var r=["absolute","fixed"].indexOf(getComputedStyle(e).position)>=0;var n=r&&isHTMLElement(e)?getOffsetParent(e):e;if(!isElement(n)){return[]}return t.filter((function(e){return isElement(e)&&contains(e,n)&&getNodeName(e)!=="body"}))}function getClippingRect(e,t,r){var n=t==="clippingParents"?getClippingParents(e):[].concat(t);var o=[].concat(n,[r]);var a=o[0];var i=o.reduce((function(t,r){var n=getClientRectFromMixedType(e,r);t.top=max(n.top,t.top);t.right=min(n.right,t.right);t.bottom=min(n.bottom,t.bottom);t.left=max(n.left,t.left);return t}),getClientRectFromMixedType(e,a));i.width=i.right-i.left;i.height=i.bottom-i.top;i.x=i.left;i.y=i.top;return i}function computeOffsets(e){var t=e.reference,r=e.element,n=e.placement;var o=n?getBasePlacement(n):null;var a=n?getVariation(n):null;var i=t.x+t.width/2-r.width/2;var s=t.y+t.height/2-r.height/2;var f;switch(o){case top:f={x:i,y:t.y-r.height};break;case bottom:f={x:i,y:t.y+t.height};break;case right:f={x:t.x+t.width,y:s};break;case left:f={x:t.x-r.width,y:s};break;default:f={x:t.x,y:t.y}}var l=o?getMainAxisFromPlacement(o):null;if(l!=null){var c=l==="y"?"height":"width";switch(a){case start:f[l]=f[l]-(t[c]/2-r[c]/2);break;case end:f[l]=f[l]+(t[c]/2-r[c]/2);break;default:}}return f}function detectOverflow(e,t){if(t===void 0){t={}}var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.boundary,i=a===void 0?clippingParents:a,s=r.rootBoundary,f=s===void 0?viewport:s,l=r.elementContext,c=l===void 0?popper:l,p=r.altBoundary,u=p===void 0?false:p,d=r.padding,v=d===void 0?0:d;var m=mergePaddingObject(typeof v!=="number"?v:expandToHashMap(v,basePlacements));var g=c===popper?reference:popper;var h=e.rects.popper;var y=e.elements[u?g:c];var b=getClippingRect(isElement(y)?y:y.contextElement||getDocumentElement(e.elements.popper),i,f);var w=getBoundingClientRect(e.elements.reference);var O=computeOffsets({reference:w,element:h,strategy:"absolute",placement:o});var x=rectToClientRect(Object.assign({},h,O));var E=c===popper?x:w;var P={top:b.top-E.top+m.top,bottom:E.bottom-b.bottom+m.bottom,left:b.left-E.left+m.left,right:E.right-b.right+m.right};var S=e.modifiersData.offset;if(c===popper&&S){var R=S[o];Object.keys(P).forEach((function(e){var t=[right,bottom].indexOf(e)>=0?1:-1;var r=[top,bottom].indexOf(e)>=0?"y":"x";P[e]+=R[r]*t}))}return P}function computeAutoPlacement(e,t){if(t===void 0){t={}}var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,f=r.allowedAutoPlacements,l=f===void 0?placements:f;var c=getVariation(n);var p=c?s?variationPlacements:variationPlacements.filter((function(e){return getVariation(e)===c})):basePlacements;var u=p.filter((function(e){return l.indexOf(e)>=0}));if(u.length===0){u=p;if("development"!=="production"){console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" "))}}var d=u.reduce((function(t,r){t[r]=detectOverflow(e,{placement:r,boundary:o,rootBoundary:a,padding:i})[getBasePlacement(r)];return t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}function getExpandedFallbackPlacements(e){if(getBasePlacement(e)===auto){return[]}var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}function flip(e){var t=e.state,r=e.options,n=e.name;if(t.modifiersData[n]._skip){return}var o=r.mainAxis,a=o===void 0?true:o,i=r.altAxis,s=i===void 0?true:i,f=r.fallbackPlacements,l=r.padding,c=r.boundary,p=r.rootBoundary,u=r.altBoundary,d=r.flipVariations,v=d===void 0?true:d,m=r.allowedAutoPlacements;var g=t.options.placement;var h=getBasePlacement(g);var y=h===g;var b=f||(y||!v?[getOppositePlacement(g)]:getExpandedFallbackPlacements(g));var w=[g].concat(b).reduce((function(e,r){return e.concat(getBasePlacement(r)===auto?computeAutoPlacement(t,{placement:r,boundary:c,rootBoundary:p,padding:l,flipVariations:v,allowedAutoPlacements:m}):r)}),[]);var O=t.rects.reference;var x=t.rects.popper;var E=new Map;var P=true;var S=w[0];for(var R=0;R<w.length;R++){var M=w[R];var D=getBasePlacement(M);var T=getVariation(M)===start;var I=[top,bottom].indexOf(D)>=0;var L=I?"width":"height";var A=detectOverflow(t,{placement:M,boundary:c,rootBoundary:p,altBoundary:u,padding:l});var N=I?T?right:left:T?bottom:top;if(O[L]>x[L]){N=getOppositePlacement(N)}var C=getOppositePlacement(N);var j=[];if(a){j.push(A[D]<=0)}if(s){j.push(A[N]<=0,A[C]<=0)}if(j.every((function(e){return e}))){S=M;P=false;break}E.set(M,j)}if(P){var B=v?3:1;var W=function e(t){var r=w.find((function(e){var r=E.get(e);if(r){return r.slice(0,t).every((function(e){return e}))}}));if(r){S=r;return"break"}};for(var V=B;V>0;V--){var k=W(V);if(k==="break")break}}if(t.placement!==S){t.modifiersData[n]._skip=true;t.placement=S;t.reset=true}}var flip$1={name:"flip",enabled:true,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:false}};function getSideOffsets(e,t,r){if(r===void 0){r={x:0,y:0}}return{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function isAnySideFullyClipped(e){return[top,right,bottom,left].some((function(t){return e[t]>=0}))}function hide(e){var t=e.state,r=e.name;var n=t.rects.reference;var o=t.rects.popper;var a=t.modifiersData.preventOverflow;var i=detectOverflow(t,{elementContext:"reference"});var s=detectOverflow(t,{altBoundary:true});var f=getSideOffsets(i,n);var l=getSideOffsets(s,o,a);var c=isAnySideFullyClipped(f);var p=isAnySideFullyClipped(l);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:p};t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}var hide$1={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(e,t,r){var n=getBasePlacement(e);var o=[left,top].indexOf(n)>=0?-1:1;var a=typeof r==="function"?r(Object.assign({},t,{placement:e})):r,i=a[0],s=a[1];i=i||0;s=(s||0)*o;return[left,right].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function offset(e){var t=e.state,r=e.options,n=e.name;var o=r.offset,a=o===void 0?[0,0]:o;var i=placements.reduce((function(e,r){e[r]=distanceAndSkiddingToXY(r,t.rects,a);return e}),{});var s=i[t.placement],f=s.x,l=s.y;if(t.modifiersData.popperOffsets!=null){t.modifiersData.popperOffsets.x+=f;t.modifiersData.popperOffsets.y+=l}t.modifiersData[n]=i}var offset$1={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(e){var t=e.state,r=e.name;t.modifiersData[r]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var popperOffsets$1={name:"popperOffsets",enabled:true,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(e){return e==="x"?"y":"x"}function preventOverflow(e){var t=e.state,r=e.options,n=e.name;var o=r.mainAxis,a=o===void 0?true:o,i=r.altAxis,s=i===void 0?false:i,f=r.boundary,l=r.rootBoundary,c=r.altBoundary,p=r.padding,u=r.tether,d=u===void 0?true:u,v=r.tetherOffset,m=v===void 0?0:v;var g=detectOverflow(t,{boundary:f,rootBoundary:l,padding:p,altBoundary:c});var h=getBasePlacement(t.placement);var y=getVariation(t.placement);var b=!y;var w=getMainAxisFromPlacement(h);var O=getAltAxis(w);var x=t.modifiersData.popperOffsets;var E=t.rects.reference;var P=t.rects.popper;var S=typeof m==="function"?m(Object.assign({},t.rects,{placement:t.placement})):m;var R=typeof S==="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S);var M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null;var D={x:0,y:0};if(!x){return}if(a){var T;var I=w==="y"?top:left;var L=w==="y"?bottom:right;var A=w==="y"?"height":"width";var N=x[w];var C=N+g[I];var j=N-g[L];var B=d?-P[A]/2:0;var W=y===start?E[A]:P[A];var V=y===start?-P[A]:-E[A];var k=t.elements.arrow;var _=d&&k?getLayoutRect(k):{width:0,height:0};var H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:getFreshSideObject();var F=H[I];var $=H[L];var q=within(0,E[A],_[A]);var G=b?E[A]/2-B-q-F-R.mainAxis:W-q-F-R.mainAxis;var U=b?-E[A]/2+B+q+$+R.mainAxis:V+q+$+R.mainAxis;var X=t.elements.arrow&&getOffsetParent(t.elements.arrow);var Y=X?w==="y"?X.clientTop||0:X.clientLeft||0:0;var z=(T=M==null?void 0:M[w])!=null?T:0;var J=N+G-z-Y;var K=N+U-z;var Q=within(d?min(C,J):C,N,d?max(j,K):j);x[w]=Q;D[w]=Q-N}if(s){var Z;var ee=w==="x"?top:left;var te=w==="x"?bottom:right;var re=x[O];var ne=O==="y"?"height":"width";var oe=re+g[ee];var ae=re-g[te];var ie=[top,left].indexOf(h)!==-1;var se=(Z=M==null?void 0:M[O])!=null?Z:0;var fe=ie?oe:re-E[ne]-P[ne]-se+R.altAxis;var le=ie?re+E[ne]+P[ne]-se-R.altAxis:ae;var ce=d&&ie?withinMaxClamp(fe,re,le):within(d?fe:oe,re,d?le:ae);x[O]=ce;D[O]=ce-re}t.modifiersData[n]=D}var preventOverflow$1={name:"preventOverflow",enabled:true,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function getNodeScroll(e){if(e===getWindow(e)||!isHTMLElement(e)){return getWindowScroll(e)}else{return getHTMLElementScroll(e)}}function isElementScaled(e){var t=e.getBoundingClientRect();var r=round(t.width)/e.offsetWidth||1;var n=round(t.height)/e.offsetHeight||1;return r!==1||n!==1}function getCompositeRect(e,t,r){if(r===void 0){r=false}var n=isHTMLElement(t);var o=isHTMLElement(t)&&isElementScaled(t);var a=getDocumentElement(t);var i=getBoundingClientRect(e,o);var s={scrollLeft:0,scrollTop:0};var f={x:0,y:0};if(n||!n&&!r){if(getNodeName(t)!=="body"||isScrollParent(a)){s=getNodeScroll(t)}if(isHTMLElement(t)){f=getBoundingClientRect(t,true);f.x+=t.clientLeft;f.y+=t.clientTop}else if(a){f.x=getWindowScrollBarX(a)}}return{x:i.left+s.scrollLeft-f.x,y:i.top+s.scrollTop-f.y,width:i.width,height:i.height}}function order(e){var t=new Map;var r=new Set;var n=[];e.forEach((function(e){t.set(e.name,e)}));function o(e){r.add(e.name);var a=[].concat(e.requires||[],e.requiresIfExists||[]);a.forEach((function(e){if(!r.has(e)){var n=t.get(e);if(n){o(n)}}}));n.push(e)}e.forEach((function(e){if(!r.has(e.name)){o(e)}}));return n}function orderModifiers(e){var t=order(e);return modifierPhases.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}function debounce(e){var t;return function(){if(!t){t=new Promise((function(r){Promise.resolve().then((function(){t=undefined;r(e())}))}))}return t}}function format(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++){r[n-1]=arguments[n]}return[].concat(r).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var INVALID_MODIFIER_ERROR='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s';var MISSING_DEPENDENCY_ERROR='Popper: modifier "%s" requires "%s", but "%s" modifier is not available';var VALID_PROPERTIES=["name","enabled","phase","fn","effect","requires","options"];function validateModifiers(e){e.forEach((function(t){[].concat(Object.keys(t),VALID_PROPERTIES).filter((function(e,t,r){return r.indexOf(e)===t})).forEach((function(r){switch(r){case"name":if(typeof t.name!=="string"){console.error(format(INVALID_MODIFIER_ERROR,String(t.name),'"name"','"string"','"'+String(t.name)+'"'))}break;case"enabled":if(typeof t.enabled!=="boolean"){console.error(format(INVALID_MODIFIER_ERROR,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'))}break;case"phase":if(modifierPhases.indexOf(t.phase)<0){console.error(format(INVALID_MODIFIER_ERROR,t.name,'"phase"',"either "+modifierPhases.join(", "),'"'+String(t.phase)+'"'))}break;case"fn":if(typeof t.fn!=="function"){console.error(format(INVALID_MODIFIER_ERROR,t.name,'"fn"','"function"','"'+String(t.fn)+'"'))}break;case"effect":if(t.effect!=null&&typeof t.effect!=="function"){console.error(format(INVALID_MODIFIER_ERROR,t.name,'"effect"','"function"','"'+String(t.fn)+'"'))}break;case"requires":if(t.requires!=null&&!Array.isArray(t.requires)){console.error(format(INVALID_MODIFIER_ERROR,t.name,'"requires"','"array"','"'+String(t.requires)+'"'))}break;case"requiresIfExists":if(!Array.isArray(t.requiresIfExists)){console.error(format(INVALID_MODIFIER_ERROR,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'))}break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+VALID_PROPERTIES.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+r+'" was provided.')}t.requires&&t.requires.forEach((function(r){if(e.find((function(e){return e.name===r}))==null){console.error(format(MISSING_DEPENDENCY_ERROR,String(t.name),r,r))}}))}))}))}function uniqueBy(e,t){var r=new Set;return e.filter((function(e){var n=t(e);if(!r.has(n)){r.add(n);return true}}))}function mergeByName(e){var t=e.reduce((function(e,t){var r=e[t.name];e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t;return e}),{});return Object.keys(t).map((function(e){return t[e]}))}var INVALID_ELEMENT_ERROR="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.";var INFINITE_LOOP_ERROR="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.";var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}return!t.some((function(e){return!(e&&typeof e.getBoundingClientRect==="function")}))}function popperGenerator(e){if(e===void 0){e={}}var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?DEFAULT_OPTIONS:o;return function e(t,r,o){if(o===void 0){o=a}var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,a),modifiersData:{},elements:{reference:t,popper:r},attributes:{},styles:{}};var s=[];var f=false;var l={state:i,setOptions:function e(o){var s=typeof o==="function"?o(i.options):o;p();i.options=Object.assign({},a,i.options,s);i.scrollParents={reference:isElement(t)?listScrollParents(t):t.contextElement?listScrollParents(t.contextElement):[],popper:listScrollParents(r)};var f=orderModifiers(mergeByName([].concat(n,i.options.modifiers)));i.orderedModifiers=f.filter((function(e){return e.enabled}));if("development"!=="production"){var u=uniqueBy([].concat(f,i.options.modifiers),(function(e){var t=e.name;return t}));validateModifiers(u);if(getBasePlacement(i.options.placement)===auto){var d=i.orderedModifiers.find((function(e){var t=e.name;return t==="flip"}));if(!d){console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}}var v=getComputedStyle(r),m=v.marginTop,g=v.marginRight,h=v.marginBottom,y=v.marginLeft;if([m,g,h,y].some((function(e){return parseFloat(e)}))){console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}}c();return l.update()},forceUpdate:function e(){if(f){return}var t=i.elements,r=t.reference,n=t.popper;if(!areValidElements(r,n)){if("development"!=="production"){console.error(INVALID_ELEMENT_ERROR)}return}i.rects={reference:getCompositeRect(r,getOffsetParent(n),i.options.strategy==="fixed"),popper:getLayoutRect(n)};i.reset=false;i.placement=i.options.placement;i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));var o=0;for(var a=0;a<i.orderedModifiers.length;a++){if("development"!=="production"){o+=1;if(o>100){console.error(INFINITE_LOOP_ERROR);break}}if(i.reset===true){i.reset=false;a=-1;continue}var s=i.orderedModifiers[a],c=s.fn,p=s.options,u=p===void 0?{}:p,d=s.name;if(typeof c==="function"){i=c({state:i,options:u,name:d,instance:l})||i}}},update:debounce((function(){return new Promise((function(e){l.forceUpdate();e(i)}))})),destroy:function e(){p();f=true}};if(!areValidElements(t,r)){if("development"!=="production"){console.error(INVALID_ELEMENT_ERROR)}return l}l.setOptions(o).then((function(e){if(!f&&o.onFirstUpdate){o.onFirstUpdate(e)}}));function c(){i.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=r===void 0?{}:r,o=e.effect;if(typeof o==="function"){var a=o({state:i,name:t,instance:l,options:n});var f=function e(){};s.push(a||f)}}))}function p(){s.forEach((function(e){return e()}));s=[]}return l}}var createPopper$2=popperGenerator();var defaultModifiers$1=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1];var createPopper$1=popperGenerator({defaultModifiers:defaultModifiers$1});var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1];var createPopper=popperGenerator({defaultModifiers:defaultModifiers});export{createPopper as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var commonjsGlobal=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function createCommonjsModule(e,t,o){return o={path:t,exports:{},require:function(e,t){return commonjsRequire(e,t===undefined||t===null?o.path:t)}},e(o,o.exports),o.exports}function getDefaultExportFromNamespaceIfPresent(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function getDefaultExportFromNamespaceIfNotNamed(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")&&Object.keys(e).length===1?e["default"]:e}function getAugmentedNamespace(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:true});Object.keys(e).forEach((function(o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:true,get:function(){return e[o]}})}));return t}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var process_1=commonjsGlobal.process;export{commonjsGlobal as a,commonjsRequire as b,createCommonjsModule as c,getDefaultExportFromCjs as d,getAugmentedNamespace as g,process_1 as p};
|