diff --git a/composer.json b/composer.json index 45721c765e..909bad1d6c 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "getkirby/cms", "description": "The Kirby 3 core", - "version": "3.3.5", + "version": "3.3.6", "license": "proprietary", "keywords": ["kirby", "cms", "core"], "homepage": "https://getkirby.com", diff --git a/composer.lock b/composer.lock index fa1e88a24b..13c6eef32e 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "75d7a57ba26b69913bbde61153e82d78", + "content-hash": "957cce44d582e1e5af20616ff45b9c12", "packages": [ { "name": "claviska/simpleimage", @@ -195,16 +195,16 @@ }, { "name": "laminas/laminas-zendframework-bridge", - "version": "1.0.1", + "version": "1.0.3", "source": { "type": "git", "url": "https://github.com/laminas/laminas-zendframework-bridge.git", - "reference": "0fb9675b84a1666ab45182b6c5b29956921e818d" + "reference": "bfbbdb6c998d50dbf69d2187cb78a5f1fa36e1e9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laminas/laminas-zendframework-bridge/zipball/0fb9675b84a1666ab45182b6c5b29956921e818d", - "reference": "0fb9675b84a1666ab45182b6c5b29956921e818d", + "url": "https://api.github.com/repos/laminas/laminas-zendframework-bridge/zipball/bfbbdb6c998d50dbf69d2187cb78a5f1fa36e1e9", + "reference": "bfbbdb6c998d50dbf69d2187cb78a5f1fa36e1e9", "shasum": "" }, "require": { @@ -243,7 +243,7 @@ "laminas", "zf" ], - "time": "2020-01-07T22:58:31+00:00" + "time": "2020-04-03T16:01:00+00:00" }, { "name": "league/color-extractor", @@ -467,16 +467,16 @@ }, { "name": "psr/log", - "version": "1.1.2", + "version": "1.1.3", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", - "reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801" + "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/446d54b4cb6bf489fc9d75f55843658e6f25d801", - "reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801", + "url": "https://api.github.com/repos/php-fig/log/zipball/0f73288fd15629204f9d42b7055f72dacbe811fc", + "reference": "0f73288fd15629204f9d42b7055f72dacbe811fc", "shasum": "" }, "require": { @@ -510,20 +510,20 @@ "psr", "psr-3" ], - "time": "2019-11-01T11:05:21+00:00" + "time": "2020-03-23T09:12:05+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.14.0", + "version": "v1.15.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "34094cfa9abe1f0f14f48f490772db7a775559f2" + "reference": "81ffd3a9c6d707be22e3012b827de1c9775fc5ac" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/34094cfa9abe1f0f14f48f490772db7a775559f2", - "reference": "34094cfa9abe1f0f14f48f490772db7a775559f2", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/81ffd3a9c6d707be22e3012b827de1c9775fc5ac", + "reference": "81ffd3a9c6d707be22e3012b827de1c9775fc5ac", "shasum": "" }, "require": { @@ -535,7 +535,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.14-dev" + "dev-master": "1.15-dev" } }, "autoload": { @@ -569,7 +569,7 @@ "portable", "shim" ], - "time": "2020-01-13T11:15:53+00:00" + "time": "2020-03-09T19:04:49+00:00" }, { "name": "true/punycode", diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php index e2bb9612ac..8d667803a3 100644 --- a/vendor/composer/autoload_classmap.php +++ b/vendor/composer/autoload_classmap.php @@ -237,7 +237,7 @@ 'Psr\\Log\\LoggerInterface' => $vendorDir . '/psr/log/Psr/Log/LoggerInterface.php', 'Psr\\Log\\LoggerTrait' => $vendorDir . '/psr/log/Psr/Log/LoggerTrait.php', 'Psr\\Log\\NullLogger' => $vendorDir . '/psr/log/Psr/Log/NullLogger.php', - 'Psr\\Log\\Test\\DummyTest' => $vendorDir . '/psr/log/Psr/Log/Test/LoggerInterfaceTest.php', + 'Psr\\Log\\Test\\DummyTest' => $vendorDir . '/psr/log/Psr/Log/Test/DummyTest.php', 'Psr\\Log\\Test\\LoggerInterfaceTest' => $vendorDir . '/psr/log/Psr/Log/Test/LoggerInterfaceTest.php', 'Psr\\Log\\Test\\TestLogger' => $vendorDir . '/psr/log/Psr/Log/Test/TestLogger.php', 'Symfony\\Polyfill\\Mbstring\\Mbstring' => $vendorDir . '/symfony/polyfill-mbstring/Mbstring.php', diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index e568d0d8f1..0fa17bd38b 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -331,7 +331,7 @@ class ComposerStaticInit12091bebabd81c9aba88b2aeec22c8d7 'Psr\\Log\\LoggerInterface' => __DIR__ . '/..' . '/psr/log/Psr/Log/LoggerInterface.php', 'Psr\\Log\\LoggerTrait' => __DIR__ . '/..' . '/psr/log/Psr/Log/LoggerTrait.php', 'Psr\\Log\\NullLogger' => __DIR__ . '/..' . '/psr/log/Psr/Log/NullLogger.php', - 'Psr\\Log\\Test\\DummyTest' => __DIR__ . '/..' . '/psr/log/Psr/Log/Test/LoggerInterfaceTest.php', + 'Psr\\Log\\Test\\DummyTest' => __DIR__ . '/..' . '/psr/log/Psr/Log/Test/DummyTest.php', 'Psr\\Log\\Test\\LoggerInterfaceTest' => __DIR__ . '/..' . '/psr/log/Psr/Log/Test/LoggerInterfaceTest.php', 'Psr\\Log\\Test\\TestLogger' => __DIR__ . '/..' . '/psr/log/Psr/Log/Test/TestLogger.php', 'Symfony\\Polyfill\\Mbstring\\Mbstring' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/Mbstring.php', diff --git a/vendor/filp/whoops/src/Whoops/Resources/css/whoops.base.css b/vendor/filp/whoops/src/Whoops/Resources/css/whoops.base.css index 1e3d77e27a..b86e2ae8da 100644 --- a/vendor/filp/whoops/src/Whoops/Resources/css/whoops.base.css +++ b/vendor/filp/whoops/src/Whoops/Resources/css/whoops.base.css @@ -2,23 +2,23 @@ body { font: 12px "Helvetica Neue", helvetica, arial, sans-serif; color: #131313; background: #eeeeee; - padding: 0; + padding:0; margin: 0; max-height: 100%; text-rendering: optimizeLegibility; } -a { - text-decoration: none; -} + a { + text-decoration: none; + } .panel { - overflow-y: scroll; - height: 100%; - position: fixed; - margin: 0; - left: 0; - top: 0; + overflow-y: scroll; + height: 100%; + position: fixed; + margin: 0; + left: 0; + top: 0; } .branding { @@ -27,11 +27,11 @@ a { right: 20px; color: #777777; font-size: 10px; - z-index: 100; -} -.branding a { - color: #e95353; + z-index: 100; } + .branding a { + color: #e95353; + } header { color: white; @@ -43,33 +43,32 @@ header { transition: 0.5s; } -header.header-expand { - max-height: 1000px; -} - -.exc-title { - margin: 0; - color: #bebebe; - font-size: 14px; -} -.exc-title-primary, -.exc-title-secondary { - color: #e95353; -} + header.header-expand { + max-height: 1000px; + } -.exc-message { - font-size: 20px; - word-wrap: break-word; - margin: 4px 0 0 0; - color: white; -} -.exc-message span { - display: block; -} -.exc-message-empty-notice { - color: #a29d9d; - font-weight: 300; -} + .exc-title { + margin: 0; + color: #bebebe; + font-size: 14px; + } + .exc-title-primary, .exc-title-secondary { + color: #e95353; + } + + .exc-message { + font-size: 20px; + word-wrap: break-word; + margin: 4px 0 0 0; + color: white; + } + .exc-message span { + display: block; + } + .exc-message-empty-notice { + color: #a29d9d; + font-weight: 300; + } .prev-exc-title { margin: 10px 0; @@ -95,215 +94,213 @@ header.header-expand { width: 70%; background: #fafafa; } -.details { - padding: 5px; -} - -.details-heading { - color: #4288ce; - font-weight: 300; - padding-bottom: 10px; - margin-bottom: 10px; - border-bottom: 1px solid rgba(0, 0, 0, 0.1); -} + .details { + padding: 5px; + } -.details pre.sf-dump { - white-space: pre; - word-wrap: inherit; -} - -.details pre.sf-dump, -.details pre.sf-dump .sf-dump-num, -.details pre.sf-dump .sf-dump-const, -.details pre.sf-dump .sf-dump-str, -.details pre.sf-dump .sf-dump-note, -.details pre.sf-dump .sf-dump-ref, -.details pre.sf-dump .sf-dump-public, -.details pre.sf-dump .sf-dump-protected, -.details pre.sf-dump .sf-dump-private, -.details pre.sf-dump .sf-dump-meta, -.details pre.sf-dump .sf-dump-key, -.details pre.sf-dump .sf-dump-index { - color: #463c54; -} + .details-heading { + color: #4288CE; + font-weight: 300; + padding-bottom: 10px; + margin-bottom: 10px; + border-bottom: 1px solid rgba(0, 0, 0, .1); + } + + .details pre.sf-dump { + white-space: pre; + word-wrap: inherit; + } + + .details pre.sf-dump, + .details pre.sf-dump .sf-dump-num, + .details pre.sf-dump .sf-dump-const, + .details pre.sf-dump .sf-dump-str, + .details pre.sf-dump .sf-dump-note, + .details pre.sf-dump .sf-dump-ref, + .details pre.sf-dump .sf-dump-public, + .details pre.sf-dump .sf-dump-protected, + .details pre.sf-dump .sf-dump-private, + .details pre.sf-dump .sf-dump-meta, + .details pre.sf-dump .sf-dump-key, + .details pre.sf-dump .sf-dump-index { + color: #463C54; + } .left-panel { width: 30%; background: #ded8d8; } -.frames-description { - background: rgba(0, 0, 0, 0.05); - padding: 8px 15px; - color: #a29d9d; - font-size: 11px; -} - -.frames-description.frames-description-application { - text-align: center; - font-size: 12px; -} -.frames-container.frames-container-application .frame:not(.frame-application) { - display: none; -} - -.frames-tab { - color: #a29d9d; - display: inline-block; - padding: 4px 8px; - margin: 0 2px; - border-radius: 3px; -} - -.frames-tab.frames-tab-active { - background-color: #2a2a2a; - color: #bebebe; -} - -.frame { - padding: 14px; - cursor: pointer; - transition: all 0.1s ease; - background: #eeeeee; -} -.frame:not(:last-child) { - border-bottom: 1px solid rgba(0, 0, 0, 0.05); -} - -.frame.active { - box-shadow: inset -5px 0 0 0 #4288ce; - color: #4288ce; -} - -.frame:not(.active):hover { - background: #bee9ea; -} - -.frame-method-info { - margin-bottom: 10px; -} - -.frame-class, -.frame-function, -.frame-index { - font-size: 14px; -} - -.frame-index { - float: left; -} - -.frame-method-info { - margin-left: 24px; -} - -.frame-index { - font-size: 11px; - color: #a29d9d; - background-color: rgba(0, 0, 0, 0.05); - height: 18px; - width: 18px; - line-height: 18px; - border-radius: 5px; - padding: 0 1px 0 1px; - text-align: center; - display: inline-block; -} - -.frame-application .frame-index { - background-color: #2a2a2a; - color: #bebebe; -} - -.frame-file { - font-family: "Inconsolata", "Fira Mono", "Source Code Pro", Monaco, Consolas, - "Lucida Console", monospace; - color: #a29d9d; -} - -.frame-file .editor-link { - color: #a29d9d; -} - -.frame-line { - font-weight: bold; -} - -.frame-line:before { - content: ":"; -} - -.frame-code { - padding: 5px; - background: #303030; - display: none; -} - -.frame-code.active { - display: block; -} - -.frame-code .frame-file { - color: #a29d9d; - padding: 12px 6px; - - border-bottom: none; -} - -.code-block { - padding: 10px; - margin: 0; - border-radius: 6px; - box-shadow: 0 3px 0 rgba(0, 0, 0, 0.05), 0 10px 30px rgba(0, 0, 0, 0.05), - inset 0 0 1px 0 rgba(255, 255, 255, 0.07); - -moz-tab-size: 4; - -o-tab-size: 4; - tab-size: 4; -} - -.linenums { - margin: 0; - margin-left: 10px; -} - -.frame-comments { - border-top: none; - margin-top: 15px; - - font-size: 12px; -} - -.frame-comments.empty { -} + .frames-description { + background: rgba(0, 0, 0, .05); + padding: 8px 15px; + color: #a29d9d; + font-size: 11px; + } -.frame-comments.empty:before { - content: "No comments for this stack frame."; - font-weight: 300; - color: #a29d9d; -} + .frames-description.frames-description-application { + text-align: center; + font-size: 12px; + } + .frames-container.frames-container-application .frame:not(.frame-application) { + display: none; + } -.frame-comment { - padding: 10px; - color: #e3e3e3; - border-radius: 6px; - background-color: rgba(255, 255, 255, 0.05); -} -.frame-comment a { - font-weight: bold; - text-decoration: none; -} -.frame-comment a:hover { - color: #4bb1b1; -} + .frames-tab { + color: #a29d9d; + display: inline-block; + padding: 4px 8px; + margin: 0 2px; + border-radius: 3px; + } -.frame-comment:not(:last-child) { - border-bottom: 1px dotted rgba(0, 0, 0, 0.3); -} + .frames-tab.frames-tab-active { + background-color: #2a2a2a; + color: #bebebe; + } -.frame-comment-context { - font-size: 10px; - color: white; -} + .frame { + padding: 14px; + cursor: pointer; + transition: all 0.1s ease; + background: #eeeeee; + } + .frame:not(:last-child) { + border-bottom: 1px solid rgba(0, 0, 0, .05); + } + + .frame.active { + box-shadow: inset -5px 0 0 0 #4288CE; + color: #4288CE; + } + + .frame:not(.active):hover { + background: #BEE9EA; + } + + .frame-method-info { + margin-bottom: 10px; + } + + .frame-class, .frame-function, .frame-index { + font-size: 14px; + } + + .frame-index { + float: left; + } + + .frame-method-info { + margin-left: 24px; + } + + .frame-index { + font-size: 11px; + color: #a29d9d; + background-color: rgba(0, 0, 0, .05); + height: 18px; + width: 18px; + line-height: 18px; + border-radius: 5px; + padding: 0 1px 0 1px; + text-align: center; + display: inline-block; + } + + .frame-application .frame-index { + background-color: #2a2a2a; + color: #bebebe; + } + + .frame-file { + font-family: "Inconsolata", "Fira Mono", "Source Code Pro", Monaco, Consolas, "Lucida Console", monospace; + color: #a29d9d; + } + + .frame-file .editor-link { + color: #a29d9d; + } + + .frame-line { + font-weight: bold; + } + + .frame-line:before { + content: ":"; + } + + .frame-code { + padding: 5px; + background: #303030; + display: none; + } + + .frame-code.active { + display: block; + } + + .frame-code .frame-file { + color: #a29d9d; + padding: 12px 6px; + + border-bottom: none; + } + + .code-block { + padding: 10px; + margin: 0; + border-radius: 6px; + box-shadow: 0 3px 0 rgba(0, 0, 0, .05), + 0 10px 30px rgba(0, 0, 0, .05), + inset 0 0 1px 0 rgba(255, 255, 255, .07); + -moz-tab-size: 4; + -o-tab-size: 4; + tab-size: 4; + } + + .linenums { + margin: 0; + margin-left: 10px; + } + + .frame-comments { + border-top: none; + margin-top: 15px; + + font-size: 12px; + } + + .frame-comments.empty { + } + + .frame-comments.empty:before { + content: "No comments for this stack frame."; + font-weight: 300; + color: #a29d9d; + } + + .frame-comment { + padding: 10px; + color: #e3e3e3; + border-radius: 6px; + background-color: rgba(255, 255, 255, .05); + } + .frame-comment a { + font-weight: bold; + text-decoration: none; + } + .frame-comment a:hover { + color: #4bb1b1; + } + + .frame-comment:not(:last-child) { + border-bottom: 1px dotted rgba(0, 0, 0, .3); + } + + .frame-comment-context { + font-size: 10px; + color: white; + } .delimiter { display: inline-block; @@ -320,143 +317,94 @@ header.header-expand { margin-bottom: 5px; padding-bottom: 5px; } -.data-table { - width: 100%; - margin-bottom: 10px; -} + .data-table { + width: 100%; + margin-bottom: 10px; + } -.data-table tbody { - font: 13px "Inconsolata", "Fira Mono", "Source Code Pro", Monaco, Consolas, - "Lucida Console", monospace; -} + .data-table tbody { + font: 13px "Inconsolata", "Fira Mono", "Source Code Pro", Monaco, Consolas, "Lucida Console", monospace; + } -.data-table thead { - display: none; -} + .data-table thead { + display: none; + } -.data-table tr { - padding: 5px 0; -} + .data-table tr { + padding: 5px 0; + } -.data-table td:first-child { - width: 20%; - min-width: 130px; - overflow: hidden; - font-weight: bold; - color: #463c54; - padding-right: 5px; -} + .data-table td:first-child { + width: 20%; + min-width: 130px; + overflow: hidden; + font-weight: bold; + color: #463C54; + padding-right: 5px; -.data-table td:last-child { - width: 80%; - -ms-word-break: break-all; - word-break: break-all; - word-break: break-word; - -webkit-hyphens: auto; - -moz-hyphens: auto; - hyphens: auto; -} + } -.data-table span.empty { - color: rgba(0, 0, 0, 0.3); - font-weight: 300; -} -.data-table label.empty { - display: inline; -} + .data-table td:last-child { + width: 80%; + -ms-word-break: break-all; + word-break: break-all; + word-break: break-word; + -webkit-hyphens: auto; + -moz-hyphens: auto; + hyphens: auto; + } + + .data-table span.empty { + color: rgba(0, 0, 0, .3); + font-weight: 300; + } + .data-table label.empty { + display: inline; + } .handler { padding: 4px 0; - font: 14px "Inconsolata", "Fira Mono", "Source Code Pro", Monaco, Consolas, - "Lucida Console", monospace; + font: 14px "Inconsolata", "Fira Mono", "Source Code Pro", Monaco, Consolas, "Lucida Console", monospace; } /* prettify code style Uses the Doxy theme as a base */ -pre .str, -code .str { - color: #bcd42a; -} /* string */ -pre .kwd, -code .kwd { - color: #4bb1b1; - font-weight: bold; -} /* keyword*/ -pre .com, -code .com { - color: #888; - font-weight: bold; -} /* comment */ -pre .typ, -code .typ { - color: #ef7c61; -} /* type */ -pre .lit, -code .lit { - color: #bcd42a; -} /* literal */ -pre .pun, -code .pun { - color: #fff; - font-weight: bold; -} /* punctuation */ -pre .pln, -code .pln { - color: #e9e4e5; -} /* plaintext */ -pre .tag, -code .tag { - color: #4bb1b1; -} /* html/xml tag */ -pre .htm, -code .htm { - color: #dda0dd; -} /* html tag */ -pre .xsl, -code .xsl { - color: #d0a0d0; -} /* xslt tag */ -pre .atn, -code .atn { - color: #ef7c61; - font-weight: normal; -} /* html/xml attribute name */ -pre .atv, -code .atv { - color: #bcd42a; -} /* html/xml attribute value */ -pre .dec, -code .dec { - color: #606; -} /* decimal */ -pre.code-block, -code.code-block, -.frame-args.code-block, -.frame-args.code-block samp { - font-family: "Inconsolata", "Fira Mono", "Source Code Pro", Monaco, Consolas, - "Lucida Console", monospace; +pre .str, code .str { color: #BCD42A; } /* string */ +pre .kwd, code .kwd { color: #4bb1b1; font-weight: bold; } /* keyword*/ +pre .com, code .com { color: #888; font-weight: bold; } /* comment */ +pre .typ, code .typ { color: #ef7c61; } /* type */ +pre .lit, code .lit { color: #BCD42A; } /* literal */ +pre .pun, code .pun { color: #fff; font-weight: bold; } /* punctuation */ +pre .pln, code .pln { color: #e9e4e5; } /* plaintext */ +pre .tag, code .tag { color: #4bb1b1; } /* html/xml tag */ +pre .htm, code .htm { color: #dda0dd; } /* html tag */ +pre .xsl, code .xsl { color: #d0a0d0; } /* xslt tag */ +pre .atn, code .atn { color: #ef7c61; font-weight: normal;} /* html/xml attribute name */ +pre .atv, code .atv { color: #bcd42a; } /* html/xml attribute value */ +pre .dec, code .dec { color: #606; } /* decimal */ +pre.code-block, code.code-block, .frame-args.code-block, .frame-args.code-block samp { + font-family: "Inconsolata", "Fira Mono", "Source Code Pro", Monaco, Consolas, "Lucida Console", monospace; background: #333; color: #e9e4e5; } -pre.code-block { - white-space: pre-wrap; -} + pre.code-block { + white-space: pre-wrap; + } -pre.code-block a, -code.code-block a { - text-decoration: none; -} + pre.code-block a, code.code-block a { + text-decoration:none; + } -.linenums li { - color: #a5a5a5; -} + .linenums li { + color: #A5A5A5; + } -.linenums li.current { - background: rgba(255, 100, 100, 0.07); -} -.linenums li.current.active { - background: rgba(255, 100, 100, 0.17); -} + .linenums li.current{ + background: rgba(255, 100, 100, .07); + } + .linenums li.current.active { + background: rgba(255, 100, 100, .17); + } pre:not(.prettyprinted) { padding-left: 60px; @@ -472,7 +420,7 @@ pre:not(.prettyprinted) { } .clipboard { - opacity: 0.8; + opacity: .8; background: none; color: rgba(255, 255, 255, 0.1); @@ -483,10 +431,10 @@ pre:not(.prettyprinted) { outline: none !important; } -.clipboard:hover { - box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3); - color: rgba(255, 255, 255, 0.3); -} + .clipboard:hover { + box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3); + color: rgba(255, 255, 255, 0.3); + } /* inspired by githubs kbd styles */ kbd { @@ -507,12 +455,12 @@ kbd { vertical-align: middle; } + /* == Media queries */ /* Expand the spacing in the details section */ @media (min-width: 1000px) { - .details, - .frame-code { + .details, .frame-code { padding: 20px 40px; } @@ -548,23 +496,23 @@ kbd { width: 100%; } - .data-table tbody tr:first-child { - padding-top: 0; - } + .data-table tbody tr:first-child { + padding-top: 0; + } - .data-table tbody td:first-child, - .data-table tbody td:last-child { - padding-left: 0; - padding-right: 0; - } + .data-table tbody td:first-child, + .data-table tbody td:last-child { + padding-left: 0; + padding-right: 0; + } - .data-table tbody td:last-child { - padding-top: 3px; - } + .data-table tbody td:last-child { + padding-top: 3px; + } } .tooltipped { - position: relative; + position: relative } .tooltipped:after { position: absolute; @@ -583,7 +531,7 @@ kbd { content: attr(aria-label); background: rgba(0, 0, 0, 0.8); border-radius: 3px; - -webkit-font-smoothing: subpixel-antialiased; + -webkit-font-smoothing: subpixel-antialiased } .tooltipped:before { position: absolute; @@ -594,7 +542,7 @@ kbd { color: rgba(0, 0, 0, 0.8); pointer-events: none; content: ""; - border: 5px solid transparent; + border: 5px solid transparent } .tooltipped:hover:before, .tooltipped:hover:after, @@ -603,19 +551,19 @@ kbd { .tooltipped:focus:before, .tooltipped:focus:after { display: inline-block; - text-decoration: none; + text-decoration: none } .tooltipped-s:after { top: 100%; right: 50%; - margin-top: 5px; + margin-top: 5px } .tooltipped-s:before { top: auto; right: 50%; bottom: -5px; margin-right: -5px; - border-bottom-color: rgba(0, 0, 0, 0.8); + border-bottom-color: rgba(0, 0, 0, 0.8) } pre.sf-dump { @@ -630,24 +578,25 @@ pre.sf-dump { list-style-type: none; display: inline-block; } -.search-for-help li { - display: inline-block; - margin-right: 5px; -} -.search-for-help li:last-child { - margin-right: 0; -} -.search-for-help li a { -} -.search-for-help li a i { - width: 16px; - height: 16px; - overflow: hidden; - display: block; -} -.search-for-help li a svg { - fill: #fff; -} -.search-for-help li a svg path { - background-size: contain; -} + .search-for-help li { + display: inline-block; + margin-right: 5px; + } + .search-for-help li:last-child { + margin-right: 0; + } + .search-for-help li a { + + } + .search-for-help li a i { + width: 16px; + height: 16px; + overflow: hidden; + display: block; + } + .search-for-help li a svg { + fill: #fff; + } + .search-for-help li a svg path { + background-size: contain; + } diff --git a/vendor/filp/whoops/src/Whoops/Resources/js/clipboard.min.js b/vendor/filp/whoops/src/Whoops/Resources/js/clipboard.min.js index aeeb51db5a..36a75a466b 100644 --- a/vendor/filp/whoops/src/Whoops/Resources/js/clipboard.min.js +++ b/vendor/filp/whoops/src/Whoops/Resources/js/clipboard.min.js @@ -4,520 +4,4 @@ * * Licensed MIT © Zeno Rocha */ -!(function(t) { - if ("object" == typeof exports && "undefined" != typeof module) - module.exports = t(); - else if ("function" == typeof define && define.amd) define([], t); - else { - var e; - (e = - "undefined" != typeof window - ? window - : "undefined" != typeof global - ? global - : "undefined" != typeof self - ? self - : this), - (e.Clipboard = t()); - } -})(function() { - var t, e, n; - return (function t(e, n, r) { - function o(a, c) { - if (!n[a]) { - if (!e[a]) { - var s = "function" == typeof require && require; - if (!c && s) return s(a, !0); - if (i) return i(a, !0); - var u = new Error("Cannot find module '" + a + "'"); - throw ((u.code = "MODULE_NOT_FOUND"), u); - } - var l = (n[a] = { exports: {} }); - e[a][0].call( - l.exports, - function(t) { - var n = e[a][1][t]; - return o(n ? n : t); - }, - l, - l.exports, - t, - e, - n, - r - ); - } - return n[a].exports; - } - for ( - var i = "function" == typeof require && require, a = 0; - a < r.length; - a++ - ) - o(r[a]); - return o; - })( - { - 1: [ - function(t, e, n) { - var r = t("matches-selector"); - e.exports = function(t, e, n) { - for (var o = n ? t : t.parentNode; o && o !== document; ) { - if (r(o, e)) return o; - o = o.parentNode; - } - }; - }, - { "matches-selector": 2 } - ], - 2: [ - function(t, e, n) { - function r(t, e) { - if (i) return i.call(t, e); - for ( - var n = t.parentNode.querySelectorAll(e), r = 0; - r < n.length; - ++r - ) - if (n[r] == t) return !0; - return !1; - } - var o = Element.prototype, - i = - o.matchesSelector || - o.webkitMatchesSelector || - o.mozMatchesSelector || - o.msMatchesSelector || - o.oMatchesSelector; - e.exports = r; - }, - {} - ], - 3: [ - function(t, e, n) { - function r(t, e, n, r) { - var i = o.apply(this, arguments); - return ( - t.addEventListener(n, i), - { - destroy: function() { - t.removeEventListener(n, i); - } - } - ); - } - function o(t, e, n, r) { - return function(n) { - var o = i(n.target, e, !0); - o && - (Object.defineProperty(n, "target", { value: o }), - r.call(t, n)); - }; - } - var i = t("closest"); - e.exports = r; - }, - { closest: 1 } - ], - 4: [ - function(t, e, n) { - (n.node = function(t) { - return void 0 !== t && t instanceof HTMLElement && 1 === t.nodeType; - }), - (n.nodeList = function(t) { - var e = Object.prototype.toString.call(t); - return ( - void 0 !== t && - ("[object NodeList]" === e || - "[object HTMLCollection]" === e) && - "length" in t && - (0 === t.length || n.node(t[0])) - ); - }), - (n.string = function(t) { - return "string" == typeof t || t instanceof String; - }), - (n.function = function(t) { - var e = Object.prototype.toString.call(t); - return "[object Function]" === e; - }); - }, - {} - ], - 5: [ - function(t, e, n) { - function r(t, e, n) { - if (!t && !e && !n) throw new Error("Missing required arguments"); - if (!c.string(e)) - throw new TypeError("Second argument must be a String"); - if (!c.function(n)) - throw new TypeError("Third argument must be a Function"); - if (c.node(t)) return o(t, e, n); - if (c.nodeList(t)) return i(t, e, n); - if (c.string(t)) return a(t, e, n); - throw new TypeError( - "First argument must be a String, HTMLElement, HTMLCollection, or NodeList" - ); - } - function o(t, e, n) { - return ( - t.addEventListener(e, n), - { - destroy: function() { - t.removeEventListener(e, n); - } - } - ); - } - function i(t, e, n) { - return ( - Array.prototype.forEach.call(t, function(t) { - t.addEventListener(e, n); - }), - { - destroy: function() { - Array.prototype.forEach.call(t, function(t) { - t.removeEventListener(e, n); - }); - } - } - ); - } - function a(t, e, n) { - return s(document.body, t, e, n); - } - var c = t("./is"), - s = t("delegate"); - e.exports = r; - }, - { "./is": 4, delegate: 3 } - ], - 6: [ - function(t, e, n) { - function r(t) { - var e; - if ("INPUT" === t.nodeName || "TEXTAREA" === t.nodeName) - t.select(), (e = t.value); - else { - var n = window.getSelection(), - r = document.createRange(); - r.selectNodeContents(t), - n.removeAllRanges(), - n.addRange(r), - (e = n.toString()); - } - return e; - } - e.exports = r; - }, - {} - ], - 7: [ - function(t, e, n) { - function r() {} - (r.prototype = { - on: function(t, e, n) { - var r = this.e || (this.e = {}); - return (r[t] || (r[t] = [])).push({ fn: e, ctx: n }), this; - }, - once: function(t, e, n) { - function r() { - o.off(t, r), e.apply(n, arguments); - } - var o = this; - return (r._ = e), this.on(t, r, n); - }, - emit: function(t) { - var e = [].slice.call(arguments, 1), - n = ((this.e || (this.e = {}))[t] || []).slice(), - r = 0, - o = n.length; - for (r; o > r; r++) n[r].fn.apply(n[r].ctx, e); - return this; - }, - off: function(t, e) { - var n = this.e || (this.e = {}), - r = n[t], - o = []; - if (r && e) - for (var i = 0, a = r.length; a > i; i++) - r[i].fn !== e && r[i].fn._ !== e && o.push(r[i]); - return o.length ? (n[t] = o) : delete n[t], this; - } - }), - (e.exports = r); - }, - {} - ], - 8: [ - function(t, e, n) { - "use strict"; - function r(t) { - return t && t.__esModule ? t : { default: t }; - } - function o(t, e) { - if (!(t instanceof e)) - throw new TypeError("Cannot call a class as a function"); - } - n.__esModule = !0; - var i = (function() { - function t(t, e) { - for (var n = 0; n < e.length; n++) { - var r = e[n]; - (r.enumerable = r.enumerable || !1), - (r.configurable = !0), - "value" in r && (r.writable = !0), - Object.defineProperty(t, r.key, r); - } - } - return function(e, n, r) { - return n && t(e.prototype, n), r && t(e, r), e; - }; - })(), - a = t("select"), - c = r(a), - s = (function() { - function t(e) { - o(this, t), this.resolveOptions(e), this.initSelection(); - } - return ( - (t.prototype.resolveOptions = function t() { - var e = - arguments.length <= 0 || void 0 === arguments[0] - ? {} - : arguments[0]; - (this.action = e.action), - (this.emitter = e.emitter), - (this.target = e.target), - (this.text = e.text), - (this.trigger = e.trigger), - (this.selectedText = ""); - }), - (t.prototype.initSelection = function t() { - if (this.text && this.target) - throw new Error( - 'Multiple attributes declared, use either "target" or "text"' - ); - if (this.text) this.selectFake(); - else { - if (!this.target) - throw new Error( - 'Missing required attributes, use either "target" or "text"' - ); - this.selectTarget(); - } - }), - (t.prototype.selectFake = function t() { - var e = this; - this.removeFake(), - (this.fakeHandler = document.body.addEventListener( - "click", - function() { - return e.removeFake(); - } - )), - (this.fakeElem = document.createElement("textarea")), - (this.fakeElem.style.position = "absolute"), - (this.fakeElem.style.left = "-9999px"), - (this.fakeElem.style.top = - (window.pageYOffset || - document.documentElement.scrollTop) + "px"), - this.fakeElem.setAttribute("readonly", ""), - (this.fakeElem.value = this.text), - document.body.appendChild(this.fakeElem), - (this.selectedText = c.default(this.fakeElem)), - this.copyText(); - }), - (t.prototype.removeFake = function t() { - this.fakeHandler && - (document.body.removeEventListener("click"), - (this.fakeHandler = null)), - this.fakeElem && - (document.body.removeChild(this.fakeElem), - (this.fakeElem = null)); - }), - (t.prototype.selectTarget = function t() { - (this.selectedText = c.default(this.target)), this.copyText(); - }), - (t.prototype.copyText = function t() { - var e = void 0; - try { - e = document.execCommand(this.action); - } catch (n) { - e = !1; - } - this.handleResult(e); - }), - (t.prototype.handleResult = function t(e) { - e - ? this.emitter.emit("success", { - action: this.action, - text: this.selectedText, - trigger: this.trigger, - clearSelection: this.clearSelection.bind(this) - }) - : this.emitter.emit("error", { - action: this.action, - trigger: this.trigger, - clearSelection: this.clearSelection.bind(this) - }); - }), - (t.prototype.clearSelection = function t() { - this.target && this.target.blur(), - window.getSelection().removeAllRanges(); - }), - (t.prototype.destroy = function t() { - this.removeFake(); - }), - i(t, [ - { - key: "action", - set: function t() { - var e = - arguments.length <= 0 || void 0 === arguments[0] - ? "copy" - : arguments[0]; - if ( - ((this._action = e), - "copy" !== this._action && "cut" !== this._action) - ) - throw new Error( - 'Invalid "action" value, use either "copy" or "cut"' - ); - }, - get: function t() { - return this._action; - } - }, - { - key: "target", - set: function t(e) { - if (void 0 !== e) { - if (!e || "object" != typeof e || 1 !== e.nodeType) - throw new Error( - 'Invalid "target" value, use a valid Element' - ); - this._target = e; - } - }, - get: function t() { - return this._target; - } - } - ]), - t - ); - })(); - (n.default = s), (e.exports = n.default); - }, - { select: 6 } - ], - 9: [ - function(t, e, n) { - "use strict"; - function r(t) { - return t && t.__esModule ? t : { default: t }; - } - function o(t, e) { - if (!(t instanceof e)) - throw new TypeError("Cannot call a class as a function"); - } - function i(t, e) { - if ("function" != typeof e && null !== e) - throw new TypeError( - "Super expression must either be null or a function, not " + - typeof e - ); - (t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - enumerable: !1, - writable: !0, - configurable: !0 - } - })), - e && - (Object.setPrototypeOf - ? Object.setPrototypeOf(t, e) - : (t.__proto__ = e)); - } - function a(t, e) { - var n = "data-clipboard-" + t; - if (e.hasAttribute(n)) return e.getAttribute(n); - } - n.__esModule = !0; - var c = t("./clipboard-action"), - s = r(c), - u = t("tiny-emitter"), - l = r(u), - f = t("good-listener"), - d = r(f), - h = (function(t) { - function e(n, r) { - o(this, e), - t.call(this), - this.resolveOptions(r), - this.listenClick(n); - } - return ( - i(e, t), - (e.prototype.resolveOptions = function t() { - var e = - arguments.length <= 0 || void 0 === arguments[0] - ? {} - : arguments[0]; - (this.action = - "function" == typeof e.action - ? e.action - : this.defaultAction), - (this.target = - "function" == typeof e.target - ? e.target - : this.defaultTarget), - (this.text = - "function" == typeof e.text ? e.text : this.defaultText); - }), - (e.prototype.listenClick = function t(e) { - var n = this; - this.listener = d.default(e, "click", function(t) { - return n.onClick(t); - }); - }), - (e.prototype.onClick = function t(e) { - this.clipboardAction && (this.clipboardAction = null), - (this.clipboardAction = new s.default({ - action: this.action(e.target), - target: this.target(e.target), - text: this.text(e.target), - trigger: e.target, - emitter: this - })); - }), - (e.prototype.defaultAction = function t(e) { - return a("action", e); - }), - (e.prototype.defaultTarget = function t(e) { - var n = a("target", e); - return n ? document.querySelector(n) : void 0; - }), - (e.prototype.defaultText = function t(e) { - return a("text", e); - }), - (e.prototype.destroy = function t() { - this.listener.destroy(), - this.clipboardAction && - (this.clipboardAction.destroy(), - (this.clipboardAction = null)); - }), - e - ); - })(l.default); - (n.default = h), (e.exports = n.default); - }, - { "./clipboard-action": 8, "good-listener": 5, "tiny-emitter": 7 } - ] - }, - {}, - [9] - )(9); -}); +!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Clipboard=t()}}(function(){var t,e,n;return function t(e,n,r){function o(a,c){if(!n[a]){if(!e[a]){var s="function"==typeof require&&require;if(!c&&s)return s(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};e[a][0].call(l.exports,function(t){var n=e[a][1][t];return o(n?n:t)},l,l.exports,t,e,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;ar;r++)n[r].fn.apply(n[r].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),r=n[t],o=[];if(r&&e)for(var i=0,a=r.length;a>i;i++)r[i].fn!==e&&r[i].fn._!==e&&o.push(r[i]);return o.length?n[t]=o:delete n[t],this}},e.exports=r},{}],8:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0;var i=function(){function t(t,e){for(var n=0;n 122 || - (e < 65 || - h > 90 || - d.push([Math.max(65, h) | 32, Math.min(e, 90) | 32]), - e < 97 || - h > 122 || - d.push([Math.max(97, h) & -33, Math.min(e, 122) & -33])); - } - } - d.sort(function(d, a) { - return d[0] - a[0] || a[1] - d[1]; - }); - a = []; - c = []; - for (f = 0; f < d.length; ++f) - (h = d[f]), - h[0] <= c[1] + 1 ? (c[1] = Math.max(c[1], h[1])) : a.push((c = h)); - for (f = 0; f < a.length; ++f) - (h = a[f]), - b.push(g(h[0])), - h[1] > h[0] && (h[1] + 1 > h[0] && b.push("-"), b.push(g(h[1]))); - b.push("]"); - return b.join(""); - } - function t(d) { - for ( - var a = d.source.match( - /\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g - ), - b = a.length, - i = [], - c = 0, - h = 0; - c < b; - ++c - ) { - var e = a[c]; - e === "(" - ? ++h - : "\\" === e.charAt(0) && - (e = +e.substring(1)) && - (e <= h ? (i[e] = -1) : (a[c] = g(e))); - } - for (c = 1; c < i.length; ++c) -1 === i[c] && (i[c] = ++z); - for (h = c = 0; c < b; ++c) - (e = a[c]), - e === "(" - ? (++h, i[h] || (a[c] = "(?:")) - : "\\" === e.charAt(0) && - (e = +e.substring(1)) && - e <= h && - (a[c] = "\\" + i[e]); - for (c = 0; c < b; ++c) "^" === a[c] && "^" !== a[c + 1] && (a[c] = ""); - if (d.ignoreCase && w) - for (c = 0; c < b; ++c) - (e = a[c]), - (d = e.charAt(0)), - e.length >= 2 && d === "[" - ? (a[c] = j(e)) - : d !== "\\" && - (a[c] = e.replace(/[A-Za-z]/g, function(d) { - d = d.charCodeAt(0); - return "[" + String.fromCharCode(d & -33, d | 32) + "]"; - })); - return a.join(""); - } - for (var z = 0, w = !1, k = !1, m = 0, b = a.length; m < b; ++m) { - var o = a[m]; - if (o.ignoreCase) k = !0; - else if ( - /[a-z]/i.test( - o.source.replace(/\\u[\da-f]{4}|\\x[\da-f]{2}|\\[^UXux]/gi, "") - ) - ) { - w = !0; - k = !1; - break; - } - } - for ( - var s = { - b: 8, - t: 9, - n: 10, - v: 11, - f: 12, - r: 13 - }, - q = [], - m = 0, - b = a.length; - m < b; - ++m - ) { - o = a[m]; - if (o.global || o.multiline) throw Error("" + o); - q.push("(?:" + t(o) + ")"); - } - return RegExp(q.join("|"), k ? "gi" : "g"); - } - function P(a, i) { - function g(a) { - switch (a.nodeType) { - case 1: - if (j.test(a.className)) break; - for (var b = a.firstChild; b; b = b.nextSibling) g(b); - b = a.nodeName.toLowerCase(); - if ("br" === b || "li" === b) - (t[k] = "\n"), (w[k << 1] = z++), (w[(k++ << 1) | 1] = a); - break; - case 3: - case 4: - (b = a.nodeValue), - b.length && - ((b = i - ? b.replace(/\r\n?/g, "\n") - : b.replace(/[\t\n\r ]+/g, " ")), - (t[k] = b), - (w[k << 1] = z), - (z += b.length), - (w[(k++ << 1) | 1] = a)); - } - } - var j = /(?:^|\s)nocode(?:\s|$)/, - t = [], - z = 0, - w = [], - k = 0; - g(a); - return { a: t.join("").replace(/\n$/, ""), d: w }; - } - function E(a, i, g, j) { - i && ((a = { a: i, e: a }), g(a), j.push.apply(j, a.g)); - } - function x(a, i) { - function g(a) { - for ( - var k = a.e, - m = [k, "pln"], - b = 0, - o = a.a.match(t) || [], - s = {}, - q = 0, - d = o.length; - q < d; - ++q - ) { - var v = o[q], - f = s[v], - u = void 0, - c; - if (typeof f === "string") c = !1; - else { - var h = j[v.charAt(0)]; - if (h) (u = v.match(h[1])), (f = h[0]); - else { - for (c = 0; c < z; ++c) - if (((h = i[c]), (u = v.match(h[1])))) { - f = h[0]; - break; - } - u || (f = "pln"); - } - if ( - (c = f.length >= 5 && "lang-" === f.substring(0, 5)) && - !(u && typeof u[1] === "string") - ) - (c = !1), (f = "src"); - c || (s[v] = f); - } - h = b; - b += v.length; - if (c) { - c = u[1]; - var e = v.indexOf(c), - p = e + c.length; - u[2] && ((p = v.length - u[2].length), (e = p - c.length)); - f = f.substring(5); - E(k + h, v.substring(0, e), g, m); - E(k + h + e, c, F(f, c), m); - E(k + h + p, v.substring(p), g, m); - } else m.push(k + h, f); - } - a.g = m; - } - var j = {}, - t; - (function() { - for ( - var g = a.concat(i), k = [], m = {}, b = 0, o = g.length; - b < o; - ++b - ) { - var s = g[b], - q = s[3]; - if (q) for (var d = q.length; --d >= 0; ) j[q.charAt(d)] = s; - s = s[1]; - q = "" + s; - m.hasOwnProperty(q) || (k.push(s), (m[q] = r)); - } - k.push(/[\S\s]/); - t = O(k); - })(); - var z = i.length; - return g; - } - function l(a) { - var i = [], - g = []; - a.tripleQuotedStrings - ? i.push([ - "str", - /^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/, - r, - "'\"" - ]) - : a.multiLineStrings - ? i.push([ - "str", - /^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, - r, - "'\"`" - ]) - : i.push([ - "str", - /^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/, - r, - "\"'" - ]); - a.verbatimStrings && g.push(["str", /^@"(?:[^"]|"")*(?:"|$)/, r]); - var j = a.hashComments; - j && - (a.cStyleComments - ? (j > 1 - ? i.push(["com", /^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/, r, "#"]) - : i.push([ - "com", - /^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\n\r]*)/, - r, - "#" - ]), - g.push([ - "str", - /^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/, - r - ])) - : i.push(["com", /^#[^\n\r]*/, r, "#"])); - a.cStyleComments && - (g.push(["com", /^\/\/[^\n\r]*/, r]), - g.push(["com", /^\/\*[\S\s]*?(?:\*\/|$)/, r])); - a.regexLiterals && - g.push([ - "lang-regex", - /^(?:^^\.?|[+-]|[!=]={0,2}|#|%=?|&&?=?|\(|\*=?|[+-]=|->|\/=?|::?|<{1,3}=?|[,;?@[{~]|\^\^?=?|\|\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/ - ]); - (j = a.types) && g.push(["typ", j]); - a = ("" + a.keywords).replace(/^ | $/g, ""); - a.length && - g.push(["kwd", RegExp("^(?:" + a.replace(/[\s,]+/g, "|") + ")\\b"), r]); - i.push(["pln", /^\s+/, r, " \r\n\t\u00a0"]); - g.push( - ["lit", /^@[$_a-z][\w$@]*/i, r], - ["typ", /^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/, r], - ["pln", /^[$_a-z][\w$@]*/i, r], - [ - "lit", - /^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i, - r, - "0123456789" - ], - ["pln", /^\\[\S\s]?/, r], - ["pun", /^.[^\s\w"$'./@\\`]*/, r] - ); - return x(i, g); - } - function G(a, i, g) { - function j(a) { - switch (a.nodeType) { - case 1: - if (z.test(a.className)) break; - if ("br" === a.nodeName) - t(a), a.parentNode && a.parentNode.removeChild(a); - else for (a = a.firstChild; a; a = a.nextSibling) j(a); - break; - case 3: - case 4: - if (g) { - var b = a.nodeValue, - f = b.match(n); - if (f) { - var i = b.substring(0, f.index); - a.nodeValue = i; - (b = b.substring(f.index + f[0].length)) && - a.parentNode.insertBefore(k.createTextNode(b), a.nextSibling); - t(a); - i || a.parentNode.removeChild(a); - } - } - } - } - function t(a) { - function i(a, b) { - var d = b ? a.cloneNode(!1) : a, - e = a.parentNode; - if (e) { - var e = i(e, 1), - f = a.nextSibling; - e.appendChild(d); - for (var g = f; g; g = f) (f = g.nextSibling), e.appendChild(g); - } - return d; - } - for (; !a.nextSibling; ) if (((a = a.parentNode), !a)) return; - for ( - var a = i(a.nextSibling, 0), f; - (f = a.parentNode) && f.nodeType === 1; - - ) - a = f; - b.push(a); - } - for ( - var z = /(?:^|\s)nocode(?:\s|$)/, - n = /\r\n?|\n/, - k = a.ownerDocument, - m = k.createElement("li"); - a.firstChild; - - ) - m.appendChild(a.firstChild); - for (var b = [m], o = 0; o < b.length; ++o) j(b[o]); - i === (i | 0) && b[0].setAttribute("value", i); - var s = k.createElement("ol"); - s.className = "linenums"; - for (var i = Math.max(0, (i - 1) | 0) || 0, o = 0, q = b.length; o < q; ++o) - (m = b[o]), - (m.className = "L" + (o + i) % 10), - m.firstChild || m.appendChild(k.createTextNode("\u00a0")), - s.appendChild(m); - a.appendChild(s); - } - function n(a, i) { - for (var g = i.length; --g >= 0; ) { - var j = i[g]; - A.hasOwnProperty(j) - ? C.console && console.warn("cannot override language handler %s", j) - : (A[j] = a); - } - } - function F(a, i) { - if (!a || !A.hasOwnProperty(a)) - a = /^\s*= e && (j += 2); - g >= p && (s += 2); - } - } finally { - if (c) c.style.display = h; - } - } catch (A) { - C.console && console.log(A && A.stack ? A.stack : A); - } - } - var C = window, - y = ["break,continue,do,else,for,if,return,while"], - B = [ - [ - y, - "auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile" - ], - "catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof" - ], - I = [ - B, - "alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where" - ], - J = [ - B, - "abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient" - ], - K = [ - J, - "as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where" - ], - B = [ - B, - "debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN" - ], - L = [ - y, - "and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None" - ], - M = [ - y, - "alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END" - ], - y = [y, "case,done,elif,esac,eval,fi,function,in,local,set,then,until"], - N = /^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/, - Q = /\S/, - R = l({ - keywords: [ - I, - K, - B, - "caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END" + - L, - M, - y - ], - hashComments: !0, - cStyleComments: !0, - multiLineStrings: !0, - regexLiterals: !0 - }), - A = {}; - n(R, ["default-code"]); - n( - x( - [], - [ - ["pln", /^[^]*(?:>|$)/], - ["com", /^<\!--[\S\s]*?(?:--\>|$)/], - ["lang-", /^<\?([\S\s]+?)(?:\?>|$)/], - ["lang-", /^<%([\S\s]+?)(?:%>|$)/], - ["pun", /^(?:<[%?]|[%?]>)/], - ["lang-", /^]*>([\S\s]+?)<\/xmp\b[^>]*>/i], - ["lang-js", /^]*>([\S\s]*?)(<\/script\b[^>]*>)/i], - ["lang-css", /^]*>([\S\s]*?)(<\/style\b[^>]*>)/i], - ["lang-in.tag", /^(<\/?[a-z][^<>]*>)/i] - ] - ), - ["default-markup", "htm", "html", "mxml", "xhtml", "xml", "xsl"] - ); - n( - x( - [ - ["pln", /^\s+/, r, " \t\r\n"], - ["atv", /^(?:"[^"]*"?|'[^']*'?)/, r, "\"'"] - ], - [ - ["tag", /^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i], - ["atn", /^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i], - ["lang-uq.val", /^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/], - ["pun", /^[/<->]+/], - ["lang-js", /^on\w+\s*=\s*"([^"]+)"/i], - ["lang-js", /^on\w+\s*=\s*'([^']+)'/i], - ["lang-js", /^on\w+\s*=\s*([^\s"'>]+)/i], - ["lang-css", /^style\s*=\s*"([^"]+)"/i], - ["lang-css", /^style\s*=\s*'([^']+)'/i], - ["lang-css", /^style\s*=\s*([^\s"'>]+)/i] - ] - ), - ["in.tag"] - ); - n(x([], [["atv", /^[\S\s]+/]]), ["uq.val"]); - n(l({ keywords: I, hashComments: !0, cStyleComments: !0, types: N }), [ - "c", - "cc", - "cpp", - "cxx", - "cyc", - "m" - ]); - n(l({ keywords: "null,true,false" }), ["json"]); - n( - l({ - keywords: K, - hashComments: !0, - cStyleComments: !0, - verbatimStrings: !0, - types: N - }), - ["cs"] - ); - n(l({ keywords: J, cStyleComments: !0 }), ["java"]); - n(l({ keywords: y, hashComments: !0, multiLineStrings: !0 }), [ - "bsh", - "csh", - "sh" - ]); - n( - l({ - keywords: L, - hashComments: !0, - multiLineStrings: !0, - tripleQuotedStrings: !0 - }), - ["cv", "py"] - ); - n( - l({ - keywords: - "caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END", - hashComments: !0, - multiLineStrings: !0, - regexLiterals: !0 - }), - ["perl", "pl", "pm"] - ); - n( - l({ - keywords: M, - hashComments: !0, - multiLineStrings: !0, - regexLiterals: !0 - }), - ["rb"] - ); - n(l({ keywords: B, cStyleComments: !0, regexLiterals: !0 }), ["js"]); - n( - l({ - keywords: - "all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes", - hashComments: 3, - cStyleComments: !0, - multilineStrings: !0, - tripleQuotedStrings: !0, - regexLiterals: !0 - }), - ["coffee"] - ); - n(x([], [["str", /^[\S\s]+/]]), ["regex"]); - var S = (C.PR = { - createSimpleLexer: x, - registerLangHandler: n, - sourceDecorator: l, - PR_ATTRIB_NAME: "atn", - PR_ATTRIB_VALUE: "atv", - PR_COMMENT: "com", - PR_DECLARATION: "dec", - PR_KEYWORD: "kwd", - PR_LITERAL: "lit", - PR_NOCODE: "nocode", - PR_PLAIN: "pln", - PR_PUNCTUATION: "pun", - PR_SOURCE: "src", - PR_STRING: "str", - PR_TAG: "tag", - PR_TYPE: "typ", - prettyPrintOne: (C.prettyPrintOne = function(a, i, g) { - var j = document.createElement("pre"); - j.innerHTML = a; - g && G(j, g, !0); - H({ h: i, j: g, c: j, i: 1 }); - return j.innerHTML; - }), - prettyPrint: (C.prettyPrint = function(a) { - function i() { - var u; - for ( - var g = C.PR_SHOULD_USE_CONTINUATION ? k.now() + 250 : Infinity; - m < j.length && k.now() < g; - m++ - ) { - var c = j[m], - h = c.className; - if (s.test(h) && !q.test(h)) { - for (var e = !1, p = c.parentNode; p; p = p.parentNode) - if (f.test(p.tagName) && p.className && s.test(p.className)) { - e = !0; - break; - } - if (!e) { - c.className += " prettyprinted"; - var h = h.match(o), - n; - if ((e = !h)) { - for ( - var e = c, p = void 0, l = e.firstChild; - l; - l = l.nextSibling - ) - var t = l.nodeType, - p = - t === 1 - ? p - ? e - : l - : t === 3 - ? Q.test(l.nodeValue) - ? e - : p - : p; - e = (n = p === e ? void 0 : p) && v.test(n.tagName); - } - e && (h = n.className.match(o)); - h && (h = h[1]); - (u = d.test(c.tagName) - ? 1 - : (e = (e = c.currentStyle) - ? e.whiteSpace - : document.defaultView && - document.defaultView.getComputedStyle - ? document.defaultView - .getComputedStyle(c, r) - .getPropertyValue("white-space") - : 0) && "pre" === e.substring(0, 3)), - (e = u); - (p = (p = c.className.match(/\blinenums\b(?::(\d+))?/)) - ? p[1] && p[1].length - ? +p[1] - : !0 - : !1) && G(c, p, e); - b = { h: h, c: c, j: p, i: e }; - H(b); - } - } - } - m < j.length ? setTimeout(i, 250) : a && a(); - } - for ( - var g = [ - document.getElementsByTagName("pre"), - document.getElementsByTagName("code"), - document.getElementsByTagName("xmp") - ], - j = [], - n = 0; - n < g.length; - ++n - ) - for (var l = 0, w = g[n].length; l < w; ++l) j.push(g[n][l]); - var g = r, - k = Date; - k.now || - (k = { - now: function() { - return +new Date(); - } - }); - var m = 0, - b, - o = /\blang(?:uage)?-([\w.]+)(?!\S)/, - s = /\bprettyprint\b/, - q = /\bprettyprinted\b/, - d = /pre|xmp/i, - v = /^code$/i, - f = /^(?:pre|code|xmp)$/i; - i(); - }) - }); - typeof define === "function" && - define.amd && - define("google-code-prettify", [], function() { - return S; - }); -})(); +var r=null;window.PR_SHOULD_USE_CONTINUATION=!0; +(function(){function O(a){function i(d){var a=d.charCodeAt(0);if(a!==92)return a;var f=d.charAt(1);return(a=s[f])?a:"0"<=f&&f<="7"?parseInt(d.substring(1),8):f==="u"||f==="x"?parseInt(d.substring(2),16):d.charCodeAt(1)}function g(d){if(d<32)return(d<16?"\\x0":"\\x")+d.toString(16);d=String.fromCharCode(d);return d==="\\"||d==="-"||d==="]"||d==="^"?"\\"+d:d}function j(d){var a=d.substring(1,d.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),d=[],f= +a[0]==="^",b=["["];f&&b.push("^");for(var f=f?1:0,c=a.length;f122||(e<65||h>90||d.push([Math.max(65,h)|32,Math.min(e,90)|32]),e<97||h>122||d.push([Math.max(97,h)&-33,Math.min(e,122)&-33]))}}d.sort(function(d,a){return d[0]-a[0]||a[1]-d[1]});a=[];c=[];for(f=0;fh[0]&&(h[1]+1>h[0]&&b.push("-"),b.push(g(h[1])));b.push("]");return b.join("")}function t(d){for(var a=d.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=a.length,i=[],c=0,h=0;c=2&&d==="["?a[c]=j(e):d!=="\\"&&(a[c]=e.replace(/[A-Za-z]/g,function(d){d=d.charCodeAt(0);return"["+String.fromCharCode(d&-33,d|32)+"]"}));return a.join("")}for(var z=0,w=!1,k=!1,m=0,b=a.length;m=5&&"lang-"===f.substring(0, +5))&&!(u&&typeof u[1]==="string"))c=!1,f="src";c||(s[v]=f)}h=b;b+=v.length;if(c){c=u[1];var e=v.indexOf(c),p=e+c.length;u[2]&&(p=v.length-u[2].length,e=p-c.length);f=f.substring(5);E(k+h,v.substring(0,e),g,m);E(k+h+e,c,F(f,c),m);E(k+h+p,v.substring(p),g,m)}else m.push(k+h,f)}a.g=m}var j={},t;(function(){for(var g=a.concat(i),k=[],m={},b=0,o=g.length;b=0;)j[q.charAt(d)]=s;s=s[1];q=""+s;m.hasOwnProperty(q)||(k.push(s),m[q]=r)}k.push(/[\S\s]/);t= +O(k)})();var z=i.length;return g}function l(a){var i=[],g=[];a.tripleQuotedStrings?i.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,r,"'\""]):a.multiLineStrings?i.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,r,"'\"`"]):i.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,r,"\"'"]);a.verbatimStrings&& +g.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,r]);var j=a.hashComments;j&&(a.cStyleComments?(j>1?i.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,r,"#"]):i.push(["com",/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\n\r]*)/,r,"#"]),g.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,r])):i.push(["com",/^#[^\n\r]*/,r,"#"]));a.cStyleComments&&(g.push(["com",/^\/\/[^\n\r]*/,r]),g.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/, +r]));a.regexLiterals&&g.push(["lang-regex",/^(?:^^\.?|[+-]|[!=]={0,2}|#|%=?|&&?=?|\(|\*=?|[+-]=|->|\/=?|::?|<{1,3}=?|[,;?@[{~]|\^\^?=?|\|\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(j=a.types)&&g.push(["typ",j]);a=(""+a.keywords).replace(/^ | $/g,"");a.length&&g.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),r]);i.push(["pln",/^\s+/,r," \r\n\t\u00a0"]);g.push(["lit", +/^@[$_a-z][\w$@]*/i,r],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,r],["pln",/^[$_a-z][\w$@]*/i,r],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,r,"0123456789"],["pln",/^\\[\S\s]?/,r],["pun",/^.[^\s\w"$'./@\\`]*/,r]);return x(i,g)}function G(a,i,g){function j(a){switch(a.nodeType){case 1:if(z.test(a.className))break;if("br"===a.nodeName)t(a),a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)j(a);break;case 3:case 4:if(g){var b= +a.nodeValue,f=b.match(n);if(f){var i=b.substring(0,f.index);a.nodeValue=i;(b=b.substring(f.index+f[0].length))&&a.parentNode.insertBefore(k.createTextNode(b),a.nextSibling);t(a);i||a.parentNode.removeChild(a)}}}}function t(a){function i(a,b){var d=b?a.cloneNode(!1):a,e=a.parentNode;if(e){var e=i(e,1),f=a.nextSibling;e.appendChild(d);for(var g=f;g;g=f)f=g.nextSibling,e.appendChild(g)}return d}for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=i(a.nextSibling,0),f;(f=a.parentNode)&&f.nodeType=== +1;)a=f;b.push(a)}for(var z=/(?:^|\s)nocode(?:\s|$)/,n=/\r\n?|\n/,k=a.ownerDocument,m=k.createElement("li");a.firstChild;)m.appendChild(a.firstChild);for(var b=[m],o=0;o=0;){var j= +i[g];A.hasOwnProperty(j)?C.console&&console.warn("cannot override language handler %s",j):A[j]=a}}function F(a,i){if(!a||!A.hasOwnProperty(a))a=/^\s*=e&&(j+=2);g>=p&&(s+=2)}}finally{if(c)c.style.display=h}}catch(A){C.console&&console.log(A&&A.stack?A.stack:A)}}var C=window,y=["break,continue,do,else,for,if,return,while"],B=[[y,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],I=[B,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"], +J=[B,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"],K=[J,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],B=[B,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"], +L=[y,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],M=[y,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],y=[y,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],N=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/, +Q=/\S/,R=l({keywords:[I,K,B,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+L,M,y],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};n(R,["default-code"]);n(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-", +/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);n(x([["pln",/^\s+/,r," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,r,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/], +["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);n(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);n(l({keywords:I,hashComments:!0,cStyleComments:!0,types:N}),["c","cc","cpp","cxx","cyc","m"]);n(l({keywords:"null,true,false"}),["json"]);n(l({keywords:K,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:N}), +["cs"]);n(l({keywords:J,cStyleComments:!0}),["java"]);n(l({keywords:y,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);n(l({keywords:L,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py"]);n(l({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);n(l({keywords:M,hashComments:!0, +multiLineStrings:!0,regexLiterals:!0}),["rb"]);n(l({keywords:B,cStyleComments:!0,regexLiterals:!0}),["js"]);n(l({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);n(x([],[["str",/^[\S\s]+/]]),["regex"]);var S=C.PR={createSimpleLexer:x,registerLangHandler:n,sourceDecorator:l, +PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:C.prettyPrintOne=function(a,i,g){var j=document.createElement("pre");j.innerHTML=a;g&&G(j,g,!0);H({h:i,j:g,c:j,i:1});return j.innerHTML},prettyPrint:C.prettyPrint=function(a){function i(){var u;for(var g=C.PR_SHOULD_USE_CONTINUATION?k.now()+250:Infinity;m= 145) { - $header.addClass("header-expand"); + var $leftPanel = $('.left-panel'); + var $frameContainer = $('.frames-container'); + var $appFramesTab = $('#application-frames-tab'); + var $allFramesTab = $('#all-frames-tab'); + var $container = $('.details-container'); + var $activeLine = $frameContainer.find('.frame.active'); + var $activeFrame = $container.find('.frame-code.active'); + var $ajaxEditors = $('.editor-link[data-ajax]'); + var $header = $('header'); + + $header.on('mouseenter', function () { + if ($header.find('.exception').height() >= 145) { + $header.addClass('header-expand'); } }); - $header.on("mouseleave", function() { - $header.removeClass("header-expand"); + $header.on('mouseleave', function () { + $header.removeClass('header-expand'); }); /* @@ -25,19 +25,21 @@ Zepto(function($) { * highlight the current line */ var renderCurrentCodeblock = function(id) { + // remove previous codeblocks so we only render the active one - $(".code-block").removeClass("prettyprint"); + $('.code-block').removeClass('prettyprint'); // pass the id in when we can for speed - if (typeof id === "undefined" || typeof id === "object") { - var id = /frame\-line\-([\d]*)/.exec($activeLine.attr("id"))[1]; + if (typeof(id) === 'undefined' || typeof(id) === 'object') { + var id = /frame\-line\-([\d]*)/.exec($activeLine.attr('id'))[1]; } - $("#frame-code-linenums-" + id).addClass("prettyprint"); - $("#frame-code-args-" + id).addClass("prettyprint"); + $('#frame-code-linenums-' + id).addClass('prettyprint'); + $('#frame-code-args-' + id).addClass('prettyprint'); prettyPrint(highlightCurrentLine); - }; + + } /* * Highlight the active and neighboring lines for the current frame @@ -45,86 +47,88 @@ Zepto(function($) { */ var highlightCurrentLine = function() { - var activeLineNumber = +$activeLine.find(".frame-line").text(); - var $lines = $activeFrame.find(".linenums li"); - var firstLine = +$lines.first().val(); + var activeLineNumber = +($activeLine.find('.frame-line').text()); + var $lines = $activeFrame.find('.linenums li'); + var firstLine = +($lines.first().val()); // We show more code than needed, purely for proper syntax highlighting // Let’s hide a big chunk of that code and then scroll the remaining block - $activeFrame - .find(".code-block") - .first() - .css({ - maxHeight: 345, - overflow: "hidden" - }); + $activeFrame.find('.code-block').first().css({ + maxHeight: 345, + overflow: 'hidden', + }); var $offset = $($lines[activeLineNumber - firstLine - 10]); if ($offset.length > 0) { $offset[0].scrollIntoView(); } - $($lines[activeLineNumber - firstLine - 1]).addClass("current"); - $($lines[activeLineNumber - firstLine]).addClass("current active"); - $($lines[activeLineNumber - firstLine + 1]).addClass("current"); + $($lines[activeLineNumber - firstLine - 1]).addClass('current'); + $($lines[activeLineNumber - firstLine]).addClass('current active'); + $($lines[activeLineNumber - firstLine + 1]).addClass('current'); $container.scrollTop(0); - }; + + } /* * click handler for loading codeblocks */ - $frameContainer.on("click", ".frame", function() { - var $this = $(this); - var id = /frame\-line\-([\d]*)/.exec($this.attr("id"))[1]; - var $codeFrame = $("#frame-code-" + id); + $frameContainer.on('click', '.frame', function() { + + var $this = $(this); + var id = /frame\-line\-([\d]*)/.exec($this.attr('id'))[1]; + var $codeFrame = $('#frame-code-' + id); if ($codeFrame) { - $activeLine.removeClass("active"); - $activeFrame.removeClass("active"); - $this.addClass("active"); - $codeFrame.addClass("active"); + $activeLine.removeClass('active'); + $activeFrame.removeClass('active'); + + $this.addClass('active'); + $codeFrame.addClass('active'); - $activeLine = $this; + $activeLine = $this; $activeFrame = $codeFrame; renderCurrentCodeblock(id); + } + }); - var clipboard = new Clipboard(".clipboard"); + var clipboard = new Clipboard('.clipboard'); var showTooltip = function(elem, msg) { - elem.setAttribute("class", "clipboard tooltipped tooltipped-s"); - elem.setAttribute("aria-label", msg); + elem.setAttribute('class', 'clipboard tooltipped tooltipped-s'); + elem.setAttribute('aria-label', msg); }; - clipboard.on("success", function(e) { - e.clearSelection(); + clipboard.on('success', function(e) { + e.clearSelection(); - showTooltip(e.trigger, "Copied!"); + showTooltip(e.trigger, 'Copied!'); }); - clipboard.on("error", function(e) { - showTooltip(e.trigger, fallbackMessage(e.action)); + clipboard.on('error', function(e) { + showTooltip(e.trigger, fallbackMessage(e.action)); }); - var btn = document.querySelector(".clipboard"); + var btn = document.querySelector('.clipboard'); - btn.addEventListener("mouseleave", function(e) { - e.currentTarget.setAttribute("class", "clipboard"); - e.currentTarget.removeAttribute("aria-label"); + btn.addEventListener('mouseleave', function(e) { + e.currentTarget.setAttribute('class', 'clipboard'); + e.currentTarget.removeAttribute('aria-label'); }); function fallbackMessage(action) { - var actionMsg = ""; - var actionKey = action === "cut" ? "X" : "C"; + var actionMsg = ''; + var actionKey = (action === 'cut' ? 'X' : 'C'); if (/Mac/i.test(navigator.userAgent)) { - actionMsg = "Press ⌘-" + actionKey + " to " + action; + actionMsg = 'Press ⌘-' + actionKey + ' to ' + action; } else { - actionMsg = "Press Ctrl-" + actionKey + " to " + action; + actionMsg = 'Press Ctrl-' + actionKey + ' to ' + action; } return actionMsg; @@ -144,31 +148,29 @@ Zepto(function($) { } } - $(document).on("keydown", function(e) { - var applicationFrames = $frameContainer.hasClass( - "frames-container-application" - ), - frameClass = applicationFrames ? ".frame.frame-application" : ".frame"; - - if (e.ctrlKey || e.which === 74 || e.which === 75) { - // CTRL+Arrow-UP/k and Arrow-Down/j support: - // 1) select the next/prev element - // 2) make sure the newly selected element is within the view-scope - // 3) focus the (right) container, so arrow-up/down (without ctrl) scroll the details - if (e.which === 38 /* arrow up */ || e.which === 75 /* k */) { - $activeLine.prev(frameClass).click(); - scrollIntoView($activeLine, $leftPanel); - $container.focus(); - e.preventDefault(); - } else if (e.which === 40 /* arrow down */ || e.which === 74 /* j */) { - $activeLine.next(frameClass).click(); - scrollIntoView($activeLine, $leftPanel); - $container.focus(); - e.preventDefault(); - } - } else if (e.which == 78 /* n */) { + $(document).on('keydown', function(e) { + var applicationFrames = $frameContainer.hasClass('frames-container-application'), + frameClass = applicationFrames ? '.frame.frame-application' : '.frame'; + + if(e.ctrlKey || e.which === 74 || e.which === 75) { + // CTRL+Arrow-UP/k and Arrow-Down/j support: + // 1) select the next/prev element + // 2) make sure the newly selected element is within the view-scope + // 3) focus the (right) container, so arrow-up/down (without ctrl) scroll the details + if (e.which === 38 /* arrow up */ || e.which === 75 /* k */) { + $activeLine.prev(frameClass).click(); + scrollIntoView($activeLine, $leftPanel); + $container.focus(); + e.preventDefault(); + } else if (e.which === 40 /* arrow down */ || e.which === 74 /* j */) { + $activeLine.next(frameClass).click(); + scrollIntoView($activeLine, $leftPanel); + $container.focus(); + e.preventDefault(); + } + } else if (e.which == 78 /* n */) { if ($appFramesTab.length) { - setActiveFramesTab($(".frames-tab:not(.frames-tab-active)")); + setActiveFramesTab($('.frames-tab:not(.frames-tab-active)')); } } }); @@ -177,31 +179,31 @@ Zepto(function($) { renderCurrentCodeblock(); // Avoid to quit the page with some protocol (e.g. IntelliJ Platform REST API) - $ajaxEditors.on("click", function(e) { + $ajaxEditors.on('click', function(e){ e.preventDefault(); $.get(this.href); }); // Symfony VarDumper: Close the by default expanded objects - $(".sf-dump-expanded") - .removeClass("sf-dump-expanded") - .addClass("sf-dump-compact"); - $(".sf-dump-toggle span").html("▶"); + $('.sf-dump-expanded') + .removeClass('sf-dump-expanded') + .addClass('sf-dump-compact'); + $('.sf-dump-toggle span').html('▶'); // Make the given frames-tab active function setActiveFramesTab($tab) { - $tab.addClass("frames-tab-active"); + $tab.addClass('frames-tab-active'); - if ($tab.attr("id") == "application-frames-tab") { - $frameContainer.addClass("frames-container-application"); - $allFramesTab.removeClass("frames-tab-active"); + if ($tab.attr('id') == 'application-frames-tab') { + $frameContainer.addClass('frames-container-application'); + $allFramesTab.removeClass('frames-tab-active'); } else { - $frameContainer.removeClass("frames-container-application"); - $appFramesTab.removeClass("frames-tab-active"); + $frameContainer.removeClass('frames-container-application'); + $appFramesTab.removeClass('frames-tab-active'); } } - $("a.frames-tab").on("click", function(e) { + $('a.frames-tab').on('click', function(e) { e.preventDefault(); setActiveFramesTab($(this)); }); diff --git a/vendor/filp/whoops/src/Whoops/Resources/js/zepto.min.js b/vendor/filp/whoops/src/Whoops/Resources/js/zepto.min.js index 161fd3fc03..0b2f97adbb 100644 --- a/vendor/filp/whoops/src/Whoops/Resources/js/zepto.min.js +++ b/vendor/filp/whoops/src/Whoops/Resources/js/zepto.min.js @@ -1,1547 +1,2 @@ /* Zepto v1.1.3 - zepto event ajax form ie - zeptojs.com/license */ -var Zepto = (function() { - function L(t) { - return null == t ? String(t) : j[T.call(t)] || "object"; - } - function Z(t) { - return "function" == L(t); - } - function $(t) { - return null != t && t == t.window; - } - function _(t) { - return null != t && t.nodeType == t.DOCUMENT_NODE; - } - function D(t) { - return "object" == L(t); - } - function R(t) { - return D(t) && !$(t) && Object.getPrototypeOf(t) == Object.prototype; - } - function M(t) { - return "number" == typeof t.length; - } - function k(t) { - return s.call(t, function(t) { - return null != t; - }); - } - function z(t) { - return t.length > 0 ? n.fn.concat.apply([], t) : t; - } - function F(t) { - return t - .replace(/::/g, "/") - .replace(/([A-Z]+)([A-Z][a-z])/g, "$1_$2") - .replace(/([a-z\d])([A-Z])/g, "$1_$2") - .replace(/_/g, "-") - .toLowerCase(); - } - function q(t) { - return t in f ? f[t] : (f[t] = new RegExp("(^|\\s)" + t + "(\\s|$)")); - } - function H(t, e) { - return "number" != typeof e || c[F(t)] ? e : e + "px"; - } - function I(t) { - var e, n; - return ( - u[t] || - ((e = a.createElement(t)), - a.body.appendChild(e), - (n = getComputedStyle(e, "").getPropertyValue("display")), - e.parentNode.removeChild(e), - "none" == n && (n = "block"), - (u[t] = n)), - u[t] - ); - } - function V(t) { - return "children" in t - ? o.call(t.children) - : n.map(t.childNodes, function(t) { - return 1 == t.nodeType ? t : void 0; - }); - } - function U(n, i, r) { - for (e in i) - r && (R(i[e]) || A(i[e])) - ? (R(i[e]) && !R(n[e]) && (n[e] = {}), - A(i[e]) && !A(n[e]) && (n[e] = []), - U(n[e], i[e], r)) - : i[e] !== t && (n[e] = i[e]); - } - function B(t, e) { - return null == e ? n(t) : n(t).filter(e); - } - function J(t, e, n, i) { - return Z(e) ? e.call(t, n, i) : e; - } - function X(t, e, n) { - null == n ? t.removeAttribute(e) : t.setAttribute(e, n); - } - function W(e, n) { - var i = e.className, - r = i && i.baseVal !== t; - return n === t - ? r - ? i.baseVal - : i - : void (r ? (i.baseVal = n) : (e.className = n)); - } - function Y(t) { - var e; - try { - return t - ? "true" == t || - ("false" == t - ? !1 - : "null" == t - ? null - : /^0/.test(t) || isNaN((e = Number(t))) - ? /^[\[\{]/.test(t) - ? n.parseJSON(t) - : t - : e) - : t; - } catch (i) { - return t; - } - } - function G(t, e) { - e(t); - for (var n in t.childNodes) G(t.childNodes[n], e); - } - var t, - e, - n, - i, - C, - N, - r = [], - o = r.slice, - s = r.filter, - a = window.document, - u = {}, - f = {}, - c = { - "column-count": 1, - columns: 1, - "font-weight": 1, - "line-height": 1, - opacity: 1, - "z-index": 1, - zoom: 1 - }, - l = /^\s*<(\w+|!)[^>]*>/, - h = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, - p = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, - d = /^(?:body|html)$/i, - m = /([A-Z])/g, - g = ["val", "css", "html", "text", "data", "width", "height", "offset"], - v = ["after", "prepend", "before", "append"], - y = a.createElement("table"), - x = a.createElement("tr"), - b = { - tr: a.createElement("tbody"), - tbody: y, - thead: y, - tfoot: y, - td: x, - th: x, - "*": a.createElement("div") - }, - w = /complete|loaded|interactive/, - E = /^[\w-]*$/, - j = {}, - T = j.toString, - S = {}, - O = a.createElement("div"), - P = { - tabindex: "tabIndex", - readonly: "readOnly", - for: "htmlFor", - class: "className", - maxlength: "maxLength", - cellspacing: "cellSpacing", - cellpadding: "cellPadding", - rowspan: "rowSpan", - colspan: "colSpan", - usemap: "useMap", - frameborder: "frameBorder", - contenteditable: "contentEditable" - }, - A = - Array.isArray || - function(t) { - return t instanceof Array; - }; - return ( - (S.matches = function(t, e) { - if (!e || !t || 1 !== t.nodeType) return !1; - var n = - t.webkitMatchesSelector || - t.mozMatchesSelector || - t.oMatchesSelector || - t.matchesSelector; - if (n) return n.call(t, e); - var i, - r = t.parentNode, - o = !r; - return ( - o && (r = O).appendChild(t), - (i = ~S.qsa(r, e).indexOf(t)), - o && O.removeChild(t), - i - ); - }), - (C = function(t) { - return t.replace(/-+(.)?/g, function(t, e) { - return e ? e.toUpperCase() : ""; - }); - }), - (N = function(t) { - return s.call(t, function(e, n) { - return t.indexOf(e) == n; - }); - }), - (S.fragment = function(e, i, r) { - var s, u, f; - return ( - h.test(e) && (s = n(a.createElement(RegExp.$1))), - s || - (e.replace && (e = e.replace(p, "<$1>")), - i === t && (i = l.test(e) && RegExp.$1), - i in b || (i = "*"), - (f = b[i]), - (f.innerHTML = "" + e), - (s = n.each(o.call(f.childNodes), function() { - f.removeChild(this); - }))), - R(r) && - ((u = n(s)), - n.each(r, function(t, e) { - g.indexOf(t) > -1 ? u[t](e) : u.attr(t, e); - })), - s - ); - }), - (S.Z = function(t, e) { - return (t = t || []), (t.__proto__ = n.fn), (t.selector = e || ""), t; - }), - (S.isZ = function(t) { - return t instanceof S.Z; - }), - (S.init = function(e, i) { - var r; - if (!e) return S.Z(); - if ("string" == typeof e) - if (((e = e.trim()), "<" == e[0] && l.test(e))) - (r = S.fragment(e, RegExp.$1, i)), (e = null); - else { - if (i !== t) return n(i).find(e); - r = S.qsa(a, e); - } - else { - if (Z(e)) return n(a).ready(e); - if (S.isZ(e)) return e; - if (A(e)) r = k(e); - else if (D(e)) (r = [e]), (e = null); - else if (l.test(e)) - (r = S.fragment(e.trim(), RegExp.$1, i)), (e = null); - else { - if (i !== t) return n(i).find(e); - r = S.qsa(a, e); - } - } - return S.Z(r, e); - }), - (n = function(t, e) { - return S.init(t, e); - }), - (n.extend = function(t) { - var e, - n = o.call(arguments, 1); - return ( - "boolean" == typeof t && ((e = t), (t = n.shift())), - n.forEach(function(n) { - U(t, n, e); - }), - t - ); - }), - (S.qsa = function(t, e) { - var n, - i = "#" == e[0], - r = !i && "." == e[0], - s = i || r ? e.slice(1) : e, - a = E.test(s); - return _(t) && a && i - ? (n = t.getElementById(s)) - ? [n] - : [] - : 1 !== t.nodeType && 9 !== t.nodeType - ? [] - : o.call( - a && !i - ? r - ? t.getElementsByClassName(s) - : t.getElementsByTagName(e) - : t.querySelectorAll(e) - ); - }), - (n.contains = function(t, e) { - return t !== e && t.contains(e); - }), - (n.type = L), - (n.isFunction = Z), - (n.isWindow = $), - (n.isArray = A), - (n.isPlainObject = R), - (n.isEmptyObject = function(t) { - var e; - for (e in t) return !1; - return !0; - }), - (n.inArray = function(t, e, n) { - return r.indexOf.call(e, t, n); - }), - (n.camelCase = C), - (n.trim = function(t) { - return null == t ? "" : String.prototype.trim.call(t); - }), - (n.uuid = 0), - (n.support = {}), - (n.expr = {}), - (n.map = function(t, e) { - var n, - r, - o, - i = []; - if (M(t)) - for (r = 0; r < t.length; r++) (n = e(t[r], r)), null != n && i.push(n); - else for (o in t) (n = e(t[o], o)), null != n && i.push(n); - return z(i); - }), - (n.each = function(t, e) { - var n, i; - if (M(t)) { - for (n = 0; n < t.length; n++) - if (e.call(t[n], n, t[n]) === !1) return t; - } else for (i in t) if (e.call(t[i], i, t[i]) === !1) return t; - return t; - }), - (n.grep = function(t, e) { - return s.call(t, e); - }), - window.JSON && (n.parseJSON = JSON.parse), - n.each( - "Boolean Number String Function Array Date RegExp Object Error".split( - " " - ), - function(t, e) { - j["[object " + e + "]"] = e.toLowerCase(); - } - ), - (n.fn = { - forEach: r.forEach, - reduce: r.reduce, - push: r.push, - sort: r.sort, - indexOf: r.indexOf, - concat: r.concat, - map: function(t) { - return n( - n.map(this, function(e, n) { - return t.call(e, n, e); - }) - ); - }, - slice: function() { - return n(o.apply(this, arguments)); - }, - ready: function(t) { - return ( - w.test(a.readyState) && a.body - ? t(n) - : a.addEventListener( - "DOMContentLoaded", - function() { - t(n); - }, - !1 - ), - this - ); - }, - get: function(e) { - return e === t ? o.call(this) : this[e >= 0 ? e : e + this.length]; - }, - toArray: function() { - return this.get(); - }, - size: function() { - return this.length; - }, - remove: function() { - return this.each(function() { - null != this.parentNode && this.parentNode.removeChild(this); - }); - }, - each: function(t) { - return ( - r.every.call(this, function(e, n) { - return t.call(e, n, e) !== !1; - }), - this - ); - }, - filter: function(t) { - return Z(t) - ? this.not(this.not(t)) - : n( - s.call(this, function(e) { - return S.matches(e, t); - }) - ); - }, - add: function(t, e) { - return n(N(this.concat(n(t, e)))); - }, - is: function(t) { - return this.length > 0 && S.matches(this[0], t); - }, - not: function(e) { - var i = []; - if (Z(e) && e.call !== t) - this.each(function(t) { - e.call(this, t) || i.push(this); - }); - else { - var r = - "string" == typeof e - ? this.filter(e) - : M(e) && Z(e.item) - ? o.call(e) - : n(e); - this.forEach(function(t) { - r.indexOf(t) < 0 && i.push(t); - }); - } - return n(i); - }, - has: function(t) { - return this.filter(function() { - return D(t) - ? n.contains(this, t) - : n(this) - .find(t) - .size(); - }); - }, - eq: function(t) { - return -1 === t ? this.slice(t) : this.slice(t, +t + 1); - }, - first: function() { - var t = this[0]; - return t && !D(t) ? t : n(t); - }, - last: function() { - var t = this[this.length - 1]; - return t && !D(t) ? t : n(t); - }, - find: function(t) { - var e, - i = this; - return (e = - "object" == typeof t - ? n(t).filter(function() { - var t = this; - return r.some.call(i, function(e) { - return n.contains(e, t); - }); - }) - : 1 == this.length - ? n(S.qsa(this[0], t)) - : this.map(function() { - return S.qsa(this, t); - })); - }, - closest: function(t, e) { - var i = this[0], - r = !1; - for ( - "object" == typeof t && (r = n(t)); - i && !(r ? r.indexOf(i) >= 0 : S.matches(i, t)); - - ) - i = i !== e && !_(i) && i.parentNode; - return n(i); - }, - parents: function(t) { - for (var e = [], i = this; i.length > 0; ) - i = n.map(i, function(t) { - return (t = t.parentNode) && !_(t) && e.indexOf(t) < 0 - ? (e.push(t), t) - : void 0; - }); - return B(e, t); - }, - parent: function(t) { - return B(N(this.pluck("parentNode")), t); - }, - children: function(t) { - return B( - this.map(function() { - return V(this); - }), - t - ); - }, - contents: function() { - return this.map(function() { - return o.call(this.childNodes); - }); - }, - siblings: function(t) { - return B( - this.map(function(t, e) { - return s.call(V(e.parentNode), function(t) { - return t !== e; - }); - }), - t - ); - }, - empty: function() { - return this.each(function() { - this.innerHTML = ""; - }); - }, - pluck: function(t) { - return n.map(this, function(e) { - return e[t]; - }); - }, - show: function() { - return this.each(function() { - "none" == this.style.display && (this.style.display = ""), - "none" == getComputedStyle(this, "").getPropertyValue("display") && - (this.style.display = I(this.nodeName)); - }); - }, - replaceWith: function(t) { - return this.before(t).remove(); - }, - wrap: function(t) { - var e = Z(t); - if (this[0] && !e) - var i = n(t).get(0), - r = i.parentNode || this.length > 1; - return this.each(function(o) { - n(this).wrapAll(e ? t.call(this, o) : r ? i.cloneNode(!0) : i); - }); - }, - wrapAll: function(t) { - if (this[0]) { - n(this[0]).before((t = n(t))); - for (var e; (e = t.children()).length; ) t = e.first(); - n(t).append(this); - } - return this; - }, - wrapInner: function(t) { - var e = Z(t); - return this.each(function(i) { - var r = n(this), - o = r.contents(), - s = e ? t.call(this, i) : t; - o.length ? o.wrapAll(s) : r.append(s); - }); - }, - unwrap: function() { - return ( - this.parent().each(function() { - n(this).replaceWith(n(this).children()); - }), - this - ); - }, - clone: function() { - return this.map(function() { - return this.cloneNode(!0); - }); - }, - hide: function() { - return this.css("display", "none"); - }, - toggle: function(e) { - return this.each(function() { - var i = n(this); - (e === t ? "none" == i.css("display") : e) ? i.show() : i.hide(); - }); - }, - prev: function(t) { - return n(this.pluck("previousElementSibling")).filter(t || "*"); - }, - next: function(t) { - return n(this.pluck("nextElementSibling")).filter(t || "*"); - }, - html: function(t) { - return 0 === arguments.length - ? this.length > 0 - ? this[0].innerHTML - : null - : this.each(function(e) { - var i = this.innerHTML; - n(this) - .empty() - .append(J(this, t, e, i)); - }); - }, - text: function(e) { - return 0 === arguments.length - ? this.length > 0 - ? this[0].textContent - : null - : this.each(function() { - this.textContent = e === t ? "" : "" + e; - }); - }, - attr: function(n, i) { - var r; - return "string" == typeof n && i === t - ? 0 == this.length || 1 !== this[0].nodeType - ? t - : "value" == n && "INPUT" == this[0].nodeName - ? this.val() - : !(r = this[0].getAttribute(n)) && n in this[0] - ? this[0][n] - : r - : this.each(function(t) { - if (1 === this.nodeType) - if (D(n)) for (e in n) X(this, e, n[e]); - else X(this, n, J(this, i, t, this.getAttribute(n))); - }); - }, - removeAttr: function(t) { - return this.each(function() { - 1 === this.nodeType && X(this, t); - }); - }, - prop: function(e, n) { - return ( - (e = P[e] || e), - n === t - ? this[0] && this[0][e] - : this.each(function(t) { - this[e] = J(this, n, t, this[e]); - }) - ); - }, - data: function(e, n) { - var i = this.attr("data-" + e.replace(m, "-$1").toLowerCase(), n); - return null !== i ? Y(i) : t; - }, - val: function(t) { - return 0 === arguments.length - ? this[0] && - (this[0].multiple - ? n(this[0]) - .find("option") - .filter(function() { - return this.selected; - }) - .pluck("value") - : this[0].value) - : this.each(function(e) { - this.value = J(this, t, e, this.value); - }); - }, - offset: function(t) { - if (t) - return this.each(function(e) { - var i = n(this), - r = J(this, t, e, i.offset()), - o = i.offsetParent().offset(), - s = { top: r.top - o.top, left: r.left - o.left }; - "static" == i.css("position") && (s.position = "relative"), - i.css(s); - }); - if (0 == this.length) return null; - var e = this[0].getBoundingClientRect(); - return { - left: e.left + window.pageXOffset, - top: e.top + window.pageYOffset, - width: Math.round(e.width), - height: Math.round(e.height) - }; - }, - css: function(t, i) { - if (arguments.length < 2) { - var r = this[0], - o = getComputedStyle(r, ""); - if (!r) return; - if ("string" == typeof t) - return r.style[C(t)] || o.getPropertyValue(t); - if (A(t)) { - var s = {}; - return ( - n.each(A(t) ? t : [t], function(t, e) { - s[e] = r.style[C(e)] || o.getPropertyValue(e); - }), - s - ); - } - } - var a = ""; - if ("string" == L(t)) - i || 0 === i - ? (a = F(t) + ":" + H(t, i)) - : this.each(function() { - this.style.removeProperty(F(t)); - }); - else - for (e in t) - t[e] || 0 === t[e] - ? (a += F(e) + ":" + H(e, t[e]) + ";") - : this.each(function() { - this.style.removeProperty(F(e)); - }); - return this.each(function() { - this.style.cssText += ";" + a; - }); - }, - index: function(t) { - return t - ? this.indexOf(n(t)[0]) - : this.parent() - .children() - .indexOf(this[0]); - }, - hasClass: function(t) { - return t - ? r.some.call( - this, - function(t) { - return this.test(W(t)); - }, - q(t) - ) - : !1; - }, - addClass: function(t) { - return t - ? this.each(function(e) { - i = []; - var r = W(this), - o = J(this, t, e, r); - o.split(/\s+/g).forEach(function(t) { - n(this).hasClass(t) || i.push(t); - }, this), - i.length && W(this, r + (r ? " " : "") + i.join(" ")); - }) - : this; - }, - removeClass: function(e) { - return this.each(function(n) { - return e === t - ? W(this, "") - : ((i = W(this)), - J(this, e, n, i) - .split(/\s+/g) - .forEach(function(t) { - i = i.replace(q(t), " "); - }), - void W(this, i.trim())); - }); - }, - toggleClass: function(e, i) { - return e - ? this.each(function(r) { - var o = n(this), - s = J(this, e, r, W(this)); - s.split(/\s+/g).forEach(function(e) { - (i === t - ? !o.hasClass(e) - : i) - ? o.addClass(e) - : o.removeClass(e); - }); - }) - : this; - }, - scrollTop: function(e) { - if (this.length) { - var n = "scrollTop" in this[0]; - return e === t - ? n - ? this[0].scrollTop - : this[0].pageYOffset - : this.each( - n - ? function() { - this.scrollTop = e; - } - : function() { - this.scrollTo(this.scrollX, e); - } - ); - } - }, - scrollLeft: function(e) { - if (this.length) { - var n = "scrollLeft" in this[0]; - return e === t - ? n - ? this[0].scrollLeft - : this[0].pageXOffset - : this.each( - n - ? function() { - this.scrollLeft = e; - } - : function() { - this.scrollTo(e, this.scrollY); - } - ); - } - }, - position: function() { - if (this.length) { - var t = this[0], - e = this.offsetParent(), - i = this.offset(), - r = d.test(e[0].nodeName) ? { top: 0, left: 0 } : e.offset(); - return ( - (i.top -= parseFloat(n(t).css("margin-top")) || 0), - (i.left -= parseFloat(n(t).css("margin-left")) || 0), - (r.top += parseFloat(n(e[0]).css("border-top-width")) || 0), - (r.left += parseFloat(n(e[0]).css("border-left-width")) || 0), - { top: i.top - r.top, left: i.left - r.left } - ); - } - }, - offsetParent: function() { - return this.map(function() { - for ( - var t = this.offsetParent || a.body; - t && !d.test(t.nodeName) && "static" == n(t).css("position"); - - ) - t = t.offsetParent; - return t; - }); - } - }), - (n.fn.detach = n.fn.remove), - ["width", "height"].forEach(function(e) { - var i = e.replace(/./, function(t) { - return t[0].toUpperCase(); - }); - n.fn[e] = function(r) { - var o, - s = this[0]; - return r === t - ? $(s) - ? s["inner" + i] - : _(s) - ? s.documentElement["scroll" + i] - : (o = this.offset()) && o[e] - : this.each(function(t) { - (s = n(this)), s.css(e, J(this, r, t, s[e]())); - }); - }; - }), - v.forEach(function(t, e) { - var i = e % 2; - (n.fn[t] = function() { - var t, - o, - r = n.map(arguments, function(e) { - return ( - (t = L(e)), - "object" == t || "array" == t || null == e ? e : S.fragment(e) - ); - }), - s = this.length > 1; - return r.length < 1 - ? this - : this.each(function(t, a) { - (o = i ? a : a.parentNode), - (a = - 0 == e - ? a.nextSibling - : 1 == e - ? a.firstChild - : 2 == e - ? a - : null), - r.forEach(function(t) { - if (s) t = t.cloneNode(!0); - else if (!o) return n(t).remove(); - G(o.insertBefore(t, a), function(t) { - null == t.nodeName || - "SCRIPT" !== t.nodeName.toUpperCase() || - (t.type && "text/javascript" !== t.type) || - t.src || - window.eval.call(window, t.innerHTML); - }); - }); - }); - }), - (n.fn[i ? t + "To" : "insert" + (e ? "Before" : "After")] = function( - e - ) { - return n(e)[t](this), this; - }); - }), - (S.Z.prototype = n.fn), - (S.uniq = N), - (S.deserializeValue = Y), - (n.zepto = S), - n - ); -})(); -(window.Zepto = Zepto), - void 0 === window.$ && (window.$ = Zepto), - (function(t) { - function l(t) { - return t._zid || (t._zid = e++); - } - function h(t, e, n, i) { - if (((e = p(e)), e.ns)) var r = d(e.ns); - return (s[l(t)] || []).filter(function(t) { - return !( - !t || - (e.e && t.e != e.e) || - (e.ns && !r.test(t.ns)) || - (n && l(t.fn) !== l(n)) || - (i && t.sel != i) - ); - }); - } - function p(t) { - var e = ("" + t).split("."); - return { - e: e[0], - ns: e - .slice(1) - .sort() - .join(" ") - }; - } - function d(t) { - return new RegExp("(?:^| )" + t.replace(" ", " .* ?") + "(?: |$)"); - } - function m(t, e) { - return (t.del && !u && t.e in f) || !!e; - } - function g(t) { - return c[t] || (u && f[t]) || t; - } - function v(e, i, r, o, a, u, f) { - var h = l(e), - d = s[h] || (s[h] = []); - i.split(/\s/).forEach(function(i) { - if ("ready" == i) return t(document).ready(r); - var s = p(i); - (s.fn = r), - (s.sel = a), - s.e in c && - (r = function(e) { - var n = e.relatedTarget; - return !n || (n !== this && !t.contains(this, n)) - ? s.fn.apply(this, arguments) - : void 0; - }), - (s.del = u); - var l = u || r; - (s.proxy = function(t) { - if (((t = j(t)), !t.isImmediatePropagationStopped())) { - t.data = o; - var i = l.apply(e, t._args == n ? [t] : [t].concat(t._args)); - return i === !1 && (t.preventDefault(), t.stopPropagation()), i; - } - }), - (s.i = d.length), - d.push(s), - "addEventListener" in e && - e.addEventListener(g(s.e), s.proxy, m(s, f)); - }); - } - function y(t, e, n, i, r) { - var o = l(t); - (e || "").split(/\s/).forEach(function(e) { - h(t, e, n, i).forEach(function(e) { - delete s[o][e.i], - "removeEventListener" in t && - t.removeEventListener(g(e.e), e.proxy, m(e, r)); - }); - }); - } - function j(e, i) { - return ( - (i || !e.isDefaultPrevented) && - (i || (i = e), - t.each(E, function(t, n) { - var r = i[t]; - (e[t] = function() { - return (this[n] = x), r && r.apply(i, arguments); - }), - (e[n] = b); - }), - (i.defaultPrevented !== n - ? i.defaultPrevented - : "returnValue" in i - ? i.returnValue === !1 - : i.getPreventDefault && i.getPreventDefault()) && - (e.isDefaultPrevented = x)), - e - ); - } - function T(t) { - var e, - i = { originalEvent: t }; - for (e in t) w.test(e) || t[e] === n || (i[e] = t[e]); - return j(i, t); - } - var n, - e = 1, - i = Array.prototype.slice, - r = t.isFunction, - o = function(t) { - return "string" == typeof t; - }, - s = {}, - a = {}, - u = "onfocusin" in window, - f = { focus: "focusin", blur: "focusout" }, - c = { mouseenter: "mouseover", mouseleave: "mouseout" }; - (a.click = a.mousedown = a.mouseup = a.mousemove = "MouseEvents"), - (t.event = { add: v, remove: y }), - (t.proxy = function(e, n) { - if (r(e)) { - var i = function() { - return e.apply(n, arguments); - }; - return (i._zid = l(e)), i; - } - if (o(n)) return t.proxy(e[n], e); - throw new TypeError("expected function"); - }), - (t.fn.bind = function(t, e, n) { - return this.on(t, e, n); - }), - (t.fn.unbind = function(t, e) { - return this.off(t, e); - }), - (t.fn.one = function(t, e, n, i) { - return this.on(t, e, n, i, 1); - }); - var x = function() { - return !0; - }, - b = function() { - return !1; - }, - w = /^([A-Z]|returnValue$|layer[XY]$)/, - E = { - preventDefault: "isDefaultPrevented", - stopImmediatePropagation: "isImmediatePropagationStopped", - stopPropagation: "isPropagationStopped" - }; - (t.fn.delegate = function(t, e, n) { - return this.on(e, t, n); - }), - (t.fn.undelegate = function(t, e, n) { - return this.off(e, t, n); - }), - (t.fn.live = function(e, n) { - return t(document.body).delegate(this.selector, e, n), this; - }), - (t.fn.die = function(e, n) { - return t(document.body).undelegate(this.selector, e, n), this; - }), - (t.fn.on = function(e, s, a, u, f) { - var c, - l, - h = this; - return e && !o(e) - ? (t.each(e, function(t, e) { - h.on(t, s, a, e, f); - }), - h) - : (o(s) || r(u) || u === !1 || ((u = a), (a = s), (s = n)), - (r(a) || a === !1) && ((u = a), (a = n)), - u === !1 && (u = b), - h.each(function(n, r) { - f && - (c = function(t) { - return y(r, t.type, u), u.apply(this, arguments); - }), - s && - (l = function(e) { - var n, - o = t(e.target) - .closest(s, r) - .get(0); - return o && o !== r - ? ((n = t.extend(T(e), { - currentTarget: o, - liveFired: r - })), - (c || u).apply(o, [n].concat(i.call(arguments, 1)))) - : void 0; - }), - v(r, e, u, a, s, l || c); - })); - }), - (t.fn.off = function(e, i, s) { - var a = this; - return e && !o(e) - ? (t.each(e, function(t, e) { - a.off(t, i, e); - }), - a) - : (o(i) || r(s) || s === !1 || ((s = i), (i = n)), - s === !1 && (s = b), - a.each(function() { - y(this, e, s, i); - })); - }), - (t.fn.trigger = function(e, n) { - return ( - (e = o(e) || t.isPlainObject(e) ? t.Event(e) : j(e)), - (e._args = n), - this.each(function() { - "dispatchEvent" in this - ? this.dispatchEvent(e) - : t(this).triggerHandler(e, n); - }) - ); - }), - (t.fn.triggerHandler = function(e, n) { - var i, r; - return ( - this.each(function(s, a) { - (i = T(o(e) ? t.Event(e) : e)), - (i._args = n), - (i.target = a), - t.each(h(a, e.type || e), function(t, e) { - return ( - (r = e.proxy(i)), - i.isImmediatePropagationStopped() ? !1 : void 0 - ); - }); - }), - r - ); - }), - "focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error" - .split(" ") - .forEach(function(e) { - t.fn[e] = function(t) { - return t ? this.bind(e, t) : this.trigger(e); - }; - }), - ["focus", "blur"].forEach(function(e) { - t.fn[e] = function(t) { - return ( - t - ? this.bind(e, t) - : this.each(function() { - try { - this[e](); - } catch (t) {} - }), - this - ); - }; - }), - (t.Event = function(t, e) { - o(t) || ((e = t), (t = e.type)); - var n = document.createEvent(a[t] || "Events"), - i = !0; - if (e) for (var r in e) "bubbles" == r ? (i = !!e[r]) : (n[r] = e[r]); - return n.initEvent(t, i, !0), j(n); - }); - })(Zepto), - (function(t) { - function l(e, n, i) { - var r = t.Event(n); - return t(e).trigger(r, i), !r.isDefaultPrevented(); - } - function h(t, e, i, r) { - return t.global ? l(e || n, i, r) : void 0; - } - function p(e) { - e.global && 0 === t.active++ && h(e, null, "ajaxStart"); - } - function d(e) { - e.global && !--t.active && h(e, null, "ajaxStop"); - } - function m(t, e) { - var n = e.context; - return e.beforeSend.call(n, t, e) === !1 || - h(e, n, "ajaxBeforeSend", [t, e]) === !1 - ? !1 - : void h(e, n, "ajaxSend", [t, e]); - } - function g(t, e, n, i) { - var r = n.context, - o = "success"; - n.success.call(r, t, o, e), - i && i.resolveWith(r, [t, o, e]), - h(n, r, "ajaxSuccess", [e, n, t]), - y(o, e, n); - } - function v(t, e, n, i, r) { - var o = i.context; - i.error.call(o, n, e, t), - r && r.rejectWith(o, [n, e, t]), - h(i, o, "ajaxError", [n, i, t || e]), - y(e, n, i); - } - function y(t, e, n) { - var i = n.context; - n.complete.call(i, e, t), h(n, i, "ajaxComplete", [e, n]), d(n); - } - function x() {} - function b(t) { - return ( - t && (t = t.split(";", 2)[0]), - (t && - (t == f - ? "html" - : t == u - ? "json" - : s.test(t) - ? "script" - : a.test(t) && "xml")) || - "text" - ); - } - function w(t, e) { - return "" == e ? t : (t + "&" + e).replace(/[&?]{1,2}/, "?"); - } - function E(e) { - e.processData && - e.data && - "string" != t.type(e.data) && - (e.data = t.param(e.data, e.traditional)), - !e.data || - (e.type && "GET" != e.type.toUpperCase()) || - ((e.url = w(e.url, e.data)), (e.data = void 0)); - } - function j(e, n, i, r) { - return ( - t.isFunction(n) && ((r = i), (i = n), (n = void 0)), - t.isFunction(i) || ((r = i), (i = void 0)), - { url: e, data: n, success: i, dataType: r } - ); - } - function S(e, n, i, r) { - var o, - s = t.isArray(n), - a = t.isPlainObject(n); - t.each(n, function(n, u) { - (o = t.type(u)), - r && - (n = i - ? r - : r + "[" + (a || "object" == o || "array" == o ? n : "") + "]"), - !r && s - ? e.add(u.name, u.value) - : "array" == o || (!i && "object" == o) - ? S(e, u, i, n) - : e.add(n, u); - }); - } - var i, - r, - e = 0, - n = window.document, - o = /)<[^<]*)*<\/script>/gi, - s = /^(?:text|application)\/javascript/i, - a = /^(?:text|application)\/xml/i, - u = "application/json", - f = "text/html", - c = /^\s*$/; - (t.active = 0), - (t.ajaxJSONP = function(i, r) { - if (!("type" in i)) return t.ajax(i); - var f, - h, - o = i.jsonpCallback, - s = (t.isFunction(o) ? o() : o) || "jsonp" + ++e, - a = n.createElement("script"), - u = window[s], - c = function(e) { - t(a).triggerHandler("error", e || "abort"); - }, - l = { abort: c }; - return ( - r && r.promise(l), - t(a).on("load error", function(e, n) { - clearTimeout(h), - t(a) - .off() - .remove(), - "error" != e.type && f - ? g(f[0], l, i, r) - : v(null, n || "error", l, i, r), - (window[s] = u), - f && t.isFunction(u) && u(f[0]), - (u = f = void 0); - }), - m(l, i) === !1 - ? (c("abort"), l) - : ((window[s] = function() { - f = arguments; - }), - (a.src = i.url.replace(/\?(.+)=\?/, "?$1=" + s)), - n.head.appendChild(a), - i.timeout > 0 && - (h = setTimeout(function() { - c("timeout"); - }, i.timeout)), - l) - ); - }), - (t.ajaxSettings = { - type: "GET", - beforeSend: x, - success: x, - error: x, - complete: x, - context: null, - global: !0, - xhr: function() { - return new window.XMLHttpRequest(); - }, - accepts: { - script: - "text/javascript, application/javascript, application/x-javascript", - json: u, - xml: "application/xml, text/xml", - html: f, - text: "text/plain" - }, - crossDomain: !1, - timeout: 0, - processData: !0, - cache: !0 - }), - (t.ajax = function(e) { - var n = t.extend({}, e || {}), - o = t.Deferred && t.Deferred(); - for (i in t.ajaxSettings) void 0 === n[i] && (n[i] = t.ajaxSettings[i]); - p(n), - n.crossDomain || - (n.crossDomain = - /^([\w-]+:)?\/\/([^\/]+)/.test(n.url) && - RegExp.$2 != window.location.host), - n.url || (n.url = window.location.toString()), - E(n), - n.cache === !1 && (n.url = w(n.url, "_=" + Date.now())); - var s = n.dataType, - a = /\?.+=\?/.test(n.url); - if ("jsonp" == s || a) - return ( - a || - (n.url = w( - n.url, - n.jsonp ? n.jsonp + "=?" : n.jsonp === !1 ? "" : "callback=?" - )), - t.ajaxJSONP(n, o) - ); - var j, - u = n.accepts[s], - f = {}, - l = function(t, e) { - f[t.toLowerCase()] = [t, e]; - }, - h = /^([\w-]+:)\/\//.test(n.url) - ? RegExp.$1 - : window.location.protocol, - d = n.xhr(), - y = d.setRequestHeader; - if ( - (o && o.promise(d), - n.crossDomain || l("X-Requested-With", "XMLHttpRequest"), - l("Accept", u || "*/*"), - (u = n.mimeType || u) && - (u.indexOf(",") > -1 && (u = u.split(",", 2)[0]), - d.overrideMimeType && d.overrideMimeType(u)), - (n.contentType || - (n.contentType !== !1 && - n.data && - "GET" != n.type.toUpperCase())) && - l( - "Content-Type", - n.contentType || "application/x-www-form-urlencoded" - ), - n.headers) - ) - for (r in n.headers) l(r, n.headers[r]); - if ( - ((d.setRequestHeader = l), - (d.onreadystatechange = function() { - if (4 == d.readyState) { - (d.onreadystatechange = x), clearTimeout(j); - var e, - i = !1; - if ( - (d.status >= 200 && d.status < 300) || - 304 == d.status || - (0 == d.status && "file:" == h) - ) { - (s = s || b(n.mimeType || d.getResponseHeader("content-type"))), - (e = d.responseText); - try { - "script" == s - ? (1, eval)(e) - : "xml" == s - ? (e = d.responseXML) - : "json" == s && (e = c.test(e) ? null : t.parseJSON(e)); - } catch (r) { - i = r; - } - i ? v(i, "parsererror", d, n, o) : g(e, d, n, o); - } else - v(d.statusText || null, d.status ? "error" : "abort", d, n, o); - } - }), - m(d, n) === !1) - ) - return d.abort(), v(null, "abort", d, n, o), d; - if (n.xhrFields) for (r in n.xhrFields) d[r] = n.xhrFields[r]; - var T = "async" in n ? n.async : !0; - d.open(n.type, n.url, T, n.username, n.password); - for (r in f) y.apply(d, f[r]); - return ( - n.timeout > 0 && - (j = setTimeout(function() { - (d.onreadystatechange = x), - d.abort(), - v(null, "timeout", d, n, o); - }, n.timeout)), - d.send(n.data ? n.data : null), - d - ); - }), - (t.get = function() { - return t.ajax(j.apply(null, arguments)); - }), - (t.post = function() { - var e = j.apply(null, arguments); - return (e.type = "POST"), t.ajax(e); - }), - (t.getJSON = function() { - var e = j.apply(null, arguments); - return (e.dataType = "json"), t.ajax(e); - }), - (t.fn.load = function(e, n, i) { - if (!this.length) return this; - var a, - r = this, - s = e.split(/\s/), - u = j(e, n, i), - f = u.success; - return ( - s.length > 1 && ((u.url = s[0]), (a = s[1])), - (u.success = function(e) { - r.html( - a - ? t("
") - .html(e.replace(o, "")) - .find(a) - : e - ), - f && f.apply(r, arguments); - }), - t.ajax(u), - this - ); - }); - var T = encodeURIComponent; - t.param = function(t, e) { - var n = []; - return ( - (n.add = function(t, e) { - this.push(T(t) + "=" + T(e)); - }), - S(n, t, e), - n.join("&").replace(/%20/g, "+") - ); - }; - })(Zepto), - (function(t) { - (t.fn.serializeArray = function() { - var n, - e = []; - return ( - t([].slice.call(this.get(0).elements)).each(function() { - n = t(this); - var i = n.attr("type"); - "fieldset" != this.nodeName.toLowerCase() && - !this.disabled && - "submit" != i && - "reset" != i && - "button" != i && - (("radio" != i && "checkbox" != i) || this.checked) && - e.push({ name: n.attr("name"), value: n.val() }); - }), - e - ); - }), - (t.fn.serialize = function() { - var t = []; - return ( - this.serializeArray().forEach(function(e) { - t.push( - encodeURIComponent(e.name) + "=" + encodeURIComponent(e.value) - ); - }), - t.join("&") - ); - }), - (t.fn.submit = function(e) { - if (e) this.bind("submit", e); - else if (this.length) { - var n = t.Event("submit"); - this.eq(0).trigger(n), n.isDefaultPrevented() || this.get(0).submit(); - } - return this; - }); - })(Zepto), - (function(t) { - "__proto__" in {} || - t.extend(t.zepto, { - Z: function(e, n) { - return ( - (e = e || []), - t.extend(e, t.fn), - (e.selector = n || ""), - (e.__Z = !0), - e - ); - }, - isZ: function(e) { - return "array" === t.type(e) && "__Z" in e; - } - }); - try { - getComputedStyle(void 0); - } catch (e) { - var n = getComputedStyle; - window.getComputedStyle = function(t) { - try { - return n(t); - } catch (e) { - return null; - } - }; - } - })(Zepto); +var Zepto=function(){function L(t){return null==t?String(t):j[T.call(t)]||"object"}function Z(t){return"function"==L(t)}function $(t){return null!=t&&t==t.window}function _(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function D(t){return"object"==L(t)}function R(t){return D(t)&&!$(t)&&Object.getPrototypeOf(t)==Object.prototype}function M(t){return"number"==typeof t.length}function k(t){return s.call(t,function(t){return null!=t})}function z(t){return t.length>0?n.fn.concat.apply([],t):t}function F(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function q(t){return t in f?f[t]:f[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function H(t,e){return"number"!=typeof e||c[F(t)]?e:e+"px"}function I(t){var e,n;return u[t]||(e=a.createElement(t),a.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),u[t]=n),u[t]}function V(t){return"children"in t?o.call(t.children):n.map(t.childNodes,function(t){return 1==t.nodeType?t:void 0})}function U(n,i,r){for(e in i)r&&(R(i[e])||A(i[e]))?(R(i[e])&&!R(n[e])&&(n[e]={}),A(i[e])&&!A(n[e])&&(n[e]=[]),U(n[e],i[e],r)):i[e]!==t&&(n[e]=i[e])}function B(t,e){return null==e?n(t):n(t).filter(e)}function J(t,e,n,i){return Z(e)?e.call(t,n,i):e}function X(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function W(e,n){var i=e.className,r=i&&i.baseVal!==t;return n===t?r?i.baseVal:i:void(r?i.baseVal=n:e.className=n)}function Y(t){var e;try{return t?"true"==t||("false"==t?!1:"null"==t?null:/^0/.test(t)||isNaN(e=Number(t))?/^[\[\{]/.test(t)?n.parseJSON(t):t:e):t}catch(i){return t}}function G(t,e){e(t);for(var n in t.childNodes)G(t.childNodes[n],e)}var t,e,n,i,C,N,r=[],o=r.slice,s=r.filter,a=window.document,u={},f={},c={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},l=/^\s*<(\w+|!)[^>]*>/,h=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,p=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,d=/^(?:body|html)$/i,m=/([A-Z])/g,g=["val","css","html","text","data","width","height","offset"],v=["after","prepend","before","append"],y=a.createElement("table"),x=a.createElement("tr"),b={tr:a.createElement("tbody"),tbody:y,thead:y,tfoot:y,td:x,th:x,"*":a.createElement("div")},w=/complete|loaded|interactive/,E=/^[\w-]*$/,j={},T=j.toString,S={},O=a.createElement("div"),P={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},A=Array.isArray||function(t){return t instanceof Array};return S.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var n=t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var i,r=t.parentNode,o=!r;return o&&(r=O).appendChild(t),i=~S.qsa(r,e).indexOf(t),o&&O.removeChild(t),i},C=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},N=function(t){return s.call(t,function(e,n){return t.indexOf(e)==n})},S.fragment=function(e,i,r){var s,u,f;return h.test(e)&&(s=n(a.createElement(RegExp.$1))),s||(e.replace&&(e=e.replace(p,"<$1>")),i===t&&(i=l.test(e)&&RegExp.$1),i in b||(i="*"),f=b[i],f.innerHTML=""+e,s=n.each(o.call(f.childNodes),function(){f.removeChild(this)})),R(r)&&(u=n(s),n.each(r,function(t,e){g.indexOf(t)>-1?u[t](e):u.attr(t,e)})),s},S.Z=function(t,e){return t=t||[],t.__proto__=n.fn,t.selector=e||"",t},S.isZ=function(t){return t instanceof S.Z},S.init=function(e,i){var r;if(!e)return S.Z();if("string"==typeof e)if(e=e.trim(),"<"==e[0]&&l.test(e))r=S.fragment(e,RegExp.$1,i),e=null;else{if(i!==t)return n(i).find(e);r=S.qsa(a,e)}else{if(Z(e))return n(a).ready(e);if(S.isZ(e))return e;if(A(e))r=k(e);else if(D(e))r=[e],e=null;else if(l.test(e))r=S.fragment(e.trim(),RegExp.$1,i),e=null;else{if(i!==t)return n(i).find(e);r=S.qsa(a,e)}}return S.Z(r,e)},n=function(t,e){return S.init(t,e)},n.extend=function(t){var e,n=o.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach(function(n){U(t,n,e)}),t},S.qsa=function(t,e){var n,i="#"==e[0],r=!i&&"."==e[0],s=i||r?e.slice(1):e,a=E.test(s);return _(t)&&a&&i?(n=t.getElementById(s))?[n]:[]:1!==t.nodeType&&9!==t.nodeType?[]:o.call(a&&!i?r?t.getElementsByClassName(s):t.getElementsByTagName(e):t.querySelectorAll(e))},n.contains=function(t,e){return t!==e&&t.contains(e)},n.type=L,n.isFunction=Z,n.isWindow=$,n.isArray=A,n.isPlainObject=R,n.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},n.inArray=function(t,e,n){return r.indexOf.call(e,t,n)},n.camelCase=C,n.trim=function(t){return null==t?"":String.prototype.trim.call(t)},n.uuid=0,n.support={},n.expr={},n.map=function(t,e){var n,r,o,i=[];if(M(t))for(r=0;r=0?e:e+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){return r.every.call(this,function(e,n){return t.call(e,n,e)!==!1}),this},filter:function(t){return Z(t)?this.not(this.not(t)):n(s.call(this,function(e){return S.matches(e,t)}))},add:function(t,e){return n(N(this.concat(n(t,e))))},is:function(t){return this.length>0&&S.matches(this[0],t)},not:function(e){var i=[];if(Z(e)&&e.call!==t)this.each(function(t){e.call(this,t)||i.push(this)});else{var r="string"==typeof e?this.filter(e):M(e)&&Z(e.item)?o.call(e):n(e);this.forEach(function(t){r.indexOf(t)<0&&i.push(t)})}return n(i)},has:function(t){return this.filter(function(){return D(t)?n.contains(this,t):n(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!D(t)?t:n(t)},last:function(){var t=this[this.length-1];return t&&!D(t)?t:n(t)},find:function(t){var e,i=this;return e="object"==typeof t?n(t).filter(function(){var t=this;return r.some.call(i,function(e){return n.contains(e,t)})}):1==this.length?n(S.qsa(this[0],t)):this.map(function(){return S.qsa(this,t)})},closest:function(t,e){var i=this[0],r=!1;for("object"==typeof t&&(r=n(t));i&&!(r?r.indexOf(i)>=0:S.matches(i,t));)i=i!==e&&!_(i)&&i.parentNode;return n(i)},parents:function(t){for(var e=[],i=this;i.length>0;)i=n.map(i,function(t){return(t=t.parentNode)&&!_(t)&&e.indexOf(t)<0?(e.push(t),t):void 0});return B(e,t)},parent:function(t){return B(N(this.pluck("parentNode")),t)},children:function(t){return B(this.map(function(){return V(this)}),t)},contents:function(){return this.map(function(){return o.call(this.childNodes)})},siblings:function(t){return B(this.map(function(t,e){return s.call(V(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return n.map(this,function(e){return e[t]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=I(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=Z(t);if(this[0]&&!e)var i=n(t).get(0),r=i.parentNode||this.length>1;return this.each(function(o){n(this).wrapAll(e?t.call(this,o):r?i.cloneNode(!0):i)})},wrapAll:function(t){if(this[0]){n(this[0]).before(t=n(t));for(var e;(e=t.children()).length;)t=e.first();n(t).append(this)}return this},wrapInner:function(t){var e=Z(t);return this.each(function(i){var r=n(this),o=r.contents(),s=e?t.call(this,i):t;o.length?o.wrapAll(s):r.append(s)})},unwrap:function(){return this.parent().each(function(){n(this).replaceWith(n(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(e){return this.each(function(){var i=n(this);(e===t?"none"==i.css("display"):e)?i.show():i.hide()})},prev:function(t){return n(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return n(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0===arguments.length?this.length>0?this[0].innerHTML:null:this.each(function(e){var i=this.innerHTML;n(this).empty().append(J(this,t,e,i))})},text:function(e){return 0===arguments.length?this.length>0?this[0].textContent:null:this.each(function(){this.textContent=e===t?"":""+e})},attr:function(n,i){var r;return"string"==typeof n&&i===t?0==this.length||1!==this[0].nodeType?t:"value"==n&&"INPUT"==this[0].nodeName?this.val():!(r=this[0].getAttribute(n))&&n in this[0]?this[0][n]:r:this.each(function(t){if(1===this.nodeType)if(D(n))for(e in n)X(this,e,n[e]);else X(this,n,J(this,i,t,this.getAttribute(n)))})},removeAttr:function(t){return this.each(function(){1===this.nodeType&&X(this,t)})},prop:function(e,n){return e=P[e]||e,n===t?this[0]&&this[0][e]:this.each(function(t){this[e]=J(this,n,t,this[e])})},data:function(e,n){var i=this.attr("data-"+e.replace(m,"-$1").toLowerCase(),n);return null!==i?Y(i):t},val:function(t){return 0===arguments.length?this[0]&&(this[0].multiple?n(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value):this.each(function(e){this.value=J(this,t,e,this.value)})},offset:function(t){if(t)return this.each(function(e){var i=n(this),r=J(this,t,e,i.offset()),o=i.offsetParent().offset(),s={top:r.top-o.top,left:r.left-o.left};"static"==i.css("position")&&(s.position="relative"),i.css(s)});if(0==this.length)return null;var e=this[0].getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,width:Math.round(e.width),height:Math.round(e.height)}},css:function(t,i){if(arguments.length<2){var r=this[0],o=getComputedStyle(r,"");if(!r)return;if("string"==typeof t)return r.style[C(t)]||o.getPropertyValue(t);if(A(t)){var s={};return n.each(A(t)?t:[t],function(t,e){s[e]=r.style[C(e)]||o.getPropertyValue(e)}),s}}var a="";if("string"==L(t))i||0===i?a=F(t)+":"+H(t,i):this.each(function(){this.style.removeProperty(F(t))});else for(e in t)t[e]||0===t[e]?a+=F(e)+":"+H(e,t[e])+";":this.each(function(){this.style.removeProperty(F(e))});return this.each(function(){this.style.cssText+=";"+a})},index:function(t){return t?this.indexOf(n(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return t?r.some.call(this,function(t){return this.test(W(t))},q(t)):!1},addClass:function(t){return t?this.each(function(e){i=[];var r=W(this),o=J(this,t,e,r);o.split(/\s+/g).forEach(function(t){n(this).hasClass(t)||i.push(t)},this),i.length&&W(this,r+(r?" ":"")+i.join(" "))}):this},removeClass:function(e){return this.each(function(n){return e===t?W(this,""):(i=W(this),J(this,e,n,i).split(/\s+/g).forEach(function(t){i=i.replace(q(t)," ")}),void W(this,i.trim()))})},toggleClass:function(e,i){return e?this.each(function(r){var o=n(this),s=J(this,e,r,W(this));s.split(/\s+/g).forEach(function(e){(i===t?!o.hasClass(e):i)?o.addClass(e):o.removeClass(e)})}):this},scrollTop:function(e){if(this.length){var n="scrollTop"in this[0];return e===t?n?this[0].scrollTop:this[0].pageYOffset:this.each(n?function(){this.scrollTop=e}:function(){this.scrollTo(this.scrollX,e)})}},scrollLeft:function(e){if(this.length){var n="scrollLeft"in this[0];return e===t?n?this[0].scrollLeft:this[0].pageXOffset:this.each(n?function(){this.scrollLeft=e}:function(){this.scrollTo(e,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),i=this.offset(),r=d.test(e[0].nodeName)?{top:0,left:0}:e.offset();return i.top-=parseFloat(n(t).css("margin-top"))||0,i.left-=parseFloat(n(t).css("margin-left"))||0,r.top+=parseFloat(n(e[0]).css("border-top-width"))||0,r.left+=parseFloat(n(e[0]).css("border-left-width"))||0,{top:i.top-r.top,left:i.left-r.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||a.body;t&&!d.test(t.nodeName)&&"static"==n(t).css("position");)t=t.offsetParent;return t})}},n.fn.detach=n.fn.remove,["width","height"].forEach(function(e){var i=e.replace(/./,function(t){return t[0].toUpperCase()});n.fn[e]=function(r){var o,s=this[0];return r===t?$(s)?s["inner"+i]:_(s)?s.documentElement["scroll"+i]:(o=this.offset())&&o[e]:this.each(function(t){s=n(this),s.css(e,J(this,r,t,s[e]()))})}}),v.forEach(function(t,e){var i=e%2;n.fn[t]=function(){var t,o,r=n.map(arguments,function(e){return t=L(e),"object"==t||"array"==t||null==e?e:S.fragment(e)}),s=this.length>1;return r.length<1?this:this.each(function(t,a){o=i?a:a.parentNode,a=0==e?a.nextSibling:1==e?a.firstChild:2==e?a:null,r.forEach(function(t){if(s)t=t.cloneNode(!0);else if(!o)return n(t).remove();G(o.insertBefore(t,a),function(t){null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/javascript"!==t.type||t.src||window.eval.call(window,t.innerHTML)})})})},n.fn[i?t+"To":"insert"+(e?"Before":"After")]=function(e){return n(e)[t](this),this}}),S.Z.prototype=n.fn,S.uniq=N,S.deserializeValue=Y,n.zepto=S,n}();window.Zepto=Zepto,void 0===window.$&&(window.$=Zepto),function(t){function l(t){return t._zid||(t._zid=e++)}function h(t,e,n,i){if(e=p(e),e.ns)var r=d(e.ns);return(s[l(t)]||[]).filter(function(t){return!(!t||e.e&&t.e!=e.e||e.ns&&!r.test(t.ns)||n&&l(t.fn)!==l(n)||i&&t.sel!=i)})}function p(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function d(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function m(t,e){return t.del&&!u&&t.e in f||!!e}function g(t){return c[t]||u&&f[t]||t}function v(e,i,r,o,a,u,f){var h=l(e),d=s[h]||(s[h]=[]);i.split(/\s/).forEach(function(i){if("ready"==i)return t(document).ready(r);var s=p(i);s.fn=r,s.sel=a,s.e in c&&(r=function(e){var n=e.relatedTarget;return!n||n!==this&&!t.contains(this,n)?s.fn.apply(this,arguments):void 0}),s.del=u;var l=u||r;s.proxy=function(t){if(t=j(t),!t.isImmediatePropagationStopped()){t.data=o;var i=l.apply(e,t._args==n?[t]:[t].concat(t._args));return i===!1&&(t.preventDefault(),t.stopPropagation()),i}},s.i=d.length,d.push(s),"addEventListener"in e&&e.addEventListener(g(s.e),s.proxy,m(s,f))})}function y(t,e,n,i,r){var o=l(t);(e||"").split(/\s/).forEach(function(e){h(t,e,n,i).forEach(function(e){delete s[o][e.i],"removeEventListener"in t&&t.removeEventListener(g(e.e),e.proxy,m(e,r))})})}function j(e,i){return(i||!e.isDefaultPrevented)&&(i||(i=e),t.each(E,function(t,n){var r=i[t];e[t]=function(){return this[n]=x,r&&r.apply(i,arguments)},e[n]=b}),(i.defaultPrevented!==n?i.defaultPrevented:"returnValue"in i?i.returnValue===!1:i.getPreventDefault&&i.getPreventDefault())&&(e.isDefaultPrevented=x)),e}function T(t){var e,i={originalEvent:t};for(e in t)w.test(e)||t[e]===n||(i[e]=t[e]);return j(i,t)}var n,e=1,i=Array.prototype.slice,r=t.isFunction,o=function(t){return"string"==typeof t},s={},a={},u="onfocusin"in window,f={focus:"focusin",blur:"focusout"},c={mouseenter:"mouseover",mouseleave:"mouseout"};a.click=a.mousedown=a.mouseup=a.mousemove="MouseEvents",t.event={add:v,remove:y},t.proxy=function(e,n){if(r(e)){var i=function(){return e.apply(n,arguments)};return i._zid=l(e),i}if(o(n))return t.proxy(e[n],e);throw new TypeError("expected function")},t.fn.bind=function(t,e,n){return this.on(t,e,n)},t.fn.unbind=function(t,e){return this.off(t,e)},t.fn.one=function(t,e,n,i){return this.on(t,e,n,i,1)};var x=function(){return!0},b=function(){return!1},w=/^([A-Z]|returnValue$|layer[XY]$)/,E={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};t.fn.delegate=function(t,e,n){return this.on(e,t,n)},t.fn.undelegate=function(t,e,n){return this.off(e,t,n)},t.fn.live=function(e,n){return t(document.body).delegate(this.selector,e,n),this},t.fn.die=function(e,n){return t(document.body).undelegate(this.selector,e,n),this},t.fn.on=function(e,s,a,u,f){var c,l,h=this;return e&&!o(e)?(t.each(e,function(t,e){h.on(t,s,a,e,f)}),h):(o(s)||r(u)||u===!1||(u=a,a=s,s=n),(r(a)||a===!1)&&(u=a,a=n),u===!1&&(u=b),h.each(function(n,r){f&&(c=function(t){return y(r,t.type,u),u.apply(this,arguments)}),s&&(l=function(e){var n,o=t(e.target).closest(s,r).get(0);return o&&o!==r?(n=t.extend(T(e),{currentTarget:o,liveFired:r}),(c||u).apply(o,[n].concat(i.call(arguments,1)))):void 0}),v(r,e,u,a,s,l||c)}))},t.fn.off=function(e,i,s){var a=this;return e&&!o(e)?(t.each(e,function(t,e){a.off(t,i,e)}),a):(o(i)||r(s)||s===!1||(s=i,i=n),s===!1&&(s=b),a.each(function(){y(this,e,s,i)}))},t.fn.trigger=function(e,n){return e=o(e)||t.isPlainObject(e)?t.Event(e):j(e),e._args=n,this.each(function(){"dispatchEvent"in this?this.dispatchEvent(e):t(this).triggerHandler(e,n)})},t.fn.triggerHandler=function(e,n){var i,r;return this.each(function(s,a){i=T(o(e)?t.Event(e):e),i._args=n,i.target=a,t.each(h(a,e.type||e),function(t,e){return r=e.proxy(i),i.isImmediatePropagationStopped()?!1:void 0})}),r},"focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(e){t.fn[e]=function(t){return t?this.bind(e,t):this.trigger(e)}}),["focus","blur"].forEach(function(e){t.fn[e]=function(t){return t?this.bind(e,t):this.each(function(){try{this[e]()}catch(t){}}),this}}),t.Event=function(t,e){o(t)||(e=t,t=e.type);var n=document.createEvent(a[t]||"Events"),i=!0;if(e)for(var r in e)"bubbles"==r?i=!!e[r]:n[r]=e[r];return n.initEvent(t,i,!0),j(n)}}(Zepto),function(t){function l(e,n,i){var r=t.Event(n);return t(e).trigger(r,i),!r.isDefaultPrevented()}function h(t,e,i,r){return t.global?l(e||n,i,r):void 0}function p(e){e.global&&0===t.active++&&h(e,null,"ajaxStart")}function d(e){e.global&&!--t.active&&h(e,null,"ajaxStop")}function m(t,e){var n=e.context;return e.beforeSend.call(n,t,e)===!1||h(e,n,"ajaxBeforeSend",[t,e])===!1?!1:void h(e,n,"ajaxSend",[t,e])}function g(t,e,n,i){var r=n.context,o="success";n.success.call(r,t,o,e),i&&i.resolveWith(r,[t,o,e]),h(n,r,"ajaxSuccess",[e,n,t]),y(o,e,n)}function v(t,e,n,i,r){var o=i.context;i.error.call(o,n,e,t),r&&r.rejectWith(o,[n,e,t]),h(i,o,"ajaxError",[n,i,t||e]),y(e,n,i)}function y(t,e,n){var i=n.context;n.complete.call(i,e,t),h(n,i,"ajaxComplete",[e,n]),d(n)}function x(){}function b(t){return t&&(t=t.split(";",2)[0]),t&&(t==f?"html":t==u?"json":s.test(t)?"script":a.test(t)&&"xml")||"text"}function w(t,e){return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function E(e){e.processData&&e.data&&"string"!=t.type(e.data)&&(e.data=t.param(e.data,e.traditional)),!e.data||e.type&&"GET"!=e.type.toUpperCase()||(e.url=w(e.url,e.data),e.data=void 0)}function j(e,n,i,r){return t.isFunction(n)&&(r=i,i=n,n=void 0),t.isFunction(i)||(r=i,i=void 0),{url:e,data:n,success:i,dataType:r}}function S(e,n,i,r){var o,s=t.isArray(n),a=t.isPlainObject(n);t.each(n,function(n,u){o=t.type(u),r&&(n=i?r:r+"["+(a||"object"==o||"array"==o?n:"")+"]"),!r&&s?e.add(u.name,u.value):"array"==o||!i&&"object"==o?S(e,u,i,n):e.add(n,u)})}var i,r,e=0,n=window.document,o=/)<[^<]*)*<\/script>/gi,s=/^(?:text|application)\/javascript/i,a=/^(?:text|application)\/xml/i,u="application/json",f="text/html",c=/^\s*$/;t.active=0,t.ajaxJSONP=function(i,r){if(!("type"in i))return t.ajax(i);var f,h,o=i.jsonpCallback,s=(t.isFunction(o)?o():o)||"jsonp"+ ++e,a=n.createElement("script"),u=window[s],c=function(e){t(a).triggerHandler("error",e||"abort")},l={abort:c};return r&&r.promise(l),t(a).on("load error",function(e,n){clearTimeout(h),t(a).off().remove(),"error"!=e.type&&f?g(f[0],l,i,r):v(null,n||"error",l,i,r),window[s]=u,f&&t.isFunction(u)&&u(f[0]),u=f=void 0}),m(l,i)===!1?(c("abort"),l):(window[s]=function(){f=arguments},a.src=i.url.replace(/\?(.+)=\?/,"?$1="+s),n.head.appendChild(a),i.timeout>0&&(h=setTimeout(function(){c("timeout")},i.timeout)),l)},t.ajaxSettings={type:"GET",beforeSend:x,success:x,error:x,complete:x,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:u,xml:"application/xml, text/xml",html:f,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0},t.ajax=function(e){var n=t.extend({},e||{}),o=t.Deferred&&t.Deferred();for(i in t.ajaxSettings)void 0===n[i]&&(n[i]=t.ajaxSettings[i]);p(n),n.crossDomain||(n.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(n.url)&&RegExp.$2!=window.location.host),n.url||(n.url=window.location.toString()),E(n),n.cache===!1&&(n.url=w(n.url,"_="+Date.now()));var s=n.dataType,a=/\?.+=\?/.test(n.url);if("jsonp"==s||a)return a||(n.url=w(n.url,n.jsonp?n.jsonp+"=?":n.jsonp===!1?"":"callback=?")),t.ajaxJSONP(n,o);var j,u=n.accepts[s],f={},l=function(t,e){f[t.toLowerCase()]=[t,e]},h=/^([\w-]+:)\/\//.test(n.url)?RegExp.$1:window.location.protocol,d=n.xhr(),y=d.setRequestHeader;if(o&&o.promise(d),n.crossDomain||l("X-Requested-With","XMLHttpRequest"),l("Accept",u||"*/*"),(u=n.mimeType||u)&&(u.indexOf(",")>-1&&(u=u.split(",",2)[0]),d.overrideMimeType&&d.overrideMimeType(u)),(n.contentType||n.contentType!==!1&&n.data&&"GET"!=n.type.toUpperCase())&&l("Content-Type",n.contentType||"application/x-www-form-urlencoded"),n.headers)for(r in n.headers)l(r,n.headers[r]);if(d.setRequestHeader=l,d.onreadystatechange=function(){if(4==d.readyState){d.onreadystatechange=x,clearTimeout(j);var e,i=!1;if(d.status>=200&&d.status<300||304==d.status||0==d.status&&"file:"==h){s=s||b(n.mimeType||d.getResponseHeader("content-type")),e=d.responseText;try{"script"==s?(1,eval)(e):"xml"==s?e=d.responseXML:"json"==s&&(e=c.test(e)?null:t.parseJSON(e))}catch(r){i=r}i?v(i,"parsererror",d,n,o):g(e,d,n,o)}else v(d.statusText||null,d.status?"error":"abort",d,n,o)}},m(d,n)===!1)return d.abort(),v(null,"abort",d,n,o),d;if(n.xhrFields)for(r in n.xhrFields)d[r]=n.xhrFields[r];var T="async"in n?n.async:!0;d.open(n.type,n.url,T,n.username,n.password);for(r in f)y.apply(d,f[r]);return n.timeout>0&&(j=setTimeout(function(){d.onreadystatechange=x,d.abort(),v(null,"timeout",d,n,o)},n.timeout)),d.send(n.data?n.data:null),d},t.get=function(){return t.ajax(j.apply(null,arguments))},t.post=function(){var e=j.apply(null,arguments);return e.type="POST",t.ajax(e)},t.getJSON=function(){var e=j.apply(null,arguments);return e.dataType="json",t.ajax(e)},t.fn.load=function(e,n,i){if(!this.length)return this;var a,r=this,s=e.split(/\s/),u=j(e,n,i),f=u.success;return s.length>1&&(u.url=s[0],a=s[1]),u.success=function(e){r.html(a?t("
").html(e.replace(o,"")).find(a):e),f&&f.apply(r,arguments)},t.ajax(u),this};var T=encodeURIComponent;t.param=function(t,e){var n=[];return n.add=function(t,e){this.push(T(t)+"="+T(e))},S(n,t,e),n.join("&").replace(/%20/g,"+")}}(Zepto),function(t){t.fn.serializeArray=function(){var n,e=[];return t([].slice.call(this.get(0).elements)).each(function(){n=t(this);var i=n.attr("type");"fieldset"!=this.nodeName.toLowerCase()&&!this.disabled&&"submit"!=i&&"reset"!=i&&"button"!=i&&("radio"!=i&&"checkbox"!=i||this.checked)&&e.push({name:n.attr("name"),value:n.val()})}),e},t.fn.serialize=function(){var t=[];return this.serializeArray().forEach(function(e){t.push(encodeURIComponent(e.name)+"="+encodeURIComponent(e.value))}),t.join("&")},t.fn.submit=function(e){if(e)this.bind("submit",e);else if(this.length){var n=t.Event("submit");this.eq(0).trigger(n),n.isDefaultPrevented()||this.get(0).submit()}return this}}(Zepto),function(t){"__proto__"in{}||t.extend(t.zepto,{Z:function(e,n){return e=e||[],t.extend(e,t.fn),e.selector=n||"",e.__Z=!0,e},isZ:function(e){return"array"===t.type(e)&&"__Z"in e}});try{getComputedStyle(void 0)}catch(e){var n=getComputedStyle;window.getComputedStyle=function(t){try{return n(t)}catch(e){return null}}}}(Zepto); diff --git a/vendor/laminas/laminas-zendframework-bridge/config/replacements.php b/vendor/laminas/laminas-zendframework-bridge/config/replacements.php index d09bddfc88..1dedebacd8 100644 --- a/vendor/laminas/laminas-zendframework-bridge/config/replacements.php +++ b/vendor/laminas/laminas-zendframework-bridge/config/replacements.php @@ -81,186 +81,51 @@ 'Zend\\XmlRpc' => 'Laminas\\XmlRpc', 'ZendOAuth' => 'Laminas\\OAuth', - 'Zend\\\\AuraDi\\\\Config' => 'Laminas\\\\AuraDi\\\\Config', - 'Zend\\\\Authentication' => 'Laminas\\\\Authentication', - 'Zend\\\\Barcode' => 'Laminas\\\\Barcode', - 'Zend\\\\Cache' => 'Laminas\\\\Cache', - 'Zend\\\\Captcha' => 'Laminas\\\\Captcha', - 'Zend\\\\Code' => 'Laminas\\\\Code', - 'ZendCodingStandard\\\\Sniffs' => 'LaminasCodingStandard\\\\Sniffs', - 'ZendCodingStandard\\\\Utils' => 'LaminasCodingStandard\\\\Utils', - 'Zend\\\\ComponentInstaller' => 'Laminas\\\\ComponentInstaller', - 'Zend\\\\Config' => 'Laminas\\\\Config', - 'Zend\\\\ConfigAggregator' => 'Laminas\\\\ConfigAggregator', - 'Zend\\\\ConfigAggregatorModuleManager' => 'Laminas\\\\ConfigAggregatorModuleManager', - 'Zend\\\\ConfigAggregatorParameters' => 'Laminas\\\\ConfigAggregatorParameters', - 'Zend\\\\Console' => 'Laminas\\\\Console', - 'Zend\\\\ContainerConfigTest' => 'Laminas\\\\ContainerConfigTest', - 'Zend\\\\Crypt' => 'Laminas\\\\Crypt', - 'Zend\\\\Db' => 'Laminas\\\\Db', - 'Zend\\\\Di' => 'Laminas\\\\Di', - 'Zend\\\\Diactoros' => 'Laminas\\\\Diactoros', - 'ZendDiagnostics\\\\Check' => 'Laminas\\\\Diagnostics\\\\Check', - 'ZendDiagnostics\\\\Result' => 'Laminas\\\\Diagnostics\\\\Result', - 'ZendDiagnostics\\\\Runner' => 'Laminas\\\\Diagnostics\\\\Runner', - 'Zend\\\\Dom' => 'Laminas\\\\Dom', - 'Zend\\\\Escaper' => 'Laminas\\\\Escaper', - 'Zend\\\\EventManager' => 'Laminas\\\\EventManager', - 'Zend\\\\Feed' => 'Laminas\\\\Feed', - 'Zend\\\\File' => 'Laminas\\\\File', - 'Zend\\\\Filter' => 'Laminas\\\\Filter', - 'Zend\\\\Form' => 'Laminas\\\\Form', - 'Zend\\\\Http' => 'Laminas\\\\Http', - 'Zend\\\\HttpHandlerRunner' => 'Laminas\\\\HttpHandlerRunner', - 'Zend\\\\Hydrator' => 'Laminas\\\\Hydrator', - 'Zend\\\\I18n' => 'Laminas\\\\I18n', - 'Zend\\\\InputFilter' => 'Laminas\\\\InputFilter', - 'Zend\\\\Json' => 'Laminas\\\\Json', - 'Zend\\\\Ldap' => 'Laminas\\\\Ldap', - 'Zend\\\\Loader' => 'Laminas\\\\Loader', - 'Zend\\\\Log' => 'Laminas\\\\Log', - 'Zend\\\\Mail' => 'Laminas\\\\Mail', - 'Zend\\\\Math' => 'Laminas\\\\Math', - 'Zend\\\\Memory' => 'Laminas\\\\Memory', - 'Zend\\\\Mime' => 'Laminas\\\\Mime', - 'Zend\\\\ModuleManager' => 'Laminas\\\\ModuleManager', - 'Zend\\\\Mvc' => 'Laminas\\\\Mvc', - 'Zend\\\\Navigation' => 'Laminas\\\\Navigation', - 'Zend\\\\Paginator' => 'Laminas\\\\Paginator', - 'Zend\\\\Permissions' => 'Laminas\\\\Permissions', - 'Zend\\\\Pimple\\\\Config' => 'Laminas\\\\Pimple\\\\Config', - 'Zend\\\\ProblemDetails' => 'Mezzio\\\\ProblemDetails', - 'Zend\\\\ProgressBar' => 'Laminas\\\\ProgressBar', - 'Zend\\\\Psr7Bridge' => 'Laminas\\\\Psr7Bridge', - 'Zend\\\\Router' => 'Laminas\\\\Router', - 'Zend\\\\Serializer' => 'Laminas\\\\Serializer', - 'Zend\\\\Server' => 'Laminas\\\\Server', - 'Zend\\\\ServiceManager' => 'Laminas\\\\ServiceManager', - 'ZendService\\\\ReCaptcha' => 'Laminas\\\\ReCaptcha', - 'ZendService\\\\Twitter' => 'Laminas\\\\Twitter', - 'Zend\\\\Session' => 'Laminas\\\\Session', - 'Zend\\\\SkeletonInstaller' => 'Laminas\\\\SkeletonInstaller', - 'Zend\\\\Soap' => 'Laminas\\\\Soap', - 'Zend\\\\Stdlib' => 'Laminas\\\\Stdlib', - 'Zend\\\\Stratigility' => 'Laminas\\\\Stratigility', - 'Zend\\\\Tag' => 'Laminas\\\\Tag', - 'Zend\\\\Test' => 'Laminas\\\\Test', - 'Zend\\\\Text' => 'Laminas\\\\Text', - 'Zend\\\\Uri' => 'Laminas\\\\Uri', - 'Zend\\\\Validator' => 'Laminas\\\\Validator', - 'Zend\\\\View' => 'Laminas\\\\View', - 'Zend\\\\Xml2Json' => 'Laminas\\\\Xml2Json', - 'Zend\\\\XmlRpc' => 'Laminas\\\\XmlRpc', - 'ZendHttp' => 'LaminasHttp', // class ZendHttpClientDecorator in zend-feed - 'ZendModule' => 'LaminasModule', // class ZendModuleProvider in zend-config-aggregator-modulemanager - 'a\\Zend\\' => 'a\\Zend\\', - 'b\\Zend\\' => 'b\\Zend\\', - 'c\\Zend\\' => 'c\\Zend\\', - 'd\\Zend\\' => 'd\\Zend\\', - 'e\\Zend\\' => 'e\\Zend\\', - 'f\\Zend\\' => 'f\\Zend\\', - 'g\\Zend\\' => 'g\\Zend\\', - 'h\\Zend\\' => 'h\\Zend\\', - 'i\\Zend\\' => 'i\\Zend\\', - 'j\\Zend\\' => 'j\\Zend\\', - 'k\\Zend\\' => 'k\\Zend\\', - 'l\\Zend\\' => 'l\\Zend\\', - 'm\\Zend\\' => 'm\\Zend\\', - 'n\\Zend\\' => 'n\\Zend\\', - 'o\\Zend\\' => 'o\\Zend\\', - 'p\\Zend\\' => 'p\\Zend\\', - 'q\\Zend\\' => 'q\\Zend\\', - 'r\\Zend\\' => 'r\\Zend\\', - 's\\Zend\\' => 's\\Zend\\', - 't\\Zend\\' => 't\\Zend\\', - 'u\\Zend\\' => 'u\\Zend\\', - 'v\\Zend\\' => 'v\\Zend\\', - 'w\\Zend\\' => 'w\\Zend\\', - 'x\\Zend\\' => 'x\\Zend\\', - 'y\\Zend\\' => 'y\\Zend\\', - 'z\\Zend\\' => 'z\\Zend\\', - 'a\\ZendOAuth\\' => 'a\\ZendOAuth\\', - 'b\\ZendOAuth\\' => 'b\\ZendOAuth\\', - 'c\\ZendOAuth\\' => 'c\\ZendOAuth\\', - 'd\\ZendOAuth\\' => 'd\\ZendOAuth\\', - 'e\\ZendOAuth\\' => 'e\\ZendOAuth\\', - 'f\\ZendOAuth\\' => 'f\\ZendOAuth\\', - 'g\\ZendOAuth\\' => 'g\\ZendOAuth\\', - 'h\\ZendOAuth\\' => 'h\\ZendOAuth\\', - 'i\\ZendOAuth\\' => 'i\\ZendOAuth\\', - 'j\\ZendOAuth\\' => 'j\\ZendOAuth\\', - 'k\\ZendOAuth\\' => 'k\\ZendOAuth\\', - 'l\\ZendOAuth\\' => 'l\\ZendOAuth\\', - 'm\\ZendOAuth\\' => 'm\\ZendOAuth\\', - 'n\\ZendOAuth\\' => 'n\\ZendOAuth\\', - 'o\\ZendOAuth\\' => 'o\\ZendOAuth\\', - 'p\\ZendOAuth\\' => 'p\\ZendOAuth\\', - 'q\\ZendOAuth\\' => 'q\\ZendOAuth\\', - 'r\\ZendOAuth\\' => 'r\\ZendOAuth\\', - 's\\ZendOAuth\\' => 's\\ZendOAuth\\', - 't\\ZendOAuth\\' => 't\\ZendOAuth\\', - 'u\\ZendOAuth\\' => 'u\\ZendOAuth\\', - 'v\\ZendOAuth\\' => 'v\\ZendOAuth\\', - 'w\\ZendOAuth\\' => 'w\\ZendOAuth\\', - 'x\\ZendOAuth\\' => 'x\\ZendOAuth\\', - 'y\\ZendOAuth\\' => 'y\\ZendOAuth\\', - 'z\\ZendOAuth\\' => 'z\\ZendOAuth\\', - 'a\\ZendService\\' => 'a\\ZendService\\', - 'b\\ZendService\\' => 'b\\ZendService\\', - 'c\\ZendService\\' => 'c\\ZendService\\', - 'd\\ZendService\\' => 'd\\ZendService\\', - 'e\\ZendService\\' => 'e\\ZendService\\', - 'f\\ZendService\\' => 'f\\ZendService\\', - 'g\\ZendService\\' => 'g\\ZendService\\', - 'h\\ZendService\\' => 'h\\ZendService\\', - 'i\\ZendService\\' => 'i\\ZendService\\', - 'j\\ZendService\\' => 'j\\ZendService\\', - 'k\\ZendService\\' => 'k\\ZendService\\', - 'l\\ZendService\\' => 'l\\ZendService\\', - 'm\\ZendService\\' => 'm\\ZendService\\', - 'n\\ZendService\\' => 'n\\ZendService\\', - 'o\\ZendService\\' => 'o\\ZendService\\', - 'p\\ZendService\\' => 'p\\ZendService\\', - 'q\\ZendService\\' => 'q\\ZendService\\', - 'r\\ZendService\\' => 'r\\ZendService\\', - 's\\ZendService\\' => 's\\ZendService\\', - 't\\ZendService\\' => 't\\ZendService\\', - 'u\\ZendService\\' => 'u\\ZendService\\', - 'v\\ZendService\\' => 'v\\ZendService\\', - 'w\\ZendService\\' => 'w\\ZendService\\', - 'x\\ZendService\\' => 'x\\ZendService\\', - 'y\\ZendService\\' => 'y\\ZendService\\', - 'z\\ZendService\\' => 'z\\ZendService\\', - 'a\\ZendXml\\' => 'a\\ZendXml\\', - 'b\\ZendXml\\' => 'b\\ZendXml\\', - 'c\\ZendXml\\' => 'c\\ZendXml\\', - 'd\\ZendXml\\' => 'd\\ZendXml\\', - 'e\\ZendXml\\' => 'e\\ZendXml\\', - 'f\\ZendXml\\' => 'f\\ZendXml\\', - 'g\\ZendXml\\' => 'g\\ZendXml\\', - 'h\\ZendXml\\' => 'h\\ZendXml\\', - 'i\\ZendXml\\' => 'i\\ZendXml\\', - 'j\\ZendXml\\' => 'j\\ZendXml\\', - 'k\\ZendXml\\' => 'k\\ZendXml\\', - 'l\\ZendXml\\' => 'l\\ZendXml\\', - 'm\\ZendXml\\' => 'm\\ZendXml\\', - 'n\\ZendXml\\' => 'n\\ZendXml\\', - 'o\\ZendXml\\' => 'o\\ZendXml\\', - 'p\\ZendXml\\' => 'p\\ZendXml\\', - 'q\\ZendXml\\' => 'q\\ZendXml\\', - 'r\\ZendXml\\' => 'r\\ZendXml\\', - 's\\ZendXml\\' => 's\\ZendXml\\', - 't\\ZendXml\\' => 't\\ZendXml\\', - 'u\\ZendXml\\' => 'u\\ZendXml\\', - 'v\\ZendXml\\' => 'v\\ZendXml\\', - 'w\\ZendXml\\' => 'w\\ZendXml\\', - 'x\\ZendXml\\' => 'x\\ZendXml\\', - 'y\\ZendXml\\' => 'y\\ZendXml\\', - 'z\\ZendXml\\' => 'z\\ZendXml\\', + // class ZendAcl in zend-expressive-authorization-acl + 'ZendAcl' => 'LaminasAcl', + 'Zend\\Expressive\\Authorization\\Acl\\ZendAcl' => 'Mezzio\\Authorization\\Acl\\LaminasAcl', + // class ZendHttpClientDecorator in zend-feed + 'ZendHttp' => 'LaminasHttp', + // class ZendModuleProvider in zend-config-aggregator-modulemanager + 'ZendModule' => 'LaminasModule', + // class ZendRbac in zend-expressive-authorization-rbac + 'ZendRbac' => 'LaminasRbac', + 'Zend\\Expressive\\Authorization\\Rbac\\ZendRbac' => 'Mezzio\\Authorization\\Rbac\\LaminasRbac', + // class ZendRouter in zend-expressive-router-zendrouter + 'ZendRouter' => 'LaminasRouter', + 'Zend\\Expressive\\Router\\ZendRouter' => 'Mezzio\\Router\\LaminasRouter', + // class ZendViewRenderer in zend-expressive-zendviewrenderer + 'ZendViewRenderer' => 'LaminasViewRenderer', + 'Zend\\Expressive\\ZendView\\ZendViewRenderer' => 'Mezzio\\LaminasView\\LaminasViewRenderer', + 'a\\Zend' => 'a\\Zend', + 'b\\Zend' => 'b\\Zend', + 'c\\Zend' => 'c\\Zend', + 'd\\Zend' => 'd\\Zend', + 'e\\Zend' => 'e\\Zend', + 'f\\Zend' => 'f\\Zend', + 'g\\Zend' => 'g\\Zend', + 'h\\Zend' => 'h\\Zend', + 'i\\Zend' => 'i\\Zend', + 'j\\Zend' => 'j\\Zend', + 'k\\Zend' => 'k\\Zend', + 'l\\Zend' => 'l\\Zend', + 'm\\Zend' => 'm\\Zend', + 'n\\Zend' => 'n\\Zend', + 'o\\Zend' => 'o\\Zend', + 'p\\Zend' => 'p\\Zend', + 'q\\Zend' => 'q\\Zend', + 'r\\Zend' => 'r\\Zend', + 's\\Zend' => 's\\Zend', + 't\\Zend' => 't\\Zend', + 'u\\Zend' => 'u\\Zend', + 'v\\Zend' => 'v\\Zend', + 'w\\Zend' => 'w\\Zend', + 'x\\Zend' => 'x\\Zend', + 'y\\Zend' => 'y\\Zend', + 'z\\Zend' => 'z\\Zend', // Expressive 'Zend\\Expressive' => 'Mezzio', - 'Zend\\\\Expressive' => 'Mezzio', 'ZendAuthentication' => 'LaminasAuthentication', 'ZendAcl' => 'LaminasAcl', 'ZendRbac' => 'LaminasRbac', @@ -285,49 +150,33 @@ 'ZF\\Rest' => 'Laminas\\ApiTools\\Rest', 'ZF\\Rpc' => 'Laminas\\ApiTools\\Rpc', 'ZF\\Versioning' => 'Laminas\\ApiTools\\Versioning', - 'a\\ZF\\' => 'a\\ZF\\', - 'b\\ZF\\' => 'b\\ZF\\', - 'c\\ZF\\' => 'c\\ZF\\', - 'd\\ZF\\' => 'd\\ZF\\', - 'e\\ZF\\' => 'e\\ZF\\', - 'f\\ZF\\' => 'f\\ZF\\', - 'g\\ZF\\' => 'g\\ZF\\', - 'h\\ZF\\' => 'h\\ZF\\', - 'i\\ZF\\' => 'i\\ZF\\', - 'j\\ZF\\' => 'j\\ZF\\', - 'k\\ZF\\' => 'k\\ZF\\', - 'l\\ZF\\' => 'l\\ZF\\', - 'm\\ZF\\' => 'm\\ZF\\', - 'n\\ZF\\' => 'n\\ZF\\', - 'o\\ZF\\' => 'o\\ZF\\', - 'p\\ZF\\' => 'p\\ZF\\', - 'q\\ZF\\' => 'q\\ZF\\', - 'r\\ZF\\' => 'r\\ZF\\', - 's\\ZF\\' => 's\\ZF\\', - 't\\ZF\\' => 't\\ZF\\', - 'u\\ZF\\' => 'u\\ZF\\', - 'v\\ZF\\' => 'v\\ZF\\', - 'w\\ZF\\' => 'w\\ZF\\', - 'x\\ZF\\' => 'x\\ZF\\', - 'y\\ZF\\' => 'y\\ZF\\', - 'z\\ZF\\' => 'z\\ZF\\', + 'a\\ZF' => 'a\\ZF', + 'b\\ZF' => 'b\\ZF', + 'c\\ZF' => 'c\\ZF', + 'd\\ZF' => 'd\\ZF', + 'e\\ZF' => 'e\\ZF', + 'f\\ZF' => 'f\\ZF', + 'g\\ZF' => 'g\\ZF', + 'h\\ZF' => 'h\\ZF', + 'i\\ZF' => 'i\\ZF', + 'j\\ZF' => 'j\\ZF', + 'k\\ZF' => 'k\\ZF', + 'l\\ZF' => 'l\\ZF', + 'm\\ZF' => 'm\\ZF', + 'n\\ZF' => 'n\\ZF', + 'o\\ZF' => 'o\\ZF', + 'p\\ZF' => 'p\\ZF', + 'q\\ZF' => 'q\\ZF', + 'r\\ZF' => 'r\\ZF', + 's\\ZF' => 's\\ZF', + 't\\ZF' => 't\\ZF', + 'u\\ZF' => 'u\\ZF', + 'v\\ZF' => 'v\\ZF', + 'w\\ZF' => 'w\\ZF', + 'x\\ZF' => 'x\\ZF', + 'y\\ZF' => 'y\\ZF', + 'z\\ZF' => 'z\\ZF', - 'ZF\\\\Apigility' => 'Laminas\\\\ApiTools', - 'ZF\\\\ApiProblem' => 'Laminas\\\\ApiTools\\\\ApiProblem', - 'ZF\\\\AssetManager' => 'Laminas\\\\ApiTools\\\\AssetManager', - 'ZF\\\\ComposerAutoloading' => 'Laminas\\\\ComposerAutoloading', - 'ZF\\\\Configuration' => 'Laminas\\\\ApiTools\\\\Configuration', - 'ZF\\\\ContentNegotiation' => 'Laminas\\\\ApiTools\\\\ContentNegotiation', - 'ZF\\\\ContentValidation' => 'Laminas\\\\ApiTools\\\\ContentValidation', - 'ZF\\\\DevelopmentMode' => 'Laminas\\\\DevelopmentMode', - 'ZF\\\\Doctrine\\\\QueryBuilder' => 'Laminas\\\\ApiTools\\\\Doctrine\\\\QueryBuilder', - 'ZF\\\\Hal' => 'Laminas\\\\ApiTools\\\\Hal', - 'ZF\\\\HttpCache' => 'Laminas\\\\ApiTools\\\\HttpCache', - 'ZF\\\\MvcAuth' => 'Laminas\\\\ApiTools\\\\MvcAuth', - 'ZF\\\\OAuth2' => 'Laminas\\\\ApiTools\\\\OAuth2', - 'ZF\\\\Rest' => 'Laminas\\\\ApiTools\\\\Rest', - 'ZF\\\\Rpc' => 'Laminas\\\\ApiTools\\\\Rpc', - 'ZF\\\\Versioning' => 'Laminas\\\\ApiTools\\\\Versioning', 'ApigilityModuleInterface' => 'ApiToolsModuleInterface', 'ApigilityProviderInterface' => 'ApiToolsProviderInterface', 'ApigilityVersionController' => 'ApiToolsVersionController', @@ -489,8 +338,8 @@ 'zend-expressive-tooling' => 'mezzio-tooling', // Apigility-related - "'zf-apigility'" => "'laminas-api-tools'", - '"zf-apigility"' => '"laminas-api-tools"', + "'zf-apigility'" => "'api-tools'", + '"zf-apigility"' => '"api-tools"', 'zf-apigility/' => 'api-tools/', 'zf-apigility-admin' => 'api-tools-admin', 'zf-content-negotiation' => 'api-tools-content-negotiation', @@ -512,4 +361,11 @@ 'ZfApigilityDoctrineQueryCreateFilterManager' => 'LaminasApiToolsDoctrineQueryCreateFilterManager', 'zf-apigility-doctrine' => 'api-tools-doctrine', 'zf-development-mode' => 'laminas-development-mode', + 'zf-doctrine-querybuilder' => 'api-tools-doctrine-querybuilder', + + // 3rd party Apigility packages + 'api-skeletons/zf-' => 'api-skeletons/zf-', // api-skeletons packages + 'zf-oauth2-' => 'zf-oauth2-', // api-skeletons OAuth2-related packages + 'ZF\\OAuth2\\Client' => 'ZF\\OAuth2\\Client', // api-skeletons/zf-oauth2-client + 'ZF\\OAuth2\\Doctrine' => 'ZF\\OAuth2\\Doctrine', // api-skeletons/zf-oauth2-doctrine ]; diff --git a/vendor/laminas/laminas-zendframework-bridge/src/Autoloader.php b/vendor/laminas/laminas-zendframework-bridge/src/Autoloader.php index 13a28dbd26..d06acd7562 100644 --- a/vendor/laminas/laminas-zendframework-bridge/src/Autoloader.php +++ b/vendor/laminas/laminas-zendframework-bridge/src/Autoloader.php @@ -12,6 +12,18 @@ use Composer\Autoload\ClassLoader; use RuntimeException; +use function array_values; +use function class_alias; +use function class_exists; +use function explode; +use function file_exists; +use function interface_exists; +use function spl_autoload_register; +use function strlen; +use function strtr; +use function substr; +use function trait_exists; + /** * Alias legacy Zend Framework project classes/interfaces/traits to Laminas equivalents. */ diff --git a/vendor/laminas/laminas-zendframework-bridge/src/ConfigPostProcessor.php b/vendor/laminas/laminas-zendframework-bridge/src/ConfigPostProcessor.php index 6fb38cedf4..bac7b97479 100644 --- a/vendor/laminas/laminas-zendframework-bridge/src/ConfigPostProcessor.php +++ b/vendor/laminas/laminas-zendframework-bridge/src/ConfigPostProcessor.php @@ -8,8 +8,27 @@ namespace Laminas\ZendFrameworkBridge; +use function array_intersect_key; +use function array_key_exists; +use function array_pop; +use function array_push; +use function count; +use function in_array; +use function is_array; +use function is_callable; +use function is_int; +use function is_string; + class ConfigPostProcessor { + /** @internal */ + const SERVICE_MANAGER_KEYS_OF_INTEREST = [ + 'aliases' => true, + 'factories' => true, + 'invokables' => true, + 'services' => true, + ]; + /** @var array String keys => string values */ private $exactReplacements = [ 'zend-expressive' => 'mezzio', @@ -62,15 +81,10 @@ function ($value, array $keys) { : null; }, - // Aliases and invokables - function ($value, array $keys) { - static $keysOfInterest; - - $keysOfInterest = $keysOfInterest ?: ['aliases', 'invokables']; - $key = array_pop($keys); - - return in_array($key, $keysOfInterest, true) && is_array($value) - ? [$this, 'replaceDependencyAliases'] + // service- and pluginmanager handling + function ($value) { + return is_array($value) && array_intersect_key(self::SERVICE_MANAGER_KEYS_OF_INTEREST, $value) !== [] + ? [$this, 'replaceDependencyConfiguration'] : null; }, @@ -182,7 +196,7 @@ public static function merge(array $a, array $b) $a[] = $value; continue; } - + if (is_array($value) && is_array($a[$key])) { $a[$key] = static::merge($a[$key], $value); continue; @@ -234,24 +248,119 @@ private function replaceExactValue($value) return $this->exactReplacements[$value]; } + private function replaceDependencyConfiguration(array $config) + { + $aliases = isset($config['aliases']) && is_array($config['aliases']) + ? $this->replaceDependencyAliases($config['aliases']) + : []; + + if ($aliases) { + $config['aliases'] = $aliases; + } + + $config = $this->replaceDependencyInvokables($config); + $config = $this->replaceDependencyFactories($config); + $config = $this->replaceDependencyServices($config); + + $keys = self::SERVICE_MANAGER_KEYS_OF_INTEREST; + foreach ($config as $key => $data) { + if (isset($keys[$key])) { + continue; + } + + $config[$key] = is_array($data) ? $this->__invoke($data, [$key]) : $data; + } + + return $config; + } + /** * Rewrite dependency aliases array * * In this case, we want to keep the alias as-is, but rewrite the target. * - * This same logic can be used for invokables, which are essentially just - * an alias map. + * We need also provide an additional alias if the alias key is a legacy class. * * @return array */ private function replaceDependencyAliases(array $aliases) { foreach ($aliases as $alias => $target) { - $aliases[$alias] = $this->replacements->replace($target); + if (! is_string($alias) || ! is_string($target)) { + continue; + } + + $newTarget = $this->replacements->replace($target); + $newAlias = $this->replacements->replace($alias); + + $notIn = [$newTarget]; + $name = $newTarget; + while (isset($aliases[$name])) { + $notIn[] = $aliases[$name]; + $name = $aliases[$name]; + } + + if ($newAlias === $alias && ! in_array($alias, $notIn, true)) { + $aliases[$alias] = $newTarget; + continue; + } + + if (isset($aliases[$newAlias])) { + continue; + } + + if (! in_array($newAlias, $notIn, true)) { + $aliases[$alias] = $newAlias; + $aliases[$newAlias] = $newTarget; + } } + return $aliases; } + /** + * Rewrite dependency invokables array + * + * In this case, we want to keep the alias as-is, but rewrite the target. + * + * We need also provide an additional alias if invokable is defined with + * an alias which is a legacy class. + * + * @return array + */ + private function replaceDependencyInvokables(array $config) + { + if (empty($config['invokables']) || ! is_array($config['invokables'])) { + return $config; + } + + foreach ($config['invokables'] as $alias => $target) { + if (! is_string($alias)) { + continue; + } + + $newTarget = $this->replacements->replace($target); + $newAlias = $this->replacements->replace($alias); + + if ($alias === $target || isset($config['aliases'][$newAlias])) { + $config['invokables'][$alias] = $newTarget; + continue; + } + + $config['invokables'][$newAlias] = $newTarget; + + if ($newAlias === $alias) { + continue; + } + + $config['aliases'][$alias] = $newAlias; + + unset($config['invokables'][$alias]); + } + + return $config; + } + /** * @param mixed $value * @return mixed Returns $value verbatim. @@ -260,4 +369,66 @@ private function noopReplacement($value) { return $value; } + + private function replaceDependencyFactories(array $config) + { + if (empty($config['factories']) || ! is_array($config['factories'])) { + return $config; + } + + foreach ($config['factories'] as $service => $factory) { + if (! is_string($service)) { + continue; + } + + $replacedService = $this->replacements->replace($service); + $factory = is_string($factory) ? $this->replacements->replace($factory) : $factory; + $config['factories'][$replacedService] = $factory; + + if ($replacedService === $service) { + continue; + } + + unset($config['factories'][$service]); + if (isset($config['aliases'][$service])) { + continue; + } + + $config['aliases'][$service] = $replacedService; + } + + return $config; + } + + private function replaceDependencyServices(array $config) + { + if (empty($config['services']) || ! is_array($config['services'])) { + return $config; + } + + foreach ($config['services'] as $service => $serviceInstance) { + if (! is_string($service)) { + continue; + } + + $replacedService = $this->replacements->replace($service); + $serviceInstance = is_array($serviceInstance) ? $this->__invoke($serviceInstance) : $serviceInstance; + + $config['services'][$replacedService] = $serviceInstance; + + if ($service === $replacedService) { + continue; + } + + unset($config['services'][$service]); + + if (isset($config['aliases'][$service])) { + continue; + } + + $config['aliases'][$service] = $replacedService; + } + + return $config; + } } diff --git a/vendor/laminas/laminas-zendframework-bridge/src/Replacements.php b/vendor/laminas/laminas-zendframework-bridge/src/Replacements.php index ba664b1b71..ca445c01f9 100644 --- a/vendor/laminas/laminas-zendframework-bridge/src/Replacements.php +++ b/vendor/laminas/laminas-zendframework-bridge/src/Replacements.php @@ -8,6 +8,11 @@ namespace Laminas\ZendFrameworkBridge; +use function array_merge; +use function str_replace; +use function strpos; +use function strtr; + class Replacements { /** @var string[] */ @@ -19,8 +24,17 @@ public function __construct(array $additionalReplacements = []) require __DIR__ . '/../config/replacements.php', $additionalReplacements ); + + // Provide multiple variants of strings containing namespace separators + foreach ($this->replacements as $original => $replacement) { + if (false === strpos($original, '\\')) { + continue; + } + $this->replacements[str_replace('\\', '\\\\', $original)] = str_replace('\\', '\\\\', $replacement); + $this->replacements[str_replace('\\', '\\\\\\\\', $original)] = str_replace('\\', '\\\\\\\\', $replacement); + } } - + /** * @param string $value * @return string diff --git a/vendor/laminas/laminas-zendframework-bridge/src/autoload.php b/vendor/laminas/laminas-zendframework-bridge/src/autoload.php index 09ec2ea4b3..9f2f2adf85 100644 --- a/vendor/laminas/laminas-zendframework-bridge/src/autoload.php +++ b/vendor/laminas/laminas-zendframework-bridge/src/autoload.php @@ -6,4 +6,4 @@ * @license https://github.com/laminas/laminas-zendframework-bridge/blob/master/LICENSE.md New BSD License */ -\Laminas\ZendFrameworkBridge\Autoloader::load(); +Laminas\ZendFrameworkBridge\Autoloader::load(); diff --git a/vendor/psr/log/Psr/Log/LoggerInterface.php b/vendor/psr/log/Psr/Log/LoggerInterface.php index e695046e30..2206cfde41 100644 --- a/vendor/psr/log/Psr/Log/LoggerInterface.php +++ b/vendor/psr/log/Psr/Log/LoggerInterface.php @@ -22,8 +22,8 @@ interface LoggerInterface /** * System is unusable. * - * @param string $message - * @param array $context + * @param string $message + * @param mixed[] $context * * @return void */ @@ -35,8 +35,8 @@ public function emergency($message, array $context = array()); * Example: Entire website down, database unavailable, etc. This should * trigger the SMS alerts and wake you up. * - * @param string $message - * @param array $context + * @param string $message + * @param mixed[] $context * * @return void */ @@ -47,8 +47,8 @@ public function alert($message, array $context = array()); * * Example: Application component unavailable, unexpected exception. * - * @param string $message - * @param array $context + * @param string $message + * @param mixed[] $context * * @return void */ @@ -58,8 +58,8 @@ public function critical($message, array $context = array()); * Runtime errors that do not require immediate action but should typically * be logged and monitored. * - * @param string $message - * @param array $context + * @param string $message + * @param mixed[] $context * * @return void */ @@ -71,8 +71,8 @@ public function error($message, array $context = array()); * Example: Use of deprecated APIs, poor use of an API, undesirable things * that are not necessarily wrong. * - * @param string $message - * @param array $context + * @param string $message + * @param mixed[] $context * * @return void */ @@ -81,8 +81,8 @@ public function warning($message, array $context = array()); /** * Normal but significant events. * - * @param string $message - * @param array $context + * @param string $message + * @param mixed[] $context * * @return void */ @@ -93,8 +93,8 @@ public function notice($message, array $context = array()); * * Example: User logs in, SQL logs. * - * @param string $message - * @param array $context + * @param string $message + * @param mixed[] $context * * @return void */ @@ -103,8 +103,8 @@ public function info($message, array $context = array()); /** * Detailed debug information. * - * @param string $message - * @param array $context + * @param string $message + * @param mixed[] $context * * @return void */ @@ -113,9 +113,9 @@ public function debug($message, array $context = array()); /** * Logs with an arbitrary level. * - * @param mixed $level - * @param string $message - * @param array $context + * @param mixed $level + * @param string $message + * @param mixed[] $context * * @return void * diff --git a/vendor/symfony/polyfill-mbstring/bootstrap.php b/vendor/symfony/polyfill-mbstring/bootstrap.php index 204a41ba27..8c8225c524 100644 --- a/vendor/symfony/polyfill-mbstring/bootstrap.php +++ b/vendor/symfony/polyfill-mbstring/bootstrap.php @@ -11,11 +11,13 @@ use Symfony\Polyfill\Mbstring as p; -if (!function_exists('mb_strlen')) { +if (!defined('MB_CASE_UPPER')) { define('MB_CASE_UPPER', 0); define('MB_CASE_LOWER', 1); define('MB_CASE_TITLE', 2); +} +if (!function_exists('mb_strlen')) { function mb_convert_encoding($s, $to, $from = null) { return p\Mbstring::mb_convert_encoding($s, $to, $from); } function mb_decode_mimeheader($s) { return p\Mbstring::mb_decode_mimeheader($s); } function mb_encode_mimeheader($s, $charset = null, $transferEnc = null, $lf = null, $indent = null) { return p\Mbstring::mb_encode_mimeheader($s, $charset, $transferEnc, $lf, $indent); }