0x608060405234801561001057600080fd5b50612315806100206000396000f3fe6080604052600436106101755760003560e01c80639012c4a8116100cb578063c44e66401161007f578063ef108af711610059578063ef108af7146104ad578063f2fde38b146104cd578063f5a1f5b4146104ed57610175565b8063c44e66401461042c578063c4d66de814610441578063ec88fb561461046157610175565b8063a7ecd37e116100b0578063a7ecd37e146103ab578063ae7ffa89146103cb578063b9a958b4146103ff57610175565b80639012c4a81461036b57806396b5a7551461038b57610175565b80635396af4c1161012d5780637a36b3ee116101075780637a36b3ee146102ee5780637ac3c02f1461031b5780638da5cb5b1461034d57610175565b80635396af4c146102a6578063598647f8146102c6578063715018a6146102d957610175565b8063188ec3561161015e578063188ec3561461020b578063294dde0c146102285780634e4637341461028657610175565b80630614117a1461017a578063150b7a0214610191575b600080fd5b34801561018657600080fd5b5061018f61050d565b005b34801561019d57600080fd5b506101d56101ac366004611dff565b7f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6040517fffffffff0000000000000000000000000000000000000000000000000000000090911681526020015b60405180910390f35b34801561021757600080fd5b50425b604051908152602001610202565b34801561023457600080fd5b50610248610243366004611f5c565b610615565b604051610202919081516001600160a01b03168152602080830151908201526040808301519082015260609182015115159181019190915260800190565b34801561029257600080fd5b5061018f6102a1366004611e78565b610782565b3480156102b257600080fd5b5061018f6102c1366004611de5565b6108dd565b61018f6102d4366004611f74565b6109a1565b3480156102e557600080fd5b5061018f610f00565b3480156102fa57600080fd5b5061030e610309366004611efb565b610f14565b60405161020291906120e7565b34801561032757600080fd5b506097546001600160a01b03165b6040516001600160a01b039091168152602001610202565b34801561035957600080fd5b506033546001600160a01b0316610335565b34801561037757600080fd5b5061018f610386366004611f5c565b610f40565b34801561039757600080fd5b5061018f6103a6366004611f5c565b610fe7565b3480156103b757600080fd5b5061018f6103c6366004611de5565b611277565b3480156103d757600080fd5b506103eb6103e6366004611f5c565b61133b565b60405161020298979695949392919061208e565b34801561040b57600080fd5b5061021a61041a366004611f5c565b609a6020526000908152604090205481565b34801561043857600080fd5b50609b5461021a565b34801561044d57600080fd5b5061018f61045c366004611de5565b611415565b34801561046d57600080fd5b5061048161047c366004611f74565b6115ba565b604080516001600160a01b03909516855260208501939093529183015215156060820152608001610202565b3480156104b957600080fd5b5061018f6104c8366004611f5c565b61160d565b3480156104d957600080fd5b5061018f6104e8366004611de5565b611927565b3480156104f957600080fd5b5061018f610508366004611de5565b6119b4565b6097546001600160a01b0316336001600160a01b0316148061054d5750609f5461010090046001600160a01b03166105423390565b6001600160a01b0316145b6105b45760405162461bcd60e51b815260206004820152602d60248201527f546869732066756e6374696f6e2063616e206f6e6c792062652063616c6c656460448201526c10313c9030b71039b4b3b732b960991b60648201526084015b60405180910390fd5b47801561061257604051600090339083908381818185875af1925050503d80600081146105fd576040519150601f19603f3d011682016040523d82523d6000602084013e610602565b606091505b505090508061061057600080fd5b505b50565b604080516080810182526000808252602082018190529181018290526060810191909152609b5482106106826040518060400160405280601f81526020017f41756374696f6e2049642073686f756c64206265206c657373207468616e2000815250610309609b54611a95565b906106a05760405162461bcd60e51b81526004016105ab91906120e7565b50600082815260996020908152604080832080548251818502810185019093528083529192909190849084015b8282101561072f576000848152602090819020604080516080810182526004860290920180546001600160a01b03168352600180820154848601526002820154928401929092526003015460ff161515606083015290835290920191016106cd565b5050506000858152609a60205260409020549192508290506107526001836121d5565b8151811061077057634e487b7160e01b600052603260045260246000fd5b6020026020010151925050505b919050565b609c54604051632142170760e11b8152336004820152306024820152604481018590526001600160a01b03909116906342842e0e90606401600060405180830381600087803b1580156107d457600080fd5b505af11580156107e8573d6000803e3d6000fd5b5050609b54600090815260986020526040902080546001600160a01b0319163317815560018101869055915061081d90504290565b6002820155600381018390556005810182905561083e600682018787611c99565b5060078101805460ff19169055609b80546001919060009061086190849061218a565b9091555050609b547fe3b4d5ceeb9bd4281ba3f05bf499516adb0de51dd1bbfc4516efbdb369ab730590610897906001906121d5565b825460018401546002850154600386015460058701546040516108cd96956001600160a01b0316949392919060068a019061213d565b60405180910390a1505050505050565b6097546001600160a01b0316336001600160a01b0316148061091d5750609f5461010090046001600160a01b03166109123390565b6001600160a01b0316145b61097f5760405162461bcd60e51b815260206004820152602d60248201527f546869732066756e6374696f6e2063616e206f6e6c792062652063616c6c656460448201526c10313c9030b71039b4b3b732b960991b60648201526084016105ab565b609c80546001600160a01b0319166001600160a01b0392909216919091179055565b609b5482106109ea6040518060400160405280601f81526020017f41756374696f6e2049642073686f756c64206265206c657373207468616e2000815250610309609b54611a95565b90610a085760405162461bcd60e51b81526004016105ab91906120e7565b50348114610a1557600080fd5b600082815260986020908152604080832081516101008101835281546001600160a01b031681526001820154938101939093526002810154918301919091526003810154606083015260048101546080830152600581015460a083015260068101805460c084019190610a8790612233565b80601f0160208091040260200160405190810160405280929190818152602001828054610ab390612233565b8015610b005780601f10610ad557610100808354040283529160200191610b00565b820191906000526020600020905b815481529060010190602001808311610ae357829003601f168201915b50505091835250506007919091015460ff16151560209091015260608101519091504210610b705760405162461bcd60e51b815260206004820152601060248201527f41756374696f6e20697320656e6465640000000000000000000000000000000060448201526064016105ab565b6000838152609960209081526040808320609a909252909120548015610c455781610b9c6001836121d5565b81548110610bba57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600101548410610c405760405162461bcd60e51b815260206004820152603260248201527f5061796d656e742076616c75652073686f756c64206265206c6573732074686160448201527f6e20746865206c61746573742076616c7565000000000000000000000000000060648201526084016105ab565b610cbf565b8260a00151841115610cbf5760405162461bcd60e51b815260206004820152603160248201527f5061796d656e742076616c75652073686f756c64206265206c6573732074686160448201527f6e2074686520737461727420707269636500000000000000000000000000000060648201526084016105ab565b6000858152609a6020526040902054610cd990600161218a565b6000868152609a602090815260408083209390935582516080810184523381528082018881524294820194855260608201848152875460018082018a55898752949095209251600490950290920180546001600160a01b0319166001600160a01b0390951694909417845551918301919091559151600282015590516003909101805460ff19169115159190911790558015610e6c5781610d7b6001836121d5565b81548110610d9957634e487b7160e01b600052603260045260246000fd5b60009182526020909120600490910201546001600160a01b03166108fc83610dc26001856121d5565b81548110610de057634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600101549081150290604051600060405180830381858888f19350505050158015610e1d573d6000803e3d6000fd5b50600182610e2b82846121d5565b81548110610e4957634e487b7160e01b600052603260045260246000fd5b60009182526020909120600490910201600301805460ff19169115159190911790555b7fcde18333b910a25ba5421e992ecee5c314e557346e94ab2ab424658bbb3707e6853386858581548110610eb057634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160020154604051610ef194939291909384526001600160a01b039290921660208401526040830152606082015260800190565b60405180910390a15050505050565b610f08611bed565b610f126000611c47565b565b60608282604051602001610f2992919061205f565b604051602081830303815290604052905092915050565b6097546001600160a01b0316336001600160a01b03161480610f805750609f5461010090046001600160a01b0316610f753390565b6001600160a01b0316145b610fe25760405162461bcd60e51b815260206004820152602d60248201527f546869732066756e6374696f6e2063616e206f6e6c792062652063616c6c656460448201526c10313c9030b71039b4b3b732b960991b60648201526084016105ab565b609d55565b6000818152609960209081526040808320609a8352818420546098909352922080546001600160a01b031633146110605760405162461bcd60e51b815260206004820152601160248201527f53686f756c642062652063726561746f7200000000000000000000000000000060448201526064016105ab565b600781015460ff16156110b55760405162461bcd60e51b815260206004820152601160248201527f416c72656164792063616e63656c6c656400000000000000000000000000000060448201526064016105ab565b81156111b857826110c76001846121d5565b815481106110e557634e487b7160e01b600052603260045260246000fd5b60009182526020909120600490910201546001600160a01b03166108fc8461110e6001866121d5565b8154811061112c57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060040201600101549081150290604051600060405180830381858888f19350505050158015611169573d6000803e3d6000fd5b5060018361117782856121d5565b8154811061119557634e487b7160e01b600052603260045260246000fd5b60009182526020909120600490910201600301805460ff19169115159190911790555b609c546001820154604051632142170760e11b815230600482015233602482015260448101919091526001600160a01b03909116906342842e0e90606401600060405180830381600087803b15801561121057600080fd5b505af1158015611224573d6000803e3d6000fd5b50505060078201805460ff19166001179055506040517f2809c7e17bf978fbc7194c0a694b638c4215e9140cacc6c38ca36010b45697df906112699086815260200190565b60405180910390a150505050565b6097546001600160a01b0316336001600160a01b031614806112b75750609f5461010090046001600160a01b03166112ac3390565b6001600160a01b0316145b6113195760405162461bcd60e51b815260206004820152602d60248201527f546869732066756e6374696f6e2063616e206f6e6c792062652063616c6c656460448201526c10313c9030b71039b4b3b732b960991b60648201526084016105ab565b609780546001600160a01b0319166001600160a01b0392909216919091179055565b60986020526000908152604090208054600182015460028301546003840154600485015460058601546006870180546001600160a01b03909716979596949593949293919261138990612233565b80601f01602080910402602001604051908101604052809291908181526020018280546113b590612233565b80156114025780601f106113d757610100808354040283529160200191611402565b820191906000526020600020905b8154815290600101906020018083116113e557829003601f168201915b5050506007909301549192505060ff1688565b600054610100900460ff16158080156114355750600054600160ff909116105b8061144f5750303b15801561144f575060005460ff166001145b6114c15760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084016105ab565b6000805460ff1916600117905580156114e4576000805461ff0019166101001790555b609f5460ff16156115375760405162461bcd60e51b815260206004820152601f60248201527f436f6e747261637420697320616c726561647920696e697469616c697a65640060448201526064016105ab565b60978054336001600160a01b031991821617909155609c80549091166001600160a01b0384161790556000609b556103e8609d55612710609e558015610610576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15050565b609960205281600052604060002081815481106115d657600080fd5b600091825260209091206004909102018054600182015460028301546003909301546001600160a01b039092169450925060ff1684565b6000818152609960209081526040808320609a90925290912054806116745760405162461bcd60e51b815260206004820152600660248201527f4e6f20626964000000000000000000000000000000000000000000000000000060448201526064016105ab565b600083815260986020526040902080546001600160a01b031633146116db5760405162461bcd60e51b815260206004820152601160248201527f53686f756c642062652063726561746f7200000000000000000000000000000060448201526064016105ab565b8054609e54609d546001600160a01b03909216916108fc91906116fe90826121d5565b8661170a6001886121d5565b8154811061172857634e487b7160e01b600052603260045260246000fd5b90600052602060002090600402016001015461174491906121b6565b61174e91906121a2565b6040518115909202916000818181858888f19350505050158015611776573d6000803e3d6000fd5b50609c546001600160a01b03166342842e0e30856117956001876121d5565b815481106117b357634e487b7160e01b600052603260045260246000fd5b6000918252602090912060049182020154600186015460405160e086901b7fffffffff000000000000000000000000000000000000000000000000000000001681526001600160a01b0394851693810193909352921660248201526044810191909152606401600060405180830381600087803b15801561183357600080fd5b505af1158015611847573d6000803e3d6000fd5b505050506118524290565b600482015580546001808301547f688dcd980c23bbd5fa4d1c1bb10d710d6b7bd4aca6f1b72325197cc49d4e77429287926001600160a01b039091169190600686019088906118a190896121d5565b815481106118bf57634e487b7160e01b600052603260045260246000fd5b60009182526020909120600490910201546001600160a01b0316886118e560018a6121d5565b8154811061190357634e487b7160e01b600052603260045260246000fd5b906000526020600020906004020160010154604051611269969594939291906120fa565b61192f611bed565b6001600160a01b0381166119ab5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016105ab565b61061281611c47565b6097546001600160a01b0316336001600160a01b031614806119f45750609f5461010090046001600160a01b03166119e93390565b6001600160a01b0316145b611a565760405162461bcd60e51b815260206004820152602d60248201527f546869732066756e6374696f6e2063616e206f6e6c792062652063616c6c656460448201526c10313c9030b71039b4b3b732b960991b60648201526084016105ab565b609f80546001600160a01b03909216610100027fffffffffffffffffffffff0000000000000000000000000000000000000000ff909216919091179055565b606081611ad6575060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015261077d565b8160005b8115611b005780611aea8161226e565b9150611af99050600a836121a2565b9150611ada565b60008167ffffffffffffffff811115611b2957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611b53576020820181803683370190505b5090505b8415611be55781611b678161221c565b9250611b769050600a86612289565b611b8190603061218a565b60f81b818381518110611ba457634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611bde600a866121a2565b9450611b57565b949350505050565b6033546001600160a01b03163314610f125760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105ab565b603380546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054611ca590612233565b90600052602060002090601f016020900481019282611cc75760008555611d0d565b82601f10611ce05782800160ff19823516178555611d0d565b82800160010185558215611d0d579182015b82811115611d0d578235825591602001919060010190611cf2565b50611d19929150611d1d565b5090565b5b80821115611d195760008155600101611d1e565b600067ffffffffffffffff80841115611d4d57611d4d6122c9565b604051601f8501601f19908116603f01168101908282118183101715611d7557611d756122c9565b81604052809350858152868686011115611d8e57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461077d57600080fd5b600082601f830112611dcf578081fd5b611dde83833560208501611d32565b9392505050565b600060208284031215611df6578081fd5b611dde82611da8565b60008060008060808587031215611e14578283fd5b611e1d85611da8565b9350611e2b60208601611da8565b925060408501359150606085013567ffffffffffffffff811115611e4d578182fd5b8501601f81018713611e5d578182fd5b611e6c87823560208401611d32565b91505092959194509250565b600080600080600060808688031215611e8f578081fd5b853567ffffffffffffffff80821115611ea6578283fd5b818801915088601f830112611eb9578283fd5b813581811115611ec7578384fd5b896020828501011115611ed8578384fd5b60209283019a909950918801359760408101359750606001359550909350505050565b60008060408385031215611f0d578182fd5b823567ffffffffffffffff80821115611f24578384fd5b611f3086838701611dbf565b93506020850135915080821115611f45578283fd5b50611f5285828601611dbf565b9150509250929050565b600060208284031215611f6d578081fd5b5035919050565b60008060408385031215611f86578182fd5b50508035926020909101359150565b60008151808452611fad8160208601602086016121ec565b601f01601f19169290920160200192915050565b805460009060028104600180831680611fdb57607f831692505b6020808410821415611ffb57634e487b7160e01b86526022600452602486fd5b83885260208801828015612016576001811461202757612052565b60ff19871682528282019750612052565b60008981526020902060005b8781101561204c57815484820152908601908401612033565b83019850505b5050505050505092915050565b600083516120718184602088016121ec565b8351908301906120858183602088016121ec565b01949350505050565b60006101006001600160a01b038b1683528960208401528860408401528760608401528660808401528560a08401528060c08401526120cf81840186611f95565b91505082151560e08301529998505050505050505050565b600060208252611dde6020830184611f95565b60008782526001600160a01b03808816602084015286604084015260c0606084015261212960c0840187611fc1565b941660808301525060a00152949350505050565b60008882526001600160a01b03881660208301528660408301528560608301528460808301528360a083015260e060c083015261217d60e0830184611fc1565b9998505050505050505050565b6000821982111561219d5761219d61229d565b500190565b6000826121b1576121b16122b3565b500490565b60008160001904831182151516156121d0576121d061229d565b500290565b6000828210156121e7576121e761229d565b500390565b60005b838110156122075781810151838201526020016121ef565b83811115612216576000848401525b50505050565b60008161222b5761222b61229d565b506000190190565b60028104600182168061224757607f821691505b6020821081141561226857634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156122825761228261229d565b5060010190565b600082612298576122986122b3565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220e89da2b0b85ea70beec5ba1044ce90b6c0c68def7c88b837b4e071477ba8c6e264736f6c63430008020033