gina 0.1.1-alpha.15 → 0.1.1-alpha.151
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/AUTHORS +2 -1
- package/README.md +170 -19
- package/bin/cli +129 -55
- package/bin/cli-debug +4 -4
- package/bin/cmd +40 -18
- package/bin/gina +40 -34
- package/{framework/v0.1.1-alpha.15/core/template/command/gina.bat.tpl → bin/gina.bat} +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/AUTHORS +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/LICENSE +0 -0
- package/framework/v0.1.1-alpha.151/VERSION +1 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/asset/html/nolayout.html +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/asset/html/static.html +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/asset/img/android-chrome-192x192.png +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/asset/img/android-chrome-512x512.png +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/asset/img/apple-touch-icon.png +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/asset/img/favicon-16x16.png +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/asset/img/favicon-32x32.png +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/asset/img/favicon.ico +0 -0
- package/framework/{v0.1.1-alpha.15/core/asset/js → v0.1.1-alpha.151/core/asset}/plugin/dist/gina.js +109 -106
- package/framework/{v0.1.1-alpha.15/core/asset/js → v0.1.1-alpha.151/core/asset}/plugin/dist/gina.js.map +0 -0
- package/framework/{v0.1.1-alpha.15/core/asset/js → v0.1.1-alpha.151/core/asset}/plugin/dist/gina.min.css +0 -0
- package/framework/{v0.1.1-alpha.15/core/asset/js → v0.1.1-alpha.151/core/asset}/plugin/dist/gina.min.css.map +0 -0
- package/framework/v0.1.1-alpha.151/core/asset/plugin/dist/gina.min.js +739 -0
- package/framework/v0.1.1-alpha.151/core/asset/plugin/dist/gina.min.js.map +8 -0
- package/framework/{v0.1.1-alpha.15/core/asset/js → v0.1.1-alpha.151/core/asset}/plugin/dist/gina.onload.min.js +0 -0
- package/framework/{v0.1.1-alpha.15/core/asset/js → v0.1.1-alpha.151/core/asset}/plugin/dist/gina.onload.min.js.map +0 -0
- package/framework/v0.1.1-alpha.151/core/asset/plugin/dist/toolbar/css/toolbar-min.css +1 -0
- package/framework/v0.1.1-alpha.151/core/asset/plugin/dist/toolbar/css/toolbar.css +3 -0
- package/framework/v0.1.1-alpha.151/core/asset/plugin/dist/toolbar/css/toolbar.css.map +1 -0
- package/framework/v0.1.1-alpha.151/core/asset/plugin/dist/toolbar/js/jquery-3.1.0.min.js +4 -0
- package/framework/v0.1.1-alpha.151/core/asset/plugin/dist/toolbar/main.js +1542 -0
- package/framework/v0.1.1-alpha.151/core/asset/plugin/dist/toolbar/toolbar.html +251 -0
- package/framework/{v0.1.1-alpha.15/core/asset/js → v0.1.1-alpha.151/core/asset}/plugin/readme.md +6 -6
- package/framework/{v0.1.1-alpha.15/core/asset/js → v0.1.1-alpha.151/core/asset}/plugin/uuid.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/config.js +28 -13
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/connectors/couchbase/index.js +310 -215
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/connectors/couchbase/lib/connector.js +6 -4
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/connectors/couchbase/lib/connector.v2.js +47 -47
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/connectors/couchbase/lib/connector.v3.js +0 -0
- package/framework/v0.1.1-alpha.151/core/connectors/couchbase/lib/connector.v4.js +377 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/connectors/couchbase/lib/n1ql.js +3 -2
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/connectors/couchbase/lib/session-store.js +6 -5
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/connectors/couchbase/lib/session-store.v2.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
- package/framework/v0.1.1-alpha.151/core/connectors/couchbase/lib/session-store.v4.js +362 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/controller/controller.framework.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/controller/controller.js +686 -675
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/controller/index.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/deps/busboy/.travis.yml +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/deps/busboy/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/deps/busboy/README.md +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/deps/busboy/deps/encoding/encoding-indexes.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/deps/busboy/deps/encoding/encoding.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/deps/busboy/lib/main.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/deps/busboy/lib/types/multipart.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/deps/busboy/lib/types/urlencoded.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/deps/busboy/lib/utils.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/deps/busboy/package.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/deps/swig-client/swig-2.0.0.min.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/dev/index.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/dev/lib/class.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/dev/lib/factory.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/dev/lib/tools.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/gna.js +2 -3
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/locales/README.md +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/locales/currency.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/locales/dist/language/en.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/locales/dist/language/fr.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/locales/dist/region/en.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/locales/dist/region/fr.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/locales/index.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/locales/src/make.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/locales/src/resources/currency.csv +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/locales/src/resources/region.csv +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/locales/src/resources/region.mapping.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/mime.types +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/model/entity.js +80 -60
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/model/index.js +4 -4
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/model/template/entityFactory.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/model/template/index.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/plugins/README.md +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/plugins/index.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/plugins/lib/file/README.md +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/plugins/lib/file/build.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/plugins/lib/file/package.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/plugins/lib/intl/README.md +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/plugins/lib/intl/build.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/plugins/lib/intl/package.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/plugins/lib/intl/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/plugins/lib/storage/README.md +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/plugins/lib/storage/build.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/plugins/lib/storage/package.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/plugins/lib/storage/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/plugins/lib/validator/README.md +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/plugins/lib/validator/build.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/plugins/lib/validator/package.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/plugins/lib/validator/src/form-validator.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/plugins/lib/validator/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/router.js +91 -78
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/server.express.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/server.isaac.js +117 -108
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/server.js +2 -1
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/status.codes +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/boilerplate/bundle/config/app.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/boilerplate/bundle/config/routing.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/boilerplate/bundle/config/settings.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/boilerplate/bundle/config/templates.json +4 -4
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/boilerplate/bundle/index.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/boilerplate/bundle_public/css/default.css +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/boilerplate/bundle_public/readme.md +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
- package/framework/v0.1.1-alpha.151/core/template/boilerplate/bundle_templates/html/content/homepage.html +8 -0
- package/framework/v0.1.1-alpha.151/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +11 -0
- package/framework/v0.1.1-alpha.151/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +8 -0
- package/framework/{v0.1.1-alpha.15/core/template/boilerplate/bundle_templates/html/layout → v0.1.1-alpha.151/core/template/boilerplate/bundle_templates/html/layouts}/main.html +10 -3
- package/framework/v0.1.1-alpha.151/core/template/command/gina.bat.tpl +8 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/command/gina.tpl +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/conf/env.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/conf/manifest.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/conf/package.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/conf/settings.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/conf/statics.json +3 -3
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/conf/templates.json +2 -2
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/error/client/json/401.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/error/client/json/403.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/error/client/json/404.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/error/server/html/50x.html +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/error/server/json/500.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/error/server/json/503.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/core/template/extensions/logger/config.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/helpers/console.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/helpers/context.js +144 -4
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/helpers/dateFormat.js +3 -1
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/helpers/index.js +9 -4
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/helpers/json/README.md +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/helpers/json/package.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/helpers/json/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/helpers/path.js +142 -88
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/helpers/plugins/README.md +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/helpers/plugins/package.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/helpers/plugins/src/api-error.js +23 -23
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/helpers/plugins/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/helpers/prototypes.js +35 -36
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/helpers/task.js +21 -14
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/helpers/text.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/archiver/README.md +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/archiver/build.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/archiver/package.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/archiver/src/dep/jszip.min.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/archiver/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/aliases.json +4 -1
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/bundle/add.js +43 -17
- package/framework/v0.1.1-alpha.151/lib/cmd/bundle/arguments.json +6 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/bundle/copy.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/bundle/cp.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/bundle/help.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/bundle/help.txt +2 -2
- package/framework/v0.1.1-alpha.151/lib/cmd/bundle/list.js +176 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/bundle/remove.js +22 -22
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/bundle/rename.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/bundle/restart.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/bundle/rm.js +0 -0
- package/framework/v0.1.1-alpha.151/lib/cmd/bundle/start.js +420 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/bundle/status.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/bundle/stop.js +93 -74
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/env/add.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/env/get.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/env/help.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/env/help.txt +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/env/link-dev.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/env/list.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/env/remove.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/env/rm.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/env/set.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/env/unset.js +0 -0
- package/framework/{v0.1.1-alpha.15/lib/cmd/scope → v0.1.1-alpha.151/lib/cmd/env}/use.js +21 -1
- package/framework/v0.1.1-alpha.151/lib/cmd/framework/build.js +85 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/framework/dot.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/framework/get.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/framework/help.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/framework/help.txt +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/framework/init.js +70 -16
- package/framework/v0.1.1-alpha.151/lib/cmd/framework/link-node-modules.js +86 -0
- package/framework/v0.1.1-alpha.151/lib/cmd/framework/link.js +94 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/framework/msg.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/framework/open.js +15 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/framework/restart.js +53 -25
- package/framework/v0.1.1-alpha.151/lib/cmd/framework/set.js +264 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/framework/start.js +35 -12
- package/framework/v0.1.1-alpha.151/lib/cmd/framework/status.js +138 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/framework/stop.js +44 -28
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/framework/tail.js +113 -61
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/framework/update.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/framework/version.js +12 -3
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/gina-dev.1.md +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/gina-framework.1.md +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/gina.1.md +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/helper.js +74 -5
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/index.js +21 -21
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/msg.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/port/help.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/port/help.txt +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/port/inc/scan.js +32 -17
- package/framework/v0.1.1-alpha.151/lib/cmd/port/list.js +446 -0
- package/framework/v0.1.1-alpha.151/lib/cmd/port/reset.js +426 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/port/set.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/project/add.js +145 -121
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/project/arguments.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/project/build.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/project/help.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/project/help.txt +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/project/import.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/project/list.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/project/move.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/project/remove.js +17 -17
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/project/rename.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/project/restart.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/project/rm.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/project/start.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/project/status.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/project/stop.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/protocol/help.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/protocol/help.txt +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/protocol/list.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/protocol/set.js +239 -201
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/scope/help.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/scope/help.txt +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/scope/link-local.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/scope/list.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/scope/remove.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/scope/rm.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/scope/set.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/scope/unset.js +0 -0
- package/framework/{v0.1.1-alpha.15/lib/cmd/env → v0.1.1-alpha.151/lib/cmd/scope}/use.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cmd/view/add.js +34 -9
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/collection/README.md +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/collection/build.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/collection/package.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/collection/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/config.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cron/README.md +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cron/package.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/cron/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/generator/index.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/index.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/inherits/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/inherits/README.md +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/inherits/example/inheriting_eventemitter.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/inherits/example/protected_inheritance.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/inherits/example/simple_inheritance.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/inherits/example/super_attribute_overridden_by_child_on_init.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/inherits/package.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/inherits/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/logger/README.md +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/logger/package.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/logger/src/containers/default/index.js +13 -2
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/logger/src/containers/file/index.js +105 -14
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/logger/src/containers/file/lib/logrotator/README.md +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/logger/src/containers/file/lib/logrotator/index.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/logger/src/containers/mq/index.js +2 -1
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/logger/src/containers/mq/listener.js +16 -14
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/logger/src/containers/mq/speaker.js +32 -3
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/logger/src/helper.js +19 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/logger/src/main.js +4 -1
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/math/index.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/merge/README.md +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/merge/example/merge.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/merge/example/merge_2_literal objects.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/merge/example/merge_and_preserve_first.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/merge/package.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/merge/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/model.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/proc.js +69 -45
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/routing/README.md +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/routing/build.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/routing/package.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/routing/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/session-store.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/shell.js +3 -3
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/swig-filters/README.md +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/swig-filters/package.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/swig-filters/src/main.js +54 -51
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/url/README.md +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/url/index.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/url/mocks.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/url/routing.json +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/url/test.js +0 -0
- package/framework/{v0.1.1-alpha.15 → v0.1.1-alpha.151}/lib/validator.js +0 -0
- package/framework/v0.1.1-alpha.151/package.json +14 -0
- package/package.json +30 -21
- package/resources/home/main.json +19 -1
- package/resources/home/settings.json +5 -0
- package/resources/home/user/extensions/logger/default/config.json +1 -1
- package/resources/package.json.template +28 -17
- package/script/post_install.js +404 -120
- package/script/post_publish.js +185 -0
- package/script/pre_install.js +424 -76
- package/script/prepare_version.js +151 -21
- package/utils/helper.js +230 -44
- package/utils/prototypes.js +9 -9
- package/utils/prototypes.json_clone.js +31 -31
- package/doc/framework/cli/doc.json +0 -9
- package/doc/framework/index.md +0 -60
- package/framework/v0.1.1-alpha.15/VERSION +0 -1
- package/framework/v0.1.1-alpha.15/core/asset/js/plugin/dist/gina.min.js +0 -736
- package/framework/v0.1.1-alpha.15/core/asset/js/plugin/dist/gina.min.js.map +0 -56
- package/framework/v0.1.1-alpha.15/core/template/boilerplate/bundle_templates/html/homepage.html +0 -4
- package/framework/v0.1.1-alpha.15/lib/cmd/bundle/arguments.json +0 -4
- package/framework/v0.1.1-alpha.15/lib/cmd/bundle/list.js +0 -129
- package/framework/v0.1.1-alpha.15/lib/cmd/bundle/start.js +0 -394
- package/framework/v0.1.1-alpha.15/lib/cmd/framework/set.js +0 -161
- package/framework/v0.1.1-alpha.15/lib/cmd/framework/status.js +0 -72
- package/framework/v0.1.1-alpha.15/lib/cmd/port/list.js +0 -176
- package/framework/v0.1.1-alpha.15/package.json +0 -14
package/framework/{v0.1.1-alpha.15/core/asset/js → v0.1.1-alpha.151/core/asset}/plugin/dist/gina.js
RENAMED
|
@@ -3585,16 +3585,16 @@ function on(event, cb) {
|
|
|
3585
3585
|
define("utils/events", function(){});
|
|
3586
3586
|
|
|
3587
3587
|
function PrototypesHelper(instance) {
|
|
3588
|
-
|
|
3588
|
+
|
|
3589
3589
|
var isGFFCtx = ( ( typeof(module) !== 'undefined' ) && module.exports ) ? false : true;
|
|
3590
|
-
|
|
3590
|
+
|
|
3591
3591
|
var local = instance || null;
|
|
3592
3592
|
var envVars = null;
|
|
3593
3593
|
// since for some cases we cannot use gina envVars directly
|
|
3594
|
-
if (
|
|
3594
|
+
if (
|
|
3595
3595
|
typeof(GINA_DIR) == 'undefined'
|
|
3596
3596
|
&& !isGFFCtx
|
|
3597
|
-
&& typeof(process) != 'undefined'
|
|
3597
|
+
&& typeof(process) != 'undefined'
|
|
3598
3598
|
&& process.argv.length > 3
|
|
3599
3599
|
) {
|
|
3600
3600
|
if ( /^\{/.test(process.argv[2]) ) {
|
|
@@ -3606,27 +3606,27 @@ function PrototypesHelper(instance) {
|
|
|
3606
3606
|
var envVarFile = process.argv[2].split(/\-\-argv\-filename\=/)[1];
|
|
3607
3607
|
envVars = JSON.parse(fs.readFileSync(envVarFile).toString()).envVars;
|
|
3608
3608
|
}
|
|
3609
|
-
|
|
3609
|
+
|
|
3610
3610
|
}
|
|
3611
3611
|
// else if (isGFFCtx) {
|
|
3612
3612
|
// envVars = window;
|
|
3613
3613
|
// }
|
|
3614
|
-
|
|
3615
|
-
|
|
3614
|
+
|
|
3615
|
+
|
|
3616
3616
|
// dateFormat proto
|
|
3617
3617
|
if ( local && typeof(local) != 'undefined' && typeof(local.dateFormat) != 'undefined' ) {
|
|
3618
3618
|
for (let method in local.dateFormat) {
|
|
3619
|
-
|
|
3619
|
+
|
|
3620
3620
|
if ( typeof(Date[method]) != 'undefined' )
|
|
3621
3621
|
continue;
|
|
3622
|
-
|
|
3622
|
+
|
|
3623
3623
|
Object.defineProperty( Date.prototype, method, {
|
|
3624
3624
|
writable: false,
|
|
3625
3625
|
enumerable: false,
|
|
3626
3626
|
//If loaded several times, it can lead to an exception. That's why I put this.
|
|
3627
3627
|
configurable: true,
|
|
3628
|
-
value: function() {
|
|
3629
|
-
|
|
3628
|
+
value: function() {
|
|
3629
|
+
|
|
3630
3630
|
var newArgs = { 0: this }, i = 1;
|
|
3631
3631
|
for (var a in arguments) {
|
|
3632
3632
|
newArgs[i] = arguments[a];
|
|
@@ -3635,18 +3635,20 @@ function PrototypesHelper(instance) {
|
|
|
3635
3635
|
newArgs.length = i;
|
|
3636
3636
|
// don't touch this, we need the name
|
|
3637
3637
|
const name = method;
|
|
3638
|
-
|
|
3638
|
+
|
|
3639
3639
|
return local.dateFormat[name].apply(this, newArgs );
|
|
3640
3640
|
}
|
|
3641
3641
|
});
|
|
3642
|
-
|
|
3642
|
+
|
|
3643
3643
|
}
|
|
3644
3644
|
}
|
|
3645
3645
|
|
|
3646
|
+
|
|
3647
|
+
|
|
3646
3648
|
if ( typeof(Array.clone) == 'undefined' ) {
|
|
3647
3649
|
/**
|
|
3648
3650
|
* clone array
|
|
3649
|
-
*
|
|
3651
|
+
*
|
|
3650
3652
|
* @returns {array} Return cloned array
|
|
3651
3653
|
* @supress {misplacedTypeAnnotation}
|
|
3652
3654
|
**/
|
|
@@ -3658,27 +3660,27 @@ function PrototypesHelper(instance) {
|
|
|
3658
3660
|
value: function(){ return this.slice(0); }
|
|
3659
3661
|
});
|
|
3660
3662
|
}
|
|
3661
|
-
|
|
3663
|
+
|
|
3662
3664
|
if ( typeof(JSON.clone) == 'undefined' && !isGFFCtx ) {
|
|
3663
3665
|
if ( typeof(envVars) != 'undefined' ) {
|
|
3664
3666
|
JSON.clone = require( envVars.GINA_DIR +'/utils/prototypes.json_clone');
|
|
3665
3667
|
} else {
|
|
3666
3668
|
JSON.clone = require( GINA_DIR +'/utils/prototypes.json_clone');
|
|
3667
|
-
}
|
|
3669
|
+
}
|
|
3668
3670
|
}
|
|
3669
|
-
|
|
3671
|
+
|
|
3670
3672
|
if ( typeof(JSON.escape) == 'undefined' ) {
|
|
3671
3673
|
/**
|
|
3672
3674
|
* JSON.escape
|
|
3673
3675
|
* Escape special characters
|
|
3674
|
-
*
|
|
3675
|
-
* Changes made here must be reflected in:
|
|
3676
|
+
*
|
|
3677
|
+
* Changes made here must be reflected in:
|
|
3676
3678
|
* - gina/utils/prototypes.js
|
|
3677
3679
|
* - gina/framework/version/helpers/prototypes.js
|
|
3678
|
-
* - gina/framework/version/core/asset/
|
|
3679
|
-
*
|
|
3680
|
+
* - gina/framework/version/core/asset/plugin/src/gina/utils/polyfill.js
|
|
3681
|
+
*
|
|
3680
3682
|
* @param {object} jsonStr
|
|
3681
|
-
*
|
|
3683
|
+
*
|
|
3682
3684
|
* @returns {object} escaped JSON string
|
|
3683
3685
|
**/
|
|
3684
3686
|
var escape = function(jsonStr){
|
|
@@ -3688,14 +3690,14 @@ function PrototypesHelper(instance) {
|
|
|
3688
3690
|
.replace(/\r/g, "\\r")
|
|
3689
3691
|
.replace(/\t/g, "\\t")
|
|
3690
3692
|
;
|
|
3691
|
-
} catch (err) {
|
|
3693
|
+
} catch (err) {
|
|
3692
3694
|
throw err;
|
|
3693
3695
|
}
|
|
3694
3696
|
};
|
|
3695
|
-
|
|
3697
|
+
|
|
3696
3698
|
JSON.escape = escape;
|
|
3697
3699
|
}
|
|
3698
|
-
|
|
3700
|
+
|
|
3699
3701
|
|
|
3700
3702
|
if ( typeof(Array.toString) == 'undefined' ) {
|
|
3701
3703
|
Array.prototype.toString = function(){
|
|
@@ -3712,7 +3714,7 @@ function PrototypesHelper(instance) {
|
|
|
3712
3714
|
value: function(o){ return this.indexOf(o)!=-1 }
|
|
3713
3715
|
});
|
|
3714
3716
|
}
|
|
3715
|
-
|
|
3717
|
+
|
|
3716
3718
|
if ( typeof(Array.from) == 'undefined' ) { // if not under ES6
|
|
3717
3719
|
|
|
3718
3720
|
Object.defineProperty( Array.prototype, 'from', {
|
|
@@ -3738,7 +3740,7 @@ function PrototypesHelper(instance) {
|
|
|
3738
3740
|
}
|
|
3739
3741
|
});
|
|
3740
3742
|
}
|
|
3741
|
-
|
|
3743
|
+
|
|
3742
3744
|
if ( typeof(Object.count) == 'undefined' ) {
|
|
3743
3745
|
Object.defineProperty( Object.prototype, 'count', {
|
|
3744
3746
|
writable: true,
|
|
@@ -3750,7 +3752,7 @@ function PrototypesHelper(instance) {
|
|
|
3750
3752
|
try {
|
|
3751
3753
|
var self = this;
|
|
3752
3754
|
if (this instanceof String) self = JSON.parse(this);
|
|
3753
|
-
|
|
3755
|
+
|
|
3754
3756
|
for (var prop in this)
|
|
3755
3757
|
if (this.hasOwnProperty(prop)) ++i;
|
|
3756
3758
|
|
|
@@ -3761,10 +3763,10 @@ function PrototypesHelper(instance) {
|
|
|
3761
3763
|
|
|
3762
3764
|
}
|
|
3763
3765
|
});
|
|
3764
|
-
}
|
|
3766
|
+
}
|
|
3767
|
+
|
|
3768
|
+
|
|
3765
3769
|
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
3770
|
if ( typeof(global) != 'undefined' && typeof(global.__stack) == 'undefined' ) {
|
|
3769
3771
|
/**
|
|
3770
3772
|
* __stack Get current stack
|
|
@@ -3788,8 +3790,8 @@ function PrototypesHelper(instance) {
|
|
|
3788
3790
|
}
|
|
3789
3791
|
});
|
|
3790
3792
|
}
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
+
|
|
3794
|
+
|
|
3793
3795
|
}
|
|
3794
3796
|
|
|
3795
3797
|
if ( ( typeof(module) !== 'undefined' ) && module.exports ) {
|
|
@@ -3799,7 +3801,7 @@ if ( ( typeof(module) !== 'undefined' ) && module.exports ) {
|
|
|
3799
3801
|
// Publish as AMD module
|
|
3800
3802
|
define( 'helpers/prototypes',[],function() { return PrototypesHelper })
|
|
3801
3803
|
}
|
|
3802
|
-
|
|
3804
|
+
;
|
|
3803
3805
|
/*
|
|
3804
3806
|
* This file is part of the gina package.
|
|
3805
3807
|
* Copyright (c) 2009-2022 Rhinostone <contact@gina.io>
|
|
@@ -3810,9 +3812,9 @@ if ( ( typeof(module) !== 'undefined' ) && module.exports ) {
|
|
|
3810
3812
|
/**
|
|
3811
3813
|
* Credits & thanks to Steven Levithan :)
|
|
3812
3814
|
* http://blog.stevenlevithan.com/archives/date-time-format
|
|
3813
|
-
*
|
|
3814
|
-
*
|
|
3815
|
-
*
|
|
3815
|
+
*
|
|
3816
|
+
*
|
|
3817
|
+
*
|
|
3816
3818
|
* Original Copyrights
|
|
3817
3819
|
* Date Format 1.2.3
|
|
3818
3820
|
* (c) 2007-2009 Steven Levithan <stevenlevithan.com>
|
|
@@ -3830,15 +3832,15 @@ if ( ( typeof(module) !== 'undefined' ) && module.exports ) {
|
|
|
3830
3832
|
* @param {string} mask
|
|
3831
3833
|
*/
|
|
3832
3834
|
function DateFormatHelper() {
|
|
3833
|
-
|
|
3835
|
+
|
|
3834
3836
|
var isGFFCtx = ( ( typeof(module) !== 'undefined' ) && module.exports ) ? false : true;
|
|
3835
3837
|
var merge = (isGFFCtx) ? require('utils/merge') : require('./../lib/merge');
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
+
|
|
3839
|
+
|
|
3838
3840
|
// if ( typeof(define) === 'function' && define.amd ) {
|
|
3839
3841
|
// var Date = this.Date;
|
|
3840
3842
|
// }
|
|
3841
|
-
|
|
3843
|
+
|
|
3842
3844
|
var self = {};
|
|
3843
3845
|
// language-country
|
|
3844
3846
|
self.culture = 'en-US'; // by default
|
|
@@ -3854,7 +3856,7 @@ function DateFormatHelper() {
|
|
|
3854
3856
|
fullDate: "dddd, mmmm d, yyyy",
|
|
3855
3857
|
// common
|
|
3856
3858
|
cookieDate: "GMT:ddd, dd mmm yyyy HH:MM:ss",
|
|
3857
|
-
logger: "
|
|
3859
|
+
logger: "yyyy mmm dd HH:MM:ss",
|
|
3858
3860
|
shortTime: "h:MM TT",
|
|
3859
3861
|
shortTime2: "h:MM",
|
|
3860
3862
|
mediumTime: "h:MM:ss TT",
|
|
@@ -3867,9 +3869,10 @@ function DateFormatHelper() {
|
|
|
3867
3869
|
shortIsoTime: "HH:MM",
|
|
3868
3870
|
longIsoTime: "HH:MM:ss TT",
|
|
3869
3871
|
isoDateTime: "yyyy-mm-dd'T'HH:MM:ss",
|
|
3872
|
+
longIsoDateTime: "yyyy-mm-dd'T'HH:MM:ss.L",
|
|
3870
3873
|
isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"
|
|
3871
3874
|
};
|
|
3872
|
-
|
|
3875
|
+
|
|
3873
3876
|
self.i18n = {
|
|
3874
3877
|
'en': {
|
|
3875
3878
|
dayNames: [
|
|
@@ -3908,10 +3911,10 @@ function DateFormatHelper() {
|
|
|
3908
3911
|
}
|
|
3909
3912
|
}
|
|
3910
3913
|
};
|
|
3911
|
-
|
|
3914
|
+
|
|
3912
3915
|
/**
|
|
3913
|
-
*
|
|
3914
|
-
* @param {string} culture (5 chars) | lang (2 chars)
|
|
3916
|
+
*
|
|
3917
|
+
* @param {string} culture (5 chars) | lang (2 chars)
|
|
3915
3918
|
*/
|
|
3916
3919
|
var setCulture = function(date, culture) {
|
|
3917
3920
|
if (/\-/.test(culture) ) {
|
|
@@ -3919,24 +3922,24 @@ function DateFormatHelper() {
|
|
|
3919
3922
|
self.lang = culture.split(/\-/)[0];
|
|
3920
3923
|
} else {
|
|
3921
3924
|
self.lang = culture
|
|
3922
|
-
}
|
|
3923
|
-
|
|
3925
|
+
}
|
|
3926
|
+
|
|
3924
3927
|
return this
|
|
3925
3928
|
}
|
|
3926
3929
|
|
|
3927
3930
|
var format = function(date, mask, utc) {
|
|
3928
|
-
|
|
3931
|
+
|
|
3929
3932
|
// if ( typeof(merge) == 'undefined' || !merge ) {
|
|
3930
3933
|
// merge = (isGFFCtx) ? require('utils/merge') : require('./../lib/merge');
|
|
3931
|
-
|
|
3934
|
+
|
|
3932
3935
|
// }
|
|
3933
|
-
|
|
3936
|
+
|
|
3934
3937
|
var dF = self
|
|
3935
3938
|
, i18n = dF.i18n[dF.lang] || dF.i18n['en']
|
|
3936
3939
|
//, masksList = merge(i18n.masks, dF.masks)
|
|
3937
3940
|
, masksList = null
|
|
3938
3941
|
;
|
|
3939
|
-
|
|
3942
|
+
|
|
3940
3943
|
try {
|
|
3941
3944
|
masksList = merge(i18n.masks, dF.masks);
|
|
3942
3945
|
} catch( mergeErr) {
|
|
@@ -3945,7 +3948,7 @@ function DateFormatHelper() {
|
|
|
3945
3948
|
merge = (isGFFCtx) ? require('utils/merge') : require('./../lib/merge');
|
|
3946
3949
|
masksList = merge(i18n.masks, dF.masks);
|
|
3947
3950
|
}
|
|
3948
|
-
|
|
3951
|
+
|
|
3949
3952
|
if ( typeof(dF.i18n[dF.culture]) != 'undefined' ) {
|
|
3950
3953
|
i18n = dF.i18n[dF.culture];
|
|
3951
3954
|
if ( typeof(dF.i18n[dF.culture].mask) != 'undefined' ) {
|
|
@@ -4011,7 +4014,8 @@ function DateFormatHelper() {
|
|
|
4011
4014
|
s: s,
|
|
4012
4015
|
ss: pad(s),
|
|
4013
4016
|
l: pad(L, 3),
|
|
4014
|
-
L: pad(L > 99 ? Math.round(L / 10) : L),
|
|
4017
|
+
// L: pad(L > 99 ? Math.round(L / 10) : L),
|
|
4018
|
+
L: pad(L),
|
|
4015
4019
|
t: H < 12 ? "a" : "p",
|
|
4016
4020
|
tt: H < 12 ? "am" : "pm",
|
|
4017
4021
|
T: H < 12 ? "A" : "P",
|
|
@@ -4126,25 +4130,25 @@ function DateFormatHelper() {
|
|
|
4126
4130
|
}
|
|
4127
4131
|
return days;
|
|
4128
4132
|
}
|
|
4129
|
-
|
|
4130
|
-
|
|
4133
|
+
|
|
4134
|
+
|
|
4131
4135
|
/**
|
|
4132
4136
|
* getQuarter
|
|
4133
4137
|
* Get quarter number
|
|
4134
4138
|
* To test : https://planetcalc.com/1252/
|
|
4135
4139
|
* Based on fiscal year- See.: https://en.wikipedia.org/wiki/Fiscal_year
|
|
4136
|
-
*
|
|
4140
|
+
*
|
|
4137
4141
|
* TODO - Complete fiscalCodes
|
|
4138
|
-
*
|
|
4142
|
+
*
|
|
4139
4143
|
* @param {object} [date] if not defined, will take today's value
|
|
4140
4144
|
* @param {string} [code] - us|eu
|
|
4141
|
-
*
|
|
4145
|
+
*
|
|
4142
4146
|
* @returns {number} quarterNumber - 1 to 4
|
|
4143
4147
|
*/
|
|
4144
4148
|
var fiscalCodes = ['us', 'eu', 'corporate'];
|
|
4145
4149
|
var getQuarter = function(date, code) {
|
|
4146
4150
|
if (
|
|
4147
|
-
arguments.length == 1
|
|
4151
|
+
arguments.length == 1
|
|
4148
4152
|
&& typeof(arguments[0]) == 'string'
|
|
4149
4153
|
) {
|
|
4150
4154
|
if ( fiscalCodes.indexOf(arguments[0].toLowerCase()) < 0 ) {
|
|
@@ -4159,14 +4163,14 @@ function DateFormatHelper() {
|
|
|
4159
4163
|
if ( typeof(code) == 'undefined') {
|
|
4160
4164
|
code = 'corporate';
|
|
4161
4165
|
}
|
|
4162
|
-
|
|
4166
|
+
|
|
4163
4167
|
code = code.toLowerCase();
|
|
4164
4168
|
var q = [1,2,3,4]; // EU & corporates by default
|
|
4165
4169
|
switch (code) {
|
|
4166
4170
|
case 'us':
|
|
4167
4171
|
q = [4,1,2,3];
|
|
4168
4172
|
break;
|
|
4169
|
-
|
|
4173
|
+
|
|
4170
4174
|
case 'corportate':
|
|
4171
4175
|
case 'eu':
|
|
4172
4176
|
q = [1,2,3,4]
|
|
@@ -4176,23 +4180,23 @@ function DateFormatHelper() {
|
|
|
4176
4180
|
q = [1,2,3,4];
|
|
4177
4181
|
break;
|
|
4178
4182
|
}
|
|
4179
|
-
|
|
4183
|
+
|
|
4180
4184
|
return q[Math.floor(date.getMonth() / 3)];
|
|
4181
4185
|
}
|
|
4182
|
-
|
|
4186
|
+
|
|
4183
4187
|
/**
|
|
4184
4188
|
* getHalfYear
|
|
4185
|
-
*
|
|
4189
|
+
*
|
|
4186
4190
|
* Based on fiscal year- See.: https://en.wikipedia.org/wiki/Fiscal_year
|
|
4187
|
-
*
|
|
4188
|
-
* @param {object} date
|
|
4191
|
+
*
|
|
4192
|
+
* @param {object} date
|
|
4189
4193
|
* @param {string} code
|
|
4190
|
-
*
|
|
4194
|
+
*
|
|
4191
4195
|
* @returns halfYear number - 1 to 2
|
|
4192
4196
|
*/
|
|
4193
4197
|
var getHalfYear = function(date, code) {
|
|
4194
4198
|
if (
|
|
4195
|
-
arguments.length == 1
|
|
4199
|
+
arguments.length == 1
|
|
4196
4200
|
&& typeof(arguments[0]) == 'string'
|
|
4197
4201
|
) {
|
|
4198
4202
|
if ( fiscalCodes.indexOf(arguments[0].toLowerCase()) < 0 ) {
|
|
@@ -4207,40 +4211,40 @@ function DateFormatHelper() {
|
|
|
4207
4211
|
if ( typeof(code) == 'undefined') {
|
|
4208
4212
|
code = 'corporate';
|
|
4209
4213
|
}
|
|
4210
|
-
|
|
4214
|
+
|
|
4211
4215
|
code = code.toLowerCase();
|
|
4212
|
-
|
|
4216
|
+
|
|
4213
4217
|
return (date.getQuarter(code) <=2 ) ? 1 : 2;
|
|
4214
4218
|
}
|
|
4215
|
-
|
|
4219
|
+
|
|
4216
4220
|
/**
|
|
4217
4221
|
* getWeekISO8601
|
|
4218
4222
|
* Get week number
|
|
4219
4223
|
* ISO 8601
|
|
4220
4224
|
* To test : https://planetcalc.com/1252/
|
|
4221
|
-
*
|
|
4225
|
+
*
|
|
4222
4226
|
* @param {object} [date] if not defined, will take today's value
|
|
4223
|
-
*
|
|
4227
|
+
*
|
|
4224
4228
|
* @returns {number} weekNumber
|
|
4225
4229
|
*/
|
|
4226
4230
|
var getWeekISO8601 = function(date) {
|
|
4227
4231
|
// Copy date so don't modify original
|
|
4228
|
-
d = new Date(date.getFullYear(), date.getMonth(), date.getDate());
|
|
4232
|
+
d = new Date(date.getFullYear(), date.getMonth(), date.getDate());
|
|
4229
4233
|
// Make Sunday's day number 7
|
|
4230
4234
|
var dayNum = d.getDay() || 7;
|
|
4231
4235
|
d.setDate(d.getDate() + 4 - dayNum);
|
|
4232
4236
|
var yearStart = new Date(Date.parse(d.getFullYear(),0,1));
|
|
4233
|
-
|
|
4237
|
+
|
|
4234
4238
|
return Math.ceil((((d - yearStart) / 86400000) + 1)/7)
|
|
4235
4239
|
}
|
|
4236
|
-
|
|
4240
|
+
|
|
4237
4241
|
/**
|
|
4238
4242
|
* getWeek
|
|
4239
4243
|
* Get week number
|
|
4240
4244
|
* To test : https://planetcalc.com/1252/
|
|
4241
|
-
*
|
|
4245
|
+
*
|
|
4242
4246
|
* @param {object} [date] if not defined, will take today's value
|
|
4243
|
-
*
|
|
4247
|
+
*
|
|
4244
4248
|
* @returns {number} weekNumber - 1 to 53
|
|
4245
4249
|
*/
|
|
4246
4250
|
var getWeek = function(date, standardMethod) {
|
|
@@ -4250,14 +4254,14 @@ function DateFormatHelper() {
|
|
|
4250
4254
|
if ( typeof(standardMethod) == 'undefined') {
|
|
4251
4255
|
standardMethod = 'ISO 8601';
|
|
4252
4256
|
}
|
|
4253
|
-
|
|
4257
|
+
|
|
4254
4258
|
standardMethod = standardMethod.replace(/\s+/g, '').toLowerCase();
|
|
4255
4259
|
switch (standardMethod) {
|
|
4256
4260
|
case 'corporate':
|
|
4257
4261
|
case 'eu':
|
|
4258
4262
|
case 'iso8601':
|
|
4259
4263
|
return getWeekISO8601(date)
|
|
4260
|
-
|
|
4264
|
+
|
|
4261
4265
|
default:
|
|
4262
4266
|
return getWeekISO8601(date)
|
|
4263
4267
|
}
|
|
@@ -4316,7 +4320,7 @@ function DateFormatHelper() {
|
|
|
4316
4320
|
addDays : addDays,
|
|
4317
4321
|
addYears : addYears
|
|
4318
4322
|
};
|
|
4319
|
-
|
|
4323
|
+
|
|
4320
4324
|
return _proto
|
|
4321
4325
|
|
|
4322
4326
|
};
|
|
@@ -15067,7 +15071,6 @@ define("utils/dom", function(){});
|
|
|
15067
15071
|
// getting fields & values
|
|
15068
15072
|
var $fields = {}
|
|
15069
15073
|
, fields = { '_length': 0 }
|
|
15070
|
-
, id = $target.getAttribute('id')
|
|
15071
15074
|
, rules = ( typeof(gina.validator.$forms[id]) != 'undefined' ) ? gina.validator.$forms[id].rules : null
|
|
15072
15075
|
, name = null
|
|
15073
15076
|
, value = 0
|
|
@@ -16194,7 +16197,7 @@ define("utils/dom", function(){});
|
|
|
16194
16197
|
}
|
|
16195
16198
|
|
|
16196
16199
|
|
|
16197
|
-
for (
|
|
16200
|
+
for (let c = 0, cLen = conditions.length; c<cLen; ++c) {
|
|
16198
16201
|
// by default
|
|
16199
16202
|
//caseValue = fields[field];
|
|
16200
16203
|
caseValue = allFields[field];
|
|
@@ -18109,11 +18112,11 @@ define('gina', [ 'require', 'vendor/uuid', 'utils/merge', 'utils/events', 'helpe
|
|
|
18109
18112
|
return construct
|
|
18110
18113
|
});
|
|
18111
18114
|
/*!
|
|
18112
|
-
* Engine.IO v6.
|
|
18113
|
-
* (c) 2014-
|
|
18115
|
+
* Engine.IO v6.2.2
|
|
18116
|
+
* (c) 2014-2022 Guillermo Rauch
|
|
18114
18117
|
* Released under the MIT License.
|
|
18115
18118
|
*/
|
|
18116
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define('vendor/engine.io',e):(t="undefined"!=typeof globalThis?globalThis:t||self).eio=e()}(this,(function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o.apply(this,arguments)}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?u(t):e}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=i(t);if(e){var o=i(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return c(this,r)}}function p(t,e,r){return p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=i(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(r):o.value}},p(t,e,r||t)}var l={exports:{}};try{l.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){l.exports=!1}var f=l.exports,d="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function y(t){var e=t.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!e||f))return new XMLHttpRequest}catch(t){}if(!e)try{return new(d[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}function v(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return r.reduce((function(e,r){return t.hasOwnProperty(r)&&(e[r]=t[r]),e}),{})}var m=setTimeout,g=clearTimeout;function b(t,e){e.useNativeTimers?(t.setTimeoutFn=m.bind(d),t.clearTimeoutFn=g.bind(d)):(t.setTimeoutFn=setTimeout.bind(d),t.clearTimeoutFn=clearTimeout.bind(d))}var k=w;function w(t){if(t)return function(t){for(var e in w.prototype)t[e]=w.prototype[e];return t}(t)}w.prototype.on=w.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},w.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},w.prototype.off=w.prototype.removeListener=w.prototype.removeAllListeners=w.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<n.length;o++)if((r=n[o])===e||r.fn===e){n.splice(o,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},w.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){n=0;for(var o=(r=r.slice(0)).length;n<o;++n)r[n].apply(this,e)}return this},w.prototype.emitReserved=w.prototype.emit,w.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},w.prototype.hasListeners=function(t){return!!this.listeners(t).length};var T=Object.create(null);T.open="0",T.close="1",T.ping="2",T.pong="3",T.message="4",T.upgrade="5",T.noop="6";var S=Object.create(null);Object.keys(T).forEach((function(t){S[T[t]]=t}));for(var x={type:"error",data:"parser error"},O="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),E="function"==typeof ArrayBuffer,R=function(t,e,r){var n,o=t.type,s=t.data;return O&&s instanceof Blob?e?r(s):C(s,r):E&&(s instanceof ArrayBuffer||(n=s,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer))?e?r(s):C(new Blob([s]),r):r(T[o]+(s||""))},C=function(t,e){var r=new FileReader;return r.onload=function(){var t=r.result.split(",")[1];e("b"+t)},r.readAsDataURL(t)},q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",B="undefined"==typeof Uint8Array?[]:new Uint8Array(256),L=0;L<q.length;L++)B[q.charCodeAt(L)]=L;var P,A="function"==typeof ArrayBuffer,_=function(t,e){if("string"!=typeof t)return{type:"message",data:U(t,e)};var r=t.charAt(0);return"b"===r?{type:"message",data:j(t.substring(1),e)}:S[r]?t.length>1?{type:S[r],data:t.substring(1)}:{type:S[r]}:x},j=function(t,e){if(A){var r=function(t){var e,r,n,o,s,i=.75*t.length,a=t.length,u=0;"="===t[t.length-1]&&(i--,"="===t[t.length-2]&&i--);var c=new ArrayBuffer(i),h=new Uint8Array(c);for(e=0;e<a;e+=4)r=B[t.charCodeAt(e)],n=B[t.charCodeAt(e+1)],o=B[t.charCodeAt(e+2)],s=B[t.charCodeAt(e+3)],h[u++]=r<<2|n>>4,h[u++]=(15&n)<<4|o>>2,h[u++]=(3&o)<<6|63&s;return c}(t);return U(r,e)}return{base64:!0,data:t}},U=function(t,e){return"blob"===e&&t instanceof ArrayBuffer?new Blob([t]):t},H=String.fromCharCode(30),D=function(t){s(o,t);var r=h(o);function o(t){var n;return e(this,o),(n=r.call(this)).writable=!1,b(u(n),t),n.opts=t,n.query=t.query,n.readyState="",n.socket=t.socket,n}return n(o,[{key:"onError",value:function(t,e){var r=new Error(t);return r.type="TransportError",r.description=e,p(i(o.prototype),"emit",this).call(this,"error",r),this}},{key:"open",value:function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this}},{key:"close",value:function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}},{key:"send",value:function(t){"open"===this.readyState&&this.write(t)}},{key:"onOpen",value:function(){this.readyState="open",this.writable=!0,p(i(o.prototype),"emit",this).call(this,"open")}},{key:"onData",value:function(t){var e=_(t,this.socket.binaryType);this.onPacket(e)}},{key:"onPacket",value:function(t){p(i(o.prototype),"emit",this).call(this,"packet",t)}},{key:"onClose",value:function(){this.readyState="closed",p(i(o.prototype),"emit",this).call(this,"close")}}]),o}(k),F="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),I={},M=0,W=0;function N(t){var e="";do{e=F[t%64]+e,t=Math.floor(t/64)}while(t>0);return e}function X(){var t=N(+new Date);return t!==P?(M=0,P=t):t+"."+N(M++)}for(;W<64;W++)I[F[W]]=W;X.encode=N,X.decode=function(t){var e=0;for(W=0;W<t.length;W++)e=64*e+I[t.charAt(W)];return e};var $=X,z={encode:function(t){var e="";for(var r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e},decode:function(t){for(var e={},r=t.split("&"),n=0,o=r.length;n<o;n++){var s=r[n].split("=");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}},V=function(t){s(o,t);var r=h(o);function o(){var t;return e(this,o),(t=r.apply(this,arguments)).polling=!1,t}return n(o,[{key:"doOpen",value:function(){this.poll()}},{key:"pause",value:function(t){var e=this;this.readyState="pausing";var r=function(){e.readyState="paused",t()};if(this.polling||!this.writable){var n=0;this.polling&&(n++,this.once("pollComplete",(function(){--n||r()}))),this.writable||(n++,this.once("drain",(function(){--n||r()})))}else r()}},{key:"poll",value:function(){this.polling=!0,this.doPoll(),this.emit("poll")}},{key:"onData",value:function(t){var e=this;(function(t,e){for(var r=t.split(H),n=[],o=0;o<r.length;o++){var s=_(r[o],e);if(n.push(s),"error"===s.type)break}return n})(t,this.socket.binaryType).forEach((function(t){if("opening"===e.readyState&&"open"===t.type&&e.onOpen(),"close"===t.type)return e.onClose(),!1;e.onPacket(t)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState&&this.poll())}},{key:"doClose",value:function(){var t=this,e=function(){t.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}},{key:"write",value:function(t){var e=this;this.writable=!1,function(t,e){var r=t.length,n=new Array(r),o=0;t.forEach((function(t,s){R(t,!1,(function(t){n[s]=t,++o===r&&e(n.join(H))}))}))}(t,(function(t){e.doWrite(t,(function(){e.writable=!0,e.emit("drain")}))}))}},{key:"uri",value:function(){var t=this.query||{},e=this.opts.secure?"https":"http",r="";!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=$()),this.supportsBinary||t.sid||(t.b64=1),this.opts.port&&("https"===e&&443!==Number(this.opts.port)||"http"===e&&80!==Number(this.opts.port))&&(r=":"+this.opts.port);var n=z.encode(t);return e+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(n.length?"?"+n:"")}},{key:"name",get:function(){return"polling"}}]),o}(D);function G(){}var J=null!=new y({xdomain:!1}).responseType,K=function(t){s(i,t);var r=h(i);function i(t){var n;if(e(this,i),n=r.call(this,t),"undefined"!=typeof location){var o="https:"===location.protocol,s=location.port;s||(s=o?"443":"80"),n.xd="undefined"!=typeof location&&t.hostname!==location.hostname||s!==t.port,n.xs=t.secure!==o}var a=t&&t.forceBase64;return n.supportsBinary=J&&!a,n}return n(i,[{key:"request",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(t,{xd:this.xd,xs:this.xs},this.opts),new Q(this.uri(),t)}},{key:"doWrite",value:function(t,e){var r=this,n=this.request({method:"POST",data:t});n.on("success",e),n.on("error",(function(t){r.onError("xhr post error",t)}))}},{key:"doPoll",value:function(){var t=this,e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(function(e){t.onError("xhr poll error",e)})),this.pollXhr=e}}]),i}(V),Q=function(t){s(o,t);var r=h(o);function o(t,n){var s;return e(this,o),b(u(s=r.call(this)),n),s.opts=n,s.method=n.method||"GET",s.uri=t,s.async=!1!==n.async,s.data=void 0!==n.data?n.data:null,s.create(),s}return n(o,[{key:"create",value:function(){var t=this,e=v(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;var r=this.xhr=new y(e);try{r.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders)for(var n in r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(n)&&r.setRequestHeader(n,this.opts.extraHeaders[n])}catch(t){}if("POST"===this.method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{r.setRequestHeader("Accept","*/*")}catch(t){}"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=function(){4===r.readyState&&(200===r.status||1223===r.status?t.onLoad():t.setTimeoutFn((function(){t.onError("number"==typeof r.status?r.status:0)}),0))},r.send(this.data)}catch(e){return void this.setTimeoutFn((function(){t.onError(e)}),0)}"undefined"!=typeof document&&(this.index=o.requestsCount++,o.requests[this.index]=this)}},{key:"onSuccess",value:function(){this.emit("success"),this.cleanup()}},{key:"onData",value:function(t){this.emit("data",t),this.onSuccess()}},{key:"onError",value:function(t){this.emit("error",t),this.cleanup(!0)}},{key:"cleanup",value:function(t){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=G,t)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete o.requests[this.index],this.xhr=null}}},{key:"onLoad",value:function(){var t=this.xhr.responseText;null!==t&&this.onData(t)}},{key:"abort",value:function(){this.cleanup()}}]),o}(k);if(Q.requestsCount=0,Q.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",Y);else if("function"==typeof addEventListener){addEventListener("onpagehide"in d?"pagehide":"unload",Y,!1)}function Y(){for(var t in Q.requests)Q.requests.hasOwnProperty(t)&&Q.requests[t].abort()}var Z="function"==typeof Promise&&"function"==typeof Promise.resolve?function(t){return Promise.resolve().then(t)}:function(t,e){return e(t,0)},tt=d.WebSocket||d.MozWebSocket,et="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),rt=function(t){s(o,t);var r=h(o);function o(t){var n;return e(this,o),(n=r.call(this,t)).supportsBinary=!t.forceBase64,n}return n(o,[{key:"doOpen",value:function(){if(this.check()){var t=this.uri(),e=this.opts.protocols,r=et?{}:v(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=et?new tt(t,e,r):e?new tt(t,e):new tt(t)}catch(t){return this.emit("error",t)}this.ws.binaryType=this.socket.binaryType||"arraybuffer",this.addEventListeners()}}},{key:"addEventListeners",value:function(){var t=this;this.ws.onopen=function(){t.opts.autoUnref&&t.ws._socket.unref(),t.onOpen()},this.ws.onclose=this.onClose.bind(this),this.ws.onmessage=function(e){return t.onData(e.data)},this.ws.onerror=function(e){return t.onError("websocket error",e)}}},{key:"write",value:function(t){var e=this;this.writable=!1;for(var r=function(r){var n=t[r],o=r===t.length-1;R(n,e.supportsBinary,(function(t){try{e.ws.send(t)}catch(t){}o&&Z((function(){e.writable=!0,e.emit("drain")}),e.setTimeoutFn)}))},n=0;n<t.length;n++)r(n)}},{key:"doClose",value:function(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}},{key:"uri",value:function(){var t=this.query||{},e=this.opts.secure?"wss":"ws",r="";this.opts.port&&("wss"===e&&443!==Number(this.opts.port)||"ws"===e&&80!==Number(this.opts.port))&&(r=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=$()),this.supportsBinary||(t.b64=1);var n=z.encode(t);return e+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(n.length?"?"+n:"")}},{key:"check",value:function(){return!(!tt||"__initialize"in tt&&this.name===o.prototype.name)}},{key:"name",get:function(){return"websocket"}}]),o}(D),nt={websocket:rt,polling:K},ot=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,st=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],it=function(t){var e=t,r=t.indexOf("["),n=t.indexOf("]");-1!=r&&-1!=n&&(t=t.substring(0,r)+t.substring(r,n).replace(/:/g,";")+t.substring(n,t.length));for(var o,s,i=ot.exec(t||""),a={},u=14;u--;)a[st[u]]=i[u]||"";return-1!=r&&-1!=n&&(a.source=e,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=function(t,e){var r=/\/{2,9}/g,n=e.replace(r,"/").split("/");"/"!=e.substr(0,1)&&0!==e.length||n.splice(0,1);"/"==e.substr(e.length-1,1)&&n.splice(n.length-1,1);return n}(0,a.path),a.queryKey=(o=a.query,s={},o.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(t,e,r){e&&(s[e]=r)})),s),a};var at=function(r){s(a,r);var i=h(a);function a(r){var n,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,a),n=i.call(this),r&&"object"===t(r)&&(s=r,r=null),r?(r=it(r),s.hostname=r.host,s.secure="https"===r.protocol||"wss"===r.protocol,s.port=r.port,r.query&&(s.query=r.query)):s.host&&(s.hostname=it(s.host).host),b(u(n),s),n.secure=null!=s.secure?s.secure:"undefined"!=typeof location&&"https:"===location.protocol,s.hostname&&!s.port&&(s.port=n.secure?"443":"80"),n.hostname=s.hostname||("undefined"!=typeof location?location.hostname:"localhost"),n.port=s.port||("undefined"!=typeof location&&location.port?location.port:n.secure?"443":"80"),n.transports=s.transports||["polling","websocket"],n.readyState="",n.writeBuffer=[],n.prevBufferLen=0,n.opts=o({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},s),n.opts.path=n.opts.path.replace(/\/$/,"")+"/","string"==typeof n.opts.query&&(n.opts.query=z.decode(n.opts.query)),n.id=null,n.upgrades=null,n.pingInterval=null,n.pingTimeout=null,n.pingTimeoutTimer=null,"function"==typeof addEventListener&&(n.opts.closeOnBeforeunload&&addEventListener("beforeunload",(function(){n.transport&&(n.transport.removeAllListeners(),n.transport.close())}),!1),"localhost"!==n.hostname&&(n.offlineEventListener=function(){n.onClose("transport close")},addEventListener("offline",n.offlineEventListener,!1))),n.open(),n}return n(a,[{key:"createTransport",value:function(t){var e=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}(this.opts.query);e.EIO=4,e.transport=t,this.id&&(e.sid=this.id);var r=o({},this.opts.transportOptions[t],this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new nt[t](r)}},{key:"open",value:function(){var t,e=this;if(this.opts.rememberUpgrade&&a.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((function(){e.emitReserved("error","No transports available")}),0);t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)}},{key:"setTransport",value:function(t){var e=this;this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(function(){e.onClose("transport close")}))}},{key:"probe",value:function(t){var e=this,r=this.createTransport(t),n=!1;a.priorWebsocketSuccess=!1;var o=function(){n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",(function(t){if(!n)if("pong"===t.type&&"probe"===t.data){if(e.upgrading=!0,e.emitReserved("upgrading",r),!r)return;a.priorWebsocketSuccess="websocket"===r.name,e.transport.pause((function(){n||"closed"!==e.readyState&&(p(),e.setTransport(r),r.send([{type:"upgrade"}]),e.emitReserved("upgrade",r),r=null,e.upgrading=!1,e.flush())}))}else{var o=new Error("probe error");o.transport=r.name,e.emitReserved("upgradeError",o)}})))};function s(){n||(n=!0,p(),r.close(),r=null)}var i=function(t){var n=new Error("probe error: "+t);n.transport=r.name,s(),e.emitReserved("upgradeError",n)};function u(){i("transport closed")}function c(){i("socket closed")}function h(t){r&&t.name!==r.name&&s()}var p=function(){r.removeListener("open",o),r.removeListener("error",i),r.removeListener("close",u),e.off("close",c),e.off("upgrading",h)};r.once("open",o),r.once("error",i),r.once("close",u),this.once("close",c),this.once("upgrading",h),r.open()}},{key:"onOpen",value:function(){if(this.readyState="open",a.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause)for(var t=0,e=this.upgrades.length;t<e;t++)this.probe(this.upgrades[t])}},{key:"onPacket",value:function(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":var e=new Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data)}}},{key:"onHandshake",value:function(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}},{key:"resetPingTimeout",value:function(){var t=this;this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn((function(){t.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}},{key:"onDrain",value:function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}},{key:"flush",value:function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emitReserved("flush"))}},{key:"write",value:function(t,e,r){return this.sendPacket("message",t,e,r),this}},{key:"send",value:function(t,e,r){return this.sendPacket("message",t,e,r),this}},{key:"sendPacket",value:function(t,e,r,n){if("function"==typeof e&&(n=e,e=void 0),"function"==typeof r&&(n=r,r=null),"closing"!==this.readyState&&"closed"!==this.readyState){(r=r||{}).compress=!1!==r.compress;var o={type:t,data:e,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),n&&this.once("flush",n),this.flush()}}},{key:"close",value:function(){var t=this,e=function(){t.onClose("forced close"),t.transport.close()},r=function r(){t.off("upgrade",r),t.off("upgradeError",r),e()},n=function(){t.once("upgrade",r),t.once("upgradeError",r)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(function(){t.upgrading?n():e()})):this.upgrading?n():e()),this}},{key:"onError",value:function(t){a.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}},{key:"onClose",value:function(t,e){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",t,e),this.writeBuffer=[],this.prevBufferLen=0)}},{key:"filterUpgrades",value:function(t){for(var e=[],r=0,n=t.length;r<n;r++)~this.transports.indexOf(t[r])&&e.push(t[r]);return e}}]),a}(k);at.protocol=4;return function(t,e){return new at(t,e)}}));
|
|
18119
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define('vendor/engine.io',e):(t="undefined"!=typeof globalThis?globalThis:t||self).eio=e()}(this,(function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},o.apply(this,arguments)}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function c(t,e,r){return c=u()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&a(o,r.prototype),o},c.apply(null,arguments)}function p(t){var e="function"==typeof Map?new Map:void 0;return p=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return c(t,arguments,s(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),a(n,t)},p(t)}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?h(t):e}function f(t){var e=u();return function(){var r,n=s(t);if(e){var o=s(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return l(this,r)}}function d(t,e,r){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=s(t)););return t}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(r):o.value}},d(t,e,r||t)}var y=Object.create(null);y.open="0",y.close="1",y.ping="2",y.pong="3",y.message="4",y.upgrade="5",y.noop="6";var v=Object.create(null);Object.keys(y).forEach((function(t){v[y[t]]=t}));for(var m={type:"error",data:"parser error"},g="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),b="function"==typeof ArrayBuffer,k=function(t,e,r){var n,o=t.type,i=t.data;return g&&i instanceof Blob?e?r(i):w(i,r):b&&(i instanceof ArrayBuffer||(n=i,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer))?e?r(i):w(new Blob([i]),r):r(y[o]+(i||""))},w=function(t,e){var r=new FileReader;return r.onload=function(){var t=r.result.split(",")[1];e("b"+t)},r.readAsDataURL(t)},T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S="undefined"==typeof Uint8Array?[]:new Uint8Array(256),R=0;R<T.length;R++)S[T.charCodeAt(R)]=R;var x="function"==typeof ArrayBuffer,O=function(t,e){if("string"!=typeof t)return{type:"message",data:P(t,e)};var r=t.charAt(0);return"b"===r?{type:"message",data:E(t.substring(1),e)}:v[r]?t.length>1?{type:v[r],data:t.substring(1)}:{type:v[r]}:m},E=function(t,e){if(x){var r=function(t){var e,r,n,o,i,s=.75*t.length,a=t.length,u=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var c=new ArrayBuffer(s),p=new Uint8Array(c);for(e=0;e<a;e+=4)r=S[t.charCodeAt(e)],n=S[t.charCodeAt(e+1)],o=S[t.charCodeAt(e+2)],i=S[t.charCodeAt(e+3)],p[u++]=r<<2|n>>4,p[u++]=(15&n)<<4|o>>2,p[u++]=(3&o)<<6|63&i;return c}(t);return P(r,e)}return{base64:!0,data:t}},P=function(t,e){return"blob"===e&&t instanceof ArrayBuffer?new Blob([t]):t},B=String.fromCharCode(30);function C(t){if(t)return function(t){for(var e in C.prototype)t[e]=C.prototype[e];return t}(t)}C.prototype.on=C.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},C.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},C.prototype.off=C.prototype.removeListener=C.prototype.removeAllListeners=C.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<n.length;o++)if((r=n[o])===e||r.fn===e){n.splice(o,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},C.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){n=0;for(var o=(r=r.slice(0)).length;n<o;++n)r[n].apply(this,e)}return this},C.prototype.emitReserved=C.prototype.emit,C.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},C.prototype.hasListeners=function(t){return!!this.listeners(t).length};var L="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function q(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return r.reduce((function(e,r){return t.hasOwnProperty(r)&&(e[r]=t[r]),e}),{})}var A=setTimeout,j=clearTimeout;function _(t,e){e.useNativeTimers?(t.setTimeoutFn=A.bind(L),t.clearTimeoutFn=j.bind(L)):(t.setTimeoutFn=setTimeout.bind(L),t.clearTimeoutFn=clearTimeout.bind(L))}var U,H=function(t){i(n,t);var r=f(n);function n(t,o,i){var s;return e(this,n),(s=r.call(this,t)).description=o,s.context=i,s.type="TransportError",s}return n}(p(Error)),F=function(t){i(o,t);var r=f(o);function o(t){var n;return e(this,o),(n=r.call(this)).writable=!1,_(h(n),t),n.opts=t,n.query=t.query,n.readyState="",n.socket=t.socket,n}return n(o,[{key:"onError",value:function(t,e,r){return d(s(o.prototype),"emitReserved",this).call(this,"error",new H(t,e,r)),this}},{key:"open",value:function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this}},{key:"close",value:function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}},{key:"send",value:function(t){"open"===this.readyState&&this.write(t)}},{key:"onOpen",value:function(){this.readyState="open",this.writable=!0,d(s(o.prototype),"emitReserved",this).call(this,"open")}},{key:"onData",value:function(t){var e=O(t,this.socket.binaryType);this.onPacket(e)}},{key:"onPacket",value:function(t){d(s(o.prototype),"emitReserved",this).call(this,"packet",t)}},{key:"onClose",value:function(t){this.readyState="closed",d(s(o.prototype),"emitReserved",this).call(this,"close",t)}}]),o}(C),D="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),M={},I=0,W=0;function N(t){var e="";do{e=D[t%64]+e,t=Math.floor(t/64)}while(t>0);return e}function X(){var t=N(+new Date);return t!==U?(I=0,U=t):t+"."+N(I++)}for(;W<64;W++)M[D[W]]=W;function $(t){var e="";for(var r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e}function z(t){for(var e={},r=t.split("&"),n=0,o=r.length;n<o;n++){var i=r[n].split("=");e[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return e}var V=!1;try{V="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){}var G=V;function J(t){var e=t.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!e||G))return new XMLHttpRequest}catch(t){}if(!e)try{return new(L[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}function K(){}var Q=null!=new J({xdomain:!1}).responseType,Y=function(t){i(s,t);var r=f(s);function s(t){var n;if(e(this,s),(n=r.call(this,t)).polling=!1,"undefined"!=typeof location){var o="https:"===location.protocol,i=location.port;i||(i=o?"443":"80"),n.xd="undefined"!=typeof location&&t.hostname!==location.hostname||i!==t.port,n.xs=t.secure!==o}var a=t&&t.forceBase64;return n.supportsBinary=Q&&!a,n}return n(s,[{key:"doOpen",value:function(){this.poll()}},{key:"pause",value:function(t){var e=this;this.readyState="pausing";var r=function(){e.readyState="paused",t()};if(this.polling||!this.writable){var n=0;this.polling&&(n++,this.once("pollComplete",(function(){--n||r()}))),this.writable||(n++,this.once("drain",(function(){--n||r()})))}else r()}},{key:"poll",value:function(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}},{key:"onData",value:function(t){var e=this;(function(t,e){for(var r=t.split(B),n=[],o=0;o<r.length;o++){var i=O(r[o],e);if(n.push(i),"error"===i.type)break}return n})(t,this.socket.binaryType).forEach((function(t){if("opening"===e.readyState&&"open"===t.type&&e.onOpen(),"close"===t.type)return e.onClose({description:"transport closed by the server"}),!1;e.onPacket(t)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}},{key:"doClose",value:function(){var t=this,e=function(){t.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}},{key:"write",value:function(t){var e=this;this.writable=!1,function(t,e){var r=t.length,n=new Array(r),o=0;t.forEach((function(t,i){k(t,!1,(function(t){n[i]=t,++o===r&&e(n.join(B))}))}))}(t,(function(t){e.doWrite(t,(function(){e.writable=!0,e.emitReserved("drain")}))}))}},{key:"uri",value:function(){var t=this.query||{},e=this.opts.secure?"https":"http",r="";!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=X()),this.supportsBinary||t.sid||(t.b64=1),this.opts.port&&("https"===e&&443!==Number(this.opts.port)||"http"===e&&80!==Number(this.opts.port))&&(r=":"+this.opts.port);var n=$(t);return e+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(n.length?"?"+n:"")}},{key:"request",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(t,{xd:this.xd,xs:this.xs},this.opts),new Z(this.uri(),t)}},{key:"doWrite",value:function(t,e){var r=this,n=this.request({method:"POST",data:t});n.on("success",e),n.on("error",(function(t,e){r.onError("xhr post error",t,e)}))}},{key:"doPoll",value:function(){var t=this,e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(function(e,r){t.onError("xhr poll error",e,r)})),this.pollXhr=e}},{key:"name",get:function(){return"polling"}}]),s}(F),Z=function(t){i(o,t);var r=f(o);function o(t,n){var i;return e(this,o),_(h(i=r.call(this)),n),i.opts=n,i.method=n.method||"GET",i.uri=t,i.async=!1!==n.async,i.data=void 0!==n.data?n.data:null,i.create(),i}return n(o,[{key:"create",value:function(){var t=this,e=q(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;var r=this.xhr=new J(e);try{r.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders)for(var n in r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0),this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(n)&&r.setRequestHeader(n,this.opts.extraHeaders[n])}catch(t){}if("POST"===this.method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{r.setRequestHeader("Accept","*/*")}catch(t){}"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=function(){4===r.readyState&&(200===r.status||1223===r.status?t.onLoad():t.setTimeoutFn((function(){t.onError("number"==typeof r.status?r.status:0)}),0))},r.send(this.data)}catch(e){return void this.setTimeoutFn((function(){t.onError(e)}),0)}"undefined"!=typeof document&&(this.index=o.requestsCount++,o.requests[this.index]=this)}},{key:"onError",value:function(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}},{key:"cleanup",value:function(t){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=K,t)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete o.requests[this.index],this.xhr=null}}},{key:"onLoad",value:function(){var t=this.xhr.responseText;null!==t&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}},{key:"abort",value:function(){this.cleanup()}}]),o}(C);if(Z.requestsCount=0,Z.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",tt);else if("function"==typeof addEventListener){addEventListener("onpagehide"in L?"pagehide":"unload",tt,!1)}function tt(){for(var t in Z.requests)Z.requests.hasOwnProperty(t)&&Z.requests[t].abort()}var et="function"==typeof Promise&&"function"==typeof Promise.resolve?function(t){return Promise.resolve().then(t)}:function(t,e){return e(t,0)},rt=L.WebSocket||L.MozWebSocket,nt="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),ot=function(t){i(o,t);var r=f(o);function o(t){var n;return e(this,o),(n=r.call(this,t)).supportsBinary=!t.forceBase64,n}return n(o,[{key:"doOpen",value:function(){if(this.check()){var t=this.uri(),e=this.opts.protocols,r=nt?{}:q(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=nt?new rt(t,e,r):e?new rt(t,e):new rt(t)}catch(t){return this.emitReserved("error",t)}this.ws.binaryType=this.socket.binaryType||"arraybuffer",this.addEventListeners()}}},{key:"addEventListeners",value:function(){var t=this;this.ws.onopen=function(){t.opts.autoUnref&&t.ws._socket.unref(),t.onOpen()},this.ws.onclose=function(e){return t.onClose({description:"websocket connection closed",context:e})},this.ws.onmessage=function(e){return t.onData(e.data)},this.ws.onerror=function(e){return t.onError("websocket error",e)}}},{key:"write",value:function(t){var e=this;this.writable=!1;for(var r=function(r){var n=t[r],o=r===t.length-1;k(n,e.supportsBinary,(function(t){try{e.ws.send(t)}catch(t){}o&&et((function(){e.writable=!0,e.emitReserved("drain")}),e.setTimeoutFn)}))},n=0;n<t.length;n++)r(n)}},{key:"doClose",value:function(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}},{key:"uri",value:function(){var t=this.query||{},e=this.opts.secure?"wss":"ws",r="";this.opts.port&&("wss"===e&&443!==Number(this.opts.port)||"ws"===e&&80!==Number(this.opts.port))&&(r=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=X()),this.supportsBinary||(t.b64=1);var n=$(t);return e+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(n.length?"?"+n:"")}},{key:"check",value:function(){return!!rt}},{key:"name",get:function(){return"websocket"}}]),o}(F),it={websocket:ot,polling:Y},st=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,at=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ut(t){var e=t,r=t.indexOf("["),n=t.indexOf("]");-1!=r&&-1!=n&&(t=t.substring(0,r)+t.substring(r,n).replace(/:/g,";")+t.substring(n,t.length));for(var o,i,s=st.exec(t||""),a={},u=14;u--;)a[at[u]]=s[u]||"";return-1!=r&&-1!=n&&(a.source=e,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=function(t,e){var r=/\/{2,9}/g,n=e.replace(r,"/").split("/");"/"!=e.substr(0,1)&&0!==e.length||n.splice(0,1);"/"==e.substr(e.length-1,1)&&n.splice(n.length-1,1);return n}(0,a.path),a.queryKey=(o=a.query,i={},o.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(t,e,r){e&&(i[e]=r)})),i),a}var ct=function(r){i(a,r);var s=f(a);function a(r){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,a),n=s.call(this),r&&"object"===t(r)&&(i=r,r=null),r?(r=ut(r),i.hostname=r.host,i.secure="https"===r.protocol||"wss"===r.protocol,i.port=r.port,r.query&&(i.query=r.query)):i.host&&(i.hostname=ut(i.host).host),_(h(n),i),n.secure=null!=i.secure?i.secure:"undefined"!=typeof location&&"https:"===location.protocol,i.hostname&&!i.port&&(i.port=n.secure?"443":"80"),n.hostname=i.hostname||("undefined"!=typeof location?location.hostname:"localhost"),n.port=i.port||("undefined"!=typeof location&&location.port?location.port:n.secure?"443":"80"),n.transports=i.transports||["polling","websocket"],n.readyState="",n.writeBuffer=[],n.prevBufferLen=0,n.opts=o({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},i),n.opts.path=n.opts.path.replace(/\/$/,"")+"/","string"==typeof n.opts.query&&(n.opts.query=z(n.opts.query)),n.id=null,n.upgrades=null,n.pingInterval=null,n.pingTimeout=null,n.pingTimeoutTimer=null,"function"==typeof addEventListener&&(n.opts.closeOnBeforeunload&&addEventListener("beforeunload",(function(){n.transport&&(n.transport.removeAllListeners(),n.transport.close())}),!1),"localhost"!==n.hostname&&(n.offlineEventListener=function(){n.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",n.offlineEventListener,!1))),n.open(),n}return n(a,[{key:"createTransport",value:function(t){var e=o({},this.opts.query);e.EIO=4,e.transport=t,this.id&&(e.sid=this.id);var r=o({},this.opts.transportOptions[t],this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new it[t](r)}},{key:"open",value:function(){var t,e=this;if(this.opts.rememberUpgrade&&a.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((function(){e.emitReserved("error","No transports available")}),0);t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)}},{key:"setTransport",value:function(t){var e=this;this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(function(t){return e.onClose("transport close",t)}))}},{key:"probe",value:function(t){var e=this,r=this.createTransport(t),n=!1;a.priorWebsocketSuccess=!1;var o=function(){n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",(function(t){if(!n)if("pong"===t.type&&"probe"===t.data){if(e.upgrading=!0,e.emitReserved("upgrading",r),!r)return;a.priorWebsocketSuccess="websocket"===r.name,e.transport.pause((function(){n||"closed"!==e.readyState&&(h(),e.setTransport(r),r.send([{type:"upgrade"}]),e.emitReserved("upgrade",r),r=null,e.upgrading=!1,e.flush())}))}else{var o=new Error("probe error");o.transport=r.name,e.emitReserved("upgradeError",o)}})))};function i(){n||(n=!0,h(),r.close(),r=null)}var s=function(t){var n=new Error("probe error: "+t);n.transport=r.name,i(),e.emitReserved("upgradeError",n)};function u(){s("transport closed")}function c(){s("socket closed")}function p(t){r&&t.name!==r.name&&i()}var h=function(){r.removeListener("open",o),r.removeListener("error",s),r.removeListener("close",u),e.off("close",c),e.off("upgrading",p)};r.once("open",o),r.once("error",s),r.once("close",u),this.once("close",c),this.once("upgrading",p),r.open()}},{key:"onOpen",value:function(){if(this.readyState="open",a.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause)for(var t=0,e=this.upgrades.length;t<e;t++)this.probe(this.upgrades[t])}},{key:"onPacket",value:function(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":var e=new Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data)}}},{key:"onHandshake",value:function(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}},{key:"resetPingTimeout",value:function(){var t=this;this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn((function(){t.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}},{key:"onDrain",value:function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}},{key:"flush",value:function(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){var t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}},{key:"getWritablePackets",value:function(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;for(var t,e=1,r=0;r<this.writeBuffer.length;r++){var n=this.writeBuffer[r].data;if(n&&(e+="string"==typeof(t=n)?function(t){for(var e=0,r=0,n=0,o=t.length;n<o;n++)(e=t.charCodeAt(n))<128?r+=1:e<2048?r+=2:e<55296||e>=57344?r+=3:(n++,r+=4);return r}(t):Math.ceil(1.33*(t.byteLength||t.size))),r>0&&e>this.maxPayload)return this.writeBuffer.slice(0,r);e+=2}return this.writeBuffer}},{key:"write",value:function(t,e,r){return this.sendPacket("message",t,e,r),this}},{key:"send",value:function(t,e,r){return this.sendPacket("message",t,e,r),this}},{key:"sendPacket",value:function(t,e,r,n){if("function"==typeof e&&(n=e,e=void 0),"function"==typeof r&&(n=r,r=null),"closing"!==this.readyState&&"closed"!==this.readyState){(r=r||{}).compress=!1!==r.compress;var o={type:t,data:e,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),n&&this.once("flush",n),this.flush()}}},{key:"close",value:function(){var t=this,e=function(){t.onClose("forced close"),t.transport.close()},r=function r(){t.off("upgrade",r),t.off("upgradeError",r),e()},n=function(){t.once("upgrade",r),t.once("upgradeError",r)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(function(){t.upgrading?n():e()})):this.upgrading?n():e()),this}},{key:"onError",value:function(t){a.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}},{key:"onClose",value:function(t,e){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",t,e),this.writeBuffer=[],this.prevBufferLen=0)}},{key:"filterUpgrades",value:function(t){for(var e=[],r=0,n=t.length;r<n;r++)~this.transports.indexOf(t[r])&&e.push(t[r]);return e}}]),a}(C);ct.protocol=4;return function(t,e){return new ct(t,e)}}));
|
|
18117
18120
|
//# sourceMappingURL=engine.io.min.js.map
|
|
18118
18121
|
;
|
|
18119
18122
|
function BindingHelper(handlerContext) {
|
|
@@ -19646,7 +19649,7 @@ define('gina/popin', [ 'require', 'jquery', 'vendor/uuid','utils/merge', 'utils/
|
|
|
19646
19649
|
};
|
|
19647
19650
|
|
|
19648
19651
|
var resultIsObject = true;
|
|
19649
|
-
instance.eventData.error = result +'
|
|
19652
|
+
instance.eventData.error = result +'\n'+ err;
|
|
19650
19653
|
updateToolbar(result, resultIsObject);
|
|
19651
19654
|
triggerEvent(gina, $el, 'error.' + id, result)
|
|
19652
19655
|
}
|
|
@@ -20379,7 +20382,7 @@ define("utils/effects", function(){});
|
|
|
20379
20382
|
/**
|
|
20380
20383
|
* Object.assign
|
|
20381
20384
|
* Ref.: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign
|
|
20382
|
-
*
|
|
20385
|
+
*
|
|
20383
20386
|
*/
|
|
20384
20387
|
if (typeof Object.assign !== 'function') {
|
|
20385
20388
|
// Must be writable: true, enumerable: false, configurable: true
|
|
@@ -20409,20 +20412,20 @@ if (typeof Object.assign !== 'function') {
|
|
|
20409
20412
|
configurable: true
|
|
20410
20413
|
});
|
|
20411
20414
|
}
|
|
20412
|
-
|
|
20415
|
+
|
|
20413
20416
|
if ( typeof(JSON.clone) == 'undefined' ) {
|
|
20414
20417
|
/**
|
|
20415
20418
|
* JSON.clone
|
|
20416
20419
|
* Clone JSON object
|
|
20417
|
-
*
|
|
20418
|
-
* Changes made here must be reflected in:
|
|
20420
|
+
*
|
|
20421
|
+
* Changes made here must be reflected in:
|
|
20419
20422
|
* - gina/utils/prototypes.js
|
|
20420
20423
|
* - gina/framework/version/helpers/prototypes.js
|
|
20421
|
-
* - gina/framework/version/core/asset/
|
|
20422
|
-
*
|
|
20424
|
+
* - gina/framework/version/core/asset/plugin/src/gina/utils/polyfill.js
|
|
20425
|
+
*
|
|
20423
20426
|
* @param {object} source
|
|
20424
20427
|
* @param {object} [target]
|
|
20425
|
-
*
|
|
20428
|
+
*
|
|
20426
20429
|
* @returns {object} cloned JSON object
|
|
20427
20430
|
**/
|
|
20428
20431
|
var clone = function(source, target) {
|
|
@@ -20437,7 +20440,7 @@ if ( typeof(JSON.clone) == 'undefined' ) {
|
|
|
20437
20440
|
, len = Object.getOwnPropertyNames(source).length || 0
|
|
20438
20441
|
, keys = Object.keys(source)
|
|
20439
20442
|
;
|
|
20440
|
-
|
|
20443
|
+
|
|
20441
20444
|
while (i<len) {
|
|
20442
20445
|
target[keys[i]] = (typeof target[keys[i]] == 'undefined') ? clone(source[keys[i]], null) : target[keys[i]];
|
|
20443
20446
|
i++;
|
|
@@ -20446,12 +20449,12 @@ if ( typeof(JSON.clone) == 'undefined' ) {
|
|
|
20446
20449
|
|
|
20447
20450
|
return target;
|
|
20448
20451
|
};
|
|
20449
|
-
|
|
20452
|
+
|
|
20450
20453
|
JSON.clone = clone;
|
|
20451
20454
|
// WHY NOT USE SOMETHING ELSE ?
|
|
20452
20455
|
// Could have been fine, but not working when you have references pointg to another object
|
|
20453
|
-
// return Object.assign({}, source);
|
|
20454
|
-
|
|
20456
|
+
// return Object.assign({}, source);
|
|
20457
|
+
|
|
20455
20458
|
// Performences issue
|
|
20456
20459
|
//return JSON.parse(JSON.stringify(source));
|
|
20457
20460
|
}
|
|
@@ -20460,14 +20463,14 @@ if ( typeof(JSON.escape) == 'undefined' ) {
|
|
|
20460
20463
|
/**
|
|
20461
20464
|
* JSON.escape
|
|
20462
20465
|
* Escape special characters
|
|
20463
|
-
*
|
|
20464
|
-
* Changes made here must be reflected in:
|
|
20466
|
+
*
|
|
20467
|
+
* Changes made here must be reflected in:
|
|
20465
20468
|
* - gina/utils/prototypes.js
|
|
20466
20469
|
* - gina/framework/version/helpers/prototypes.js
|
|
20467
|
-
* - gina/framework/version/core/asset/
|
|
20468
|
-
*
|
|
20470
|
+
* - gina/framework/version/core/asset/plugin/src/gina/utils/polyfill.js
|
|
20471
|
+
*
|
|
20469
20472
|
* @param {object} jsonStr
|
|
20470
|
-
*
|
|
20473
|
+
*
|
|
20471
20474
|
* @returns {object} escaped JSON string
|
|
20472
20475
|
**/
|
|
20473
20476
|
var escape = function(jsonStr){
|
|
@@ -20477,11 +20480,11 @@ if ( typeof(JSON.escape) == 'undefined' ) {
|
|
|
20477
20480
|
.replace(/\r/g, "\\r")
|
|
20478
20481
|
.replace(/\t/g, "\\t")
|
|
20479
20482
|
;
|
|
20480
|
-
} catch (err) {
|
|
20483
|
+
} catch (err) {
|
|
20481
20484
|
throw err;
|
|
20482
20485
|
}
|
|
20483
20486
|
};
|
|
20484
|
-
|
|
20487
|
+
|
|
20485
20488
|
JSON.escape = escape;
|
|
20486
20489
|
};
|
|
20487
20490
|
define("utils/polyfill", function(){});
|