diff --git a/.depcheckrc.json b/.depcheckrc.json index e0fdf6b..a13d936 100644 --- a/.depcheckrc.json +++ b/.depcheckrc.json @@ -1,5 +1,5 @@ { - "extends": "./node_modules/ts-dev-stack/.depcheckrc.json", + "extends": "./node_modules/ts-dev-stack/config/.depcheckrc.json", "ignores": [ "react-native-event", "@types/*", diff --git a/.eslintrc.json b/.eslintrc.json index 1ef33a3..e3564ae 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,5 +1,8 @@ { - "extends": "./node_modules/ts-dev-stack/.eslintrc.json", + "extends": "./node_modules/ts-dev-stack/config/.eslintrc.json", + "env": { + "node": true + }, "rules": { "@typescript-eslint/no-non-null-assertion": "off", "@typescript-eslint/no-empty-interface": "off" diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b479c92..6b94b42 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,6 +4,8 @@ updates: directory: '/' schedule: interval: daily + ignore: + - dependency-name: 'react-native' - package-ecosystem: 'github-actions' directory: '/' schedule: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b6e6e66..d411859 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,7 +1,8 @@ name: CI on: - - push - - pull_request + push: + branches: + - master jobs: test: name: Node.js ${{ matrix.node-version }} ${{ matrix.os }} @@ -9,16 +10,18 @@ jobs: strategy: matrix: node: ['latest'] - os: [ubuntu-latest, windows-latest, macOS-latest] + os: [ubuntu-latest, windows-latest, macos-latest] steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3.3.0 + - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - run: git config --global user.name "Github Actions" - run: git config --global user.email "actions@users.noreply.github.com" + - run: npm uninstall node-version-use -g - run: npm install node-version-use -g - run: npm ci - run: npm run lint - run: npm run build - - run: nvu engines npm run test + - run: nvu lts npm test + - run: npm run test:engines diff --git a/.prettierrc.json b/.prettierrc.json index 9ab2790..2e03e35 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -1 +1 @@ -"./node_modules/ts-dev-stack/.prettierrc.json" +"./node_modules/ts-dev-stack/config/.prettierrc.json" diff --git a/dist/cjs/index.js b/dist/cjs/index.js index 28d87ee..4989ee2 100644 --- a/dist/cjs/index.js +++ b/dist/cjs/index.js @@ -2,18 +2,31 @@ Object.defineProperty(exports, "__esModule", { value: true }); -exports.EventProvider = EventProvider; -exports.useEvent = useEvent; -exports.EventContext = void 0; -var _react = _interopRequireDefault(require("react")); -var _reactNative = _interopRequireDefault(require("react-native")); +function _export(target, all) { + for(var name in all)Object.defineProperty(target, name, { + enumerable: true, + get: all[name] + }); +} +_export(exports, { + EventContext: function() { + return EventContext; + }, + EventProvider: function() { + return EventProvider; + }, + useEvent: function() { + return useEvent; + } +}); +var _react = /*#__PURE__*/ _interopRequireDefault(require("react")); +var _reactNative = /*#__PURE__*/ _interopRequireDefault(require("react-native")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var EventContext = /*#__PURE__*/ _react.default.createContext(undefined); -exports.EventContext = EventContext; function EventProvider(param) { var children = param.children; var onEvent = function onEvent(event) { @@ -54,3 +67,9 @@ function useEvent(handler, dependencies) { handler ].concat(dependencies)); } + +if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') { + Object.defineProperty(exports.default, '__esModule', { value: true }); + for (var key in exports) exports.default[key] = exports[key]; + module.exports = exports.default; +} \ No newline at end of file diff --git a/dist/cjs/index.js.map b/dist/cjs/index.js.map index b43e1b2..d283fa9 100644 --- a/dist/cjs/index.js.map +++ b/dist/cjs/index.js.map @@ -1 +1 @@ -{"version":3,"sources":["index.tsx"],"sourcesContent":["import React from 'react';\nimport ReactNative from 'react-native';\n\nexport type EventTypes = ReactNative.GestureResponderEvent;\nexport type HandlerType = (event: EventTypes) => void;\n\nexport type EventContextType = {\n subscribe: (handler: HandlerType) => void;\n};\n\nexport const EventContext = React.createContext(\n undefined,\n);\n\nexport type EventProviderProps = {\n events?: string[];\n children?: React.ReactNode;\n};\nexport function EventProvider({ children }: EventProviderProps) {\n const state = React.useState([]);\n const handlers = state[0];\n\n function onEvent(event: EventTypes) {\n handlers.forEach((subscriber) => subscriber(event));\n }\n function subscribe(handler: HandlerType) {\n handlers.push(handler);\n return () => handlers.splice(handlers.indexOf(handler), 1);\n }\n\n return (\n \n {\n event.persist();\n onEvent(event);\n return false;\n }}\n >\n {children}\n \n \n );\n}\n\nexport function useEvent(handler, dependencies) {\n const context = React.useContext(EventContext);\n if (!context) {\n throw new Error(\n 'react-native-event: subscribe not found on context. You might be missing the EventProvider or have multiple instances of react-native-event',\n );\n }\n\n React.useEffect(\n () => context.subscribe(handler),\n [context.subscribe, handler].concat(dependencies),\n );\n}\n"],"names":["EventProvider","useEvent","EventContext","React","createContext","undefined","children","onEvent","event","handlers","forEach","subscriber","subscribe","handler","push","splice","indexOf","state","useState","Provider","value","ReactNative","View","style","StyleSheet","absoluteFill","onStartShouldSetResponderCapture","persist","dependencies","context","useContext","Error","useEffect","concat"],"mappings":"AAAA;;;;QAkBgBA,aAAa,GAAbA,aAAa;QA8BbC,QAAQ,GAARA,QAAQ;;AAhDN,IAAA,MAAO,kCAAP,OAAO,EAAA;AACD,IAAA,YAAc,kCAAd,cAAc,EAAA;;;;;;AAS/B,IAAMC,YAAY,iBAAGC,MAAK,QAAA,CAACC,aAAa,CAC7CC,SAAS,CACV,AAAC;QAFWH,YAAY,GAAZA,YAAY;AAQlB,SAASF,aAAa,CAAC,KAAgC,EAAE;QAAlC,AAAEM,QAAQ,GAAV,KAAgC,CAA9BA,QAAQ,AAAsB;QAInDC,OAAO,GAAhB,SAASA,OAAO,CAACC,KAAiB,EAAE;QAClCC,QAAQ,CAACC,OAAO,CAAC,SAACC,UAAU;mBAAKA,UAAU,CAACH,KAAK,CAAC;SAAA,CAAC,CAAC;KACrD;QACQI,SAAS,GAAlB,SAASA,SAAS,CAACC,OAAoB,EAAE;QACvCJ,QAAQ,CAACK,IAAI,CAACD,OAAO,CAAC,CAAC;QACvB,OAAO;mBAAMJ,QAAQ,CAACM,MAAM,CAACN,QAAQ,CAACO,OAAO,CAACH,OAAO,CAAC,EAAE,CAAC,CAAC;SAAA,CAAC;KAC5D;IATD,IAAMI,KAAK,GAAGd,MAAK,QAAA,CAACe,QAAQ,CAAgB,EAAE,CAAC,AAAC;IAChD,IAAMT,QAAQ,GAAGQ,KAAK,CAAC,CAAC,CAAC,AAAC;IAU1B,qBACE,6BAACf,YAAY,CAACiB,QAAQ;QAACC,KAAK,EAAE;YAAER,SAAS,EAATA,SAAS;SAAE;qBACzC,6BAACS,YAAW,QAAA,CAACC,IAAI;QACfC,KAAK,EAAEF,YAAW,QAAA,CAACG,UAAU,CAACC,YAAY;QAC1CC,gCAAgC,EAAE,SAChClB,KAAwC,EACrC;YACHA,KAAK,CAACmB,OAAO,EAAE,CAAC;YAChBpB,OAAO,CAACC,KAAK,CAAC,CAAC;YACf,OAAO,KAAK,CAAC;SACd;OAEAF,QAAQ,CACQ,CACG,CACxB;CACH;AAEM,SAASL,QAAQ,CAACY,OAAO,EAAEe,YAAY,EAAE;IAC9C,IAAMC,OAAO,GAAG1B,MAAK,QAAA,CAAC2B,UAAU,CAAC5B,YAAY,CAAC,AAAC;IAC/C,IAAI,CAAC2B,OAAO,EAAE;QACZ,MAAM,IAAIE,KAAK,CACb,6IAA6I,CAC9I,CAAC;KACH;IAED5B,MAAK,QAAA,CAAC6B,SAAS,CACb;eAAMH,OAAO,CAACjB,SAAS,CAACC,OAAO,CAAC;KAAA,EAChC;QAACgB,OAAO,CAACjB,SAAS;QAAEC,OAAO;KAAC,CAACoB,MAAM,CAACL,YAAY,CAAC,CAClD,CAAC;CACH"} \ No newline at end of file +{"version":3,"sources":["index.tsx"],"sourcesContent":["import React from 'react';\nimport ReactNative from 'react-native';\n\nexport type EventTypes = ReactNative.GestureResponderEvent;\nexport type HandlerType = (event: EventTypes) => void;\n\nexport type EventContextType = {\n subscribe: (handler: HandlerType) => void;\n};\n\nexport const EventContext = React.createContext(\n undefined,\n);\n\nexport type EventProviderProps = {\n events?: string[];\n children?: React.ReactNode;\n};\nexport function EventProvider({ children }: EventProviderProps) {\n const state = React.useState([]);\n const handlers = state[0];\n\n function onEvent(event: EventTypes) {\n handlers.forEach((subscriber) => subscriber(event));\n }\n function subscribe(handler: HandlerType) {\n handlers.push(handler);\n return () => handlers.splice(handlers.indexOf(handler), 1);\n }\n\n return (\n \n {\n event.persist();\n onEvent(event);\n return false;\n }}\n >\n {children}\n \n \n );\n}\n\nexport function useEvent(handler, dependencies) {\n const context = React.useContext(EventContext);\n if (!context) {\n throw new Error(\n 'react-native-event: subscribe not found on context. You might be missing the EventProvider or have multiple instances of react-native-event',\n );\n }\n\n React.useEffect(\n () => context.subscribe(handler),\n [context.subscribe, handler].concat(dependencies),\n );\n}\n"],"names":["EventContext","EventProvider","useEvent","React","createContext","undefined","children","onEvent","event","handlers","forEach","subscriber","subscribe","handler","push","splice","indexOf","state","useState","Provider","value","ReactNative","View","style","StyleSheet","absoluteFill","onStartShouldSetResponderCapture","persist","dependencies","context","useContext","Error","useEffect","concat"],"mappings":"AAAA;;;;;;;;;;;IAUaA,YAAY;eAAZA,YAAY;;IAQTC,aAAa;eAAbA,aAAa;;IA8BbC,QAAQ;eAARA,QAAQ;;;0DAhDN,OAAO;gEACD,cAAc;;;;;;AAS/B,IAAMF,YAAY,iBAAGG,MAAK,QAAA,CAACC,aAAa,CAC7CC,SAAS,CACV,AAAC;AAMK,SAASJ,aAAa,CAAC,KAAgC,EAAE;QAAlC,AAAEK,QAAQ,GAAV,KAAgC,CAA9BA,QAAQ,AAAsB;QAInDC,OAAO,GAAhB,SAASA,OAAO,CAACC,KAAiB,EAAE;QAClCC,QAAQ,CAACC,OAAO,CAAC,SAACC,UAAU;mBAAKA,UAAU,CAACH,KAAK,CAAC;SAAA,CAAC,CAAC;KACrD;QACQI,SAAS,GAAlB,SAASA,SAAS,CAACC,OAAoB,EAAE;QACvCJ,QAAQ,CAACK,IAAI,CAACD,OAAO,CAAC,CAAC;QACvB,OAAO;mBAAMJ,QAAQ,CAACM,MAAM,CAACN,QAAQ,CAACO,OAAO,CAACH,OAAO,CAAC,EAAE,CAAC,CAAC;SAAA,CAAC;KAC5D;IATD,IAAMI,KAAK,GAAGd,MAAK,QAAA,CAACe,QAAQ,CAAgB,EAAE,CAAC,AAAC;IAChD,IAAMT,QAAQ,GAAGQ,KAAK,CAAC,CAAC,CAAC,AAAC;IAU1B,qBACE,6BAACjB,YAAY,CAACmB,QAAQ;QAACC,KAAK,EAAE;YAAER,SAAS,EAATA,SAAS;SAAE;qBACzC,6BAACS,YAAW,QAAA,CAACC,IAAI;QACfC,KAAK,EAAEF,YAAW,QAAA,CAACG,UAAU,CAACC,YAAY;QAC1CC,gCAAgC,EAAE,SAChClB,KAAwC,EACrC;YACHA,KAAK,CAACmB,OAAO,EAAE,CAAC;YAChBpB,OAAO,CAACC,KAAK,CAAC,CAAC;YACf,OAAO,KAAK,CAAC;SACd;OAEAF,QAAQ,CACQ,CACG,CACxB;CACH;AAEM,SAASJ,QAAQ,CAACW,OAAO,EAAEe,YAAY,EAAE;IAC9C,IAAMC,OAAO,GAAG1B,MAAK,QAAA,CAAC2B,UAAU,CAAC9B,YAAY,CAAC,AAAC;IAC/C,IAAI,CAAC6B,OAAO,EAAE;QACZ,MAAM,IAAIE,KAAK,CACb,6IAA6I,CAC9I,CAAC;KACH;IAED5B,MAAK,QAAA,CAAC6B,SAAS,CACb;eAAMH,OAAO,CAACjB,SAAS,CAACC,OAAO,CAAC;KAAA,EAChC;QAACgB,OAAO,CAACjB,SAAS;QAAEC,OAAO;KAAC,CAACoB,MAAM,CAACL,YAAY,CAAC,CAClD,CAAC;CACH"} \ No newline at end of file diff --git a/dist/cjs/package.json b/dist/cjs/package.json index 6acf458..0292b99 100644 --- a/dist/cjs/package.json +++ b/dist/cjs/package.json @@ -1 +1 @@ -{ "type": "commonjs" } \ No newline at end of file +{"type":"commonjs"} \ No newline at end of file diff --git a/dist/esm/package.json b/dist/esm/package.json index bb34440..7c34deb 100644 --- a/dist/esm/package.json +++ b/dist/esm/package.json @@ -1 +1 @@ -{ "type": "module" } \ No newline at end of file +{"type":"module"} \ No newline at end of file diff --git a/dist/umd/package.json b/dist/umd/package.json index 6acf458..0292b99 100644 --- a/dist/umd/package.json +++ b/dist/umd/package.json @@ -1 +1 @@ -{ "type": "commonjs" } \ No newline at end of file +{"type":"commonjs"} \ No newline at end of file diff --git a/dist/umd/react-native-event.min.js.map b/dist/umd/react-native-event.min.js.map index f456cb0..bcf8f6d 100644 --- a/dist/umd/react-native-event.min.js.map +++ b/dist/umd/react-native-event.min.js.map @@ -1 +1 @@ -{"version":3,"file":"react-native-event.min.js","sources":["../../src/index.tsx"],"sourcesContent":["import React from 'react';\nimport ReactNative from 'react-native';\n\nexport type EventTypes = ReactNative.GestureResponderEvent;\nexport type HandlerType = (event: EventTypes) => void;\n\nexport type EventContextType = {\n subscribe: (handler: HandlerType) => void;\n};\n\nexport const EventContext = React.createContext(\n undefined,\n);\n\nexport type EventProviderProps = {\n events?: string[];\n children?: React.ReactNode;\n};\nexport function EventProvider({ children }: EventProviderProps) {\n const state = React.useState([]);\n const handlers = state[0];\n\n function onEvent(event: EventTypes) {\n handlers.forEach((subscriber) => subscriber(event));\n }\n function subscribe(handler: HandlerType) {\n handlers.push(handler);\n return () => handlers.splice(handlers.indexOf(handler), 1);\n }\n\n return (\n \n {\n event.persist();\n onEvent(event);\n return false;\n }}\n >\n {children}\n \n \n );\n}\n\nexport function useEvent(handler, dependencies) {\n const context = React.useContext(EventContext);\n if (!context) {\n throw new Error(\n 'react-native-event: subscribe not found on context. You might be missing the EventProvider or have multiple instances of react-native-event',\n );\n }\n\n React.useEffect(\n () => context.subscribe(handler),\n [context.subscribe, handler].concat(dependencies),\n );\n}\n"],"names":["EventContext","React","createContext","undefined","param","children","handlers","useState","createElement","Provider","value","subscribe","handler","push","splice","indexOf","ReactNative","View","style","StyleSheet","absoluteFill","onStartShouldSetResponderCapture","event","persist","forEach","subscriber","onEvent","dependencies","context","useContext","Error","useEffect","concat"],"mappings":"4aAUaA,EAAeC,EAAAA,QAAMC,mBAChCC,oCAOK,SAAuBC,GAAA,IAAEC,EAAFD,EAAEC,SAExBC,EADQL,EAAAA,QAAMM,SAAwB,IACrB,GAUvB,OACEN,UAAAO,cAACR,EAAaS,SAAQ,CAACC,MAAO,CAAEC,UANlC,SAAmBC,GAEjB,OADAN,EAASO,KAAKD,GACP,kBAAMN,EAASQ,OAAOR,EAASS,QAAQH,GAAU,OAKtDX,UAACe,cAAAA,EAAW,QAACC,KAAI,CACfC,MAAOF,EAAAA,QAAYG,WAAWC,aAC9BC,iCAAkC,SAChCC,GAIA,OAFAA,EAAMC,UAfd,SAAiBD,GACfhB,EAASkB,SAAQ,SAACC,UAAeA,EAAWH,MAetCI,CAAQJ,IACD,IAGRjB,gBAMF,SAAkBO,EAASe,GAChC,IAAMC,EAAU3B,EAAAA,QAAM4B,WAAW7B,GACjC,IAAK4B,EACH,MAAM,IAAIE,MACR,+IAIJ7B,EAAK,QAAC8B,WACJ,WAAMH,OAAAA,EAAQjB,UAAUC,KACxB,CAACgB,EAAQjB,UAAWC,GAASoB,OAAOL"} \ No newline at end of file +{"version":3,"file":"react-native-event.min.js","sources":["../../src/index.tsx"],"sourcesContent":["import React from 'react';\nimport ReactNative from 'react-native';\n\nexport type EventTypes = ReactNative.GestureResponderEvent;\nexport type HandlerType = (event: EventTypes) => void;\n\nexport type EventContextType = {\n subscribe: (handler: HandlerType) => void;\n};\n\nexport const EventContext = React.createContext(\n undefined,\n);\n\nexport type EventProviderProps = {\n events?: string[];\n children?: React.ReactNode;\n};\nexport function EventProvider({ children }: EventProviderProps) {\n const state = React.useState([]);\n const handlers = state[0];\n\n function onEvent(event: EventTypes) {\n handlers.forEach((subscriber) => subscriber(event));\n }\n function subscribe(handler: HandlerType) {\n handlers.push(handler);\n return () => handlers.splice(handlers.indexOf(handler), 1);\n }\n\n return (\n \n {\n event.persist();\n onEvent(event);\n return false;\n }}\n >\n {children}\n \n \n );\n}\n\nexport function useEvent(handler, dependencies) {\n const context = React.useContext(EventContext);\n if (!context) {\n throw new Error(\n 'react-native-event: subscribe not found on context. You might be missing the EventProvider or have multiple instances of react-native-event',\n );\n }\n\n React.useEffect(\n () => context.subscribe(handler),\n [context.subscribe, handler].concat(dependencies),\n );\n}\n"],"names":["EventContext","React","createContext","undefined","param","children","handlers","useState","createElement","Provider","value","subscribe","handler","push","splice","indexOf","ReactNative","View","style","StyleSheet","absoluteFill","onStartShouldSetResponderCapture","event","persist","forEach","subscriber","onEvent","dependencies","context","useContext","Error","useEffect","concat"],"mappings":"4aAUaA,EAAeC,EAAAA,QAAMC,mBAChCC,oCAOK,SAAuBC,GAAA,IAAEC,EAAFD,EAAEC,SAExBC,EADQL,EAAAA,QAAMM,SAAwB,IACrB,GAUvB,OACEN,UAAAO,cAACR,EAAaS,SAAQ,CAACC,MAAO,CAAEC,UANlC,SAAmBC,GAEjB,OADAN,EAASO,KAAKD,GACP,kBAAMN,EAASQ,OAAOR,EAASS,QAAQH,GAAU,GACzD,IAIGX,UAACe,cAAAA,EAAW,QAACC,KAAI,CACfC,MAAOF,EAAAA,QAAYG,WAAWC,aAC9BC,iCAAkC,SAChCC,GAIA,OAFAA,EAAMC,UAfd,SAAiBD,GACfhB,EAASkB,SAAQ,SAACC,UAAeA,EAAWH,EAAM,GACnD,CAcOI,CAAQJ,IACD,CACR,GAEAjB,GAIR,aAEM,SAAkBO,EAASe,GAChC,IAAMC,EAAU3B,EAAAA,QAAM4B,WAAW7B,GACjC,IAAK4B,EACH,MAAM,IAAIE,MACR,+IAIJ7B,EAAK,QAAC8B,WACJ,WAAMH,OAAAA,EAAQjB,UAAUC,KACxB,CAACgB,EAAQjB,UAAWC,GAASoB,OAAOL,GAEvC"} \ No newline at end of file diff --git a/docs/assets/main.js b/docs/assets/main.js index 305cb9b..c815b33 100644 --- a/docs/assets/main.js +++ b/docs/assets/main.js @@ -1,7 +1,7 @@ "use strict"; -(()=>{var Pe=Object.create;var ue=Object.defineProperty;var Oe=Object.getOwnPropertyDescriptor;var Re=Object.getOwnPropertyNames;var _e=Object.getPrototypeOf,Me=Object.prototype.hasOwnProperty;var De=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Fe=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Re(e))!Me.call(t,i)&&i!==n&&ue(t,i,{get:()=>e[i],enumerable:!(r=Oe(e,i))||r.enumerable});return t};var He=(t,e,n)=>(n=t!=null?Pe(_e(t)):{},Fe(e||!t||!t.__esModule?ue(n,"default",{value:t,enumerable:!0}):n,t));var fe=De((de,pe)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var h=t.utils.clone(n)||{};h.position=[a,l],h.index=s.length,s.push(new t.Token(r.slice(a,o),h))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. -`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ou?h+=2:a==u&&(n+=r[l+1]*i[h+1],l+=2,h+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}if(s.str.length==0&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}s.str.length==1&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var h=s.str.charAt(0),m=s.str.charAt(1),g;m in s.node.edges?g=s.node.edges[m]:(g=new t.TokenSet,s.node.edges[m]=g),s.str.length==1&&(g.final=!0),i.push({node:g,editsRemaining:s.editsRemaining-1,str:h+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),u=0;u1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof de=="object"?pe.exports=n():e.lunr=n()}(this,function(){return t})})()});var ce=[];function F(t,e){ce.push({selector:e,constructor:t})}var Y=class{constructor(){this.createComponents(document.body)}createComponents(e){ce.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r}),r.dataset.hasInstance=String(!0))})})}};var I=class{constructor(e){this.el=e.el}};var J=class{constructor(){this.listeners={}}addEventListener(e,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(n)}removeEventListener(e,n){if(!(e in this.listeners))return;let r=this.listeners[e];for(let i=0,s=r.length;i{let n=Date.now();return(...r)=>{n+e-Date.now()<0&&(t(...r),n=Date.now())}};var ie=class extends J{constructor(){super();this.scrollTop=0;this.lastY=0;this.width=0;this.height=0;this.showToolbar=!0;this.toolbar=document.querySelector(".tsd-page-toolbar"),this.navigation=document.querySelector(".col-menu"),window.addEventListener("scroll",re(()=>this.onScroll(),10)),window.addEventListener("resize",re(()=>this.onResize(),10)),this.searchInput=document.querySelector("#tsd-search input"),this.searchInput&&this.searchInput.addEventListener("focus",()=>{this.hideShowToolbar()}),this.onResize(),this.onScroll()}triggerResize(){let n=new CustomEvent("resize",{detail:{width:this.width,height:this.height}});this.dispatchEvent(n)}onResize(){this.width=window.innerWidth||0,this.height=window.innerHeight||0;let n=new CustomEvent("resize",{detail:{width:this.width,height:this.height}});this.dispatchEvent(n)}onScroll(){this.scrollTop=window.scrollY||0;let n=new CustomEvent("scroll",{detail:{scrollTop:this.scrollTop}});this.dispatchEvent(n),this.hideShowToolbar()}hideShowToolbar(){let n=this.showToolbar;this.showToolbar=this.lastY>=this.scrollTop||this.scrollTop<=0||!!this.searchInput&&this.searchInput===document.activeElement,n!==this.showToolbar&&(this.toolbar.classList.toggle("tsd-page-toolbar--hide"),this.navigation?.classList.toggle("col-menu--hide")),this.lastY=this.scrollTop}},k=ie;k.instance=new ie;var X=class extends I{constructor(n){super(n);this.anchors=[];this.index=-1;k.instance.addEventListener("resize",()=>this.onResize()),k.instance.addEventListener("scroll",r=>this.onScroll(r)),this.createAnchors()}createAnchors(){let n=window.location.href;n.indexOf("#")!=-1&&(n=n.substring(0,n.indexOf("#"))),this.el.querySelectorAll("a").forEach(r=>{let i=r.href;if(i.indexOf("#")==-1||i.substring(0,n.length)!=n)return;let s=i.substring(i.indexOf("#")+1),o=document.querySelector("a.tsd-anchor[name="+s+"]"),a=r.parentNode;!o||!a||this.anchors.push({link:a,anchor:o,position:0})}),this.onResize()}onResize(){let n;for(let i=0,s=this.anchors.length;ii.position-s.position);let r=new CustomEvent("scroll",{detail:{scrollTop:k.instance.scrollTop}});this.onScroll(r)}onScroll(n){let r=n.detail.scrollTop+5,i=this.anchors,s=i.length-1,o=this.index;for(;o>-1&&i[o].position>r;)o-=1;for(;o-1&&this.anchors[this.index].link.classList.remove("focus"),this.index=o,this.index>-1&&this.anchors[this.index].link.classList.add("focus"))}};var he=(t,e=100)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>t(r),e)}};var ve=He(fe());function ye(){let t=document.getElementById("tsd-search");if(!t)return;let e=document.getElementById("search-script");t.classList.add("loading"),e&&(e.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),e.addEventListener("load",()=>{t.classList.remove("loading"),t.classList.add("ready")}),window.searchData&&t.classList.remove("loading"));let n=document.querySelector("#tsd-search input"),r=document.querySelector("#tsd-search .results");if(!n||!r)throw new Error("The input field or the result list wrapper was not found");let i=!1;r.addEventListener("mousedown",()=>i=!0),r.addEventListener("mouseup",()=>{i=!1,t.classList.remove("has-focus")}),n.addEventListener("focus",()=>t.classList.add("has-focus")),n.addEventListener("blur",()=>{i||(i=!1,t.classList.remove("has-focus"))});let s={base:t.dataset.base+"/"};Ae(t,r,n,s)}function Ae(t,e,n,r){n.addEventListener("input",he(()=>{Ne(t,e,n,r)},200));let i=!1;n.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?je(e,n):s.key=="Escape"?n.blur():s.key=="ArrowUp"?me(e,-1):s.key==="ArrowDown"?me(e,1):i=!1}),n.addEventListener("keypress",s=>{i&&s.preventDefault()}),document.body.addEventListener("keydown",s=>{s.altKey||s.ctrlKey||s.metaKey||!n.matches(":focus")&&s.key==="/"&&(n.focus(),s.preventDefault())})}function Ve(t,e){t.index||window.searchData&&(e.classList.remove("loading"),e.classList.add("ready"),t.data=window.searchData,t.index=ve.Index.load(window.searchData.index))}function Ne(t,e,n,r){if(Ve(r,t),!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s=i?r.index.search(`*${i}*`):[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o${ge(u.parent,i)}.${l}`);let h=document.createElement("li");h.classList.value=u.classes??"";let m=document.createElement("a");m.href=r.base+u.url,m.innerHTML=l,h.append(m),e.appendChild(h)}}function me(t,e){let n=t.querySelector(".current");if(!n)n=t.querySelector(e==1?"li:first-child":"li:last-child"),n&&n.classList.add("current");else{let r=n;if(e===1)do r=r.nextElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);else do r=r.previousElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);r&&(n.classList.remove("current"),r.classList.add("current"))}}function je(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),e.blur()}}function ge(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(se(t.substring(s,o)),`${se(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(se(t.substring(s))),i.join("")}var ze={"&":"&","<":"<",">":">","'":"'",'"':"""};function se(t){return t.replace(/[&<>"'"]/g,e=>ze[e])}var oe=class{constructor(e,n){this.signature=e,this.description=n}addClass(e){this.signature.classList.add(e),this.description.classList.add(e)}removeClass(e){this.signature.classList.remove(e),this.description.classList.remove(e)}},Z=class extends I{constructor(n){super(n);this.groups=[];this.index=-1;this.createGroups(),this.container&&(this.el.classList.add("active"),Array.from(this.el.children).forEach(r=>{r.addEventListener("touchstart",i=>this.onClick(i)),r.addEventListener("click",i=>this.onClick(i))}),this.container.classList.add("active"),this.setIndex(this.inferIndexFromHash()))}setIndex(n){if(n<0&&(n=0),n>this.groups.length-1&&(n=this.groups.length-1),this.index==n)return;let r=this.groups[n];if(this.index>-1){let i=this.groups[this.index];if(i.removeClass("current"),i.addClass("fade-out"),r.addClass("current"),r.addClass("fade-in"),r.signature.id){let s=new URL(location.href);s.hash=r.signature.id,history.replaceState({},"",s)}k.instance.triggerResize(),setTimeout(()=>{i.removeClass("fade-out"),r.removeClass("fade-in")},300)}else r.addClass("current"),k.instance.triggerResize();this.index=n}createGroups(){let n=this.el.children;if(n.length<2)return;this.container=this.el.nextElementSibling;let r=this.container.children;this.groups=[];for(let i=0;i{r.signature===n.currentTarget&&this.setIndex(i)})}inferIndexFromHash(){let n=location.hash.substring(1),r=this.groups.findIndex(i=>i.signature.id===n);return Math.max(0,r)}};var H="mousedown",Le="mousemove",z="mouseup",K={x:0,y:0},xe=!1,ae=!1,Be=!1,A=!1,Ee=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(Ee?"is-mobile":"not-mobile");Ee&&"ontouchstart"in document.documentElement&&(Be=!0,H="touchstart",Le="touchmove",z="touchend");document.addEventListener(H,t=>{ae=!0,A=!1;let e=H=="touchstart"?t.targetTouches[0]:t;K.y=e.pageY||0,K.x=e.pageX||0});document.addEventListener(Le,t=>{if(!!ae&&!A){let e=H=="touchstart"?t.targetTouches[0]:t,n=K.x-(e.pageX||0),r=K.y-(e.pageY||0);A=Math.sqrt(n*n+r*r)>10}});document.addEventListener(z,()=>{ae=!1});document.addEventListener("click",t=>{xe&&(t.preventDefault(),t.stopImmediatePropagation(),xe=!1)});var ee=class extends I{constructor(n){super(n);this.className=this.el.dataset.toggle||"",this.el.addEventListener(z,r=>this.onPointerUp(r)),this.el.addEventListener("click",r=>r.preventDefault()),document.addEventListener(H,r=>this.onDocumentPointerDown(r)),document.addEventListener(z,r=>this.onDocumentPointerUp(r))}setActive(n){if(this.active==n)return;this.active=n,document.documentElement.classList.toggle("has-"+this.className,n),this.el.classList.toggle("active",n);let r=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(r),setTimeout(()=>document.documentElement.classList.remove(r),500)}onPointerUp(n){A||(this.setActive(!0),n.preventDefault())}onDocumentPointerDown(n){if(this.active){if(n.target.closest(".col-menu, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(n){if(!A&&this.active&&n.target.closest(".col-menu")){let r=n.target.closest("a");if(r){let i=window.location.href;i.indexOf("#")!=-1&&(i=i.substring(0,i.indexOf("#"))),r.href.substring(0,i.length)==i&&setTimeout(()=>this.setActive(!1),250)}}}};var le;try{le=localStorage}catch{le={getItem(){return null},setItem(){}}}var C=le;var be=document.head.appendChild(document.createElement("style"));be.dataset.for="filters";var te=class extends I{constructor(n){super(n);this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),be.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } -`}fromLocalStorage(){let n=C.getItem(this.key);return n?n==="true":this.el.checked}setLocalStorage(n){C.setItem(this.key,n.toString()),this.value=n,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),document.querySelectorAll(".tsd-index-section").forEach(n=>{n.style.display="block";let r=Array.from(n.querySelectorAll(".tsd-index-link")).every(i=>i.offsetParent==null);n.style.display=r?"none":"block"})}};var ne=class extends I{constructor(n){super(n);this.calculateHeights(),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.textContent.replace(/\s+/g,"-").toLowerCase()}`,this.setLocalStorage(this.fromLocalStorage(),!0),this.summary.addEventListener("click",r=>this.toggleVisibility(r)),this.icon.style.transform=this.getIconRotation()}getIconRotation(n=this.el.open){return`rotate(${n?0:-90}deg)`}calculateHeights(){let n=this.el.open,{position:r,left:i}=this.el.style;this.el.style.position="fixed",this.el.style.left="-9999px",this.el.open=!0,this.expandedHeight=this.el.offsetHeight+"px",this.el.open=!1,this.collapsedHeight=this.el.offsetHeight+"px",this.el.open=n,this.el.style.height=n?this.expandedHeight:this.collapsedHeight,this.el.style.position=r,this.el.style.left=i}toggleVisibility(n){n.preventDefault(),this.el.style.overflow="hidden",this.el.open?this.collapse():this.expand()}expand(n=!0){this.el.open=!0,this.animate(this.collapsedHeight,this.expandedHeight,{opening:!0,duration:n?300:0})}collapse(n=!0){this.animate(this.expandedHeight,this.collapsedHeight,{opening:!1,duration:n?300:0})}animate(n,r,{opening:i,duration:s=300}){if(this.animation)return;let o={duration:s,easing:"ease"};this.animation=this.el.animate({height:[n,r]},o),this.icon.animate({transform:[this.icon.style.transform||this.getIconRotation(!i),this.getIconRotation(i)]},o).addEventListener("finish",()=>{this.icon.style.transform=this.getIconRotation(i)}),this.animation.addEventListener("finish",()=>this.animationEnd(i))}animationEnd(n){this.el.open=n,this.animation=void 0,this.el.style.height="auto",this.el.style.overflow="visible",this.setLocalStorage(n)}fromLocalStorage(){let n=C.getItem(this.key);return n?n==="true":this.el.open}setLocalStorage(n,r=!1){this.fromLocalStorage()===n&&!r||(C.setItem(this.key,n.toString()),this.el.open=n,this.handleValueChange(r))}handleValueChange(n=!1){this.fromLocalStorage()===this.el.open&&!n||(this.fromLocalStorage()?this.expand(!1):this.collapse(!1))}};function we(t){let e=C.getItem("tsd-theme")||"os";t.value=e,Se(e),t.addEventListener("change",()=>{C.setItem("tsd-theme",t.value),Se(t.value)})}function Se(t){document.documentElement.dataset.theme=t}ye();F(X,".menu-highlight");F(Z,".tsd-signatures");F(ee,"a[data-toggle]");F(ne,".tsd-index-accordion");F(te,".tsd-filter-item input[type=checkbox]");var Te=document.getElementById("theme");Te&&we(Te);var qe=new Y;Object.defineProperty(window,"app",{value:qe});})(); +(()=>{var Qe=Object.create;var ae=Object.defineProperty;var Pe=Object.getOwnPropertyDescriptor;var Ce=Object.getOwnPropertyNames;var Oe=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var _e=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Me=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ce(e))!Re.call(t,i)&&i!==n&&ae(t,i,{get:()=>e[i],enumerable:!(r=Pe(e,i))||r.enumerable});return t};var De=(t,e,n)=>(n=t!=null?Qe(Oe(t)):{},Me(e||!t||!t.__esModule?ae(n,"default",{value:t,enumerable:!0}):n,t));var de=_e((ce,he)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var h=t.utils.clone(n)||{};h.position=[a,l],h.index=s.length,s.push(new t.Token(r.slice(a,o),h))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. +`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ou?h+=2:a==u&&(n+=r[l+1]*i[h+1],l+=2,h+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}if(s.str.length==0&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}s.str.length==1&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var h=s.str.charAt(0),m=s.str.charAt(1),v;m in s.node.edges?v=s.node.edges[m]:(v=new t.TokenSet,s.node.edges[m]=v),s.str.length==1&&(v.final=!0),i.push({node:v,editsRemaining:s.editsRemaining-1,str:h+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),u=0;u1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof ce=="object"?he.exports=n():e.lunr=n()}(this,function(){return t})})()});var le=[];function j(t,e){le.push({selector:e,constructor:t})}var Y=class{constructor(){this.createComponents(document.body)}createComponents(e){le.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r}),r.dataset.hasInstance=String(!0))})})}};var k=class{constructor(e){this.el=e.el}};var J=class{constructor(){this.listeners={}}addEventListener(e,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(n)}removeEventListener(e,n){if(!(e in this.listeners))return;let r=this.listeners[e];for(let i=0,s=r.length;i{let n=Date.now();return(...r)=>{n+e-Date.now()<0&&(t(...r),n=Date.now())}};var re=class extends J{constructor(){super();this.scrollTop=0;this.lastY=0;this.width=0;this.height=0;this.showToolbar=!0;this.toolbar=document.querySelector(".tsd-page-toolbar"),this.navigation=document.querySelector(".col-menu"),window.addEventListener("scroll",ne(()=>this.onScroll(),10)),window.addEventListener("resize",ne(()=>this.onResize(),10)),this.searchInput=document.querySelector("#tsd-search input"),this.searchInput&&this.searchInput.addEventListener("focus",()=>{this.hideShowToolbar()}),this.onResize(),this.onScroll()}triggerResize(){let n=new CustomEvent("resize",{detail:{width:this.width,height:this.height}});this.dispatchEvent(n)}onResize(){this.width=window.innerWidth||0,this.height=window.innerHeight||0;let n=new CustomEvent("resize",{detail:{width:this.width,height:this.height}});this.dispatchEvent(n)}onScroll(){this.scrollTop=window.scrollY||0;let n=new CustomEvent("scroll",{detail:{scrollTop:this.scrollTop}});this.dispatchEvent(n),this.hideShowToolbar()}hideShowToolbar(){let n=this.showToolbar;this.showToolbar=this.lastY>=this.scrollTop||this.scrollTop<=0||!!this.searchInput&&this.searchInput===document.activeElement,n!==this.showToolbar&&(this.toolbar.classList.toggle("tsd-page-toolbar--hide"),this.navigation?.classList.toggle("col-menu--hide")),this.lastY=this.scrollTop}},R=re;R.instance=new re;var X=class extends k{constructor(n){super(n);this.anchors=[];this.index=-1;R.instance.addEventListener("resize",()=>this.onResize()),R.instance.addEventListener("scroll",r=>this.onScroll(r)),this.createAnchors()}createAnchors(){let n=window.location.href;n.indexOf("#")!=-1&&(n=n.substring(0,n.indexOf("#"))),this.el.querySelectorAll("a").forEach(r=>{let i=r.href;if(i.indexOf("#")==-1||i.substring(0,n.length)!=n)return;let s=i.substring(i.indexOf("#")+1),o=document.querySelector("a.tsd-anchor[name="+s+"]"),a=r.parentNode;!o||!a||this.anchors.push({link:a,anchor:o,position:0})}),this.onResize()}onResize(){let n;for(let i=0,s=this.anchors.length;ii.position-s.position);let r=new CustomEvent("scroll",{detail:{scrollTop:R.instance.scrollTop}});this.onScroll(r)}onScroll(n){let r=n.detail.scrollTop+5,i=this.anchors,s=i.length-1,o=this.index;for(;o>-1&&i[o].position>r;)o-=1;for(;o-1&&this.anchors[this.index].link.classList.remove("focus"),this.index=o,this.index>-1&&this.anchors[this.index].link.classList.add("focus"))}};var ue=(t,e=100)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>t(r),e)}};var me=De(de());function ve(){let t=document.getElementById("tsd-search");if(!t)return;let e=document.getElementById("search-script");t.classList.add("loading"),e&&(e.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),e.addEventListener("load",()=>{t.classList.remove("loading"),t.classList.add("ready")}),window.searchData&&t.classList.remove("loading"));let n=document.querySelector("#tsd-search input"),r=document.querySelector("#tsd-search .results");if(!n||!r)throw new Error("The input field or the result list wrapper was not found");let i=!1;r.addEventListener("mousedown",()=>i=!0),r.addEventListener("mouseup",()=>{i=!1,t.classList.remove("has-focus")}),n.addEventListener("focus",()=>t.classList.add("has-focus")),n.addEventListener("blur",()=>{i||(i=!1,t.classList.remove("has-focus"))});let s={base:t.dataset.base+"/"};Fe(t,r,n,s)}function Fe(t,e,n,r){n.addEventListener("input",ue(()=>{Ae(t,e,n,r)},200));let i=!1;n.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Ve(e,n):s.key=="Escape"?n.blur():s.key=="ArrowUp"?fe(e,-1):s.key==="ArrowDown"?fe(e,1):i=!1}),n.addEventListener("keypress",s=>{i&&s.preventDefault()}),document.body.addEventListener("keydown",s=>{s.altKey||s.ctrlKey||s.metaKey||!n.matches(":focus")&&s.key==="/"&&(n.focus(),s.preventDefault())})}function He(t,e){t.index||window.searchData&&(e.classList.remove("loading"),e.classList.add("ready"),t.data=window.searchData,t.index=me.Index.load(window.searchData.index))}function Ae(t,e,n,r){if(He(r,t),!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s=i?r.index.search(`*${i}*`):[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o${pe(u.parent,i)}.${l}`);let h=document.createElement("li");h.classList.value=u.classes??"";let m=document.createElement("a");m.href=r.base+u.url,m.innerHTML=l,h.append(m),e.appendChild(h)}}function fe(t,e){let n=t.querySelector(".current");if(!n)n=t.querySelector(e==1?"li:first-child":"li:last-child"),n&&n.classList.add("current");else{let r=n;if(e===1)do r=r.nextElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);else do r=r.previousElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);r&&(n.classList.remove("current"),r.classList.add("current"))}}function Ve(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),e.blur()}}function pe(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(ie(t.substring(s,o)),`${ie(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(ie(t.substring(s))),i.join("")}var Ne={"&":"&","<":"<",">":">","'":"'",'"':"""};function ie(t){return t.replace(/[&<>"'"]/g,e=>Ne[e])}var F="mousedown",ye="mousemove",B="mouseup",Z={x:0,y:0},ge=!1,se=!1,je=!1,H=!1,xe=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(xe?"is-mobile":"not-mobile");xe&&"ontouchstart"in document.documentElement&&(je=!0,F="touchstart",ye="touchmove",B="touchend");document.addEventListener(F,t=>{se=!0,H=!1;let e=F=="touchstart"?t.targetTouches[0]:t;Z.y=e.pageY||0,Z.x=e.pageX||0});document.addEventListener(ye,t=>{if(!!se&&!H){let e=F=="touchstart"?t.targetTouches[0]:t,n=Z.x-(e.pageX||0),r=Z.y-(e.pageY||0);H=Math.sqrt(n*n+r*r)>10}});document.addEventListener(B,()=>{se=!1});document.addEventListener("click",t=>{ge&&(t.preventDefault(),t.stopImmediatePropagation(),ge=!1)});var K=class extends k{constructor(n){super(n);this.className=this.el.dataset.toggle||"",this.el.addEventListener(B,r=>this.onPointerUp(r)),this.el.addEventListener("click",r=>r.preventDefault()),document.addEventListener(F,r=>this.onDocumentPointerDown(r)),document.addEventListener(B,r=>this.onDocumentPointerUp(r))}setActive(n){if(this.active==n)return;this.active=n,document.documentElement.classList.toggle("has-"+this.className,n),this.el.classList.toggle("active",n);let r=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(r),setTimeout(()=>document.documentElement.classList.remove(r),500)}onPointerUp(n){H||(this.setActive(!0),n.preventDefault())}onDocumentPointerDown(n){if(this.active){if(n.target.closest(".col-menu, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(n){if(!H&&this.active&&n.target.closest(".col-menu")){let r=n.target.closest("a");if(r){let i=window.location.href;i.indexOf("#")!=-1&&(i=i.substring(0,i.indexOf("#"))),r.href.substring(0,i.length)==i&&setTimeout(()=>this.setActive(!1),250)}}}};var oe;try{oe=localStorage}catch{oe={getItem(){return null},setItem(){}}}var Q=oe;var Le=document.head.appendChild(document.createElement("style"));Le.dataset.for="filters";var ee=class extends k{constructor(n){super(n);this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),Le.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } +`}fromLocalStorage(){let n=Q.getItem(this.key);return n?n==="true":this.el.checked}setLocalStorage(n){Q.setItem(this.key,n.toString()),this.value=n,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),document.querySelectorAll(".tsd-index-section").forEach(n=>{n.style.display="block";let r=Array.from(n.querySelectorAll(".tsd-index-link")).every(i=>i.offsetParent==null);n.style.display=r?"none":"block"})}};var te=class extends k{constructor(n){super(n);this.calculateHeights(),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.textContent.replace(/\s+/g,"-").toLowerCase()}`,this.setLocalStorage(this.fromLocalStorage(),!0),this.summary.addEventListener("click",r=>this.toggleVisibility(r)),this.icon.style.transform=this.getIconRotation()}getIconRotation(n=this.el.open){return`rotate(${n?0:-90}deg)`}calculateHeights(){let n=this.el.open,{position:r,left:i}=this.el.style;this.el.style.position="fixed",this.el.style.left="-9999px",this.el.open=!0,this.expandedHeight=this.el.offsetHeight+"px",this.el.open=!1,this.collapsedHeight=this.el.offsetHeight+"px",this.el.open=n,this.el.style.height=n?this.expandedHeight:this.collapsedHeight,this.el.style.position=r,this.el.style.left=i}toggleVisibility(n){n.preventDefault(),this.el.style.overflow="hidden",this.el.open?this.collapse():this.expand()}expand(n=!0){this.el.open=!0,this.animate(this.collapsedHeight,this.expandedHeight,{opening:!0,duration:n?300:0})}collapse(n=!0){this.animate(this.expandedHeight,this.collapsedHeight,{opening:!1,duration:n?300:0})}animate(n,r,{opening:i,duration:s=300}){if(this.animation)return;let o={duration:s,easing:"ease"};this.animation=this.el.animate({height:[n,r]},o),this.icon.animate({transform:[this.icon.style.transform||this.getIconRotation(!i),this.getIconRotation(i)]},o).addEventListener("finish",()=>{this.icon.style.transform=this.getIconRotation(i)}),this.animation.addEventListener("finish",()=>this.animationEnd(i))}animationEnd(n){this.el.open=n,this.animation=void 0,this.el.style.height="auto",this.el.style.overflow="visible",this.setLocalStorage(n)}fromLocalStorage(){let n=Q.getItem(this.key);return n?n==="true":this.el.open}setLocalStorage(n,r=!1){this.fromLocalStorage()===n&&!r||(Q.setItem(this.key,n.toString()),this.el.open=n,this.handleValueChange(r))}handleValueChange(n=!1){this.fromLocalStorage()===this.el.open&&!n||(this.fromLocalStorage()?this.expand(!1):this.collapse(!1))}};function be(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,Ee(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),Ee(t.value)})}function Ee(t){document.documentElement.dataset.theme=t}ve();j(X,".menu-highlight");j(K,"a[data-toggle]");j(te,".tsd-index-accordion");j(ee,".tsd-filter-item input[type=checkbox]");var Se=document.getElementById("theme");Se&&be(Se);var Be=new Y;Object.defineProperty(window,"app",{value:Be});})(); /*! * lunr.Builder * Copyright (C) 2020 Oliver Nightingale diff --git a/docs/assets/style.css b/docs/assets/style.css index 88952e4..048427e 100644 --- a/docs/assets/style.css +++ b/docs/assets/style.css @@ -248,35 +248,6 @@ dd { padding-left: 0; } -ul.tsd-descriptions > li > :first-child, -.tsd-panel > :first-child, -.col-8 > :first-child, -.col-4 > :first-child, -ul.tsd-descriptions > li > :first-child > :first-child, -.tsd-panel > :first-child > :first-child, -.col-8 > :first-child > :first-child, -.col-4 > :first-child > :first-child, -ul.tsd-descriptions > li > :first-child > :first-child > :first-child, -.tsd-panel > :first-child > :first-child > :first-child, -.col-8 > :first-child > :first-child > :first-child, -.col-4 > :first-child > :first-child > :first-child { - margin-top: 0; -} -ul.tsd-descriptions > li > :last-child, -.tsd-panel > :last-child, -.col-8 > :last-child, -.col-4 > :last-child, -ul.tsd-descriptions > li > :last-child > :last-child, -.tsd-panel > :last-child > :last-child, -.col-8 > :last-child > :last-child, -.col-4 > :last-child > :last-child, -ul.tsd-descriptions > li > :last-child > :last-child > :last-child, -.tsd-panel > :last-child > :last-child > :last-child, -.col-8 > :last-child > :last-child > :last-child, -.col-4 > :last-child > :last-child > :last-child { - margin-bottom: 0; -} - @keyframes fade-in { from { opacity: 0; @@ -1073,9 +1044,6 @@ a.tsd-index-link { font-size: 14px; overflow-x: auto; } -.tsd-panel > .tsd-signature { - border-width: 1px 0; -} .tsd-signature-symbol { color: var(--color-text-aside); @@ -1090,60 +1058,16 @@ a.tsd-index-link { .tsd-signatures { padding: 0; margin: 0 0 1em 0; - border: 1px solid var(--color-accent); + list-style-type: none; } .tsd-signatures .tsd-signature { margin: 0; - border-width: 1px 0 0 0; - transition: background-color 0.1s; -} -.tsd-signatures .tsd-signature:first-child { - border-top-width: 0; -} -.tsd-signatures .tsd-signature.current { - background-color: var(--color-background-secondary); -} -.tsd-signatures.active > .tsd-signature { - cursor: pointer; -} -.tsd-panel > .tsd-signatures { + border-color: var(--color-accent); border-width: 1px 0; + transition: background-color 0.1s; } -.tsd-panel > a.anchor + .tsd-signatures { - border-top-width: 0; - margin-top: -20px; -} - -ul.tsd-descriptions { - position: relative; - overflow: hidden; - padding: 0; - list-style: none; -} -ul.tsd-descriptions.active > .tsd-description { - display: none; -} -ul.tsd-descriptions.active > .tsd-description.current { - display: block; -} -ul.tsd-descriptions.active > .tsd-description.fade-in { - animation: fade-in-delayed 0.3s; -} -ul.tsd-descriptions.active > .tsd-description.fade-out { - animation: fade-out-delayed 0.3s; - position: absolute; - display: block; - top: 0; - left: 0; - right: 0; - opacity: 0; - visibility: hidden; -} -ul.tsd-descriptions h4, -ul.tsd-descriptions .tsd-index-panel h3, -.tsd-index-panel ul.tsd-descriptions h3 { - font-size: 16px; - margin: 1em 0 0.5em 0; +.tsd-description .tsd-signatures .tsd-signature { + border-width: 1px; } ul.tsd-parameter-list, diff --git a/docs/functions/EventProvider.html b/docs/functions/EventProvider.html index c194906..99ecf6c 100644 --- a/docs/functions/EventProvider.html +++ b/docs/functions/EventProvider.html @@ -1,22 +1,21 @@ -EventProvider | react-native-event
+EventProvider | react-native-event - v0.2.2
+
  • The search index is not available
  • react-native-event - v0.2.2
    -
      +
    • Parameters

      @@ -43,7 +42,7 @@

      Theme

      • Preparing search index...
      • -
      • The search index is not available
      react-native-event
    +
  • The search index is not available
  • react-native-event - v0.2.2
      -
    • useEvent(handler: any, dependencies: any): void
    -
      +
    • Parameters

      @@ -45,7 +44,7 @@

      Theme

      • Preparing search index...
      • -
      • The search index is not available
      react-native-event
    +
  • The search index is not available
  • react-native-event - v0.2.2
    +
  • The search index is not available
  • react-native-event - v0.2.2
    -

    react-native-event

    +

    react-native-event - v0.2.2

    Index

    @@ -48,7 +48,7 @@

    Theme

    • Preparing search index...
    • -
    • The search index is not available
    react-native-event +
  • The search index is not available
  • react-native-event - v0.2.2
    EventContextType: { subscribe: ((handler: HandlerType) => void) }
    @@ -22,8 +22,7 @@
    subscribe:
  • -
  • Returns void

    +
  • Defined in index.tsx:7
  • +
  • The search index is not available
  • react-native-event - v0.2.2
    EventProviderProps: { children?: React.ReactNode; events?: string[] }
    @@ -22,7 +22,7 @@
    Optional children
    Optional events?: string[]
    +
  • Defined in index.tsx:15
  • +
  • The search index is not available
  • react-native-event - v0.2.2
    EventTypes: ReactNative.GestureResponderEvent
    +
  • Defined in index.tsx:4
  • +
  • The search index is not available
  • react-native-event - v0.2.2
    HandlerType: ((event: EventTypes) => void)
    @@ -19,8 +19,7 @@

    Type declaration

    Returns void

    +
  • Defined in index.tsx:5
  • +
  • The search index is not available
  • react-native-event - v0.2.2
    EventContext: Context<EventContextType> = ...
    +
  • Defined in index.tsx:11